Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
Craig Silverstein | 404970d | 2011-07-30 02:57:58 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.62 for gflags 1.6. |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4 | # |
| 5 | # Report bugs to <opensource@google.com>. |
| 6 | # |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 8 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 11 | ## --------------------- ## |
| 12 | ## M4sh Initialization. ## |
| 13 | ## --------------------- ## |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 15 | # Be more Bourne compatible |
| 16 | DUALCASE=1; export DUALCASE # for MKS sh |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18 | emulate sh |
| 19 | NULLCMD=: |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 21 | # is contrary to our usage. Disable this feature. |
| 22 | alias -g '${1+"$@"}'='"$@"' |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 23 | setopt NO_GLOB_SUBST |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 24 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 25 | case `(set -o) 2>/dev/null` in |
| 26 | *posix*) set -o posix ;; |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 27 | esac |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 28 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 29 | fi |
| 30 | |
| 31 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [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 | |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [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 |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 49 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [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; |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 60 | case $arg in |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [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 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 73 | |
| 74 | # The user is always right. |
| 75 | if test "${PATH_SEPARATOR+set}" != set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [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 | } |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 81 | fi |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 82 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [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 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +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.) |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 96 | IFS=" "" $as_nl" |
| 97 | |
| 98 | # Find who we are. Look in the path if we contain no directory separator. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 99 | case $0 in |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 100 | *[\\/]* ) as_myself=$0 ;; |
| 101 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 102 | for as_dir in $PATH |
| 103 | do |
| 104 | IFS=$as_save_IFS |
| 105 | test -z "$as_dir" && as_dir=. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 106 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 107 | done |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 108 | IFS=$as_save_IFS |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 109 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 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 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 118 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 119 | { (exit 1); exit 1; } |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 120 | fi |
| 121 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [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 |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 125 | done |
| 126 | PS1='$ ' |
| 127 | PS2='> ' |
| 128 | PS4='+ ' |
| 129 | |
| 130 | # NLS nuisances. |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 131 | LC_ALL=C |
| 132 | export LC_ALL |
| 133 | LANGUAGE=C |
| 134 | export LANGUAGE |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 135 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 136 | # Required to use basename. |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +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 | |
| 150 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 151 | # Name of the executable. |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +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 || |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 156 | $as_echo X/"$0" | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +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 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 171 | # CDPATH. |
| 172 | $as_unset CDPATH |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 173 | |
| 174 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [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. :-) |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 460 | sed -n ' |
| 461 | p |
| 462 | /[$]LINENO/= |
| 463 | ' <$as_myself | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 464 | sed ' |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 465 | s/[$]LINENO.*/&-/ |
| 466 | t lineno |
| 467 | b |
| 468 | :lineno |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 469 | N |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 470 | :loop |
| 471 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 472 | t loop |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 473 | s/-\n.*// |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 474 | ' >$as_me.lineno && |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 475 | chmod +x "$as_me.lineno" || |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 476 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 477 | { (exit 1); exit 1; }; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +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 |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 481 | # original and so on. Autoconf is especially sensitive to this). |
| 482 | . "./$as_me.lineno" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 483 | # Exit status is that of the last command. |
| 484 | exit |
| 485 | } |
| 486 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [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 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 494 | ECHO_C= ECHO_N= ECHO_T= |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 495 | case `echo -n x` in |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 496 | -n*) |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 497 | case `echo 'x\c'` in |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 498 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 499 | *) ECHO_C='\c';; |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 500 | esac;; |
| 501 | *) |
| 502 | ECHO_N='-n';; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 503 | esac |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [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 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 510 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 511 | rm -f conf$$ conf$$.exe conf$$.file |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 512 | if test -d conf$$.dir; then |
| 513 | rm -f conf$$.dir/conf$$.file |
| 514 | else |
| 515 | rm -f conf$$.dir |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 516 | mkdir conf$$.dir 2>/dev/null |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 517 | fi |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [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. |
| 524 | # In both cases, we have to default to `cp -p'. |
| 525 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 526 | as_ln_s='cp -p' |
| 527 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 528 | as_ln_s=ln |
| 529 | else |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 530 | as_ln_s='cp -p' |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 531 | fi |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 532 | else |
| 533 | as_ln_s='cp -p' |
| 534 | fi |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 535 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 536 | rmdir conf$$.dir 2>/dev/null |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 537 | |
| 538 | if mkdir -p . 2>/dev/null; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 539 | as_mkdir_p=: |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 540 | else |
| 541 | test -d ./-p && rmdir ./-p |
| 542 | as_mkdir_p=false |
| 543 | fi |
| 544 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [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 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 556 | test -d "$1/."; |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 557 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 558 | case $1 in |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 559 | -*)set "./$1";; |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 560 | esac; |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 561 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 562 | ???[sx]*):;;*)false;;esac;fi |
| 563 | '\'' sh |
| 564 | ' |
| 565 | fi |
| 566 | as_executable_p=$as_test_x |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +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 | |
| 574 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 575 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 576 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 577 | # Check that we are running under the correct shell. |
| 578 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 579 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 580 | case X$lt_ECHO in |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 581 | X*--fallback-echo) |
| 582 | # Remove one level of quotation (which was required for Make). |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 583 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 584 | ;; |
| 585 | esac |
| 586 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 587 | ECHO=${lt_ECHO-echo} |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 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 | : |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 594 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then |
| 595 | # Yippee, $ECHO works! |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 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 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 605 | cat <<_LT_EOF |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 606 | $* |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 607 | _LT_EOF |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 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. |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 613 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 614 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 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 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 627 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 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. |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 638 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 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 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 650 | IFS="$lt_save_ifs" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 651 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 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+"$@"} |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 667 | else |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 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=: |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 692 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 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 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 708 | fi |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 709 | fi |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 710 | fi |
| 711 | fi |
| 712 | fi |
| 713 | fi |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 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. |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 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" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 720 | fi |
| 721 | |
| 722 | |
| 723 | |
| 724 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 725 | exec 7<&0 </dev/null 6>&1 |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 726 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 727 | # Name of the host. |
| 728 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 729 | # so uname gets run too. |
| 730 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 731 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 732 | # |
| 733 | # Initializations. |
| 734 | # |
| 735 | ac_default_prefix=/usr/local |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 736 | ac_clean_files= |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 737 | ac_config_libobj_dir=. |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 738 | LIBOBJS= |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 739 | cross_compiling=no |
| 740 | subdirs= |
| 741 | MFLAGS= |
| 742 | MAKEFLAGS= |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 743 | SHELL=${CONFIG_SHELL-/bin/sh} |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 744 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 745 | # Identity of this package. |
| 746 | PACKAGE_NAME='gflags' |
| 747 | PACKAGE_TARNAME='gflags' |
Craig Silverstein | 404970d | 2011-07-30 02:57:58 +0000 | [diff] [blame] | 748 | PACKAGE_VERSION='1.6' |
| 749 | PACKAGE_STRING='gflags 1.6' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 750 | PACKAGE_BUGREPORT='opensource@google.com' |
| 751 | |
| 752 | ac_unique_file="README" |
| 753 | # Factoring default headers for most tests. |
| 754 | ac_includes_default="\ |
| 755 | #include <stdio.h> |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 756 | #ifdef HAVE_SYS_TYPES_H |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 757 | # include <sys/types.h> |
| 758 | #endif |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 759 | #ifdef HAVE_SYS_STAT_H |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 760 | # include <sys/stat.h> |
| 761 | #endif |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 762 | #ifdef STDC_HEADERS |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 763 | # include <stdlib.h> |
| 764 | # include <stddef.h> |
| 765 | #else |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 766 | # ifdef HAVE_STDLIB_H |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 767 | # include <stdlib.h> |
| 768 | # endif |
| 769 | #endif |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 770 | #ifdef HAVE_STRING_H |
| 771 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 772 | # include <memory.h> |
| 773 | # endif |
| 774 | # include <string.h> |
| 775 | #endif |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 776 | #ifdef HAVE_STRINGS_H |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 777 | # include <strings.h> |
| 778 | #endif |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 779 | #ifdef HAVE_INTTYPES_H |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 780 | # include <inttypes.h> |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 781 | #endif |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 782 | #ifdef HAVE_STDINT_H |
| 783 | # include <stdint.h> |
| 784 | #endif |
| 785 | #ifdef HAVE_UNISTD_H |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 786 | # include <unistd.h> |
| 787 | #endif" |
| 788 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 789 | ac_subst_vars='SHELL |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 790 | PATH_SEPARATOR |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 791 | PACKAGE_NAME |
| 792 | PACKAGE_TARNAME |
| 793 | PACKAGE_VERSION |
| 794 | PACKAGE_STRING |
| 795 | PACKAGE_BUGREPORT |
| 796 | exec_prefix |
| 797 | prefix |
| 798 | program_transform_name |
| 799 | bindir |
| 800 | sbindir |
| 801 | libexecdir |
| 802 | datarootdir |
| 803 | datadir |
| 804 | sysconfdir |
| 805 | sharedstatedir |
| 806 | localstatedir |
| 807 | includedir |
| 808 | oldincludedir |
| 809 | docdir |
| 810 | infodir |
| 811 | htmldir |
| 812 | dvidir |
| 813 | pdfdir |
| 814 | psdir |
| 815 | libdir |
| 816 | localedir |
| 817 | mandir |
| 818 | DEFS |
| 819 | ECHO_C |
| 820 | ECHO_N |
| 821 | ECHO_T |
| 822 | LIBS |
| 823 | build_alias |
| 824 | host_alias |
| 825 | target_alias |
| 826 | INSTALL_PROGRAM |
| 827 | INSTALL_SCRIPT |
| 828 | INSTALL_DATA |
| 829 | am__isrc |
| 830 | CYGPATH_W |
| 831 | PACKAGE |
| 832 | VERSION |
| 833 | ACLOCAL |
| 834 | AUTOCONF |
| 835 | AUTOMAKE |
| 836 | AUTOHEADER |
| 837 | MAKEINFO |
| 838 | install_sh |
| 839 | STRIP |
| 840 | INSTALL_STRIP_PROGRAM |
| 841 | MKDIR_P |
| 842 | mkdir_p |
| 843 | AWK |
| 844 | SET_MAKE |
| 845 | am__leading_dot |
| 846 | AMTAR |
| 847 | am__tar |
| 848 | am__untar |
Craig Silverstein | ee44191 | 2011-11-03 23:16:21 +0000 | [diff] [blame] | 849 | CXX |
| 850 | CXXFLAGS |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 851 | LDFLAGS |
| 852 | CPPFLAGS |
Craig Silverstein | ee44191 | 2011-11-03 23:16:21 +0000 | [diff] [blame] | 853 | ac_ct_CXX |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 854 | EXEEXT |
| 855 | OBJEXT |
| 856 | DEPDIR |
| 857 | am__include |
| 858 | am__quote |
| 859 | AMDEP_TRUE |
| 860 | AMDEP_FALSE |
| 861 | AMDEPBACKSLASH |
Craig Silverstein | ee44191 | 2011-11-03 23:16:21 +0000 | [diff] [blame] | 862 | CXXDEPMODE |
| 863 | am__fastdepCXX_TRUE |
| 864 | am__fastdepCXX_FALSE |
| 865 | CC |
| 866 | CFLAGS |
| 867 | ac_ct_CC |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 868 | CCDEPMODE |
| 869 | am__fastdepCC_TRUE |
| 870 | am__fastdepCC_FALSE |
| 871 | CPP |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 872 | GCC_TRUE |
| 873 | GCC_FALSE |
| 874 | build |
| 875 | build_cpu |
| 876 | build_vendor |
| 877 | build_os |
| 878 | host |
| 879 | host_cpu |
| 880 | host_vendor |
| 881 | host_os |
| 882 | TEST_TMPDIR |
| 883 | LIBTOOL |
| 884 | SED |
| 885 | GREP |
| 886 | EGREP |
| 887 | FGREP |
| 888 | LD |
| 889 | DUMPBIN |
| 890 | ac_ct_DUMPBIN |
| 891 | NM |
| 892 | LN_S |
| 893 | OBJDUMP |
| 894 | AR |
| 895 | RANLIB |
| 896 | lt_ECHO |
| 897 | DSYMUTIL |
| 898 | NMEDIT |
| 899 | LIPO |
| 900 | OTOOL |
| 901 | OTOOL64 |
| 902 | CXXCPP |
| 903 | LIBTOOL_DEPS |
| 904 | SO_VERSION |
| 905 | acx_pthread_config |
| 906 | PTHREAD_CC |
| 907 | PTHREAD_LIBS |
| 908 | PTHREAD_CFLAGS |
| 909 | LIBSTDCXX_LA_LINKER_FLAG |
| 910 | ac_google_start_namespace |
| 911 | ac_google_end_namespace |
| 912 | ac_google_namespace |
| 913 | ac_cv___attribute__unused |
| 914 | ac_cv_have_stdint_h |
| 915 | ac_cv_have_systypes_h |
| 916 | ac_cv_have_inttypes_h |
| 917 | ac_cv_have_uint16_t |
| 918 | ac_cv_have_u_int16_t |
| 919 | ac_cv_have___int16 |
| 920 | LIBOBJS |
| 921 | LTLIBOBJS' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 922 | ac_subst_files='' |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 923 | ac_user_opts=' |
| 924 | enable_option_checking |
| 925 | enable_dependency_tracking |
| 926 | enable_fast_install |
| 927 | enable_shared |
| 928 | enable_static |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 929 | with_pic |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 930 | with_gnu_ld |
| 931 | enable_libtool_lock |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 932 | enable_namespace |
| 933 | ' |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 934 | ac_precious_vars='build_alias |
| 935 | host_alias |
| 936 | target_alias |
Craig Silverstein | ee44191 | 2011-11-03 23:16:21 +0000 | [diff] [blame] | 937 | CXX |
| 938 | CXXFLAGS |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 939 | LDFLAGS |
| 940 | LIBS |
| 941 | CPPFLAGS |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 942 | CCC |
Craig Silverstein | ee44191 | 2011-11-03 23:16:21 +0000 | [diff] [blame] | 943 | CC |
| 944 | CFLAGS |
| 945 | CPP |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 946 | CXXCPP' |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 947 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 948 | |
| 949 | # Initialize some variables set by options. |
| 950 | ac_init_help= |
| 951 | ac_init_version=false |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 952 | ac_unrecognized_opts= |
| 953 | ac_unrecognized_sep= |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 954 | # The variables have the same names as the options, with |
| 955 | # dashes changed to underlines. |
| 956 | cache_file=/dev/null |
| 957 | exec_prefix=NONE |
| 958 | no_create= |
| 959 | no_recursion= |
| 960 | prefix=NONE |
| 961 | program_prefix=NONE |
| 962 | program_suffix=NONE |
| 963 | program_transform_name=s,x,x, |
| 964 | silent= |
| 965 | site= |
| 966 | srcdir= |
| 967 | verbose= |
| 968 | x_includes=NONE |
| 969 | x_libraries=NONE |
| 970 | |
| 971 | # Installation directory options. |
| 972 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 973 | # and all the variables that are supposed to be based on exec_prefix |
| 974 | # by default will actually change. |
| 975 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 976 | # (The list follows the same order as the GNU Coding Standards.) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 977 | bindir='${exec_prefix}/bin' |
| 978 | sbindir='${exec_prefix}/sbin' |
| 979 | libexecdir='${exec_prefix}/libexec' |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 980 | datarootdir='${prefix}/share' |
| 981 | datadir='${datarootdir}' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 982 | sysconfdir='${prefix}/etc' |
| 983 | sharedstatedir='${prefix}/com' |
| 984 | localstatedir='${prefix}/var' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 985 | includedir='${prefix}/include' |
| 986 | oldincludedir='/usr/include' |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 987 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 988 | infodir='${datarootdir}/info' |
| 989 | htmldir='${docdir}' |
| 990 | dvidir='${docdir}' |
| 991 | pdfdir='${docdir}' |
| 992 | psdir='${docdir}' |
| 993 | libdir='${exec_prefix}/lib' |
| 994 | localedir='${datarootdir}/locale' |
| 995 | mandir='${datarootdir}/man' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 996 | |
| 997 | ac_prev= |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 998 | ac_dashdash= |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 999 | for ac_option |
| 1000 | do |
| 1001 | # If the previous option needs an argument, assign it. |
| 1002 | if test -n "$ac_prev"; then |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1003 | eval $ac_prev=\$ac_option |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1004 | ac_prev= |
| 1005 | continue |
| 1006 | fi |
| 1007 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1008 | case $ac_option in |
| 1009 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 1010 | *) ac_optarg=yes ;; |
| 1011 | esac |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1012 | |
| 1013 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 1014 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1015 | case $ac_dashdash$ac_option in |
| 1016 | --) |
| 1017 | ac_dashdash=yes ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1018 | |
| 1019 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 1020 | ac_prev=bindir ;; |
| 1021 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 1022 | bindir=$ac_optarg ;; |
| 1023 | |
| 1024 | -build | --build | --buil | --bui | --bu) |
| 1025 | ac_prev=build_alias ;; |
| 1026 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 1027 | build_alias=$ac_optarg ;; |
| 1028 | |
| 1029 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 1030 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 1031 | ac_prev=cache_file ;; |
| 1032 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 1033 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 1034 | cache_file=$ac_optarg ;; |
| 1035 | |
| 1036 | --config-cache | -C) |
| 1037 | cache_file=config.cache ;; |
| 1038 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1039 | -datadir | --datadir | --datadi | --datad) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1040 | ac_prev=datadir ;; |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1041 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1042 | datadir=$ac_optarg ;; |
| 1043 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1044 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 1045 | | --dataroo | --dataro | --datar) |
| 1046 | ac_prev=datarootdir ;; |
| 1047 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 1048 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 1049 | datarootdir=$ac_optarg ;; |
| 1050 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1051 | -disable-* | --disable-*) |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1052 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1053 | # Reject names that are not valid shell variable names. |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1054 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 1055 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 |
| 1056 | { (exit 1); exit 1; }; } |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1057 | ac_useropt_orig=$ac_useropt |
| 1058 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1059 | case $ac_user_opts in |
| 1060 | *" |
| 1061 | "enable_$ac_useropt" |
| 1062 | "*) ;; |
| 1063 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 1064 | ac_unrecognized_sep=', ';; |
| 1065 | esac |
| 1066 | eval enable_$ac_useropt=no ;; |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1067 | |
| 1068 | -docdir | --docdir | --docdi | --doc | --do) |
| 1069 | ac_prev=docdir ;; |
| 1070 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1071 | docdir=$ac_optarg ;; |
| 1072 | |
| 1073 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1074 | ac_prev=dvidir ;; |
| 1075 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1076 | dvidir=$ac_optarg ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1077 | |
| 1078 | -enable-* | --enable-*) |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1079 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1080 | # Reject names that are not valid shell variable names. |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1081 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 1082 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 |
| 1083 | { (exit 1); exit 1; }; } |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1084 | ac_useropt_orig=$ac_useropt |
| 1085 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1086 | case $ac_user_opts in |
| 1087 | *" |
| 1088 | "enable_$ac_useropt" |
| 1089 | "*) ;; |
| 1090 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1091 | ac_unrecognized_sep=', ';; |
| 1092 | esac |
| 1093 | eval enable_$ac_useropt=\$ac_optarg ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1094 | |
| 1095 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1096 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1097 | | --exec | --exe | --ex) |
| 1098 | ac_prev=exec_prefix ;; |
| 1099 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1100 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1101 | | --exec=* | --exe=* | --ex=*) |
| 1102 | exec_prefix=$ac_optarg ;; |
| 1103 | |
| 1104 | -gas | --gas | --ga | --g) |
| 1105 | # Obsolete; use --with-gas. |
| 1106 | with_gas=yes ;; |
| 1107 | |
| 1108 | -help | --help | --hel | --he | -h) |
| 1109 | ac_init_help=long ;; |
| 1110 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1111 | ac_init_help=recursive ;; |
| 1112 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1113 | ac_init_help=short ;; |
| 1114 | |
| 1115 | -host | --host | --hos | --ho) |
| 1116 | ac_prev=host_alias ;; |
| 1117 | -host=* | --host=* | --hos=* | --ho=*) |
| 1118 | host_alias=$ac_optarg ;; |
| 1119 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1120 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1121 | ac_prev=htmldir ;; |
| 1122 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1123 | | --ht=*) |
| 1124 | htmldir=$ac_optarg ;; |
| 1125 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1126 | -includedir | --includedir | --includedi | --included | --include \ |
| 1127 | | --includ | --inclu | --incl | --inc) |
| 1128 | ac_prev=includedir ;; |
| 1129 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1130 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1131 | includedir=$ac_optarg ;; |
| 1132 | |
| 1133 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1134 | ac_prev=infodir ;; |
| 1135 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1136 | infodir=$ac_optarg ;; |
| 1137 | |
| 1138 | -libdir | --libdir | --libdi | --libd) |
| 1139 | ac_prev=libdir ;; |
| 1140 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1141 | libdir=$ac_optarg ;; |
| 1142 | |
| 1143 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1144 | | --libexe | --libex | --libe) |
| 1145 | ac_prev=libexecdir ;; |
| 1146 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1147 | | --libexe=* | --libex=* | --libe=*) |
| 1148 | libexecdir=$ac_optarg ;; |
| 1149 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1150 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1151 | ac_prev=localedir ;; |
| 1152 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1153 | localedir=$ac_optarg ;; |
| 1154 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1155 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1156 | | --localstate | --localstat | --localsta | --localst | --locals) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1157 | ac_prev=localstatedir ;; |
| 1158 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1159 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1160 | localstatedir=$ac_optarg ;; |
| 1161 | |
| 1162 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1163 | ac_prev=mandir ;; |
| 1164 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1165 | mandir=$ac_optarg ;; |
| 1166 | |
| 1167 | -nfp | --nfp | --nf) |
| 1168 | # Obsolete; use --without-fp. |
| 1169 | with_fp=no ;; |
| 1170 | |
| 1171 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1172 | | --no-cr | --no-c | -n) |
| 1173 | no_create=yes ;; |
| 1174 | |
| 1175 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1176 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1177 | no_recursion=yes ;; |
| 1178 | |
| 1179 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1180 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1181 | | --oldin | --oldi | --old | --ol | --o) |
| 1182 | ac_prev=oldincludedir ;; |
| 1183 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1184 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1185 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1186 | oldincludedir=$ac_optarg ;; |
| 1187 | |
| 1188 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1189 | ac_prev=prefix ;; |
| 1190 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1191 | prefix=$ac_optarg ;; |
| 1192 | |
| 1193 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1194 | | --program-pre | --program-pr | --program-p) |
| 1195 | ac_prev=program_prefix ;; |
| 1196 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1197 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1198 | program_prefix=$ac_optarg ;; |
| 1199 | |
| 1200 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1201 | | --program-suf | --program-su | --program-s) |
| 1202 | ac_prev=program_suffix ;; |
| 1203 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1204 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1205 | program_suffix=$ac_optarg ;; |
| 1206 | |
| 1207 | -program-transform-name | --program-transform-name \ |
| 1208 | | --program-transform-nam | --program-transform-na \ |
| 1209 | | --program-transform-n | --program-transform- \ |
| 1210 | | --program-transform | --program-transfor \ |
| 1211 | | --program-transfo | --program-transf \ |
| 1212 | | --program-trans | --program-tran \ |
| 1213 | | --progr-tra | --program-tr | --program-t) |
| 1214 | ac_prev=program_transform_name ;; |
| 1215 | -program-transform-name=* | --program-transform-name=* \ |
| 1216 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1217 | | --program-transform-n=* | --program-transform-=* \ |
| 1218 | | --program-transform=* | --program-transfor=* \ |
| 1219 | | --program-transfo=* | --program-transf=* \ |
| 1220 | | --program-trans=* | --program-tran=* \ |
| 1221 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1222 | program_transform_name=$ac_optarg ;; |
| 1223 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1224 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1225 | ac_prev=pdfdir ;; |
| 1226 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1227 | pdfdir=$ac_optarg ;; |
| 1228 | |
| 1229 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1230 | ac_prev=psdir ;; |
| 1231 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1232 | psdir=$ac_optarg ;; |
| 1233 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1234 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1235 | | -silent | --silent | --silen | --sile | --sil) |
| 1236 | silent=yes ;; |
| 1237 | |
| 1238 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1239 | ac_prev=sbindir ;; |
| 1240 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1241 | | --sbi=* | --sb=*) |
| 1242 | sbindir=$ac_optarg ;; |
| 1243 | |
| 1244 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1245 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1246 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1247 | | --sha | --sh) |
| 1248 | ac_prev=sharedstatedir ;; |
| 1249 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1250 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1251 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1252 | | --sha=* | --sh=*) |
| 1253 | sharedstatedir=$ac_optarg ;; |
| 1254 | |
| 1255 | -site | --site | --sit) |
| 1256 | ac_prev=site ;; |
| 1257 | -site=* | --site=* | --sit=*) |
| 1258 | site=$ac_optarg ;; |
| 1259 | |
| 1260 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1261 | ac_prev=srcdir ;; |
| 1262 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1263 | srcdir=$ac_optarg ;; |
| 1264 | |
| 1265 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1266 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1267 | ac_prev=sysconfdir ;; |
| 1268 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1269 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1270 | sysconfdir=$ac_optarg ;; |
| 1271 | |
| 1272 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1273 | ac_prev=target_alias ;; |
| 1274 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1275 | target_alias=$ac_optarg ;; |
| 1276 | |
| 1277 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1278 | verbose=yes ;; |
| 1279 | |
| 1280 | -version | --version | --versio | --versi | --vers | -V) |
| 1281 | ac_init_version=: ;; |
| 1282 | |
| 1283 | -with-* | --with-*) |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1284 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1285 | # Reject names that are not valid shell variable names. |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1286 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 1287 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 |
| 1288 | { (exit 1); exit 1; }; } |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1289 | ac_useropt_orig=$ac_useropt |
| 1290 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1291 | case $ac_user_opts in |
| 1292 | *" |
| 1293 | "with_$ac_useropt" |
| 1294 | "*) ;; |
| 1295 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1296 | ac_unrecognized_sep=', ';; |
| 1297 | esac |
| 1298 | eval with_$ac_useropt=\$ac_optarg ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1299 | |
| 1300 | -without-* | --without-*) |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1301 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1302 | # Reject names that are not valid shell variable names. |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1303 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 1304 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 |
| 1305 | { (exit 1); exit 1; }; } |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1306 | ac_useropt_orig=$ac_useropt |
| 1307 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1308 | case $ac_user_opts in |
| 1309 | *" |
| 1310 | "with_$ac_useropt" |
| 1311 | "*) ;; |
| 1312 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1313 | ac_unrecognized_sep=', ';; |
| 1314 | esac |
| 1315 | eval with_$ac_useropt=no ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1316 | |
| 1317 | --x) |
| 1318 | # Obsolete; use --with-x. |
| 1319 | with_x=yes ;; |
| 1320 | |
| 1321 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1322 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1323 | ac_prev=x_includes ;; |
| 1324 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1325 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1326 | x_includes=$ac_optarg ;; |
| 1327 | |
| 1328 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1329 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1330 | ac_prev=x_libraries ;; |
| 1331 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1332 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1333 | x_libraries=$ac_optarg ;; |
| 1334 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 1335 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
| 1336 | Try \`$0 --help' for more information." >&2 |
| 1337 | { (exit 1); exit 1; }; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1338 | ;; |
| 1339 | |
| 1340 | *=*) |
| 1341 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1342 | # Reject names that are not valid shell variable names. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 1343 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1344 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1345 | { (exit 1); exit 1; }; } |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1346 | eval $ac_envvar=\$ac_optarg |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1347 | export $ac_envvar ;; |
| 1348 | |
| 1349 | *) |
| 1350 | # FIXME: should be removed in autoconf 3.0. |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1351 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1352 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1353 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1354 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1355 | ;; |
| 1356 | |
| 1357 | esac |
| 1358 | done |
| 1359 | |
| 1360 | if test -n "$ac_prev"; then |
| 1361 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 1362 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1363 | { (exit 1); exit 1; }; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1364 | fi |
| 1365 | |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1366 | if test -n "$ac_unrecognized_opts"; then |
| 1367 | case $enable_option_checking in |
| 1368 | no) ;; |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 1369 | fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2 |
| 1370 | { (exit 1); exit 1; }; } ;; |
| 1371 | *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;; |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1372 | esac |
| 1373 | fi |
| 1374 | |
| 1375 | # Check all directory arguments for consistency. |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1376 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1377 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1378 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1379 | libdir localedir mandir |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1380 | do |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1381 | eval ac_val=\$$ac_var |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1382 | # Remove trailing slashes. |
| 1383 | case $ac_val in |
| 1384 | */ ) |
| 1385 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1386 | eval $ac_var=\$ac_val;; |
| 1387 | esac |
| 1388 | # Be sure to have absolute directory names. |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1389 | case $ac_val in |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1390 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1391 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1392 | esac |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 1393 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1394 | { (exit 1); exit 1; }; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1395 | done |
| 1396 | |
| 1397 | # There might be people who depend on the old broken behavior: `$host' |
| 1398 | # used to hold the argument of --host etc. |
| 1399 | # FIXME: To remove some day. |
| 1400 | build=$build_alias |
| 1401 | host=$host_alias |
| 1402 | target=$target_alias |
| 1403 | |
| 1404 | # FIXME: To remove some day. |
| 1405 | if test "x$host_alias" != x; then |
| 1406 | if test "x$build_alias" = x; then |
| 1407 | cross_compiling=maybe |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1408 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1409 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1410 | elif test "x$build_alias" != "x$host_alias"; then |
| 1411 | cross_compiling=yes |
| 1412 | fi |
| 1413 | fi |
| 1414 | |
| 1415 | ac_tool_prefix= |
| 1416 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1417 | |
| 1418 | test "$silent" = yes && exec 6>/dev/null |
| 1419 | |
| 1420 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1421 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1422 | ac_ls_di=`ls -di .` && |
| 1423 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 1424 | { $as_echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1425 | { (exit 1); exit 1; }; } |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1426 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 1427 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1428 | { (exit 1); exit 1; }; } |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1429 | |
| 1430 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1431 | # Find the source files, if location was not specified. |
| 1432 | if test -z "$srcdir"; then |
| 1433 | ac_srcdir_defaulted=yes |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1434 | # Try the directory containing this script, then the parent directory. |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1435 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1436 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1437 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1438 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1439 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1440 | $as_echo X"$as_myself" | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1441 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1442 | s//\1/ |
| 1443 | q |
| 1444 | } |
| 1445 | /^X\(\/\/\)[^/].*/{ |
| 1446 | s//\1/ |
| 1447 | q |
| 1448 | } |
| 1449 | /^X\(\/\/\)$/{ |
| 1450 | s//\1/ |
| 1451 | q |
| 1452 | } |
| 1453 | /^X\(\/\).*/{ |
| 1454 | s//\1/ |
| 1455 | q |
| 1456 | } |
| 1457 | s/.*/./; q'` |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1458 | srcdir=$ac_confdir |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1459 | if test ! -r "$srcdir/$ac_unique_file"; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1460 | srcdir=.. |
| 1461 | fi |
| 1462 | else |
| 1463 | ac_srcdir_defaulted=no |
| 1464 | fi |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1465 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1466 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 1467 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 1468 | { (exit 1); exit 1; }; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1469 | fi |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1470 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1471 | ac_abs_confdir=`( |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 1472 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
| 1473 | { (exit 1); exit 1; }; } |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1474 | pwd)` |
| 1475 | # When building in place, set srcdir=. |
| 1476 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1477 | srcdir=. |
| 1478 | fi |
| 1479 | # Remove unnecessary trailing slashes from srcdir. |
| 1480 | # Double slashes in file names in object file debugging info |
| 1481 | # mess up M-x gdb in Emacs. |
| 1482 | case $srcdir in |
| 1483 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1484 | esac |
| 1485 | for ac_var in $ac_precious_vars; do |
| 1486 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1487 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1488 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1489 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1490 | done |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1491 | |
| 1492 | # |
| 1493 | # Report the --help message. |
| 1494 | # |
| 1495 | if test "$ac_init_help" = "long"; then |
| 1496 | # Omit some internal or obsolete options to make the list less imposing. |
| 1497 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1498 | cat <<_ACEOF |
Craig Silverstein | 404970d | 2011-07-30 02:57:58 +0000 | [diff] [blame] | 1499 | \`configure' configures gflags 1.6 to adapt to many kinds of systems. |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1500 | |
| 1501 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1502 | |
| 1503 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1504 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1505 | |
| 1506 | Defaults for the options are specified in brackets. |
| 1507 | |
| 1508 | Configuration: |
| 1509 | -h, --help display this help and exit |
| 1510 | --help=short display options specific to this package |
| 1511 | --help=recursive display the short help of all the included packages |
| 1512 | -V, --version display version information and exit |
| 1513 | -q, --quiet, --silent do not print \`checking...' messages |
| 1514 | --cache-file=FILE cache test results in FILE [disabled] |
| 1515 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1516 | -n, --no-create do not create output files |
| 1517 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1518 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1519 | Installation directories: |
| 1520 | --prefix=PREFIX install architecture-independent files in PREFIX |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1521 | [$ac_default_prefix] |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1522 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1523 | [PREFIX] |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1524 | |
| 1525 | By default, \`make install' will install all the files in |
| 1526 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1527 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1528 | for instance \`--prefix=\$HOME'. |
| 1529 | |
| 1530 | For better control, use the options below. |
| 1531 | |
| 1532 | Fine tuning of the installation directories: |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1533 | --bindir=DIR user executables [EPREFIX/bin] |
| 1534 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1535 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1536 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1537 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1538 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1539 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1540 | --includedir=DIR C header files [PREFIX/include] |
| 1541 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1542 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1543 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1544 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1545 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1546 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1547 | --docdir=DIR documentation root [DATAROOTDIR/doc/gflags] |
| 1548 | --htmldir=DIR html documentation [DOCDIR] |
| 1549 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1550 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1551 | --psdir=DIR ps documentation [DOCDIR] |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1552 | _ACEOF |
| 1553 | |
| 1554 | cat <<\_ACEOF |
| 1555 | |
| 1556 | Program names: |
| 1557 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1558 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1559 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1560 | |
| 1561 | System types: |
| 1562 | --build=BUILD configure for building on BUILD [guessed] |
| 1563 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1564 | _ACEOF |
| 1565 | fi |
| 1566 | |
| 1567 | if test -n "$ac_init_help"; then |
| 1568 | case $ac_init_help in |
Craig Silverstein | 404970d | 2011-07-30 02:57:58 +0000 | [diff] [blame] | 1569 | short | recursive ) echo "Configuration of gflags 1.6:";; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1570 | esac |
| 1571 | cat <<\_ACEOF |
| 1572 | |
| 1573 | Optional Features: |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1574 | --disable-option-checking ignore unrecognized --enable/--with options |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1575 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1576 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1577 | --disable-dependency-tracking speeds up one-time build |
| 1578 | --enable-dependency-tracking do not reject slow dependency extractors |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1579 | --enable-fast-install[=PKGS] |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1580 | optimize for fast installation [default=no] |
| 1581 | --enable-shared[=PKGS] build shared libraries [default=yes] |
| 1582 | --enable-static[=PKGS] build static libraries [default=yes] |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1583 | --disable-libtool-lock avoid locking (might break parallel builds) |
| 1584 | --enable-namespace=FOO to define these Google |
| 1585 | classes in the FOO namespace. --disable-namespace |
| 1586 | to define them in the global namespace. Default |
| 1587 | is to define them in namespace google. |
| 1588 | |
| 1589 | Optional Packages: |
| 1590 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1591 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1592 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1593 | both] |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 1594 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1595 | |
| 1596 | Some influential environment variables: |
Craig Silverstein | ee44191 | 2011-11-03 23:16:21 +0000 | [diff] [blame] | 1597 | CXX C++ compiler command |
| 1598 | CXXFLAGS C++ compiler flags |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1599 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1600 | nonstandard directory <lib dir> |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1601 | LIBS libraries to pass to the linker, e.g. -l<library> |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 1602 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1603 | you have headers in a nonstandard directory <include dir> |
Craig Silverstein | ee44191 | 2011-11-03 23:16:21 +0000 | [diff] [blame] | 1604 | CC C compiler command |
| 1605 | CFLAGS C compiler flags |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1606 | CPP C preprocessor |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1607 | CXXCPP C++ preprocessor |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1608 | |
| 1609 | Use these variables to override the choices made by `configure' or to help |
| 1610 | it to find libraries and programs with nonstandard names/locations. |
| 1611 | |
| 1612 | Report bugs to <opensource@google.com>. |
| 1613 | _ACEOF |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1614 | ac_status=$? |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1615 | fi |
| 1616 | |
| 1617 | if test "$ac_init_help" = "recursive"; then |
| 1618 | # If there are subdirs, report their specific --help. |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1619 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1620 | test -d "$ac_dir" || |
| 1621 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1622 | continue |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1623 | ac_builddir=. |
| 1624 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1625 | case "$ac_dir" in |
| 1626 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1627 | *) |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1628 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1629 | # A ".." for each directory in $ac_dir_suffix. |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1630 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1631 | case $ac_top_builddir_sub in |
| 1632 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1633 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1634 | esac ;; |
| 1635 | esac |
| 1636 | ac_abs_top_builddir=$ac_pwd |
| 1637 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1638 | # for backward compatibility: |
| 1639 | ac_top_builddir=$ac_top_build_prefix |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1640 | |
| 1641 | case $srcdir in |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1642 | .) # We are building in place. |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1643 | ac_srcdir=. |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1644 | ac_top_srcdir=$ac_top_builddir_sub |
| 1645 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1646 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1647 | ac_srcdir=$srcdir$ac_dir_suffix; |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1648 | ac_top_srcdir=$srcdir |
| 1649 | ac_abs_top_srcdir=$srcdir ;; |
| 1650 | *) # Relative name. |
| 1651 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1652 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1653 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1654 | esac |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1655 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1656 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1657 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1658 | # Check for guested configure. |
| 1659 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1660 | echo && |
| 1661 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1662 | elif test -f "$ac_srcdir/configure"; then |
| 1663 | echo && |
| 1664 | $SHELL "$ac_srcdir/configure" --help=recursive |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1665 | else |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1666 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1667 | fi || ac_status=$? |
| 1668 | cd "$ac_pwd" || { ac_status=$?; break; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1669 | done |
| 1670 | fi |
| 1671 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1672 | test -n "$ac_init_help" && exit $ac_status |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1673 | if $ac_init_version; then |
| 1674 | cat <<\_ACEOF |
Craig Silverstein | 404970d | 2011-07-30 02:57:58 +0000 | [diff] [blame] | 1675 | gflags configure 1.6 |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 1676 | generated by GNU Autoconf 2.62 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1677 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 1678 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1679 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1680 | This configure script is free software; the Free Software Foundation |
| 1681 | gives unlimited permission to copy, distribute and modify it. |
| 1682 | _ACEOF |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1683 | exit |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1684 | fi |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1685 | cat >config.log <<_ACEOF |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1686 | This file contains any messages produced by compilers while |
| 1687 | running configure, to aid debugging if configure makes a mistake. |
| 1688 | |
Craig Silverstein | 404970d | 2011-07-30 02:57:58 +0000 | [diff] [blame] | 1689 | It was created by gflags $as_me 1.6, which was |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 1690 | generated by GNU Autoconf 2.62. Invocation command line was |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1691 | |
| 1692 | $ $0 $@ |
| 1693 | |
| 1694 | _ACEOF |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1695 | exec 5>>config.log |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1696 | { |
| 1697 | cat <<_ASUNAME |
| 1698 | ## --------- ## |
| 1699 | ## Platform. ## |
| 1700 | ## --------- ## |
| 1701 | |
| 1702 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1703 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1704 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1705 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1706 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1707 | |
| 1708 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1709 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1710 | |
| 1711 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1712 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1713 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1714 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1715 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1716 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1717 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1718 | |
| 1719 | _ASUNAME |
| 1720 | |
| 1721 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1722 | for as_dir in $PATH |
| 1723 | do |
| 1724 | IFS=$as_save_IFS |
| 1725 | test -z "$as_dir" && as_dir=. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 1726 | $as_echo "PATH: $as_dir" |
| 1727 | done |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1728 | IFS=$as_save_IFS |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1729 | |
| 1730 | } >&5 |
| 1731 | |
| 1732 | cat >&5 <<_ACEOF |
| 1733 | |
| 1734 | |
| 1735 | ## ----------- ## |
| 1736 | ## Core tests. ## |
| 1737 | ## ----------- ## |
| 1738 | |
| 1739 | _ACEOF |
| 1740 | |
| 1741 | |
| 1742 | # Keep a trace of the command line. |
| 1743 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1744 | # Strip out --silent because we don't want to record it for future runs. |
| 1745 | # Also quote any args containing shell meta-characters. |
| 1746 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1747 | ac_configure_args= |
| 1748 | ac_configure_args0= |
| 1749 | ac_configure_args1= |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1750 | ac_must_keep_next=false |
| 1751 | for ac_pass in 1 2 |
| 1752 | do |
| 1753 | for ac_arg |
| 1754 | do |
| 1755 | case $ac_arg in |
| 1756 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1757 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1758 | | -silent | --silent | --silen | --sile | --sil) |
| 1759 | continue ;; |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1760 | *\'*) |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1761 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1762 | esac |
| 1763 | case $ac_pass in |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 1764 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1765 | 2) |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 1766 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1767 | if test $ac_must_keep_next = true; then |
| 1768 | ac_must_keep_next=false # Got value, back to normal. |
| 1769 | else |
| 1770 | case $ac_arg in |
| 1771 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1772 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1773 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1774 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1775 | case "$ac_configure_args0 " in |
| 1776 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1777 | esac |
| 1778 | ;; |
| 1779 | -* ) ac_must_keep_next=true ;; |
| 1780 | esac |
| 1781 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 1782 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1783 | ;; |
| 1784 | esac |
| 1785 | done |
| 1786 | done |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 1787 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1788 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1789 | |
| 1790 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1791 | # config.log. We remove comments because anyway the quotes in there |
| 1792 | # would cause problems or look ugly. |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1793 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1794 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1795 | trap 'exit_status=$? |
| 1796 | # Save into config.log some information that might help in debugging. |
| 1797 | { |
| 1798 | echo |
| 1799 | |
| 1800 | cat <<\_ASBOX |
| 1801 | ## ---------------- ## |
| 1802 | ## Cache variables. ## |
| 1803 | ## ---------------- ## |
| 1804 | _ASBOX |
| 1805 | echo |
| 1806 | # The following way of writing the cache mishandles newlines in values, |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1807 | ( |
| 1808 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1809 | eval ac_val=\$$ac_var |
| 1810 | case $ac_val in #( |
| 1811 | *${as_nl}*) |
| 1812 | case $ac_var in #( |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 1813 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1814 | $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1815 | esac |
| 1816 | case $ac_var in #( |
| 1817 | _ | IFS | as_nl) ;; #( |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1818 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 1819 | *) $as_unset $ac_var ;; |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1820 | esac ;; |
| 1821 | esac |
| 1822 | done |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1823 | (set) 2>&1 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1824 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1825 | *${as_nl}ac_space=\ *) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1826 | sed -n \ |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1827 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1828 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1829 | ;; #( |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1830 | *) |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1831 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1832 | ;; |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1833 | esac | |
| 1834 | sort |
| 1835 | ) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1836 | echo |
| 1837 | |
| 1838 | cat <<\_ASBOX |
| 1839 | ## ----------------- ## |
| 1840 | ## Output variables. ## |
| 1841 | ## ----------------- ## |
| 1842 | _ASBOX |
| 1843 | echo |
| 1844 | for ac_var in $ac_subst_vars |
| 1845 | do |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1846 | eval ac_val=\$$ac_var |
| 1847 | case $ac_val in |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1848 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1849 | esac |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1850 | $as_echo "$ac_var='\''$ac_val'\''" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1851 | done | sort |
| 1852 | echo |
| 1853 | |
| 1854 | if test -n "$ac_subst_files"; then |
| 1855 | cat <<\_ASBOX |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1856 | ## ------------------- ## |
| 1857 | ## File substitutions. ## |
| 1858 | ## ------------------- ## |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1859 | _ASBOX |
| 1860 | echo |
| 1861 | for ac_var in $ac_subst_files |
| 1862 | do |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1863 | eval ac_val=\$$ac_var |
| 1864 | case $ac_val in |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1865 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1866 | esac |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1867 | $as_echo "$ac_var='\''$ac_val'\''" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1868 | done | sort |
| 1869 | echo |
| 1870 | fi |
| 1871 | |
| 1872 | if test -s confdefs.h; then |
| 1873 | cat <<\_ASBOX |
| 1874 | ## ----------- ## |
| 1875 | ## confdefs.h. ## |
| 1876 | ## ----------- ## |
| 1877 | _ASBOX |
| 1878 | echo |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1879 | cat confdefs.h |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1880 | echo |
| 1881 | fi |
| 1882 | test "$ac_signal" != 0 && |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1883 | $as_echo "$as_me: caught signal $ac_signal" |
| 1884 | $as_echo "$as_me: exit $exit_status" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1885 | } >&5 |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1886 | rm -f core *.core core.conftest.* && |
| 1887 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1888 | exit $exit_status |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1889 | ' 0 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1890 | for ac_signal in 1 2 13 15; do |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 1891 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1892 | done |
| 1893 | ac_signal=0 |
| 1894 | |
| 1895 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1896 | rm -f -r conftest* confdefs.h |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1897 | |
| 1898 | # Predefined preprocessor variables. |
| 1899 | |
| 1900 | cat >>confdefs.h <<_ACEOF |
| 1901 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1902 | _ACEOF |
| 1903 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 1904 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1905 | cat >>confdefs.h <<_ACEOF |
| 1906 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1907 | _ACEOF |
| 1908 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 1909 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1910 | cat >>confdefs.h <<_ACEOF |
| 1911 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1912 | _ACEOF |
| 1913 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 1914 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1915 | cat >>confdefs.h <<_ACEOF |
| 1916 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1917 | _ACEOF |
| 1918 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1919 | |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1920 | cat >>confdefs.h <<_ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 1921 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1922 | _ACEOF |
| 1923 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1924 | |
| 1925 | # Let the site file select an alternate cache file if it wants to. |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1926 | # Prefer an explicitly selected file to automatically selected ones. |
| 1927 | ac_site_file1=NONE |
| 1928 | ac_site_file2=NONE |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1929 | if test -n "$CONFIG_SITE"; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1930 | ac_site_file1=$CONFIG_SITE |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1931 | elif test "x$prefix" != xNONE; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1932 | ac_site_file1=$prefix/share/config.site |
| 1933 | ac_site_file2=$prefix/etc/config.site |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1934 | else |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1935 | ac_site_file1=$ac_default_prefix/share/config.site |
| 1936 | ac_site_file2=$ac_default_prefix/etc/config.site |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1937 | fi |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1938 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1939 | do |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1940 | test "x$ac_site_file" = xNONE && continue |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 1941 | if test -r "$ac_site_file"; then |
| 1942 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1943 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1944 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1945 | . "$ac_site_file" |
| 1946 | fi |
| 1947 | done |
| 1948 | |
| 1949 | if test -r "$cache_file"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 1950 | # Some versions of bash will fail to source /dev/null (special |
| 1951 | # files actually), so we avoid doing that. |
| 1952 | if test -f "$cache_file"; then |
| 1953 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1954 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1955 | case $cache_file in |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1956 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1957 | *) . "./$cache_file";; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1958 | esac |
| 1959 | fi |
| 1960 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 1961 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1962 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1963 | >$cache_file |
| 1964 | fi |
| 1965 | |
| 1966 | # Check that the precious variables saved in the cache have kept the same |
| 1967 | # value. |
| 1968 | ac_cache_corrupted=false |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1969 | for ac_var in $ac_precious_vars; do |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1970 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1971 | eval ac_new_set=\$ac_env_${ac_var}_set |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 1972 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1973 | eval ac_new_val=\$ac_env_${ac_var}_value |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1974 | case $ac_old_set,$ac_new_set in |
| 1975 | set,) |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 1976 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1977 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1978 | ac_cache_corrupted=: ;; |
| 1979 | ,set) |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 1980 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1981 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 1982 | ac_cache_corrupted=: ;; |
| 1983 | ,);; |
| 1984 | *) |
| 1985 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1986 | # differences in whitespace do not lead to failure. |
| 1987 | ac_old_val_w=`echo x $ac_old_val` |
| 1988 | ac_new_val_w=`echo x $ac_new_val` |
| 1989 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 1990 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1991 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1992 | ac_cache_corrupted=: |
| 1993 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 1994 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1995 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 1996 | eval $ac_var=\$ac_old_val |
| 1997 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 1998 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 1999 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2000 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 2001 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2002 | fi;; |
| 2003 | esac |
| 2004 | # Pass precious variables to config.status. |
| 2005 | if test "$ac_new_set" = set; then |
| 2006 | case $ac_new_val in |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 2007 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2008 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2009 | esac |
| 2010 | case " $ac_configure_args " in |
| 2011 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2012 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2013 | esac |
| 2014 | fi |
| 2015 | done |
| 2016 | if $ac_cache_corrupted; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2017 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 2018 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2019 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 2020 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 2021 | { (exit 1); exit 1; }; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2022 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2023 | |
| 2024 | |
| 2025 | |
| 2026 | |
| 2027 | |
| 2028 | |
| 2029 | |
| 2030 | |
| 2031 | |
| 2032 | |
| 2033 | |
| 2034 | |
| 2035 | |
| 2036 | |
| 2037 | |
| 2038 | |
| 2039 | |
| 2040 | |
| 2041 | |
| 2042 | |
| 2043 | |
| 2044 | |
| 2045 | |
| 2046 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 2047 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2048 | ac_ext=c |
| 2049 | ac_cpp='$CPP $CPPFLAGS' |
| 2050 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2051 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2052 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2053 | |
| 2054 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 2055 | # Update this value for every release! (A:B:C will map to foo.so.(A-C).C.B) |
| 2056 | # http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html |
Craig Silverstein | 404970d | 2011-07-30 02:57:58 +0000 | [diff] [blame] | 2057 | SO_VERSION=2:0:0 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 2058 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2059 | # The argument here is just something that should be in the current directory |
| 2060 | # (for sanity checking) |
| 2061 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 2062 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2063 | am__api_version='1.10' |
| 2064 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2065 | ac_aux_dir= |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 2066 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2067 | if test -f "$ac_dir/install-sh"; then |
| 2068 | ac_aux_dir=$ac_dir |
| 2069 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2070 | break |
| 2071 | elif test -f "$ac_dir/install.sh"; then |
| 2072 | ac_aux_dir=$ac_dir |
| 2073 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2074 | break |
| 2075 | elif test -f "$ac_dir/shtool"; then |
| 2076 | ac_aux_dir=$ac_dir |
| 2077 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2078 | break |
| 2079 | fi |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2080 | done |
| 2081 | if test -z "$ac_aux_dir"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2082 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
| 2083 | $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
| 2084 | { (exit 1); exit 1; }; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2085 | fi |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 2086 | |
| 2087 | # These three variables are undocumented and unsupported, |
| 2088 | # and are intended to be withdrawn in a future Autoconf release. |
| 2089 | # They can cause serious problems if a builder's source tree is in a directory |
| 2090 | # whose full name contains unusual characters. |
| 2091 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2092 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2093 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2094 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2095 | |
| 2096 | # Find a good install program. We prefer a C program (faster), |
| 2097 | # so one script is as good as another. But avoid the broken or |
| 2098 | # incompatible versions: |
| 2099 | # SysV /etc/install, /usr/sbin/install |
| 2100 | # SunOS /usr/etc/install |
| 2101 | # IRIX /sbin/install |
| 2102 | # AIX /bin/install |
| 2103 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 2104 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 2105 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 2106 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 2107 | # OS/2's system install, which has a completely different semantic |
| 2108 | # ./install, which can be erroneously created by make from ./install.sh. |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 2109 | # Reject install programs that cannot install multiple files. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2110 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 2111 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2112 | if test -z "$INSTALL"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2113 | if test "${ac_cv_path_install+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 2114 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2115 | else |
| 2116 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2117 | for as_dir in $PATH |
| 2118 | do |
| 2119 | IFS=$as_save_IFS |
| 2120 | test -z "$as_dir" && as_dir=. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2121 | # Account for people who put trailing slashes in PATH elements. |
| 2122 | case $as_dir/ in |
| 2123 | ./ | .// | /cC/* | \ |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2124 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2125 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2126 | /usr/ucb/* ) ;; |
| 2127 | *) |
| 2128 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 2129 | # Don't use installbsd from OSF since it installs stuff as root |
| 2130 | # by default. |
| 2131 | for ac_prog in ginstall scoinst install; do |
| 2132 | for ac_exec_ext in '' $ac_executable_extensions; do |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 2133 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2134 | if test $ac_prog = install && |
| 2135 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2136 | # AIX install. It has an incompatible calling convention. |
| 2137 | : |
| 2138 | elif test $ac_prog = install && |
| 2139 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2140 | # program-specific install script used by HP pwplus--don't use. |
| 2141 | : |
| 2142 | else |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 2143 | rm -rf conftest.one conftest.two conftest.dir |
| 2144 | echo one > conftest.one |
| 2145 | echo two > conftest.two |
| 2146 | mkdir conftest.dir |
| 2147 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 2148 | test -s conftest.one && test -s conftest.two && |
| 2149 | test -s conftest.dir/conftest.one && |
| 2150 | test -s conftest.dir/conftest.two |
| 2151 | then |
| 2152 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 2153 | break 3 |
| 2154 | fi |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2155 | fi |
| 2156 | fi |
| 2157 | done |
| 2158 | done |
| 2159 | ;; |
| 2160 | esac |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 2161 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2162 | done |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 2163 | IFS=$as_save_IFS |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2164 | |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 2165 | rm -rf conftest.one conftest.two conftest.dir |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2166 | |
| 2167 | fi |
| 2168 | if test "${ac_cv_path_install+set}" = set; then |
| 2169 | INSTALL=$ac_cv_path_install |
| 2170 | else |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 2171 | # As a last resort, use the slow shell script. Don't cache a |
| 2172 | # value for INSTALL within a source directory, because that will |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2173 | # break other packages using the cache if that directory is |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 2174 | # removed, or if the value is a relative name. |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2175 | INSTALL=$ac_install_sh |
| 2176 | fi |
| 2177 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2178 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 2179 | $as_echo "$INSTALL" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2180 | |
| 2181 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2182 | # It thinks the first close brace ends the variable substitution. |
| 2183 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2184 | |
| 2185 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 2186 | |
| 2187 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2188 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2189 | { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 2190 | $as_echo_n "checking whether build environment is sane... " >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2191 | # Just in case |
| 2192 | sleep 1 |
| 2193 | echo timestamp > conftest.file |
| 2194 | # Do `set' in a subshell so we don't clobber the current shell's |
| 2195 | # arguments. Must try -L first in case configure is actually a |
| 2196 | # symlink; some systems play weird games with the mod time of symlinks |
| 2197 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 2198 | # directory). |
| 2199 | if ( |
| 2200 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
| 2201 | if test "$*" = "X"; then |
| 2202 | # -L didn't work. |
| 2203 | set X `ls -t $srcdir/configure conftest.file` |
| 2204 | fi |
| 2205 | rm -f conftest.file |
| 2206 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 2207 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 2208 | |
| 2209 | # If neither matched, then we have a broken ls. This can happen |
| 2210 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 2211 | # broken ls alias from the environment. This has actually |
| 2212 | # happened. Such a system could not be considered "sane". |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2213 | { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
| 2214 | alias in your environment" >&5 |
| 2215 | $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
| 2216 | alias in your environment" >&2;} |
| 2217 | { (exit 1); exit 1; }; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2218 | fi |
| 2219 | |
| 2220 | test "$2" = conftest.file |
| 2221 | ) |
| 2222 | then |
| 2223 | # Ok. |
| 2224 | : |
| 2225 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2226 | { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
| 2227 | Check your system clock" >&5 |
| 2228 | $as_echo "$as_me: error: newly created file is older than distributed files! |
| 2229 | Check your system clock" >&2;} |
| 2230 | { (exit 1); exit 1; }; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2231 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2232 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 2233 | $as_echo "yes" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2234 | test "$program_prefix" != NONE && |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 2235 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2236 | # Use a double $ so make ignores it. |
| 2237 | test "$program_suffix" != NONE && |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 2238 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 2239 | # Double any \ or $. |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2240 | # By default was `s,x,x', remove it if useless. |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 2241 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 2242 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2243 | |
| 2244 | # expand $ac_aux_dir to an absolute path |
| 2245 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 2246 | |
| 2247 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
| 2248 | # Use eval to expand $SHELL |
| 2249 | if eval "$MISSING --run true"; then |
| 2250 | am_missing_run="$MISSING --run " |
| 2251 | else |
| 2252 | am_missing_run= |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2253 | { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 2254 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2255 | fi |
| 2256 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2257 | { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
| 2258 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
| 2259 | if test -z "$MKDIR_P"; then |
| 2260 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 2261 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2262 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2263 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2264 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 2265 | do |
| 2266 | IFS=$as_save_IFS |
| 2267 | test -z "$as_dir" && as_dir=. |
| 2268 | for ac_prog in mkdir gmkdir; do |
| 2269 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2270 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
| 2271 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 2272 | 'mkdir (GNU coreutils) '* | \ |
| 2273 | 'mkdir (coreutils) '* | \ |
| 2274 | 'mkdir (fileutils) '4.1*) |
| 2275 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 2276 | break 3;; |
| 2277 | esac |
| 2278 | done |
| 2279 | done |
| 2280 | done |
| 2281 | IFS=$as_save_IFS |
| 2282 | |
| 2283 | fi |
| 2284 | |
| 2285 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 2286 | MKDIR_P="$ac_cv_path_mkdir -p" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2287 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2288 | # As a last resort, use the slow shell script. Don't cache a |
| 2289 | # value for MKDIR_P within a source directory, because that will |
| 2290 | # break other packages using the cache if that directory is |
| 2291 | # removed, or if the value is a relative name. |
| 2292 | test -d ./--version && rmdir ./--version |
| 2293 | MKDIR_P="$ac_install_sh -d" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2294 | fi |
| 2295 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2296 | { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
| 2297 | $as_echo "$MKDIR_P" >&6; } |
| 2298 | |
| 2299 | mkdir_p="$MKDIR_P" |
| 2300 | case $mkdir_p in |
| 2301 | [\\/$]* | ?:[\\/]*) ;; |
| 2302 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
| 2303 | esac |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2304 | |
| 2305 | for ac_prog in gawk mawk nawk awk |
| 2306 | do |
| 2307 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2308 | set dummy $ac_prog; ac_word=$2 |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2309 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 2310 | $as_echo_n "checking for $ac_word... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2311 | if test "${ac_cv_prog_AWK+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 2312 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2313 | else |
| 2314 | if test -n "$AWK"; then |
| 2315 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 2316 | else |
| 2317 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2318 | for as_dir in $PATH |
| 2319 | do |
| 2320 | IFS=$as_save_IFS |
| 2321 | test -z "$as_dir" && as_dir=. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2322 | for ac_exec_ext in '' $ac_executable_extensions; do |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 2323 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2324 | ac_cv_prog_AWK="$ac_prog" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2325 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2326 | break 2 |
| 2327 | fi |
| 2328 | done |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2329 | done |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 2330 | IFS=$as_save_IFS |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2331 | |
| 2332 | fi |
| 2333 | fi |
| 2334 | AWK=$ac_cv_prog_AWK |
| 2335 | if test -n "$AWK"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2336 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 2337 | $as_echo "$AWK" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2338 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2339 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 2340 | $as_echo "no" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2341 | fi |
| 2342 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 2343 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2344 | test -n "$AWK" && break |
| 2345 | done |
| 2346 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2347 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 2348 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 2349 | set x ${MAKE-make} |
| 2350 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2351 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 2352 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2353 | else |
| 2354 | cat >conftest.make <<\_ACEOF |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 2355 | SHELL = /bin/sh |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2356 | all: |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 2357 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2358 | _ACEOF |
| 2359 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 2360 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 2361 | *@@@%%%=?*=@@@%%%*) |
| 2362 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 2363 | *) |
| 2364 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 2365 | esac |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2366 | rm -f conftest.make |
| 2367 | fi |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 2368 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2369 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 2370 | $as_echo "yes" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2371 | SET_MAKE= |
| 2372 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2373 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 2374 | $as_echo "no" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2375 | SET_MAKE="MAKE=${MAKE-make}" |
| 2376 | fi |
| 2377 | |
| 2378 | rm -rf .tst 2>/dev/null |
| 2379 | mkdir .tst 2>/dev/null |
| 2380 | if test -d .tst; then |
| 2381 | am__leading_dot=. |
| 2382 | else |
| 2383 | am__leading_dot=_ |
| 2384 | fi |
| 2385 | rmdir .tst 2>/dev/null |
| 2386 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2387 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 2388 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 2389 | # is not polluted with repeated "-I." |
| 2390 | am__isrc=' -I$(srcdir)' |
| 2391 | # test to see if srcdir already configured |
| 2392 | if test -f $srcdir/config.status; then |
| 2393 | { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
| 2394 | $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
| 2395 | { (exit 1); exit 1; }; } |
| 2396 | fi |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2397 | fi |
| 2398 | |
| 2399 | # test whether we have cygpath |
| 2400 | if test -z "$CYGPATH_W"; then |
| 2401 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 2402 | CYGPATH_W='cygpath -w' |
| 2403 | else |
| 2404 | CYGPATH_W=echo |
| 2405 | fi |
| 2406 | fi |
| 2407 | |
| 2408 | |
| 2409 | # Define the identity of the package. |
| 2410 | PACKAGE='gflags' |
Craig Silverstein | 404970d | 2011-07-30 02:57:58 +0000 | [diff] [blame] | 2411 | VERSION='1.6' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2412 | |
| 2413 | |
| 2414 | cat >>confdefs.h <<_ACEOF |
| 2415 | #define PACKAGE "$PACKAGE" |
| 2416 | _ACEOF |
| 2417 | |
| 2418 | |
| 2419 | cat >>confdefs.h <<_ACEOF |
| 2420 | #define VERSION "$VERSION" |
| 2421 | _ACEOF |
| 2422 | |
| 2423 | # Some tools Automake needs. |
| 2424 | |
| 2425 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 2426 | |
| 2427 | |
| 2428 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 2429 | |
| 2430 | |
| 2431 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 2432 | |
| 2433 | |
| 2434 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 2435 | |
| 2436 | |
| 2437 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 2438 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2439 | install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2440 | |
| 2441 | # Installed binaries are usually stripped using `strip' when the user |
| 2442 | # run `make install-strip'. However `strip' might not be the right |
| 2443 | # tool to use in cross-compilation environments, therefore Automake |
| 2444 | # will honor the `STRIP' environment variable to overrule this program. |
| 2445 | if test "$cross_compiling" != no; then |
| 2446 | if test -n "$ac_tool_prefix"; then |
| 2447 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 2448 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2449 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 2450 | $as_echo_n "checking for $ac_word... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2451 | if test "${ac_cv_prog_STRIP+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 2452 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2453 | else |
| 2454 | if test -n "$STRIP"; then |
| 2455 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2456 | else |
| 2457 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2458 | for as_dir in $PATH |
| 2459 | do |
| 2460 | IFS=$as_save_IFS |
| 2461 | test -z "$as_dir" && as_dir=. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2462 | for ac_exec_ext in '' $ac_executable_extensions; do |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 2463 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2464 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2465 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2466 | break 2 |
| 2467 | fi |
| 2468 | done |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2469 | done |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 2470 | IFS=$as_save_IFS |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2471 | |
| 2472 | fi |
| 2473 | fi |
| 2474 | STRIP=$ac_cv_prog_STRIP |
| 2475 | if test -n "$STRIP"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2476 | { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 2477 | $as_echo "$STRIP" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2478 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2479 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 2480 | $as_echo "no" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2481 | fi |
| 2482 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 2483 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2484 | fi |
| 2485 | if test -z "$ac_cv_prog_STRIP"; then |
| 2486 | ac_ct_STRIP=$STRIP |
| 2487 | # Extract the first word of "strip", so it can be a program name with args. |
| 2488 | set dummy strip; ac_word=$2 |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2489 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 2490 | $as_echo_n "checking for $ac_word... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2491 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 2492 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2493 | else |
| 2494 | if test -n "$ac_ct_STRIP"; then |
| 2495 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 2496 | else |
| 2497 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2498 | for as_dir in $PATH |
| 2499 | do |
| 2500 | IFS=$as_save_IFS |
| 2501 | test -z "$as_dir" && as_dir=. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2502 | for ac_exec_ext in '' $ac_executable_extensions; do |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 2503 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2504 | ac_cv_prog_ac_ct_STRIP="strip" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2505 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2506 | break 2 |
| 2507 | fi |
| 2508 | done |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2509 | done |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 2510 | IFS=$as_save_IFS |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2511 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2512 | fi |
| 2513 | fi |
| 2514 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 2515 | if test -n "$ac_ct_STRIP"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2516 | { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 2517 | $as_echo "$ac_ct_STRIP" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2518 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2519 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 2520 | $as_echo "no" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2521 | fi |
| 2522 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 2523 | if test "x$ac_ct_STRIP" = x; then |
| 2524 | STRIP=":" |
| 2525 | else |
| 2526 | case $cross_compiling:$ac_tool_warned in |
| 2527 | yes:) |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2528 | { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2529 | whose name does not start with the host triplet. If you think this |
| 2530 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2531 | $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2532 | whose name does not start with the host triplet. If you think this |
| 2533 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 2534 | ac_tool_warned=yes ;; |
| 2535 | esac |
| 2536 | STRIP=$ac_ct_STRIP |
| 2537 | fi |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2538 | else |
| 2539 | STRIP="$ac_cv_prog_STRIP" |
| 2540 | fi |
| 2541 | |
| 2542 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 2543 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2544 | |
| 2545 | # We need awk for the "check" target. The system "awk" is bad on |
| 2546 | # some platforms. |
| 2547 | # Always define AMTAR for backward compatibility. |
| 2548 | |
| 2549 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 2550 | |
| 2551 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
| 2552 | |
| 2553 | |
| 2554 | |
| 2555 | |
| 2556 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 2557 | ac_config_headers="$ac_config_headers src/config.h" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 2558 | |
| 2559 | |
| 2560 | # Checks for programs. |
Craig Silverstein | ee44191 | 2011-11-03 23:16:21 +0000 | [diff] [blame] | 2561 | ac_ext=cpp |
| 2562 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 2563 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2564 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2565 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 2566 | if test -z "$CXX"; then |
| 2567 | if test -n "$CCC"; then |
| 2568 | CXX=$CCC |
| 2569 | else |
| 2570 | if test -n "$ac_tool_prefix"; then |
| 2571 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 2572 | do |
| 2573 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2574 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2575 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2576 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2577 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 2578 | $as_echo_n "(cached) " >&6 |
| 2579 | else |
| 2580 | if test -n "$CXX"; then |
| 2581 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 2582 | else |
| 2583 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2584 | for as_dir in $PATH |
| 2585 | do |
| 2586 | IFS=$as_save_IFS |
| 2587 | test -z "$as_dir" && as_dir=. |
| 2588 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2589 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2590 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 2591 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2592 | break 2 |
| 2593 | fi |
| 2594 | done |
| 2595 | done |
| 2596 | IFS=$as_save_IFS |
| 2597 | |
| 2598 | fi |
| 2599 | fi |
| 2600 | CXX=$ac_cv_prog_CXX |
| 2601 | if test -n "$CXX"; then |
| 2602 | { $as_echo "$as_me:$LINENO: result: $CXX" >&5 |
| 2603 | $as_echo "$CXX" >&6; } |
| 2604 | else |
| 2605 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2606 | $as_echo "no" >&6; } |
| 2607 | fi |
| 2608 | |
| 2609 | |
| 2610 | test -n "$CXX" && break |
| 2611 | done |
| 2612 | fi |
| 2613 | if test -z "$CXX"; then |
| 2614 | ac_ct_CXX=$CXX |
| 2615 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 2616 | do |
| 2617 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2618 | set dummy $ac_prog; ac_word=$2 |
| 2619 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2620 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2621 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 2622 | $as_echo_n "(cached) " >&6 |
| 2623 | else |
| 2624 | if test -n "$ac_ct_CXX"; then |
| 2625 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 2626 | else |
| 2627 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2628 | for as_dir in $PATH |
| 2629 | do |
| 2630 | IFS=$as_save_IFS |
| 2631 | test -z "$as_dir" && as_dir=. |
| 2632 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2633 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2634 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 2635 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2636 | break 2 |
| 2637 | fi |
| 2638 | done |
| 2639 | done |
| 2640 | IFS=$as_save_IFS |
| 2641 | |
| 2642 | fi |
| 2643 | fi |
| 2644 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 2645 | if test -n "$ac_ct_CXX"; then |
| 2646 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 2647 | $as_echo "$ac_ct_CXX" >&6; } |
| 2648 | else |
| 2649 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2650 | $as_echo "no" >&6; } |
| 2651 | fi |
| 2652 | |
| 2653 | |
| 2654 | test -n "$ac_ct_CXX" && break |
| 2655 | done |
| 2656 | |
| 2657 | if test "x$ac_ct_CXX" = x; then |
| 2658 | CXX="g++" |
| 2659 | else |
| 2660 | case $cross_compiling:$ac_tool_warned in |
| 2661 | yes:) |
| 2662 | { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2663 | whose name does not start with the host triplet. If you think this |
| 2664 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2665 | $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2666 | whose name does not start with the host triplet. If you think this |
| 2667 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2668 | ac_tool_warned=yes ;; |
| 2669 | esac |
| 2670 | CXX=$ac_ct_CXX |
| 2671 | fi |
| 2672 | fi |
| 2673 | |
| 2674 | fi |
| 2675 | fi |
| 2676 | # Provide some information about the compiler. |
| 2677 | $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
| 2678 | set X $ac_compile |
| 2679 | ac_compiler=$2 |
| 2680 | { (ac_try="$ac_compiler --version >&5" |
| 2681 | case "(($ac_try" in |
| 2682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2683 | *) ac_try_echo=$ac_try;; |
| 2684 | esac |
| 2685 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2686 | $as_echo "$ac_try_echo") >&5 |
| 2687 | (eval "$ac_compiler --version >&5") 2>&5 |
| 2688 | ac_status=$? |
| 2689 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2690 | (exit $ac_status); } |
| 2691 | { (ac_try="$ac_compiler -v >&5" |
| 2692 | case "(($ac_try" in |
| 2693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2694 | *) ac_try_echo=$ac_try;; |
| 2695 | esac |
| 2696 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2697 | $as_echo "$ac_try_echo") >&5 |
| 2698 | (eval "$ac_compiler -v >&5") 2>&5 |
| 2699 | ac_status=$? |
| 2700 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2701 | (exit $ac_status); } |
| 2702 | { (ac_try="$ac_compiler -V >&5" |
| 2703 | case "(($ac_try" in |
| 2704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2705 | *) ac_try_echo=$ac_try;; |
| 2706 | esac |
| 2707 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2708 | $as_echo "$ac_try_echo") >&5 |
| 2709 | (eval "$ac_compiler -V >&5") 2>&5 |
| 2710 | ac_status=$? |
| 2711 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2712 | (exit $ac_status); } |
| 2713 | |
| 2714 | cat >conftest.$ac_ext <<_ACEOF |
| 2715 | /* confdefs.h. */ |
| 2716 | _ACEOF |
| 2717 | cat confdefs.h >>conftest.$ac_ext |
| 2718 | cat >>conftest.$ac_ext <<_ACEOF |
| 2719 | /* end confdefs.h. */ |
| 2720 | |
| 2721 | int |
| 2722 | main () |
| 2723 | { |
| 2724 | |
| 2725 | ; |
| 2726 | return 0; |
| 2727 | } |
| 2728 | _ACEOF |
| 2729 | ac_clean_files_save=$ac_clean_files |
| 2730 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
| 2731 | # Try to create an executable without -o first, disregard a.out. |
| 2732 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2733 | # of exeext. |
| 2734 | { $as_echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
| 2735 | $as_echo_n "checking for C++ compiler default output file name... " >&6; } |
| 2736 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2737 | |
| 2738 | # The possible output files: |
| 2739 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 2740 | |
| 2741 | ac_rmfiles= |
| 2742 | for ac_file in $ac_files |
| 2743 | do |
| 2744 | case $ac_file in |
| 2745 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 2746 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2747 | esac |
| 2748 | done |
| 2749 | rm -f $ac_rmfiles |
| 2750 | |
| 2751 | if { (ac_try="$ac_link_default" |
| 2752 | case "(($ac_try" in |
| 2753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2754 | *) ac_try_echo=$ac_try;; |
| 2755 | esac |
| 2756 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2757 | $as_echo "$ac_try_echo") >&5 |
| 2758 | (eval "$ac_link_default") 2>&5 |
| 2759 | ac_status=$? |
| 2760 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2761 | (exit $ac_status); }; then |
| 2762 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2763 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2764 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2765 | # so that the user can short-circuit this test for compilers unknown to |
| 2766 | # Autoconf. |
| 2767 | for ac_file in $ac_files '' |
| 2768 | do |
| 2769 | test -f "$ac_file" || continue |
| 2770 | case $ac_file in |
| 2771 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 2772 | ;; |
| 2773 | [ab].out ) |
| 2774 | # We found the default executable, but exeext='' is most |
| 2775 | # certainly right. |
| 2776 | break;; |
| 2777 | *.* ) |
| 2778 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2779 | then :; else |
| 2780 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2781 | fi |
| 2782 | # We set ac_cv_exeext here because the later test for it is not |
| 2783 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2784 | # argument, so we may need to know it at that point already. |
| 2785 | # Even if this section looks crufty: it has the advantage of |
| 2786 | # actually working. |
| 2787 | break;; |
| 2788 | * ) |
| 2789 | break;; |
| 2790 | esac |
| 2791 | done |
| 2792 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2793 | |
| 2794 | else |
| 2795 | ac_file='' |
| 2796 | fi |
| 2797 | |
| 2798 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2799 | $as_echo "$ac_file" >&6; } |
| 2800 | if test -z "$ac_file"; then |
| 2801 | $as_echo "$as_me: failed program was:" >&5 |
| 2802 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2803 | |
| 2804 | { { $as_echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
| 2805 | See \`config.log' for more details." >&5 |
| 2806 | $as_echo "$as_me: error: C++ compiler cannot create executables |
| 2807 | See \`config.log' for more details." >&2;} |
| 2808 | { (exit 77); exit 77; }; } |
| 2809 | fi |
| 2810 | |
| 2811 | ac_exeext=$ac_cv_exeext |
| 2812 | |
| 2813 | # Check that the compiler produces executables we can run. If not, either |
| 2814 | # the compiler is broken, or we cross compile. |
| 2815 | { $as_echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
| 2816 | $as_echo_n "checking whether the C++ compiler works... " >&6; } |
| 2817 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2818 | # If not cross compiling, check that we can run a simple program. |
| 2819 | if test "$cross_compiling" != yes; then |
| 2820 | if { ac_try='./$ac_file' |
| 2821 | { (case "(($ac_try" in |
| 2822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2823 | *) ac_try_echo=$ac_try;; |
| 2824 | esac |
| 2825 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2826 | $as_echo "$ac_try_echo") >&5 |
| 2827 | (eval "$ac_try") 2>&5 |
| 2828 | ac_status=$? |
| 2829 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2830 | (exit $ac_status); }; }; then |
| 2831 | cross_compiling=no |
| 2832 | else |
| 2833 | if test "$cross_compiling" = maybe; then |
| 2834 | cross_compiling=yes |
| 2835 | else |
| 2836 | { { $as_echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
| 2837 | If you meant to cross compile, use \`--host'. |
| 2838 | See \`config.log' for more details." >&5 |
| 2839 | $as_echo "$as_me: error: cannot run C++ compiled programs. |
| 2840 | If you meant to cross compile, use \`--host'. |
| 2841 | See \`config.log' for more details." >&2;} |
| 2842 | { (exit 1); exit 1; }; } |
| 2843 | fi |
| 2844 | fi |
| 2845 | fi |
| 2846 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 2847 | $as_echo "yes" >&6; } |
| 2848 | |
| 2849 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
| 2850 | ac_clean_files=$ac_clean_files_save |
| 2851 | # Check that the compiler produces executables we can run. If not, either |
| 2852 | # the compiler is broken, or we cross compile. |
| 2853 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2854 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 2855 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2856 | $as_echo "$cross_compiling" >&6; } |
| 2857 | |
| 2858 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2859 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 2860 | if { (ac_try="$ac_link" |
| 2861 | case "(($ac_try" in |
| 2862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2863 | *) ac_try_echo=$ac_try;; |
| 2864 | esac |
| 2865 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2866 | $as_echo "$ac_try_echo") >&5 |
| 2867 | (eval "$ac_link") 2>&5 |
| 2868 | ac_status=$? |
| 2869 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2870 | (exit $ac_status); }; then |
| 2871 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2872 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2873 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2874 | # `rm'. |
| 2875 | for ac_file in conftest.exe conftest conftest.*; do |
| 2876 | test -f "$ac_file" || continue |
| 2877 | case $ac_file in |
| 2878 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 2879 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2880 | break;; |
| 2881 | * ) break;; |
| 2882 | esac |
| 2883 | done |
| 2884 | else |
| 2885 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2886 | See \`config.log' for more details." >&5 |
| 2887 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2888 | See \`config.log' for more details." >&2;} |
| 2889 | { (exit 1); exit 1; }; } |
| 2890 | fi |
| 2891 | |
| 2892 | rm -f conftest$ac_cv_exeext |
| 2893 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2894 | $as_echo "$ac_cv_exeext" >&6; } |
| 2895 | |
| 2896 | rm -f conftest.$ac_ext |
| 2897 | EXEEXT=$ac_cv_exeext |
| 2898 | ac_exeext=$EXEEXT |
| 2899 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2900 | $as_echo_n "checking for suffix of object files... " >&6; } |
| 2901 | if test "${ac_cv_objext+set}" = set; then |
| 2902 | $as_echo_n "(cached) " >&6 |
| 2903 | else |
| 2904 | cat >conftest.$ac_ext <<_ACEOF |
| 2905 | /* confdefs.h. */ |
| 2906 | _ACEOF |
| 2907 | cat confdefs.h >>conftest.$ac_ext |
| 2908 | cat >>conftest.$ac_ext <<_ACEOF |
| 2909 | /* end confdefs.h. */ |
| 2910 | |
| 2911 | int |
| 2912 | main () |
| 2913 | { |
| 2914 | |
| 2915 | ; |
| 2916 | return 0; |
| 2917 | } |
| 2918 | _ACEOF |
| 2919 | rm -f conftest.o conftest.obj |
| 2920 | if { (ac_try="$ac_compile" |
| 2921 | case "(($ac_try" in |
| 2922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2923 | *) ac_try_echo=$ac_try;; |
| 2924 | esac |
| 2925 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2926 | $as_echo "$ac_try_echo") >&5 |
| 2927 | (eval "$ac_compile") 2>&5 |
| 2928 | ac_status=$? |
| 2929 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2930 | (exit $ac_status); }; then |
| 2931 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2932 | test -f "$ac_file" || continue; |
| 2933 | case $ac_file in |
| 2934 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 2935 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2936 | break;; |
| 2937 | esac |
| 2938 | done |
| 2939 | else |
| 2940 | $as_echo "$as_me: failed program was:" >&5 |
| 2941 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2942 | |
| 2943 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2944 | See \`config.log' for more details." >&5 |
| 2945 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2946 | See \`config.log' for more details." >&2;} |
| 2947 | { (exit 1); exit 1; }; } |
| 2948 | fi |
| 2949 | |
| 2950 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2951 | fi |
| 2952 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2953 | $as_echo "$ac_cv_objext" >&6; } |
| 2954 | OBJEXT=$ac_cv_objext |
| 2955 | ac_objext=$OBJEXT |
| 2956 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 2957 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| 2958 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 2959 | $as_echo_n "(cached) " >&6 |
| 2960 | else |
| 2961 | cat >conftest.$ac_ext <<_ACEOF |
| 2962 | /* confdefs.h. */ |
| 2963 | _ACEOF |
| 2964 | cat confdefs.h >>conftest.$ac_ext |
| 2965 | cat >>conftest.$ac_ext <<_ACEOF |
| 2966 | /* end confdefs.h. */ |
| 2967 | |
| 2968 | int |
| 2969 | main () |
| 2970 | { |
| 2971 | #ifndef __GNUC__ |
| 2972 | choke me |
| 2973 | #endif |
| 2974 | |
| 2975 | ; |
| 2976 | return 0; |
| 2977 | } |
| 2978 | _ACEOF |
| 2979 | rm -f conftest.$ac_objext |
| 2980 | if { (ac_try="$ac_compile" |
| 2981 | case "(($ac_try" in |
| 2982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2983 | *) ac_try_echo=$ac_try;; |
| 2984 | esac |
| 2985 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2986 | $as_echo "$ac_try_echo") >&5 |
| 2987 | (eval "$ac_compile") 2>conftest.er1 |
| 2988 | ac_status=$? |
| 2989 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2990 | rm -f conftest.er1 |
| 2991 | cat conftest.err >&5 |
| 2992 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2993 | (exit $ac_status); } && { |
| 2994 | test -z "$ac_cxx_werror_flag" || |
| 2995 | test ! -s conftest.err |
| 2996 | } && test -s conftest.$ac_objext; then |
| 2997 | ac_compiler_gnu=yes |
| 2998 | else |
| 2999 | $as_echo "$as_me: failed program was:" >&5 |
| 3000 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3001 | |
| 3002 | ac_compiler_gnu=no |
| 3003 | fi |
| 3004 | |
| 3005 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3006 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 3007 | |
| 3008 | fi |
| 3009 | { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 3010 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 3011 | if test $ac_compiler_gnu = yes; then |
| 3012 | GXX=yes |
| 3013 | else |
| 3014 | GXX= |
| 3015 | fi |
| 3016 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 3017 | ac_save_CXXFLAGS=$CXXFLAGS |
| 3018 | { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 3019 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| 3020 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 3021 | $as_echo_n "(cached) " >&6 |
| 3022 | else |
| 3023 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 3024 | ac_cxx_werror_flag=yes |
| 3025 | ac_cv_prog_cxx_g=no |
| 3026 | CXXFLAGS="-g" |
| 3027 | cat >conftest.$ac_ext <<_ACEOF |
| 3028 | /* confdefs.h. */ |
| 3029 | _ACEOF |
| 3030 | cat confdefs.h >>conftest.$ac_ext |
| 3031 | cat >>conftest.$ac_ext <<_ACEOF |
| 3032 | /* end confdefs.h. */ |
| 3033 | |
| 3034 | int |
| 3035 | main () |
| 3036 | { |
| 3037 | |
| 3038 | ; |
| 3039 | return 0; |
| 3040 | } |
| 3041 | _ACEOF |
| 3042 | rm -f conftest.$ac_objext |
| 3043 | if { (ac_try="$ac_compile" |
| 3044 | case "(($ac_try" in |
| 3045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3046 | *) ac_try_echo=$ac_try;; |
| 3047 | esac |
| 3048 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3049 | $as_echo "$ac_try_echo") >&5 |
| 3050 | (eval "$ac_compile") 2>conftest.er1 |
| 3051 | ac_status=$? |
| 3052 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3053 | rm -f conftest.er1 |
| 3054 | cat conftest.err >&5 |
| 3055 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3056 | (exit $ac_status); } && { |
| 3057 | test -z "$ac_cxx_werror_flag" || |
| 3058 | test ! -s conftest.err |
| 3059 | } && test -s conftest.$ac_objext; then |
| 3060 | ac_cv_prog_cxx_g=yes |
| 3061 | else |
| 3062 | $as_echo "$as_me: failed program was:" >&5 |
| 3063 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3064 | |
| 3065 | CXXFLAGS="" |
| 3066 | cat >conftest.$ac_ext <<_ACEOF |
| 3067 | /* confdefs.h. */ |
| 3068 | _ACEOF |
| 3069 | cat confdefs.h >>conftest.$ac_ext |
| 3070 | cat >>conftest.$ac_ext <<_ACEOF |
| 3071 | /* end confdefs.h. */ |
| 3072 | |
| 3073 | int |
| 3074 | main () |
| 3075 | { |
| 3076 | |
| 3077 | ; |
| 3078 | return 0; |
| 3079 | } |
| 3080 | _ACEOF |
| 3081 | rm -f conftest.$ac_objext |
| 3082 | if { (ac_try="$ac_compile" |
| 3083 | case "(($ac_try" in |
| 3084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3085 | *) ac_try_echo=$ac_try;; |
| 3086 | esac |
| 3087 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3088 | $as_echo "$ac_try_echo") >&5 |
| 3089 | (eval "$ac_compile") 2>conftest.er1 |
| 3090 | ac_status=$? |
| 3091 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3092 | rm -f conftest.er1 |
| 3093 | cat conftest.err >&5 |
| 3094 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3095 | (exit $ac_status); } && { |
| 3096 | test -z "$ac_cxx_werror_flag" || |
| 3097 | test ! -s conftest.err |
| 3098 | } && test -s conftest.$ac_objext; then |
| 3099 | : |
| 3100 | else |
| 3101 | $as_echo "$as_me: failed program was:" >&5 |
| 3102 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3103 | |
| 3104 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3105 | CXXFLAGS="-g" |
| 3106 | cat >conftest.$ac_ext <<_ACEOF |
| 3107 | /* confdefs.h. */ |
| 3108 | _ACEOF |
| 3109 | cat confdefs.h >>conftest.$ac_ext |
| 3110 | cat >>conftest.$ac_ext <<_ACEOF |
| 3111 | /* end confdefs.h. */ |
| 3112 | |
| 3113 | int |
| 3114 | main () |
| 3115 | { |
| 3116 | |
| 3117 | ; |
| 3118 | return 0; |
| 3119 | } |
| 3120 | _ACEOF |
| 3121 | rm -f conftest.$ac_objext |
| 3122 | if { (ac_try="$ac_compile" |
| 3123 | case "(($ac_try" in |
| 3124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3125 | *) ac_try_echo=$ac_try;; |
| 3126 | esac |
| 3127 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3128 | $as_echo "$ac_try_echo") >&5 |
| 3129 | (eval "$ac_compile") 2>conftest.er1 |
| 3130 | ac_status=$? |
| 3131 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3132 | rm -f conftest.er1 |
| 3133 | cat conftest.err >&5 |
| 3134 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3135 | (exit $ac_status); } && { |
| 3136 | test -z "$ac_cxx_werror_flag" || |
| 3137 | test ! -s conftest.err |
| 3138 | } && test -s conftest.$ac_objext; then |
| 3139 | ac_cv_prog_cxx_g=yes |
| 3140 | else |
| 3141 | $as_echo "$as_me: failed program was:" >&5 |
| 3142 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3143 | |
| 3144 | |
| 3145 | fi |
| 3146 | |
| 3147 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3148 | fi |
| 3149 | |
| 3150 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3151 | fi |
| 3152 | |
| 3153 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3154 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3155 | fi |
| 3156 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 3157 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
| 3158 | if test "$ac_test_CXXFLAGS" = set; then |
| 3159 | CXXFLAGS=$ac_save_CXXFLAGS |
| 3160 | elif test $ac_cv_prog_cxx_g = yes; then |
| 3161 | if test "$GXX" = yes; then |
| 3162 | CXXFLAGS="-g -O2" |
| 3163 | else |
| 3164 | CXXFLAGS="-g" |
| 3165 | fi |
| 3166 | else |
| 3167 | if test "$GXX" = yes; then |
| 3168 | CXXFLAGS="-O2" |
| 3169 | else |
| 3170 | CXXFLAGS= |
| 3171 | fi |
| 3172 | fi |
| 3173 | ac_ext=c |
| 3174 | ac_cpp='$CPP $CPPFLAGS' |
| 3175 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3176 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3177 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3178 | DEPDIR="${am__leading_dot}deps" |
| 3179 | |
| 3180 | ac_config_commands="$ac_config_commands depfiles" |
| 3181 | |
| 3182 | |
| 3183 | am_make=${MAKE-make} |
| 3184 | cat > confinc << 'END' |
| 3185 | am__doit: |
| 3186 | @echo done |
| 3187 | .PHONY: am__doit |
| 3188 | END |
| 3189 | # If we don't find an include directive, just comment out the code. |
| 3190 | { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
| 3191 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
| 3192 | am__include="#" |
| 3193 | am__quote= |
| 3194 | _am_result=none |
| 3195 | # First try GNU make style include. |
| 3196 | echo "include confinc" > confmf |
| 3197 | # We grep out `Entering directory' and `Leaving directory' |
| 3198 | # messages which can occur if `w' ends up in MAKEFLAGS. |
| 3199 | # In particular we don't look at `^make:' because GNU make might |
| 3200 | # be invoked under some other name (usually "gmake"), in which |
| 3201 | # case it prints its new name instead of `make'. |
| 3202 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
| 3203 | am__include=include |
| 3204 | am__quote= |
| 3205 | _am_result=GNU |
| 3206 | fi |
| 3207 | # Now try BSD make style include. |
| 3208 | if test "$am__include" = "#"; then |
| 3209 | echo '.include "confinc"' > confmf |
| 3210 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
| 3211 | am__include=.include |
| 3212 | am__quote="\"" |
| 3213 | _am_result=BSD |
| 3214 | fi |
| 3215 | fi |
| 3216 | |
| 3217 | |
| 3218 | { $as_echo "$as_me:$LINENO: result: $_am_result" >&5 |
| 3219 | $as_echo "$_am_result" >&6; } |
| 3220 | rm -f confinc confmf |
| 3221 | |
| 3222 | # Check whether --enable-dependency-tracking was given. |
| 3223 | if test "${enable_dependency_tracking+set}" = set; then |
| 3224 | enableval=$enable_dependency_tracking; |
| 3225 | fi |
| 3226 | |
| 3227 | if test "x$enable_dependency_tracking" != xno; then |
| 3228 | am_depcomp="$ac_aux_dir/depcomp" |
| 3229 | AMDEPBACKSLASH='\' |
| 3230 | fi |
| 3231 | if test "x$enable_dependency_tracking" != xno; then |
| 3232 | AMDEP_TRUE= |
| 3233 | AMDEP_FALSE='#' |
| 3234 | else |
| 3235 | AMDEP_TRUE='#' |
| 3236 | AMDEP_FALSE= |
| 3237 | fi |
| 3238 | |
| 3239 | |
| 3240 | |
| 3241 | depcc="$CXX" am_compiler_list= |
| 3242 | |
| 3243 | { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 3244 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 3245 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
| 3246 | $as_echo_n "(cached) " >&6 |
| 3247 | else |
| 3248 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 3249 | # We make a subdir and do the tests there. Otherwise we can end up |
| 3250 | # making bogus files that we don't know about and never remove. For |
| 3251 | # instance it was reported that on HP-UX the gcc test will end up |
| 3252 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 3253 | # in D'. |
| 3254 | mkdir conftest.dir |
| 3255 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 3256 | # using a relative directory. |
| 3257 | cp "$am_depcomp" conftest.dir |
| 3258 | cd conftest.dir |
| 3259 | # We will build objects and dependencies in a subdirectory because |
| 3260 | # it helps to detect inapplicable dependency modes. For instance |
| 3261 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 3262 | # side effect of compilation, but ICC will put the dependencies in |
| 3263 | # the current directory while Tru64 will put them in the object |
| 3264 | # directory. |
| 3265 | mkdir sub |
| 3266 | |
| 3267 | am_cv_CXX_dependencies_compiler_type=none |
| 3268 | if test "$am_compiler_list" = ""; then |
| 3269 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 3270 | fi |
| 3271 | for depmode in $am_compiler_list; do |
| 3272 | # Setup a source with many dependencies, because some compilers |
| 3273 | # like to wrap large dependency lists on column 80 (with \), and |
| 3274 | # we should not choose a depcomp mode which is confused by this. |
| 3275 | # |
| 3276 | # We need to recreate these files for each test, as the compiler may |
| 3277 | # overwrite some of them when testing with obscure command lines. |
| 3278 | # This happens at least with the AIX C compiler. |
| 3279 | : > sub/conftest.c |
| 3280 | for i in 1 2 3 4 5 6; do |
| 3281 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 3282 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 3283 | # Solaris 8's {/usr,}/bin/sh. |
| 3284 | touch sub/conftst$i.h |
| 3285 | done |
| 3286 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 3287 | |
| 3288 | case $depmode in |
| 3289 | nosideeffect) |
| 3290 | # after this tag, mechanisms are not by side-effect, so they'll |
| 3291 | # only be used when explicitly requested |
| 3292 | if test "x$enable_dependency_tracking" = xyes; then |
| 3293 | continue |
| 3294 | else |
| 3295 | break |
| 3296 | fi |
| 3297 | ;; |
| 3298 | none) break ;; |
| 3299 | esac |
| 3300 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 3301 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 3302 | # handle `-M -o', and we need to detect this. |
| 3303 | if depmode=$depmode \ |
| 3304 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| 3305 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 3306 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| 3307 | >/dev/null 2>conftest.err && |
| 3308 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 3309 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 3310 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
| 3311 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 3312 | # icc doesn't choke on unknown options, it will just issue warnings |
| 3313 | # or remarks (even with -Werror). So we grep stderr for any message |
| 3314 | # that says an option was ignored or not supported. |
| 3315 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 3316 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 3317 | # The diagnosis changed in icc 8.0: |
| 3318 | # icc: Command line remark: option '-MP' not supported |
| 3319 | if (grep 'ignoring option' conftest.err || |
| 3320 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 3321 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 3322 | break |
| 3323 | fi |
| 3324 | fi |
| 3325 | done |
| 3326 | |
| 3327 | cd .. |
| 3328 | rm -rf conftest.dir |
| 3329 | else |
| 3330 | am_cv_CXX_dependencies_compiler_type=none |
| 3331 | fi |
| 3332 | |
| 3333 | fi |
| 3334 | { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 3335 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
| 3336 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 3337 | |
| 3338 | if |
| 3339 | test "x$enable_dependency_tracking" != xno \ |
| 3340 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 3341 | am__fastdepCXX_TRUE= |
| 3342 | am__fastdepCXX_FALSE='#' |
| 3343 | else |
| 3344 | am__fastdepCXX_TRUE='#' |
| 3345 | am__fastdepCXX_FALSE= |
| 3346 | fi |
| 3347 | |
| 3348 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3349 | ac_ext=c |
| 3350 | ac_cpp='$CPP $CPPFLAGS' |
| 3351 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3352 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3353 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3354 | if test -n "$ac_tool_prefix"; then |
| 3355 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3356 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3357 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 3358 | $as_echo_n "checking for $ac_word... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3359 | if test "${ac_cv_prog_CC+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 3360 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3361 | else |
| 3362 | if test -n "$CC"; then |
| 3363 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3364 | else |
| 3365 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3366 | for as_dir in $PATH |
| 3367 | do |
| 3368 | IFS=$as_save_IFS |
| 3369 | test -z "$as_dir" && as_dir=. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3370 | for ac_exec_ext in '' $ac_executable_extensions; do |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 3371 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3372 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3373 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3374 | break 2 |
| 3375 | fi |
| 3376 | done |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3377 | done |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 3378 | IFS=$as_save_IFS |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3379 | |
| 3380 | fi |
| 3381 | fi |
| 3382 | CC=$ac_cv_prog_CC |
| 3383 | if test -n "$CC"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3384 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 3385 | $as_echo "$CC" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3386 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3387 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 3388 | $as_echo "no" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3389 | fi |
| 3390 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 3391 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3392 | fi |
| 3393 | if test -z "$ac_cv_prog_CC"; then |
| 3394 | ac_ct_CC=$CC |
| 3395 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3396 | set dummy gcc; ac_word=$2 |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3397 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 3398 | $as_echo_n "checking for $ac_word... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3399 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 3400 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3401 | else |
| 3402 | if test -n "$ac_ct_CC"; then |
| 3403 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3404 | else |
| 3405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3406 | for as_dir in $PATH |
| 3407 | do |
| 3408 | IFS=$as_save_IFS |
| 3409 | test -z "$as_dir" && as_dir=. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3410 | for ac_exec_ext in '' $ac_executable_extensions; do |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 3411 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3412 | ac_cv_prog_ac_ct_CC="gcc" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3413 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3414 | break 2 |
| 3415 | fi |
| 3416 | done |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3417 | done |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 3418 | IFS=$as_save_IFS |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3419 | |
| 3420 | fi |
| 3421 | fi |
| 3422 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3423 | if test -n "$ac_ct_CC"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3424 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 3425 | $as_echo "$ac_ct_CC" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3426 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3427 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 3428 | $as_echo "no" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3429 | fi |
| 3430 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 3431 | if test "x$ac_ct_CC" = x; then |
| 3432 | CC="" |
| 3433 | else |
| 3434 | case $cross_compiling:$ac_tool_warned in |
| 3435 | yes:) |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3436 | { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 3437 | whose name does not start with the host triplet. If you think this |
| 3438 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 3439 | $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 3440 | whose name does not start with the host triplet. If you think this |
| 3441 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 3442 | ac_tool_warned=yes ;; |
| 3443 | esac |
| 3444 | CC=$ac_ct_CC |
| 3445 | fi |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3446 | else |
| 3447 | CC="$ac_cv_prog_CC" |
| 3448 | fi |
| 3449 | |
| 3450 | if test -z "$CC"; then |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 3451 | if test -n "$ac_tool_prefix"; then |
| 3452 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3453 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3454 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 3455 | $as_echo_n "checking for $ac_word... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3456 | if test "${ac_cv_prog_CC+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 3457 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3458 | else |
| 3459 | if test -n "$CC"; then |
| 3460 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3461 | else |
| 3462 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3463 | for as_dir in $PATH |
| 3464 | do |
| 3465 | IFS=$as_save_IFS |
| 3466 | test -z "$as_dir" && as_dir=. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3467 | for ac_exec_ext in '' $ac_executable_extensions; do |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 3468 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3469 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3470 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3471 | break 2 |
| 3472 | fi |
| 3473 | done |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3474 | done |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 3475 | IFS=$as_save_IFS |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3476 | |
| 3477 | fi |
| 3478 | fi |
| 3479 | CC=$ac_cv_prog_CC |
| 3480 | if test -n "$CC"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3481 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 3482 | $as_echo "$CC" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3483 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3484 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 3485 | $as_echo "no" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3486 | fi |
| 3487 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 3488 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3489 | fi |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3490 | fi |
| 3491 | if test -z "$CC"; then |
| 3492 | # Extract the first word of "cc", so it can be a program name with args. |
| 3493 | set dummy cc; ac_word=$2 |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3494 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 3495 | $as_echo_n "checking for $ac_word... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3496 | if test "${ac_cv_prog_CC+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 3497 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3498 | else |
| 3499 | if test -n "$CC"; then |
| 3500 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3501 | else |
| 3502 | ac_prog_rejected=no |
| 3503 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3504 | for as_dir in $PATH |
| 3505 | do |
| 3506 | IFS=$as_save_IFS |
| 3507 | test -z "$as_dir" && as_dir=. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3508 | for ac_exec_ext in '' $ac_executable_extensions; do |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 3509 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3510 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3511 | ac_prog_rejected=yes |
| 3512 | continue |
| 3513 | fi |
| 3514 | ac_cv_prog_CC="cc" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3515 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3516 | break 2 |
| 3517 | fi |
| 3518 | done |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3519 | done |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 3520 | IFS=$as_save_IFS |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3521 | |
| 3522 | if test $ac_prog_rejected = yes; then |
| 3523 | # We found a bogon in the path, so make sure we never use it. |
| 3524 | set dummy $ac_cv_prog_CC |
| 3525 | shift |
| 3526 | if test $# != 0; then |
| 3527 | # We chose a different compiler from the bogus one. |
| 3528 | # However, it has the same basename, so the bogon will be chosen |
| 3529 | # first if we set CC to just the basename; use the full file name. |
| 3530 | shift |
| 3531 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 3532 | fi |
| 3533 | fi |
| 3534 | fi |
| 3535 | fi |
| 3536 | CC=$ac_cv_prog_CC |
| 3537 | if test -n "$CC"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3538 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 3539 | $as_echo "$CC" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3540 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3541 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 3542 | $as_echo "no" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3543 | fi |
| 3544 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 3545 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3546 | fi |
| 3547 | if test -z "$CC"; then |
| 3548 | if test -n "$ac_tool_prefix"; then |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 3549 | for ac_prog in cl.exe |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3550 | do |
| 3551 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3552 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3553 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 3554 | $as_echo_n "checking for $ac_word... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3555 | if test "${ac_cv_prog_CC+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 3556 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3557 | else |
| 3558 | if test -n "$CC"; then |
| 3559 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3560 | else |
| 3561 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3562 | for as_dir in $PATH |
| 3563 | do |
| 3564 | IFS=$as_save_IFS |
| 3565 | test -z "$as_dir" && as_dir=. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3566 | for ac_exec_ext in '' $ac_executable_extensions; do |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 3567 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3568 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3569 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3570 | break 2 |
| 3571 | fi |
| 3572 | done |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3573 | done |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 3574 | IFS=$as_save_IFS |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3575 | |
| 3576 | fi |
| 3577 | fi |
| 3578 | CC=$ac_cv_prog_CC |
| 3579 | if test -n "$CC"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3580 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 3581 | $as_echo "$CC" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3582 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3583 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 3584 | $as_echo "no" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3585 | fi |
| 3586 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 3587 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3588 | test -n "$CC" && break |
| 3589 | done |
| 3590 | fi |
| 3591 | if test -z "$CC"; then |
| 3592 | ac_ct_CC=$CC |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 3593 | for ac_prog in cl.exe |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3594 | do |
| 3595 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3596 | set dummy $ac_prog; ac_word=$2 |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3597 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 3598 | $as_echo_n "checking for $ac_word... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3599 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 3600 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3601 | else |
| 3602 | if test -n "$ac_ct_CC"; then |
| 3603 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3604 | else |
| 3605 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3606 | for as_dir in $PATH |
| 3607 | do |
| 3608 | IFS=$as_save_IFS |
| 3609 | test -z "$as_dir" && as_dir=. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3610 | for ac_exec_ext in '' $ac_executable_extensions; do |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 3611 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3612 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3613 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3614 | break 2 |
| 3615 | fi |
| 3616 | done |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3617 | done |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 3618 | IFS=$as_save_IFS |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3619 | |
| 3620 | fi |
| 3621 | fi |
| 3622 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3623 | if test -n "$ac_ct_CC"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3624 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 3625 | $as_echo "$ac_ct_CC" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3626 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3627 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 3628 | $as_echo "no" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3629 | fi |
| 3630 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 3631 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3632 | test -n "$ac_ct_CC" && break |
| 3633 | done |
| 3634 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 3635 | if test "x$ac_ct_CC" = x; then |
| 3636 | CC="" |
| 3637 | else |
| 3638 | case $cross_compiling:$ac_tool_warned in |
| 3639 | yes:) |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3640 | { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 3641 | whose name does not start with the host triplet. If you think this |
| 3642 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 3643 | $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 3644 | whose name does not start with the host triplet. If you think this |
| 3645 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 3646 | ac_tool_warned=yes ;; |
| 3647 | esac |
| 3648 | CC=$ac_ct_CC |
| 3649 | fi |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3650 | fi |
| 3651 | |
| 3652 | fi |
| 3653 | |
| 3654 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3655 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 3656 | See \`config.log' for more details." >&5 |
| 3657 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 3658 | See \`config.log' for more details." >&2;} |
| 3659 | { (exit 1); exit 1; }; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3660 | |
| 3661 | # Provide some information about the compiler. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3662 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 3663 | set X $ac_compile |
| 3664 | ac_compiler=$2 |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3665 | { (ac_try="$ac_compiler --version >&5" |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 3666 | case "(($ac_try" in |
| 3667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3668 | *) ac_try_echo=$ac_try;; |
| 3669 | esac |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3670 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3671 | $as_echo "$ac_try_echo") >&5 |
| 3672 | (eval "$ac_compiler --version >&5") 2>&5 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3673 | ac_status=$? |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3674 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3675 | (exit $ac_status); } |
| 3676 | { (ac_try="$ac_compiler -v >&5" |
| 3677 | case "(($ac_try" in |
| 3678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3679 | *) ac_try_echo=$ac_try;; |
| 3680 | esac |
| 3681 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3682 | $as_echo "$ac_try_echo") >&5 |
| 3683 | (eval "$ac_compiler -v >&5") 2>&5 |
| 3684 | ac_status=$? |
| 3685 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3686 | (exit $ac_status); } |
| 3687 | { (ac_try="$ac_compiler -V >&5" |
| 3688 | case "(($ac_try" in |
| 3689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3690 | *) ac_try_echo=$ac_try;; |
| 3691 | esac |
| 3692 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3693 | $as_echo "$ac_try_echo") >&5 |
| 3694 | (eval "$ac_compiler -V >&5") 2>&5 |
| 3695 | ac_status=$? |
| 3696 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3697 | (exit $ac_status); } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3698 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3699 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 3700 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3701 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 3702 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3703 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3704 | cat >conftest.$ac_ext <<_ACEOF |
| 3705 | /* confdefs.h. */ |
| 3706 | _ACEOF |
| 3707 | cat confdefs.h >>conftest.$ac_ext |
| 3708 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3709 | /* end confdefs.h. */ |
| 3710 | |
| 3711 | int |
| 3712 | main () |
| 3713 | { |
| 3714 | #ifndef __GNUC__ |
| 3715 | choke me |
| 3716 | #endif |
| 3717 | |
| 3718 | ; |
| 3719 | return 0; |
| 3720 | } |
| 3721 | _ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3722 | rm -f conftest.$ac_objext |
| 3723 | if { (ac_try="$ac_compile" |
| 3724 | case "(($ac_try" in |
| 3725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3726 | *) ac_try_echo=$ac_try;; |
| 3727 | esac |
| 3728 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3729 | $as_echo "$ac_try_echo") >&5 |
| 3730 | (eval "$ac_compile") 2>conftest.er1 |
| 3731 | ac_status=$? |
| 3732 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3733 | rm -f conftest.er1 |
| 3734 | cat conftest.err >&5 |
| 3735 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3736 | (exit $ac_status); } && { |
| 3737 | test -z "$ac_c_werror_flag" || |
| 3738 | test ! -s conftest.err |
| 3739 | } && test -s conftest.$ac_objext; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3740 | ac_compiler_gnu=yes |
| 3741 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3742 | $as_echo "$as_me: failed program was:" >&5 |
| 3743 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3744 | |
| 3745 | ac_compiler_gnu=no |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3746 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3747 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 3748 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3749 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3750 | |
| 3751 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3752 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 3753 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3754 | if test $ac_compiler_gnu = yes; then |
| 3755 | GCC=yes |
| 3756 | else |
| 3757 | GCC= |
| 3758 | fi |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3759 | ac_test_CFLAGS=${CFLAGS+set} |
| 3760 | ac_save_CFLAGS=$CFLAGS |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3761 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 3762 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3763 | if test "${ac_cv_prog_cc_g+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 3764 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3765 | else |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 3766 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3767 | ac_c_werror_flag=yes |
| 3768 | ac_cv_prog_cc_g=no |
| 3769 | CFLAGS="-g" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3770 | cat >conftest.$ac_ext <<_ACEOF |
| 3771 | /* confdefs.h. */ |
| 3772 | _ACEOF |
| 3773 | cat confdefs.h >>conftest.$ac_ext |
| 3774 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3775 | /* end confdefs.h. */ |
| 3776 | |
| 3777 | int |
| 3778 | main () |
| 3779 | { |
| 3780 | |
| 3781 | ; |
| 3782 | return 0; |
| 3783 | } |
| 3784 | _ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3785 | rm -f conftest.$ac_objext |
| 3786 | if { (ac_try="$ac_compile" |
| 3787 | case "(($ac_try" in |
| 3788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3789 | *) ac_try_echo=$ac_try;; |
| 3790 | esac |
| 3791 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3792 | $as_echo "$ac_try_echo") >&5 |
| 3793 | (eval "$ac_compile") 2>conftest.er1 |
| 3794 | ac_status=$? |
| 3795 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3796 | rm -f conftest.er1 |
| 3797 | cat conftest.err >&5 |
| 3798 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3799 | (exit $ac_status); } && { |
| 3800 | test -z "$ac_c_werror_flag" || |
| 3801 | test ! -s conftest.err |
| 3802 | } && test -s conftest.$ac_objext; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3803 | ac_cv_prog_cc_g=yes |
| 3804 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3805 | $as_echo "$as_me: failed program was:" >&5 |
| 3806 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3807 | |
| 3808 | CFLAGS="" |
| 3809 | cat >conftest.$ac_ext <<_ACEOF |
| 3810 | /* confdefs.h. */ |
| 3811 | _ACEOF |
| 3812 | cat confdefs.h >>conftest.$ac_ext |
| 3813 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 3814 | /* end confdefs.h. */ |
| 3815 | |
| 3816 | int |
| 3817 | main () |
| 3818 | { |
| 3819 | |
| 3820 | ; |
| 3821 | return 0; |
| 3822 | } |
| 3823 | _ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3824 | rm -f conftest.$ac_objext |
| 3825 | if { (ac_try="$ac_compile" |
| 3826 | case "(($ac_try" in |
| 3827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3828 | *) ac_try_echo=$ac_try;; |
| 3829 | esac |
| 3830 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3831 | $as_echo "$ac_try_echo") >&5 |
| 3832 | (eval "$ac_compile") 2>conftest.er1 |
| 3833 | ac_status=$? |
| 3834 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3835 | rm -f conftest.er1 |
| 3836 | cat conftest.err >&5 |
| 3837 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3838 | (exit $ac_status); } && { |
| 3839 | test -z "$ac_c_werror_flag" || |
| 3840 | test ! -s conftest.err |
| 3841 | } && test -s conftest.$ac_objext; then |
| 3842 | : |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 3843 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3844 | $as_echo "$as_me: failed program was:" >&5 |
| 3845 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3846 | |
| 3847 | ac_c_werror_flag=$ac_save_c_werror_flag |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 3848 | CFLAGS="-g" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3849 | cat >conftest.$ac_ext <<_ACEOF |
| 3850 | /* confdefs.h. */ |
| 3851 | _ACEOF |
| 3852 | cat confdefs.h >>conftest.$ac_ext |
| 3853 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 3854 | /* end confdefs.h. */ |
| 3855 | |
| 3856 | int |
| 3857 | main () |
| 3858 | { |
| 3859 | |
| 3860 | ; |
| 3861 | return 0; |
| 3862 | } |
| 3863 | _ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3864 | rm -f conftest.$ac_objext |
| 3865 | if { (ac_try="$ac_compile" |
| 3866 | case "(($ac_try" in |
| 3867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3868 | *) ac_try_echo=$ac_try;; |
| 3869 | esac |
| 3870 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3871 | $as_echo "$ac_try_echo") >&5 |
| 3872 | (eval "$ac_compile") 2>conftest.er1 |
| 3873 | ac_status=$? |
| 3874 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3875 | rm -f conftest.er1 |
| 3876 | cat conftest.err >&5 |
| 3877 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3878 | (exit $ac_status); } && { |
| 3879 | test -z "$ac_c_werror_flag" || |
| 3880 | test ! -s conftest.err |
| 3881 | } && test -s conftest.$ac_objext; then |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 3882 | ac_cv_prog_cc_g=yes |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3883 | else |
| 3884 | $as_echo "$as_me: failed program was:" >&5 |
| 3885 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3886 | |
| 3887 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3888 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3889 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 3890 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3891 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3892 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 3893 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3894 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3895 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 3896 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3897 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3898 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3899 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 3900 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3901 | if test "$ac_test_CFLAGS" = set; then |
| 3902 | CFLAGS=$ac_save_CFLAGS |
| 3903 | elif test $ac_cv_prog_cc_g = yes; then |
| 3904 | if test "$GCC" = yes; then |
| 3905 | CFLAGS="-g -O2" |
| 3906 | else |
| 3907 | CFLAGS="-g" |
| 3908 | fi |
| 3909 | else |
| 3910 | if test "$GCC" = yes; then |
| 3911 | CFLAGS="-O2" |
| 3912 | else |
| 3913 | CFLAGS= |
| 3914 | fi |
| 3915 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3916 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 3917 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3918 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 3919 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3920 | else |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 3921 | ac_cv_prog_cc_c89=no |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3922 | ac_save_CC=$CC |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3923 | cat >conftest.$ac_ext <<_ACEOF |
| 3924 | /* confdefs.h. */ |
| 3925 | _ACEOF |
| 3926 | cat confdefs.h >>conftest.$ac_ext |
| 3927 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3928 | /* end confdefs.h. */ |
| 3929 | #include <stdarg.h> |
| 3930 | #include <stdio.h> |
| 3931 | #include <sys/types.h> |
| 3932 | #include <sys/stat.h> |
| 3933 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3934 | struct buf { int x; }; |
| 3935 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3936 | static char *e (p, i) |
| 3937 | char **p; |
| 3938 | int i; |
| 3939 | { |
| 3940 | return p[i]; |
| 3941 | } |
| 3942 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3943 | { |
| 3944 | char *s; |
| 3945 | va_list v; |
| 3946 | va_start (v,p); |
| 3947 | s = g (p, va_arg (v,int)); |
| 3948 | va_end (v); |
| 3949 | return s; |
| 3950 | } |
| 3951 | |
| 3952 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3953 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3954 | These don't provoke an error unfortunately, instead are silently treated |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 3955 | as 'x'. The following induces an error, until -std is added to get |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3956 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3957 | array size at least. It's necessary to write '\x00'==0 to get something |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 3958 | that's true only with -std. */ |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3959 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3960 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 3961 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3962 | inside strings and character constants. */ |
| 3963 | #define FOO(x) 'x' |
| 3964 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3965 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3966 | int test (int i, double x); |
| 3967 | struct s1 {int (*f) (int a);}; |
| 3968 | struct s2 {int (*f) (double a);}; |
| 3969 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3970 | int argc; |
| 3971 | char **argv; |
| 3972 | int |
| 3973 | main () |
| 3974 | { |
| 3975 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3976 | ; |
| 3977 | return 0; |
| 3978 | } |
| 3979 | _ACEOF |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 3980 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3981 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 3982 | do |
| 3983 | CC="$ac_save_CC $ac_arg" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 3984 | rm -f conftest.$ac_objext |
| 3985 | if { (ac_try="$ac_compile" |
| 3986 | case "(($ac_try" in |
| 3987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3988 | *) ac_try_echo=$ac_try;; |
| 3989 | esac |
| 3990 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3991 | $as_echo "$ac_try_echo") >&5 |
| 3992 | (eval "$ac_compile") 2>conftest.er1 |
| 3993 | ac_status=$? |
| 3994 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3995 | rm -f conftest.er1 |
| 3996 | cat conftest.err >&5 |
| 3997 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3998 | (exit $ac_status); } && { |
| 3999 | test -z "$ac_c_werror_flag" || |
| 4000 | test ! -s conftest.err |
| 4001 | } && test -s conftest.$ac_objext; then |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4002 | ac_cv_prog_cc_c89=$ac_arg |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4003 | else |
| 4004 | $as_echo "$as_me: failed program was:" >&5 |
| 4005 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4006 | |
| 4007 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4008 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4009 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4010 | rm -f core conftest.err conftest.$ac_objext |
| 4011 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4012 | done |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4013 | rm -f conftest.$ac_ext |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4014 | CC=$ac_save_CC |
| 4015 | |
| 4016 | fi |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4017 | # AC_CACHE_VAL |
| 4018 | case "x$ac_cv_prog_cc_c89" in |
| 4019 | x) |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4020 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 4021 | $as_echo "none needed" >&6; } ;; |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4022 | xno) |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4023 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 4024 | $as_echo "unsupported" >&6; } ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4025 | *) |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4026 | CC="$CC $ac_cv_prog_cc_c89" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4027 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 4028 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4029 | esac |
| 4030 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4031 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4032 | ac_ext=c |
| 4033 | ac_cpp='$CPP $CPPFLAGS' |
| 4034 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4035 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4036 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4037 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4038 | depcc="$CC" am_compiler_list= |
| 4039 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4040 | { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 4041 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4042 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 4043 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4044 | else |
| 4045 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 4046 | # We make a subdir and do the tests there. Otherwise we can end up |
| 4047 | # making bogus files that we don't know about and never remove. For |
| 4048 | # instance it was reported that on HP-UX the gcc test will end up |
| 4049 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 4050 | # in D'. |
| 4051 | mkdir conftest.dir |
| 4052 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 4053 | # using a relative directory. |
| 4054 | cp "$am_depcomp" conftest.dir |
| 4055 | cd conftest.dir |
| 4056 | # We will build objects and dependencies in a subdirectory because |
| 4057 | # it helps to detect inapplicable dependency modes. For instance |
| 4058 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 4059 | # side effect of compilation, but ICC will put the dependencies in |
| 4060 | # the current directory while Tru64 will put them in the object |
| 4061 | # directory. |
| 4062 | mkdir sub |
| 4063 | |
| 4064 | am_cv_CC_dependencies_compiler_type=none |
| 4065 | if test "$am_compiler_list" = ""; then |
| 4066 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 4067 | fi |
| 4068 | for depmode in $am_compiler_list; do |
| 4069 | # Setup a source with many dependencies, because some compilers |
| 4070 | # like to wrap large dependency lists on column 80 (with \), and |
| 4071 | # we should not choose a depcomp mode which is confused by this. |
| 4072 | # |
| 4073 | # We need to recreate these files for each test, as the compiler may |
| 4074 | # overwrite some of them when testing with obscure command lines. |
| 4075 | # This happens at least with the AIX C compiler. |
| 4076 | : > sub/conftest.c |
| 4077 | for i in 1 2 3 4 5 6; do |
| 4078 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 4079 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 4080 | # Solaris 8's {/usr,}/bin/sh. |
| 4081 | touch sub/conftst$i.h |
| 4082 | done |
| 4083 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 4084 | |
| 4085 | case $depmode in |
| 4086 | nosideeffect) |
| 4087 | # after this tag, mechanisms are not by side-effect, so they'll |
| 4088 | # only be used when explicitly requested |
| 4089 | if test "x$enable_dependency_tracking" = xyes; then |
| 4090 | continue |
| 4091 | else |
| 4092 | break |
| 4093 | fi |
| 4094 | ;; |
| 4095 | none) break ;; |
| 4096 | esac |
| 4097 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 4098 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 4099 | # handle `-M -o', and we need to detect this. |
| 4100 | if depmode=$depmode \ |
| 4101 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| 4102 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 4103 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| 4104 | >/dev/null 2>conftest.err && |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4105 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4106 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 4107 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
| 4108 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 4109 | # icc doesn't choke on unknown options, it will just issue warnings |
| 4110 | # or remarks (even with -Werror). So we grep stderr for any message |
| 4111 | # that says an option was ignored or not supported. |
| 4112 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 4113 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 4114 | # The diagnosis changed in icc 8.0: |
| 4115 | # icc: Command line remark: option '-MP' not supported |
| 4116 | if (grep 'ignoring option' conftest.err || |
| 4117 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 4118 | am_cv_CC_dependencies_compiler_type=$depmode |
| 4119 | break |
| 4120 | fi |
| 4121 | fi |
| 4122 | done |
| 4123 | |
| 4124 | cd .. |
| 4125 | rm -rf conftest.dir |
| 4126 | else |
| 4127 | am_cv_CC_dependencies_compiler_type=none |
| 4128 | fi |
| 4129 | |
| 4130 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4131 | { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 4132 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4133 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 4134 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4135 | if |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4136 | test "x$enable_dependency_tracking" != xno \ |
| 4137 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 4138 | am__fastdepCC_TRUE= |
| 4139 | am__fastdepCC_FALSE='#' |
| 4140 | else |
| 4141 | am__fastdepCC_TRUE='#' |
| 4142 | am__fastdepCC_FALSE= |
| 4143 | fi |
| 4144 | |
| 4145 | |
| 4146 | ac_ext=c |
| 4147 | ac_cpp='$CPP $CPPFLAGS' |
| 4148 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4149 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4150 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4151 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 4152 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4153 | # On Suns, sometimes $CPP names a directory. |
| 4154 | if test -n "$CPP" && test -d "$CPP"; then |
| 4155 | CPP= |
| 4156 | fi |
| 4157 | if test -z "$CPP"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4158 | if test "${ac_cv_prog_CPP+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 4159 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4160 | else |
| 4161 | # Double quotes because CPP needs to be expanded |
| 4162 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4163 | do |
| 4164 | ac_preproc_ok=false |
| 4165 | for ac_c_preproc_warn_flag in '' yes |
| 4166 | do |
| 4167 | # Use a header file that comes with gcc, so configuring glibc |
| 4168 | # with a fresh cross-compiler works. |
| 4169 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4170 | # <limits.h> exists even on freestanding compilers. |
| 4171 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4172 | # not just through cpp. "Syntax error" is here to catch this case. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4173 | cat >conftest.$ac_ext <<_ACEOF |
| 4174 | /* confdefs.h. */ |
| 4175 | _ACEOF |
| 4176 | cat confdefs.h >>conftest.$ac_ext |
| 4177 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4178 | /* end confdefs.h. */ |
| 4179 | #ifdef __STDC__ |
| 4180 | # include <limits.h> |
| 4181 | #else |
| 4182 | # include <assert.h> |
| 4183 | #endif |
| 4184 | Syntax error |
| 4185 | _ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4186 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4187 | case "(($ac_try" in |
| 4188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4189 | *) ac_try_echo=$ac_try;; |
| 4190 | esac |
| 4191 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4192 | $as_echo "$ac_try_echo") >&5 |
| 4193 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4194 | ac_status=$? |
| 4195 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4196 | rm -f conftest.er1 |
| 4197 | cat conftest.err >&5 |
| 4198 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4199 | (exit $ac_status); } >/dev/null && { |
| 4200 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 4201 | test ! -s conftest.err |
| 4202 | }; then |
| 4203 | : |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 4204 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4205 | $as_echo "$as_me: failed program was:" >&5 |
| 4206 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4207 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4208 | # Broken: fails on valid input. |
| 4209 | continue |
| 4210 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4211 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4212 | rm -f conftest.err conftest.$ac_ext |
| 4213 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4214 | # OK, works on sane cases. Now check whether nonexistent headers |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4215 | # can be detected and how. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4216 | cat >conftest.$ac_ext <<_ACEOF |
| 4217 | /* confdefs.h. */ |
| 4218 | _ACEOF |
| 4219 | cat confdefs.h >>conftest.$ac_ext |
| 4220 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4221 | /* end confdefs.h. */ |
| 4222 | #include <ac_nonexistent.h> |
| 4223 | _ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4224 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4225 | case "(($ac_try" in |
| 4226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4227 | *) ac_try_echo=$ac_try;; |
| 4228 | esac |
| 4229 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4230 | $as_echo "$ac_try_echo") >&5 |
| 4231 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4232 | ac_status=$? |
| 4233 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4234 | rm -f conftest.er1 |
| 4235 | cat conftest.err >&5 |
| 4236 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4237 | (exit $ac_status); } >/dev/null && { |
| 4238 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 4239 | test ! -s conftest.err |
| 4240 | }; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4241 | # Broken: success on invalid input. |
| 4242 | continue |
| 4243 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4244 | $as_echo "$as_me: failed program was:" >&5 |
| 4245 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4246 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4247 | # Passes both tests. |
| 4248 | ac_preproc_ok=: |
| 4249 | break |
| 4250 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4251 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4252 | rm -f conftest.err conftest.$ac_ext |
| 4253 | |
| 4254 | done |
| 4255 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4256 | rm -f conftest.err conftest.$ac_ext |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4257 | if $ac_preproc_ok; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4258 | break |
| 4259 | fi |
| 4260 | |
| 4261 | done |
| 4262 | ac_cv_prog_CPP=$CPP |
| 4263 | |
| 4264 | fi |
| 4265 | CPP=$ac_cv_prog_CPP |
| 4266 | else |
| 4267 | ac_cv_prog_CPP=$CPP |
| 4268 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4269 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 4270 | $as_echo "$CPP" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4271 | ac_preproc_ok=false |
| 4272 | for ac_c_preproc_warn_flag in '' yes |
| 4273 | do |
| 4274 | # Use a header file that comes with gcc, so configuring glibc |
| 4275 | # with a fresh cross-compiler works. |
| 4276 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4277 | # <limits.h> exists even on freestanding compilers. |
| 4278 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4279 | # not just through cpp. "Syntax error" is here to catch this case. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4280 | cat >conftest.$ac_ext <<_ACEOF |
| 4281 | /* confdefs.h. */ |
| 4282 | _ACEOF |
| 4283 | cat confdefs.h >>conftest.$ac_ext |
| 4284 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4285 | /* end confdefs.h. */ |
| 4286 | #ifdef __STDC__ |
| 4287 | # include <limits.h> |
| 4288 | #else |
| 4289 | # include <assert.h> |
| 4290 | #endif |
| 4291 | Syntax error |
| 4292 | _ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4293 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4294 | case "(($ac_try" in |
| 4295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4296 | *) ac_try_echo=$ac_try;; |
| 4297 | esac |
| 4298 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4299 | $as_echo "$ac_try_echo") >&5 |
| 4300 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4301 | ac_status=$? |
| 4302 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4303 | rm -f conftest.er1 |
| 4304 | cat conftest.err >&5 |
| 4305 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4306 | (exit $ac_status); } >/dev/null && { |
| 4307 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 4308 | test ! -s conftest.err |
| 4309 | }; then |
| 4310 | : |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 4311 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4312 | $as_echo "$as_me: failed program was:" >&5 |
| 4313 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4314 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4315 | # Broken: fails on valid input. |
| 4316 | continue |
| 4317 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4318 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4319 | rm -f conftest.err conftest.$ac_ext |
| 4320 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4321 | # OK, works on sane cases. Now check whether nonexistent headers |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4322 | # can be detected and how. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4323 | cat >conftest.$ac_ext <<_ACEOF |
| 4324 | /* confdefs.h. */ |
| 4325 | _ACEOF |
| 4326 | cat confdefs.h >>conftest.$ac_ext |
| 4327 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4328 | /* end confdefs.h. */ |
| 4329 | #include <ac_nonexistent.h> |
| 4330 | _ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4331 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4332 | case "(($ac_try" in |
| 4333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4334 | *) ac_try_echo=$ac_try;; |
| 4335 | esac |
| 4336 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4337 | $as_echo "$ac_try_echo") >&5 |
| 4338 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4339 | ac_status=$? |
| 4340 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4341 | rm -f conftest.er1 |
| 4342 | cat conftest.err >&5 |
| 4343 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4344 | (exit $ac_status); } >/dev/null && { |
| 4345 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 4346 | test ! -s conftest.err |
| 4347 | }; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4348 | # Broken: success on invalid input. |
| 4349 | continue |
| 4350 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4351 | $as_echo "$as_me: failed program was:" >&5 |
| 4352 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4353 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4354 | # Passes both tests. |
| 4355 | ac_preproc_ok=: |
| 4356 | break |
| 4357 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4358 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4359 | rm -f conftest.err conftest.$ac_ext |
| 4360 | |
| 4361 | done |
| 4362 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4363 | rm -f conftest.err conftest.$ac_ext |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4364 | if $ac_preproc_ok; then |
| 4365 | : |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4366 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4367 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 4368 | See \`config.log' for more details." >&5 |
| 4369 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 4370 | See \`config.log' for more details." >&2;} |
| 4371 | { (exit 1); exit 1; }; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4372 | fi |
| 4373 | |
| 4374 | ac_ext=c |
| 4375 | ac_cpp='$CPP $CPPFLAGS' |
| 4376 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4377 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4378 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4379 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4380 | if test "$GCC" = yes; then |
Craig Silverstein | c79c32d | 2008-07-22 23:29:39 +0000 | [diff] [blame] | 4381 | GCC_TRUE= |
| 4382 | GCC_FALSE='#' |
| 4383 | else |
| 4384 | GCC_TRUE='#' |
| 4385 | GCC_FALSE= |
| 4386 | fi |
| 4387 | # let the Makefile know if we're gcc |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4388 | # Make sure we can run config.sub. |
| 4389 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4390 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 4391 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
| 4392 | { (exit 1); exit 1; }; } |
Craig Silverstein | c79c32d | 2008-07-22 23:29:39 +0000 | [diff] [blame] | 4393 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4394 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 4395 | $as_echo_n "checking build system type... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4396 | if test "${ac_cv_build+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 4397 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4398 | else |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4399 | ac_build_alias=$build_alias |
| 4400 | test "x$ac_build_alias" = x && |
| 4401 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 4402 | test "x$ac_build_alias" = x && |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4403 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 4404 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 4405 | { (exit 1); exit 1; }; } |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4406 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4407 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 4408 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
| 4409 | { (exit 1); exit 1; }; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4410 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4411 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4412 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 4413 | $as_echo "$ac_cv_build" >&6; } |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4414 | case $ac_cv_build in |
| 4415 | *-*-*) ;; |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4416 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 4417 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} |
| 4418 | { (exit 1); exit 1; }; };; |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4419 | esac |
| 4420 | build=$ac_cv_build |
| 4421 | ac_save_IFS=$IFS; IFS='-' |
| 4422 | set x $ac_cv_build |
| 4423 | shift |
| 4424 | build_cpu=$1 |
| 4425 | build_vendor=$2 |
| 4426 | shift; shift |
| 4427 | # Remember, the first character of IFS is used to create $*, |
| 4428 | # except with old shells: |
| 4429 | build_os=$* |
| 4430 | IFS=$ac_save_IFS |
| 4431 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 4432 | |
| 4433 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4434 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 4435 | $as_echo_n "checking host system type... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4436 | if test "${ac_cv_host+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 4437 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4438 | else |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4439 | if test "x$host_alias" = x; then |
| 4440 | ac_cv_host=$ac_cv_build |
| 4441 | else |
| 4442 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4443 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 4444 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
| 4445 | { (exit 1); exit 1; }; } |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4446 | fi |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4447 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4448 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4449 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 4450 | $as_echo "$ac_cv_host" >&6; } |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4451 | case $ac_cv_host in |
| 4452 | *-*-*) ;; |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4453 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 4454 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} |
| 4455 | { (exit 1); exit 1; }; };; |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4456 | esac |
| 4457 | host=$ac_cv_host |
| 4458 | ac_save_IFS=$IFS; IFS='-' |
| 4459 | set x $ac_cv_host |
| 4460 | shift |
| 4461 | host_cpu=$1 |
| 4462 | host_vendor=$2 |
| 4463 | shift; shift |
| 4464 | # Remember, the first character of IFS is used to create $*, |
| 4465 | # except with old shells: |
| 4466 | host_os=$* |
| 4467 | IFS=$ac_save_IFS |
| 4468 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 4469 | |
| 4470 | |
| 4471 | |
Craig Silverstein | 357b3d9 | 2011-07-29 22:49:50 +0000 | [diff] [blame] | 4472 | # MinGW uses autoconf, but also needs the windows shim routines |
| 4473 | # (since it doesn't have its own support for, say, pthreads). |
| 4474 | # This requires us to #include a special header file, and also to |
| 4475 | # link in some windows versions of .o's instead of the unix versions. |
| 4476 | |
| 4477 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4478 | # Populate $host_cpu, $host_os, etc. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4479 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 |
| 4480 | $as_echo_n "checking host system type... " >&6; } |
| 4481 | if test "${ac_cv_host+set}" = set; then |
| 4482 | $as_echo_n "(cached) " >&6 |
| 4483 | else |
| 4484 | if test "x$host_alias" = x; then |
| 4485 | ac_cv_host=$ac_cv_build |
| 4486 | else |
| 4487 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 4488 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 4489 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
| 4490 | { (exit 1); exit 1; }; } |
| 4491 | fi |
| 4492 | |
| 4493 | fi |
| 4494 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 4495 | $as_echo "$ac_cv_host" >&6; } |
| 4496 | case $ac_cv_host in |
| 4497 | *-*-*) ;; |
| 4498 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 4499 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} |
| 4500 | { (exit 1); exit 1; }; };; |
| 4501 | esac |
| 4502 | host=$ac_cv_host |
| 4503 | ac_save_IFS=$IFS; IFS='-' |
| 4504 | set x $ac_cv_host |
| 4505 | shift |
| 4506 | host_cpu=$1 |
| 4507 | host_vendor=$2 |
| 4508 | shift; shift |
| 4509 | # Remember, the first character of IFS is used to create $*, |
| 4510 | # except with old shells: |
| 4511 | host_os=$* |
| 4512 | IFS=$ac_save_IFS |
| 4513 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 4514 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4515 | |
| 4516 | case $host_os in |
| 4517 | *mingw*) |
| 4518 | # Disabling fast install keeps libtool from creating wrapper scripts |
| 4519 | # around the executables it builds. Such scripts have caused failures on |
| 4520 | # MinGW. Using this option means an extra link step is executed during |
| 4521 | # "make install". |
| 4522 | # Check whether --enable-fast-install was given. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4523 | if test "${enable_fast_install+set}" = set; then |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4524 | enableval=$enable_fast_install; p=${PACKAGE-default} |
| 4525 | case $enableval in |
| 4526 | yes) enable_fast_install=yes ;; |
| 4527 | no) enable_fast_install=no ;; |
| 4528 | *) |
| 4529 | enable_fast_install=no |
| 4530 | # Look at the argument we got. We use all the common list separators. |
| 4531 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 4532 | for pkg in $enableval; do |
| 4533 | IFS="$lt_save_ifs" |
| 4534 | if test "X$pkg" = "X$p"; then |
| 4535 | enable_fast_install=yes |
| 4536 | fi |
| 4537 | done |
| 4538 | IFS="$lt_save_ifs" |
| 4539 | ;; |
| 4540 | esac |
| 4541 | else |
| 4542 | enable_fast_install=no |
| 4543 | fi |
| 4544 | |
| 4545 | |
| 4546 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 4547 | |
| 4548 | |
| 4549 | |
| 4550 | |
| 4551 | |
| 4552 | |
Craig Silverstein | 688ea02 | 2009-09-11 00:15:50 +0000 | [diff] [blame] | 4553 | # /tmp is a mount-point in mingw, and hard to use. use cwd instead |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 4554 | TEST_TMPDIR=gflags_testdir |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4555 | ;; |
| 4556 | *) |
| 4557 | # Check whether --enable-fast-install was given. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4558 | if test "${enable_fast_install+set}" = set; then |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4559 | enableval=$enable_fast_install; p=${PACKAGE-default} |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4560 | case $enableval in |
| 4561 | yes) enable_fast_install=yes ;; |
| 4562 | no) enable_fast_install=no ;; |
| 4563 | *) |
| 4564 | enable_fast_install=no |
| 4565 | # Look at the argument we got. We use all the common list separators. |
| 4566 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 4567 | for pkg in $enableval; do |
| 4568 | IFS="$lt_save_ifs" |
| 4569 | if test "X$pkg" = "X$p"; then |
| 4570 | enable_fast_install=yes |
| 4571 | fi |
| 4572 | done |
| 4573 | IFS="$lt_save_ifs" |
| 4574 | ;; |
| 4575 | esac |
| 4576 | else |
| 4577 | enable_fast_install=yes |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4578 | fi |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4579 | |
| 4580 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 4581 | |
| 4582 | |
| 4583 | |
| 4584 | |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 4585 | TEST_TMPDIR=/tmp/gflags |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4586 | ;; |
| 4587 | esac |
| 4588 | |
Craig Silverstein | 688ea02 | 2009-09-11 00:15:50 +0000 | [diff] [blame] | 4589 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4590 | # Uncomment this if you'll be exporting libraries (.so's) |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 4591 | case `pwd` in |
| 4592 | *\ * | *\ *) |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4593 | { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 4594 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
| 4595 | esac |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4596 | |
| 4597 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4598 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 4599 | macro_version='2.2.6b' |
| 4600 | macro_revision='1.3017' |
| 4601 | |
| 4602 | |
| 4603 | |
| 4604 | |
| 4605 | |
| 4606 | |
| 4607 | |
| 4608 | |
| 4609 | |
| 4610 | |
| 4611 | |
| 4612 | |
| 4613 | |
| 4614 | ltmain="$ac_aux_dir/ltmain.sh" |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4615 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4616 | { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 4617 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4618 | if test "${ac_cv_path_SED+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 4619 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4620 | else |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 4621 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 4622 | for ac_i in 1 2 3 4 5 6 7; do |
| 4623 | ac_script="$ac_script$as_nl$ac_script" |
| 4624 | done |
| 4625 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4626 | $as_unset ac_script || ac_script= |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 4627 | if test -z "$SED"; then |
| 4628 | ac_path_SED_found=false |
| 4629 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4630 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4631 | for as_dir in $PATH |
| 4632 | do |
| 4633 | IFS=$as_save_IFS |
| 4634 | test -z "$as_dir" && as_dir=. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4635 | for ac_prog in sed gsed; do |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4636 | for ac_exec_ext in '' $ac_executable_extensions; do |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 4637 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
| 4638 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue |
| 4639 | # Check for GNU ac_path_SED and select it if it is found. |
| 4640 | # Check for GNU $ac_path_SED |
| 4641 | case `"$ac_path_SED" --version 2>&1` in |
| 4642 | *GNU*) |
| 4643 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 4644 | *) |
| 4645 | ac_count=0 |
| 4646 | $as_echo_n 0123456789 >"conftest.in" |
| 4647 | while : |
| 4648 | do |
| 4649 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4650 | mv "conftest.tmp" "conftest.in" |
| 4651 | cp "conftest.in" "conftest.nl" |
| 4652 | $as_echo '' >> "conftest.nl" |
| 4653 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4654 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4655 | ac_count=`expr $ac_count + 1` |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 4656 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 4657 | # Best one so far, save it but keep looking for a better one |
| 4658 | ac_cv_path_SED="$ac_path_SED" |
| 4659 | ac_path_SED_max=$ac_count |
| 4660 | fi |
| 4661 | # 10*(2^10) chars as input seems more than enough |
| 4662 | test $ac_count -gt 10 && break |
| 4663 | done |
| 4664 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4665 | esac |
| 4666 | |
| 4667 | $ac_path_SED_found && break 3 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4668 | done |
| 4669 | done |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4670 | done |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 4671 | IFS=$as_save_IFS |
| 4672 | if test -z "$ac_cv_path_SED"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4673 | { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 |
| 4674 | $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} |
| 4675 | { (exit 1); exit 1; }; } |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 4676 | fi |
| 4677 | else |
| 4678 | ac_cv_path_SED=$SED |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4679 | fi |
| 4680 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 4681 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4682 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 4683 | $as_echo "$ac_cv_path_SED" >&6; } |
| 4684 | SED="$ac_cv_path_SED" |
| 4685 | rm -f conftest.sed |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4686 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 4687 | test -z "$SED" && SED=sed |
| 4688 | Xsed="$SED -e 1s/^X//" |
| 4689 | |
| 4690 | |
| 4691 | |
| 4692 | |
| 4693 | |
| 4694 | |
| 4695 | |
| 4696 | |
| 4697 | |
| 4698 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4699 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4700 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 4701 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4702 | if test "${ac_cv_path_GREP+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 4703 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4704 | else |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 4705 | if test -z "$GREP"; then |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4706 | ac_path_GREP_found=false |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 4707 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4708 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4709 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4710 | do |
| 4711 | IFS=$as_save_IFS |
| 4712 | test -z "$as_dir" && as_dir=. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4713 | for ac_prog in grep ggrep; do |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 4714 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4715 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4716 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 4717 | # Check for GNU ac_path_GREP and select it if it is found. |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4718 | # Check for GNU $ac_path_GREP |
| 4719 | case `"$ac_path_GREP" --version 2>&1` in |
| 4720 | *GNU*) |
| 4721 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4722 | *) |
| 4723 | ac_count=0 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 4724 | $as_echo_n 0123456789 >"conftest.in" |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4725 | while : |
| 4726 | do |
| 4727 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4728 | mv "conftest.tmp" "conftest.in" |
| 4729 | cp "conftest.in" "conftest.nl" |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 4730 | $as_echo 'GREP' >> "conftest.nl" |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4731 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4732 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4733 | ac_count=`expr $ac_count + 1` |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4734 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4735 | # Best one so far, save it but keep looking for a better one |
| 4736 | ac_cv_path_GREP="$ac_path_GREP" |
| 4737 | ac_path_GREP_max=$ac_count |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4738 | fi |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4739 | # 10*(2^10) chars as input seems more than enough |
| 4740 | test $ac_count -gt 10 && break |
| 4741 | done |
| 4742 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4743 | esac |
| 4744 | |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 4745 | $ac_path_GREP_found && break 3 |
| 4746 | done |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4747 | done |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4748 | done |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4749 | IFS=$as_save_IFS |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 4750 | if test -z "$ac_cv_path_GREP"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4751 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 4752 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 4753 | { (exit 1); exit 1; }; } |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 4754 | fi |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4755 | else |
| 4756 | ac_cv_path_GREP=$GREP |
| 4757 | fi |
| 4758 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4759 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4760 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 4761 | $as_echo "$ac_cv_path_GREP" >&6; } |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4762 | GREP="$ac_cv_path_GREP" |
| 4763 | |
| 4764 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4765 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 4766 | $as_echo_n "checking for egrep... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4767 | if test "${ac_cv_path_EGREP+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 4768 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4769 | else |
| 4770 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4771 | then ac_cv_path_EGREP="$GREP -E" |
| 4772 | else |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 4773 | if test -z "$EGREP"; then |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4774 | ac_path_EGREP_found=false |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 4775 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4776 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4777 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4778 | do |
| 4779 | IFS=$as_save_IFS |
| 4780 | test -z "$as_dir" && as_dir=. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4781 | for ac_prog in egrep; do |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 4782 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4783 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4784 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 4785 | # Check for GNU ac_path_EGREP and select it if it is found. |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4786 | # Check for GNU $ac_path_EGREP |
| 4787 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4788 | *GNU*) |
| 4789 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4790 | *) |
| 4791 | ac_count=0 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 4792 | $as_echo_n 0123456789 >"conftest.in" |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4793 | while : |
| 4794 | do |
| 4795 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4796 | mv "conftest.tmp" "conftest.in" |
| 4797 | cp "conftest.in" "conftest.nl" |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 4798 | $as_echo 'EGREP' >> "conftest.nl" |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4799 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4800 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4801 | ac_count=`expr $ac_count + 1` |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4802 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4803 | # Best one so far, save it but keep looking for a better one |
| 4804 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4805 | ac_path_EGREP_max=$ac_count |
| 4806 | fi |
| 4807 | # 10*(2^10) chars as input seems more than enough |
| 4808 | test $ac_count -gt 10 && break |
| 4809 | done |
| 4810 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4811 | esac |
| 4812 | |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 4813 | $ac_path_EGREP_found && break 3 |
| 4814 | done |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4815 | done |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4816 | done |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4817 | IFS=$as_save_IFS |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 4818 | if test -z "$ac_cv_path_EGREP"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4819 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 4820 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 4821 | { (exit 1); exit 1; }; } |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 4822 | fi |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4823 | else |
| 4824 | ac_cv_path_EGREP=$EGREP |
| 4825 | fi |
| 4826 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4827 | fi |
| 4828 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4829 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 4830 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4831 | EGREP="$ac_cv_path_EGREP" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4832 | |
| 4833 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4834 | { $as_echo "$as_me:$LINENO: checking for fgrep" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 4835 | $as_echo_n "checking for fgrep... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4836 | if test "${ac_cv_path_FGREP+set}" = set; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 4837 | $as_echo_n "(cached) " >&6 |
| 4838 | else |
| 4839 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
| 4840 | then ac_cv_path_FGREP="$GREP -F" |
| 4841 | else |
| 4842 | if test -z "$FGREP"; then |
| 4843 | ac_path_FGREP_found=false |
| 4844 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4845 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4846 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4847 | do |
| 4848 | IFS=$as_save_IFS |
| 4849 | test -z "$as_dir" && as_dir=. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4850 | for ac_prog in fgrep; do |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 4851 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4852 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4853 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue |
| 4854 | # Check for GNU ac_path_FGREP and select it if it is found. |
| 4855 | # Check for GNU $ac_path_FGREP |
| 4856 | case `"$ac_path_FGREP" --version 2>&1` in |
| 4857 | *GNU*) |
| 4858 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
| 4859 | *) |
| 4860 | ac_count=0 |
| 4861 | $as_echo_n 0123456789 >"conftest.in" |
| 4862 | while : |
| 4863 | do |
| 4864 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4865 | mv "conftest.tmp" "conftest.in" |
| 4866 | cp "conftest.in" "conftest.nl" |
| 4867 | $as_echo 'FGREP' >> "conftest.nl" |
| 4868 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4869 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4870 | ac_count=`expr $ac_count + 1` |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 4871 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
| 4872 | # Best one so far, save it but keep looking for a better one |
| 4873 | ac_cv_path_FGREP="$ac_path_FGREP" |
| 4874 | ac_path_FGREP_max=$ac_count |
| 4875 | fi |
| 4876 | # 10*(2^10) chars as input seems more than enough |
| 4877 | test $ac_count -gt 10 && break |
| 4878 | done |
| 4879 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4880 | esac |
| 4881 | |
| 4882 | $ac_path_FGREP_found && break 3 |
| 4883 | done |
| 4884 | done |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4885 | done |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 4886 | IFS=$as_save_IFS |
| 4887 | if test -z "$ac_cv_path_FGREP"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4888 | { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 4889 | $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 4890 | { (exit 1); exit 1; }; } |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 4891 | fi |
| 4892 | else |
| 4893 | ac_cv_path_FGREP=$FGREP |
| 4894 | fi |
| 4895 | |
| 4896 | fi |
| 4897 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4898 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 4899 | $as_echo "$ac_cv_path_FGREP" >&6; } |
| 4900 | FGREP="$ac_cv_path_FGREP" |
| 4901 | |
| 4902 | |
| 4903 | test -z "$GREP" && GREP=grep |
| 4904 | |
| 4905 | |
| 4906 | |
| 4907 | |
| 4908 | |
| 4909 | |
| 4910 | |
| 4911 | |
| 4912 | |
| 4913 | |
| 4914 | |
| 4915 | |
| 4916 | |
| 4917 | |
| 4918 | |
| 4919 | |
| 4920 | |
| 4921 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4922 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4923 | # Check whether --with-gnu-ld was given. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4924 | if test "${with_gnu_ld+set}" = set; then |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4925 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4926 | else |
| 4927 | with_gnu_ld=no |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 4928 | fi |
| 4929 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4930 | ac_prog=ld |
| 4931 | if test "$GCC" = yes; then |
| 4932 | # Check if gcc -print-prog-name=ld gives a path. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4933 | { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 4934 | $as_echo_n "checking for ld used by $CC... " >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4935 | case $host in |
| 4936 | *-*-mingw*) |
| 4937 | # gcc leaves a trailing carriage return which upsets mingw |
| 4938 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 4939 | *) |
| 4940 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 4941 | esac |
| 4942 | case $ac_prog in |
| 4943 | # Accept absolute paths. |
| 4944 | [\\/]* | ?:[\\/]*) |
| 4945 | re_direlt='/[^/][^/]*/\.\./' |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 4946 | # Canonicalize the pathname of ld |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 4947 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 4948 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 4949 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4950 | done |
| 4951 | test -z "$LD" && LD="$ac_prog" |
| 4952 | ;; |
| 4953 | "") |
| 4954 | # If it fails, then pretend we aren't using GCC. |
| 4955 | ac_prog=ld |
| 4956 | ;; |
| 4957 | *) |
| 4958 | # If it is relative, then search for the first ld in PATH. |
| 4959 | with_gnu_ld=unknown |
| 4960 | ;; |
| 4961 | esac |
| 4962 | elif test "$with_gnu_ld" = yes; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4963 | { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 4964 | $as_echo_n "checking for GNU ld... " >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4965 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4966 | { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 4967 | $as_echo_n "checking for non-GNU ld... " >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4968 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 4969 | if test "${lt_cv_path_LD+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 4970 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4971 | else |
| 4972 | if test -z "$LD"; then |
| 4973 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 4974 | for ac_dir in $PATH; do |
| 4975 | IFS="$lt_save_ifs" |
| 4976 | test -z "$ac_dir" && ac_dir=. |
| 4977 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 4978 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 4979 | # Check to see if the program is GNU ld. I'd rather use --version, |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 4980 | # but apparently some variants of GNU ld only accept -v. |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 4981 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 4982 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 4983 | *GNU* | *'with BFD'*) |
| 4984 | test "$with_gnu_ld" != no && break |
| 4985 | ;; |
| 4986 | *) |
| 4987 | test "$with_gnu_ld" != yes && break |
| 4988 | ;; |
| 4989 | esac |
| 4990 | fi |
| 4991 | done |
| 4992 | IFS="$lt_save_ifs" |
| 4993 | else |
| 4994 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 4995 | fi |
| 4996 | fi |
| 4997 | |
| 4998 | LD="$lt_cv_path_LD" |
| 4999 | if test -n "$LD"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5000 | { $as_echo "$as_me:$LINENO: result: $LD" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 5001 | $as_echo "$LD" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5002 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5003 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 5004 | $as_echo "no" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5005 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5006 | test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 5007 | $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 5008 | { (exit 1); exit 1; }; } |
| 5009 | { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 5010 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5011 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 5012 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5013 | else |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 5014 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5015 | case `$LD -v 2>&1 </dev/null` in |
| 5016 | *GNU* | *'with BFD'*) |
| 5017 | lt_cv_prog_gnu_ld=yes |
| 5018 | ;; |
| 5019 | *) |
| 5020 | lt_cv_prog_gnu_ld=no |
| 5021 | ;; |
| 5022 | esac |
| 5023 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5024 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 5025 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5026 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 5027 | |
| 5028 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5029 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5030 | |
| 5031 | |
| 5032 | |
| 5033 | |
| 5034 | |
| 5035 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5036 | { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5037 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5038 | if test "${lt_cv_path_NM+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 5039 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5040 | else |
| 5041 | if test -n "$NM"; then |
| 5042 | # Let the user override the test. |
| 5043 | lt_cv_path_NM="$NM" |
| 5044 | else |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 5045 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 5046 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 5047 | lt_nm_to_check="$lt_nm_to_check nm" |
| 5048 | fi |
| 5049 | for lt_tmp_nm in $lt_nm_to_check; do |
| 5050 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5051 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 5052 | IFS="$lt_save_ifs" |
| 5053 | test -z "$ac_dir" && ac_dir=. |
| 5054 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 5055 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 5056 | # Check to see if the nm accepts a BSD-compat flag. |
| 5057 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 5058 | # nm: unknown option "B" ignored |
| 5059 | # Tru64's nm complains that /dev/null is an invalid object file |
| 5060 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 5061 | */dev/null* | *'Invalid file or object type'*) |
| 5062 | lt_cv_path_NM="$tmp_nm -B" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5063 | break |
| 5064 | ;; |
| 5065 | *) |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 5066 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 5067 | */dev/null*) |
| 5068 | lt_cv_path_NM="$tmp_nm -p" |
| 5069 | break |
| 5070 | ;; |
| 5071 | *) |
| 5072 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 5073 | continue # so that we can try to find one that supports BSD flags |
| 5074 | ;; |
| 5075 | esac |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5076 | ;; |
| 5077 | esac |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 5078 | fi |
| 5079 | done |
| 5080 | IFS="$lt_save_ifs" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5081 | done |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5082 | : ${lt_cv_path_NM=no} |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5083 | fi |
| 5084 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5085 | { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 5086 | $as_echo "$lt_cv_path_NM" >&6; } |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5087 | if test "$lt_cv_path_NM" != "no"; then |
| 5088 | NM="$lt_cv_path_NM" |
| 5089 | else |
| 5090 | # Didn't find any BSD compatible name lister, look for dumpbin. |
| 5091 | if test -n "$ac_tool_prefix"; then |
| 5092 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" |
| 5093 | do |
| 5094 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5095 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5096 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5097 | $as_echo_n "checking for $ac_word... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5098 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5099 | $as_echo_n "(cached) " >&6 |
| 5100 | else |
| 5101 | if test -n "$DUMPBIN"; then |
| 5102 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
| 5103 | else |
| 5104 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5105 | for as_dir in $PATH |
| 5106 | do |
| 5107 | IFS=$as_save_IFS |
| 5108 | test -z "$as_dir" && as_dir=. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5109 | for ac_exec_ext in '' $ac_executable_extensions; do |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5110 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5111 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5112 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5113 | break 2 |
| 5114 | fi |
| 5115 | done |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5116 | done |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5117 | IFS=$as_save_IFS |
| 5118 | |
| 5119 | fi |
| 5120 | fi |
| 5121 | DUMPBIN=$ac_cv_prog_DUMPBIN |
| 5122 | if test -n "$DUMPBIN"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5123 | { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5124 | $as_echo "$DUMPBIN" >&6; } |
| 5125 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5126 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5127 | $as_echo "no" >&6; } |
| 5128 | fi |
| 5129 | |
| 5130 | |
| 5131 | test -n "$DUMPBIN" && break |
| 5132 | done |
| 5133 | fi |
| 5134 | if test -z "$DUMPBIN"; then |
| 5135 | ac_ct_DUMPBIN=$DUMPBIN |
| 5136 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" |
| 5137 | do |
| 5138 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5139 | set dummy $ac_prog; ac_word=$2 |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5140 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5141 | $as_echo_n "checking for $ac_word... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5142 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5143 | $as_echo_n "(cached) " >&6 |
| 5144 | else |
| 5145 | if test -n "$ac_ct_DUMPBIN"; then |
| 5146 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
| 5147 | else |
| 5148 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5149 | for as_dir in $PATH |
| 5150 | do |
| 5151 | IFS=$as_save_IFS |
| 5152 | test -z "$as_dir" && as_dir=. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5153 | for ac_exec_ext in '' $ac_executable_extensions; do |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5154 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5155 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5156 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5157 | break 2 |
| 5158 | fi |
| 5159 | done |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5160 | done |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5161 | IFS=$as_save_IFS |
| 5162 | |
| 5163 | fi |
| 5164 | fi |
| 5165 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
| 5166 | if test -n "$ac_ct_DUMPBIN"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5167 | { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5168 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
| 5169 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5170 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5171 | $as_echo "no" >&6; } |
| 5172 | fi |
| 5173 | |
| 5174 | |
| 5175 | test -n "$ac_ct_DUMPBIN" && break |
| 5176 | done |
| 5177 | |
| 5178 | if test "x$ac_ct_DUMPBIN" = x; then |
| 5179 | DUMPBIN=":" |
| 5180 | else |
| 5181 | case $cross_compiling:$ac_tool_warned in |
| 5182 | yes:) |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5183 | { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5184 | whose name does not start with the host triplet. If you think this |
| 5185 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5186 | $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5187 | whose name does not start with the host triplet. If you think this |
| 5188 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5189 | ac_tool_warned=yes ;; |
| 5190 | esac |
| 5191 | DUMPBIN=$ac_ct_DUMPBIN |
| 5192 | fi |
| 5193 | fi |
| 5194 | |
| 5195 | |
| 5196 | if test "$DUMPBIN" != ":"; then |
| 5197 | NM="$DUMPBIN" |
| 5198 | fi |
| 5199 | fi |
| 5200 | test -z "$NM" && NM=nm |
| 5201 | |
| 5202 | |
| 5203 | |
| 5204 | |
| 5205 | |
| 5206 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5207 | { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5208 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5209 | if test "${lt_cv_nm_interface+set}" = set; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5210 | $as_echo_n "(cached) " >&6 |
| 5211 | else |
| 5212 | lt_cv_nm_interface="BSD nm" |
| 5213 | echo "int some_variable = 0;" > conftest.$ac_ext |
Craig Silverstein | 357b3d9 | 2011-07-29 22:49:50 +0000 | [diff] [blame] | 5214 | (eval echo "\"\$as_me:5214: $ac_compile\"" >&5) |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5215 | (eval "$ac_compile" 2>conftest.err) |
| 5216 | cat conftest.err >&5 |
Craig Silverstein | 357b3d9 | 2011-07-29 22:49:50 +0000 | [diff] [blame] | 5217 | (eval echo "\"\$as_me:5217: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5218 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 5219 | cat conftest.err >&5 |
Craig Silverstein | 357b3d9 | 2011-07-29 22:49:50 +0000 | [diff] [blame] | 5220 | (eval echo "\"\$as_me:5220: output\"" >&5) |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5221 | cat conftest.out >&5 |
| 5222 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 5223 | lt_cv_nm_interface="MS dumpbin" |
| 5224 | fi |
| 5225 | rm -f conftest* |
| 5226 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5227 | { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5228 | $as_echo "$lt_cv_nm_interface" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5229 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5230 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 5231 | $as_echo_n "checking whether ln -s works... " >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5232 | LN_S=$as_ln_s |
| 5233 | if test "$LN_S" = "ln -s"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5234 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 5235 | $as_echo "yes" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5236 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5237 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 5238 | $as_echo "no, using $LN_S" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5239 | fi |
| 5240 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5241 | # find the maximum length of command line arguments |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5242 | { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 5243 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5244 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 5245 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5246 | else |
| 5247 | i=0 |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 5248 | teststring="ABCD" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5249 | |
| 5250 | case $build_os in |
| 5251 | msdosdjgpp*) |
| 5252 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 5253 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 5254 | # during glob expansion). Even if it were fixed, the result of this |
| 5255 | # check would be larger than it should be. |
| 5256 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 5257 | ;; |
| 5258 | |
| 5259 | gnu*) |
| 5260 | # Under GNU Hurd, this test is not required because there is |
| 5261 | # no limit to the length of command line arguments. |
| 5262 | # Libtool will interpret -1 as no limit whatsoever |
| 5263 | lt_cv_sys_max_cmd_len=-1; |
| 5264 | ;; |
| 5265 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5266 | cygwin* | mingw* | cegcc*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5267 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 5268 | # about 5 minutes as the teststring grows exponentially. |
| 5269 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 5270 | # you end up with a "frozen" computer, even though with patience |
| 5271 | # the test eventually succeeds (with a max line length of 256k). |
| 5272 | # Instead, let's just punt: use the minimum linelength reported by |
| 5273 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 5274 | lt_cv_sys_max_cmd_len=8192; |
| 5275 | ;; |
| 5276 | |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 5277 | amigaos*) |
| 5278 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 5279 | # So we just punt and use a minimum line length of 8192. |
| 5280 | lt_cv_sys_max_cmd_len=8192; |
| 5281 | ;; |
| 5282 | |
| 5283 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 5284 | # This has been around since 386BSD, at least. Likely further. |
| 5285 | if test -x /sbin/sysctl; then |
| 5286 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 5287 | elif test -x /usr/sbin/sysctl; then |
| 5288 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 5289 | else |
| 5290 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 5291 | fi |
| 5292 | # And add a safety zone |
| 5293 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 5294 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 5295 | ;; |
| 5296 | |
| 5297 | interix*) |
| 5298 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 5299 | lt_cv_sys_max_cmd_len=196608 |
| 5300 | ;; |
| 5301 | |
| 5302 | osf*) |
| 5303 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 5304 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 5305 | # nice to cause kernel panics so lets avoid the loop below. |
| 5306 | # First set a reasonable default. |
| 5307 | lt_cv_sys_max_cmd_len=16384 |
| 5308 | # |
| 5309 | if test -x /sbin/sysconfig; then |
| 5310 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 5311 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 5312 | esac |
| 5313 | fi |
| 5314 | ;; |
| 5315 | sco3.2v5*) |
| 5316 | lt_cv_sys_max_cmd_len=102400 |
| 5317 | ;; |
| 5318 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 5319 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 5320 | if test -n "$kargmax"; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5321 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 5322 | else |
| 5323 | lt_cv_sys_max_cmd_len=32768 |
| 5324 | fi |
| 5325 | ;; |
| 5326 | *) |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 5327 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 5328 | if test -n "$lt_cv_sys_max_cmd_len"; then |
| 5329 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 5330 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 5331 | else |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5332 | # Make teststring a little bigger before we do anything with it. |
| 5333 | # a 1K string should be a reasonable start. |
| 5334 | for i in 1 2 3 4 5 6 7 8 ; do |
| 5335 | teststring=$teststring$teststring |
| 5336 | done |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 5337 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5338 | # If test is not a shell built-in, we'll probably end up computing a |
| 5339 | # maximum length that is only half of the actual maximum length, but |
| 5340 | # we can't tell. |
| 5341 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ |
| 5342 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 5343 | test $i != 17 # 1/2 MB should be enough |
| 5344 | do |
| 5345 | i=`expr $i + 1` |
| 5346 | teststring=$teststring$teststring |
| 5347 | done |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5348 | # Only check the string length outside the loop. |
| 5349 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 5350 | teststring= |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5351 | # Add a significant safety factor because C++ compilers can tack on |
| 5352 | # massive amounts of additional arguments before passing them to the |
| 5353 | # linker. It appears as though 1/2 is a usable value. |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 5354 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 5355 | fi |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5356 | ;; |
| 5357 | esac |
| 5358 | |
| 5359 | fi |
| 5360 | |
| 5361 | if test -n $lt_cv_sys_max_cmd_len ; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5362 | { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 5363 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5364 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5365 | { $as_echo "$as_me:$LINENO: result: none" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 5366 | $as_echo "none" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5367 | fi |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5368 | max_cmd_len=$lt_cv_sys_max_cmd_len |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5369 | |
| 5370 | |
| 5371 | |
| 5372 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 5373 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5374 | |
| 5375 | : ${CP="cp -f"} |
| 5376 | : ${MV="mv -f"} |
| 5377 | : ${RM="rm -f"} |
| 5378 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5379 | { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5380 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } |
| 5381 | # Try some XSI features |
| 5382 | xsi_shell=no |
| 5383 | ( _lt_dummy="a/b/c" |
| 5384 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ |
| 5385 | = c,a/b,, \ |
| 5386 | && eval 'test $(( 1 + 1 )) -eq 2 \ |
| 5387 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
| 5388 | && xsi_shell=yes |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5389 | { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5390 | $as_echo "$xsi_shell" >&6; } |
| 5391 | |
| 5392 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5393 | { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5394 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } |
| 5395 | lt_shell_append=no |
| 5396 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ |
| 5397 | >/dev/null 2>&1 \ |
| 5398 | && lt_shell_append=yes |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5399 | { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5400 | $as_echo "$lt_shell_append" >&6; } |
| 5401 | |
| 5402 | |
| 5403 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 5404 | lt_unset=unset |
| 5405 | else |
| 5406 | lt_unset=false |
| 5407 | fi |
| 5408 | |
| 5409 | |
| 5410 | |
| 5411 | |
| 5412 | |
| 5413 | # test EBCDIC or ASCII |
| 5414 | case `echo X|tr X '\101'` in |
| 5415 | A) # ASCII based system |
| 5416 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 5417 | lt_SP2NL='tr \040 \012' |
| 5418 | lt_NL2SP='tr \015\012 \040\040' |
| 5419 | ;; |
| 5420 | *) # EBCDIC based system |
| 5421 | lt_SP2NL='tr \100 \n' |
| 5422 | lt_NL2SP='tr \r\n \100\100' |
| 5423 | ;; |
| 5424 | esac |
| 5425 | |
| 5426 | |
| 5427 | |
| 5428 | |
| 5429 | |
| 5430 | |
| 5431 | |
| 5432 | |
| 5433 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5434 | { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5435 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5436 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 5437 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5438 | else |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5439 | lt_cv_ld_reload_flag='-r' |
| 5440 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5441 | { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5442 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
| 5443 | reload_flag=$lt_cv_ld_reload_flag |
| 5444 | case $reload_flag in |
| 5445 | "" | " "*) ;; |
| 5446 | *) reload_flag=" $reload_flag" ;; |
| 5447 | esac |
| 5448 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5449 | case $host_os in |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5450 | darwin*) |
| 5451 | if test "$GCC" = yes; then |
| 5452 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5453 | else |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5454 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5455 | fi |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5456 | ;; |
| 5457 | esac |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5458 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5459 | |
| 5460 | |
| 5461 | |
| 5462 | |
| 5463 | |
| 5464 | |
| 5465 | |
| 5466 | |
| 5467 | if test -n "$ac_tool_prefix"; then |
| 5468 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 5469 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5470 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5471 | $as_echo_n "checking for $ac_word... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5472 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5473 | $as_echo_n "(cached) " >&6 |
| 5474 | else |
| 5475 | if test -n "$OBJDUMP"; then |
| 5476 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 5477 | else |
| 5478 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5479 | for as_dir in $PATH |
| 5480 | do |
| 5481 | IFS=$as_save_IFS |
| 5482 | test -z "$as_dir" && as_dir=. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5483 | for ac_exec_ext in '' $ac_executable_extensions; do |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5484 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5485 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5486 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5487 | break 2 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5488 | fi |
| 5489 | done |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5490 | done |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5491 | IFS=$as_save_IFS |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5492 | |
| 5493 | fi |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5494 | fi |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5495 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 5496 | if test -n "$OBJDUMP"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5497 | { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5498 | $as_echo "$OBJDUMP" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5499 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5500 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5501 | $as_echo "no" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5502 | fi |
| 5503 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5504 | |
| 5505 | fi |
| 5506 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 5507 | ac_ct_OBJDUMP=$OBJDUMP |
| 5508 | # Extract the first word of "objdump", so it can be a program name with args. |
| 5509 | set dummy objdump; ac_word=$2 |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5510 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5511 | $as_echo_n "checking for $ac_word... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5512 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 5513 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5514 | else |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5515 | if test -n "$ac_ct_OBJDUMP"; then |
| 5516 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5517 | else |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5518 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5519 | for as_dir in $PATH |
| 5520 | do |
| 5521 | IFS=$as_save_IFS |
| 5522 | test -z "$as_dir" && as_dir=. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5523 | for ac_exec_ext in '' $ac_executable_extensions; do |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5524 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5525 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5526 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5527 | break 2 |
| 5528 | fi |
| 5529 | done |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5530 | done |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5531 | IFS=$as_save_IFS |
| 5532 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5533 | fi |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5534 | fi |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5535 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 5536 | if test -n "$ac_ct_OBJDUMP"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5537 | { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5538 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
| 5539 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5540 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5541 | $as_echo "no" >&6; } |
| 5542 | fi |
| 5543 | |
| 5544 | if test "x$ac_ct_OBJDUMP" = x; then |
| 5545 | OBJDUMP="false" |
| 5546 | else |
| 5547 | case $cross_compiling:$ac_tool_warned in |
| 5548 | yes:) |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5549 | { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5550 | whose name does not start with the host triplet. If you think this |
| 5551 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5552 | $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5553 | whose name does not start with the host triplet. If you think this |
| 5554 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5555 | ac_tool_warned=yes ;; |
| 5556 | esac |
| 5557 | OBJDUMP=$ac_ct_OBJDUMP |
| 5558 | fi |
| 5559 | else |
| 5560 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 5561 | fi |
| 5562 | |
| 5563 | test -z "$OBJDUMP" && OBJDUMP=objdump |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5564 | |
| 5565 | |
| 5566 | |
| 5567 | |
| 5568 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5569 | |
| 5570 | |
| 5571 | |
| 5572 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5573 | { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5574 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5575 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5576 | $as_echo_n "(cached) " >&6 |
| 5577 | else |
| 5578 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 5579 | lt_cv_file_magic_test_file= |
| 5580 | lt_cv_deplibs_check_method='unknown' |
| 5581 | # Need to set the preceding variable on all platforms that support |
| 5582 | # interlibrary dependencies. |
| 5583 | # 'none' -- dependencies not supported. |
| 5584 | # `unknown' -- same as none, but documents that we really don't know. |
| 5585 | # 'pass_all' -- all dependencies passed with no checks. |
| 5586 | # 'test_compile' -- check by making test program. |
| 5587 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 5588 | # which responds to the $file_magic_cmd with a given extended regex. |
| 5589 | # If you have `file' or equivalent on your system and you're not sure |
| 5590 | # whether `pass_all' will *always* work, you probably want this one. |
| 5591 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5592 | case $host_os in |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5593 | aix[4-9]*) |
| 5594 | lt_cv_deplibs_check_method=pass_all |
| 5595 | ;; |
| 5596 | |
| 5597 | beos*) |
| 5598 | lt_cv_deplibs_check_method=pass_all |
| 5599 | ;; |
| 5600 | |
| 5601 | bsdi[45]*) |
| 5602 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 5603 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 5604 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 5605 | ;; |
| 5606 | |
| 5607 | cygwin*) |
| 5608 | # func_win32_libid is a shell function defined in ltmain.sh |
| 5609 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 5610 | lt_cv_file_magic_cmd='func_win32_libid' |
| 5611 | ;; |
| 5612 | |
| 5613 | mingw* | pw32*) |
| 5614 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 5615 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 5616 | # unless we find 'file', for example because we are cross-compiling. |
| 5617 | if ( file / ) >/dev/null 2>&1; then |
| 5618 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 5619 | lt_cv_file_magic_cmd='func_win32_libid' |
| 5620 | else |
| 5621 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 5622 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5623 | fi |
| 5624 | ;; |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5625 | |
| 5626 | cegcc) |
| 5627 | # use the weaker test based on 'objdump'. See mingw*. |
| 5628 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
| 5629 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 5630 | ;; |
| 5631 | |
| 5632 | darwin* | rhapsody*) |
| 5633 | lt_cv_deplibs_check_method=pass_all |
| 5634 | ;; |
| 5635 | |
| 5636 | freebsd* | dragonfly*) |
| 5637 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 5638 | case $host_cpu in |
| 5639 | i*86 ) |
| 5640 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 5641 | # Let's accept both of them until this is cleared up. |
| 5642 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
| 5643 | lt_cv_file_magic_cmd=/usr/bin/file |
| 5644 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 5645 | ;; |
| 5646 | esac |
| 5647 | else |
| 5648 | lt_cv_deplibs_check_method=pass_all |
| 5649 | fi |
| 5650 | ;; |
| 5651 | |
| 5652 | gnu*) |
| 5653 | lt_cv_deplibs_check_method=pass_all |
| 5654 | ;; |
| 5655 | |
| 5656 | hpux10.20* | hpux11*) |
| 5657 | lt_cv_file_magic_cmd=/usr/bin/file |
| 5658 | case $host_cpu in |
| 5659 | ia64*) |
| 5660 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 5661 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 5662 | ;; |
| 5663 | hppa*64*) |
| 5664 | 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]' |
| 5665 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 5666 | ;; |
| 5667 | *) |
| 5668 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 5669 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 5670 | ;; |
| 5671 | esac |
| 5672 | ;; |
| 5673 | |
| 5674 | interix[3-9]*) |
| 5675 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 5676 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 5677 | ;; |
| 5678 | |
| 5679 | irix5* | irix6* | nonstopux*) |
| 5680 | case $LD in |
| 5681 | *-32|*"-32 ") libmagic=32-bit;; |
| 5682 | *-n32|*"-n32 ") libmagic=N32;; |
| 5683 | *-64|*"-64 ") libmagic=64-bit;; |
| 5684 | *) libmagic=never-match;; |
| 5685 | esac |
| 5686 | lt_cv_deplibs_check_method=pass_all |
| 5687 | ;; |
| 5688 | |
| 5689 | # This must be Linux ELF. |
| 5690 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 5691 | lt_cv_deplibs_check_method=pass_all |
| 5692 | ;; |
| 5693 | |
| 5694 | netbsd* | netbsdelf*-gnu) |
| 5695 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 5696 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 5697 | else |
| 5698 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 5699 | fi |
| 5700 | ;; |
| 5701 | |
| 5702 | newos6*) |
| 5703 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 5704 | lt_cv_file_magic_cmd=/usr/bin/file |
| 5705 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 5706 | ;; |
| 5707 | |
| 5708 | *nto* | *qnx*) |
| 5709 | lt_cv_deplibs_check_method=pass_all |
| 5710 | ;; |
| 5711 | |
| 5712 | openbsd*) |
| 5713 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 5714 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 5715 | else |
| 5716 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 5717 | fi |
| 5718 | ;; |
| 5719 | |
| 5720 | osf3* | osf4* | osf5*) |
| 5721 | lt_cv_deplibs_check_method=pass_all |
| 5722 | ;; |
| 5723 | |
| 5724 | rdos*) |
| 5725 | lt_cv_deplibs_check_method=pass_all |
| 5726 | ;; |
| 5727 | |
| 5728 | solaris*) |
| 5729 | lt_cv_deplibs_check_method=pass_all |
| 5730 | ;; |
| 5731 | |
| 5732 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 5733 | lt_cv_deplibs_check_method=pass_all |
| 5734 | ;; |
| 5735 | |
| 5736 | sysv4 | sysv4.3*) |
| 5737 | case $host_vendor in |
| 5738 | motorola) |
| 5739 | 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]' |
| 5740 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 5741 | ;; |
| 5742 | ncr) |
| 5743 | lt_cv_deplibs_check_method=pass_all |
| 5744 | ;; |
| 5745 | sequent) |
| 5746 | lt_cv_file_magic_cmd='/bin/file' |
| 5747 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 5748 | ;; |
| 5749 | sni) |
| 5750 | lt_cv_file_magic_cmd='/bin/file' |
| 5751 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 5752 | lt_cv_file_magic_test_file=/lib/libc.so |
| 5753 | ;; |
| 5754 | siemens) |
| 5755 | lt_cv_deplibs_check_method=pass_all |
| 5756 | ;; |
| 5757 | pc) |
| 5758 | lt_cv_deplibs_check_method=pass_all |
| 5759 | ;; |
| 5760 | esac |
| 5761 | ;; |
| 5762 | |
| 5763 | tpf*) |
| 5764 | lt_cv_deplibs_check_method=pass_all |
| 5765 | ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5766 | esac |
| 5767 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5768 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5769 | { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5770 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
| 5771 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 5772 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 5773 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5774 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5775 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5776 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5777 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5778 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5779 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5780 | |
| 5781 | |
| 5782 | |
| 5783 | |
| 5784 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5785 | |
| 5786 | if test -n "$ac_tool_prefix"; then |
| 5787 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 5788 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5789 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 5790 | $as_echo_n "checking for $ac_word... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5791 | if test "${ac_cv_prog_AR+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 5792 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5793 | else |
| 5794 | if test -n "$AR"; then |
| 5795 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 5796 | else |
| 5797 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5798 | for as_dir in $PATH |
| 5799 | do |
| 5800 | IFS=$as_save_IFS |
| 5801 | test -z "$as_dir" && as_dir=. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5802 | for ac_exec_ext in '' $ac_executable_extensions; do |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 5803 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5804 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5805 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5806 | break 2 |
| 5807 | fi |
| 5808 | done |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5809 | done |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 5810 | IFS=$as_save_IFS |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5811 | |
| 5812 | fi |
| 5813 | fi |
| 5814 | AR=$ac_cv_prog_AR |
| 5815 | if test -n "$AR"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5816 | { $as_echo "$as_me:$LINENO: result: $AR" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 5817 | $as_echo "$AR" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5818 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5819 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 5820 | $as_echo "no" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5821 | fi |
| 5822 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 5823 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5824 | fi |
| 5825 | if test -z "$ac_cv_prog_AR"; then |
| 5826 | ac_ct_AR=$AR |
| 5827 | # Extract the first word of "ar", so it can be a program name with args. |
| 5828 | set dummy ar; ac_word=$2 |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5829 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 5830 | $as_echo_n "checking for $ac_word... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5831 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 5832 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5833 | else |
| 5834 | if test -n "$ac_ct_AR"; then |
| 5835 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 5836 | else |
| 5837 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5838 | for as_dir in $PATH |
| 5839 | do |
| 5840 | IFS=$as_save_IFS |
| 5841 | test -z "$as_dir" && as_dir=. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5842 | for ac_exec_ext in '' $ac_executable_extensions; do |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 5843 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5844 | ac_cv_prog_ac_ct_AR="ar" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5845 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5846 | break 2 |
| 5847 | fi |
| 5848 | done |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5849 | done |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 5850 | IFS=$as_save_IFS |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5851 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5852 | fi |
| 5853 | fi |
| 5854 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 5855 | if test -n "$ac_ct_AR"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5856 | { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 5857 | $as_echo "$ac_ct_AR" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5858 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5859 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 5860 | $as_echo "no" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5861 | fi |
| 5862 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 5863 | if test "x$ac_ct_AR" = x; then |
| 5864 | AR="false" |
| 5865 | else |
| 5866 | case $cross_compiling:$ac_tool_warned in |
| 5867 | yes:) |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5868 | { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5869 | whose name does not start with the host triplet. If you think this |
| 5870 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5871 | $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5872 | whose name does not start with the host triplet. If you think this |
| 5873 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 5874 | ac_tool_warned=yes ;; |
| 5875 | esac |
| 5876 | AR=$ac_ct_AR |
| 5877 | fi |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5878 | else |
| 5879 | AR="$ac_cv_prog_AR" |
| 5880 | fi |
| 5881 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5882 | test -z "$AR" && AR=ar |
| 5883 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5884 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 5885 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5886 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5887 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5888 | |
| 5889 | |
| 5890 | |
| 5891 | |
| 5892 | |
| 5893 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5894 | |
| 5895 | if test -n "$ac_tool_prefix"; then |
| 5896 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 5897 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5898 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 5899 | $as_echo_n "checking for $ac_word... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5900 | if test "${ac_cv_prog_STRIP+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 5901 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5902 | else |
| 5903 | if test -n "$STRIP"; then |
| 5904 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 5905 | else |
| 5906 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5907 | for as_dir in $PATH |
| 5908 | do |
| 5909 | IFS=$as_save_IFS |
| 5910 | test -z "$as_dir" && as_dir=. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5911 | for ac_exec_ext in '' $ac_executable_extensions; do |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 5912 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5913 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5914 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5915 | break 2 |
| 5916 | fi |
| 5917 | done |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5918 | done |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 5919 | IFS=$as_save_IFS |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5920 | |
| 5921 | fi |
| 5922 | fi |
| 5923 | STRIP=$ac_cv_prog_STRIP |
| 5924 | if test -n "$STRIP"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5925 | { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 5926 | $as_echo "$STRIP" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5927 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5928 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 5929 | $as_echo "no" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5930 | fi |
| 5931 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 5932 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5933 | fi |
| 5934 | if test -z "$ac_cv_prog_STRIP"; then |
| 5935 | ac_ct_STRIP=$STRIP |
| 5936 | # Extract the first word of "strip", so it can be a program name with args. |
| 5937 | set dummy strip; ac_word=$2 |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5938 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 5939 | $as_echo_n "checking for $ac_word... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5940 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 5941 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5942 | else |
| 5943 | if test -n "$ac_ct_STRIP"; then |
| 5944 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 5945 | else |
| 5946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5947 | for as_dir in $PATH |
| 5948 | do |
| 5949 | IFS=$as_save_IFS |
| 5950 | test -z "$as_dir" && as_dir=. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5951 | for ac_exec_ext in '' $ac_executable_extensions; do |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 5952 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5953 | ac_cv_prog_ac_ct_STRIP="strip" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5954 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5955 | break 2 |
| 5956 | fi |
| 5957 | done |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5958 | done |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 5959 | IFS=$as_save_IFS |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5960 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5961 | fi |
| 5962 | fi |
| 5963 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 5964 | if test -n "$ac_ct_STRIP"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5965 | { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 5966 | $as_echo "$ac_ct_STRIP" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5967 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5968 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 5969 | $as_echo "no" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5970 | fi |
| 5971 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 5972 | if test "x$ac_ct_STRIP" = x; then |
| 5973 | STRIP=":" |
| 5974 | else |
| 5975 | case $cross_compiling:$ac_tool_warned in |
| 5976 | yes:) |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 5977 | { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5978 | whose name does not start with the host triplet. If you think this |
| 5979 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5980 | $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5981 | whose name does not start with the host triplet. If you think this |
| 5982 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 5983 | ac_tool_warned=yes ;; |
| 5984 | esac |
| 5985 | STRIP=$ac_ct_STRIP |
| 5986 | fi |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5987 | else |
| 5988 | STRIP="$ac_cv_prog_STRIP" |
| 5989 | fi |
| 5990 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 5991 | test -z "$STRIP" && STRIP=: |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 5992 | |
| 5993 | |
| 5994 | |
| 5995 | |
| 5996 | |
| 5997 | |
| 5998 | if test -n "$ac_tool_prefix"; then |
| 5999 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6000 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6001 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6002 | $as_echo_n "checking for $ac_word... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6003 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6004 | $as_echo_n "(cached) " >&6 |
| 6005 | else |
| 6006 | if test -n "$RANLIB"; then |
| 6007 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6008 | else |
| 6009 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6010 | for as_dir in $PATH |
| 6011 | do |
| 6012 | IFS=$as_save_IFS |
| 6013 | test -z "$as_dir" && as_dir=. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6014 | for ac_exec_ext in '' $ac_executable_extensions; do |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6015 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6016 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6017 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6018 | break 2 |
| 6019 | fi |
| 6020 | done |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6021 | done |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6022 | IFS=$as_save_IFS |
| 6023 | |
| 6024 | fi |
| 6025 | fi |
| 6026 | RANLIB=$ac_cv_prog_RANLIB |
| 6027 | if test -n "$RANLIB"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6028 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6029 | $as_echo "$RANLIB" >&6; } |
| 6030 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6031 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6032 | $as_echo "no" >&6; } |
| 6033 | fi |
| 6034 | |
| 6035 | |
| 6036 | fi |
| 6037 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6038 | ac_ct_RANLIB=$RANLIB |
| 6039 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6040 | set dummy ranlib; ac_word=$2 |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6041 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6042 | $as_echo_n "checking for $ac_word... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6043 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6044 | $as_echo_n "(cached) " >&6 |
| 6045 | else |
| 6046 | if test -n "$ac_ct_RANLIB"; then |
| 6047 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6048 | else |
| 6049 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6050 | for as_dir in $PATH |
| 6051 | do |
| 6052 | IFS=$as_save_IFS |
| 6053 | test -z "$as_dir" && as_dir=. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6054 | for ac_exec_ext in '' $ac_executable_extensions; do |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6055 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6056 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6057 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6058 | break 2 |
| 6059 | fi |
| 6060 | done |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6061 | done |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6062 | IFS=$as_save_IFS |
| 6063 | |
| 6064 | fi |
| 6065 | fi |
| 6066 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6067 | if test -n "$ac_ct_RANLIB"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6068 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6069 | $as_echo "$ac_ct_RANLIB" >&6; } |
| 6070 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6071 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6072 | $as_echo "no" >&6; } |
| 6073 | fi |
| 6074 | |
| 6075 | if test "x$ac_ct_RANLIB" = x; then |
| 6076 | RANLIB=":" |
| 6077 | else |
| 6078 | case $cross_compiling:$ac_tool_warned in |
| 6079 | yes:) |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6080 | { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6081 | whose name does not start with the host triplet. If you think this |
| 6082 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6083 | $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6084 | whose name does not start with the host triplet. If you think this |
| 6085 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6086 | ac_tool_warned=yes ;; |
| 6087 | esac |
| 6088 | RANLIB=$ac_ct_RANLIB |
| 6089 | fi |
| 6090 | else |
| 6091 | RANLIB="$ac_cv_prog_RANLIB" |
| 6092 | fi |
| 6093 | |
| 6094 | test -z "$RANLIB" && RANLIB=: |
| 6095 | |
| 6096 | |
| 6097 | |
| 6098 | |
| 6099 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 6100 | |
| 6101 | # Determine commands to create old-style static archives. |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 6102 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 6103 | old_postinstall_cmds='chmod 644 $oldlib' |
| 6104 | old_postuninstall_cmds= |
| 6105 | |
| 6106 | if test -n "$RANLIB"; then |
| 6107 | case $host_os in |
| 6108 | openbsd*) |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 6109 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 6110 | ;; |
| 6111 | *) |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 6112 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 6113 | ;; |
| 6114 | esac |
| 6115 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 6116 | fi |
| 6117 | |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 6118 | |
| 6119 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6120 | |
| 6121 | |
| 6122 | |
| 6123 | |
| 6124 | |
| 6125 | |
| 6126 | |
| 6127 | |
| 6128 | |
| 6129 | |
| 6130 | |
| 6131 | |
| 6132 | |
| 6133 | |
| 6134 | |
| 6135 | |
| 6136 | |
| 6137 | |
| 6138 | |
| 6139 | |
| 6140 | |
| 6141 | |
| 6142 | |
| 6143 | |
| 6144 | |
| 6145 | |
| 6146 | |
| 6147 | |
| 6148 | |
| 6149 | |
| 6150 | |
| 6151 | # If no C compiler was specified, use CC. |
| 6152 | LTCC=${LTCC-"$CC"} |
| 6153 | |
| 6154 | # If no C compiler flags were specified, use CFLAGS. |
| 6155 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 6156 | |
| 6157 | # Allow CC to be a program name with arguments. |
| 6158 | compiler=$CC |
| 6159 | |
| 6160 | |
| 6161 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6162 | { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6163 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6164 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 6165 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 6166 | else |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6167 | |
| 6168 | # These are sane defaults that work on at least a few old systems. |
| 6169 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 6170 | |
| 6171 | # Character class describing NM global symbol codes. |
| 6172 | symcode='[BCDEGRST]' |
| 6173 | |
| 6174 | # Regexp to match symbols that can be accessed directly from C. |
| 6175 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 6176 | |
| 6177 | # Define system-specific variables. |
| 6178 | case $host_os in |
| 6179 | aix*) |
| 6180 | symcode='[BCDT]' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 6181 | ;; |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6182 | cygwin* | mingw* | pw32* | cegcc*) |
| 6183 | symcode='[ABCDGISTW]' |
| 6184 | ;; |
| 6185 | hpux*) |
| 6186 | if test "$host_cpu" = ia64; then |
| 6187 | symcode='[ABCDEGRST]' |
| 6188 | fi |
| 6189 | ;; |
| 6190 | irix* | nonstopux*) |
| 6191 | symcode='[BCDEGRST]' |
| 6192 | ;; |
| 6193 | osf*) |
| 6194 | symcode='[BCDEGQRST]' |
| 6195 | ;; |
| 6196 | solaris*) |
| 6197 | symcode='[BDRT]' |
| 6198 | ;; |
| 6199 | sco3.2v5*) |
| 6200 | symcode='[DT]' |
| 6201 | ;; |
| 6202 | sysv4.2uw2*) |
| 6203 | symcode='[DT]' |
| 6204 | ;; |
| 6205 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 6206 | symcode='[ABDT]' |
| 6207 | ;; |
| 6208 | sysv4) |
| 6209 | symcode='[DFNSTU]' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 6210 | ;; |
| 6211 | esac |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 6212 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6213 | # If we're using GNU nm, then use its standard symbol codes. |
| 6214 | case `$NM -V 2>&1` in |
| 6215 | *GNU* | *'with BFD'*) |
| 6216 | symcode='[ABCDGIRSTW]' ;; |
| 6217 | esac |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 6218 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6219 | # Transform an extracted symbol line into a proper C declaration. |
| 6220 | # Some systems (esp. on ia64) link data and code symbols differently, |
| 6221 | # so use this general approach. |
| 6222 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 6223 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6224 | # Transform an extracted symbol line into symbol name and symbol address |
| 6225 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
| 6226 | 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'" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 6227 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6228 | # Handle CRLF in mingw tool chain |
| 6229 | opt_cr= |
| 6230 | case $build_os in |
| 6231 | mingw*) |
| 6232 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 6233 | ;; |
| 6234 | esac |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 6235 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6236 | # Try without a prefix underscore, then with it. |
| 6237 | for ac_symprfx in "" "_"; do |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 6238 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6239 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 6240 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 6241 | |
| 6242 | # Write the raw and C identifiers. |
| 6243 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 6244 | # Fake it for dumpbin and say T for any non-static function |
| 6245 | # and D for any global variable. |
| 6246 | # Also find C++ and __fastcall symbols from MSVC++, |
| 6247 | # which start with @ or ?. |
| 6248 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
| 6249 | " {last_section=section; section=\$ 3};"\ |
| 6250 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 6251 | " \$ 0!~/External *\|/{next};"\ |
| 6252 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 6253 | " {if(hide[section]) next};"\ |
| 6254 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
| 6255 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
| 6256 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
| 6257 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
| 6258 | " ' prfx=^$ac_symprfx" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 6259 | else |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6260 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 6261 | fi |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6262 | |
| 6263 | # Check to see that the pipe works correctly. |
| 6264 | pipe_works=no |
| 6265 | |
| 6266 | rm -f conftest* |
| 6267 | cat > conftest.$ac_ext <<_LT_EOF |
| 6268 | #ifdef __cplusplus |
| 6269 | extern "C" { |
| 6270 | #endif |
| 6271 | char nm_test_var; |
| 6272 | void nm_test_func(void); |
| 6273 | void nm_test_func(void){} |
| 6274 | #ifdef __cplusplus |
| 6275 | } |
| 6276 | #endif |
| 6277 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 6278 | _LT_EOF |
| 6279 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6280 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6281 | (eval $ac_compile) 2>&5 |
| 6282 | ac_status=$? |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6283 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6284 | (exit $ac_status); }; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6285 | # Now try to grab the symbols. |
| 6286 | nlist=conftest.nm |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6287 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6288 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 6289 | ac_status=$? |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6290 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6291 | (exit $ac_status); } && test -s "$nlist"; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6292 | # Try sorting and uniquifying the output. |
| 6293 | if sort "$nlist" | uniq > "$nlist"T; then |
| 6294 | mv -f "$nlist"T "$nlist" |
| 6295 | else |
| 6296 | rm -f "$nlist"T |
| 6297 | fi |
| 6298 | |
| 6299 | # Make sure that we snagged all the symbols we need. |
| 6300 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 6301 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 6302 | cat <<_LT_EOF > conftest.$ac_ext |
| 6303 | #ifdef __cplusplus |
| 6304 | extern "C" { |
| 6305 | #endif |
| 6306 | |
| 6307 | _LT_EOF |
| 6308 | # Now generate the symbol file. |
| 6309 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
| 6310 | |
| 6311 | cat <<_LT_EOF >> conftest.$ac_ext |
| 6312 | |
| 6313 | /* The mapping between symbol names and symbols. */ |
| 6314 | const struct { |
| 6315 | const char *name; |
| 6316 | void *address; |
| 6317 | } |
| 6318 | lt__PROGRAM__LTX_preloaded_symbols[] = |
| 6319 | { |
| 6320 | { "@PROGRAM@", (void *) 0 }, |
| 6321 | _LT_EOF |
| 6322 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 6323 | cat <<\_LT_EOF >> conftest.$ac_ext |
| 6324 | {0, (void *) 0} |
| 6325 | }; |
| 6326 | |
| 6327 | /* This works around a problem in FreeBSD linker */ |
| 6328 | #ifdef FREEBSD_WORKAROUND |
| 6329 | static const void *lt_preloaded_setup() { |
| 6330 | return lt__PROGRAM__LTX_preloaded_symbols; |
| 6331 | } |
| 6332 | #endif |
| 6333 | |
| 6334 | #ifdef __cplusplus |
| 6335 | } |
| 6336 | #endif |
| 6337 | _LT_EOF |
| 6338 | # Now try linking the two files. |
| 6339 | mv conftest.$ac_objext conftstm.$ac_objext |
| 6340 | lt_save_LIBS="$LIBS" |
| 6341 | lt_save_CFLAGS="$CFLAGS" |
| 6342 | LIBS="conftstm.$ac_objext" |
| 6343 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6344 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6345 | (eval $ac_link) 2>&5 |
| 6346 | ac_status=$? |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6347 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6348 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6349 | pipe_works=yes |
| 6350 | fi |
| 6351 | LIBS="$lt_save_LIBS" |
| 6352 | CFLAGS="$lt_save_CFLAGS" |
| 6353 | else |
| 6354 | echo "cannot find nm_test_func in $nlist" >&5 |
| 6355 | fi |
| 6356 | else |
| 6357 | echo "cannot find nm_test_var in $nlist" >&5 |
| 6358 | fi |
| 6359 | else |
| 6360 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 6361 | fi |
| 6362 | else |
| 6363 | echo "$progname: failed program was:" >&5 |
| 6364 | cat conftest.$ac_ext >&5 |
| 6365 | fi |
| 6366 | rm -rf conftest* conftst* |
| 6367 | |
| 6368 | # Do not use the global_symbol_pipe unless it works. |
| 6369 | if test "$pipe_works" = yes; then |
| 6370 | break |
| 6371 | else |
| 6372 | lt_cv_sys_global_symbol_pipe= |
| 6373 | fi |
| 6374 | done |
| 6375 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 6376 | fi |
| 6377 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6378 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 6379 | lt_cv_sys_global_symbol_to_cdecl= |
| 6380 | fi |
| 6381 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6382 | { $as_echo "$as_me:$LINENO: result: failed" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6383 | $as_echo "failed" >&6; } |
| 6384 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6385 | { $as_echo "$as_me:$LINENO: result: ok" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6386 | $as_echo "ok" >&6; } |
| 6387 | fi |
| 6388 | |
| 6389 | |
| 6390 | |
| 6391 | |
| 6392 | |
| 6393 | |
| 6394 | |
| 6395 | |
| 6396 | |
| 6397 | |
| 6398 | |
| 6399 | |
| 6400 | |
| 6401 | |
| 6402 | |
| 6403 | |
| 6404 | |
| 6405 | |
| 6406 | |
| 6407 | |
| 6408 | |
| 6409 | |
| 6410 | |
| 6411 | # Check whether --enable-libtool-lock was given. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6412 | if test "${enable_libtool_lock+set}" = set; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6413 | enableval=$enable_libtool_lock; |
| 6414 | fi |
| 6415 | |
| 6416 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 6417 | |
| 6418 | # Some flags need to be propagated to the compiler or linker for good |
| 6419 | # libtool support. |
| 6420 | case $host in |
| 6421 | ia64-*-hpux*) |
| 6422 | # Find out which ABI we are using. |
| 6423 | echo 'int i;' > conftest.$ac_ext |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6424 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6425 | (eval $ac_compile) 2>&5 |
| 6426 | ac_status=$? |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6427 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6428 | (exit $ac_status); }; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6429 | case `/usr/bin/file conftest.$ac_objext` in |
| 6430 | *ELF-32*) |
| 6431 | HPUX_IA64_MODE="32" |
| 6432 | ;; |
| 6433 | *ELF-64*) |
| 6434 | HPUX_IA64_MODE="64" |
| 6435 | ;; |
| 6436 | esac |
| 6437 | fi |
| 6438 | rm -rf conftest* |
| 6439 | ;; |
| 6440 | *-*-irix6*) |
| 6441 | # Find out which ABI we are using. |
Craig Silverstein | 357b3d9 | 2011-07-29 22:49:50 +0000 | [diff] [blame] | 6442 | echo '#line 6442 "configure"' > conftest.$ac_ext |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6443 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6444 | (eval $ac_compile) 2>&5 |
| 6445 | ac_status=$? |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6446 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6447 | (exit $ac_status); }; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6448 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 6449 | case `/usr/bin/file conftest.$ac_objext` in |
| 6450 | *32-bit*) |
| 6451 | LD="${LD-ld} -melf32bsmip" |
| 6452 | ;; |
| 6453 | *N32*) |
| 6454 | LD="${LD-ld} -melf32bmipn32" |
| 6455 | ;; |
| 6456 | *64-bit*) |
| 6457 | LD="${LD-ld} -melf64bmip" |
| 6458 | ;; |
| 6459 | esac |
| 6460 | else |
| 6461 | case `/usr/bin/file conftest.$ac_objext` in |
| 6462 | *32-bit*) |
| 6463 | LD="${LD-ld} -32" |
| 6464 | ;; |
| 6465 | *N32*) |
| 6466 | LD="${LD-ld} -n32" |
| 6467 | ;; |
| 6468 | *64-bit*) |
| 6469 | LD="${LD-ld} -64" |
| 6470 | ;; |
| 6471 | esac |
| 6472 | fi |
| 6473 | fi |
| 6474 | rm -rf conftest* |
| 6475 | ;; |
| 6476 | |
| 6477 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
| 6478 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
| 6479 | # Find out which ABI we are using. |
| 6480 | echo 'int i;' > conftest.$ac_ext |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6481 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6482 | (eval $ac_compile) 2>&5 |
| 6483 | ac_status=$? |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6484 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6485 | (exit $ac_status); }; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6486 | case `/usr/bin/file conftest.o` in |
| 6487 | *32-bit*) |
| 6488 | case $host in |
| 6489 | x86_64-*kfreebsd*-gnu) |
| 6490 | LD="${LD-ld} -m elf_i386_fbsd" |
| 6491 | ;; |
| 6492 | x86_64-*linux*) |
| 6493 | LD="${LD-ld} -m elf_i386" |
| 6494 | ;; |
| 6495 | ppc64-*linux*|powerpc64-*linux*) |
| 6496 | LD="${LD-ld} -m elf32ppclinux" |
| 6497 | ;; |
| 6498 | s390x-*linux*) |
| 6499 | LD="${LD-ld} -m elf_s390" |
| 6500 | ;; |
| 6501 | sparc64-*linux*) |
| 6502 | LD="${LD-ld} -m elf32_sparc" |
| 6503 | ;; |
| 6504 | esac |
| 6505 | ;; |
| 6506 | *64-bit*) |
| 6507 | case $host in |
| 6508 | x86_64-*kfreebsd*-gnu) |
| 6509 | LD="${LD-ld} -m elf_x86_64_fbsd" |
| 6510 | ;; |
| 6511 | x86_64-*linux*) |
| 6512 | LD="${LD-ld} -m elf_x86_64" |
| 6513 | ;; |
| 6514 | ppc*-*linux*|powerpc*-*linux*) |
| 6515 | LD="${LD-ld} -m elf64ppc" |
| 6516 | ;; |
| 6517 | s390*-*linux*|s390*-*tpf*) |
| 6518 | LD="${LD-ld} -m elf64_s390" |
| 6519 | ;; |
| 6520 | sparc*-*linux*) |
| 6521 | LD="${LD-ld} -m elf64_sparc" |
| 6522 | ;; |
| 6523 | esac |
| 6524 | ;; |
| 6525 | esac |
| 6526 | fi |
| 6527 | rm -rf conftest* |
| 6528 | ;; |
| 6529 | |
| 6530 | *-*-sco3.2v5*) |
| 6531 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 6532 | SAVE_CFLAGS="$CFLAGS" |
| 6533 | CFLAGS="$CFLAGS -belf" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6534 | { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6535 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6536 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6537 | $as_echo_n "(cached) " >&6 |
| 6538 | else |
| 6539 | ac_ext=c |
| 6540 | ac_cpp='$CPP $CPPFLAGS' |
| 6541 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6542 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6543 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6544 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6545 | cat >conftest.$ac_ext <<_ACEOF |
| 6546 | /* confdefs.h. */ |
| 6547 | _ACEOF |
| 6548 | cat confdefs.h >>conftest.$ac_ext |
| 6549 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6550 | /* end confdefs.h. */ |
| 6551 | |
| 6552 | int |
| 6553 | main () |
| 6554 | { |
| 6555 | |
| 6556 | ; |
| 6557 | return 0; |
| 6558 | } |
| 6559 | _ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6560 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6561 | if { (ac_try="$ac_link" |
| 6562 | case "(($ac_try" in |
| 6563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6564 | *) ac_try_echo=$ac_try;; |
| 6565 | esac |
| 6566 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6567 | $as_echo "$ac_try_echo") >&5 |
| 6568 | (eval "$ac_link") 2>conftest.er1 |
| 6569 | ac_status=$? |
| 6570 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6571 | rm -f conftest.er1 |
| 6572 | cat conftest.err >&5 |
| 6573 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6574 | (exit $ac_status); } && { |
| 6575 | test -z "$ac_c_werror_flag" || |
| 6576 | test ! -s conftest.err |
| 6577 | } && test -s conftest$ac_exeext && { |
| 6578 | test "$cross_compiling" = yes || |
| 6579 | $as_test_x conftest$ac_exeext |
| 6580 | }; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6581 | lt_cv_cc_needs_belf=yes |
| 6582 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6583 | $as_echo "$as_me: failed program was:" >&5 |
| 6584 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6585 | |
| 6586 | lt_cv_cc_needs_belf=no |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6587 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6588 | |
| 6589 | rm -rf conftest.dSYM |
| 6590 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 6591 | conftest$ac_exeext conftest.$ac_ext |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6592 | ac_ext=c |
| 6593 | ac_cpp='$CPP $CPPFLAGS' |
| 6594 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6595 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6596 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6597 | |
| 6598 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6599 | { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6600 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
| 6601 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 6602 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 6603 | CFLAGS="$SAVE_CFLAGS" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 6604 | fi |
| 6605 | ;; |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6606 | sparc*-*solaris*) |
| 6607 | # Find out which ABI we are using. |
| 6608 | echo 'int i;' > conftest.$ac_ext |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6609 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6610 | (eval $ac_compile) 2>&5 |
| 6611 | ac_status=$? |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6612 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6613 | (exit $ac_status); }; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6614 | case `/usr/bin/file conftest.o` in |
| 6615 | *64-bit*) |
| 6616 | case $lt_cv_prog_gnu_ld in |
| 6617 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 6618 | *) |
| 6619 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 6620 | LD="${LD-ld} -64" |
| 6621 | fi |
| 6622 | ;; |
| 6623 | esac |
| 6624 | ;; |
| 6625 | esac |
| 6626 | fi |
| 6627 | rm -rf conftest* |
| 6628 | ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 6629 | esac |
| 6630 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6631 | need_locks="$enable_libtool_lock" |
| 6632 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 6633 | |
| 6634 | case $host_os in |
| 6635 | rhapsody* | darwin*) |
| 6636 | if test -n "$ac_tool_prefix"; then |
| 6637 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
| 6638 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6639 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 6640 | $as_echo_n "checking for $ac_word... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6641 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 6642 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 6643 | else |
| 6644 | if test -n "$DSYMUTIL"; then |
| 6645 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
| 6646 | else |
| 6647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6648 | for as_dir in $PATH |
| 6649 | do |
| 6650 | IFS=$as_save_IFS |
| 6651 | test -z "$as_dir" && as_dir=. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6652 | for ac_exec_ext in '' $ac_executable_extensions; do |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 6653 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6654 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6655 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 6656 | break 2 |
| 6657 | fi |
| 6658 | done |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6659 | done |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 6660 | IFS=$as_save_IFS |
| 6661 | |
| 6662 | fi |
| 6663 | fi |
| 6664 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
| 6665 | if test -n "$DSYMUTIL"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6666 | { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 6667 | $as_echo "$DSYMUTIL" >&6; } |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 6668 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6669 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 6670 | $as_echo "no" >&6; } |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 6671 | fi |
| 6672 | |
| 6673 | |
| 6674 | fi |
| 6675 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
| 6676 | ac_ct_DSYMUTIL=$DSYMUTIL |
| 6677 | # Extract the first word of "dsymutil", so it can be a program name with args. |
| 6678 | set dummy dsymutil; ac_word=$2 |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6679 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 6680 | $as_echo_n "checking for $ac_word... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6681 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 6682 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 6683 | else |
| 6684 | if test -n "$ac_ct_DSYMUTIL"; then |
| 6685 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
| 6686 | else |
| 6687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6688 | for as_dir in $PATH |
| 6689 | do |
| 6690 | IFS=$as_save_IFS |
| 6691 | test -z "$as_dir" && as_dir=. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6692 | for ac_exec_ext in '' $ac_executable_extensions; do |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 6693 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6694 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6695 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 6696 | break 2 |
| 6697 | fi |
| 6698 | done |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6699 | done |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 6700 | IFS=$as_save_IFS |
| 6701 | |
| 6702 | fi |
| 6703 | fi |
| 6704 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
| 6705 | if test -n "$ac_ct_DSYMUTIL"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6706 | { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 6707 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 6708 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6709 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 6710 | $as_echo "no" >&6; } |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 6711 | fi |
| 6712 | |
| 6713 | if test "x$ac_ct_DSYMUTIL" = x; then |
| 6714 | DSYMUTIL=":" |
| 6715 | else |
| 6716 | case $cross_compiling:$ac_tool_warned in |
| 6717 | yes:) |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6718 | { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6719 | whose name does not start with the host triplet. If you think this |
| 6720 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6721 | $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6722 | whose name does not start with the host triplet. If you think this |
| 6723 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 6724 | ac_tool_warned=yes ;; |
| 6725 | esac |
| 6726 | DSYMUTIL=$ac_ct_DSYMUTIL |
| 6727 | fi |
| 6728 | else |
| 6729 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
| 6730 | fi |
| 6731 | |
| 6732 | if test -n "$ac_tool_prefix"; then |
| 6733 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
| 6734 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6735 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 6736 | $as_echo_n "checking for $ac_word... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6737 | if test "${ac_cv_prog_NMEDIT+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 6738 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 6739 | else |
| 6740 | if test -n "$NMEDIT"; then |
| 6741 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
| 6742 | else |
| 6743 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6744 | for as_dir in $PATH |
| 6745 | do |
| 6746 | IFS=$as_save_IFS |
| 6747 | test -z "$as_dir" && as_dir=. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6748 | for ac_exec_ext in '' $ac_executable_extensions; do |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 6749 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6750 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6751 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 6752 | break 2 |
| 6753 | fi |
| 6754 | done |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6755 | done |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 6756 | IFS=$as_save_IFS |
| 6757 | |
| 6758 | fi |
| 6759 | fi |
| 6760 | NMEDIT=$ac_cv_prog_NMEDIT |
| 6761 | if test -n "$NMEDIT"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6762 | { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 6763 | $as_echo "$NMEDIT" >&6; } |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 6764 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6765 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 6766 | $as_echo "no" >&6; } |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 6767 | fi |
| 6768 | |
| 6769 | |
| 6770 | fi |
| 6771 | if test -z "$ac_cv_prog_NMEDIT"; then |
| 6772 | ac_ct_NMEDIT=$NMEDIT |
| 6773 | # Extract the first word of "nmedit", so it can be a program name with args. |
| 6774 | set dummy nmedit; ac_word=$2 |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6775 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 6776 | $as_echo_n "checking for $ac_word... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6777 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 6778 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 6779 | else |
| 6780 | if test -n "$ac_ct_NMEDIT"; then |
| 6781 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
| 6782 | else |
| 6783 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6784 | for as_dir in $PATH |
| 6785 | do |
| 6786 | IFS=$as_save_IFS |
| 6787 | test -z "$as_dir" && as_dir=. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6788 | for ac_exec_ext in '' $ac_executable_extensions; do |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 6789 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6790 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6791 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 6792 | break 2 |
| 6793 | fi |
| 6794 | done |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6795 | done |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 6796 | IFS=$as_save_IFS |
| 6797 | |
| 6798 | fi |
| 6799 | fi |
| 6800 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
| 6801 | if test -n "$ac_ct_NMEDIT"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6802 | { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 6803 | $as_echo "$ac_ct_NMEDIT" >&6; } |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 6804 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6805 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 6806 | $as_echo "no" >&6; } |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 6807 | fi |
| 6808 | |
| 6809 | if test "x$ac_ct_NMEDIT" = x; then |
| 6810 | NMEDIT=":" |
| 6811 | else |
| 6812 | case $cross_compiling:$ac_tool_warned in |
| 6813 | yes:) |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6814 | { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6815 | whose name does not start with the host triplet. If you think this |
| 6816 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6817 | $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6818 | whose name does not start with the host triplet. If you think this |
| 6819 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 6820 | ac_tool_warned=yes ;; |
| 6821 | esac |
| 6822 | NMEDIT=$ac_ct_NMEDIT |
| 6823 | fi |
| 6824 | else |
| 6825 | NMEDIT="$ac_cv_prog_NMEDIT" |
| 6826 | fi |
| 6827 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6828 | if test -n "$ac_tool_prefix"; then |
| 6829 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
| 6830 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6831 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6832 | $as_echo_n "checking for $ac_word... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6833 | if test "${ac_cv_prog_LIPO+set}" = set; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6834 | $as_echo_n "(cached) " >&6 |
| 6835 | else |
| 6836 | if test -n "$LIPO"; then |
| 6837 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
| 6838 | else |
| 6839 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6840 | for as_dir in $PATH |
| 6841 | do |
| 6842 | IFS=$as_save_IFS |
| 6843 | test -z "$as_dir" && as_dir=. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6844 | for ac_exec_ext in '' $ac_executable_extensions; do |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6845 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6846 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6847 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6848 | break 2 |
| 6849 | fi |
| 6850 | done |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6851 | done |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6852 | IFS=$as_save_IFS |
| 6853 | |
| 6854 | fi |
| 6855 | fi |
| 6856 | LIPO=$ac_cv_prog_LIPO |
| 6857 | if test -n "$LIPO"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6858 | { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6859 | $as_echo "$LIPO" >&6; } |
| 6860 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6861 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6862 | $as_echo "no" >&6; } |
| 6863 | fi |
| 6864 | |
| 6865 | |
| 6866 | fi |
| 6867 | if test -z "$ac_cv_prog_LIPO"; then |
| 6868 | ac_ct_LIPO=$LIPO |
| 6869 | # Extract the first word of "lipo", so it can be a program name with args. |
| 6870 | set dummy lipo; ac_word=$2 |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6871 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6872 | $as_echo_n "checking for $ac_word... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6873 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6874 | $as_echo_n "(cached) " >&6 |
| 6875 | else |
| 6876 | if test -n "$ac_ct_LIPO"; then |
| 6877 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
| 6878 | else |
| 6879 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6880 | for as_dir in $PATH |
| 6881 | do |
| 6882 | IFS=$as_save_IFS |
| 6883 | test -z "$as_dir" && as_dir=. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6884 | for ac_exec_ext in '' $ac_executable_extensions; do |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6885 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6886 | ac_cv_prog_ac_ct_LIPO="lipo" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6887 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6888 | break 2 |
| 6889 | fi |
| 6890 | done |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6891 | done |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6892 | IFS=$as_save_IFS |
| 6893 | |
| 6894 | fi |
| 6895 | fi |
| 6896 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
| 6897 | if test -n "$ac_ct_LIPO"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6898 | { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6899 | $as_echo "$ac_ct_LIPO" >&6; } |
| 6900 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6901 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6902 | $as_echo "no" >&6; } |
| 6903 | fi |
| 6904 | |
| 6905 | if test "x$ac_ct_LIPO" = x; then |
| 6906 | LIPO=":" |
| 6907 | else |
| 6908 | case $cross_compiling:$ac_tool_warned in |
| 6909 | yes:) |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6910 | { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6911 | whose name does not start with the host triplet. If you think this |
| 6912 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6913 | $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6914 | whose name does not start with the host triplet. If you think this |
| 6915 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6916 | ac_tool_warned=yes ;; |
| 6917 | esac |
| 6918 | LIPO=$ac_ct_LIPO |
| 6919 | fi |
| 6920 | else |
| 6921 | LIPO="$ac_cv_prog_LIPO" |
| 6922 | fi |
| 6923 | |
| 6924 | if test -n "$ac_tool_prefix"; then |
| 6925 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
| 6926 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6927 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6928 | $as_echo_n "checking for $ac_word... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6929 | if test "${ac_cv_prog_OTOOL+set}" = set; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6930 | $as_echo_n "(cached) " >&6 |
| 6931 | else |
| 6932 | if test -n "$OTOOL"; then |
| 6933 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
| 6934 | else |
| 6935 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6936 | for as_dir in $PATH |
| 6937 | do |
| 6938 | IFS=$as_save_IFS |
| 6939 | test -z "$as_dir" && as_dir=. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6940 | for ac_exec_ext in '' $ac_executable_extensions; do |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6941 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6942 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6943 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6944 | break 2 |
| 6945 | fi |
| 6946 | done |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6947 | done |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6948 | IFS=$as_save_IFS |
| 6949 | |
| 6950 | fi |
| 6951 | fi |
| 6952 | OTOOL=$ac_cv_prog_OTOOL |
| 6953 | if test -n "$OTOOL"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6954 | { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6955 | $as_echo "$OTOOL" >&6; } |
| 6956 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6957 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6958 | $as_echo "no" >&6; } |
| 6959 | fi |
| 6960 | |
| 6961 | |
| 6962 | fi |
| 6963 | if test -z "$ac_cv_prog_OTOOL"; then |
| 6964 | ac_ct_OTOOL=$OTOOL |
| 6965 | # Extract the first word of "otool", so it can be a program name with args. |
| 6966 | set dummy otool; ac_word=$2 |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6967 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6968 | $as_echo_n "checking for $ac_word... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6969 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6970 | $as_echo_n "(cached) " >&6 |
| 6971 | else |
| 6972 | if test -n "$ac_ct_OTOOL"; then |
| 6973 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
| 6974 | else |
| 6975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6976 | for as_dir in $PATH |
| 6977 | do |
| 6978 | IFS=$as_save_IFS |
| 6979 | test -z "$as_dir" && as_dir=. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6980 | for ac_exec_ext in '' $ac_executable_extensions; do |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6981 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6982 | ac_cv_prog_ac_ct_OTOOL="otool" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6983 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6984 | break 2 |
| 6985 | fi |
| 6986 | done |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6987 | done |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6988 | IFS=$as_save_IFS |
| 6989 | |
| 6990 | fi |
| 6991 | fi |
| 6992 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
| 6993 | if test -n "$ac_ct_OTOOL"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6994 | { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6995 | $as_echo "$ac_ct_OTOOL" >&6; } |
| 6996 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 6997 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 6998 | $as_echo "no" >&6; } |
| 6999 | fi |
| 7000 | |
| 7001 | if test "x$ac_ct_OTOOL" = x; then |
| 7002 | OTOOL=":" |
| 7003 | else |
| 7004 | case $cross_compiling:$ac_tool_warned in |
| 7005 | yes:) |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7006 | { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 7007 | whose name does not start with the host triplet. If you think this |
| 7008 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 7009 | $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 7010 | whose name does not start with the host triplet. If you think this |
| 7011 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7012 | ac_tool_warned=yes ;; |
| 7013 | esac |
| 7014 | OTOOL=$ac_ct_OTOOL |
| 7015 | fi |
| 7016 | else |
| 7017 | OTOOL="$ac_cv_prog_OTOOL" |
| 7018 | fi |
| 7019 | |
| 7020 | if test -n "$ac_tool_prefix"; then |
| 7021 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
| 7022 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7023 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7024 | $as_echo_n "checking for $ac_word... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7025 | if test "${ac_cv_prog_OTOOL64+set}" = set; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7026 | $as_echo_n "(cached) " >&6 |
| 7027 | else |
| 7028 | if test -n "$OTOOL64"; then |
| 7029 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
| 7030 | else |
| 7031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7032 | for as_dir in $PATH |
| 7033 | do |
| 7034 | IFS=$as_save_IFS |
| 7035 | test -z "$as_dir" && as_dir=. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7036 | for ac_exec_ext in '' $ac_executable_extensions; do |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7037 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7038 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7039 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7040 | break 2 |
| 7041 | fi |
| 7042 | done |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7043 | done |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7044 | IFS=$as_save_IFS |
| 7045 | |
| 7046 | fi |
| 7047 | fi |
| 7048 | OTOOL64=$ac_cv_prog_OTOOL64 |
| 7049 | if test -n "$OTOOL64"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7050 | { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7051 | $as_echo "$OTOOL64" >&6; } |
| 7052 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7053 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7054 | $as_echo "no" >&6; } |
| 7055 | fi |
| 7056 | |
| 7057 | |
| 7058 | fi |
| 7059 | if test -z "$ac_cv_prog_OTOOL64"; then |
| 7060 | ac_ct_OTOOL64=$OTOOL64 |
| 7061 | # Extract the first word of "otool64", so it can be a program name with args. |
| 7062 | set dummy otool64; ac_word=$2 |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7063 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7064 | $as_echo_n "checking for $ac_word... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7065 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7066 | $as_echo_n "(cached) " >&6 |
| 7067 | else |
| 7068 | if test -n "$ac_ct_OTOOL64"; then |
| 7069 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
| 7070 | else |
| 7071 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7072 | for as_dir in $PATH |
| 7073 | do |
| 7074 | IFS=$as_save_IFS |
| 7075 | test -z "$as_dir" && as_dir=. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7076 | for ac_exec_ext in '' $ac_executable_extensions; do |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7077 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7078 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7079 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7080 | break 2 |
| 7081 | fi |
| 7082 | done |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7083 | done |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7084 | IFS=$as_save_IFS |
| 7085 | |
| 7086 | fi |
| 7087 | fi |
| 7088 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
| 7089 | if test -n "$ac_ct_OTOOL64"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7090 | { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7091 | $as_echo "$ac_ct_OTOOL64" >&6; } |
| 7092 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7093 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7094 | $as_echo "no" >&6; } |
| 7095 | fi |
| 7096 | |
| 7097 | if test "x$ac_ct_OTOOL64" = x; then |
| 7098 | OTOOL64=":" |
| 7099 | else |
| 7100 | case $cross_compiling:$ac_tool_warned in |
| 7101 | yes:) |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7102 | { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 7103 | whose name does not start with the host triplet. If you think this |
| 7104 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 7105 | $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 7106 | whose name does not start with the host triplet. If you think this |
| 7107 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7108 | ac_tool_warned=yes ;; |
| 7109 | esac |
| 7110 | OTOOL64=$ac_ct_OTOOL64 |
| 7111 | fi |
| 7112 | else |
| 7113 | OTOOL64="$ac_cv_prog_OTOOL64" |
| 7114 | fi |
| 7115 | |
| 7116 | |
| 7117 | |
| 7118 | |
| 7119 | |
| 7120 | |
| 7121 | |
| 7122 | |
| 7123 | |
| 7124 | |
| 7125 | |
| 7126 | |
| 7127 | |
| 7128 | |
| 7129 | |
| 7130 | |
| 7131 | |
| 7132 | |
| 7133 | |
| 7134 | |
| 7135 | |
| 7136 | |
| 7137 | |
| 7138 | |
| 7139 | |
| 7140 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 7141 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7142 | { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 7143 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7144 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 7145 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 7146 | else |
| 7147 | lt_cv_apple_cc_single_mod=no |
| 7148 | if test -z "${LT_MULTI_MODULE}"; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7149 | # By default we will add the -single_module flag. You can override |
| 7150 | # by either setting the environment variable LT_MULTI_MODULE |
| 7151 | # non-empty at configure time, or by adding -multi_module to the |
| 7152 | # link flags. |
| 7153 | rm -rf libconftest.dylib* |
| 7154 | echo "int foo(void){return 1;}" > conftest.c |
| 7155 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 7156 | -dynamiclib -Wl,-single_module conftest.c" >&5 |
| 7157 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 7158 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
| 7159 | _lt_result=$? |
| 7160 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then |
| 7161 | lt_cv_apple_cc_single_mod=yes |
| 7162 | else |
| 7163 | cat conftest.err >&5 |
| 7164 | fi |
| 7165 | rm -rf libconftest.dylib* |
| 7166 | rm -f conftest.* |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 7167 | fi |
| 7168 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7169 | { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 7170 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7171 | { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 7172 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7173 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 7174 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 7175 | else |
| 7176 | lt_cv_ld_exported_symbols_list=no |
| 7177 | save_LDFLAGS=$LDFLAGS |
| 7178 | echo "_main" > conftest.sym |
| 7179 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7180 | cat >conftest.$ac_ext <<_ACEOF |
| 7181 | /* confdefs.h. */ |
| 7182 | _ACEOF |
| 7183 | cat confdefs.h >>conftest.$ac_ext |
| 7184 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 7185 | /* end confdefs.h. */ |
| 7186 | |
| 7187 | int |
| 7188 | main () |
| 7189 | { |
| 7190 | |
| 7191 | ; |
| 7192 | return 0; |
| 7193 | } |
| 7194 | _ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7195 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7196 | if { (ac_try="$ac_link" |
| 7197 | case "(($ac_try" in |
| 7198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7199 | *) ac_try_echo=$ac_try;; |
| 7200 | esac |
| 7201 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7202 | $as_echo "$ac_try_echo") >&5 |
| 7203 | (eval "$ac_link") 2>conftest.er1 |
| 7204 | ac_status=$? |
| 7205 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7206 | rm -f conftest.er1 |
| 7207 | cat conftest.err >&5 |
| 7208 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7209 | (exit $ac_status); } && { |
| 7210 | test -z "$ac_c_werror_flag" || |
| 7211 | test ! -s conftest.err |
| 7212 | } && test -s conftest$ac_exeext && { |
| 7213 | test "$cross_compiling" = yes || |
| 7214 | $as_test_x conftest$ac_exeext |
| 7215 | }; then |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 7216 | lt_cv_ld_exported_symbols_list=yes |
| 7217 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7218 | $as_echo "$as_me: failed program was:" >&5 |
| 7219 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7220 | |
| 7221 | lt_cv_ld_exported_symbols_list=no |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 7222 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7223 | |
| 7224 | rm -rf conftest.dSYM |
| 7225 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 7226 | conftest$ac_exeext conftest.$ac_ext |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7227 | LDFLAGS="$save_LDFLAGS" |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 7228 | |
| 7229 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7230 | { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 7231 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 7232 | case $host_os in |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7233 | rhapsody* | darwin1.[012]) |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 7234 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
| 7235 | darwin1.*) |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7236 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 7237 | darwin*) # darwin 5.x on |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 7238 | # if running on 10.5 or later, the deployment target defaults |
| 7239 | # to the OS version, if on x86, and 10.4, the deployment |
| 7240 | # target defaults to 10.4. Don't you love it? |
| 7241 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7242 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
| 7243 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 7244 | 10.[012]*) |
| 7245 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 7246 | 10.*) |
| 7247 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 7248 | esac |
| 7249 | ;; |
| 7250 | esac |
| 7251 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
| 7252 | _lt_dar_single_mod='$single_module' |
| 7253 | fi |
| 7254 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
| 7255 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
| 7256 | else |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7257 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 7258 | fi |
| 7259 | if test "$DSYMUTIL" != ":"; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7260 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 7261 | else |
| 7262 | _lt_dsymutil= |
| 7263 | fi |
| 7264 | ;; |
| 7265 | esac |
| 7266 | |
| 7267 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7268 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7269 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7270 | if test "${ac_cv_header_stdc+set}" = set; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7271 | $as_echo_n "(cached) " >&6 |
| 7272 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7273 | cat >conftest.$ac_ext <<_ACEOF |
| 7274 | /* confdefs.h. */ |
| 7275 | _ACEOF |
| 7276 | cat confdefs.h >>conftest.$ac_ext |
| 7277 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7278 | /* end confdefs.h. */ |
| 7279 | #include <stdlib.h> |
| 7280 | #include <stdarg.h> |
| 7281 | #include <string.h> |
| 7282 | #include <float.h> |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 7283 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7284 | int |
| 7285 | main () |
| 7286 | { |
| 7287 | |
| 7288 | ; |
| 7289 | return 0; |
| 7290 | } |
| 7291 | _ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7292 | rm -f conftest.$ac_objext |
| 7293 | if { (ac_try="$ac_compile" |
| 7294 | case "(($ac_try" in |
| 7295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7296 | *) ac_try_echo=$ac_try;; |
| 7297 | esac |
| 7298 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7299 | $as_echo "$ac_try_echo") >&5 |
| 7300 | (eval "$ac_compile") 2>conftest.er1 |
| 7301 | ac_status=$? |
| 7302 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7303 | rm -f conftest.er1 |
| 7304 | cat conftest.err >&5 |
| 7305 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7306 | (exit $ac_status); } && { |
| 7307 | test -z "$ac_c_werror_flag" || |
| 7308 | test ! -s conftest.err |
| 7309 | } && test -s conftest.$ac_objext; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7310 | ac_cv_header_stdc=yes |
| 7311 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7312 | $as_echo "$as_me: failed program was:" >&5 |
| 7313 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7314 | |
| 7315 | ac_cv_header_stdc=no |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7316 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7317 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7318 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7319 | |
| 7320 | if test $ac_cv_header_stdc = yes; then |
| 7321 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7322 | cat >conftest.$ac_ext <<_ACEOF |
| 7323 | /* confdefs.h. */ |
| 7324 | _ACEOF |
| 7325 | cat confdefs.h >>conftest.$ac_ext |
| 7326 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7327 | /* end confdefs.h. */ |
| 7328 | #include <string.h> |
| 7329 | |
| 7330 | _ACEOF |
| 7331 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7332 | $EGREP "memchr" >/dev/null 2>&1; then |
| 7333 | : |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7334 | else |
| 7335 | ac_cv_header_stdc=no |
| 7336 | fi |
| 7337 | rm -f conftest* |
| 7338 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 7339 | fi |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 7340 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7341 | if test $ac_cv_header_stdc = yes; then |
| 7342 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7343 | cat >conftest.$ac_ext <<_ACEOF |
| 7344 | /* confdefs.h. */ |
| 7345 | _ACEOF |
| 7346 | cat confdefs.h >>conftest.$ac_ext |
| 7347 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7348 | /* end confdefs.h. */ |
| 7349 | #include <stdlib.h> |
| 7350 | |
| 7351 | _ACEOF |
| 7352 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7353 | $EGREP "free" >/dev/null 2>&1; then |
| 7354 | : |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7355 | else |
| 7356 | ac_cv_header_stdc=no |
| 7357 | fi |
| 7358 | rm -f conftest* |
| 7359 | |
| 7360 | fi |
| 7361 | |
| 7362 | if test $ac_cv_header_stdc = yes; then |
| 7363 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7364 | if test "$cross_compiling" = yes; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7365 | : |
| 7366 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7367 | cat >conftest.$ac_ext <<_ACEOF |
| 7368 | /* confdefs.h. */ |
| 7369 | _ACEOF |
| 7370 | cat confdefs.h >>conftest.$ac_ext |
| 7371 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7372 | /* end confdefs.h. */ |
| 7373 | #include <ctype.h> |
| 7374 | #include <stdlib.h> |
| 7375 | #if ((' ' & 0x0FF) == 0x020) |
| 7376 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 7377 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 7378 | #else |
| 7379 | # define ISLOWER(c) \ |
| 7380 | (('a' <= (c) && (c) <= 'i') \ |
| 7381 | || ('j' <= (c) && (c) <= 'r') \ |
| 7382 | || ('s' <= (c) && (c) <= 'z')) |
| 7383 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 7384 | #endif |
| 7385 | |
| 7386 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 7387 | int |
| 7388 | main () |
| 7389 | { |
| 7390 | int i; |
| 7391 | for (i = 0; i < 256; i++) |
| 7392 | if (XOR (islower (i), ISLOWER (i)) |
| 7393 | || toupper (i) != TOUPPER (i)) |
| 7394 | return 2; |
| 7395 | return 0; |
| 7396 | } |
| 7397 | _ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7398 | rm -f conftest$ac_exeext |
| 7399 | if { (ac_try="$ac_link" |
| 7400 | case "(($ac_try" in |
| 7401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7402 | *) ac_try_echo=$ac_try;; |
| 7403 | esac |
| 7404 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7405 | $as_echo "$ac_try_echo") >&5 |
| 7406 | (eval "$ac_link") 2>&5 |
| 7407 | ac_status=$? |
| 7408 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7409 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7410 | { (case "(($ac_try" in |
| 7411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7412 | *) ac_try_echo=$ac_try;; |
| 7413 | esac |
| 7414 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7415 | $as_echo "$ac_try_echo") >&5 |
| 7416 | (eval "$ac_try") 2>&5 |
| 7417 | ac_status=$? |
| 7418 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7419 | (exit $ac_status); }; }; then |
| 7420 | : |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7421 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7422 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 7423 | $as_echo "$as_me: failed program was:" >&5 |
| 7424 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7425 | |
| 7426 | ( exit $ac_status ) |
| 7427 | ac_cv_header_stdc=no |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7428 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7429 | rm -rf conftest.dSYM |
| 7430 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7431 | fi |
| 7432 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7433 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7434 | fi |
| 7435 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7436 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7437 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 7438 | if test $ac_cv_header_stdc = yes; then |
| 7439 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7440 | cat >>confdefs.h <<\_ACEOF |
| 7441 | #define STDC_HEADERS 1 |
| 7442 | _ACEOF |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7443 | |
| 7444 | fi |
| 7445 | |
| 7446 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7447 | |
| 7448 | |
| 7449 | |
| 7450 | |
| 7451 | |
| 7452 | |
| 7453 | |
| 7454 | |
| 7455 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7456 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 7457 | inttypes.h stdint.h unistd.h |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7458 | do |
| 7459 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7460 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7461 | $as_echo_n "checking for $ac_header... " >&6; } |
| 7462 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 7463 | $as_echo_n "(cached) " >&6 |
| 7464 | else |
| 7465 | cat >conftest.$ac_ext <<_ACEOF |
| 7466 | /* confdefs.h. */ |
| 7467 | _ACEOF |
| 7468 | cat confdefs.h >>conftest.$ac_ext |
| 7469 | cat >>conftest.$ac_ext <<_ACEOF |
| 7470 | /* end confdefs.h. */ |
| 7471 | $ac_includes_default |
| 7472 | |
| 7473 | #include <$ac_header> |
| 7474 | _ACEOF |
| 7475 | rm -f conftest.$ac_objext |
| 7476 | if { (ac_try="$ac_compile" |
| 7477 | case "(($ac_try" in |
| 7478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7479 | *) ac_try_echo=$ac_try;; |
| 7480 | esac |
| 7481 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7482 | $as_echo "$ac_try_echo") >&5 |
| 7483 | (eval "$ac_compile") 2>conftest.er1 |
| 7484 | ac_status=$? |
| 7485 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7486 | rm -f conftest.er1 |
| 7487 | cat conftest.err >&5 |
| 7488 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7489 | (exit $ac_status); } && { |
| 7490 | test -z "$ac_c_werror_flag" || |
| 7491 | test ! -s conftest.err |
| 7492 | } && test -s conftest.$ac_objext; then |
| 7493 | eval "$as_ac_Header=yes" |
| 7494 | else |
| 7495 | $as_echo "$as_me: failed program was:" >&5 |
| 7496 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7497 | |
| 7498 | eval "$as_ac_Header=no" |
| 7499 | fi |
| 7500 | |
| 7501 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7502 | fi |
| 7503 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 7504 | $as_echo "$as_val"'` |
| 7505 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7506 | $as_echo "$ac_res" >&6; } |
| 7507 | if test `eval 'as_val=${'$as_ac_Header'} |
| 7508 | $as_echo "$as_val"'` = yes; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7509 | cat >>confdefs.h <<_ACEOF |
| 7510 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7511 | _ACEOF |
| 7512 | |
| 7513 | fi |
| 7514 | |
| 7515 | done |
| 7516 | |
| 7517 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7518 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7519 | for ac_header in dlfcn.h |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7520 | do |
| 7521 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7522 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7523 | $as_echo_n "checking for $ac_header... " >&6; } |
| 7524 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 7525 | $as_echo_n "(cached) " >&6 |
| 7526 | else |
| 7527 | cat >conftest.$ac_ext <<_ACEOF |
| 7528 | /* confdefs.h. */ |
| 7529 | _ACEOF |
| 7530 | cat confdefs.h >>conftest.$ac_ext |
| 7531 | cat >>conftest.$ac_ext <<_ACEOF |
| 7532 | /* end confdefs.h. */ |
| 7533 | $ac_includes_default |
| 7534 | |
| 7535 | #include <$ac_header> |
| 7536 | _ACEOF |
| 7537 | rm -f conftest.$ac_objext |
| 7538 | if { (ac_try="$ac_compile" |
| 7539 | case "(($ac_try" in |
| 7540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7541 | *) ac_try_echo=$ac_try;; |
| 7542 | esac |
| 7543 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7544 | $as_echo "$ac_try_echo") >&5 |
| 7545 | (eval "$ac_compile") 2>conftest.er1 |
| 7546 | ac_status=$? |
| 7547 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7548 | rm -f conftest.er1 |
| 7549 | cat conftest.err >&5 |
| 7550 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7551 | (exit $ac_status); } && { |
| 7552 | test -z "$ac_c_werror_flag" || |
| 7553 | test ! -s conftest.err |
| 7554 | } && test -s conftest.$ac_objext; then |
| 7555 | eval "$as_ac_Header=yes" |
| 7556 | else |
| 7557 | $as_echo "$as_me: failed program was:" >&5 |
| 7558 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7559 | |
| 7560 | eval "$as_ac_Header=no" |
| 7561 | fi |
| 7562 | |
| 7563 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7564 | fi |
| 7565 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 7566 | $as_echo "$as_val"'` |
| 7567 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7568 | $as_echo "$ac_res" >&6; } |
| 7569 | if test `eval 'as_val=${'$as_ac_Header'} |
| 7570 | $as_echo "$as_val"'` = yes; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7571 | cat >>confdefs.h <<_ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7572 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7573 | _ACEOF |
| 7574 | |
| 7575 | fi |
| 7576 | |
| 7577 | done |
| 7578 | |
| 7579 | |
| 7580 | |
| 7581 | ac_ext=cpp |
| 7582 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 7583 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7584 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7585 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 7586 | if test -z "$CXX"; then |
| 7587 | if test -n "$CCC"; then |
| 7588 | CXX=$CCC |
| 7589 | else |
| 7590 | if test -n "$ac_tool_prefix"; then |
| 7591 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 7592 | do |
| 7593 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 7594 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7595 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7596 | $as_echo_n "checking for $ac_word... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7597 | if test "${ac_cv_prog_CXX+set}" = set; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7598 | $as_echo_n "(cached) " >&6 |
| 7599 | else |
| 7600 | if test -n "$CXX"; then |
| 7601 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 7602 | else |
| 7603 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7604 | for as_dir in $PATH |
| 7605 | do |
| 7606 | IFS=$as_save_IFS |
| 7607 | test -z "$as_dir" && as_dir=. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7608 | for ac_exec_ext in '' $ac_executable_extensions; do |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7609 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7610 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7611 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7612 | break 2 |
| 7613 | fi |
| 7614 | done |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7615 | done |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7616 | IFS=$as_save_IFS |
| 7617 | |
| 7618 | fi |
| 7619 | fi |
| 7620 | CXX=$ac_cv_prog_CXX |
| 7621 | if test -n "$CXX"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7622 | { $as_echo "$as_me:$LINENO: result: $CXX" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7623 | $as_echo "$CXX" >&6; } |
| 7624 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7625 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7626 | $as_echo "no" >&6; } |
| 7627 | fi |
| 7628 | |
| 7629 | |
| 7630 | test -n "$CXX" && break |
| 7631 | done |
| 7632 | fi |
| 7633 | if test -z "$CXX"; then |
| 7634 | ac_ct_CXX=$CXX |
| 7635 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 7636 | do |
| 7637 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7638 | set dummy $ac_prog; ac_word=$2 |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7639 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7640 | $as_echo_n "checking for $ac_word... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7641 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7642 | $as_echo_n "(cached) " >&6 |
| 7643 | else |
| 7644 | if test -n "$ac_ct_CXX"; then |
| 7645 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 7646 | else |
| 7647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7648 | for as_dir in $PATH |
| 7649 | do |
| 7650 | IFS=$as_save_IFS |
| 7651 | test -z "$as_dir" && as_dir=. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7652 | for ac_exec_ext in '' $ac_executable_extensions; do |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7653 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7654 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7655 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7656 | break 2 |
| 7657 | fi |
| 7658 | done |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7659 | done |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7660 | IFS=$as_save_IFS |
| 7661 | |
| 7662 | fi |
| 7663 | fi |
| 7664 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 7665 | if test -n "$ac_ct_CXX"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7666 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7667 | $as_echo "$ac_ct_CXX" >&6; } |
| 7668 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7669 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7670 | $as_echo "no" >&6; } |
| 7671 | fi |
| 7672 | |
| 7673 | |
| 7674 | test -n "$ac_ct_CXX" && break |
| 7675 | done |
| 7676 | |
| 7677 | if test "x$ac_ct_CXX" = x; then |
| 7678 | CXX="g++" |
| 7679 | else |
| 7680 | case $cross_compiling:$ac_tool_warned in |
| 7681 | yes:) |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7682 | { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 7683 | whose name does not start with the host triplet. If you think this |
| 7684 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 7685 | $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 7686 | whose name does not start with the host triplet. If you think this |
| 7687 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7688 | ac_tool_warned=yes ;; |
| 7689 | esac |
| 7690 | CXX=$ac_ct_CXX |
| 7691 | fi |
| 7692 | fi |
| 7693 | |
| 7694 | fi |
| 7695 | fi |
| 7696 | # Provide some information about the compiler. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7697 | $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7698 | set X $ac_compile |
| 7699 | ac_compiler=$2 |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7700 | { (ac_try="$ac_compiler --version >&5" |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7701 | case "(($ac_try" in |
| 7702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7703 | *) ac_try_echo=$ac_try;; |
| 7704 | esac |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7705 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7706 | $as_echo "$ac_try_echo") >&5 |
| 7707 | (eval "$ac_compiler --version >&5") 2>&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7708 | ac_status=$? |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7709 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7710 | (exit $ac_status); } |
| 7711 | { (ac_try="$ac_compiler -v >&5" |
| 7712 | case "(($ac_try" in |
| 7713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7714 | *) ac_try_echo=$ac_try;; |
| 7715 | esac |
| 7716 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7717 | $as_echo "$ac_try_echo") >&5 |
| 7718 | (eval "$ac_compiler -v >&5") 2>&5 |
| 7719 | ac_status=$? |
| 7720 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7721 | (exit $ac_status); } |
| 7722 | { (ac_try="$ac_compiler -V >&5" |
| 7723 | case "(($ac_try" in |
| 7724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7725 | *) ac_try_echo=$ac_try;; |
| 7726 | esac |
| 7727 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7728 | $as_echo "$ac_try_echo") >&5 |
| 7729 | (eval "$ac_compiler -V >&5") 2>&5 |
| 7730 | ac_status=$? |
| 7731 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7732 | (exit $ac_status); } |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7733 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7734 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7735 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7736 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7737 | $as_echo_n "(cached) " >&6 |
| 7738 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7739 | cat >conftest.$ac_ext <<_ACEOF |
| 7740 | /* confdefs.h. */ |
| 7741 | _ACEOF |
| 7742 | cat confdefs.h >>conftest.$ac_ext |
| 7743 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7744 | /* end confdefs.h. */ |
| 7745 | |
| 7746 | int |
| 7747 | main () |
| 7748 | { |
| 7749 | #ifndef __GNUC__ |
| 7750 | choke me |
| 7751 | #endif |
| 7752 | |
| 7753 | ; |
| 7754 | return 0; |
| 7755 | } |
| 7756 | _ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7757 | rm -f conftest.$ac_objext |
| 7758 | if { (ac_try="$ac_compile" |
| 7759 | case "(($ac_try" in |
| 7760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7761 | *) ac_try_echo=$ac_try;; |
| 7762 | esac |
| 7763 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7764 | $as_echo "$ac_try_echo") >&5 |
| 7765 | (eval "$ac_compile") 2>conftest.er1 |
| 7766 | ac_status=$? |
| 7767 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7768 | rm -f conftest.er1 |
| 7769 | cat conftest.err >&5 |
| 7770 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7771 | (exit $ac_status); } && { |
| 7772 | test -z "$ac_cxx_werror_flag" || |
| 7773 | test ! -s conftest.err |
| 7774 | } && test -s conftest.$ac_objext; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7775 | ac_compiler_gnu=yes |
| 7776 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7777 | $as_echo "$as_me: failed program was:" >&5 |
| 7778 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7779 | |
| 7780 | ac_compiler_gnu=no |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7781 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7782 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7783 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7784 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 7785 | |
| 7786 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7787 | { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7788 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 7789 | if test $ac_compiler_gnu = yes; then |
| 7790 | GXX=yes |
| 7791 | else |
| 7792 | GXX= |
| 7793 | fi |
| 7794 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 7795 | ac_save_CXXFLAGS=$CXXFLAGS |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7796 | { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7797 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7798 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7799 | $as_echo_n "(cached) " >&6 |
| 7800 | else |
| 7801 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 7802 | ac_cxx_werror_flag=yes |
| 7803 | ac_cv_prog_cxx_g=no |
| 7804 | CXXFLAGS="-g" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7805 | cat >conftest.$ac_ext <<_ACEOF |
| 7806 | /* confdefs.h. */ |
| 7807 | _ACEOF |
| 7808 | cat confdefs.h >>conftest.$ac_ext |
| 7809 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7810 | /* end confdefs.h. */ |
| 7811 | |
| 7812 | int |
| 7813 | main () |
| 7814 | { |
| 7815 | |
| 7816 | ; |
| 7817 | return 0; |
| 7818 | } |
| 7819 | _ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7820 | rm -f conftest.$ac_objext |
| 7821 | if { (ac_try="$ac_compile" |
| 7822 | case "(($ac_try" in |
| 7823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7824 | *) ac_try_echo=$ac_try;; |
| 7825 | esac |
| 7826 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7827 | $as_echo "$ac_try_echo") >&5 |
| 7828 | (eval "$ac_compile") 2>conftest.er1 |
| 7829 | ac_status=$? |
| 7830 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7831 | rm -f conftest.er1 |
| 7832 | cat conftest.err >&5 |
| 7833 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7834 | (exit $ac_status); } && { |
| 7835 | test -z "$ac_cxx_werror_flag" || |
| 7836 | test ! -s conftest.err |
| 7837 | } && test -s conftest.$ac_objext; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7838 | ac_cv_prog_cxx_g=yes |
| 7839 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7840 | $as_echo "$as_me: failed program was:" >&5 |
| 7841 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7842 | |
| 7843 | CXXFLAGS="" |
| 7844 | cat >conftest.$ac_ext <<_ACEOF |
| 7845 | /* confdefs.h. */ |
| 7846 | _ACEOF |
| 7847 | cat confdefs.h >>conftest.$ac_ext |
| 7848 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7849 | /* end confdefs.h. */ |
| 7850 | |
| 7851 | int |
| 7852 | main () |
| 7853 | { |
| 7854 | |
| 7855 | ; |
| 7856 | return 0; |
| 7857 | } |
| 7858 | _ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7859 | rm -f conftest.$ac_objext |
| 7860 | if { (ac_try="$ac_compile" |
| 7861 | case "(($ac_try" in |
| 7862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7863 | *) ac_try_echo=$ac_try;; |
| 7864 | esac |
| 7865 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7866 | $as_echo "$ac_try_echo") >&5 |
| 7867 | (eval "$ac_compile") 2>conftest.er1 |
| 7868 | ac_status=$? |
| 7869 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7870 | rm -f conftest.er1 |
| 7871 | cat conftest.err >&5 |
| 7872 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7873 | (exit $ac_status); } && { |
| 7874 | test -z "$ac_cxx_werror_flag" || |
| 7875 | test ! -s conftest.err |
| 7876 | } && test -s conftest.$ac_objext; then |
| 7877 | : |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7878 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7879 | $as_echo "$as_me: failed program was:" >&5 |
| 7880 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7881 | |
| 7882 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7883 | CXXFLAGS="-g" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7884 | cat >conftest.$ac_ext <<_ACEOF |
| 7885 | /* confdefs.h. */ |
| 7886 | _ACEOF |
| 7887 | cat confdefs.h >>conftest.$ac_ext |
| 7888 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7889 | /* end confdefs.h. */ |
| 7890 | |
| 7891 | int |
| 7892 | main () |
| 7893 | { |
| 7894 | |
| 7895 | ; |
| 7896 | return 0; |
| 7897 | } |
| 7898 | _ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7899 | rm -f conftest.$ac_objext |
| 7900 | if { (ac_try="$ac_compile" |
| 7901 | case "(($ac_try" in |
| 7902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7903 | *) ac_try_echo=$ac_try;; |
| 7904 | esac |
| 7905 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7906 | $as_echo "$ac_try_echo") >&5 |
| 7907 | (eval "$ac_compile") 2>conftest.er1 |
| 7908 | ac_status=$? |
| 7909 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7910 | rm -f conftest.er1 |
| 7911 | cat conftest.err >&5 |
| 7912 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7913 | (exit $ac_status); } && { |
| 7914 | test -z "$ac_cxx_werror_flag" || |
| 7915 | test ! -s conftest.err |
| 7916 | } && test -s conftest.$ac_objext; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7917 | ac_cv_prog_cxx_g=yes |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7918 | else |
| 7919 | $as_echo "$as_me: failed program was:" >&5 |
| 7920 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7921 | |
| 7922 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7923 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7924 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7925 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7926 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7927 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7928 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7929 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7930 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7931 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7932 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 7933 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7934 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7935 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
| 7936 | if test "$ac_test_CXXFLAGS" = set; then |
| 7937 | CXXFLAGS=$ac_save_CXXFLAGS |
| 7938 | elif test $ac_cv_prog_cxx_g = yes; then |
| 7939 | if test "$GXX" = yes; then |
| 7940 | CXXFLAGS="-g -O2" |
| 7941 | else |
| 7942 | CXXFLAGS="-g" |
| 7943 | fi |
| 7944 | else |
| 7945 | if test "$GXX" = yes; then |
| 7946 | CXXFLAGS="-O2" |
| 7947 | else |
| 7948 | CXXFLAGS= |
| 7949 | fi |
| 7950 | fi |
| 7951 | ac_ext=c |
| 7952 | ac_cpp='$CPP $CPPFLAGS' |
| 7953 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7954 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7955 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7956 | |
| 7957 | depcc="$CXX" am_compiler_list= |
| 7958 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7959 | { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7960 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 7961 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 7962 | $as_echo_n "(cached) " >&6 |
| 7963 | else |
| 7964 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 7965 | # We make a subdir and do the tests there. Otherwise we can end up |
| 7966 | # making bogus files that we don't know about and never remove. For |
| 7967 | # instance it was reported that on HP-UX the gcc test will end up |
| 7968 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 7969 | # in D'. |
| 7970 | mkdir conftest.dir |
| 7971 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 7972 | # using a relative directory. |
| 7973 | cp "$am_depcomp" conftest.dir |
| 7974 | cd conftest.dir |
| 7975 | # We will build objects and dependencies in a subdirectory because |
| 7976 | # it helps to detect inapplicable dependency modes. For instance |
| 7977 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 7978 | # side effect of compilation, but ICC will put the dependencies in |
| 7979 | # the current directory while Tru64 will put them in the object |
| 7980 | # directory. |
| 7981 | mkdir sub |
| 7982 | |
| 7983 | am_cv_CXX_dependencies_compiler_type=none |
| 7984 | if test "$am_compiler_list" = ""; then |
| 7985 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 7986 | fi |
| 7987 | for depmode in $am_compiler_list; do |
| 7988 | # Setup a source with many dependencies, because some compilers |
| 7989 | # like to wrap large dependency lists on column 80 (with \), and |
| 7990 | # we should not choose a depcomp mode which is confused by this. |
| 7991 | # |
| 7992 | # We need to recreate these files for each test, as the compiler may |
| 7993 | # overwrite some of them when testing with obscure command lines. |
| 7994 | # This happens at least with the AIX C compiler. |
| 7995 | : > sub/conftest.c |
| 7996 | for i in 1 2 3 4 5 6; do |
| 7997 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 7998 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 7999 | # Solaris 8's {/usr,}/bin/sh. |
| 8000 | touch sub/conftst$i.h |
| 8001 | done |
| 8002 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 8003 | |
| 8004 | case $depmode in |
| 8005 | nosideeffect) |
| 8006 | # after this tag, mechanisms are not by side-effect, so they'll |
| 8007 | # only be used when explicitly requested |
| 8008 | if test "x$enable_dependency_tracking" = xyes; then |
| 8009 | continue |
| 8010 | else |
| 8011 | break |
| 8012 | fi |
| 8013 | ;; |
| 8014 | none) break ;; |
| 8015 | esac |
| 8016 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 8017 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 8018 | # handle `-M -o', and we need to detect this. |
| 8019 | if depmode=$depmode \ |
| 8020 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| 8021 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 8022 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| 8023 | >/dev/null 2>conftest.err && |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 8024 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8025 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 8026 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
| 8027 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 8028 | # icc doesn't choke on unknown options, it will just issue warnings |
| 8029 | # or remarks (even with -Werror). So we grep stderr for any message |
| 8030 | # that says an option was ignored or not supported. |
| 8031 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 8032 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 8033 | # The diagnosis changed in icc 8.0: |
| 8034 | # icc: Command line remark: option '-MP' not supported |
| 8035 | if (grep 'ignoring option' conftest.err || |
| 8036 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 8037 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 8038 | break |
| 8039 | fi |
| 8040 | fi |
| 8041 | done |
| 8042 | |
| 8043 | cd .. |
| 8044 | rm -rf conftest.dir |
| 8045 | else |
| 8046 | am_cv_CXX_dependencies_compiler_type=none |
| 8047 | fi |
| 8048 | |
| 8049 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 8050 | { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8051 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
| 8052 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 8053 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 8054 | if |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8055 | test "x$enable_dependency_tracking" != xno \ |
| 8056 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 8057 | am__fastdepCXX_TRUE= |
| 8058 | am__fastdepCXX_FALSE='#' |
| 8059 | else |
| 8060 | am__fastdepCXX_TRUE='#' |
| 8061 | am__fastdepCXX_FALSE= |
| 8062 | fi |
| 8063 | |
| 8064 | |
| 8065 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 8066 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 8067 | (test "X$CXX" != "Xg++"))) ; then |
| 8068 | ac_ext=cpp |
| 8069 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 8070 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8071 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8072 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 8073 | { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8074 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } |
| 8075 | if test -z "$CXXCPP"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 8076 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8077 | $as_echo_n "(cached) " >&6 |
| 8078 | else |
| 8079 | # Double quotes because CXXCPP needs to be expanded |
| 8080 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 8081 | do |
| 8082 | ac_preproc_ok=false |
| 8083 | for ac_cxx_preproc_warn_flag in '' yes |
| 8084 | do |
| 8085 | # Use a header file that comes with gcc, so configuring glibc |
| 8086 | # with a fresh cross-compiler works. |
| 8087 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 8088 | # <limits.h> exists even on freestanding compilers. |
| 8089 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 8090 | # not just through cpp. "Syntax error" is here to catch this case. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 8091 | cat >conftest.$ac_ext <<_ACEOF |
| 8092 | /* confdefs.h. */ |
| 8093 | _ACEOF |
| 8094 | cat confdefs.h >>conftest.$ac_ext |
| 8095 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8096 | /* end confdefs.h. */ |
| 8097 | #ifdef __STDC__ |
| 8098 | # include <limits.h> |
| 8099 | #else |
| 8100 | # include <assert.h> |
| 8101 | #endif |
| 8102 | Syntax error |
| 8103 | _ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 8104 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8105 | case "(($ac_try" in |
| 8106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8107 | *) ac_try_echo=$ac_try;; |
| 8108 | esac |
| 8109 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8110 | $as_echo "$ac_try_echo") >&5 |
| 8111 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 8112 | ac_status=$? |
| 8113 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8114 | rm -f conftest.er1 |
| 8115 | cat conftest.err >&5 |
| 8116 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8117 | (exit $ac_status); } >/dev/null && { |
| 8118 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 8119 | test ! -s conftest.err |
| 8120 | }; then |
| 8121 | : |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8122 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 8123 | $as_echo "$as_me: failed program was:" >&5 |
| 8124 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8125 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8126 | # Broken: fails on valid input. |
| 8127 | continue |
| 8128 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 8129 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8130 | rm -f conftest.err conftest.$ac_ext |
| 8131 | |
| 8132 | # OK, works on sane cases. Now check whether nonexistent headers |
| 8133 | # can be detected and how. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 8134 | cat >conftest.$ac_ext <<_ACEOF |
| 8135 | /* confdefs.h. */ |
| 8136 | _ACEOF |
| 8137 | cat confdefs.h >>conftest.$ac_ext |
| 8138 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8139 | /* end confdefs.h. */ |
| 8140 | #include <ac_nonexistent.h> |
| 8141 | _ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 8142 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8143 | case "(($ac_try" in |
| 8144 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8145 | *) ac_try_echo=$ac_try;; |
| 8146 | esac |
| 8147 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8148 | $as_echo "$ac_try_echo") >&5 |
| 8149 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 8150 | ac_status=$? |
| 8151 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8152 | rm -f conftest.er1 |
| 8153 | cat conftest.err >&5 |
| 8154 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8155 | (exit $ac_status); } >/dev/null && { |
| 8156 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 8157 | test ! -s conftest.err |
| 8158 | }; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8159 | # Broken: success on invalid input. |
| 8160 | continue |
| 8161 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 8162 | $as_echo "$as_me: failed program was:" >&5 |
| 8163 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8164 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8165 | # Passes both tests. |
| 8166 | ac_preproc_ok=: |
| 8167 | break |
| 8168 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 8169 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8170 | rm -f conftest.err conftest.$ac_ext |
| 8171 | |
| 8172 | done |
| 8173 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 8174 | rm -f conftest.err conftest.$ac_ext |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 8175 | if $ac_preproc_ok; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8176 | break |
| 8177 | fi |
| 8178 | |
| 8179 | done |
| 8180 | ac_cv_prog_CXXCPP=$CXXCPP |
| 8181 | |
| 8182 | fi |
| 8183 | CXXCPP=$ac_cv_prog_CXXCPP |
| 8184 | else |
| 8185 | ac_cv_prog_CXXCPP=$CXXCPP |
| 8186 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 8187 | { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8188 | $as_echo "$CXXCPP" >&6; } |
| 8189 | ac_preproc_ok=false |
| 8190 | for ac_cxx_preproc_warn_flag in '' yes |
| 8191 | do |
| 8192 | # Use a header file that comes with gcc, so configuring glibc |
| 8193 | # with a fresh cross-compiler works. |
| 8194 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 8195 | # <limits.h> exists even on freestanding compilers. |
| 8196 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 8197 | # not just through cpp. "Syntax error" is here to catch this case. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 8198 | cat >conftest.$ac_ext <<_ACEOF |
| 8199 | /* confdefs.h. */ |
| 8200 | _ACEOF |
| 8201 | cat confdefs.h >>conftest.$ac_ext |
| 8202 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8203 | /* end confdefs.h. */ |
| 8204 | #ifdef __STDC__ |
| 8205 | # include <limits.h> |
| 8206 | #else |
| 8207 | # include <assert.h> |
| 8208 | #endif |
| 8209 | Syntax error |
| 8210 | _ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 8211 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8212 | case "(($ac_try" in |
| 8213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8214 | *) ac_try_echo=$ac_try;; |
| 8215 | esac |
| 8216 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8217 | $as_echo "$ac_try_echo") >&5 |
| 8218 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 8219 | ac_status=$? |
| 8220 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8221 | rm -f conftest.er1 |
| 8222 | cat conftest.err >&5 |
| 8223 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8224 | (exit $ac_status); } >/dev/null && { |
| 8225 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 8226 | test ! -s conftest.err |
| 8227 | }; then |
| 8228 | : |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8229 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 8230 | $as_echo "$as_me: failed program was:" >&5 |
| 8231 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8232 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8233 | # Broken: fails on valid input. |
| 8234 | continue |
| 8235 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 8236 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8237 | rm -f conftest.err conftest.$ac_ext |
| 8238 | |
| 8239 | # OK, works on sane cases. Now check whether nonexistent headers |
| 8240 | # can be detected and how. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 8241 | cat >conftest.$ac_ext <<_ACEOF |
| 8242 | /* confdefs.h. */ |
| 8243 | _ACEOF |
| 8244 | cat confdefs.h >>conftest.$ac_ext |
| 8245 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8246 | /* end confdefs.h. */ |
| 8247 | #include <ac_nonexistent.h> |
| 8248 | _ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 8249 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8250 | case "(($ac_try" in |
| 8251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8252 | *) ac_try_echo=$ac_try;; |
| 8253 | esac |
| 8254 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8255 | $as_echo "$ac_try_echo") >&5 |
| 8256 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 8257 | ac_status=$? |
| 8258 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8259 | rm -f conftest.er1 |
| 8260 | cat conftest.err >&5 |
| 8261 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8262 | (exit $ac_status); } >/dev/null && { |
| 8263 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 8264 | test ! -s conftest.err |
| 8265 | }; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8266 | # Broken: success on invalid input. |
| 8267 | continue |
| 8268 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 8269 | $as_echo "$as_me: failed program was:" >&5 |
| 8270 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8271 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8272 | # Passes both tests. |
| 8273 | ac_preproc_ok=: |
| 8274 | break |
| 8275 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 8276 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8277 | rm -f conftest.err conftest.$ac_ext |
| 8278 | |
| 8279 | done |
| 8280 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 8281 | rm -f conftest.err conftest.$ac_ext |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 8282 | if $ac_preproc_ok; then |
| 8283 | : |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8284 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 8285 | _lt_caught_CXX_error=yes |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8286 | fi |
| 8287 | |
| 8288 | ac_ext=c |
| 8289 | ac_cpp='$CPP $CPPFLAGS' |
| 8290 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8291 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8292 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8293 | |
| 8294 | else |
| 8295 | _lt_caught_CXX_error=yes |
| 8296 | fi |
| 8297 | |
| 8298 | |
| 8299 | |
| 8300 | |
| 8301 | |
| 8302 | # Set options |
| 8303 | |
| 8304 | |
| 8305 | |
| 8306 | enable_dlopen=no |
| 8307 | |
| 8308 | |
| 8309 | enable_win32_dll=no |
| 8310 | |
| 8311 | |
| 8312 | # Check whether --enable-shared was given. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 8313 | if test "${enable_shared+set}" = set; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8314 | enableval=$enable_shared; p=${PACKAGE-default} |
| 8315 | case $enableval in |
| 8316 | yes) enable_shared=yes ;; |
| 8317 | no) enable_shared=no ;; |
| 8318 | *) |
| 8319 | enable_shared=no |
| 8320 | # Look at the argument we got. We use all the common list separators. |
| 8321 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 8322 | for pkg in $enableval; do |
| 8323 | IFS="$lt_save_ifs" |
| 8324 | if test "X$pkg" = "X$p"; then |
| 8325 | enable_shared=yes |
| 8326 | fi |
| 8327 | done |
| 8328 | IFS="$lt_save_ifs" |
| 8329 | ;; |
| 8330 | esac |
| 8331 | else |
| 8332 | enable_shared=yes |
| 8333 | fi |
| 8334 | |
| 8335 | |
| 8336 | |
| 8337 | |
| 8338 | |
| 8339 | |
| 8340 | |
| 8341 | |
| 8342 | |
| 8343 | # Check whether --enable-static was given. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 8344 | if test "${enable_static+set}" = set; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8345 | enableval=$enable_static; p=${PACKAGE-default} |
| 8346 | case $enableval in |
| 8347 | yes) enable_static=yes ;; |
| 8348 | no) enable_static=no ;; |
| 8349 | *) |
| 8350 | enable_static=no |
| 8351 | # Look at the argument we got. We use all the common list separators. |
| 8352 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 8353 | for pkg in $enableval; do |
| 8354 | IFS="$lt_save_ifs" |
| 8355 | if test "X$pkg" = "X$p"; then |
| 8356 | enable_static=yes |
| 8357 | fi |
| 8358 | done |
| 8359 | IFS="$lt_save_ifs" |
| 8360 | ;; |
| 8361 | esac |
| 8362 | else |
| 8363 | enable_static=yes |
| 8364 | fi |
| 8365 | |
| 8366 | |
| 8367 | |
| 8368 | |
| 8369 | |
| 8370 | |
| 8371 | |
| 8372 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 8373 | |
| 8374 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 8375 | # Check whether --with-pic was given. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 8376 | if test "${with_pic+set}" = set; then |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 8377 | withval=$with_pic; pic_mode="$withval" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 8378 | else |
| 8379 | pic_mode=default |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 8380 | fi |
| 8381 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8382 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 8383 | test -z "$pic_mode" && pic_mode=default |
| 8384 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8385 | |
| 8386 | |
| 8387 | |
| 8388 | |
| 8389 | |
| 8390 | |
| 8391 | |
| 8392 | |
| 8393 | |
| 8394 | |
| 8395 | # This can be used to rebuild libtool when needed |
| 8396 | LIBTOOL_DEPS="$ltmain" |
| 8397 | |
| 8398 | # Always use our own libtool. |
| 8399 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 8400 | |
| 8401 | |
| 8402 | |
| 8403 | |
| 8404 | |
| 8405 | |
| 8406 | |
| 8407 | |
| 8408 | |
| 8409 | |
| 8410 | |
| 8411 | |
| 8412 | |
| 8413 | |
| 8414 | |
| 8415 | |
| 8416 | |
| 8417 | |
| 8418 | |
| 8419 | |
| 8420 | |
| 8421 | |
| 8422 | |
| 8423 | |
| 8424 | |
| 8425 | test -z "$LN_S" && LN_S="ln -s" |
| 8426 | |
| 8427 | |
| 8428 | |
| 8429 | |
| 8430 | |
| 8431 | |
| 8432 | |
| 8433 | |
| 8434 | |
| 8435 | |
| 8436 | |
| 8437 | |
| 8438 | |
| 8439 | |
| 8440 | if test -n "${ZSH_VERSION+set}" ; then |
| 8441 | setopt NO_GLOB_SUBST |
| 8442 | fi |
| 8443 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 8444 | { $as_echo "$as_me:$LINENO: checking for objdir" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8445 | $as_echo_n "checking for objdir... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 8446 | if test "${lt_cv_objdir+set}" = set; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8447 | $as_echo_n "(cached) " >&6 |
| 8448 | else |
| 8449 | rm -f .libs 2>/dev/null |
| 8450 | mkdir .libs 2>/dev/null |
| 8451 | if test -d .libs; then |
| 8452 | lt_cv_objdir=.libs |
| 8453 | else |
| 8454 | # MS-DOS does not allow filenames that begin with a dot. |
| 8455 | lt_cv_objdir=_libs |
| 8456 | fi |
| 8457 | rmdir .libs 2>/dev/null |
| 8458 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 8459 | { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8460 | $as_echo "$lt_cv_objdir" >&6; } |
| 8461 | objdir=$lt_cv_objdir |
| 8462 | |
| 8463 | |
| 8464 | |
| 8465 | |
| 8466 | |
| 8467 | cat >>confdefs.h <<_ACEOF |
| 8468 | #define LT_OBJDIR "$lt_cv_objdir/" |
| 8469 | _ACEOF |
| 8470 | |
| 8471 | |
| 8472 | |
| 8473 | |
| 8474 | |
| 8475 | |
| 8476 | |
| 8477 | |
| 8478 | |
| 8479 | |
| 8480 | |
| 8481 | |
| 8482 | |
| 8483 | |
| 8484 | |
| 8485 | |
| 8486 | |
| 8487 | case $host_os in |
| 8488 | aix3*) |
| 8489 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 8490 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 8491 | # vanish in a puff of smoke. |
| 8492 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 8493 | COLLECT_NAMES= |
| 8494 | export COLLECT_NAMES |
| 8495 | fi |
| 8496 | ;; |
| 8497 | esac |
| 8498 | |
| 8499 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 8500 | # metacharacters that are still active within double-quoted strings. |
| 8501 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
| 8502 | |
| 8503 | # Same as above, but do not quote variable references. |
| 8504 | double_quote_subst='s/\(["`\\]\)/\\\1/g' |
| 8505 | |
| 8506 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 8507 | # double_quote_subst'ed string. |
| 8508 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 8509 | |
| 8510 | # Sed substitution to delay expansion of an escaped single quote. |
| 8511 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
| 8512 | |
| 8513 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 8514 | no_glob_subst='s/\*/\\\*/g' |
| 8515 | |
| 8516 | # Global variables: |
| 8517 | ofile=libtool |
| 8518 | can_build_shared=yes |
| 8519 | |
| 8520 | # All known linkers require a `.a' archive for static linking (except MSVC, |
| 8521 | # which needs '.lib'). |
| 8522 | libext=a |
| 8523 | |
| 8524 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 8525 | |
| 8526 | old_CC="$CC" |
| 8527 | old_CFLAGS="$CFLAGS" |
| 8528 | |
| 8529 | # Set sane defaults for various variables |
| 8530 | test -z "$CC" && CC=cc |
| 8531 | test -z "$LTCC" && LTCC=$CC |
| 8532 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
| 8533 | test -z "$LD" && LD=ld |
| 8534 | test -z "$ac_objext" && ac_objext=o |
| 8535 | |
| 8536 | for cc_temp in $compiler""; do |
| 8537 | case $cc_temp in |
| 8538 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 8539 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 8540 | \-*) ;; |
| 8541 | *) break;; |
| 8542 | esac |
| 8543 | done |
| 8544 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 8545 | |
| 8546 | |
| 8547 | # Only perform the check for file, if the check method requires it |
| 8548 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 8549 | case $deplibs_check_method in |
| 8550 | file_magic*) |
| 8551 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 8552 | { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8553 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 8554 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8555 | $as_echo_n "(cached) " >&6 |
| 8556 | else |
| 8557 | case $MAGIC_CMD in |
| 8558 | [\\/*] | ?:[\\/]*) |
| 8559 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 8560 | ;; |
| 8561 | *) |
| 8562 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 8563 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 8564 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 8565 | for ac_dir in $ac_dummy; do |
| 8566 | IFS="$lt_save_ifs" |
| 8567 | test -z "$ac_dir" && ac_dir=. |
| 8568 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 8569 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 8570 | if test -n "$file_magic_test_file"; then |
| 8571 | case $deplibs_check_method in |
| 8572 | "file_magic "*) |
| 8573 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 8574 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8575 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 8576 | $EGREP "$file_magic_regex" > /dev/null; then |
| 8577 | : |
| 8578 | else |
| 8579 | cat <<_LT_EOF 1>&2 |
| 8580 | |
| 8581 | *** Warning: the command libtool uses to detect shared libraries, |
| 8582 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 8583 | *** The result is that libtool may fail to recognize shared libraries |
| 8584 | *** as such. This will affect the creation of libtool libraries that |
| 8585 | *** depend on shared libraries, but programs linked with such libtool |
| 8586 | *** libraries will work regardless of this problem. Nevertheless, you |
| 8587 | *** may want to report the problem to your system manager and/or to |
| 8588 | *** bug-libtool@gnu.org |
| 8589 | |
| 8590 | _LT_EOF |
| 8591 | fi ;; |
| 8592 | esac |
| 8593 | fi |
| 8594 | break |
| 8595 | fi |
| 8596 | done |
| 8597 | IFS="$lt_save_ifs" |
| 8598 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 8599 | ;; |
| 8600 | esac |
| 8601 | fi |
| 8602 | |
| 8603 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8604 | if test -n "$MAGIC_CMD"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 8605 | { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8606 | $as_echo "$MAGIC_CMD" >&6; } |
| 8607 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 8608 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8609 | $as_echo "no" >&6; } |
| 8610 | fi |
| 8611 | |
| 8612 | |
| 8613 | |
| 8614 | |
| 8615 | |
| 8616 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 8617 | if test -n "$ac_tool_prefix"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 8618 | { $as_echo "$as_me:$LINENO: checking for file" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8619 | $as_echo_n "checking for file... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 8620 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8621 | $as_echo_n "(cached) " >&6 |
| 8622 | else |
| 8623 | case $MAGIC_CMD in |
| 8624 | [\\/*] | ?:[\\/]*) |
| 8625 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 8626 | ;; |
| 8627 | *) |
| 8628 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 8629 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 8630 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 8631 | for ac_dir in $ac_dummy; do |
| 8632 | IFS="$lt_save_ifs" |
| 8633 | test -z "$ac_dir" && ac_dir=. |
| 8634 | if test -f $ac_dir/file; then |
| 8635 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 8636 | if test -n "$file_magic_test_file"; then |
| 8637 | case $deplibs_check_method in |
| 8638 | "file_magic "*) |
| 8639 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 8640 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8641 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 8642 | $EGREP "$file_magic_regex" > /dev/null; then |
| 8643 | : |
| 8644 | else |
| 8645 | cat <<_LT_EOF 1>&2 |
| 8646 | |
| 8647 | *** Warning: the command libtool uses to detect shared libraries, |
| 8648 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 8649 | *** The result is that libtool may fail to recognize shared libraries |
| 8650 | *** as such. This will affect the creation of libtool libraries that |
| 8651 | *** depend on shared libraries, but programs linked with such libtool |
| 8652 | *** libraries will work regardless of this problem. Nevertheless, you |
| 8653 | *** may want to report the problem to your system manager and/or to |
| 8654 | *** bug-libtool@gnu.org |
| 8655 | |
| 8656 | _LT_EOF |
| 8657 | fi ;; |
| 8658 | esac |
| 8659 | fi |
| 8660 | break |
| 8661 | fi |
| 8662 | done |
| 8663 | IFS="$lt_save_ifs" |
| 8664 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 8665 | ;; |
| 8666 | esac |
| 8667 | fi |
| 8668 | |
| 8669 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8670 | if test -n "$MAGIC_CMD"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 8671 | { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8672 | $as_echo "$MAGIC_CMD" >&6; } |
| 8673 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 8674 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8675 | $as_echo "no" >&6; } |
| 8676 | fi |
| 8677 | |
| 8678 | |
| 8679 | else |
| 8680 | MAGIC_CMD=: |
| 8681 | fi |
| 8682 | fi |
| 8683 | |
| 8684 | fi |
| 8685 | ;; |
| 8686 | esac |
| 8687 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 8688 | # Use C for the default configuration in the libtool script |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8689 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 8690 | lt_save_CC="$CC" |
| 8691 | ac_ext=c |
| 8692 | ac_cpp='$CPP $CPPFLAGS' |
| 8693 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8694 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8695 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8696 | |
| 8697 | |
| 8698 | # Source file extension for C test sources. |
| 8699 | ac_ext=c |
| 8700 | |
| 8701 | # Object file extension for compiled C test sources. |
| 8702 | objext=o |
| 8703 | objext=$objext |
| 8704 | |
| 8705 | # Code to be used in simple compile tests |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 8706 | lt_simple_compile_test_code="int some_variable = 0;" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 8707 | |
| 8708 | # Code to be used in simple link tests |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 8709 | lt_simple_link_test_code='int main(){return(0);}' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 8710 | |
| 8711 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8712 | |
| 8713 | |
| 8714 | |
| 8715 | |
| 8716 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 8717 | # If no C compiler was specified, use CC. |
| 8718 | LTCC=${LTCC-"$CC"} |
| 8719 | |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 8720 | # If no C compiler flags were specified, use CFLAGS. |
| 8721 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 8722 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 8723 | # Allow CC to be a program name with arguments. |
| 8724 | compiler=$CC |
| 8725 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8726 | # Save the default compiler, since it gets overwritten when the other |
| 8727 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
| 8728 | compiler_DEFAULT=$CC |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 8729 | |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 8730 | # save warnings/boilerplate of simple test code |
| 8731 | ac_outfile=conftest.$ac_objext |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 8732 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 8733 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 8734 | _lt_compiler_boilerplate=`cat conftest.err` |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8735 | $RM conftest* |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 8736 | |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 8737 | ac_outfile=conftest.$ac_objext |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 8738 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 8739 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 8740 | _lt_linker_boilerplate=`cat conftest.err` |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8741 | $RM -r conftest* |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 8742 | |
| 8743 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8744 | ## CAVEAT EMPTOR: |
| 8745 | ## There is no encapsulation within the following macros, do not change |
| 8746 | ## the running order or otherwise move them around unless you know exactly |
| 8747 | ## what you are doing... |
| 8748 | if test -n "$compiler"; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 8749 | |
| 8750 | lt_prog_compiler_no_builtin_flag= |
| 8751 | |
| 8752 | if test "$GCC" = yes; then |
| 8753 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 8754 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 8755 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 8756 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 8757 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 8758 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 8759 | else |
| 8760 | lt_cv_prog_compiler_rtti_exceptions=no |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8761 | ac_outfile=conftest.$ac_objext |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 8762 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 8763 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 8764 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8765 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8766 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8767 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8768 | # The option is referenced via a variable to avoid confusing sed. |
| 8769 | lt_compile=`echo "$ac_compile" | $SED \ |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 8770 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 8771 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8772 | -e 's:$: $lt_compiler_flag:'` |
Craig Silverstein | 357b3d9 | 2011-07-29 22:49:50 +0000 | [diff] [blame] | 8773 | (eval echo "\"\$as_me:8773: $lt_compile\"" >&5) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 8774 | (eval "$lt_compile" 2>conftest.err) |
| 8775 | ac_status=$? |
| 8776 | cat conftest.err >&5 |
Craig Silverstein | 357b3d9 | 2011-07-29 22:49:50 +0000 | [diff] [blame] | 8777 | echo "$as_me:8777: \$? = $ac_status" >&5 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 8778 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 8779 | # The compiler can only warn and ignore the option if not recognized |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 8780 | # So say no if there are warnings other than the usual output. |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8781 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 8782 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8783 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 8784 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 8785 | fi |
| 8786 | fi |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8787 | $RM conftest* |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 8788 | |
| 8789 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 8790 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 8791 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 8792 | |
| 8793 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 8794 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 8795 | else |
| 8796 | : |
| 8797 | fi |
| 8798 | |
| 8799 | fi |
| 8800 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8801 | |
| 8802 | |
| 8803 | |
| 8804 | |
| 8805 | |
| 8806 | lt_prog_compiler_wl= |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 8807 | lt_prog_compiler_pic= |
| 8808 | lt_prog_compiler_static= |
| 8809 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 8810 | { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 8811 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 8812 | |
| 8813 | if test "$GCC" = yes; then |
| 8814 | lt_prog_compiler_wl='-Wl,' |
| 8815 | lt_prog_compiler_static='-static' |
| 8816 | |
| 8817 | case $host_os in |
| 8818 | aix*) |
| 8819 | # All AIX code is PIC. |
| 8820 | if test "$host_cpu" = ia64; then |
| 8821 | # AIX 5 now supports IA64 processor |
| 8822 | lt_prog_compiler_static='-Bstatic' |
| 8823 | fi |
| 8824 | ;; |
| 8825 | |
| 8826 | amigaos*) |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8827 | case $host_cpu in |
| 8828 | powerpc) |
| 8829 | # see comment about AmigaOS4 .so support |
| 8830 | lt_prog_compiler_pic='-fPIC' |
| 8831 | ;; |
| 8832 | m68k) |
| 8833 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 8834 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 8835 | # like `-m68040'. |
| 8836 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 8837 | ;; |
| 8838 | esac |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 8839 | ;; |
| 8840 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 8841 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 8842 | # PIC is the default for these OSes. |
| 8843 | ;; |
| 8844 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8845 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 8846 | # This hack is so that the source file can tell whether it is being |
| 8847 | # built for inclusion in a dll (and should export symbols for example). |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 8848 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 8849 | # (--disable-auto-import) libraries |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 8850 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 8851 | ;; |
| 8852 | |
| 8853 | darwin* | rhapsody*) |
| 8854 | # PIC is the default on this platform |
| 8855 | # Common symbols not allowed in MH_DYLIB files |
| 8856 | lt_prog_compiler_pic='-fno-common' |
| 8857 | ;; |
| 8858 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8859 | hpux*) |
| 8860 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 8861 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 8862 | # sets the default TLS model and affects inlining. |
| 8863 | case $host_cpu in |
| 8864 | hppa*64*) |
| 8865 | # +Z the default |
| 8866 | ;; |
| 8867 | *) |
| 8868 | lt_prog_compiler_pic='-fPIC' |
| 8869 | ;; |
| 8870 | esac |
| 8871 | ;; |
| 8872 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 8873 | interix[3-9]*) |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 8874 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 8875 | # Instead, we relocate shared libraries at runtime. |
| 8876 | ;; |
| 8877 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 8878 | msdosdjgpp*) |
| 8879 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 8880 | # on systems that don't support them. |
| 8881 | lt_prog_compiler_can_build_shared=no |
| 8882 | enable_shared=no |
| 8883 | ;; |
| 8884 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8885 | *nto* | *qnx*) |
| 8886 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 8887 | # it will coredump. |
| 8888 | lt_prog_compiler_pic='-fPIC -shared' |
| 8889 | ;; |
| 8890 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 8891 | sysv4*MP*) |
| 8892 | if test -d /usr/nec; then |
| 8893 | lt_prog_compiler_pic=-Kconform_pic |
| 8894 | fi |
| 8895 | ;; |
| 8896 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 8897 | *) |
| 8898 | lt_prog_compiler_pic='-fPIC' |
| 8899 | ;; |
| 8900 | esac |
| 8901 | else |
| 8902 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 8903 | case $host_os in |
| 8904 | aix*) |
| 8905 | lt_prog_compiler_wl='-Wl,' |
| 8906 | if test "$host_cpu" = ia64; then |
| 8907 | # AIX 5 now supports IA64 processor |
| 8908 | lt_prog_compiler_static='-Bstatic' |
| 8909 | else |
| 8910 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 8911 | fi |
| 8912 | ;; |
| 8913 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8914 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 8915 | # This hack is so that the source file can tell whether it is being |
| 8916 | # built for inclusion in a dll (and should export symbols for example). |
| 8917 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 8918 | ;; |
| 8919 | |
| 8920 | hpux9* | hpux10* | hpux11*) |
| 8921 | lt_prog_compiler_wl='-Wl,' |
| 8922 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 8923 | # not for PA HP-UX. |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 8924 | case $host_cpu in |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 8925 | hppa*64*|ia64*) |
| 8926 | # +Z the default |
| 8927 | ;; |
| 8928 | *) |
| 8929 | lt_prog_compiler_pic='+Z' |
| 8930 | ;; |
| 8931 | esac |
| 8932 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 8933 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
| 8934 | ;; |
| 8935 | |
| 8936 | irix5* | irix6* | nonstopux*) |
| 8937 | lt_prog_compiler_wl='-Wl,' |
| 8938 | # PIC (with -KPIC) is the default. |
| 8939 | lt_prog_compiler_static='-non_shared' |
| 8940 | ;; |
| 8941 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8942 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 8943 | case $cc_basename in |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8944 | # old Intel for x86_64 which still supported -KPIC. |
| 8945 | ecc*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 8946 | lt_prog_compiler_wl='-Wl,' |
| 8947 | lt_prog_compiler_pic='-KPIC' |
| 8948 | lt_prog_compiler_static='-static' |
| 8949 | ;; |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8950 | # icc used to be incompatible with GCC. |
| 8951 | # ICC 10 doesn't accept -KPIC any more. |
| 8952 | icc* | ifort*) |
| 8953 | lt_prog_compiler_wl='-Wl,' |
| 8954 | lt_prog_compiler_pic='-fPIC' |
| 8955 | lt_prog_compiler_static='-static' |
| 8956 | ;; |
| 8957 | # Lahey Fortran 8.1. |
| 8958 | lf95*) |
| 8959 | lt_prog_compiler_wl='-Wl,' |
| 8960 | lt_prog_compiler_pic='--shared' |
| 8961 | lt_prog_compiler_static='--static' |
| 8962 | ;; |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 8963 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 8964 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 8965 | # which looks to be a dead project) |
| 8966 | lt_prog_compiler_wl='-Wl,' |
| 8967 | lt_prog_compiler_pic='-fpic' |
| 8968 | lt_prog_compiler_static='-Bstatic' |
| 8969 | ;; |
| 8970 | ccc*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 8971 | lt_prog_compiler_wl='-Wl,' |
| 8972 | # All Alpha code is PIC. |
| 8973 | lt_prog_compiler_static='-non_shared' |
| 8974 | ;; |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8975 | xl*) |
| 8976 | # IBM XL C 8.0/Fortran 10.1 on PPC |
| 8977 | lt_prog_compiler_wl='-Wl,' |
| 8978 | lt_prog_compiler_pic='-qpic' |
| 8979 | lt_prog_compiler_static='-qstaticlink' |
| 8980 | ;; |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 8981 | *) |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 8982 | case `$CC -V 2>&1 | sed 5q` in |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 8983 | *Sun\ C*) |
| 8984 | # Sun C 5.9 |
| 8985 | lt_prog_compiler_pic='-KPIC' |
| 8986 | lt_prog_compiler_static='-Bstatic' |
| 8987 | lt_prog_compiler_wl='-Wl,' |
| 8988 | ;; |
| 8989 | *Sun\ F*) |
| 8990 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 8991 | lt_prog_compiler_pic='-KPIC' |
| 8992 | lt_prog_compiler_static='-Bstatic' |
| 8993 | lt_prog_compiler_wl='' |
| 8994 | ;; |
| 8995 | esac |
| 8996 | ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 8997 | esac |
| 8998 | ;; |
| 8999 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9000 | newsos6) |
| 9001 | lt_prog_compiler_pic='-KPIC' |
| 9002 | lt_prog_compiler_static='-Bstatic' |
| 9003 | ;; |
| 9004 | |
| 9005 | *nto* | *qnx*) |
| 9006 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 9007 | # it will coredump. |
| 9008 | lt_prog_compiler_pic='-fPIC -shared' |
| 9009 | ;; |
| 9010 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9011 | osf3* | osf4* | osf5*) |
| 9012 | lt_prog_compiler_wl='-Wl,' |
| 9013 | # All OSF/1 code is PIC. |
| 9014 | lt_prog_compiler_static='-non_shared' |
| 9015 | ;; |
| 9016 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 9017 | rdos*) |
| 9018 | lt_prog_compiler_static='-non_shared' |
| 9019 | ;; |
| 9020 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9021 | solaris*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9022 | lt_prog_compiler_pic='-KPIC' |
| 9023 | lt_prog_compiler_static='-Bstatic' |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9024 | case $cc_basename in |
| 9025 | f77* | f90* | f95*) |
| 9026 | lt_prog_compiler_wl='-Qoption ld ';; |
| 9027 | *) |
| 9028 | lt_prog_compiler_wl='-Wl,';; |
| 9029 | esac |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9030 | ;; |
| 9031 | |
| 9032 | sunos4*) |
| 9033 | lt_prog_compiler_wl='-Qoption ld ' |
| 9034 | lt_prog_compiler_pic='-PIC' |
| 9035 | lt_prog_compiler_static='-Bstatic' |
| 9036 | ;; |
| 9037 | |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9038 | sysv4 | sysv4.2uw2* | sysv4.3*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9039 | lt_prog_compiler_wl='-Wl,' |
| 9040 | lt_prog_compiler_pic='-KPIC' |
| 9041 | lt_prog_compiler_static='-Bstatic' |
| 9042 | ;; |
| 9043 | |
| 9044 | sysv4*MP*) |
| 9045 | if test -d /usr/nec ;then |
| 9046 | lt_prog_compiler_pic='-Kconform_pic' |
| 9047 | lt_prog_compiler_static='-Bstatic' |
| 9048 | fi |
| 9049 | ;; |
| 9050 | |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9051 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 9052 | lt_prog_compiler_wl='-Wl,' |
| 9053 | lt_prog_compiler_pic='-KPIC' |
| 9054 | lt_prog_compiler_static='-Bstatic' |
| 9055 | ;; |
| 9056 | |
| 9057 | unicos*) |
| 9058 | lt_prog_compiler_wl='-Wl,' |
| 9059 | lt_prog_compiler_can_build_shared=no |
| 9060 | ;; |
| 9061 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9062 | uts4*) |
| 9063 | lt_prog_compiler_pic='-pic' |
| 9064 | lt_prog_compiler_static='-Bstatic' |
| 9065 | ;; |
| 9066 | |
| 9067 | *) |
| 9068 | lt_prog_compiler_can_build_shared=no |
| 9069 | ;; |
| 9070 | esac |
| 9071 | fi |
| 9072 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9073 | case $host_os in |
| 9074 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 9075 | *djgpp*) |
| 9076 | lt_prog_compiler_pic= |
| 9077 | ;; |
| 9078 | *) |
| 9079 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 9080 | ;; |
| 9081 | esac |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 9082 | { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 9083 | $as_echo "$lt_prog_compiler_pic" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9084 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9085 | |
| 9086 | |
| 9087 | |
| 9088 | |
| 9089 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9090 | # |
| 9091 | # Check to make sure the PIC flag actually works. |
| 9092 | # |
| 9093 | if test -n "$lt_prog_compiler_pic"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 9094 | { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 9095 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 9096 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 9097 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9098 | else |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 9099 | lt_cv_prog_compiler_pic_works=no |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9100 | ac_outfile=conftest.$ac_objext |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 9101 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9102 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 9103 | # Insert the option either (1) after the last *FLAGS variable, or |
| 9104 | # (2) before a word containing "conftest.", or (3) at the end. |
| 9105 | # Note that $ac_compile itself does not contain backslashes and begins |
| 9106 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 9107 | # The option is referenced via a variable to avoid confusing sed. |
| 9108 | lt_compile=`echo "$ac_compile" | $SED \ |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9109 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9110 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 9111 | -e 's:$: $lt_compiler_flag:'` |
Craig Silverstein | 357b3d9 | 2011-07-29 22:49:50 +0000 | [diff] [blame] | 9112 | (eval echo "\"\$as_me:9112: $lt_compile\"" >&5) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9113 | (eval "$lt_compile" 2>conftest.err) |
| 9114 | ac_status=$? |
| 9115 | cat conftest.err >&5 |
Craig Silverstein | 357b3d9 | 2011-07-29 22:49:50 +0000 | [diff] [blame] | 9116 | echo "$as_me:9116: \$? = $ac_status" >&5 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9117 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 9118 | # The compiler can only warn and ignore the option if not recognized |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9119 | # So say no if there are warnings other than the usual output. |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9120 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9121 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 9122 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 9123 | lt_cv_prog_compiler_pic_works=yes |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9124 | fi |
| 9125 | fi |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9126 | $RM conftest* |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9127 | |
| 9128 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 9129 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 9130 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9131 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 9132 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9133 | case $lt_prog_compiler_pic in |
| 9134 | "" | " "*) ;; |
| 9135 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 9136 | esac |
| 9137 | else |
| 9138 | lt_prog_compiler_pic= |
| 9139 | lt_prog_compiler_can_build_shared=no |
| 9140 | fi |
| 9141 | |
| 9142 | fi |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9143 | |
| 9144 | |
| 9145 | |
| 9146 | |
| 9147 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9148 | |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9149 | # |
| 9150 | # Check to make sure the static flag actually works. |
| 9151 | # |
| 9152 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 9153 | { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 9154 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 9155 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 9156 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9157 | else |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 9158 | lt_cv_prog_compiler_static_works=no |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9159 | save_LDFLAGS="$LDFLAGS" |
| 9160 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 9161 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9162 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 9163 | # The linker can only warn and ignore the option if not recognized |
| 9164 | # So say no if there are warnings |
| 9165 | if test -s conftest.err; then |
| 9166 | # Append any errors to the config.log. |
| 9167 | cat conftest.err 1>&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9168 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9169 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 9170 | if diff conftest.exp conftest.er2 >/dev/null; then |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 9171 | lt_cv_prog_compiler_static_works=yes |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9172 | fi |
| 9173 | else |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 9174 | lt_cv_prog_compiler_static_works=yes |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9175 | fi |
| 9176 | fi |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9177 | $RM -r conftest* |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9178 | LDFLAGS="$save_LDFLAGS" |
| 9179 | |
| 9180 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 9181 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 9182 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9183 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 9184 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9185 | : |
| 9186 | else |
| 9187 | lt_prog_compiler_static= |
| 9188 | fi |
| 9189 | |
| 9190 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9191 | |
| 9192 | |
| 9193 | |
| 9194 | |
| 9195 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 9196 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 9197 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 9198 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 9199 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9200 | else |
| 9201 | lt_cv_prog_compiler_c_o=no |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9202 | $RM -r conftest 2>/dev/null |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9203 | mkdir conftest |
| 9204 | cd conftest |
| 9205 | mkdir out |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 9206 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9207 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9208 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 9209 | # Insert the option either (1) after the last *FLAGS variable, or |
| 9210 | # (2) before a word containing "conftest.", or (3) at the end. |
| 9211 | # Note that $ac_compile itself does not contain backslashes and begins |
| 9212 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 9213 | lt_compile=`echo "$ac_compile" | $SED \ |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9214 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9215 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 9216 | -e 's:$: $lt_compiler_flag:'` |
Craig Silverstein | 357b3d9 | 2011-07-29 22:49:50 +0000 | [diff] [blame] | 9217 | (eval echo "\"\$as_me:9217: $lt_compile\"" >&5) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9218 | (eval "$lt_compile" 2>out/conftest.err) |
| 9219 | ac_status=$? |
| 9220 | cat out/conftest.err >&5 |
Craig Silverstein | 357b3d9 | 2011-07-29 22:49:50 +0000 | [diff] [blame] | 9221 | echo "$as_me:9221: \$? = $ac_status" >&5 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9222 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 9223 | then |
| 9224 | # The compiler can only warn and ignore the option if not recognized |
| 9225 | # So say no if there are warnings |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9226 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9227 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 9228 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9229 | lt_cv_prog_compiler_c_o=yes |
| 9230 | fi |
| 9231 | fi |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9232 | chmod u+w . 2>&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9233 | $RM conftest* |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9234 | # SGI C++ compiler will create directory out/ii_files/ for |
| 9235 | # template instantiation |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9236 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 9237 | $RM out/* && rmdir out |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9238 | cd .. |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9239 | $RM -r conftest |
| 9240 | $RM conftest* |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9241 | |
| 9242 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 9243 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 9244 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9245 | |
| 9246 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9247 | |
| 9248 | |
| 9249 | |
| 9250 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 9251 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9252 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 9253 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9254 | $as_echo_n "(cached) " >&6 |
| 9255 | else |
| 9256 | lt_cv_prog_compiler_c_o=no |
| 9257 | $RM -r conftest 2>/dev/null |
| 9258 | mkdir conftest |
| 9259 | cd conftest |
| 9260 | mkdir out |
| 9261 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 9262 | |
| 9263 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 9264 | # Insert the option either (1) after the last *FLAGS variable, or |
| 9265 | # (2) before a word containing "conftest.", or (3) at the end. |
| 9266 | # Note that $ac_compile itself does not contain backslashes and begins |
| 9267 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 9268 | lt_compile=`echo "$ac_compile" | $SED \ |
| 9269 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 9270 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 9271 | -e 's:$: $lt_compiler_flag:'` |
Craig Silverstein | 357b3d9 | 2011-07-29 22:49:50 +0000 | [diff] [blame] | 9272 | (eval echo "\"\$as_me:9272: $lt_compile\"" >&5) |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9273 | (eval "$lt_compile" 2>out/conftest.err) |
| 9274 | ac_status=$? |
| 9275 | cat out/conftest.err >&5 |
Craig Silverstein | 357b3d9 | 2011-07-29 22:49:50 +0000 | [diff] [blame] | 9276 | echo "$as_me:9276: \$? = $ac_status" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9277 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 9278 | then |
| 9279 | # The compiler can only warn and ignore the option if not recognized |
| 9280 | # So say no if there are warnings |
| 9281 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 9282 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 9283 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 9284 | lt_cv_prog_compiler_c_o=yes |
| 9285 | fi |
| 9286 | fi |
| 9287 | chmod u+w . 2>&5 |
| 9288 | $RM conftest* |
| 9289 | # SGI C++ compiler will create directory out/ii_files/ for |
| 9290 | # template instantiation |
| 9291 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 9292 | $RM out/* && rmdir out |
| 9293 | cd .. |
| 9294 | $RM -r conftest |
| 9295 | $RM conftest* |
| 9296 | |
| 9297 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 9298 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9299 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 9300 | |
| 9301 | |
| 9302 | |
| 9303 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9304 | hard_links="nottested" |
| 9305 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
| 9306 | # do not overwrite the value of need_locks provided by the user |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 9307 | { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 9308 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9309 | hard_links=yes |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9310 | $RM conftest* |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9311 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 9312 | touch conftest.a |
| 9313 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 9314 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 9315 | { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 9316 | $as_echo "$hard_links" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9317 | if test "$hard_links" = no; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 9318 | { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 9319 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9320 | need_locks=warn |
| 9321 | fi |
| 9322 | else |
| 9323 | need_locks=no |
| 9324 | fi |
| 9325 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9326 | |
| 9327 | |
| 9328 | |
| 9329 | |
| 9330 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 9331 | { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 9332 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9333 | |
| 9334 | runpath_var= |
| 9335 | allow_undefined_flag= |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9336 | always_export_symbols=no |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9337 | archive_cmds= |
| 9338 | archive_expsym_cmds= |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9339 | compiler_needs_object=no |
| 9340 | enable_shared_with_static_runtimes=no |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9341 | export_dynamic_flag_spec= |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9342 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 9343 | hardcode_automatic=no |
| 9344 | hardcode_direct=no |
| 9345 | hardcode_direct_absolute=no |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9346 | hardcode_libdir_flag_spec= |
| 9347 | hardcode_libdir_flag_spec_ld= |
| 9348 | hardcode_libdir_separator= |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9349 | hardcode_minus_L=no |
| 9350 | hardcode_shlibpath_var=unsupported |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9351 | inherit_rpath=no |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9352 | link_all_deplibs=unknown |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9353 | module_cmds= |
| 9354 | module_expsym_cmds= |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9355 | old_archive_from_new_cmds= |
| 9356 | old_archive_from_expsyms_cmds= |
| 9357 | thread_safe_flag_spec= |
| 9358 | whole_archive_flag_spec= |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9359 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 9360 | # included in the symbol list |
| 9361 | include_expsyms= |
| 9362 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 9363 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 9364 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 9365 | # as well as any symbol that contains `d'. |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 9366 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9367 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 9368 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 9369 | # the symbol is explicitly referenced. Since portable code cannot |
| 9370 | # rely on this symbol name, it's probably fine to never include it in |
| 9371 | # preloaded symbol tables. |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 9372 | # Exclude shared library initialization/finalization symbols. |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9373 | extract_expsyms_cmds= |
| 9374 | |
| 9375 | case $host_os in |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9376 | cygwin* | mingw* | pw32* | cegcc*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9377 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 9378 | # When not using gcc, we currently assume that we are using |
| 9379 | # Microsoft Visual C++. |
| 9380 | if test "$GCC" != yes; then |
| 9381 | with_gnu_ld=no |
| 9382 | fi |
| 9383 | ;; |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9384 | interix*) |
| 9385 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 9386 | with_gnu_ld=yes |
| 9387 | ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9388 | openbsd*) |
| 9389 | with_gnu_ld=no |
| 9390 | ;; |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9391 | linux* | k*bsd*-gnu) |
| 9392 | link_all_deplibs=no |
| 9393 | ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9394 | esac |
| 9395 | |
| 9396 | ld_shlibs=yes |
| 9397 | if test "$with_gnu_ld" = yes; then |
| 9398 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 9399 | wlarc='${wl}' |
| 9400 | |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9401 | # Set some defaults for GNU ld with shared library support. These |
| 9402 | # are reset later if shared libraries are not supported. Putting them |
| 9403 | # here allows them to be overridden if necessary. |
| 9404 | runpath_var=LD_RUN_PATH |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9405 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9406 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 9407 | # ancient GNU ld didn't support --whole-archive et. al. |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9408 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 9409 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 9410 | else |
| 9411 | whole_archive_flag_spec= |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9412 | fi |
| 9413 | supports_anon_versioning=no |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9414 | case `$LD -v 2>&1` in |
| 9415 | *GNU\ gold*) supports_anon_versioning=yes ;; |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9416 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 9417 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 9418 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 9419 | *\ 2.11.*) ;; # other 2.11 versions |
| 9420 | *) supports_anon_versioning=yes ;; |
| 9421 | esac |
| 9422 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9423 | # See if GNU ld supports shared libraries. |
| 9424 | case $host_os in |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 9425 | aix[3-9]*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9426 | # On AIX/PPC, the GNU linker is very broken |
| 9427 | if test "$host_cpu" != ia64; then |
| 9428 | ld_shlibs=no |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9429 | cat <<_LT_EOF 1>&2 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9430 | |
| 9431 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 9432 | *** to be unable to reliably create shared libraries on AIX. |
| 9433 | *** Therefore, libtool is disabling shared libraries support. If you |
| 9434 | *** really care for shared libraries, you may want to modify your PATH |
| 9435 | *** so that a non-GNU linker is found, and then restart. |
| 9436 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9437 | _LT_EOF |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9438 | fi |
| 9439 | ;; |
| 9440 | |
| 9441 | amigaos*) |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9442 | case $host_cpu in |
| 9443 | powerpc) |
| 9444 | # see comment about AmigaOS4 .so support |
| 9445 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9446 | archive_expsym_cmds='' |
| 9447 | ;; |
| 9448 | m68k) |
| 9449 | 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)' |
| 9450 | hardcode_libdir_flag_spec='-L$libdir' |
| 9451 | hardcode_minus_L=yes |
| 9452 | ;; |
| 9453 | esac |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9454 | ;; |
| 9455 | |
| 9456 | beos*) |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9457 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9458 | allow_undefined_flag=unsupported |
| 9459 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 9460 | # support --undefined. This deserves some investigation. FIXME |
| 9461 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9462 | else |
| 9463 | ld_shlibs=no |
| 9464 | fi |
| 9465 | ;; |
| 9466 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9467 | cygwin* | mingw* | pw32* | cegcc*) |
| 9468 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9469 | # as there is no search path for DLLs. |
| 9470 | hardcode_libdir_flag_spec='-L$libdir' |
| 9471 | allow_undefined_flag=unsupported |
| 9472 | always_export_symbols=no |
| 9473 | enable_shared_with_static_runtimes=yes |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9474 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9475 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9476 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9477 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9478 | # If the export-symbols file already is a .def file (1st line |
| 9479 | # is EXPORTS), use it as is; otherwise, prepend... |
| 9480 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 9481 | cp $export_symbols $output_objdir/$soname.def; |
| 9482 | else |
| 9483 | echo EXPORTS > $output_objdir/$soname.def; |
| 9484 | cat $export_symbols >> $output_objdir/$soname.def; |
| 9485 | fi~ |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9486 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9487 | else |
| 9488 | ld_shlibs=no |
| 9489 | fi |
| 9490 | ;; |
| 9491 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 9492 | interix[3-9]*) |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9493 | hardcode_direct=no |
| 9494 | hardcode_shlibpath_var=no |
| 9495 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 9496 | export_dynamic_flag_spec='${wl}-E' |
| 9497 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 9498 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 9499 | # default) and relocated if they conflict, which is a slow very memory |
| 9500 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 9501 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 9502 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 9503 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 9504 | 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' |
| 9505 | ;; |
| 9506 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9507 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
| 9508 | tmp_diet=no |
| 9509 | if test "$host_os" = linux-dietlibc; then |
| 9510 | case $cc_basename in |
| 9511 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
| 9512 | esac |
| 9513 | fi |
| 9514 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 9515 | && test "$tmp_diet" = no |
| 9516 | then |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9517 | tmp_addflag= |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9518 | tmp_sharedflag='-shared' |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9519 | case $cc_basename,$host_cpu in |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9520 | pgcc*) # Portland Group C compiler |
| 9521 | 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' |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9522 | tmp_addflag=' $pic_flag' |
| 9523 | ;; |
| 9524 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9525 | 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' |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9526 | tmp_addflag=' $pic_flag -Mnomain' ;; |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9527 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9528 | tmp_addflag=' -i_dynamic' ;; |
| 9529 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 9530 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 9531 | ifc* | ifort*) # Intel Fortran compiler |
| 9532 | tmp_addflag=' -nofor_main' ;; |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9533 | lf95*) # Lahey Fortran 8.1 |
| 9534 | whole_archive_flag_spec= |
| 9535 | tmp_sharedflag='--shared' ;; |
| 9536 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
| 9537 | tmp_sharedflag='-qmkshrobj' |
| 9538 | tmp_addflag= ;; |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9539 | esac |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 9540 | case `$CC -V 2>&1 | sed 5q` in |
| 9541 | *Sun\ C*) # Sun C 5.9 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9542 | 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' |
| 9543 | compiler_needs_object=yes |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 9544 | tmp_sharedflag='-G' ;; |
| 9545 | *Sun\ F*) # Sun Fortran 8.3 |
| 9546 | tmp_sharedflag='-G' ;; |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 9547 | esac |
| 9548 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9549 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9550 | if test "x$supports_anon_versioning" = xyes; then |
| 9551 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 9552 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 9553 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 9554 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 9555 | fi |
| 9556 | |
| 9557 | case $cc_basename in |
| 9558 | xlf*) |
| 9559 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 9560 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
| 9561 | hardcode_libdir_flag_spec= |
| 9562 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 9563 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' |
| 9564 | if test "x$supports_anon_versioning" = xyes; then |
| 9565 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 9566 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 9567 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 9568 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
| 9569 | fi |
| 9570 | ;; |
| 9571 | esac |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9572 | else |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9573 | ld_shlibs=no |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9574 | fi |
| 9575 | ;; |
| 9576 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 9577 | netbsd* | netbsdelf*-gnu) |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9578 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9579 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 9580 | wlarc= |
| 9581 | else |
| 9582 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9583 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9584 | fi |
| 9585 | ;; |
| 9586 | |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9587 | solaris*) |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9588 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9589 | ld_shlibs=no |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9590 | cat <<_LT_EOF 1>&2 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9591 | |
| 9592 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 9593 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 9594 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 9595 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 9596 | *** your PATH or compiler configuration so that the native linker is |
| 9597 | *** used, and then restart. |
| 9598 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9599 | _LT_EOF |
| 9600 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9601 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9602 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9603 | else |
| 9604 | ld_shlibs=no |
| 9605 | fi |
| 9606 | ;; |
| 9607 | |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9608 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 9609 | case `$LD -v 2>&1` in |
| 9610 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 9611 | ld_shlibs=no |
| 9612 | cat <<_LT_EOF 1>&2 |
| 9613 | |
| 9614 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 9615 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 9616 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 9617 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 9618 | *** your PATH or compiler configuration so that the native linker is |
| 9619 | *** used, and then restart. |
| 9620 | |
| 9621 | _LT_EOF |
| 9622 | ;; |
| 9623 | *) |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9624 | # For security reasons, it is highly recommended that you always |
| 9625 | # use absolute paths for naming shared libraries, and exclude the |
| 9626 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 9627 | # requires that you compile everything twice, which is a pain. |
| 9628 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 9629 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9630 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9631 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9632 | else |
| 9633 | ld_shlibs=no |
| 9634 | fi |
| 9635 | ;; |
| 9636 | esac |
| 9637 | ;; |
| 9638 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9639 | sunos4*) |
| 9640 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 9641 | wlarc= |
| 9642 | hardcode_direct=yes |
| 9643 | hardcode_shlibpath_var=no |
| 9644 | ;; |
| 9645 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9646 | *) |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9647 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9648 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9649 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9650 | else |
| 9651 | ld_shlibs=no |
| 9652 | fi |
| 9653 | ;; |
| 9654 | esac |
| 9655 | |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9656 | if test "$ld_shlibs" = no; then |
| 9657 | runpath_var= |
| 9658 | hardcode_libdir_flag_spec= |
| 9659 | export_dynamic_flag_spec= |
| 9660 | whole_archive_flag_spec= |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9661 | fi |
| 9662 | else |
| 9663 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 9664 | case $host_os in |
| 9665 | aix3*) |
| 9666 | allow_undefined_flag=unsupported |
| 9667 | always_export_symbols=yes |
| 9668 | 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' |
| 9669 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 9670 | # are no directories specified by -L. |
| 9671 | hardcode_minus_L=yes |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9672 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9673 | # Neither direct hardcoding nor static linking is supported with a |
| 9674 | # broken collect2. |
| 9675 | hardcode_direct=unsupported |
| 9676 | fi |
| 9677 | ;; |
| 9678 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 9679 | aix[4-9]*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9680 | if test "$host_cpu" = ia64; then |
| 9681 | # On IA64, the linker does run time linking by default, so we don't |
| 9682 | # have to do anything special. |
| 9683 | aix_use_runtimelinking=no |
| 9684 | exp_sym_flag='-Bexport' |
| 9685 | no_entry_flag="" |
| 9686 | else |
| 9687 | # If we're using GNU nm, then we don't want the "-C" option. |
| 9688 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9689 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 9690 | 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' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9691 | else |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9692 | 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' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9693 | fi |
| 9694 | aix_use_runtimelinking=no |
| 9695 | |
| 9696 | # Test if we are trying to use run time linking or normal |
| 9697 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 9698 | # need to do runtime linking. |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 9699 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9700 | for ld_flag in $LDFLAGS; do |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9701 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 9702 | aix_use_runtimelinking=yes |
| 9703 | break |
| 9704 | fi |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9705 | done |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9706 | ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9707 | esac |
| 9708 | |
| 9709 | exp_sym_flag='-bexport' |
| 9710 | no_entry_flag='-bnoentry' |
| 9711 | fi |
| 9712 | |
| 9713 | # When large executables or shared objects are built, AIX ld can |
| 9714 | # have problems creating the table of contents. If linking a library |
| 9715 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 9716 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 9717 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 9718 | |
| 9719 | archive_cmds='' |
| 9720 | hardcode_direct=yes |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9721 | hardcode_direct_absolute=yes |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9722 | hardcode_libdir_separator=':' |
| 9723 | link_all_deplibs=yes |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9724 | file_list_spec='${wl}-f,' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9725 | |
| 9726 | if test "$GCC" = yes; then |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9727 | case $host_os in aix4.[012]|aix4.[012].*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9728 | # We only want to do this on AIX 4.2 and lower, the check |
| 9729 | # below for broken collect2 doesn't work under 4.3+ |
| 9730 | collect2name=`${CC} -print-prog-name=collect2` |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9731 | if test -f "$collect2name" && |
| 9732 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9733 | then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9734 | # We have reworked collect2 |
| 9735 | : |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9736 | else |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9737 | # We have old collect2 |
| 9738 | hardcode_direct=unsupported |
| 9739 | # It fails to find uninstalled libraries when the uninstalled |
| 9740 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 9741 | # to unsupported forces relinking |
| 9742 | hardcode_minus_L=yes |
| 9743 | hardcode_libdir_flag_spec='-L$libdir' |
| 9744 | hardcode_libdir_separator= |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9745 | fi |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9746 | ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9747 | esac |
| 9748 | shared_flag='-shared' |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9749 | if test "$aix_use_runtimelinking" = yes; then |
| 9750 | shared_flag="$shared_flag "'${wl}-G' |
| 9751 | fi |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9752 | link_all_deplibs=no |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9753 | else |
| 9754 | # not using gcc |
| 9755 | if test "$host_cpu" = ia64; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9756 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 9757 | # chokes on -Wl,-G. The following line is correct: |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9758 | shared_flag='-G' |
| 9759 | else |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9760 | if test "$aix_use_runtimelinking" = yes; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9761 | shared_flag='${wl}-G' |
| 9762 | else |
| 9763 | shared_flag='${wl}-bM:SRE' |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9764 | fi |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9765 | fi |
| 9766 | fi |
| 9767 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9768 | export_dynamic_flag_spec='${wl}-bexpall' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9769 | # It seems that -bexpall does not export symbols beginning with |
| 9770 | # underscore (_), so it is better to generate a list of symbols to export. |
| 9771 | always_export_symbols=yes |
| 9772 | if test "$aix_use_runtimelinking" = yes; then |
| 9773 | # Warning - without using the other runtime loading flags (-brtl), |
| 9774 | # -berok will link without error, but may produce a broken library. |
| 9775 | allow_undefined_flag='-berok' |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9776 | # Determine the default libpath from the value encoded in an |
| 9777 | # empty executable. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 9778 | cat >conftest.$ac_ext <<_ACEOF |
| 9779 | /* confdefs.h. */ |
| 9780 | _ACEOF |
| 9781 | cat confdefs.h >>conftest.$ac_ext |
| 9782 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9783 | /* end confdefs.h. */ |
| 9784 | |
| 9785 | int |
| 9786 | main () |
| 9787 | { |
| 9788 | |
| 9789 | ; |
| 9790 | return 0; |
| 9791 | } |
| 9792 | _ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 9793 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9794 | if { (ac_try="$ac_link" |
| 9795 | case "(($ac_try" in |
| 9796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9797 | *) ac_try_echo=$ac_try;; |
| 9798 | esac |
| 9799 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9800 | $as_echo "$ac_try_echo") >&5 |
| 9801 | (eval "$ac_link") 2>conftest.er1 |
| 9802 | ac_status=$? |
| 9803 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9804 | rm -f conftest.er1 |
| 9805 | cat conftest.err >&5 |
| 9806 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9807 | (exit $ac_status); } && { |
| 9808 | test -z "$ac_c_werror_flag" || |
| 9809 | test ! -s conftest.err |
| 9810 | } && test -s conftest$ac_exeext && { |
| 9811 | test "$cross_compiling" = yes || |
| 9812 | $as_test_x conftest$ac_exeext |
| 9813 | }; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9814 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 9815 | lt_aix_libpath_sed=' |
| 9816 | /Import File Strings/,/^$/ { |
| 9817 | /^0/ { |
| 9818 | s/^0 *\(.*\)$/\1/ |
| 9819 | p |
| 9820 | } |
| 9821 | }' |
| 9822 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9823 | # Check for a 64-bit object if we didn't find anything. |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 9824 | if test -z "$aix_libpath"; then |
| 9825 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9826 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 9827 | else |
| 9828 | $as_echo "$as_me: failed program was:" >&5 |
| 9829 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9830 | |
| 9831 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9832 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 9833 | |
| 9834 | rm -rf conftest.dSYM |
| 9835 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 9836 | conftest$ac_exeext conftest.$ac_ext |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9837 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 9838 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9839 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9840 | 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" |
| 9841 | else |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9842 | if test "$host_cpu" = ia64; then |
| 9843 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 9844 | allow_undefined_flag="-z nodefs" |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9845 | 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" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9846 | else |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9847 | # Determine the default libpath from the value encoded in an |
| 9848 | # empty executable. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 9849 | cat >conftest.$ac_ext <<_ACEOF |
| 9850 | /* confdefs.h. */ |
| 9851 | _ACEOF |
| 9852 | cat confdefs.h >>conftest.$ac_ext |
| 9853 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9854 | /* end confdefs.h. */ |
| 9855 | |
| 9856 | int |
| 9857 | main () |
| 9858 | { |
| 9859 | |
| 9860 | ; |
| 9861 | return 0; |
| 9862 | } |
| 9863 | _ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 9864 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9865 | if { (ac_try="$ac_link" |
| 9866 | case "(($ac_try" in |
| 9867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9868 | *) ac_try_echo=$ac_try;; |
| 9869 | esac |
| 9870 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9871 | $as_echo "$ac_try_echo") >&5 |
| 9872 | (eval "$ac_link") 2>conftest.er1 |
| 9873 | ac_status=$? |
| 9874 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9875 | rm -f conftest.er1 |
| 9876 | cat conftest.err >&5 |
| 9877 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9878 | (exit $ac_status); } && { |
| 9879 | test -z "$ac_c_werror_flag" || |
| 9880 | test ! -s conftest.err |
| 9881 | } && test -s conftest$ac_exeext && { |
| 9882 | test "$cross_compiling" = yes || |
| 9883 | $as_test_x conftest$ac_exeext |
| 9884 | }; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9885 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 9886 | lt_aix_libpath_sed=' |
| 9887 | /Import File Strings/,/^$/ { |
| 9888 | /^0/ { |
| 9889 | s/^0 *\(.*\)$/\1/ |
| 9890 | p |
| 9891 | } |
| 9892 | }' |
| 9893 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9894 | # Check for a 64-bit object if we didn't find anything. |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 9895 | if test -z "$aix_libpath"; then |
| 9896 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9897 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 9898 | else |
| 9899 | $as_echo "$as_me: failed program was:" >&5 |
| 9900 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9901 | |
| 9902 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9903 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 9904 | |
| 9905 | rm -rf conftest.dSYM |
| 9906 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 9907 | conftest$ac_exeext conftest.$ac_ext |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9908 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 9909 | |
| 9910 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9911 | # Warning - without using the other run time loading flags, |
| 9912 | # -berok will link without error, but may produce a broken library. |
| 9913 | no_undefined_flag=' ${wl}-bernotok' |
| 9914 | allow_undefined_flag=' ${wl}-berok' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9915 | # Exported symbols can be pulled into shared objects from archives |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9916 | whole_archive_flag_spec='$convenience' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9917 | archive_cmds_need_lc=yes |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9918 | # This is similar to how AIX traditionally builds its shared libraries. |
| 9919 | 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' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9920 | fi |
| 9921 | fi |
| 9922 | ;; |
| 9923 | |
| 9924 | amigaos*) |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9925 | case $host_cpu in |
| 9926 | powerpc) |
| 9927 | # see comment about AmigaOS4 .so support |
| 9928 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9929 | archive_expsym_cmds='' |
| 9930 | ;; |
| 9931 | m68k) |
| 9932 | 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)' |
| 9933 | hardcode_libdir_flag_spec='-L$libdir' |
| 9934 | hardcode_minus_L=yes |
| 9935 | ;; |
| 9936 | esac |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9937 | ;; |
| 9938 | |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9939 | bsdi[45]*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9940 | export_dynamic_flag_spec=-rdynamic |
| 9941 | ;; |
| 9942 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9943 | cygwin* | mingw* | pw32* | cegcc*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9944 | # When not using gcc, we currently assume that we are using |
| 9945 | # Microsoft Visual C++. |
| 9946 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 9947 | # no search path for DLLs. |
| 9948 | hardcode_libdir_flag_spec=' ' |
| 9949 | allow_undefined_flag=unsupported |
| 9950 | # Tell ltmain to make .lib files, not .a files. |
| 9951 | libext=lib |
| 9952 | # Tell ltmain to make .dll files, not .so files. |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 9953 | shrext_cmds=".dll" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9954 | # FIXME: Setting linknames here is a bad hack. |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9955 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9956 | # The linker will automatically build a .lib file if we build a DLL. |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9957 | old_archive_from_new_cmds='true' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9958 | # FIXME: Should let the user specify the lib program. |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 9959 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9960 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 9961 | enable_shared_with_static_runtimes=yes |
| 9962 | ;; |
| 9963 | |
| 9964 | darwin* | rhapsody*) |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 9965 | |
| 9966 | |
| 9967 | archive_cmds_need_lc=no |
| 9968 | hardcode_direct=no |
| 9969 | hardcode_automatic=yes |
| 9970 | hardcode_shlibpath_var=unsupported |
| 9971 | whole_archive_flag_spec='' |
| 9972 | link_all_deplibs=yes |
| 9973 | allow_undefined_flag="$_lt_dar_allow_undefined" |
| 9974 | case $cc_basename in |
| 9975 | ifort*) _lt_dar_can_shared=yes ;; |
| 9976 | *) _lt_dar_can_shared=$GCC ;; |
| 9977 | esac |
| 9978 | if test "$_lt_dar_can_shared" = "yes"; then |
| 9979 | output_verbose_link_cmd=echo |
| 9980 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
| 9981 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 9982 | 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}" |
| 9983 | 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}" |
| 9984 | |
| 9985 | else |
| 9986 | ld_shlibs=no |
| 9987 | fi |
| 9988 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 9989 | ;; |
| 9990 | |
| 9991 | dgux*) |
| 9992 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9993 | hardcode_libdir_flag_spec='-L$libdir' |
| 9994 | hardcode_shlibpath_var=no |
| 9995 | ;; |
| 9996 | |
| 9997 | freebsd1*) |
| 9998 | ld_shlibs=no |
| 9999 | ;; |
| 10000 | |
| 10001 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 10002 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 10003 | # does not break anything, and helps significantly (at the cost of a little |
| 10004 | # extra space). |
| 10005 | freebsd2.2*) |
| 10006 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 10007 | hardcode_libdir_flag_spec='-R$libdir' |
| 10008 | hardcode_direct=yes |
| 10009 | hardcode_shlibpath_var=no |
| 10010 | ;; |
| 10011 | |
| 10012 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 10013 | freebsd2*) |
| 10014 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 10015 | hardcode_direct=yes |
| 10016 | hardcode_minus_L=yes |
| 10017 | hardcode_shlibpath_var=no |
| 10018 | ;; |
| 10019 | |
| 10020 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 10021 | freebsd* | dragonfly*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10022 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 10023 | hardcode_libdir_flag_spec='-R$libdir' |
| 10024 | hardcode_direct=yes |
| 10025 | hardcode_shlibpath_var=no |
| 10026 | ;; |
| 10027 | |
| 10028 | hpux9*) |
| 10029 | if test "$GCC" = yes; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10030 | archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10031 | else |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10032 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10033 | fi |
| 10034 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 10035 | hardcode_libdir_separator=: |
| 10036 | hardcode_direct=yes |
| 10037 | |
| 10038 | # hardcode_minus_L: Not really in the search PATH, |
| 10039 | # but as the default location of the library. |
| 10040 | hardcode_minus_L=yes |
| 10041 | export_dynamic_flag_spec='${wl}-E' |
| 10042 | ;; |
| 10043 | |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 10044 | hpux10*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10045 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 10046 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 10047 | else |
| 10048 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 10049 | fi |
| 10050 | if test "$with_gnu_ld" = no; then |
| 10051 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10052 | hardcode_libdir_flag_spec_ld='+b $libdir' |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 10053 | hardcode_libdir_separator=: |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 10054 | hardcode_direct=yes |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10055 | hardcode_direct_absolute=yes |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 10056 | export_dynamic_flag_spec='${wl}-E' |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 10057 | # hardcode_minus_L: Not really in the search PATH, |
| 10058 | # but as the default location of the library. |
| 10059 | hardcode_minus_L=yes |
| 10060 | fi |
| 10061 | ;; |
| 10062 | |
| 10063 | hpux11*) |
| 10064 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 10065 | case $host_cpu in |
| 10066 | hppa*64*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10067 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10068 | ;; |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 10069 | ia64*) |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10070 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 10071 | ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10072 | *) |
| 10073 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 10074 | ;; |
| 10075 | esac |
| 10076 | else |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 10077 | case $host_cpu in |
| 10078 | hppa*64*) |
| 10079 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10080 | ;; |
| 10081 | ia64*) |
| 10082 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10083 | ;; |
| 10084 | *) |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 10085 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10086 | ;; |
| 10087 | esac |
| 10088 | fi |
| 10089 | if test "$with_gnu_ld" = no; then |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 10090 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 10091 | hardcode_libdir_separator=: |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10092 | |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 10093 | case $host_cpu in |
| 10094 | hppa*64*|ia64*) |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 10095 | hardcode_direct=no |
| 10096 | hardcode_shlibpath_var=no |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10097 | ;; |
| 10098 | *) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10099 | hardcode_direct=yes |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10100 | hardcode_direct_absolute=yes |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10101 | export_dynamic_flag_spec='${wl}-E' |
| 10102 | |
| 10103 | # hardcode_minus_L: Not really in the search PATH, |
| 10104 | # but as the default location of the library. |
| 10105 | hardcode_minus_L=yes |
| 10106 | ;; |
| 10107 | esac |
| 10108 | fi |
| 10109 | ;; |
| 10110 | |
| 10111 | irix5* | irix6* | nonstopux*) |
| 10112 | if test "$GCC" = yes; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10113 | 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' |
| 10114 | # Try to use the -exported_symbol ld option, if it does not |
| 10115 | # work, assume that -exports_file does not work either and |
| 10116 | # implicitly export all symbols. |
| 10117 | save_LDFLAGS="$LDFLAGS" |
| 10118 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 10119 | cat >conftest.$ac_ext <<_ACEOF |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10120 | int foo(void) {} |
| 10121 | _ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 10122 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10123 | if { (ac_try="$ac_link" |
| 10124 | case "(($ac_try" in |
| 10125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10126 | *) ac_try_echo=$ac_try;; |
| 10127 | esac |
| 10128 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10129 | $as_echo "$ac_try_echo") >&5 |
| 10130 | (eval "$ac_link") 2>conftest.er1 |
| 10131 | ac_status=$? |
| 10132 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10133 | rm -f conftest.er1 |
| 10134 | cat conftest.err >&5 |
| 10135 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10136 | (exit $ac_status); } && { |
| 10137 | test -z "$ac_c_werror_flag" || |
| 10138 | test ! -s conftest.err |
| 10139 | } && test -s conftest$ac_exeext && { |
| 10140 | test "$cross_compiling" = yes || |
| 10141 | $as_test_x conftest$ac_exeext |
| 10142 | }; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10143 | 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' |
| 10144 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 10145 | else |
| 10146 | $as_echo "$as_me: failed program was:" >&5 |
| 10147 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10148 | |
| 10149 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10150 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 10151 | |
| 10152 | rm -rf conftest.dSYM |
| 10153 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 10154 | conftest$ac_exeext conftest.$ac_ext |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10155 | LDFLAGS="$save_LDFLAGS" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10156 | else |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10157 | 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' |
| 10158 | 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' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10159 | fi |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10160 | archive_cmds_need_lc='no' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10161 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 10162 | hardcode_libdir_separator=: |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10163 | inherit_rpath=yes |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10164 | link_all_deplibs=yes |
| 10165 | ;; |
| 10166 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 10167 | netbsd* | netbsdelf*-gnu) |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10168 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10169 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 10170 | else |
| 10171 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 10172 | fi |
| 10173 | hardcode_libdir_flag_spec='-R$libdir' |
| 10174 | hardcode_direct=yes |
| 10175 | hardcode_shlibpath_var=no |
| 10176 | ;; |
| 10177 | |
| 10178 | newsos6) |
| 10179 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10180 | hardcode_direct=yes |
| 10181 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 10182 | hardcode_libdir_separator=: |
| 10183 | hardcode_shlibpath_var=no |
| 10184 | ;; |
| 10185 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10186 | *nto* | *qnx*) |
| 10187 | ;; |
| 10188 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10189 | openbsd*) |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 10190 | if test -f /usr/libexec/ld.so; then |
| 10191 | hardcode_direct=yes |
| 10192 | hardcode_shlibpath_var=no |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10193 | hardcode_direct_absolute=yes |
| 10194 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 10195 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 10196 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 10197 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 10198 | export_dynamic_flag_spec='${wl}-E' |
| 10199 | else |
| 10200 | case $host_os in |
| 10201 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 10202 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 10203 | hardcode_libdir_flag_spec='-R$libdir' |
| 10204 | ;; |
| 10205 | *) |
| 10206 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 10207 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 10208 | ;; |
| 10209 | esac |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10210 | fi |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10211 | else |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 10212 | ld_shlibs=no |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10213 | fi |
| 10214 | ;; |
| 10215 | |
| 10216 | os2*) |
| 10217 | hardcode_libdir_flag_spec='-L$libdir' |
| 10218 | hardcode_minus_L=yes |
| 10219 | allow_undefined_flag=unsupported |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10220 | 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' |
| 10221 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10222 | ;; |
| 10223 | |
| 10224 | osf3*) |
| 10225 | if test "$GCC" = yes; then |
| 10226 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10227 | 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' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10228 | else |
| 10229 | allow_undefined_flag=' -expect_unresolved \*' |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10230 | 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' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10231 | fi |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10232 | archive_cmds_need_lc='no' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10233 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 10234 | hardcode_libdir_separator=: |
| 10235 | ;; |
| 10236 | |
| 10237 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 10238 | if test "$GCC" = yes; then |
| 10239 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10240 | 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' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10241 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 10242 | else |
| 10243 | allow_undefined_flag=' -expect_unresolved \*' |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10244 | 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' |
| 10245 | 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~ |
| 10246 | $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' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10247 | |
| 10248 | # Both c and cxx compiler support -rpath directly |
| 10249 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 10250 | fi |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10251 | archive_cmds_need_lc='no' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10252 | hardcode_libdir_separator=: |
| 10253 | ;; |
| 10254 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10255 | solaris*) |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10256 | no_undefined_flag=' -z defs' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10257 | if test "$GCC" = yes; then |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 10258 | wlarc='${wl}' |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10259 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10260 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 10261 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10262 | else |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10263 | case `$CC -V 2>&1` in |
| 10264 | *"Compilers 5.0"*) |
| 10265 | wlarc='' |
| 10266 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10267 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 10268 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
| 10269 | ;; |
| 10270 | *) |
| 10271 | wlarc='${wl}' |
| 10272 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10273 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 10274 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 10275 | ;; |
| 10276 | esac |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10277 | fi |
| 10278 | hardcode_libdir_flag_spec='-R$libdir' |
| 10279 | hardcode_shlibpath_var=no |
| 10280 | case $host_os in |
| 10281 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 10282 | *) |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 10283 | # The compiler driver will combine and reorder linker options, |
| 10284 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
| 10285 | # but is careful enough not to reorder. |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10286 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 10287 | if test "$GCC" = yes; then |
| 10288 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 10289 | else |
| 10290 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
| 10291 | fi |
| 10292 | ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10293 | esac |
| 10294 | link_all_deplibs=yes |
| 10295 | ;; |
| 10296 | |
| 10297 | sunos4*) |
| 10298 | if test "x$host_vendor" = xsequent; then |
| 10299 | # Use $CC to link under sequent, because it throws in some extra .o |
| 10300 | # files that make .init and .fini sections work. |
| 10301 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10302 | else |
| 10303 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 10304 | fi |
| 10305 | hardcode_libdir_flag_spec='-L$libdir' |
| 10306 | hardcode_direct=yes |
| 10307 | hardcode_minus_L=yes |
| 10308 | hardcode_shlibpath_var=no |
| 10309 | ;; |
| 10310 | |
| 10311 | sysv4) |
| 10312 | case $host_vendor in |
| 10313 | sni) |
| 10314 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10315 | hardcode_direct=yes # is this really true??? |
| 10316 | ;; |
| 10317 | siemens) |
| 10318 | ## LD is ld it makes a PLAMLIB |
| 10319 | ## CC just makes a GrossModule. |
| 10320 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 10321 | reload_cmds='$CC -r -o $output$reload_objs' |
| 10322 | hardcode_direct=no |
| 10323 | ;; |
| 10324 | motorola) |
| 10325 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10326 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 10327 | ;; |
| 10328 | esac |
| 10329 | runpath_var='LD_RUN_PATH' |
| 10330 | hardcode_shlibpath_var=no |
| 10331 | ;; |
| 10332 | |
| 10333 | sysv4.3*) |
| 10334 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10335 | hardcode_shlibpath_var=no |
| 10336 | export_dynamic_flag_spec='-Bexport' |
| 10337 | ;; |
| 10338 | |
| 10339 | sysv4*MP*) |
| 10340 | if test -d /usr/nec; then |
| 10341 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10342 | hardcode_shlibpath_var=no |
| 10343 | runpath_var=LD_RUN_PATH |
| 10344 | hardcode_runpath_var=yes |
| 10345 | ld_shlibs=yes |
| 10346 | fi |
| 10347 | ;; |
| 10348 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 10349 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 10350 | no_undefined_flag='${wl}-z,text' |
| 10351 | archive_cmds_need_lc=no |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10352 | hardcode_shlibpath_var=no |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 10353 | runpath_var='LD_RUN_PATH' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10354 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10355 | if test "$GCC" = yes; then |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 10356 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10357 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10358 | else |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 10359 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10360 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10361 | fi |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10362 | ;; |
| 10363 | |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 10364 | sysv5* | sco3.2v5* | sco5v6*) |
| 10365 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 10366 | # link with -lc, and that would cause any symbols used from libc to |
| 10367 | # always be unresolved, which means just about no library would |
| 10368 | # ever link correctly. If we're not using GNU ld we use -z text |
| 10369 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 10370 | # as -z defs. |
| 10371 | no_undefined_flag='${wl}-z,text' |
| 10372 | allow_undefined_flag='${wl}-z,nodefs' |
| 10373 | archive_cmds_need_lc=no |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10374 | hardcode_shlibpath_var=no |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10375 | hardcode_libdir_flag_spec='${wl}-R,$libdir' |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 10376 | hardcode_libdir_separator=':' |
| 10377 | link_all_deplibs=yes |
| 10378 | export_dynamic_flag_spec='${wl}-Bexport' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10379 | runpath_var='LD_RUN_PATH' |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 10380 | |
| 10381 | if test "$GCC" = yes; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10382 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10383 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 10384 | else |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10385 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10386 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 10387 | fi |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10388 | ;; |
| 10389 | |
| 10390 | uts4*) |
| 10391 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10392 | hardcode_libdir_flag_spec='-L$libdir' |
| 10393 | hardcode_shlibpath_var=no |
| 10394 | ;; |
| 10395 | |
| 10396 | *) |
| 10397 | ld_shlibs=no |
| 10398 | ;; |
| 10399 | esac |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10400 | |
| 10401 | if test x$host_vendor = xsni; then |
| 10402 | case $host in |
| 10403 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 10404 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 10405 | ;; |
| 10406 | esac |
| 10407 | fi |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10408 | fi |
| 10409 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 10410 | { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 10411 | $as_echo "$ld_shlibs" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10412 | test "$ld_shlibs" = no && can_build_shared=no |
| 10413 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10414 | with_gnu_ld=$with_gnu_ld |
| 10415 | |
| 10416 | |
| 10417 | |
| 10418 | |
| 10419 | |
| 10420 | |
| 10421 | |
| 10422 | |
| 10423 | |
| 10424 | |
| 10425 | |
| 10426 | |
| 10427 | |
| 10428 | |
| 10429 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10430 | # |
| 10431 | # Do we need to explicitly link libc? |
| 10432 | # |
| 10433 | case "x$archive_cmds_need_lc" in |
| 10434 | x|xyes) |
| 10435 | # Assume -lc should be added |
| 10436 | archive_cmds_need_lc=yes |
| 10437 | |
| 10438 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 10439 | case $archive_cmds in |
| 10440 | *'~'*) |
| 10441 | # FIXME: we may have to deal with multi-command sequences. |
| 10442 | ;; |
| 10443 | '$CC '*) |
| 10444 | # Test whether the compiler implicitly links with -lc since on some |
| 10445 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 10446 | # to ld, don't add -lc before -lgcc. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 10447 | { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 10448 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10449 | $RM conftest* |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 10450 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10451 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 10452 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10453 | (eval $ac_compile) 2>&5 |
| 10454 | ac_status=$? |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 10455 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10456 | (exit $ac_status); } 2>conftest.err; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10457 | soname=conftest |
| 10458 | lib=conftest |
| 10459 | libobjs=conftest.$ac_objext |
| 10460 | deplibs= |
| 10461 | wl=$lt_prog_compiler_wl |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 10462 | pic_flag=$lt_prog_compiler_pic |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10463 | compiler_flags=-v |
| 10464 | linker_flags=-v |
| 10465 | verstring= |
| 10466 | output_objdir=. |
| 10467 | libname=conftest |
| 10468 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 10469 | allow_undefined_flag= |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 10470 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10471 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10472 | ac_status=$? |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 10473 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10474 | (exit $ac_status); } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10475 | then |
| 10476 | archive_cmds_need_lc=no |
| 10477 | else |
| 10478 | archive_cmds_need_lc=yes |
| 10479 | fi |
| 10480 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 10481 | else |
| 10482 | cat conftest.err 1>&5 |
| 10483 | fi |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10484 | $RM conftest* |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 10485 | { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 10486 | $as_echo "$archive_cmds_need_lc" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10487 | ;; |
| 10488 | esac |
| 10489 | fi |
| 10490 | ;; |
| 10491 | esac |
| 10492 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10493 | |
| 10494 | |
| 10495 | |
| 10496 | |
| 10497 | |
| 10498 | |
| 10499 | |
| 10500 | |
| 10501 | |
| 10502 | |
| 10503 | |
| 10504 | |
| 10505 | |
| 10506 | |
| 10507 | |
| 10508 | |
| 10509 | |
| 10510 | |
| 10511 | |
| 10512 | |
| 10513 | |
| 10514 | |
| 10515 | |
| 10516 | |
| 10517 | |
| 10518 | |
| 10519 | |
| 10520 | |
| 10521 | |
| 10522 | |
| 10523 | |
| 10524 | |
| 10525 | |
| 10526 | |
| 10527 | |
| 10528 | |
| 10529 | |
| 10530 | |
| 10531 | |
| 10532 | |
| 10533 | |
| 10534 | |
| 10535 | |
| 10536 | |
| 10537 | |
| 10538 | |
| 10539 | |
| 10540 | |
| 10541 | |
| 10542 | |
| 10543 | |
| 10544 | |
| 10545 | |
| 10546 | |
| 10547 | |
| 10548 | |
| 10549 | |
| 10550 | |
| 10551 | |
| 10552 | |
| 10553 | |
| 10554 | |
| 10555 | |
| 10556 | |
| 10557 | |
| 10558 | |
| 10559 | |
| 10560 | |
| 10561 | |
| 10562 | |
| 10563 | |
| 10564 | |
| 10565 | |
| 10566 | |
| 10567 | |
| 10568 | |
| 10569 | |
| 10570 | |
| 10571 | |
| 10572 | |
| 10573 | |
| 10574 | |
| 10575 | |
| 10576 | |
| 10577 | |
| 10578 | |
| 10579 | |
| 10580 | |
| 10581 | |
| 10582 | |
| 10583 | |
| 10584 | |
| 10585 | |
| 10586 | |
| 10587 | |
| 10588 | |
| 10589 | |
| 10590 | |
| 10591 | |
| 10592 | |
| 10593 | |
| 10594 | |
| 10595 | |
| 10596 | |
| 10597 | |
| 10598 | |
| 10599 | |
| 10600 | |
| 10601 | |
| 10602 | |
| 10603 | |
| 10604 | |
| 10605 | |
| 10606 | |
| 10607 | |
| 10608 | |
| 10609 | |
| 10610 | |
| 10611 | |
| 10612 | |
| 10613 | |
| 10614 | |
| 10615 | |
| 10616 | |
| 10617 | |
| 10618 | |
| 10619 | |
| 10620 | |
| 10621 | |
| 10622 | |
| 10623 | |
| 10624 | |
| 10625 | |
| 10626 | |
| 10627 | |
| 10628 | |
| 10629 | |
| 10630 | |
| 10631 | |
| 10632 | |
| 10633 | |
| 10634 | |
| 10635 | |
| 10636 | |
| 10637 | |
| 10638 | |
| 10639 | |
| 10640 | |
| 10641 | |
| 10642 | |
| 10643 | |
| 10644 | |
| 10645 | |
| 10646 | |
| 10647 | |
| 10648 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 10649 | { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 10650 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 10651 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10652 | if test "$GCC" = yes; then |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 10653 | case $host_os in |
| 10654 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
| 10655 | *) lt_awk_arg="/^libraries:/" ;; |
| 10656 | esac |
| 10657 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10658 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10659 | # if the path contains ";" then we assume it to be the separator |
| 10660 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 10661 | # assumed that no part of a normal pathname contains ";" but that should |
| 10662 | # okay in the real world where ";" in dirpaths is itself problematic. |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10663 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10664 | else |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10665 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10666 | fi |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 10667 | # Ok, now we have the path, separated by spaces, we can step through it |
| 10668 | # and add multilib dir if necessary. |
| 10669 | lt_tmp_lt_search_path_spec= |
| 10670 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| 10671 | for lt_sys_path in $lt_search_path_spec; do |
| 10672 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
| 10673 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
| 10674 | else |
| 10675 | test -d "$lt_sys_path" && \ |
| 10676 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 10677 | fi |
| 10678 | done |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10679 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 10680 | BEGIN {RS=" "; FS="/|\n";} { |
| 10681 | lt_foo=""; |
| 10682 | lt_count=0; |
| 10683 | for (lt_i = NF; lt_i > 0; lt_i--) { |
| 10684 | if ($lt_i != "" && $lt_i != ".") { |
| 10685 | if ($lt_i == "..") { |
| 10686 | lt_count++; |
| 10687 | } else { |
| 10688 | if (lt_count == 0) { |
| 10689 | lt_foo="/" $lt_i lt_foo; |
| 10690 | } else { |
| 10691 | lt_count--; |
| 10692 | } |
| 10693 | } |
| 10694 | } |
| 10695 | } |
| 10696 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
| 10697 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
| 10698 | }'` |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10699 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10700 | else |
| 10701 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 10702 | fi |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10703 | library_names_spec= |
| 10704 | libname_spec='lib$name' |
| 10705 | soname_spec= |
| 10706 | shrext_cmds=".so" |
| 10707 | postinstall_cmds= |
| 10708 | postuninstall_cmds= |
| 10709 | finish_cmds= |
| 10710 | finish_eval= |
| 10711 | shlibpath_var= |
| 10712 | shlibpath_overrides_runpath=unknown |
| 10713 | version_type=none |
| 10714 | dynamic_linker="$host_os ld.so" |
| 10715 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10716 | need_lib_prefix=unknown |
| 10717 | hardcode_into_libs=no |
| 10718 | |
| 10719 | # when you set need_version to no, make sure it does not cause -set_version |
| 10720 | # flags to be left without arguments |
| 10721 | need_version=unknown |
| 10722 | |
| 10723 | case $host_os in |
| 10724 | aix3*) |
| 10725 | version_type=linux |
| 10726 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 10727 | shlibpath_var=LIBPATH |
| 10728 | |
| 10729 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 10730 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10731 | ;; |
| 10732 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 10733 | aix[4-9]*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10734 | version_type=linux |
| 10735 | need_lib_prefix=no |
| 10736 | need_version=no |
| 10737 | hardcode_into_libs=yes |
| 10738 | if test "$host_cpu" = ia64; then |
| 10739 | # AIX 5 supports IA64 |
| 10740 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 10741 | shlibpath_var=LD_LIBRARY_PATH |
| 10742 | else |
| 10743 | # With GCC up to 2.95.x, collect2 would create an import file |
| 10744 | # for dependence libraries. The import file would start with |
| 10745 | # the line `#! .'. This would cause the generated library to |
| 10746 | # depend on `.', always an invalid library. This was fixed in |
| 10747 | # development snapshots of GCC prior to 3.0. |
| 10748 | case $host_os in |
| 10749 | aix4 | aix4.[01] | aix4.[01].*) |
| 10750 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 10751 | echo ' yes ' |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10752 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10753 | : |
| 10754 | else |
| 10755 | can_build_shared=no |
| 10756 | fi |
| 10757 | ;; |
| 10758 | esac |
| 10759 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 10760 | # soname into executable. Probably we can add versioning support to |
| 10761 | # collect2, so additional links can be useful in future. |
| 10762 | if test "$aix_use_runtimelinking" = yes; then |
| 10763 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 10764 | # instead of lib<name>.a to let people know that these are not |
| 10765 | # typical AIX shared libraries. |
| 10766 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10767 | else |
| 10768 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 10769 | # and later when we are not doing run time linking. |
| 10770 | library_names_spec='${libname}${release}.a $libname.a' |
| 10771 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10772 | fi |
| 10773 | shlibpath_var=LIBPATH |
| 10774 | fi |
| 10775 | ;; |
| 10776 | |
| 10777 | amigaos*) |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10778 | case $host_cpu in |
| 10779 | powerpc) |
| 10780 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 10781 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 10782 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10783 | ;; |
| 10784 | m68k) |
| 10785 | library_names_spec='$libname.ixlibrary $libname.a' |
| 10786 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 10787 | 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' |
| 10788 | ;; |
| 10789 | esac |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10790 | ;; |
| 10791 | |
| 10792 | beos*) |
| 10793 | library_names_spec='${libname}${shared_ext}' |
| 10794 | dynamic_linker="$host_os ld.so" |
| 10795 | shlibpath_var=LIBRARY_PATH |
| 10796 | ;; |
| 10797 | |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 10798 | bsdi[45]*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10799 | version_type=linux |
| 10800 | need_version=no |
| 10801 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10802 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10803 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 10804 | shlibpath_var=LD_LIBRARY_PATH |
| 10805 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 10806 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 10807 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 10808 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 10809 | # libtool to hard-code these into programs |
| 10810 | ;; |
| 10811 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10812 | cygwin* | mingw* | pw32* | cegcc*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10813 | version_type=windows |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 10814 | shrext_cmds=".dll" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10815 | need_version=no |
| 10816 | need_lib_prefix=no |
| 10817 | |
| 10818 | case $GCC,$host_os in |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10819 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10820 | library_names_spec='$libname.dll.a' |
| 10821 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 10822 | postinstall_cmds='base_file=`basename \${file}`~ |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10823 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10824 | dldir=$destdir/`dirname \$dlpath`~ |
| 10825 | test -d \$dldir || mkdir -p \$dldir~ |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 10826 | $install_prog $dir/$dlname \$dldir/$dlname~ |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10827 | chmod a+x \$dldir/$dlname~ |
| 10828 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 10829 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 10830 | fi' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10831 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 10832 | dlpath=$dir/\$dldll~ |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10833 | $RM \$dlpath' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10834 | shlibpath_overrides_runpath=yes |
| 10835 | |
| 10836 | case $host_os in |
| 10837 | cygwin*) |
| 10838 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 10839 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 10840 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10841 | ;; |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10842 | mingw* | cegcc*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10843 | # MinGW DLLs use traditional 'lib' prefix |
| 10844 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10845 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 10846 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10847 | # It is most probably a Windows format PATH printed by |
| 10848 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 10849 | # path with ; separators, and with drive letters. We can handle the |
| 10850 | # drive letters (cygwin fileutils understands them), so leave them, |
| 10851 | # especially as we might pass files found there to a mingw objdump, |
| 10852 | # which wouldn't understand a cygwinified path. Ahh. |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10853 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10854 | else |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10855 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10856 | fi |
| 10857 | ;; |
| 10858 | pw32*) |
| 10859 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 10860 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10861 | ;; |
| 10862 | esac |
| 10863 | ;; |
| 10864 | |
| 10865 | *) |
| 10866 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 10867 | ;; |
| 10868 | esac |
| 10869 | dynamic_linker='Win32 ld.exe' |
| 10870 | # FIXME: first we should search . and the directory the executable is in |
| 10871 | shlibpath_var=PATH |
| 10872 | ;; |
| 10873 | |
| 10874 | darwin* | rhapsody*) |
| 10875 | dynamic_linker="$host_os dyld" |
| 10876 | version_type=darwin |
| 10877 | need_lib_prefix=no |
| 10878 | need_version=no |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10879 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10880 | soname_spec='${libname}${release}${major}$shared_ext' |
| 10881 | shlibpath_overrides_runpath=yes |
| 10882 | shlibpath_var=DYLD_LIBRARY_PATH |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 10883 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 10884 | |
| 10885 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10886 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 10887 | ;; |
| 10888 | |
| 10889 | dgux*) |
| 10890 | version_type=linux |
| 10891 | need_lib_prefix=no |
| 10892 | need_version=no |
| 10893 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 10894 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10895 | shlibpath_var=LD_LIBRARY_PATH |
| 10896 | ;; |
| 10897 | |
| 10898 | freebsd1*) |
| 10899 | dynamic_linker=no |
| 10900 | ;; |
| 10901 | |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 10902 | freebsd* | dragonfly*) |
| 10903 | # DragonFly does not have aout. When/if they implement a new |
| 10904 | # versioning mechanism, adjust this. |
| 10905 | if test -x /usr/bin/objformat; then |
| 10906 | objformat=`/usr/bin/objformat` |
| 10907 | else |
| 10908 | case $host_os in |
| 10909 | freebsd[123]*) objformat=aout ;; |
| 10910 | *) objformat=elf ;; |
| 10911 | esac |
| 10912 | fi |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10913 | version_type=freebsd-$objformat |
| 10914 | case $version_type in |
| 10915 | freebsd-elf*) |
| 10916 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10917 | need_version=no |
| 10918 | need_lib_prefix=no |
| 10919 | ;; |
| 10920 | freebsd-*) |
| 10921 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 10922 | need_version=yes |
| 10923 | ;; |
| 10924 | esac |
| 10925 | shlibpath_var=LD_LIBRARY_PATH |
| 10926 | case $host_os in |
| 10927 | freebsd2*) |
| 10928 | shlibpath_overrides_runpath=yes |
| 10929 | ;; |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 10930 | freebsd3.[01]* | freebsdelf3.[01]*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10931 | shlibpath_overrides_runpath=yes |
| 10932 | hardcode_into_libs=yes |
| 10933 | ;; |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 10934 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 10935 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10936 | shlibpath_overrides_runpath=no |
| 10937 | hardcode_into_libs=yes |
| 10938 | ;; |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 10939 | *) # from 4.6 on, and DragonFly |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 10940 | shlibpath_overrides_runpath=yes |
| 10941 | hardcode_into_libs=yes |
| 10942 | ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10943 | esac |
| 10944 | ;; |
| 10945 | |
| 10946 | gnu*) |
| 10947 | version_type=linux |
| 10948 | need_lib_prefix=no |
| 10949 | need_version=no |
| 10950 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 10951 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10952 | shlibpath_var=LD_LIBRARY_PATH |
| 10953 | hardcode_into_libs=yes |
| 10954 | ;; |
| 10955 | |
| 10956 | hpux9* | hpux10* | hpux11*) |
| 10957 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 10958 | # link against other versions. |
| 10959 | version_type=sunos |
| 10960 | need_lib_prefix=no |
| 10961 | need_version=no |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 10962 | case $host_cpu in |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10963 | ia64*) |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 10964 | shrext_cmds='.so' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10965 | hardcode_into_libs=yes |
| 10966 | dynamic_linker="$host_os dld.so" |
| 10967 | shlibpath_var=LD_LIBRARY_PATH |
| 10968 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 10969 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10970 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10971 | if test "X$HPUX_IA64_MODE" = X32; then |
| 10972 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 10973 | else |
| 10974 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 10975 | fi |
| 10976 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 10977 | ;; |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 10978 | hppa*64*) |
| 10979 | shrext_cmds='.sl' |
| 10980 | hardcode_into_libs=yes |
| 10981 | dynamic_linker="$host_os dld.sl" |
| 10982 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 10983 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 10984 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10985 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10986 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 10987 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 10988 | ;; |
| 10989 | *) |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 10990 | shrext_cmds='.sl' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 10991 | dynamic_linker="$host_os dld.sl" |
| 10992 | shlibpath_var=SHLIB_PATH |
| 10993 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 10994 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10995 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10996 | ;; |
| 10997 | esac |
| 10998 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 10999 | postinstall_cmds='chmod 555 $lib' |
| 11000 | ;; |
| 11001 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 11002 | interix[3-9]*) |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 11003 | version_type=linux |
| 11004 | need_lib_prefix=no |
| 11005 | need_version=no |
| 11006 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 11007 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11008 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 11009 | shlibpath_var=LD_LIBRARY_PATH |
| 11010 | shlibpath_overrides_runpath=no |
| 11011 | hardcode_into_libs=yes |
| 11012 | ;; |
| 11013 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11014 | irix5* | irix6* | nonstopux*) |
| 11015 | case $host_os in |
| 11016 | nonstopux*) version_type=nonstopux ;; |
| 11017 | *) |
| 11018 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 11019 | version_type=linux |
| 11020 | else |
| 11021 | version_type=irix |
| 11022 | fi ;; |
| 11023 | esac |
| 11024 | need_lib_prefix=no |
| 11025 | need_version=no |
| 11026 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11027 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 11028 | case $host_os in |
| 11029 | irix5* | nonstopux*) |
| 11030 | libsuff= shlibsuff= |
| 11031 | ;; |
| 11032 | *) |
| 11033 | case $LD in # libtool.m4 will add one of these switches to LD |
| 11034 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 11035 | libsuff= shlibsuff= libmagic=32-bit;; |
| 11036 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 11037 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 11038 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 11039 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 11040 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 11041 | esac |
| 11042 | ;; |
| 11043 | esac |
| 11044 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 11045 | shlibpath_overrides_runpath=no |
| 11046 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 11047 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 11048 | hardcode_into_libs=yes |
| 11049 | ;; |
| 11050 | |
| 11051 | # No shared lib support for Linux oldld, aout, or coff. |
| 11052 | linux*oldld* | linux*aout* | linux*coff*) |
| 11053 | dynamic_linker=no |
| 11054 | ;; |
| 11055 | |
| 11056 | # This must be Linux ELF. |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 11057 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11058 | version_type=linux |
| 11059 | need_lib_prefix=no |
| 11060 | need_version=no |
| 11061 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11062 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11063 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 11064 | shlibpath_var=LD_LIBRARY_PATH |
| 11065 | shlibpath_overrides_runpath=no |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 11066 | # Some binutils ld are patched to set DT_RUNPATH |
| 11067 | save_LDFLAGS=$LDFLAGS |
| 11068 | save_libdir=$libdir |
| 11069 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
| 11070 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 11071 | cat >conftest.$ac_ext <<_ACEOF |
| 11072 | /* confdefs.h. */ |
| 11073 | _ACEOF |
| 11074 | cat confdefs.h >>conftest.$ac_ext |
| 11075 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 11076 | /* end confdefs.h. */ |
| 11077 | |
| 11078 | int |
| 11079 | main () |
| 11080 | { |
| 11081 | |
| 11082 | ; |
| 11083 | return 0; |
| 11084 | } |
| 11085 | _ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 11086 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11087 | if { (ac_try="$ac_link" |
| 11088 | case "(($ac_try" in |
| 11089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11090 | *) ac_try_echo=$ac_try;; |
| 11091 | esac |
| 11092 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11093 | $as_echo "$ac_try_echo") >&5 |
| 11094 | (eval "$ac_link") 2>conftest.er1 |
| 11095 | ac_status=$? |
| 11096 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11097 | rm -f conftest.er1 |
| 11098 | cat conftest.err >&5 |
| 11099 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11100 | (exit $ac_status); } && { |
| 11101 | test -z "$ac_c_werror_flag" || |
| 11102 | test ! -s conftest.err |
| 11103 | } && test -s conftest$ac_exeext && { |
| 11104 | test "$cross_compiling" = yes || |
| 11105 | $as_test_x conftest$ac_exeext |
| 11106 | }; then |
| 11107 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 11108 | shlibpath_overrides_runpath=yes |
| 11109 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 11110 | |
| 11111 | else |
| 11112 | $as_echo "$as_me: failed program was:" >&5 |
| 11113 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11114 | |
| 11115 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 11116 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 11117 | |
| 11118 | rm -rf conftest.dSYM |
| 11119 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 11120 | conftest$ac_exeext conftest.$ac_ext |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 11121 | LDFLAGS=$save_LDFLAGS |
| 11122 | libdir=$save_libdir |
| 11123 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11124 | # This implies no fast_install, which is unacceptable. |
| 11125 | # Some rework will be needed to allow for fast_install |
| 11126 | # before this can be enabled. |
| 11127 | hardcode_into_libs=yes |
| 11128 | |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 11129 | # Append ld.so.conf contents to the search path |
| 11130 | if test -f /etc/ld.so.conf; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 11131 | 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' ' '` |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 11132 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 11133 | fi |
| 11134 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11135 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 11136 | # powerpc, because MkLinux only supported shared libraries with the |
| 11137 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 11138 | # most powerpc-linux boxes support dynamic linking these days and |
| 11139 | # people can always --disable-shared, the test was removed, and we |
| 11140 | # assume the GNU/Linux dynamic linker is in use. |
| 11141 | dynamic_linker='GNU/Linux ld.so' |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 11142 | ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11143 | |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 11144 | netbsdelf*-gnu) |
| 11145 | version_type=linux |
| 11146 | need_lib_prefix=no |
| 11147 | need_version=no |
| 11148 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 11149 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11150 | shlibpath_var=LD_LIBRARY_PATH |
| 11151 | shlibpath_overrides_runpath=no |
| 11152 | hardcode_into_libs=yes |
| 11153 | dynamic_linker='NetBSD ld.elf_so' |
| 11154 | ;; |
| 11155 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11156 | netbsd*) |
| 11157 | version_type=sunos |
| 11158 | need_lib_prefix=no |
| 11159 | need_version=no |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 11160 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11161 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 11162 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 11163 | dynamic_linker='NetBSD (a.out) ld.so' |
| 11164 | else |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 11165 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11166 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11167 | dynamic_linker='NetBSD ld.elf_so' |
| 11168 | fi |
| 11169 | shlibpath_var=LD_LIBRARY_PATH |
| 11170 | shlibpath_overrides_runpath=yes |
| 11171 | hardcode_into_libs=yes |
| 11172 | ;; |
| 11173 | |
| 11174 | newsos6) |
| 11175 | version_type=linux |
| 11176 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11177 | shlibpath_var=LD_LIBRARY_PATH |
| 11178 | shlibpath_overrides_runpath=yes |
| 11179 | ;; |
| 11180 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 11181 | *nto* | *qnx*) |
| 11182 | version_type=qnx |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11183 | need_lib_prefix=no |
| 11184 | need_version=no |
| 11185 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11186 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11187 | shlibpath_var=LD_LIBRARY_PATH |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 11188 | shlibpath_overrides_runpath=no |
| 11189 | hardcode_into_libs=yes |
| 11190 | dynamic_linker='ldqnx.so' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11191 | ;; |
| 11192 | |
| 11193 | openbsd*) |
| 11194 | version_type=sunos |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 11195 | sys_lib_dlsearch_path_spec="/usr/lib" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11196 | need_lib_prefix=no |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 11197 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 11198 | case $host_os in |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 11199 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 11200 | *) need_version=no ;; |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 11201 | esac |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11202 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 11203 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 11204 | shlibpath_var=LD_LIBRARY_PATH |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 11205 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11206 | case $host_os in |
| 11207 | openbsd2.[89] | openbsd2.[89].*) |
| 11208 | shlibpath_overrides_runpath=no |
| 11209 | ;; |
| 11210 | *) |
| 11211 | shlibpath_overrides_runpath=yes |
| 11212 | ;; |
| 11213 | esac |
| 11214 | else |
| 11215 | shlibpath_overrides_runpath=yes |
| 11216 | fi |
| 11217 | ;; |
| 11218 | |
| 11219 | os2*) |
| 11220 | libname_spec='$name' |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 11221 | shrext_cmds=".dll" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11222 | need_lib_prefix=no |
| 11223 | library_names_spec='$libname${shared_ext} $libname.a' |
| 11224 | dynamic_linker='OS/2 ld.exe' |
| 11225 | shlibpath_var=LIBPATH |
| 11226 | ;; |
| 11227 | |
| 11228 | osf3* | osf4* | osf5*) |
| 11229 | version_type=osf |
| 11230 | need_lib_prefix=no |
| 11231 | need_version=no |
| 11232 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11233 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11234 | shlibpath_var=LD_LIBRARY_PATH |
| 11235 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 11236 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 11237 | ;; |
| 11238 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 11239 | rdos*) |
| 11240 | dynamic_linker=no |
| 11241 | ;; |
| 11242 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11243 | solaris*) |
| 11244 | version_type=linux |
| 11245 | need_lib_prefix=no |
| 11246 | need_version=no |
| 11247 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11248 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11249 | shlibpath_var=LD_LIBRARY_PATH |
| 11250 | shlibpath_overrides_runpath=yes |
| 11251 | hardcode_into_libs=yes |
| 11252 | # ldd complains unless libraries are executable |
| 11253 | postinstall_cmds='chmod +x $lib' |
| 11254 | ;; |
| 11255 | |
| 11256 | sunos4*) |
| 11257 | version_type=sunos |
| 11258 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 11259 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 11260 | shlibpath_var=LD_LIBRARY_PATH |
| 11261 | shlibpath_overrides_runpath=yes |
| 11262 | if test "$with_gnu_ld" = yes; then |
| 11263 | need_lib_prefix=no |
| 11264 | fi |
| 11265 | need_version=yes |
| 11266 | ;; |
| 11267 | |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 11268 | sysv4 | sysv4.3*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11269 | version_type=linux |
| 11270 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11271 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11272 | shlibpath_var=LD_LIBRARY_PATH |
| 11273 | case $host_vendor in |
| 11274 | sni) |
| 11275 | shlibpath_overrides_runpath=no |
| 11276 | need_lib_prefix=no |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11277 | runpath_var=LD_RUN_PATH |
| 11278 | ;; |
| 11279 | siemens) |
| 11280 | need_lib_prefix=no |
| 11281 | ;; |
| 11282 | motorola) |
| 11283 | need_lib_prefix=no |
| 11284 | need_version=no |
| 11285 | shlibpath_overrides_runpath=no |
| 11286 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 11287 | ;; |
| 11288 | esac |
| 11289 | ;; |
| 11290 | |
| 11291 | sysv4*MP*) |
| 11292 | if test -d /usr/nec ;then |
| 11293 | version_type=linux |
| 11294 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 11295 | soname_spec='$libname${shared_ext}.$major' |
| 11296 | shlibpath_var=LD_LIBRARY_PATH |
| 11297 | fi |
| 11298 | ;; |
| 11299 | |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 11300 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 11301 | version_type=freebsd-elf |
| 11302 | need_lib_prefix=no |
| 11303 | need_version=no |
| 11304 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 11305 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11306 | shlibpath_var=LD_LIBRARY_PATH |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 11307 | shlibpath_overrides_runpath=yes |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 11308 | hardcode_into_libs=yes |
| 11309 | if test "$with_gnu_ld" = yes; then |
| 11310 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 11311 | else |
| 11312 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 11313 | case $host_os in |
| 11314 | sco3.2v5*) |
| 11315 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 11316 | ;; |
| 11317 | esac |
| 11318 | fi |
| 11319 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 11320 | ;; |
| 11321 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 11322 | tpf*) |
| 11323 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 11324 | version_type=linux |
| 11325 | need_lib_prefix=no |
| 11326 | need_version=no |
| 11327 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11328 | shlibpath_var=LD_LIBRARY_PATH |
| 11329 | shlibpath_overrides_runpath=no |
| 11330 | hardcode_into_libs=yes |
| 11331 | ;; |
| 11332 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11333 | uts4*) |
| 11334 | version_type=linux |
| 11335 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11336 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11337 | shlibpath_var=LD_LIBRARY_PATH |
| 11338 | ;; |
| 11339 | |
| 11340 | *) |
| 11341 | dynamic_linker=no |
| 11342 | ;; |
| 11343 | esac |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 11344 | { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 11345 | $as_echo "$dynamic_linker" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11346 | test "$dynamic_linker" = no && can_build_shared=no |
| 11347 | |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 11348 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 11349 | if test "$GCC" = yes; then |
| 11350 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 11351 | fi |
| 11352 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 11353 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 11354 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 11355 | fi |
| 11356 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 11357 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 11358 | fi |
| 11359 | |
| 11360 | |
| 11361 | |
| 11362 | |
| 11363 | |
| 11364 | |
| 11365 | |
| 11366 | |
| 11367 | |
| 11368 | |
| 11369 | |
| 11370 | |
| 11371 | |
| 11372 | |
| 11373 | |
| 11374 | |
| 11375 | |
| 11376 | |
| 11377 | |
| 11378 | |
| 11379 | |
| 11380 | |
| 11381 | |
| 11382 | |
| 11383 | |
| 11384 | |
| 11385 | |
| 11386 | |
| 11387 | |
| 11388 | |
| 11389 | |
| 11390 | |
| 11391 | |
| 11392 | |
| 11393 | |
| 11394 | |
| 11395 | |
| 11396 | |
| 11397 | |
| 11398 | |
| 11399 | |
| 11400 | |
| 11401 | |
| 11402 | |
| 11403 | |
| 11404 | |
| 11405 | |
| 11406 | |
| 11407 | |
| 11408 | |
| 11409 | |
| 11410 | |
| 11411 | |
| 11412 | |
| 11413 | |
| 11414 | |
| 11415 | |
| 11416 | |
| 11417 | |
| 11418 | |
| 11419 | |
| 11420 | |
| 11421 | |
| 11422 | |
| 11423 | |
| 11424 | |
| 11425 | |
| 11426 | |
| 11427 | |
| 11428 | |
| 11429 | |
| 11430 | |
| 11431 | |
| 11432 | |
| 11433 | |
| 11434 | |
| 11435 | |
| 11436 | |
| 11437 | |
| 11438 | |
| 11439 | |
| 11440 | |
| 11441 | |
| 11442 | |
| 11443 | |
| 11444 | |
| 11445 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 11446 | { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 11447 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 11448 | hardcode_action= |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 11449 | if test -n "$hardcode_libdir_flag_spec" || |
| 11450 | test -n "$runpath_var" || |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 11451 | test "X$hardcode_automatic" = "Xyes" ; then |
| 11452 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 11453 | # We can hardcode non-existent directories. |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 11454 | if test "$hardcode_direct" != no && |
| 11455 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 11456 | # have to relink, otherwise we might link with an installed library |
| 11457 | # when we should be linking with a yet-to-be-installed one |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 11458 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 11459 | test "$hardcode_minus_L" != no; then |
| 11460 | # Linking always hardcodes the temporary library directory. |
| 11461 | hardcode_action=relink |
| 11462 | else |
| 11463 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 11464 | hardcode_action=immediate |
| 11465 | fi |
| 11466 | else |
| 11467 | # We cannot hardcode anything, or else we can only hardcode existing |
| 11468 | # directories. |
| 11469 | hardcode_action=unsupported |
| 11470 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 11471 | { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 11472 | $as_echo "$hardcode_action" >&6; } |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 11473 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 11474 | if test "$hardcode_action" = relink || |
| 11475 | test "$inherit_rpath" = yes; then |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 11476 | # Fast installation is not supported |
| 11477 | enable_fast_install=no |
| 11478 | elif test "$shlibpath_overrides_runpath" = yes || |
| 11479 | test "$enable_shared" = no; then |
| 11480 | # Fast installation is not necessary |
| 11481 | enable_fast_install=needless |
| 11482 | fi |
| 11483 | |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 11484 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 11485 | |
| 11486 | |
| 11487 | |
| 11488 | |
| 11489 | if test "x$enable_dlopen" != xyes; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11490 | enable_dlopen=unknown |
| 11491 | enable_dlopen_self=unknown |
| 11492 | enable_dlopen_self_static=unknown |
| 11493 | else |
| 11494 | lt_cv_dlopen=no |
| 11495 | lt_cv_dlopen_libs= |
| 11496 | |
| 11497 | case $host_os in |
| 11498 | beos*) |
| 11499 | lt_cv_dlopen="load_add_on" |
| 11500 | lt_cv_dlopen_libs= |
| 11501 | lt_cv_dlopen_self=yes |
| 11502 | ;; |
| 11503 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 11504 | mingw* | pw32* | cegcc*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11505 | lt_cv_dlopen="LoadLibrary" |
| 11506 | lt_cv_dlopen_libs= |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 11507 | ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11508 | |
| 11509 | cygwin*) |
| 11510 | lt_cv_dlopen="dlopen" |
| 11511 | lt_cv_dlopen_libs= |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 11512 | ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11513 | |
| 11514 | darwin*) |
| 11515 | # if libdl is installed we need to link against it |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 11516 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 11517 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 11518 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 11519 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11520 | else |
| 11521 | ac_check_lib_save_LIBS=$LIBS |
| 11522 | LIBS="-ldl $LIBS" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 11523 | cat >conftest.$ac_ext <<_ACEOF |
| 11524 | /* confdefs.h. */ |
| 11525 | _ACEOF |
| 11526 | cat confdefs.h >>conftest.$ac_ext |
| 11527 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11528 | /* end confdefs.h. */ |
| 11529 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 11530 | /* Override any GCC internal prototype to avoid an error. |
| 11531 | Use char because int might match the return type of a GCC |
| 11532 | builtin and then its argument prototype would still apply. */ |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11533 | #ifdef __cplusplus |
| 11534 | extern "C" |
| 11535 | #endif |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11536 | char dlopen (); |
| 11537 | int |
| 11538 | main () |
| 11539 | { |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 11540 | return dlopen (); |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11541 | ; |
| 11542 | return 0; |
| 11543 | } |
| 11544 | _ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 11545 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11546 | if { (ac_try="$ac_link" |
| 11547 | case "(($ac_try" in |
| 11548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11549 | *) ac_try_echo=$ac_try;; |
| 11550 | esac |
| 11551 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11552 | $as_echo "$ac_try_echo") >&5 |
| 11553 | (eval "$ac_link") 2>conftest.er1 |
| 11554 | ac_status=$? |
| 11555 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11556 | rm -f conftest.er1 |
| 11557 | cat conftest.err >&5 |
| 11558 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11559 | (exit $ac_status); } && { |
| 11560 | test -z "$ac_c_werror_flag" || |
| 11561 | test ! -s conftest.err |
| 11562 | } && test -s conftest$ac_exeext && { |
| 11563 | test "$cross_compiling" = yes || |
| 11564 | $as_test_x conftest$ac_exeext |
| 11565 | }; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11566 | ac_cv_lib_dl_dlopen=yes |
| 11567 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 11568 | $as_echo "$as_me: failed program was:" >&5 |
| 11569 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11570 | |
| 11571 | ac_cv_lib_dl_dlopen=no |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11572 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 11573 | |
| 11574 | rm -rf conftest.dSYM |
| 11575 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 11576 | conftest$ac_exeext conftest.$ac_ext |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11577 | LIBS=$ac_check_lib_save_LIBS |
| 11578 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 11579 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 11580 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 11581 | if test $ac_cv_lib_dl_dlopen = yes; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11582 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 11583 | else |
| 11584 | |
| 11585 | lt_cv_dlopen="dyld" |
| 11586 | lt_cv_dlopen_libs= |
| 11587 | lt_cv_dlopen_self=yes |
| 11588 | |
| 11589 | fi |
| 11590 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 11591 | ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11592 | |
| 11593 | *) |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 11594 | { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 11595 | $as_echo_n "checking for shl_load... " >&6; } |
| 11596 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 11597 | $as_echo_n "(cached) " >&6 |
| 11598 | else |
| 11599 | cat >conftest.$ac_ext <<_ACEOF |
| 11600 | /* confdefs.h. */ |
| 11601 | _ACEOF |
| 11602 | cat confdefs.h >>conftest.$ac_ext |
| 11603 | cat >>conftest.$ac_ext <<_ACEOF |
| 11604 | /* end confdefs.h. */ |
| 11605 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 11606 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11607 | #define shl_load innocuous_shl_load |
| 11608 | |
| 11609 | /* System header to define __stub macros and hopefully few prototypes, |
| 11610 | which can conflict with char shl_load (); below. |
| 11611 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11612 | <limits.h> exists even on freestanding compilers. */ |
| 11613 | |
| 11614 | #ifdef __STDC__ |
| 11615 | # include <limits.h> |
| 11616 | #else |
| 11617 | # include <assert.h> |
| 11618 | #endif |
| 11619 | |
| 11620 | #undef shl_load |
| 11621 | |
| 11622 | /* Override any GCC internal prototype to avoid an error. |
| 11623 | Use char because int might match the return type of a GCC |
| 11624 | builtin and then its argument prototype would still apply. */ |
| 11625 | #ifdef __cplusplus |
| 11626 | extern "C" |
| 11627 | #endif |
| 11628 | char shl_load (); |
| 11629 | /* The GNU C library defines this for functions which it implements |
| 11630 | to always fail with ENOSYS. Some functions are actually named |
| 11631 | something starting with __ and the normal name is an alias. */ |
| 11632 | #if defined __stub_shl_load || defined __stub___shl_load |
| 11633 | choke me |
| 11634 | #endif |
| 11635 | |
| 11636 | int |
| 11637 | main () |
| 11638 | { |
| 11639 | return shl_load (); |
| 11640 | ; |
| 11641 | return 0; |
| 11642 | } |
| 11643 | _ACEOF |
| 11644 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11645 | if { (ac_try="$ac_link" |
| 11646 | case "(($ac_try" in |
| 11647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11648 | *) ac_try_echo=$ac_try;; |
| 11649 | esac |
| 11650 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11651 | $as_echo "$ac_try_echo") >&5 |
| 11652 | (eval "$ac_link") 2>conftest.er1 |
| 11653 | ac_status=$? |
| 11654 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11655 | rm -f conftest.er1 |
| 11656 | cat conftest.err >&5 |
| 11657 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11658 | (exit $ac_status); } && { |
| 11659 | test -z "$ac_c_werror_flag" || |
| 11660 | test ! -s conftest.err |
| 11661 | } && test -s conftest$ac_exeext && { |
| 11662 | test "$cross_compiling" = yes || |
| 11663 | $as_test_x conftest$ac_exeext |
| 11664 | }; then |
| 11665 | ac_cv_func_shl_load=yes |
| 11666 | else |
| 11667 | $as_echo "$as_me: failed program was:" >&5 |
| 11668 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11669 | |
| 11670 | ac_cv_func_shl_load=no |
| 11671 | fi |
| 11672 | |
| 11673 | rm -rf conftest.dSYM |
| 11674 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 11675 | conftest$ac_exeext conftest.$ac_ext |
| 11676 | fi |
| 11677 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 11678 | $as_echo "$ac_cv_func_shl_load" >&6; } |
| 11679 | if test $ac_cv_func_shl_load = yes; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11680 | lt_cv_dlopen="shl_load" |
| 11681 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 11682 | { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 11683 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 11684 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 11685 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11686 | else |
| 11687 | ac_check_lib_save_LIBS=$LIBS |
| 11688 | LIBS="-ldld $LIBS" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 11689 | cat >conftest.$ac_ext <<_ACEOF |
| 11690 | /* confdefs.h. */ |
| 11691 | _ACEOF |
| 11692 | cat confdefs.h >>conftest.$ac_ext |
| 11693 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11694 | /* end confdefs.h. */ |
| 11695 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 11696 | /* Override any GCC internal prototype to avoid an error. |
| 11697 | Use char because int might match the return type of a GCC |
| 11698 | builtin and then its argument prototype would still apply. */ |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11699 | #ifdef __cplusplus |
| 11700 | extern "C" |
| 11701 | #endif |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11702 | char shl_load (); |
| 11703 | int |
| 11704 | main () |
| 11705 | { |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 11706 | return shl_load (); |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11707 | ; |
| 11708 | return 0; |
| 11709 | } |
| 11710 | _ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 11711 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11712 | if { (ac_try="$ac_link" |
| 11713 | case "(($ac_try" in |
| 11714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11715 | *) ac_try_echo=$ac_try;; |
| 11716 | esac |
| 11717 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11718 | $as_echo "$ac_try_echo") >&5 |
| 11719 | (eval "$ac_link") 2>conftest.er1 |
| 11720 | ac_status=$? |
| 11721 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11722 | rm -f conftest.er1 |
| 11723 | cat conftest.err >&5 |
| 11724 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11725 | (exit $ac_status); } && { |
| 11726 | test -z "$ac_c_werror_flag" || |
| 11727 | test ! -s conftest.err |
| 11728 | } && test -s conftest$ac_exeext && { |
| 11729 | test "$cross_compiling" = yes || |
| 11730 | $as_test_x conftest$ac_exeext |
| 11731 | }; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11732 | ac_cv_lib_dld_shl_load=yes |
| 11733 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 11734 | $as_echo "$as_me: failed program was:" >&5 |
| 11735 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11736 | |
| 11737 | ac_cv_lib_dld_shl_load=no |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11738 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 11739 | |
| 11740 | rm -rf conftest.dSYM |
| 11741 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 11742 | conftest$ac_exeext conftest.$ac_ext |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11743 | LIBS=$ac_check_lib_save_LIBS |
| 11744 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 11745 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 11746 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 11747 | if test $ac_cv_lib_dld_shl_load = yes; then |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 11748 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11749 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 11750 | { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 11751 | $as_echo_n "checking for dlopen... " >&6; } |
| 11752 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 11753 | $as_echo_n "(cached) " >&6 |
| 11754 | else |
| 11755 | cat >conftest.$ac_ext <<_ACEOF |
| 11756 | /* confdefs.h. */ |
| 11757 | _ACEOF |
| 11758 | cat confdefs.h >>conftest.$ac_ext |
| 11759 | cat >>conftest.$ac_ext <<_ACEOF |
| 11760 | /* end confdefs.h. */ |
| 11761 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 11762 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11763 | #define dlopen innocuous_dlopen |
| 11764 | |
| 11765 | /* System header to define __stub macros and hopefully few prototypes, |
| 11766 | which can conflict with char dlopen (); below. |
| 11767 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11768 | <limits.h> exists even on freestanding compilers. */ |
| 11769 | |
| 11770 | #ifdef __STDC__ |
| 11771 | # include <limits.h> |
| 11772 | #else |
| 11773 | # include <assert.h> |
| 11774 | #endif |
| 11775 | |
| 11776 | #undef dlopen |
| 11777 | |
| 11778 | /* Override any GCC internal prototype to avoid an error. |
| 11779 | Use char because int might match the return type of a GCC |
| 11780 | builtin and then its argument prototype would still apply. */ |
| 11781 | #ifdef __cplusplus |
| 11782 | extern "C" |
| 11783 | #endif |
| 11784 | char dlopen (); |
| 11785 | /* The GNU C library defines this for functions which it implements |
| 11786 | to always fail with ENOSYS. Some functions are actually named |
| 11787 | something starting with __ and the normal name is an alias. */ |
| 11788 | #if defined __stub_dlopen || defined __stub___dlopen |
| 11789 | choke me |
| 11790 | #endif |
| 11791 | |
| 11792 | int |
| 11793 | main () |
| 11794 | { |
| 11795 | return dlopen (); |
| 11796 | ; |
| 11797 | return 0; |
| 11798 | } |
| 11799 | _ACEOF |
| 11800 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11801 | if { (ac_try="$ac_link" |
| 11802 | case "(($ac_try" in |
| 11803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11804 | *) ac_try_echo=$ac_try;; |
| 11805 | esac |
| 11806 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11807 | $as_echo "$ac_try_echo") >&5 |
| 11808 | (eval "$ac_link") 2>conftest.er1 |
| 11809 | ac_status=$? |
| 11810 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11811 | rm -f conftest.er1 |
| 11812 | cat conftest.err >&5 |
| 11813 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11814 | (exit $ac_status); } && { |
| 11815 | test -z "$ac_c_werror_flag" || |
| 11816 | test ! -s conftest.err |
| 11817 | } && test -s conftest$ac_exeext && { |
| 11818 | test "$cross_compiling" = yes || |
| 11819 | $as_test_x conftest$ac_exeext |
| 11820 | }; then |
| 11821 | ac_cv_func_dlopen=yes |
| 11822 | else |
| 11823 | $as_echo "$as_me: failed program was:" >&5 |
| 11824 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11825 | |
| 11826 | ac_cv_func_dlopen=no |
| 11827 | fi |
| 11828 | |
| 11829 | rm -rf conftest.dSYM |
| 11830 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 11831 | conftest$ac_exeext conftest.$ac_ext |
| 11832 | fi |
| 11833 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 11834 | $as_echo "$ac_cv_func_dlopen" >&6; } |
| 11835 | if test $ac_cv_func_dlopen = yes; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11836 | lt_cv_dlopen="dlopen" |
| 11837 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 11838 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 11839 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 11840 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 11841 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11842 | else |
| 11843 | ac_check_lib_save_LIBS=$LIBS |
| 11844 | LIBS="-ldl $LIBS" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 11845 | cat >conftest.$ac_ext <<_ACEOF |
| 11846 | /* confdefs.h. */ |
| 11847 | _ACEOF |
| 11848 | cat confdefs.h >>conftest.$ac_ext |
| 11849 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11850 | /* end confdefs.h. */ |
| 11851 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 11852 | /* Override any GCC internal prototype to avoid an error. |
| 11853 | Use char because int might match the return type of a GCC |
| 11854 | builtin and then its argument prototype would still apply. */ |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11855 | #ifdef __cplusplus |
| 11856 | extern "C" |
| 11857 | #endif |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11858 | char dlopen (); |
| 11859 | int |
| 11860 | main () |
| 11861 | { |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 11862 | return dlopen (); |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11863 | ; |
| 11864 | return 0; |
| 11865 | } |
| 11866 | _ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 11867 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11868 | if { (ac_try="$ac_link" |
| 11869 | case "(($ac_try" in |
| 11870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11871 | *) ac_try_echo=$ac_try;; |
| 11872 | esac |
| 11873 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11874 | $as_echo "$ac_try_echo") >&5 |
| 11875 | (eval "$ac_link") 2>conftest.er1 |
| 11876 | ac_status=$? |
| 11877 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11878 | rm -f conftest.er1 |
| 11879 | cat conftest.err >&5 |
| 11880 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11881 | (exit $ac_status); } && { |
| 11882 | test -z "$ac_c_werror_flag" || |
| 11883 | test ! -s conftest.err |
| 11884 | } && test -s conftest$ac_exeext && { |
| 11885 | test "$cross_compiling" = yes || |
| 11886 | $as_test_x conftest$ac_exeext |
| 11887 | }; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11888 | ac_cv_lib_dl_dlopen=yes |
| 11889 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 11890 | $as_echo "$as_me: failed program was:" >&5 |
| 11891 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11892 | |
| 11893 | ac_cv_lib_dl_dlopen=no |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11894 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 11895 | |
| 11896 | rm -rf conftest.dSYM |
| 11897 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 11898 | conftest$ac_exeext conftest.$ac_ext |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11899 | LIBS=$ac_check_lib_save_LIBS |
| 11900 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 11901 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 11902 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 11903 | if test $ac_cv_lib_dl_dlopen = yes; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11904 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 11905 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 11906 | { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 11907 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 11908 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 11909 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11910 | else |
| 11911 | ac_check_lib_save_LIBS=$LIBS |
| 11912 | LIBS="-lsvld $LIBS" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 11913 | cat >conftest.$ac_ext <<_ACEOF |
| 11914 | /* confdefs.h. */ |
| 11915 | _ACEOF |
| 11916 | cat confdefs.h >>conftest.$ac_ext |
| 11917 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11918 | /* end confdefs.h. */ |
| 11919 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 11920 | /* Override any GCC internal prototype to avoid an error. |
| 11921 | Use char because int might match the return type of a GCC |
| 11922 | builtin and then its argument prototype would still apply. */ |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11923 | #ifdef __cplusplus |
| 11924 | extern "C" |
| 11925 | #endif |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11926 | char dlopen (); |
| 11927 | int |
| 11928 | main () |
| 11929 | { |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 11930 | return dlopen (); |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11931 | ; |
| 11932 | return 0; |
| 11933 | } |
| 11934 | _ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 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 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11956 | ac_cv_lib_svld_dlopen=yes |
| 11957 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 11958 | $as_echo "$as_me: failed program was:" >&5 |
| 11959 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11960 | |
| 11961 | ac_cv_lib_svld_dlopen=no |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11962 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 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 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11967 | LIBS=$ac_check_lib_save_LIBS |
| 11968 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 11969 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 11970 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 11971 | if test $ac_cv_lib_svld_dlopen = yes; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11972 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 11973 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 11974 | { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 11975 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 11976 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 11977 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11978 | else |
| 11979 | ac_check_lib_save_LIBS=$LIBS |
| 11980 | LIBS="-ldld $LIBS" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 11981 | cat >conftest.$ac_ext <<_ACEOF |
| 11982 | /* confdefs.h. */ |
| 11983 | _ACEOF |
| 11984 | cat confdefs.h >>conftest.$ac_ext |
| 11985 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11986 | /* end confdefs.h. */ |
| 11987 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 11988 | /* Override any GCC internal prototype to avoid an error. |
| 11989 | Use char because int might match the return type of a GCC |
| 11990 | builtin and then its argument prototype would still apply. */ |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11991 | #ifdef __cplusplus |
| 11992 | extern "C" |
| 11993 | #endif |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11994 | char dld_link (); |
| 11995 | int |
| 11996 | main () |
| 11997 | { |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 11998 | return dld_link (); |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 11999 | ; |
| 12000 | return 0; |
| 12001 | } |
| 12002 | _ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 12003 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12004 | if { (ac_try="$ac_link" |
| 12005 | case "(($ac_try" in |
| 12006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12007 | *) ac_try_echo=$ac_try;; |
| 12008 | esac |
| 12009 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12010 | $as_echo "$ac_try_echo") >&5 |
| 12011 | (eval "$ac_link") 2>conftest.er1 |
| 12012 | ac_status=$? |
| 12013 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12014 | rm -f conftest.er1 |
| 12015 | cat conftest.err >&5 |
| 12016 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12017 | (exit $ac_status); } && { |
| 12018 | test -z "$ac_c_werror_flag" || |
| 12019 | test ! -s conftest.err |
| 12020 | } && test -s conftest$ac_exeext && { |
| 12021 | test "$cross_compiling" = yes || |
| 12022 | $as_test_x conftest$ac_exeext |
| 12023 | }; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12024 | ac_cv_lib_dld_dld_link=yes |
| 12025 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 12026 | $as_echo "$as_me: failed program was:" >&5 |
| 12027 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12028 | |
| 12029 | ac_cv_lib_dld_dld_link=no |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12030 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 12031 | |
| 12032 | rm -rf conftest.dSYM |
| 12033 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 12034 | conftest$ac_exeext conftest.$ac_ext |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12035 | LIBS=$ac_check_lib_save_LIBS |
| 12036 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 12037 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 12038 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 12039 | if test $ac_cv_lib_dld_dld_link = yes; then |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 12040 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12041 | fi |
| 12042 | |
| 12043 | |
| 12044 | fi |
| 12045 | |
| 12046 | |
| 12047 | fi |
| 12048 | |
| 12049 | |
| 12050 | fi |
| 12051 | |
| 12052 | |
| 12053 | fi |
| 12054 | |
| 12055 | |
| 12056 | fi |
| 12057 | |
| 12058 | ;; |
| 12059 | esac |
| 12060 | |
| 12061 | if test "x$lt_cv_dlopen" != xno; then |
| 12062 | enable_dlopen=yes |
| 12063 | else |
| 12064 | enable_dlopen=no |
| 12065 | fi |
| 12066 | |
| 12067 | case $lt_cv_dlopen in |
| 12068 | dlopen) |
| 12069 | save_CPPFLAGS="$CPPFLAGS" |
| 12070 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 12071 | |
| 12072 | save_LDFLAGS="$LDFLAGS" |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 12073 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12074 | |
| 12075 | save_LIBS="$LIBS" |
| 12076 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 12077 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 12078 | { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 12079 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 12080 | if test "${lt_cv_dlopen_self+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 12081 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12082 | else |
| 12083 | if test "$cross_compiling" = yes; then : |
| 12084 | lt_cv_dlopen_self=cross |
| 12085 | else |
| 12086 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 12087 | lt_status=$lt_dlunknown |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12088 | cat > conftest.$ac_ext <<_LT_EOF |
Craig Silverstein | 357b3d9 | 2011-07-29 22:49:50 +0000 | [diff] [blame] | 12089 | #line 12089 "configure" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12090 | #include "confdefs.h" |
| 12091 | |
| 12092 | #if HAVE_DLFCN_H |
| 12093 | #include <dlfcn.h> |
| 12094 | #endif |
| 12095 | |
| 12096 | #include <stdio.h> |
| 12097 | |
| 12098 | #ifdef RTLD_GLOBAL |
| 12099 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 12100 | #else |
| 12101 | # ifdef DL_GLOBAL |
| 12102 | # define LT_DLGLOBAL DL_GLOBAL |
| 12103 | # else |
| 12104 | # define LT_DLGLOBAL 0 |
| 12105 | # endif |
| 12106 | #endif |
| 12107 | |
| 12108 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 12109 | find out it does not work in some platform. */ |
| 12110 | #ifndef LT_DLLAZY_OR_NOW |
| 12111 | # ifdef RTLD_LAZY |
| 12112 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 12113 | # else |
| 12114 | # ifdef DL_LAZY |
| 12115 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 12116 | # else |
| 12117 | # ifdef RTLD_NOW |
| 12118 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 12119 | # else |
| 12120 | # ifdef DL_NOW |
| 12121 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 12122 | # else |
| 12123 | # define LT_DLLAZY_OR_NOW 0 |
| 12124 | # endif |
| 12125 | # endif |
| 12126 | # endif |
| 12127 | # endif |
| 12128 | #endif |
| 12129 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12130 | void fnord() { int i=42;} |
| 12131 | int main () |
| 12132 | { |
| 12133 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 12134 | int status = $lt_dlunknown; |
| 12135 | |
| 12136 | if (self) |
| 12137 | { |
| 12138 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 12139 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 12140 | /* dlclose (self); */ |
| 12141 | } |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 12142 | else |
| 12143 | puts (dlerror ()); |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12144 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12145 | return status; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12146 | } |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12147 | _LT_EOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 12148 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12149 | (eval $ac_link) 2>&5 |
| 12150 | ac_status=$? |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 12151 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12152 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 12153 | (./conftest; exit; ) >&5 2>/dev/null |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12154 | lt_status=$? |
| 12155 | case x$lt_status in |
| 12156 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 12157 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 12158 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12159 | esac |
| 12160 | else : |
| 12161 | # compilation failed |
| 12162 | lt_cv_dlopen_self=no |
| 12163 | fi |
| 12164 | fi |
| 12165 | rm -fr conftest* |
| 12166 | |
| 12167 | |
| 12168 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 12169 | { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 12170 | $as_echo "$lt_cv_dlopen_self" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12171 | |
| 12172 | if test "x$lt_cv_dlopen_self" = xyes; then |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 12173 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 12174 | { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 12175 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 12176 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 12177 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12178 | else |
| 12179 | if test "$cross_compiling" = yes; then : |
| 12180 | lt_cv_dlopen_self_static=cross |
| 12181 | else |
| 12182 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 12183 | lt_status=$lt_dlunknown |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12184 | cat > conftest.$ac_ext <<_LT_EOF |
Craig Silverstein | 357b3d9 | 2011-07-29 22:49:50 +0000 | [diff] [blame] | 12185 | #line 12185 "configure" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12186 | #include "confdefs.h" |
| 12187 | |
| 12188 | #if HAVE_DLFCN_H |
| 12189 | #include <dlfcn.h> |
| 12190 | #endif |
| 12191 | |
| 12192 | #include <stdio.h> |
| 12193 | |
| 12194 | #ifdef RTLD_GLOBAL |
| 12195 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 12196 | #else |
| 12197 | # ifdef DL_GLOBAL |
| 12198 | # define LT_DLGLOBAL DL_GLOBAL |
| 12199 | # else |
| 12200 | # define LT_DLGLOBAL 0 |
| 12201 | # endif |
| 12202 | #endif |
| 12203 | |
| 12204 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 12205 | find out it does not work in some platform. */ |
| 12206 | #ifndef LT_DLLAZY_OR_NOW |
| 12207 | # ifdef RTLD_LAZY |
| 12208 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 12209 | # else |
| 12210 | # ifdef DL_LAZY |
| 12211 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 12212 | # else |
| 12213 | # ifdef RTLD_NOW |
| 12214 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 12215 | # else |
| 12216 | # ifdef DL_NOW |
| 12217 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 12218 | # else |
| 12219 | # define LT_DLLAZY_OR_NOW 0 |
| 12220 | # endif |
| 12221 | # endif |
| 12222 | # endif |
| 12223 | # endif |
| 12224 | #endif |
| 12225 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12226 | void fnord() { int i=42;} |
| 12227 | int main () |
| 12228 | { |
| 12229 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 12230 | int status = $lt_dlunknown; |
| 12231 | |
| 12232 | if (self) |
| 12233 | { |
| 12234 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 12235 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 12236 | /* dlclose (self); */ |
| 12237 | } |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 12238 | else |
| 12239 | puts (dlerror ()); |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12240 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12241 | return status; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12242 | } |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12243 | _LT_EOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 12244 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12245 | (eval $ac_link) 2>&5 |
| 12246 | ac_status=$? |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 12247 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12248 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 12249 | (./conftest; exit; ) >&5 2>/dev/null |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12250 | lt_status=$? |
| 12251 | case x$lt_status in |
| 12252 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 12253 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 12254 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12255 | esac |
| 12256 | else : |
| 12257 | # compilation failed |
| 12258 | lt_cv_dlopen_self_static=no |
| 12259 | fi |
| 12260 | fi |
| 12261 | rm -fr conftest* |
| 12262 | |
| 12263 | |
| 12264 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 12265 | { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 12266 | $as_echo "$lt_cv_dlopen_self_static" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12267 | fi |
| 12268 | |
| 12269 | CPPFLAGS="$save_CPPFLAGS" |
| 12270 | LDFLAGS="$save_LDFLAGS" |
| 12271 | LIBS="$save_LIBS" |
| 12272 | ;; |
| 12273 | esac |
| 12274 | |
| 12275 | case $lt_cv_dlopen_self in |
| 12276 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 12277 | *) enable_dlopen_self=unknown ;; |
| 12278 | esac |
| 12279 | |
| 12280 | case $lt_cv_dlopen_self_static in |
| 12281 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 12282 | *) enable_dlopen_self_static=unknown ;; |
| 12283 | esac |
| 12284 | fi |
| 12285 | |
| 12286 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12287 | |
| 12288 | |
| 12289 | |
| 12290 | |
| 12291 | |
| 12292 | |
| 12293 | |
| 12294 | |
| 12295 | |
| 12296 | |
| 12297 | |
| 12298 | |
| 12299 | |
| 12300 | |
| 12301 | |
| 12302 | striplib= |
| 12303 | old_striplib= |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 12304 | { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12305 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } |
| 12306 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
| 12307 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 12308 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 12309 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12310 | $as_echo "yes" >&6; } |
| 12311 | else |
| 12312 | # FIXME - insert some real tests, host_os isn't really good enough |
| 12313 | case $host_os in |
| 12314 | darwin*) |
| 12315 | if test -n "$STRIP" ; then |
| 12316 | striplib="$STRIP -x" |
| 12317 | old_striplib="$STRIP -S" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 12318 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12319 | $as_echo "yes" >&6; } |
| 12320 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 12321 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12322 | $as_echo "no" >&6; } |
| 12323 | fi |
| 12324 | ;; |
| 12325 | *) |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 12326 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12327 | $as_echo "no" >&6; } |
| 12328 | ;; |
| 12329 | esac |
| 12330 | fi |
| 12331 | |
| 12332 | |
| 12333 | |
| 12334 | |
| 12335 | |
| 12336 | |
| 12337 | |
| 12338 | |
| 12339 | |
| 12340 | |
| 12341 | |
| 12342 | |
| 12343 | # Report which library types will actually be built |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 12344 | { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 12345 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 12346 | { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 12347 | $as_echo "$can_build_shared" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12348 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 12349 | { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 12350 | $as_echo_n "checking whether to build shared libraries... " >&6; } |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12351 | test "$can_build_shared" = "no" && enable_shared=no |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12352 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12353 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 12354 | # are all built from PIC. |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12355 | case $host_os in |
| 12356 | aix3*) |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12357 | test "$enable_shared" = yes && enable_static=no |
| 12358 | if test -n "$RANLIB"; then |
| 12359 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 12360 | postinstall_cmds='$RANLIB $lib' |
| 12361 | fi |
| 12362 | ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12363 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12364 | aix[4-9]*) |
| 12365 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 12366 | test "$enable_shared" = yes && enable_static=no |
| 12367 | fi |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12368 | ;; |
| 12369 | esac |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 12370 | { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12371 | $as_echo "$enable_shared" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12372 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 12373 | { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12374 | $as_echo_n "checking whether to build static libraries... " >&6; } |
| 12375 | # Make sure either enable_shared or enable_static is yes. |
| 12376 | test "$enable_shared" = yes || enable_static=yes |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 12377 | { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12378 | $as_echo "$enable_static" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12379 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12380 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12381 | |
| 12382 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12383 | fi |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12384 | ac_ext=c |
| 12385 | ac_cpp='$CPP $CPPFLAGS' |
| 12386 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12387 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12388 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12389 | |
| 12390 | CC="$lt_save_CC" |
| 12391 | |
| 12392 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12393 | ac_ext=cpp |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12394 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 12395 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12396 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12397 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 12398 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12399 | archive_cmds_need_lc_CXX=no |
| 12400 | allow_undefined_flag_CXX= |
| 12401 | always_export_symbols_CXX=no |
| 12402 | archive_expsym_cmds_CXX= |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12403 | compiler_needs_object_CXX=no |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12404 | export_dynamic_flag_spec_CXX= |
| 12405 | hardcode_direct_CXX=no |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12406 | hardcode_direct_absolute_CXX=no |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12407 | hardcode_libdir_flag_spec_CXX= |
| 12408 | hardcode_libdir_flag_spec_ld_CXX= |
| 12409 | hardcode_libdir_separator_CXX= |
| 12410 | hardcode_minus_L_CXX=no |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 12411 | hardcode_shlibpath_var_CXX=unsupported |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12412 | hardcode_automatic_CXX=no |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12413 | inherit_rpath_CXX=no |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12414 | module_cmds_CXX= |
| 12415 | module_expsym_cmds_CXX= |
| 12416 | link_all_deplibs_CXX=unknown |
| 12417 | old_archive_cmds_CXX=$old_archive_cmds |
| 12418 | no_undefined_flag_CXX= |
| 12419 | whole_archive_flag_spec_CXX= |
| 12420 | enable_shared_with_static_runtimes_CXX=no |
| 12421 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12422 | # Source file extension for C++ test sources. |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 12423 | ac_ext=cpp |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12424 | |
| 12425 | # Object file extension for compiled C++ test sources. |
| 12426 | objext=o |
| 12427 | objext_CXX=$objext |
| 12428 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12429 | # No sense in running all these tests if we already determined that |
| 12430 | # the CXX compiler isn't working. Some variables (like enable_shared) |
| 12431 | # are currently assumed to apply to all compilers on this platform, |
| 12432 | # and will be corrupted by setting them based on a non-working compiler. |
| 12433 | if test "$_lt_caught_CXX_error" != yes; then |
| 12434 | # Code to be used in simple compile tests |
| 12435 | lt_simple_compile_test_code="int some_variable = 0;" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12436 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12437 | # Code to be used in simple link tests |
| 12438 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12439 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12440 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 12441 | |
| 12442 | |
| 12443 | |
| 12444 | |
| 12445 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12446 | |
| 12447 | # If no C compiler was specified, use CC. |
| 12448 | LTCC=${LTCC-"$CC"} |
| 12449 | |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 12450 | # If no C compiler flags were specified, use CFLAGS. |
| 12451 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 12452 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12453 | # Allow CC to be a program name with arguments. |
| 12454 | compiler=$CC |
| 12455 | |
| 12456 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12457 | # save warnings/boilerplate of simple test code |
| 12458 | ac_outfile=conftest.$ac_objext |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 12459 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 12460 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 12461 | _lt_compiler_boilerplate=`cat conftest.err` |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12462 | $RM conftest* |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 12463 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12464 | ac_outfile=conftest.$ac_objext |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 12465 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 12466 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 12467 | _lt_linker_boilerplate=`cat conftest.err` |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12468 | $RM -r conftest* |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 12469 | |
| 12470 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12471 | # Allow CC to be a program name with arguments. |
| 12472 | lt_save_CC=$CC |
| 12473 | lt_save_LD=$LD |
| 12474 | lt_save_GCC=$GCC |
| 12475 | GCC=$GXX |
| 12476 | lt_save_with_gnu_ld=$with_gnu_ld |
| 12477 | lt_save_path_LD=$lt_cv_path_LD |
| 12478 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 12479 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 12480 | else |
| 12481 | $as_unset lt_cv_prog_gnu_ld |
| 12482 | fi |
| 12483 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 12484 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 12485 | else |
| 12486 | $as_unset lt_cv_path_LD |
| 12487 | fi |
| 12488 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 12489 | CC=${CXX-"c++"} |
| 12490 | compiler=$CC |
| 12491 | compiler_CXX=$CC |
| 12492 | for cc_temp in $compiler""; do |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 12493 | case $cc_temp in |
| 12494 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 12495 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 12496 | \-*) ;; |
| 12497 | *) break;; |
| 12498 | esac |
| 12499 | done |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12500 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 12501 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12502 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12503 | if test -n "$compiler"; then |
| 12504 | # We don't want -fno-exception when compiling C++ code, so set the |
| 12505 | # no_builtin_flag separately |
| 12506 | if test "$GXX" = yes; then |
| 12507 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 12508 | else |
| 12509 | lt_prog_compiler_no_builtin_flag_CXX= |
| 12510 | fi |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12511 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12512 | if test "$GXX" = yes; then |
| 12513 | # Set up default GNU C++ configuration |
| 12514 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12515 | |
| 12516 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 12517 | # Check whether --with-gnu-ld was given. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 12518 | if test "${with_gnu_ld+set}" = set; then |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 12519 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12520 | else |
| 12521 | with_gnu_ld=no |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 12522 | fi |
| 12523 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12524 | ac_prog=ld |
| 12525 | if test "$GCC" = yes; then |
| 12526 | # Check if gcc -print-prog-name=ld gives a path. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 12527 | { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 12528 | $as_echo_n "checking for ld used by $CC... " >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12529 | case $host in |
| 12530 | *-*-mingw*) |
| 12531 | # gcc leaves a trailing carriage return which upsets mingw |
| 12532 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 12533 | *) |
| 12534 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 12535 | esac |
| 12536 | case $ac_prog in |
| 12537 | # Accept absolute paths. |
| 12538 | [\\/]* | ?:[\\/]*) |
| 12539 | re_direlt='/[^/][^/]*/\.\./' |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 12540 | # Canonicalize the pathname of ld |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12541 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 12542 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 12543 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12544 | done |
| 12545 | test -z "$LD" && LD="$ac_prog" |
| 12546 | ;; |
| 12547 | "") |
| 12548 | # If it fails, then pretend we aren't using GCC. |
| 12549 | ac_prog=ld |
| 12550 | ;; |
| 12551 | *) |
| 12552 | # If it is relative, then search for the first ld in PATH. |
| 12553 | with_gnu_ld=unknown |
| 12554 | ;; |
| 12555 | esac |
| 12556 | elif test "$with_gnu_ld" = yes; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 12557 | { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 12558 | $as_echo_n "checking for GNU ld... " >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12559 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 12560 | { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 12561 | $as_echo_n "checking for non-GNU ld... " >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12562 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 12563 | if test "${lt_cv_path_LD+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 12564 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12565 | else |
| 12566 | if test -z "$LD"; then |
| 12567 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 12568 | for ac_dir in $PATH; do |
| 12569 | IFS="$lt_save_ifs" |
| 12570 | test -z "$ac_dir" && ac_dir=. |
| 12571 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 12572 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 12573 | # Check to see if the program is GNU ld. I'd rather use --version, |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 12574 | # but apparently some variants of GNU ld only accept -v. |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12575 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 12576 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 12577 | *GNU* | *'with BFD'*) |
| 12578 | test "$with_gnu_ld" != no && break |
| 12579 | ;; |
| 12580 | *) |
| 12581 | test "$with_gnu_ld" != yes && break |
| 12582 | ;; |
| 12583 | esac |
| 12584 | fi |
| 12585 | done |
| 12586 | IFS="$lt_save_ifs" |
| 12587 | else |
| 12588 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 12589 | fi |
| 12590 | fi |
| 12591 | |
| 12592 | LD="$lt_cv_path_LD" |
| 12593 | if test -n "$LD"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 12594 | { $as_echo "$as_me:$LINENO: result: $LD" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 12595 | $as_echo "$LD" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12596 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 12597 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 12598 | $as_echo "no" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12599 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 12600 | test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 12601 | $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 12602 | { (exit 1); exit 1; }; } |
| 12603 | { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 12604 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 12605 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 12606 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12607 | else |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 12608 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12609 | case `$LD -v 2>&1 </dev/null` in |
| 12610 | *GNU* | *'with BFD'*) |
| 12611 | lt_cv_prog_gnu_ld=yes |
| 12612 | ;; |
| 12613 | *) |
| 12614 | lt_cv_prog_gnu_ld=no |
| 12615 | ;; |
| 12616 | esac |
| 12617 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 12618 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 12619 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12620 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 12621 | |
| 12622 | |
| 12623 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12624 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12625 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12626 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12627 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12628 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 12629 | # archiving commands below assume that GNU ld is being used. |
| 12630 | if test "$with_gnu_ld" = yes; then |
| 12631 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12632 | archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12633 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12634 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 12635 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12636 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12637 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 12638 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 12639 | # investigate it a little bit more. (MM) |
| 12640 | wlarc='${wl}' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12641 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12642 | # ancient GNU ld didn't support --whole-archive et. al. |
| 12643 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | |
| 12644 | $GREP 'no-whole-archive' > /dev/null; then |
| 12645 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 12646 | else |
| 12647 | whole_archive_flag_spec_CXX= |
| 12648 | fi |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12649 | else |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12650 | with_gnu_ld=no |
| 12651 | wlarc= |
| 12652 | |
| 12653 | # A generic and very simple default shared library creation |
| 12654 | # command for GNU C++ for the case where it uses the native |
| 12655 | # linker, instead of GNU ld. If possible, this setting should |
| 12656 | # overridden to take advantage of the native linker features on |
| 12657 | # the platform it is being used on. |
| 12658 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12659 | fi |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12660 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12661 | # Commands to make compiler produce verbose output that lists |
| 12662 | # what "hidden" libraries, object files and flags are used when |
| 12663 | # linking a shared library. |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12664 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
| 12665 | |
| 12666 | else |
| 12667 | GXX=no |
| 12668 | with_gnu_ld=no |
| 12669 | wlarc= |
| 12670 | fi |
| 12671 | |
| 12672 | # PORTME: fill in a description of your system's C++ link characteristics |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 12673 | { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12674 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 12675 | ld_shlibs_CXX=yes |
| 12676 | case $host_os in |
| 12677 | aix3*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12678 | # FIXME: insert proper C++ library support |
| 12679 | ld_shlibs_CXX=no |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12680 | ;; |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12681 | aix[4-9]*) |
| 12682 | if test "$host_cpu" = ia64; then |
| 12683 | # On IA64, the linker does run time linking by default, so we don't |
| 12684 | # have to do anything special. |
| 12685 | aix_use_runtimelinking=no |
| 12686 | exp_sym_flag='-Bexport' |
| 12687 | no_entry_flag="" |
| 12688 | else |
| 12689 | aix_use_runtimelinking=no |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12690 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12691 | # Test if we are trying to use run time linking or normal |
| 12692 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 12693 | # need to do runtime linking. |
| 12694 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 12695 | for ld_flag in $LDFLAGS; do |
| 12696 | case $ld_flag in |
| 12697 | *-brtl*) |
| 12698 | aix_use_runtimelinking=yes |
| 12699 | break |
| 12700 | ;; |
| 12701 | esac |
| 12702 | done |
| 12703 | ;; |
| 12704 | esac |
| 12705 | |
| 12706 | exp_sym_flag='-bexport' |
| 12707 | no_entry_flag='-bnoentry' |
| 12708 | fi |
| 12709 | |
| 12710 | # When large executables or shared objects are built, AIX ld can |
| 12711 | # have problems creating the table of contents. If linking a library |
| 12712 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 12713 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 12714 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 12715 | |
| 12716 | archive_cmds_CXX='' |
| 12717 | hardcode_direct_CXX=yes |
| 12718 | hardcode_direct_absolute_CXX=yes |
| 12719 | hardcode_libdir_separator_CXX=':' |
| 12720 | link_all_deplibs_CXX=yes |
| 12721 | file_list_spec_CXX='${wl}-f,' |
| 12722 | |
| 12723 | if test "$GXX" = yes; then |
| 12724 | case $host_os in aix4.[012]|aix4.[012].*) |
| 12725 | # We only want to do this on AIX 4.2 and lower, the check |
| 12726 | # below for broken collect2 doesn't work under 4.3+ |
| 12727 | collect2name=`${CC} -print-prog-name=collect2` |
| 12728 | if test -f "$collect2name" && |
| 12729 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 12730 | then |
| 12731 | # We have reworked collect2 |
| 12732 | : |
| 12733 | else |
| 12734 | # We have old collect2 |
| 12735 | hardcode_direct_CXX=unsupported |
| 12736 | # It fails to find uninstalled libraries when the uninstalled |
| 12737 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 12738 | # to unsupported forces relinking |
| 12739 | hardcode_minus_L_CXX=yes |
| 12740 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 12741 | hardcode_libdir_separator_CXX= |
| 12742 | fi |
| 12743 | esac |
| 12744 | shared_flag='-shared' |
| 12745 | if test "$aix_use_runtimelinking" = yes; then |
| 12746 | shared_flag="$shared_flag "'${wl}-G' |
| 12747 | fi |
| 12748 | else |
| 12749 | # not using gcc |
| 12750 | if test "$host_cpu" = ia64; then |
| 12751 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 12752 | # chokes on -Wl,-G. The following line is correct: |
| 12753 | shared_flag='-G' |
| 12754 | else |
| 12755 | if test "$aix_use_runtimelinking" = yes; then |
| 12756 | shared_flag='${wl}-G' |
| 12757 | else |
| 12758 | shared_flag='${wl}-bM:SRE' |
| 12759 | fi |
| 12760 | fi |
| 12761 | fi |
| 12762 | |
| 12763 | export_dynamic_flag_spec_CXX='${wl}-bexpall' |
| 12764 | # It seems that -bexpall does not export symbols beginning with |
| 12765 | # underscore (_), so it is better to generate a list of symbols to |
| 12766 | # export. |
| 12767 | always_export_symbols_CXX=yes |
| 12768 | if test "$aix_use_runtimelinking" = yes; then |
| 12769 | # Warning - without using the other runtime loading flags (-brtl), |
| 12770 | # -berok will link without error, but may produce a broken library. |
| 12771 | allow_undefined_flag_CXX='-berok' |
| 12772 | # Determine the default libpath from the value encoded in an empty |
| 12773 | # executable. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 12774 | cat >conftest.$ac_ext <<_ACEOF |
| 12775 | /* confdefs.h. */ |
| 12776 | _ACEOF |
| 12777 | cat confdefs.h >>conftest.$ac_ext |
| 12778 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12779 | /* end confdefs.h. */ |
| 12780 | |
| 12781 | int |
| 12782 | main () |
| 12783 | { |
| 12784 | |
| 12785 | ; |
| 12786 | return 0; |
| 12787 | } |
| 12788 | _ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 12789 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12790 | if { (ac_try="$ac_link" |
| 12791 | case "(($ac_try" in |
| 12792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12793 | *) ac_try_echo=$ac_try;; |
| 12794 | esac |
| 12795 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12796 | $as_echo "$ac_try_echo") >&5 |
| 12797 | (eval "$ac_link") 2>conftest.er1 |
| 12798 | ac_status=$? |
| 12799 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12800 | rm -f conftest.er1 |
| 12801 | cat conftest.err >&5 |
| 12802 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12803 | (exit $ac_status); } && { |
| 12804 | test -z "$ac_cxx_werror_flag" || |
| 12805 | test ! -s conftest.err |
| 12806 | } && test -s conftest$ac_exeext && { |
| 12807 | test "$cross_compiling" = yes || |
| 12808 | $as_test_x conftest$ac_exeext |
| 12809 | }; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12810 | |
| 12811 | lt_aix_libpath_sed=' |
| 12812 | /Import File Strings/,/^$/ { |
| 12813 | /^0/ { |
| 12814 | s/^0 *\(.*\)$/\1/ |
| 12815 | p |
| 12816 | } |
| 12817 | }' |
| 12818 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 12819 | # Check for a 64-bit object if we didn't find anything. |
| 12820 | if test -z "$aix_libpath"; then |
| 12821 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 12822 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 12823 | else |
| 12824 | $as_echo "$as_me: failed program was:" >&5 |
| 12825 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12826 | |
| 12827 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12828 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 12829 | |
| 12830 | rm -rf conftest.dSYM |
| 12831 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 12832 | conftest$ac_exeext conftest.$ac_ext |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12833 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 12834 | |
| 12835 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 12836 | |
| 12837 | archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 12838 | else |
| 12839 | if test "$host_cpu" = ia64; then |
| 12840 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 12841 | allow_undefined_flag_CXX="-z nodefs" |
| 12842 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
| 12843 | else |
| 12844 | # Determine the default libpath from the value encoded in an |
| 12845 | # empty executable. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 12846 | cat >conftest.$ac_ext <<_ACEOF |
| 12847 | /* confdefs.h. */ |
| 12848 | _ACEOF |
| 12849 | cat confdefs.h >>conftest.$ac_ext |
| 12850 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12851 | /* end confdefs.h. */ |
| 12852 | |
| 12853 | int |
| 12854 | main () |
| 12855 | { |
| 12856 | |
| 12857 | ; |
| 12858 | return 0; |
| 12859 | } |
| 12860 | _ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 12861 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12862 | if { (ac_try="$ac_link" |
| 12863 | case "(($ac_try" in |
| 12864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12865 | *) ac_try_echo=$ac_try;; |
| 12866 | esac |
| 12867 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12868 | $as_echo "$ac_try_echo") >&5 |
| 12869 | (eval "$ac_link") 2>conftest.er1 |
| 12870 | ac_status=$? |
| 12871 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12872 | rm -f conftest.er1 |
| 12873 | cat conftest.err >&5 |
| 12874 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12875 | (exit $ac_status); } && { |
| 12876 | test -z "$ac_cxx_werror_flag" || |
| 12877 | test ! -s conftest.err |
| 12878 | } && test -s conftest$ac_exeext && { |
| 12879 | test "$cross_compiling" = yes || |
| 12880 | $as_test_x conftest$ac_exeext |
| 12881 | }; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12882 | |
| 12883 | lt_aix_libpath_sed=' |
| 12884 | /Import File Strings/,/^$/ { |
| 12885 | /^0/ { |
| 12886 | s/^0 *\(.*\)$/\1/ |
| 12887 | p |
| 12888 | } |
| 12889 | }' |
| 12890 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 12891 | # Check for a 64-bit object if we didn't find anything. |
| 12892 | if test -z "$aix_libpath"; then |
| 12893 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 12894 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 12895 | else |
| 12896 | $as_echo "$as_me: failed program was:" >&5 |
| 12897 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12898 | |
| 12899 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12900 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 12901 | |
| 12902 | rm -rf conftest.dSYM |
| 12903 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 12904 | conftest$ac_exeext conftest.$ac_ext |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12905 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 12906 | |
| 12907 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 12908 | # Warning - without using the other run time loading flags, |
| 12909 | # -berok will link without error, but may produce a broken library. |
| 12910 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 12911 | allow_undefined_flag_CXX=' ${wl}-berok' |
| 12912 | # Exported symbols can be pulled into shared objects from archives |
| 12913 | whole_archive_flag_spec_CXX='$convenience' |
| 12914 | archive_cmds_need_lc_CXX=yes |
| 12915 | # This is similar to how AIX traditionally builds its shared |
| 12916 | # libraries. |
| 12917 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 12918 | fi |
| 12919 | fi |
| 12920 | ;; |
| 12921 | |
| 12922 | beos*) |
| 12923 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 12924 | allow_undefined_flag_CXX=unsupported |
| 12925 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 12926 | # support --undefined. This deserves some investigation. FIXME |
| 12927 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12928 | else |
| 12929 | ld_shlibs_CXX=no |
| 12930 | fi |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12931 | ;; |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12932 | |
| 12933 | chorus*) |
| 12934 | case $cc_basename in |
| 12935 | *) |
| 12936 | # FIXME: insert proper C++ library support |
| 12937 | ld_shlibs_CXX=no |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 12938 | ;; |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12939 | esac |
| 12940 | ;; |
| 12941 | |
| 12942 | cygwin* | mingw* | pw32* | cegcc*) |
| 12943 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 12944 | # as there is no search path for DLLs. |
| 12945 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 12946 | allow_undefined_flag_CXX=unsupported |
| 12947 | always_export_symbols_CXX=no |
| 12948 | enable_shared_with_static_runtimes_CXX=yes |
| 12949 | |
| 12950 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 12951 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 12952 | # If the export-symbols file already is a .def file (1st line |
| 12953 | # is EXPORTS), use it as is; otherwise, prepend... |
| 12954 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 12955 | cp $export_symbols $output_objdir/$soname.def; |
| 12956 | else |
| 12957 | echo EXPORTS > $output_objdir/$soname.def; |
| 12958 | cat $export_symbols >> $output_objdir/$soname.def; |
| 12959 | fi~ |
| 12960 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 12961 | else |
| 12962 | ld_shlibs_CXX=no |
| 12963 | fi |
| 12964 | ;; |
| 12965 | darwin* | rhapsody*) |
| 12966 | |
| 12967 | |
| 12968 | archive_cmds_need_lc_CXX=no |
| 12969 | hardcode_direct_CXX=no |
| 12970 | hardcode_automatic_CXX=yes |
| 12971 | hardcode_shlibpath_var_CXX=unsupported |
| 12972 | whole_archive_flag_spec_CXX='' |
| 12973 | link_all_deplibs_CXX=yes |
| 12974 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" |
| 12975 | case $cc_basename in |
| 12976 | ifort*) _lt_dar_can_shared=yes ;; |
| 12977 | *) _lt_dar_can_shared=$GCC ;; |
| 12978 | esac |
| 12979 | if test "$_lt_dar_can_shared" = "yes"; then |
| 12980 | output_verbose_link_cmd=echo |
| 12981 | archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
| 12982 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 12983 | archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" |
| 12984 | module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" |
| 12985 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then |
| 12986 | archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" |
| 12987 | archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" |
| 12988 | fi |
| 12989 | |
| 12990 | else |
| 12991 | ld_shlibs_CXX=no |
| 12992 | fi |
| 12993 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 12994 | ;; |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 12995 | |
| 12996 | dgux*) |
| 12997 | case $cc_basename in |
| 12998 | ec++*) |
| 12999 | # FIXME: insert proper C++ library support |
| 13000 | ld_shlibs_CXX=no |
| 13001 | ;; |
| 13002 | ghcx*) |
| 13003 | # Green Hills C++ Compiler |
| 13004 | # FIXME: insert proper C++ library support |
| 13005 | ld_shlibs_CXX=no |
| 13006 | ;; |
| 13007 | *) |
| 13008 | # FIXME: insert proper C++ library support |
| 13009 | ld_shlibs_CXX=no |
| 13010 | ;; |
| 13011 | esac |
| 13012 | ;; |
| 13013 | |
| 13014 | freebsd[12]*) |
| 13015 | # C++ shared libraries reported to be fairly broken before |
| 13016 | # switch to ELF |
| 13017 | ld_shlibs_CXX=no |
| 13018 | ;; |
| 13019 | |
| 13020 | freebsd-elf*) |
| 13021 | archive_cmds_need_lc_CXX=no |
| 13022 | ;; |
| 13023 | |
| 13024 | freebsd* | dragonfly*) |
| 13025 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 13026 | # conventions |
| 13027 | ld_shlibs_CXX=yes |
| 13028 | ;; |
| 13029 | |
| 13030 | gnu*) |
| 13031 | ;; |
| 13032 | |
| 13033 | hpux9*) |
| 13034 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 13035 | hardcode_libdir_separator_CXX=: |
| 13036 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 13037 | hardcode_direct_CXX=yes |
| 13038 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 13039 | # but as the default |
| 13040 | # location of the library. |
| 13041 | |
| 13042 | case $cc_basename in |
| 13043 | CC*) |
| 13044 | # FIXME: insert proper C++ library support |
| 13045 | ld_shlibs_CXX=no |
| 13046 | ;; |
| 13047 | aCC*) |
| 13048 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 13049 | # Commands to make compiler produce verbose output that lists |
| 13050 | # what "hidden" libraries, object files and flags are used when |
| 13051 | # linking a shared library. |
| 13052 | # |
| 13053 | # There doesn't appear to be a way to prevent this compiler from |
| 13054 | # explicitly linking system object files so we need to strip them |
| 13055 | # from the output so that they don't get included in the library |
| 13056 | # dependencies. |
| 13057 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' |
| 13058 | ;; |
| 13059 | *) |
| 13060 | if test "$GXX" = yes; then |
| 13061 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 13062 | else |
| 13063 | # FIXME: insert proper C++ library support |
| 13064 | ld_shlibs_CXX=no |
| 13065 | fi |
| 13066 | ;; |
| 13067 | esac |
| 13068 | ;; |
| 13069 | |
| 13070 | hpux10*|hpux11*) |
| 13071 | if test $with_gnu_ld = no; then |
| 13072 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 13073 | hardcode_libdir_separator_CXX=: |
| 13074 | |
| 13075 | case $host_cpu in |
| 13076 | hppa*64*|ia64*) |
| 13077 | ;; |
| 13078 | *) |
| 13079 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 13080 | ;; |
| 13081 | esac |
| 13082 | fi |
| 13083 | case $host_cpu in |
| 13084 | hppa*64*|ia64*) |
| 13085 | hardcode_direct_CXX=no |
| 13086 | hardcode_shlibpath_var_CXX=no |
| 13087 | ;; |
| 13088 | *) |
| 13089 | hardcode_direct_CXX=yes |
| 13090 | hardcode_direct_absolute_CXX=yes |
| 13091 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 13092 | # but as the default |
| 13093 | # location of the library. |
| 13094 | ;; |
| 13095 | esac |
| 13096 | |
| 13097 | case $cc_basename in |
| 13098 | CC*) |
| 13099 | # FIXME: insert proper C++ library support |
| 13100 | ld_shlibs_CXX=no |
| 13101 | ;; |
| 13102 | aCC*) |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 13103 | case $host_cpu in |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 13104 | hppa*64*) |
| 13105 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 13106 | ;; |
| 13107 | ia64*) |
| 13108 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 13109 | ;; |
| 13110 | *) |
| 13111 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 13112 | ;; |
| 13113 | esac |
| 13114 | # Commands to make compiler produce verbose output that lists |
| 13115 | # what "hidden" libraries, object files and flags are used when |
| 13116 | # linking a shared library. |
| 13117 | # |
| 13118 | # There doesn't appear to be a way to prevent this compiler from |
| 13119 | # explicitly linking system object files so we need to strip them |
| 13120 | # from the output so that they don't get included in the library |
| 13121 | # dependencies. |
| 13122 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' |
| 13123 | ;; |
| 13124 | *) |
| 13125 | if test "$GXX" = yes; then |
| 13126 | if test $with_gnu_ld = no; then |
| 13127 | case $host_cpu in |
| 13128 | hppa*64*) |
| 13129 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 13130 | ;; |
| 13131 | ia64*) |
| 13132 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 13133 | ;; |
| 13134 | *) |
| 13135 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 13136 | ;; |
| 13137 | esac |
| 13138 | fi |
| 13139 | else |
| 13140 | # FIXME: insert proper C++ library support |
| 13141 | ld_shlibs_CXX=no |
| 13142 | fi |
| 13143 | ;; |
| 13144 | esac |
| 13145 | ;; |
| 13146 | |
| 13147 | interix[3-9]*) |
| 13148 | hardcode_direct_CXX=no |
| 13149 | hardcode_shlibpath_var_CXX=no |
| 13150 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 13151 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 13152 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 13153 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 13154 | # default) and relocated if they conflict, which is a slow very memory |
| 13155 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 13156 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 13157 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 13158 | archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 13159 | archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 13160 | ;; |
| 13161 | irix5* | irix6*) |
| 13162 | case $cc_basename in |
| 13163 | CC*) |
| 13164 | # SGI C++ |
| 13165 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
| 13166 | |
| 13167 | # Archives containing C++ object files must be created using |
| 13168 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 13169 | # necessary to make sure instantiated templates are included |
| 13170 | # in the archive. |
| 13171 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 13172 | ;; |
| 13173 | *) |
| 13174 | if test "$GXX" = yes; then |
| 13175 | if test "$with_gnu_ld" = no; then |
| 13176 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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' |
| 13177 | else |
| 13178 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' |
| 13179 | fi |
| 13180 | fi |
| 13181 | link_all_deplibs_CXX=yes |
| 13182 | ;; |
| 13183 | esac |
| 13184 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 13185 | hardcode_libdir_separator_CXX=: |
| 13186 | inherit_rpath_CXX=yes |
| 13187 | ;; |
| 13188 | |
| 13189 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 13190 | case $cc_basename in |
| 13191 | KCC*) |
| 13192 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 13193 | |
| 13194 | # KCC will only create a shared library if the output file |
| 13195 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 13196 | # to its proper name (with version) after linking. |
| 13197 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
| 13198 | archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' |
| 13199 | # Commands to make compiler produce verbose output that lists |
| 13200 | # what "hidden" libraries, object files and flags are used when |
| 13201 | # linking a shared library. |
| 13202 | # |
| 13203 | # There doesn't appear to be a way to prevent this compiler from |
| 13204 | # explicitly linking system object files so we need to strip them |
| 13205 | # from the output so that they don't get included in the library |
| 13206 | # dependencies. |
| 13207 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' |
| 13208 | |
| 13209 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 13210 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 13211 | |
| 13212 | # Archives containing C++ object files must be created using |
| 13213 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 13214 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 13215 | ;; |
| 13216 | icpc* | ecpc* ) |
| 13217 | # Intel C++ |
| 13218 | with_gnu_ld=yes |
| 13219 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 13220 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 13221 | # earlier do not add the objects themselves. |
| 13222 | case `$CC -V 2>&1` in |
| 13223 | *"Version 7."*) |
| 13224 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13225 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 13226 | ;; |
| 13227 | *) # Version 8.0 or newer |
| 13228 | tmp_idyn= |
| 13229 | case $host_cpu in |
| 13230 | ia64*) tmp_idyn=' -i_dynamic';; |
| 13231 | esac |
| 13232 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13233 | archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 13234 | ;; |
| 13235 | esac |
| 13236 | archive_cmds_need_lc_CXX=no |
| 13237 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 13238 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 13239 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 13240 | ;; |
| 13241 | pgCC* | pgcpp*) |
| 13242 | # Portland Group C++ compiler |
| 13243 | case `$CC -V` in |
| 13244 | *pgCC\ [1-5]* | *pgcpp\ [1-5]*) |
| 13245 | prelink_cmds_CXX='tpldir=Template.dir~ |
| 13246 | rm -rf $tpldir~ |
| 13247 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ |
| 13248 | compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' |
| 13249 | old_archive_cmds_CXX='tpldir=Template.dir~ |
| 13250 | rm -rf $tpldir~ |
| 13251 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ |
| 13252 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ |
| 13253 | $RANLIB $oldlib' |
| 13254 | archive_cmds_CXX='tpldir=Template.dir~ |
| 13255 | rm -rf $tpldir~ |
| 13256 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
| 13257 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 13258 | archive_expsym_cmds_CXX='tpldir=Template.dir~ |
| 13259 | rm -rf $tpldir~ |
| 13260 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
| 13261 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 13262 | ;; |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 13263 | *) # Version 6 will use weak symbols |
| 13264 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 13265 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 13266 | ;; |
| 13267 | esac |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 13268 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 13269 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 13270 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 13271 | whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' |
| 13272 | ;; |
| 13273 | cxx*) |
| 13274 | # Compaq C++ |
| 13275 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13276 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 13277 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 13278 | runpath_var=LD_RUN_PATH |
| 13279 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 13280 | hardcode_libdir_separator_CXX=: |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 13281 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 13282 | # Commands to make compiler produce verbose output that lists |
| 13283 | # what "hidden" libraries, object files and flags are used when |
| 13284 | # linking a shared library. |
| 13285 | # |
| 13286 | # There doesn't appear to be a way to prevent this compiler from |
| 13287 | # explicitly linking system object files so we need to strip them |
| 13288 | # from the output so that they don't get included in the library |
| 13289 | # dependencies. |
| 13290 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' |
| 13291 | ;; |
| 13292 | xl*) |
| 13293 | # IBM XL 8.0 on PPC, with GNU ld |
| 13294 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 13295 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 13296 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13297 | if test "x$supports_anon_versioning" = xyes; then |
| 13298 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ |
| 13299 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 13300 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 13301 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 13302 | fi |
| 13303 | ;; |
| 13304 | *) |
| 13305 | case `$CC -V 2>&1 | sed 5q` in |
| 13306 | *Sun\ C*) |
| 13307 | # Sun C++ 5.9 |
| 13308 | no_undefined_flag_CXX=' -zdefs' |
| 13309 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 13310 | archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' |
| 13311 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 13312 | whole_archive_flag_spec_CXX='${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' |
| 13313 | compiler_needs_object_CXX=yes |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 13314 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 13315 | # Not sure whether something based on |
| 13316 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
| 13317 | # would be better. |
| 13318 | output_verbose_link_cmd='echo' |
| 13319 | |
| 13320 | # Archives containing C++ object files must be created using |
| 13321 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 13322 | # necessary to make sure instantiated templates are included |
| 13323 | # in the archive. |
| 13324 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 13325 | ;; |
| 13326 | esac |
| 13327 | ;; |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 13328 | esac |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 13329 | ;; |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 13330 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 13331 | lynxos*) |
| 13332 | # FIXME: insert proper C++ library support |
| 13333 | ld_shlibs_CXX=no |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 13334 | ;; |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 13335 | |
| 13336 | m88k*) |
| 13337 | # FIXME: insert proper C++ library support |
| 13338 | ld_shlibs_CXX=no |
| 13339 | ;; |
| 13340 | |
| 13341 | mvs*) |
| 13342 | case $cc_basename in |
| 13343 | cxx*) |
| 13344 | # FIXME: insert proper C++ library support |
| 13345 | ld_shlibs_CXX=no |
| 13346 | ;; |
| 13347 | *) |
| 13348 | # FIXME: insert proper C++ library support |
| 13349 | ld_shlibs_CXX=no |
| 13350 | ;; |
| 13351 | esac |
| 13352 | ;; |
| 13353 | |
| 13354 | netbsd*) |
| 13355 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 13356 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 13357 | wlarc= |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 13358 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 13359 | hardcode_direct_CXX=yes |
| 13360 | hardcode_shlibpath_var_CXX=no |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 13361 | fi |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 13362 | # Workaround some broken pre-1.5 toolchains |
| 13363 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 13364 | ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 13365 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 13366 | *nto* | *qnx*) |
| 13367 | ld_shlibs_CXX=yes |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 13368 | ;; |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 13369 | |
| 13370 | openbsd2*) |
| 13371 | # C++ shared libraries are fairly broken |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 13372 | ld_shlibs_CXX=no |
| 13373 | ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 13374 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 13375 | openbsd*) |
| 13376 | if test -f /usr/libexec/ld.so; then |
| 13377 | hardcode_direct_CXX=yes |
| 13378 | hardcode_shlibpath_var_CXX=no |
| 13379 | hardcode_direct_absolute_CXX=yes |
| 13380 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 13381 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 13382 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 13383 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| 13384 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 13385 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 13386 | fi |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 13387 | output_verbose_link_cmd=echo |
| 13388 | else |
| 13389 | ld_shlibs_CXX=no |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 13390 | fi |
| 13391 | ;; |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 13392 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 13393 | osf3* | osf4* | osf5*) |
| 13394 | case $cc_basename in |
| 13395 | KCC*) |
| 13396 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 13397 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 13398 | # KCC will only create a shared library if the output file |
| 13399 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 13400 | # to its proper name (with version) after linking. |
| 13401 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
| 13402 | |
| 13403 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 13404 | hardcode_libdir_separator_CXX=: |
| 13405 | |
| 13406 | # Archives containing C++ object files must be created using |
| 13407 | # the KAI C++ compiler. |
| 13408 | case $host in |
| 13409 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; |
| 13410 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; |
| 13411 | esac |
| 13412 | ;; |
| 13413 | RCC*) |
| 13414 | # Rational C++ 2.4.1 |
| 13415 | # FIXME: insert proper C++ library support |
| 13416 | ld_shlibs_CXX=no |
| 13417 | ;; |
| 13418 | cxx*) |
| 13419 | case $host in |
| 13420 | osf3*) |
| 13421 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 13422 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
| 13423 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 13424 | ;; |
| 13425 | *) |
| 13426 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
| 13427 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
| 13428 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 13429 | echo "-hidden">> $lib.exp~ |
| 13430 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ |
| 13431 | $RM $lib.exp' |
| 13432 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 13433 | ;; |
| 13434 | esac |
| 13435 | |
| 13436 | hardcode_libdir_separator_CXX=: |
| 13437 | |
| 13438 | # Commands to make compiler produce verbose output that lists |
| 13439 | # what "hidden" libraries, object files and flags are used when |
| 13440 | # linking a shared library. |
| 13441 | # |
| 13442 | # There doesn't appear to be a way to prevent this compiler from |
| 13443 | # explicitly linking system object files so we need to strip them |
| 13444 | # from the output so that they don't get included in the library |
| 13445 | # dependencies. |
| 13446 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' |
| 13447 | ;; |
| 13448 | *) |
| 13449 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 13450 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 13451 | case $host in |
| 13452 | osf3*) |
| 13453 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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' |
| 13454 | ;; |
| 13455 | *) |
| 13456 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 13457 | ;; |
| 13458 | esac |
| 13459 | |
| 13460 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 13461 | hardcode_libdir_separator_CXX=: |
| 13462 | |
| 13463 | # Commands to make compiler produce verbose output that lists |
| 13464 | # what "hidden" libraries, object files and flags are used when |
| 13465 | # linking a shared library. |
| 13466 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
| 13467 | |
| 13468 | else |
| 13469 | # FIXME: insert proper C++ library support |
| 13470 | ld_shlibs_CXX=no |
| 13471 | fi |
| 13472 | ;; |
| 13473 | esac |
| 13474 | ;; |
| 13475 | |
| 13476 | psos*) |
| 13477 | # FIXME: insert proper C++ library support |
| 13478 | ld_shlibs_CXX=no |
| 13479 | ;; |
| 13480 | |
| 13481 | sunos4*) |
| 13482 | case $cc_basename in |
| 13483 | CC*) |
| 13484 | # Sun C++ 4.x |
| 13485 | # FIXME: insert proper C++ library support |
| 13486 | ld_shlibs_CXX=no |
| 13487 | ;; |
| 13488 | lcc*) |
| 13489 | # Lucid |
| 13490 | # FIXME: insert proper C++ library support |
| 13491 | ld_shlibs_CXX=no |
| 13492 | ;; |
| 13493 | *) |
| 13494 | # FIXME: insert proper C++ library support |
| 13495 | ld_shlibs_CXX=no |
| 13496 | ;; |
| 13497 | esac |
| 13498 | ;; |
| 13499 | |
| 13500 | solaris*) |
| 13501 | case $cc_basename in |
| 13502 | CC*) |
| 13503 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 13504 | archive_cmds_need_lc_CXX=yes |
| 13505 | no_undefined_flag_CXX=' -zdefs' |
| 13506 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 13507 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 13508 | $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 13509 | |
| 13510 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 13511 | hardcode_shlibpath_var_CXX=no |
| 13512 | case $host_os in |
| 13513 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 13514 | *) |
| 13515 | # The compiler driver will combine and reorder linker options, |
| 13516 | # but understands `-z linker_flag'. |
| 13517 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 13518 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' |
| 13519 | ;; |
| 13520 | esac |
| 13521 | link_all_deplibs_CXX=yes |
| 13522 | |
| 13523 | output_verbose_link_cmd='echo' |
| 13524 | |
| 13525 | # Archives containing C++ object files must be created using |
| 13526 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 13527 | # necessary to make sure instantiated templates are included |
| 13528 | # in the archive. |
| 13529 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 13530 | ;; |
| 13531 | gcx*) |
| 13532 | # Green Hills C++ Compiler |
| 13533 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 13534 | |
| 13535 | # The C++ compiler must be used to create the archive. |
| 13536 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 13537 | ;; |
| 13538 | *) |
| 13539 | # GNU C++ compiler with Solaris linker |
| 13540 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 13541 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 13542 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then |
| 13543 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 13544 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 13545 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 13546 | |
| 13547 | # Commands to make compiler produce verbose output that lists |
| 13548 | # what "hidden" libraries, object files and flags are used when |
| 13549 | # linking a shared library. |
| 13550 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
| 13551 | else |
| 13552 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 13553 | # platform. |
| 13554 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 13555 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 13556 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 13557 | |
| 13558 | # Commands to make compiler produce verbose output that lists |
| 13559 | # what "hidden" libraries, object files and flags are used when |
| 13560 | # linking a shared library. |
| 13561 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
| 13562 | fi |
| 13563 | |
| 13564 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 13565 | case $host_os in |
| 13566 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 13567 | *) |
| 13568 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 13569 | ;; |
| 13570 | esac |
| 13571 | fi |
| 13572 | ;; |
| 13573 | esac |
| 13574 | ;; |
| 13575 | |
| 13576 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 13577 | no_undefined_flag_CXX='${wl}-z,text' |
| 13578 | archive_cmds_need_lc_CXX=no |
| 13579 | hardcode_shlibpath_var_CXX=no |
| 13580 | runpath_var='LD_RUN_PATH' |
| 13581 | |
| 13582 | case $cc_basename in |
| 13583 | CC*) |
| 13584 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13585 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13586 | ;; |
| 13587 | *) |
| 13588 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13589 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13590 | ;; |
| 13591 | esac |
| 13592 | ;; |
| 13593 | |
| 13594 | sysv5* | sco3.2v5* | sco5v6*) |
| 13595 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 13596 | # link with -lc, and that would cause any symbols used from libc to |
| 13597 | # always be unresolved, which means just about no library would |
| 13598 | # ever link correctly. If we're not using GNU ld we use -z text |
| 13599 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 13600 | # as -z defs. |
| 13601 | no_undefined_flag_CXX='${wl}-z,text' |
| 13602 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
| 13603 | archive_cmds_need_lc_CXX=no |
| 13604 | hardcode_shlibpath_var_CXX=no |
| 13605 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' |
| 13606 | hardcode_libdir_separator_CXX=':' |
| 13607 | link_all_deplibs_CXX=yes |
| 13608 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
| 13609 | runpath_var='LD_RUN_PATH' |
| 13610 | |
| 13611 | case $cc_basename in |
| 13612 | CC*) |
| 13613 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13614 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13615 | ;; |
| 13616 | *) |
| 13617 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13618 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13619 | ;; |
| 13620 | esac |
| 13621 | ;; |
| 13622 | |
| 13623 | tandem*) |
| 13624 | case $cc_basename in |
| 13625 | NCC*) |
| 13626 | # NonStop-UX NCC 3.20 |
| 13627 | # FIXME: insert proper C++ library support |
| 13628 | ld_shlibs_CXX=no |
| 13629 | ;; |
| 13630 | *) |
| 13631 | # FIXME: insert proper C++ library support |
| 13632 | ld_shlibs_CXX=no |
| 13633 | ;; |
| 13634 | esac |
| 13635 | ;; |
| 13636 | |
| 13637 | vxworks*) |
| 13638 | # FIXME: insert proper C++ library support |
| 13639 | ld_shlibs_CXX=no |
| 13640 | ;; |
| 13641 | |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 13642 | *) |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 13643 | # FIXME: insert proper C++ library support |
| 13644 | ld_shlibs_CXX=no |
| 13645 | ;; |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 13646 | esac |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 13647 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 13648 | { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 13649 | $as_echo "$ld_shlibs_CXX" >&6; } |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 13650 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 13651 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 13652 | GCC_CXX="$GXX" |
| 13653 | LD_CXX="$LD" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 13654 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 13655 | ## CAVEAT EMPTOR: |
| 13656 | ## There is no encapsulation within the following macros, do not change |
| 13657 | ## the running order or otherwise move them around unless you know exactly |
| 13658 | ## what you are doing... |
| 13659 | # Dependencies to place before and after the object being linked: |
| 13660 | predep_objects_CXX= |
| 13661 | postdep_objects_CXX= |
| 13662 | predeps_CXX= |
| 13663 | postdeps_CXX= |
| 13664 | compiler_lib_search_path_CXX= |
| 13665 | |
| 13666 | cat > conftest.$ac_ext <<_LT_EOF |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 13667 | class Foo |
| 13668 | { |
| 13669 | public: |
| 13670 | Foo (void) { a = 0; } |
| 13671 | private: |
| 13672 | int a; |
| 13673 | }; |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 13674 | _LT_EOF |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 13675 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 13676 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 13677 | (eval $ac_compile) 2>&5 |
| 13678 | ac_status=$? |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 13679 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13680 | (exit $ac_status); }; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 13681 | # Parse the compiler output and extract the necessary |
| 13682 | # objects, libraries and library flags. |
| 13683 | |
| 13684 | # Sentinel used to keep track of whether or not we are before |
| 13685 | # the conftest object file. |
| 13686 | pre_test_object_deps_done=no |
| 13687 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 13688 | for p in `eval "$output_verbose_link_cmd"`; do |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 13689 | case $p in |
| 13690 | |
| 13691 | -L* | -R* | -l*) |
| 13692 | # Some compilers place space between "-{L,R}" and the path. |
| 13693 | # Remove the space. |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 13694 | if test $p = "-L" || |
| 13695 | test $p = "-R"; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 13696 | prev=$p |
| 13697 | continue |
| 13698 | else |
| 13699 | prev= |
| 13700 | fi |
| 13701 | |
| 13702 | if test "$pre_test_object_deps_done" = no; then |
| 13703 | case $p in |
| 13704 | -L* | -R*) |
| 13705 | # Internal compiler library paths should come after those |
| 13706 | # provided the user. The postdeps already come after the |
| 13707 | # user supplied libs so there is no need to process them. |
| 13708 | if test -z "$compiler_lib_search_path_CXX"; then |
| 13709 | compiler_lib_search_path_CXX="${prev}${p}" |
| 13710 | else |
| 13711 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 13712 | fi |
| 13713 | ;; |
| 13714 | # The "-l" case would never come before the object being |
| 13715 | # linked, so don't bother handling this case. |
| 13716 | esac |
| 13717 | else |
| 13718 | if test -z "$postdeps_CXX"; then |
| 13719 | postdeps_CXX="${prev}${p}" |
| 13720 | else |
| 13721 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 13722 | fi |
| 13723 | fi |
| 13724 | ;; |
| 13725 | |
| 13726 | *.$objext) |
| 13727 | # This assumes that the test object file only shows up |
| 13728 | # once in the compiler output. |
| 13729 | if test "$p" = "conftest.$objext"; then |
| 13730 | pre_test_object_deps_done=yes |
| 13731 | continue |
| 13732 | fi |
| 13733 | |
| 13734 | if test "$pre_test_object_deps_done" = no; then |
| 13735 | if test -z "$predep_objects_CXX"; then |
| 13736 | predep_objects_CXX="$p" |
| 13737 | else |
| 13738 | predep_objects_CXX="$predep_objects_CXX $p" |
| 13739 | fi |
| 13740 | else |
| 13741 | if test -z "$postdep_objects_CXX"; then |
| 13742 | postdep_objects_CXX="$p" |
| 13743 | else |
| 13744 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 13745 | fi |
| 13746 | fi |
| 13747 | ;; |
| 13748 | |
| 13749 | *) ;; # Ignore the rest. |
| 13750 | |
| 13751 | esac |
| 13752 | done |
| 13753 | |
| 13754 | # Clean up. |
| 13755 | rm -f a.out a.exe |
| 13756 | else |
| 13757 | echo "libtool.m4: error: problem compiling CXX test program" |
| 13758 | fi |
| 13759 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 13760 | $RM -f confest.$objext |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 13761 | |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 13762 | # PORTME: override above test on systems where it is broken |
| 13763 | case $host_os in |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 13764 | interix[3-9]*) |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 13765 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 13766 | # hack all around it, let's just trust "g++" to DTRT. |
| 13767 | predep_objects_CXX= |
| 13768 | postdep_objects_CXX= |
| 13769 | postdeps_CXX= |
| 13770 | ;; |
| 13771 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 13772 | linux*) |
| 13773 | case `$CC -V 2>&1 | sed 5q` in |
| 13774 | *Sun\ C*) |
| 13775 | # Sun C++ 5.9 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 13776 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 13777 | # The more standards-conforming stlport4 library is |
| 13778 | # incompatible with the Cstd library. Avoid specifying |
| 13779 | # it if it's in CXXFLAGS. Ignore libCrun as |
| 13780 | # -library=stlport4 depends on it. |
| 13781 | case " $CXX $CXXFLAGS " in |
| 13782 | *" -library=stlport4 "*) |
| 13783 | solaris_use_stlport4=yes |
| 13784 | ;; |
| 13785 | esac |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 13786 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 13787 | if test "$solaris_use_stlport4" != yes; then |
| 13788 | postdeps_CXX='-library=Cstd -library=Crun' |
| 13789 | fi |
| 13790 | ;; |
| 13791 | esac |
| 13792 | ;; |
| 13793 | |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 13794 | solaris*) |
| 13795 | case $cc_basename in |
| 13796 | CC*) |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 13797 | # The more standards-conforming stlport4 library is |
| 13798 | # incompatible with the Cstd library. Avoid specifying |
| 13799 | # it if it's in CXXFLAGS. Ignore libCrun as |
| 13800 | # -library=stlport4 depends on it. |
| 13801 | case " $CXX $CXXFLAGS " in |
| 13802 | *" -library=stlport4 "*) |
| 13803 | solaris_use_stlport4=yes |
| 13804 | ;; |
| 13805 | esac |
| 13806 | |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 13807 | # Adding this requires a known-good setup of shared libraries for |
| 13808 | # Sun compiler versions before 5.6, else PIC objects from an old |
| 13809 | # archive will be linked into the output, leading to subtle bugs. |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 13810 | if test "$solaris_use_stlport4" != yes; then |
| 13811 | postdeps_CXX='-library=Cstd -library=Crun' |
| 13812 | fi |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 13813 | ;; |
| 13814 | esac |
| 13815 | ;; |
| 13816 | esac |
| 13817 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 13818 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 13819 | case " $postdeps_CXX " in |
| 13820 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 13821 | esac |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 13822 | compiler_lib_search_dirs_CXX= |
| 13823 | if test -n "${compiler_lib_search_path_CXX}"; then |
| 13824 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` |
| 13825 | fi |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 13826 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 13827 | |
| 13828 | |
| 13829 | |
| 13830 | |
| 13831 | |
| 13832 | |
| 13833 | |
| 13834 | |
| 13835 | |
| 13836 | |
| 13837 | |
| 13838 | |
| 13839 | |
| 13840 | |
| 13841 | |
| 13842 | |
| 13843 | |
| 13844 | |
| 13845 | |
| 13846 | |
| 13847 | |
| 13848 | |
| 13849 | |
| 13850 | |
| 13851 | |
| 13852 | |
| 13853 | |
| 13854 | |
| 13855 | |
| 13856 | |
| 13857 | lt_prog_compiler_wl_CXX= |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 13858 | lt_prog_compiler_pic_CXX= |
| 13859 | lt_prog_compiler_static_CXX= |
| 13860 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 13861 | { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 13862 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 13863 | |
| 13864 | # C++ specific cases for pic, static, wl, etc. |
| 13865 | if test "$GXX" = yes; then |
| 13866 | lt_prog_compiler_wl_CXX='-Wl,' |
| 13867 | lt_prog_compiler_static_CXX='-static' |
| 13868 | |
| 13869 | case $host_os in |
| 13870 | aix*) |
| 13871 | # All AIX code is PIC. |
| 13872 | if test "$host_cpu" = ia64; then |
| 13873 | # AIX 5 now supports IA64 processor |
| 13874 | lt_prog_compiler_static_CXX='-Bstatic' |
| 13875 | fi |
| 13876 | ;; |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 13877 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 13878 | amigaos*) |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 13879 | case $host_cpu in |
| 13880 | powerpc) |
| 13881 | # see comment about AmigaOS4 .so support |
| 13882 | lt_prog_compiler_pic_CXX='-fPIC' |
| 13883 | ;; |
| 13884 | m68k) |
| 13885 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 13886 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 13887 | # like `-m68040'. |
| 13888 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 13889 | ;; |
| 13890 | esac |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 13891 | ;; |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 13892 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 13893 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 13894 | # PIC is the default for these OSes. |
| 13895 | ;; |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 13896 | mingw* | cygwin* | os2* | pw32* | cegcc*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 13897 | # This hack is so that the source file can tell whether it is being |
| 13898 | # built for inclusion in a dll (and should export symbols for example). |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 13899 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 13900 | # (--disable-auto-import) libraries |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 13901 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 13902 | ;; |
| 13903 | darwin* | rhapsody*) |
| 13904 | # PIC is the default on this platform |
| 13905 | # Common symbols not allowed in MH_DYLIB files |
| 13906 | lt_prog_compiler_pic_CXX='-fno-common' |
| 13907 | ;; |
| 13908 | *djgpp*) |
| 13909 | # DJGPP does not support shared libraries at all |
| 13910 | lt_prog_compiler_pic_CXX= |
| 13911 | ;; |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 13912 | interix[3-9]*) |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 13913 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 13914 | # Instead, we relocate shared libraries at runtime. |
| 13915 | ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 13916 | sysv4*MP*) |
| 13917 | if test -d /usr/nec; then |
| 13918 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 13919 | fi |
| 13920 | ;; |
| 13921 | hpux*) |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 13922 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 13923 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 13924 | # sets the default TLS model and affects inlining. |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 13925 | case $host_cpu in |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 13926 | hppa*64*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 13927 | ;; |
| 13928 | *) |
| 13929 | lt_prog_compiler_pic_CXX='-fPIC' |
| 13930 | ;; |
| 13931 | esac |
| 13932 | ;; |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 13933 | *qnx* | *nto*) |
| 13934 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 13935 | # it will coredump. |
| 13936 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 13937 | ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 13938 | *) |
| 13939 | lt_prog_compiler_pic_CXX='-fPIC' |
| 13940 | ;; |
| 13941 | esac |
| 13942 | else |
| 13943 | case $host_os in |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 13944 | aix[4-9]*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 13945 | # All AIX code is PIC. |
| 13946 | if test "$host_cpu" = ia64; then |
| 13947 | # AIX 5 now supports IA64 processor |
| 13948 | lt_prog_compiler_static_CXX='-Bstatic' |
| 13949 | else |
| 13950 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 13951 | fi |
| 13952 | ;; |
| 13953 | chorus*) |
| 13954 | case $cc_basename in |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 13955 | cxch68*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 13956 | # Green Hills C++ Compiler |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 13957 | # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 13958 | ;; |
| 13959 | esac |
| 13960 | ;; |
| 13961 | dgux*) |
| 13962 | case $cc_basename in |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 13963 | ec++*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 13964 | lt_prog_compiler_pic_CXX='-KPIC' |
| 13965 | ;; |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 13966 | ghcx*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 13967 | # Green Hills C++ Compiler |
| 13968 | lt_prog_compiler_pic_CXX='-pic' |
| 13969 | ;; |
| 13970 | *) |
| 13971 | ;; |
| 13972 | esac |
| 13973 | ;; |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 13974 | freebsd* | dragonfly*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 13975 | # FreeBSD uses GNU C++ |
| 13976 | ;; |
| 13977 | hpux9* | hpux10* | hpux11*) |
| 13978 | case $cc_basename in |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 13979 | CC*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 13980 | lt_prog_compiler_wl_CXX='-Wl,' |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 13981 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 13982 | if test "$host_cpu" != ia64; then |
| 13983 | lt_prog_compiler_pic_CXX='+Z' |
| 13984 | fi |
| 13985 | ;; |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 13986 | aCC*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 13987 | lt_prog_compiler_wl_CXX='-Wl,' |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 13988 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 13989 | case $host_cpu in |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 13990 | hppa*64*|ia64*) |
| 13991 | # +Z the default |
| 13992 | ;; |
| 13993 | *) |
| 13994 | lt_prog_compiler_pic_CXX='+Z' |
| 13995 | ;; |
| 13996 | esac |
| 13997 | ;; |
| 13998 | *) |
| 13999 | ;; |
| 14000 | esac |
| 14001 | ;; |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 14002 | interix*) |
| 14003 | # This is c89, which is MS Visual C++ (no shared libs) |
| 14004 | # Anyone wants to do a port? |
| 14005 | ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14006 | irix5* | irix6* | nonstopux*) |
| 14007 | case $cc_basename in |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 14008 | CC*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14009 | lt_prog_compiler_wl_CXX='-Wl,' |
| 14010 | lt_prog_compiler_static_CXX='-non_shared' |
| 14011 | # CC pic flag -KPIC is the default. |
| 14012 | ;; |
| 14013 | *) |
| 14014 | ;; |
| 14015 | esac |
| 14016 | ;; |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14017 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14018 | case $cc_basename in |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 14019 | KCC*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14020 | # KAI C++ Compiler |
| 14021 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 14022 | lt_prog_compiler_pic_CXX='-fPIC' |
| 14023 | ;; |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14024 | ecpc* ) |
| 14025 | # old Intel C++ for x86_64 which still supported -KPIC. |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14026 | lt_prog_compiler_wl_CXX='-Wl,' |
| 14027 | lt_prog_compiler_pic_CXX='-KPIC' |
| 14028 | lt_prog_compiler_static_CXX='-static' |
| 14029 | ;; |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14030 | icpc* ) |
| 14031 | # Intel C++, used to be incompatible with GCC. |
| 14032 | # ICC 10 doesn't accept -KPIC any more. |
| 14033 | lt_prog_compiler_wl_CXX='-Wl,' |
| 14034 | lt_prog_compiler_pic_CXX='-fPIC' |
| 14035 | lt_prog_compiler_static_CXX='-static' |
| 14036 | ;; |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 14037 | pgCC* | pgcpp*) |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14038 | # Portland Group C++ compiler |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 14039 | lt_prog_compiler_wl_CXX='-Wl,' |
| 14040 | lt_prog_compiler_pic_CXX='-fpic' |
| 14041 | lt_prog_compiler_static_CXX='-Bstatic' |
| 14042 | ;; |
| 14043 | cxx*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14044 | # Compaq C++ |
| 14045 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 14046 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 14047 | lt_prog_compiler_pic_CXX= |
| 14048 | lt_prog_compiler_static_CXX='-non_shared' |
| 14049 | ;; |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14050 | xlc* | xlC*) |
| 14051 | # IBM XL 8.0 on PPC |
| 14052 | lt_prog_compiler_wl_CXX='-Wl,' |
| 14053 | lt_prog_compiler_pic_CXX='-qpic' |
| 14054 | lt_prog_compiler_static_CXX='-qstaticlink' |
| 14055 | ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14056 | *) |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 14057 | case `$CC -V 2>&1 | sed 5q` in |
| 14058 | *Sun\ C*) |
| 14059 | # Sun C++ 5.9 |
| 14060 | lt_prog_compiler_pic_CXX='-KPIC' |
| 14061 | lt_prog_compiler_static_CXX='-Bstatic' |
| 14062 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 14063 | ;; |
| 14064 | esac |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14065 | ;; |
| 14066 | esac |
| 14067 | ;; |
| 14068 | lynxos*) |
| 14069 | ;; |
| 14070 | m88k*) |
| 14071 | ;; |
| 14072 | mvs*) |
| 14073 | case $cc_basename in |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 14074 | cxx*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14075 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 14076 | ;; |
| 14077 | *) |
| 14078 | ;; |
| 14079 | esac |
| 14080 | ;; |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 14081 | netbsd* | netbsdelf*-gnu) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14082 | ;; |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14083 | *qnx* | *nto*) |
| 14084 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 14085 | # it will coredump. |
| 14086 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 14087 | ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14088 | osf3* | osf4* | osf5*) |
| 14089 | case $cc_basename in |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 14090 | KCC*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14091 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 14092 | ;; |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 14093 | RCC*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14094 | # Rational C++ 2.4.1 |
| 14095 | lt_prog_compiler_pic_CXX='-pic' |
| 14096 | ;; |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 14097 | cxx*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14098 | # Digital/Compaq C++ |
| 14099 | lt_prog_compiler_wl_CXX='-Wl,' |
| 14100 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 14101 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 14102 | lt_prog_compiler_pic_CXX= |
| 14103 | lt_prog_compiler_static_CXX='-non_shared' |
| 14104 | ;; |
| 14105 | *) |
| 14106 | ;; |
| 14107 | esac |
| 14108 | ;; |
| 14109 | psos*) |
| 14110 | ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14111 | solaris*) |
| 14112 | case $cc_basename in |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 14113 | CC*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14114 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 14115 | lt_prog_compiler_pic_CXX='-KPIC' |
| 14116 | lt_prog_compiler_static_CXX='-Bstatic' |
| 14117 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 14118 | ;; |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 14119 | gcx*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14120 | # Green Hills C++ Compiler |
| 14121 | lt_prog_compiler_pic_CXX='-PIC' |
| 14122 | ;; |
| 14123 | *) |
| 14124 | ;; |
| 14125 | esac |
| 14126 | ;; |
| 14127 | sunos4*) |
| 14128 | case $cc_basename in |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 14129 | CC*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14130 | # Sun C++ 4.x |
| 14131 | lt_prog_compiler_pic_CXX='-pic' |
| 14132 | lt_prog_compiler_static_CXX='-Bstatic' |
| 14133 | ;; |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 14134 | lcc*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14135 | # Lucid |
| 14136 | lt_prog_compiler_pic_CXX='-pic' |
| 14137 | ;; |
| 14138 | *) |
| 14139 | ;; |
| 14140 | esac |
| 14141 | ;; |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14142 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 14143 | case $cc_basename in |
| 14144 | CC*) |
| 14145 | lt_prog_compiler_wl_CXX='-Wl,' |
| 14146 | lt_prog_compiler_pic_CXX='-KPIC' |
| 14147 | lt_prog_compiler_static_CXX='-Bstatic' |
| 14148 | ;; |
| 14149 | esac |
| 14150 | ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14151 | tandem*) |
| 14152 | case $cc_basename in |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 14153 | NCC*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14154 | # NonStop-UX NCC 3.20 |
| 14155 | lt_prog_compiler_pic_CXX='-KPIC' |
| 14156 | ;; |
| 14157 | *) |
| 14158 | ;; |
| 14159 | esac |
| 14160 | ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14161 | vxworks*) |
| 14162 | ;; |
| 14163 | *) |
| 14164 | lt_prog_compiler_can_build_shared_CXX=no |
| 14165 | ;; |
| 14166 | esac |
| 14167 | fi |
| 14168 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14169 | case $host_os in |
| 14170 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 14171 | *djgpp*) |
| 14172 | lt_prog_compiler_pic_CXX= |
| 14173 | ;; |
| 14174 | *) |
| 14175 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 14176 | ;; |
| 14177 | esac |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 14178 | { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 14179 | $as_echo "$lt_prog_compiler_pic_CXX" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14180 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14181 | |
| 14182 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14183 | # |
| 14184 | # Check to make sure the PIC flag actually works. |
| 14185 | # |
| 14186 | if test -n "$lt_prog_compiler_pic_CXX"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 14187 | { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 14188 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 14189 | if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 14190 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14191 | else |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 14192 | lt_cv_prog_compiler_pic_works_CXX=no |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14193 | ac_outfile=conftest.$ac_objext |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 14194 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14195 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 14196 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14197 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14198 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14199 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14200 | # The option is referenced via a variable to avoid confusing sed. |
| 14201 | lt_compile=`echo "$ac_compile" | $SED \ |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 14202 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14203 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14204 | -e 's:$: $lt_compiler_flag:'` |
Craig Silverstein | 357b3d9 | 2011-07-29 22:49:50 +0000 | [diff] [blame] | 14205 | (eval echo "\"\$as_me:14205: $lt_compile\"" >&5) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14206 | (eval "$lt_compile" 2>conftest.err) |
| 14207 | ac_status=$? |
| 14208 | cat conftest.err >&5 |
Craig Silverstein | 357b3d9 | 2011-07-29 22:49:50 +0000 | [diff] [blame] | 14209 | echo "$as_me:14209: \$? = $ac_status" >&5 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14210 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14211 | # The compiler can only warn and ignore the option if not recognized |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 14212 | # So say no if there are warnings other than the usual output. |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14213 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 14214 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14215 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 14216 | lt_cv_prog_compiler_pic_works_CXX=yes |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14217 | fi |
| 14218 | fi |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14219 | $RM conftest* |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14220 | |
| 14221 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 14222 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 14223 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14224 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 14225 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14226 | case $lt_prog_compiler_pic_CXX in |
| 14227 | "" | " "*) ;; |
| 14228 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 14229 | esac |
| 14230 | else |
| 14231 | lt_prog_compiler_pic_CXX= |
| 14232 | lt_prog_compiler_can_build_shared_CXX=no |
| 14233 | fi |
| 14234 | |
| 14235 | fi |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14236 | |
| 14237 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14238 | |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 14239 | # |
| 14240 | # Check to make sure the static flag actually works. |
| 14241 | # |
| 14242 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 14243 | { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 14244 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 14245 | if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 14246 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 14247 | else |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 14248 | lt_cv_prog_compiler_static_works_CXX=no |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 14249 | save_LDFLAGS="$LDFLAGS" |
| 14250 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 14251 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 14252 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 14253 | # The linker can only warn and ignore the option if not recognized |
| 14254 | # So say no if there are warnings |
| 14255 | if test -s conftest.err; then |
| 14256 | # Append any errors to the config.log. |
| 14257 | cat conftest.err 1>&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14258 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 14259 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14260 | if diff conftest.exp conftest.er2 >/dev/null; then |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 14261 | lt_cv_prog_compiler_static_works_CXX=yes |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 14262 | fi |
| 14263 | else |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 14264 | lt_cv_prog_compiler_static_works_CXX=yes |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 14265 | fi |
| 14266 | fi |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14267 | $RM -r conftest* |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 14268 | LDFLAGS="$save_LDFLAGS" |
| 14269 | |
| 14270 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 14271 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 14272 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 14273 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 14274 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 14275 | : |
| 14276 | else |
| 14277 | lt_prog_compiler_static_CXX= |
| 14278 | fi |
| 14279 | |
| 14280 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14281 | |
| 14282 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 14283 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 14284 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 14285 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 14286 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14287 | else |
| 14288 | lt_cv_prog_compiler_c_o_CXX=no |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14289 | $RM -r conftest 2>/dev/null |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14290 | mkdir conftest |
| 14291 | cd conftest |
| 14292 | mkdir out |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 14293 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14294 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14295 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 14296 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14297 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14298 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14299 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14300 | lt_compile=`echo "$ac_compile" | $SED \ |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 14301 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14302 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14303 | -e 's:$: $lt_compiler_flag:'` |
Craig Silverstein | 357b3d9 | 2011-07-29 22:49:50 +0000 | [diff] [blame] | 14304 | (eval echo "\"\$as_me:14304: $lt_compile\"" >&5) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14305 | (eval "$lt_compile" 2>out/conftest.err) |
| 14306 | ac_status=$? |
| 14307 | cat out/conftest.err >&5 |
Craig Silverstein | 357b3d9 | 2011-07-29 22:49:50 +0000 | [diff] [blame] | 14308 | echo "$as_me:14308: \$? = $ac_status" >&5 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14309 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 14310 | then |
| 14311 | # The compiler can only warn and ignore the option if not recognized |
| 14312 | # So say no if there are warnings |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14313 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 14314 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 14315 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14316 | lt_cv_prog_compiler_c_o_CXX=yes |
| 14317 | fi |
| 14318 | fi |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 14319 | chmod u+w . 2>&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14320 | $RM conftest* |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 14321 | # SGI C++ compiler will create directory out/ii_files/ for |
| 14322 | # template instantiation |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14323 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 14324 | $RM out/* && rmdir out |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14325 | cd .. |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14326 | $RM -r conftest |
| 14327 | $RM conftest* |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14328 | |
| 14329 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 14330 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 14331 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14332 | |
| 14333 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14334 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 14335 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14336 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 14337 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14338 | $as_echo_n "(cached) " >&6 |
| 14339 | else |
| 14340 | lt_cv_prog_compiler_c_o_CXX=no |
| 14341 | $RM -r conftest 2>/dev/null |
| 14342 | mkdir conftest |
| 14343 | cd conftest |
| 14344 | mkdir out |
| 14345 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14346 | |
| 14347 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 14348 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14349 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14350 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14351 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14352 | lt_compile=`echo "$ac_compile" | $SED \ |
| 14353 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 14354 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14355 | -e 's:$: $lt_compiler_flag:'` |
Craig Silverstein | 357b3d9 | 2011-07-29 22:49:50 +0000 | [diff] [blame] | 14356 | (eval echo "\"\$as_me:14356: $lt_compile\"" >&5) |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14357 | (eval "$lt_compile" 2>out/conftest.err) |
| 14358 | ac_status=$? |
| 14359 | cat out/conftest.err >&5 |
Craig Silverstein | 357b3d9 | 2011-07-29 22:49:50 +0000 | [diff] [blame] | 14360 | echo "$as_me:14360: \$? = $ac_status" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14361 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 14362 | then |
| 14363 | # The compiler can only warn and ignore the option if not recognized |
| 14364 | # So say no if there are warnings |
| 14365 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 14366 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 14367 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 14368 | lt_cv_prog_compiler_c_o_CXX=yes |
| 14369 | fi |
| 14370 | fi |
| 14371 | chmod u+w . 2>&5 |
| 14372 | $RM conftest* |
| 14373 | # SGI C++ compiler will create directory out/ii_files/ for |
| 14374 | # template instantiation |
| 14375 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 14376 | $RM out/* && rmdir out |
| 14377 | cd .. |
| 14378 | $RM -r conftest |
| 14379 | $RM conftest* |
| 14380 | |
| 14381 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 14382 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14383 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
| 14384 | |
| 14385 | |
| 14386 | |
| 14387 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14388 | hard_links="nottested" |
| 14389 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 14390 | # do not overwrite the value of need_locks provided by the user |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 14391 | { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 14392 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14393 | hard_links=yes |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14394 | $RM conftest* |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14395 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 14396 | touch conftest.a |
| 14397 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 14398 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 14399 | { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 14400 | $as_echo "$hard_links" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14401 | if test "$hard_links" = no; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 14402 | { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 14403 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14404 | need_locks=warn |
| 14405 | fi |
| 14406 | else |
| 14407 | need_locks=no |
| 14408 | fi |
| 14409 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14410 | |
| 14411 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 14412 | { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 14413 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14414 | |
| 14415 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 14416 | case $host_os in |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 14417 | aix[4-9]*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14418 | # If we're using GNU nm, then we don't want the "-C" option. |
| 14419 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14420 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 14421 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14422 | else |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14423 | export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14424 | fi |
| 14425 | ;; |
| 14426 | pw32*) |
| 14427 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 14428 | ;; |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14429 | cygwin* | mingw* | cegcc*) |
| 14430 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 14431 | ;; |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 14432 | linux* | k*bsd*-gnu) |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 14433 | link_all_deplibs_CXX=no |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14434 | ;; |
| 14435 | *) |
| 14436 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 14437 | ;; |
| 14438 | esac |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 14439 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14440 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 14441 | { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 14442 | $as_echo "$ld_shlibs_CXX" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14443 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 14444 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14445 | with_gnu_ld_CXX=$with_gnu_ld |
| 14446 | |
| 14447 | |
| 14448 | |
| 14449 | |
| 14450 | |
| 14451 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14452 | # |
| 14453 | # Do we need to explicitly link libc? |
| 14454 | # |
| 14455 | case "x$archive_cmds_need_lc_CXX" in |
| 14456 | x|xyes) |
| 14457 | # Assume -lc should be added |
| 14458 | archive_cmds_need_lc_CXX=yes |
| 14459 | |
| 14460 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 14461 | case $archive_cmds_CXX in |
| 14462 | *'~'*) |
| 14463 | # FIXME: we may have to deal with multi-command sequences. |
| 14464 | ;; |
| 14465 | '$CC '*) |
| 14466 | # Test whether the compiler implicitly links with -lc since on some |
| 14467 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 14468 | # to ld, don't add -lc before -lgcc. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 14469 | { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 14470 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14471 | $RM conftest* |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 14472 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14473 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 14474 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14475 | (eval $ac_compile) 2>&5 |
| 14476 | ac_status=$? |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 14477 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14478 | (exit $ac_status); } 2>conftest.err; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14479 | soname=conftest |
| 14480 | lib=conftest |
| 14481 | libobjs=conftest.$ac_objext |
| 14482 | deplibs= |
| 14483 | wl=$lt_prog_compiler_wl_CXX |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 14484 | pic_flag=$lt_prog_compiler_pic_CXX |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14485 | compiler_flags=-v |
| 14486 | linker_flags=-v |
| 14487 | verstring= |
| 14488 | output_objdir=. |
| 14489 | libname=conftest |
| 14490 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 14491 | allow_undefined_flag_CXX= |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 14492 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14493 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14494 | ac_status=$? |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 14495 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14496 | (exit $ac_status); } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14497 | then |
| 14498 | archive_cmds_need_lc_CXX=no |
| 14499 | else |
| 14500 | archive_cmds_need_lc_CXX=yes |
| 14501 | fi |
| 14502 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 14503 | else |
| 14504 | cat conftest.err 1>&5 |
| 14505 | fi |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14506 | $RM conftest* |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 14507 | { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 14508 | $as_echo "$archive_cmds_need_lc_CXX" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14509 | ;; |
| 14510 | esac |
| 14511 | fi |
| 14512 | ;; |
| 14513 | esac |
| 14514 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14515 | |
| 14516 | |
| 14517 | |
| 14518 | |
| 14519 | |
| 14520 | |
| 14521 | |
| 14522 | |
| 14523 | |
| 14524 | |
| 14525 | |
| 14526 | |
| 14527 | |
| 14528 | |
| 14529 | |
| 14530 | |
| 14531 | |
| 14532 | |
| 14533 | |
| 14534 | |
| 14535 | |
| 14536 | |
| 14537 | |
| 14538 | |
| 14539 | |
| 14540 | |
| 14541 | |
| 14542 | |
| 14543 | |
| 14544 | |
| 14545 | |
| 14546 | |
| 14547 | |
| 14548 | |
| 14549 | |
| 14550 | |
| 14551 | |
| 14552 | |
| 14553 | |
| 14554 | |
| 14555 | |
| 14556 | |
| 14557 | |
| 14558 | |
| 14559 | |
| 14560 | |
| 14561 | |
| 14562 | |
| 14563 | |
| 14564 | |
| 14565 | |
| 14566 | |
| 14567 | |
| 14568 | |
| 14569 | |
| 14570 | |
| 14571 | |
| 14572 | |
| 14573 | |
| 14574 | |
| 14575 | |
| 14576 | |
| 14577 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 14578 | { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 14579 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14580 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14581 | library_names_spec= |
| 14582 | libname_spec='lib$name' |
| 14583 | soname_spec= |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 14584 | shrext_cmds=".so" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14585 | postinstall_cmds= |
| 14586 | postuninstall_cmds= |
| 14587 | finish_cmds= |
| 14588 | finish_eval= |
| 14589 | shlibpath_var= |
| 14590 | shlibpath_overrides_runpath=unknown |
| 14591 | version_type=none |
| 14592 | dynamic_linker="$host_os ld.so" |
| 14593 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14594 | need_lib_prefix=unknown |
| 14595 | hardcode_into_libs=no |
| 14596 | |
| 14597 | # when you set need_version to no, make sure it does not cause -set_version |
| 14598 | # flags to be left without arguments |
| 14599 | need_version=unknown |
| 14600 | |
| 14601 | case $host_os in |
| 14602 | aix3*) |
| 14603 | version_type=linux |
| 14604 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 14605 | shlibpath_var=LIBPATH |
| 14606 | |
| 14607 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 14608 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14609 | ;; |
| 14610 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 14611 | aix[4-9]*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14612 | version_type=linux |
| 14613 | need_lib_prefix=no |
| 14614 | need_version=no |
| 14615 | hardcode_into_libs=yes |
| 14616 | if test "$host_cpu" = ia64; then |
| 14617 | # AIX 5 supports IA64 |
| 14618 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 14619 | shlibpath_var=LD_LIBRARY_PATH |
| 14620 | else |
| 14621 | # With GCC up to 2.95.x, collect2 would create an import file |
| 14622 | # for dependence libraries. The import file would start with |
| 14623 | # the line `#! .'. This would cause the generated library to |
| 14624 | # depend on `.', always an invalid library. This was fixed in |
| 14625 | # development snapshots of GCC prior to 3.0. |
| 14626 | case $host_os in |
| 14627 | aix4 | aix4.[01] | aix4.[01].*) |
| 14628 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 14629 | echo ' yes ' |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14630 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14631 | : |
| 14632 | else |
| 14633 | can_build_shared=no |
| 14634 | fi |
| 14635 | ;; |
| 14636 | esac |
| 14637 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 14638 | # soname into executable. Probably we can add versioning support to |
| 14639 | # collect2, so additional links can be useful in future. |
| 14640 | if test "$aix_use_runtimelinking" = yes; then |
| 14641 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 14642 | # instead of lib<name>.a to let people know that these are not |
| 14643 | # typical AIX shared libraries. |
| 14644 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14645 | else |
| 14646 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 14647 | # and later when we are not doing run time linking. |
| 14648 | library_names_spec='${libname}${release}.a $libname.a' |
| 14649 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14650 | fi |
| 14651 | shlibpath_var=LIBPATH |
| 14652 | fi |
| 14653 | ;; |
| 14654 | |
| 14655 | amigaos*) |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14656 | case $host_cpu in |
| 14657 | powerpc) |
| 14658 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 14659 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 14660 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14661 | ;; |
| 14662 | m68k) |
| 14663 | library_names_spec='$libname.ixlibrary $libname.a' |
| 14664 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 14665 | 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' |
| 14666 | ;; |
| 14667 | esac |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14668 | ;; |
| 14669 | |
| 14670 | beos*) |
| 14671 | library_names_spec='${libname}${shared_ext}' |
| 14672 | dynamic_linker="$host_os ld.so" |
| 14673 | shlibpath_var=LIBRARY_PATH |
| 14674 | ;; |
| 14675 | |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 14676 | bsdi[45]*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14677 | version_type=linux |
| 14678 | need_version=no |
| 14679 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14680 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14681 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 14682 | shlibpath_var=LD_LIBRARY_PATH |
| 14683 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 14684 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 14685 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 14686 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 14687 | # libtool to hard-code these into programs |
| 14688 | ;; |
| 14689 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14690 | cygwin* | mingw* | pw32* | cegcc*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14691 | version_type=windows |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 14692 | shrext_cmds=".dll" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14693 | need_version=no |
| 14694 | need_lib_prefix=no |
| 14695 | |
| 14696 | case $GCC,$host_os in |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14697 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14698 | library_names_spec='$libname.dll.a' |
| 14699 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 14700 | postinstall_cmds='base_file=`basename \${file}`~ |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14701 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14702 | dldir=$destdir/`dirname \$dlpath`~ |
| 14703 | test -d \$dldir || mkdir -p \$dldir~ |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 14704 | $install_prog $dir/$dlname \$dldir/$dlname~ |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14705 | chmod a+x \$dldir/$dlname~ |
| 14706 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 14707 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 14708 | fi' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14709 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 14710 | dlpath=$dir/\$dldll~ |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14711 | $RM \$dlpath' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14712 | shlibpath_overrides_runpath=yes |
| 14713 | |
| 14714 | case $host_os in |
| 14715 | cygwin*) |
| 14716 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 14717 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 14718 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14719 | ;; |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14720 | mingw* | cegcc*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14721 | # MinGW DLLs use traditional 'lib' prefix |
| 14722 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14723 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 14724 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14725 | # It is most probably a Windows format PATH printed by |
| 14726 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 14727 | # path with ; separators, and with drive letters. We can handle the |
| 14728 | # drive letters (cygwin fileutils understands them), so leave them, |
| 14729 | # especially as we might pass files found there to a mingw objdump, |
| 14730 | # which wouldn't understand a cygwinified path. Ahh. |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14731 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14732 | else |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14733 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14734 | fi |
| 14735 | ;; |
| 14736 | pw32*) |
| 14737 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 14738 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14739 | ;; |
| 14740 | esac |
| 14741 | ;; |
| 14742 | |
| 14743 | *) |
| 14744 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 14745 | ;; |
| 14746 | esac |
| 14747 | dynamic_linker='Win32 ld.exe' |
| 14748 | # FIXME: first we should search . and the directory the executable is in |
| 14749 | shlibpath_var=PATH |
| 14750 | ;; |
| 14751 | |
| 14752 | darwin* | rhapsody*) |
| 14753 | dynamic_linker="$host_os dyld" |
| 14754 | version_type=darwin |
| 14755 | need_lib_prefix=no |
| 14756 | need_version=no |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14757 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14758 | soname_spec='${libname}${release}${major}$shared_ext' |
| 14759 | shlibpath_overrides_runpath=yes |
| 14760 | shlibpath_var=DYLD_LIBRARY_PATH |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 14761 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 14762 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14763 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 14764 | ;; |
| 14765 | |
| 14766 | dgux*) |
| 14767 | version_type=linux |
| 14768 | need_lib_prefix=no |
| 14769 | need_version=no |
| 14770 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 14771 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14772 | shlibpath_var=LD_LIBRARY_PATH |
| 14773 | ;; |
| 14774 | |
| 14775 | freebsd1*) |
| 14776 | dynamic_linker=no |
| 14777 | ;; |
| 14778 | |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 14779 | freebsd* | dragonfly*) |
| 14780 | # DragonFly does not have aout. When/if they implement a new |
| 14781 | # versioning mechanism, adjust this. |
| 14782 | if test -x /usr/bin/objformat; then |
| 14783 | objformat=`/usr/bin/objformat` |
| 14784 | else |
| 14785 | case $host_os in |
| 14786 | freebsd[123]*) objformat=aout ;; |
| 14787 | *) objformat=elf ;; |
| 14788 | esac |
| 14789 | fi |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14790 | version_type=freebsd-$objformat |
| 14791 | case $version_type in |
| 14792 | freebsd-elf*) |
| 14793 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 14794 | need_version=no |
| 14795 | need_lib_prefix=no |
| 14796 | ;; |
| 14797 | freebsd-*) |
| 14798 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 14799 | need_version=yes |
| 14800 | ;; |
| 14801 | esac |
| 14802 | shlibpath_var=LD_LIBRARY_PATH |
| 14803 | case $host_os in |
| 14804 | freebsd2*) |
| 14805 | shlibpath_overrides_runpath=yes |
| 14806 | ;; |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 14807 | freebsd3.[01]* | freebsdelf3.[01]*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14808 | shlibpath_overrides_runpath=yes |
| 14809 | hardcode_into_libs=yes |
| 14810 | ;; |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 14811 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 14812 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14813 | shlibpath_overrides_runpath=no |
| 14814 | hardcode_into_libs=yes |
| 14815 | ;; |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 14816 | *) # from 4.6 on, and DragonFly |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 14817 | shlibpath_overrides_runpath=yes |
| 14818 | hardcode_into_libs=yes |
| 14819 | ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14820 | esac |
| 14821 | ;; |
| 14822 | |
| 14823 | gnu*) |
| 14824 | version_type=linux |
| 14825 | need_lib_prefix=no |
| 14826 | need_version=no |
| 14827 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 14828 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14829 | shlibpath_var=LD_LIBRARY_PATH |
| 14830 | hardcode_into_libs=yes |
| 14831 | ;; |
| 14832 | |
| 14833 | hpux9* | hpux10* | hpux11*) |
| 14834 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 14835 | # link against other versions. |
| 14836 | version_type=sunos |
| 14837 | need_lib_prefix=no |
| 14838 | need_version=no |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 14839 | case $host_cpu in |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14840 | ia64*) |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 14841 | shrext_cmds='.so' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14842 | hardcode_into_libs=yes |
| 14843 | dynamic_linker="$host_os dld.so" |
| 14844 | shlibpath_var=LD_LIBRARY_PATH |
| 14845 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 14846 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14847 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14848 | if test "X$HPUX_IA64_MODE" = X32; then |
| 14849 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 14850 | else |
| 14851 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 14852 | fi |
| 14853 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 14854 | ;; |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14855 | hppa*64*) |
| 14856 | shrext_cmds='.sl' |
| 14857 | hardcode_into_libs=yes |
| 14858 | dynamic_linker="$host_os dld.sl" |
| 14859 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 14860 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 14861 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14862 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14863 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 14864 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 14865 | ;; |
| 14866 | *) |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 14867 | shrext_cmds='.sl' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14868 | dynamic_linker="$host_os dld.sl" |
| 14869 | shlibpath_var=SHLIB_PATH |
| 14870 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 14871 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14872 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14873 | ;; |
| 14874 | esac |
| 14875 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 14876 | postinstall_cmds='chmod 555 $lib' |
| 14877 | ;; |
| 14878 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 14879 | interix[3-9]*) |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 14880 | version_type=linux |
| 14881 | need_lib_prefix=no |
| 14882 | need_version=no |
| 14883 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 14884 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14885 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 14886 | shlibpath_var=LD_LIBRARY_PATH |
| 14887 | shlibpath_overrides_runpath=no |
| 14888 | hardcode_into_libs=yes |
| 14889 | ;; |
| 14890 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14891 | irix5* | irix6* | nonstopux*) |
| 14892 | case $host_os in |
| 14893 | nonstopux*) version_type=nonstopux ;; |
| 14894 | *) |
| 14895 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 14896 | version_type=linux |
| 14897 | else |
| 14898 | version_type=irix |
| 14899 | fi ;; |
| 14900 | esac |
| 14901 | need_lib_prefix=no |
| 14902 | need_version=no |
| 14903 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14904 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 14905 | case $host_os in |
| 14906 | irix5* | nonstopux*) |
| 14907 | libsuff= shlibsuff= |
| 14908 | ;; |
| 14909 | *) |
| 14910 | case $LD in # libtool.m4 will add one of these switches to LD |
| 14911 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 14912 | libsuff= shlibsuff= libmagic=32-bit;; |
| 14913 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 14914 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 14915 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 14916 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 14917 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 14918 | esac |
| 14919 | ;; |
| 14920 | esac |
| 14921 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 14922 | shlibpath_overrides_runpath=no |
| 14923 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 14924 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 14925 | hardcode_into_libs=yes |
| 14926 | ;; |
| 14927 | |
| 14928 | # No shared lib support for Linux oldld, aout, or coff. |
| 14929 | linux*oldld* | linux*aout* | linux*coff*) |
| 14930 | dynamic_linker=no |
| 14931 | ;; |
| 14932 | |
| 14933 | # This must be Linux ELF. |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14934 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 14935 | version_type=linux |
| 14936 | need_lib_prefix=no |
| 14937 | need_version=no |
| 14938 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14939 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14940 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 14941 | shlibpath_var=LD_LIBRARY_PATH |
| 14942 | shlibpath_overrides_runpath=no |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14943 | # Some binutils ld are patched to set DT_RUNPATH |
| 14944 | save_LDFLAGS=$LDFLAGS |
| 14945 | save_libdir=$libdir |
| 14946 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ |
| 14947 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 14948 | cat >conftest.$ac_ext <<_ACEOF |
| 14949 | /* confdefs.h. */ |
| 14950 | _ACEOF |
| 14951 | cat confdefs.h >>conftest.$ac_ext |
| 14952 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14953 | /* end confdefs.h. */ |
| 14954 | |
| 14955 | int |
| 14956 | main () |
| 14957 | { |
| 14958 | |
| 14959 | ; |
| 14960 | return 0; |
| 14961 | } |
| 14962 | _ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 14963 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14964 | if { (ac_try="$ac_link" |
| 14965 | case "(($ac_try" in |
| 14966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14967 | *) ac_try_echo=$ac_try;; |
| 14968 | esac |
| 14969 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14970 | $as_echo "$ac_try_echo") >&5 |
| 14971 | (eval "$ac_link") 2>conftest.er1 |
| 14972 | ac_status=$? |
| 14973 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14974 | rm -f conftest.er1 |
| 14975 | cat conftest.err >&5 |
| 14976 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14977 | (exit $ac_status); } && { |
| 14978 | test -z "$ac_cxx_werror_flag" || |
| 14979 | test ! -s conftest.err |
| 14980 | } && test -s conftest$ac_exeext && { |
| 14981 | test "$cross_compiling" = yes || |
| 14982 | $as_test_x conftest$ac_exeext |
| 14983 | }; then |
| 14984 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14985 | shlibpath_overrides_runpath=yes |
| 14986 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 14987 | |
| 14988 | else |
| 14989 | $as_echo "$as_me: failed program was:" >&5 |
| 14990 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14991 | |
| 14992 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14993 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 14994 | |
| 14995 | rm -rf conftest.dSYM |
| 14996 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 14997 | conftest$ac_exeext conftest.$ac_ext |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 14998 | LDFLAGS=$save_LDFLAGS |
| 14999 | libdir=$save_libdir |
| 15000 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15001 | # This implies no fast_install, which is unacceptable. |
| 15002 | # Some rework will be needed to allow for fast_install |
| 15003 | # before this can be enabled. |
| 15004 | hardcode_into_libs=yes |
| 15005 | |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 15006 | # Append ld.so.conf contents to the search path |
| 15007 | if test -f /etc/ld.so.conf; then |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 15008 | 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' ' '` |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 15009 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 15010 | fi |
| 15011 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15012 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 15013 | # powerpc, because MkLinux only supported shared libraries with the |
| 15014 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 15015 | # most powerpc-linux boxes support dynamic linking these days and |
| 15016 | # people can always --disable-shared, the test was removed, and we |
| 15017 | # assume the GNU/Linux dynamic linker is in use. |
| 15018 | dynamic_linker='GNU/Linux ld.so' |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 15019 | ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15020 | |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 15021 | netbsdelf*-gnu) |
| 15022 | version_type=linux |
| 15023 | need_lib_prefix=no |
| 15024 | need_version=no |
| 15025 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15026 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15027 | shlibpath_var=LD_LIBRARY_PATH |
| 15028 | shlibpath_overrides_runpath=no |
| 15029 | hardcode_into_libs=yes |
| 15030 | dynamic_linker='NetBSD ld.elf_so' |
| 15031 | ;; |
| 15032 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15033 | netbsd*) |
| 15034 | version_type=sunos |
| 15035 | need_lib_prefix=no |
| 15036 | need_version=no |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 15037 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15038 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 15039 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 15040 | dynamic_linker='NetBSD (a.out) ld.so' |
| 15041 | else |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 15042 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15043 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15044 | dynamic_linker='NetBSD ld.elf_so' |
| 15045 | fi |
| 15046 | shlibpath_var=LD_LIBRARY_PATH |
| 15047 | shlibpath_overrides_runpath=yes |
| 15048 | hardcode_into_libs=yes |
| 15049 | ;; |
| 15050 | |
| 15051 | newsos6) |
| 15052 | version_type=linux |
| 15053 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15054 | shlibpath_var=LD_LIBRARY_PATH |
| 15055 | shlibpath_overrides_runpath=yes |
| 15056 | ;; |
| 15057 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 15058 | *nto* | *qnx*) |
| 15059 | version_type=qnx |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15060 | need_lib_prefix=no |
| 15061 | need_version=no |
| 15062 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15063 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15064 | shlibpath_var=LD_LIBRARY_PATH |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 15065 | shlibpath_overrides_runpath=no |
| 15066 | hardcode_into_libs=yes |
| 15067 | dynamic_linker='ldqnx.so' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15068 | ;; |
| 15069 | |
| 15070 | openbsd*) |
| 15071 | version_type=sunos |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 15072 | sys_lib_dlsearch_path_spec="/usr/lib" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15073 | need_lib_prefix=no |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 15074 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 15075 | case $host_os in |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 15076 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 15077 | *) need_version=no ;; |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 15078 | esac |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15079 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 15080 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 15081 | shlibpath_var=LD_LIBRARY_PATH |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 15082 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15083 | case $host_os in |
| 15084 | openbsd2.[89] | openbsd2.[89].*) |
| 15085 | shlibpath_overrides_runpath=no |
| 15086 | ;; |
| 15087 | *) |
| 15088 | shlibpath_overrides_runpath=yes |
| 15089 | ;; |
| 15090 | esac |
| 15091 | else |
| 15092 | shlibpath_overrides_runpath=yes |
| 15093 | fi |
| 15094 | ;; |
| 15095 | |
| 15096 | os2*) |
| 15097 | libname_spec='$name' |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 15098 | shrext_cmds=".dll" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15099 | need_lib_prefix=no |
| 15100 | library_names_spec='$libname${shared_ext} $libname.a' |
| 15101 | dynamic_linker='OS/2 ld.exe' |
| 15102 | shlibpath_var=LIBPATH |
| 15103 | ;; |
| 15104 | |
| 15105 | osf3* | osf4* | osf5*) |
| 15106 | version_type=osf |
| 15107 | need_lib_prefix=no |
| 15108 | need_version=no |
| 15109 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15110 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15111 | shlibpath_var=LD_LIBRARY_PATH |
| 15112 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 15113 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 15114 | ;; |
| 15115 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 15116 | rdos*) |
| 15117 | dynamic_linker=no |
| 15118 | ;; |
| 15119 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15120 | solaris*) |
| 15121 | version_type=linux |
| 15122 | need_lib_prefix=no |
| 15123 | need_version=no |
| 15124 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15125 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15126 | shlibpath_var=LD_LIBRARY_PATH |
| 15127 | shlibpath_overrides_runpath=yes |
| 15128 | hardcode_into_libs=yes |
| 15129 | # ldd complains unless libraries are executable |
| 15130 | postinstall_cmds='chmod +x $lib' |
| 15131 | ;; |
| 15132 | |
| 15133 | sunos4*) |
| 15134 | version_type=sunos |
| 15135 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 15136 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 15137 | shlibpath_var=LD_LIBRARY_PATH |
| 15138 | shlibpath_overrides_runpath=yes |
| 15139 | if test "$with_gnu_ld" = yes; then |
| 15140 | need_lib_prefix=no |
| 15141 | fi |
| 15142 | need_version=yes |
| 15143 | ;; |
| 15144 | |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 15145 | sysv4 | sysv4.3*) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15146 | version_type=linux |
| 15147 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15148 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15149 | shlibpath_var=LD_LIBRARY_PATH |
| 15150 | case $host_vendor in |
| 15151 | sni) |
| 15152 | shlibpath_overrides_runpath=no |
| 15153 | need_lib_prefix=no |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15154 | runpath_var=LD_RUN_PATH |
| 15155 | ;; |
| 15156 | siemens) |
| 15157 | need_lib_prefix=no |
| 15158 | ;; |
| 15159 | motorola) |
| 15160 | need_lib_prefix=no |
| 15161 | need_version=no |
| 15162 | shlibpath_overrides_runpath=no |
| 15163 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 15164 | ;; |
| 15165 | esac |
| 15166 | ;; |
| 15167 | |
| 15168 | sysv4*MP*) |
| 15169 | if test -d /usr/nec ;then |
| 15170 | version_type=linux |
| 15171 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 15172 | soname_spec='$libname${shared_ext}.$major' |
| 15173 | shlibpath_var=LD_LIBRARY_PATH |
| 15174 | fi |
| 15175 | ;; |
| 15176 | |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 15177 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 15178 | version_type=freebsd-elf |
| 15179 | need_lib_prefix=no |
| 15180 | need_version=no |
| 15181 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 15182 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15183 | shlibpath_var=LD_LIBRARY_PATH |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 15184 | shlibpath_overrides_runpath=yes |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 15185 | hardcode_into_libs=yes |
| 15186 | if test "$with_gnu_ld" = yes; then |
| 15187 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 15188 | else |
| 15189 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 15190 | case $host_os in |
| 15191 | sco3.2v5*) |
| 15192 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 15193 | ;; |
| 15194 | esac |
| 15195 | fi |
| 15196 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 15197 | ;; |
| 15198 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 15199 | tpf*) |
| 15200 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 15201 | version_type=linux |
| 15202 | need_lib_prefix=no |
| 15203 | need_version=no |
| 15204 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15205 | shlibpath_var=LD_LIBRARY_PATH |
| 15206 | shlibpath_overrides_runpath=no |
| 15207 | hardcode_into_libs=yes |
| 15208 | ;; |
| 15209 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15210 | uts4*) |
| 15211 | version_type=linux |
| 15212 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15213 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15214 | shlibpath_var=LD_LIBRARY_PATH |
| 15215 | ;; |
| 15216 | |
| 15217 | *) |
| 15218 | dynamic_linker=no |
| 15219 | ;; |
| 15220 | esac |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 15221 | { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 15222 | $as_echo "$dynamic_linker" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15223 | test "$dynamic_linker" = no && can_build_shared=no |
| 15224 | |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 15225 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 15226 | if test "$GCC" = yes; then |
| 15227 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15228 | fi |
| 15229 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 15230 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 15231 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 15232 | fi |
| 15233 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 15234 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 15235 | fi |
| 15236 | |
| 15237 | |
| 15238 | |
| 15239 | |
| 15240 | |
| 15241 | |
| 15242 | |
| 15243 | |
| 15244 | |
| 15245 | |
| 15246 | |
| 15247 | |
| 15248 | |
| 15249 | |
| 15250 | |
| 15251 | |
| 15252 | |
| 15253 | |
| 15254 | |
| 15255 | |
| 15256 | |
| 15257 | |
| 15258 | |
| 15259 | |
| 15260 | |
| 15261 | |
| 15262 | |
| 15263 | |
| 15264 | |
| 15265 | |
| 15266 | |
| 15267 | |
| 15268 | |
| 15269 | |
| 15270 | |
| 15271 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 15272 | { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 15273 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 15274 | hardcode_action_CXX= |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 15275 | if test -n "$hardcode_libdir_flag_spec_CXX" || |
| 15276 | test -n "$runpath_var_CXX" || |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 15277 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15278 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 15279 | # We can hardcode non-existent directories. |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 15280 | if test "$hardcode_direct_CXX" != no && |
| 15281 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 15282 | # have to relink, otherwise we might link with an installed library |
| 15283 | # when we should be linking with a yet-to-be-installed one |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 15284 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 15285 | test "$hardcode_minus_L_CXX" != no; then |
| 15286 | # Linking always hardcodes the temporary library directory. |
| 15287 | hardcode_action_CXX=relink |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15288 | else |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 15289 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 15290 | hardcode_action_CXX=immediate |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15291 | fi |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15292 | else |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 15293 | # We cannot hardcode anything, or else we can only hardcode existing |
| 15294 | # directories. |
| 15295 | hardcode_action_CXX=unsupported |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15296 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 15297 | { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 15298 | $as_echo "$hardcode_action_CXX" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15299 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 15300 | if test "$hardcode_action_CXX" = relink || |
| 15301 | test "$inherit_rpath_CXX" = yes; then |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 15302 | # Fast installation is not supported |
| 15303 | enable_fast_install=no |
| 15304 | elif test "$shlibpath_overrides_runpath" = yes || |
| 15305 | test "$enable_shared" = no; then |
| 15306 | # Fast installation is not necessary |
| 15307 | enable_fast_install=needless |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15308 | fi |
| 15309 | |
| 15310 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15311 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15312 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15313 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15314 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15315 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 15316 | fi # test -n "$compiler" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15317 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 15318 | CC=$lt_save_CC |
| 15319 | LDCXX=$LD |
| 15320 | LD=$lt_save_LD |
| 15321 | GCC=$lt_save_GCC |
| 15322 | with_gnu_ld=$lt_save_with_gnu_ld |
| 15323 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 15324 | lt_cv_path_LD=$lt_save_path_LD |
| 15325 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 15326 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 15327 | fi # test "$_lt_caught_CXX_error" != yes |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15328 | |
| 15329 | ac_ext=c |
| 15330 | ac_cpp='$CPP $CPPFLAGS' |
| 15331 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 15332 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 15333 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 15334 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15335 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15336 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15337 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15338 | |
| 15339 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15340 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15341 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15342 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15343 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15344 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15345 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15346 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 15347 | ac_config_commands="$ac_config_commands libtool" |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 15348 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15349 | |
| 15350 | |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 15351 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 15352 | # Only expand once: |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15353 | |
| 15354 | |
| 15355 | |
| 15356 | |
| 15357 | |
| 15358 | # Check whether some low-level functions/files are available |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 15359 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 15360 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 15361 | if test "${ac_cv_header_stdc+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 15362 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15363 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 15364 | cat >conftest.$ac_ext <<_ACEOF |
| 15365 | /* confdefs.h. */ |
| 15366 | _ACEOF |
| 15367 | cat confdefs.h >>conftest.$ac_ext |
| 15368 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15369 | /* end confdefs.h. */ |
| 15370 | #include <stdlib.h> |
| 15371 | #include <stdarg.h> |
| 15372 | #include <string.h> |
| 15373 | #include <float.h> |
| 15374 | |
| 15375 | int |
| 15376 | main () |
| 15377 | { |
| 15378 | |
| 15379 | ; |
| 15380 | return 0; |
| 15381 | } |
| 15382 | _ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 15383 | rm -f conftest.$ac_objext |
| 15384 | if { (ac_try="$ac_compile" |
| 15385 | case "(($ac_try" in |
| 15386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15387 | *) ac_try_echo=$ac_try;; |
| 15388 | esac |
| 15389 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15390 | $as_echo "$ac_try_echo") >&5 |
| 15391 | (eval "$ac_compile") 2>conftest.er1 |
| 15392 | ac_status=$? |
| 15393 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15394 | rm -f conftest.er1 |
| 15395 | cat conftest.err >&5 |
| 15396 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15397 | (exit $ac_status); } && { |
| 15398 | test -z "$ac_c_werror_flag" || |
| 15399 | test ! -s conftest.err |
| 15400 | } && test -s conftest.$ac_objext; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15401 | ac_cv_header_stdc=yes |
| 15402 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 15403 | $as_echo "$as_me: failed program was:" >&5 |
| 15404 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15405 | |
| 15406 | ac_cv_header_stdc=no |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15407 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 15408 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 15409 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15410 | |
| 15411 | if test $ac_cv_header_stdc = yes; then |
| 15412 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 15413 | cat >conftest.$ac_ext <<_ACEOF |
| 15414 | /* confdefs.h. */ |
| 15415 | _ACEOF |
| 15416 | cat confdefs.h >>conftest.$ac_ext |
| 15417 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15418 | /* end confdefs.h. */ |
| 15419 | #include <string.h> |
| 15420 | |
| 15421 | _ACEOF |
| 15422 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 15423 | $EGREP "memchr" >/dev/null 2>&1; then |
| 15424 | : |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15425 | else |
| 15426 | ac_cv_header_stdc=no |
| 15427 | fi |
| 15428 | rm -f conftest* |
| 15429 | |
| 15430 | fi |
| 15431 | |
| 15432 | if test $ac_cv_header_stdc = yes; then |
| 15433 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 15434 | cat >conftest.$ac_ext <<_ACEOF |
| 15435 | /* confdefs.h. */ |
| 15436 | _ACEOF |
| 15437 | cat confdefs.h >>conftest.$ac_ext |
| 15438 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15439 | /* end confdefs.h. */ |
| 15440 | #include <stdlib.h> |
| 15441 | |
| 15442 | _ACEOF |
| 15443 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 15444 | $EGREP "free" >/dev/null 2>&1; then |
| 15445 | : |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15446 | else |
| 15447 | ac_cv_header_stdc=no |
| 15448 | fi |
| 15449 | rm -f conftest* |
| 15450 | |
| 15451 | fi |
| 15452 | |
| 15453 | if test $ac_cv_header_stdc = yes; then |
| 15454 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 15455 | if test "$cross_compiling" = yes; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15456 | : |
| 15457 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 15458 | cat >conftest.$ac_ext <<_ACEOF |
| 15459 | /* confdefs.h. */ |
| 15460 | _ACEOF |
| 15461 | cat confdefs.h >>conftest.$ac_ext |
| 15462 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15463 | /* end confdefs.h. */ |
| 15464 | #include <ctype.h> |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 15465 | #include <stdlib.h> |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15466 | #if ((' ' & 0x0FF) == 0x020) |
| 15467 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 15468 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 15469 | #else |
| 15470 | # define ISLOWER(c) \ |
| 15471 | (('a' <= (c) && (c) <= 'i') \ |
| 15472 | || ('j' <= (c) && (c) <= 'r') \ |
| 15473 | || ('s' <= (c) && (c) <= 'z')) |
| 15474 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 15475 | #endif |
| 15476 | |
| 15477 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 15478 | int |
| 15479 | main () |
| 15480 | { |
| 15481 | int i; |
| 15482 | for (i = 0; i < 256; i++) |
| 15483 | if (XOR (islower (i), ISLOWER (i)) |
| 15484 | || toupper (i) != TOUPPER (i)) |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 15485 | return 2; |
| 15486 | return 0; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15487 | } |
| 15488 | _ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 15489 | rm -f conftest$ac_exeext |
| 15490 | if { (ac_try="$ac_link" |
| 15491 | case "(($ac_try" in |
| 15492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15493 | *) ac_try_echo=$ac_try;; |
| 15494 | esac |
| 15495 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15496 | $as_echo "$ac_try_echo") >&5 |
| 15497 | (eval "$ac_link") 2>&5 |
| 15498 | ac_status=$? |
| 15499 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15500 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15501 | { (case "(($ac_try" in |
| 15502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15503 | *) ac_try_echo=$ac_try;; |
| 15504 | esac |
| 15505 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15506 | $as_echo "$ac_try_echo") >&5 |
| 15507 | (eval "$ac_try") 2>&5 |
| 15508 | ac_status=$? |
| 15509 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15510 | (exit $ac_status); }; }; then |
| 15511 | : |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15512 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 15513 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 15514 | $as_echo "$as_me: failed program was:" >&5 |
| 15515 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15516 | |
| 15517 | ( exit $ac_status ) |
| 15518 | ac_cv_header_stdc=no |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15519 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 15520 | rm -rf conftest.dSYM |
| 15521 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 15522 | fi |
| 15523 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 15524 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15525 | fi |
| 15526 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 15527 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 15528 | $as_echo "$ac_cv_header_stdc" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15529 | if test $ac_cv_header_stdc = yes; then |
| 15530 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 15531 | cat >>confdefs.h <<\_ACEOF |
| 15532 | #define STDC_HEADERS 1 |
| 15533 | _ACEOF |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15534 | |
| 15535 | fi |
| 15536 | |
| 15537 | |
| 15538 | # These are tested for by AC_HEADER_STDC, but I check again to set the var |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 15539 | if test "${ac_cv_header_stdint_h+set}" = set; then |
| 15540 | { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5 |
| 15541 | $as_echo_n "checking for stdint.h... " >&6; } |
| 15542 | if test "${ac_cv_header_stdint_h+set}" = set; then |
| 15543 | $as_echo_n "(cached) " >&6 |
| 15544 | fi |
| 15545 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5 |
| 15546 | $as_echo "$ac_cv_header_stdint_h" >&6; } |
| 15547 | else |
| 15548 | # Is the header compilable? |
| 15549 | { $as_echo "$as_me:$LINENO: checking stdint.h usability" >&5 |
| 15550 | $as_echo_n "checking stdint.h usability... " >&6; } |
| 15551 | cat >conftest.$ac_ext <<_ACEOF |
| 15552 | /* confdefs.h. */ |
| 15553 | _ACEOF |
| 15554 | cat confdefs.h >>conftest.$ac_ext |
| 15555 | cat >>conftest.$ac_ext <<_ACEOF |
| 15556 | /* end confdefs.h. */ |
| 15557 | $ac_includes_default |
| 15558 | #include <stdint.h> |
| 15559 | _ACEOF |
| 15560 | rm -f conftest.$ac_objext |
| 15561 | if { (ac_try="$ac_compile" |
| 15562 | case "(($ac_try" in |
| 15563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15564 | *) ac_try_echo=$ac_try;; |
| 15565 | esac |
| 15566 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15567 | $as_echo "$ac_try_echo") >&5 |
| 15568 | (eval "$ac_compile") 2>conftest.er1 |
| 15569 | ac_status=$? |
| 15570 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15571 | rm -f conftest.er1 |
| 15572 | cat conftest.err >&5 |
| 15573 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15574 | (exit $ac_status); } && { |
| 15575 | test -z "$ac_c_werror_flag" || |
| 15576 | test ! -s conftest.err |
| 15577 | } && test -s conftest.$ac_objext; then |
| 15578 | ac_header_compiler=yes |
| 15579 | else |
| 15580 | $as_echo "$as_me: failed program was:" >&5 |
| 15581 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15582 | |
| 15583 | ac_header_compiler=no |
| 15584 | fi |
| 15585 | |
| 15586 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15587 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15588 | $as_echo "$ac_header_compiler" >&6; } |
| 15589 | |
| 15590 | # Is the header present? |
| 15591 | { $as_echo "$as_me:$LINENO: checking stdint.h presence" >&5 |
| 15592 | $as_echo_n "checking stdint.h presence... " >&6; } |
| 15593 | cat >conftest.$ac_ext <<_ACEOF |
| 15594 | /* confdefs.h. */ |
| 15595 | _ACEOF |
| 15596 | cat confdefs.h >>conftest.$ac_ext |
| 15597 | cat >>conftest.$ac_ext <<_ACEOF |
| 15598 | /* end confdefs.h. */ |
| 15599 | #include <stdint.h> |
| 15600 | _ACEOF |
| 15601 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15602 | case "(($ac_try" in |
| 15603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15604 | *) ac_try_echo=$ac_try;; |
| 15605 | esac |
| 15606 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15607 | $as_echo "$ac_try_echo") >&5 |
| 15608 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15609 | ac_status=$? |
| 15610 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15611 | rm -f conftest.er1 |
| 15612 | cat conftest.err >&5 |
| 15613 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15614 | (exit $ac_status); } >/dev/null && { |
| 15615 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 15616 | test ! -s conftest.err |
| 15617 | }; then |
| 15618 | ac_header_preproc=yes |
| 15619 | else |
| 15620 | $as_echo "$as_me: failed program was:" >&5 |
| 15621 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15622 | |
| 15623 | ac_header_preproc=no |
| 15624 | fi |
| 15625 | |
| 15626 | rm -f conftest.err conftest.$ac_ext |
| 15627 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15628 | $as_echo "$ac_header_preproc" >&6; } |
| 15629 | |
| 15630 | # So? What about this header? |
| 15631 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15632 | yes:no: ) |
| 15633 | { $as_echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15634 | $as_echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15635 | { $as_echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5 |
| 15636 | $as_echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;} |
| 15637 | ac_header_preproc=yes |
| 15638 | ;; |
| 15639 | no:yes:* ) |
| 15640 | { $as_echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5 |
| 15641 | $as_echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;} |
| 15642 | { $as_echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5 |
| 15643 | $as_echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;} |
| 15644 | { $as_echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5 |
| 15645 | $as_echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;} |
| 15646 | { $as_echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 15647 | $as_echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15648 | { $as_echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5 |
| 15649 | $as_echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;} |
| 15650 | { $as_echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5 |
| 15651 | $as_echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;} |
| 15652 | ( cat <<\_ASBOX |
| 15653 | ## ------------------------------------ ## |
| 15654 | ## Report this to opensource@google.com ## |
| 15655 | ## ------------------------------------ ## |
| 15656 | _ASBOX |
| 15657 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15658 | ;; |
| 15659 | esac |
| 15660 | { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5 |
| 15661 | $as_echo_n "checking for stdint.h... " >&6; } |
| 15662 | if test "${ac_cv_header_stdint_h+set}" = set; then |
| 15663 | $as_echo_n "(cached) " >&6 |
| 15664 | else |
| 15665 | ac_cv_header_stdint_h=$ac_header_preproc |
| 15666 | fi |
| 15667 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5 |
| 15668 | $as_echo "$ac_cv_header_stdint_h" >&6; } |
| 15669 | |
| 15670 | fi |
| 15671 | if test $ac_cv_header_stdint_h = yes; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15672 | ac_cv_have_stdint_h=1 |
| 15673 | else |
| 15674 | ac_cv_have_stdint_h=0 |
| 15675 | fi |
| 15676 | |
| 15677 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 15678 | if test "${ac_cv_header_sys_types_h+set}" = set; then |
| 15679 | { $as_echo "$as_me:$LINENO: checking for sys/types.h" >&5 |
| 15680 | $as_echo_n "checking for sys/types.h... " >&6; } |
| 15681 | if test "${ac_cv_header_sys_types_h+set}" = set; then |
| 15682 | $as_echo_n "(cached) " >&6 |
| 15683 | fi |
| 15684 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5 |
| 15685 | $as_echo "$ac_cv_header_sys_types_h" >&6; } |
| 15686 | else |
| 15687 | # Is the header compilable? |
| 15688 | { $as_echo "$as_me:$LINENO: checking sys/types.h usability" >&5 |
| 15689 | $as_echo_n "checking sys/types.h usability... " >&6; } |
| 15690 | cat >conftest.$ac_ext <<_ACEOF |
| 15691 | /* confdefs.h. */ |
| 15692 | _ACEOF |
| 15693 | cat confdefs.h >>conftest.$ac_ext |
| 15694 | cat >>conftest.$ac_ext <<_ACEOF |
| 15695 | /* end confdefs.h. */ |
| 15696 | $ac_includes_default |
| 15697 | #include <sys/types.h> |
| 15698 | _ACEOF |
| 15699 | rm -f conftest.$ac_objext |
| 15700 | if { (ac_try="$ac_compile" |
| 15701 | case "(($ac_try" in |
| 15702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15703 | *) ac_try_echo=$ac_try;; |
| 15704 | esac |
| 15705 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15706 | $as_echo "$ac_try_echo") >&5 |
| 15707 | (eval "$ac_compile") 2>conftest.er1 |
| 15708 | ac_status=$? |
| 15709 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15710 | rm -f conftest.er1 |
| 15711 | cat conftest.err >&5 |
| 15712 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15713 | (exit $ac_status); } && { |
| 15714 | test -z "$ac_c_werror_flag" || |
| 15715 | test ! -s conftest.err |
| 15716 | } && test -s conftest.$ac_objext; then |
| 15717 | ac_header_compiler=yes |
| 15718 | else |
| 15719 | $as_echo "$as_me: failed program was:" >&5 |
| 15720 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15721 | |
| 15722 | ac_header_compiler=no |
| 15723 | fi |
| 15724 | |
| 15725 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15726 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15727 | $as_echo "$ac_header_compiler" >&6; } |
| 15728 | |
| 15729 | # Is the header present? |
| 15730 | { $as_echo "$as_me:$LINENO: checking sys/types.h presence" >&5 |
| 15731 | $as_echo_n "checking sys/types.h presence... " >&6; } |
| 15732 | cat >conftest.$ac_ext <<_ACEOF |
| 15733 | /* confdefs.h. */ |
| 15734 | _ACEOF |
| 15735 | cat confdefs.h >>conftest.$ac_ext |
| 15736 | cat >>conftest.$ac_ext <<_ACEOF |
| 15737 | /* end confdefs.h. */ |
| 15738 | #include <sys/types.h> |
| 15739 | _ACEOF |
| 15740 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15741 | case "(($ac_try" in |
| 15742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15743 | *) ac_try_echo=$ac_try;; |
| 15744 | esac |
| 15745 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15746 | $as_echo "$ac_try_echo") >&5 |
| 15747 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15748 | ac_status=$? |
| 15749 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15750 | rm -f conftest.er1 |
| 15751 | cat conftest.err >&5 |
| 15752 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15753 | (exit $ac_status); } >/dev/null && { |
| 15754 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 15755 | test ! -s conftest.err |
| 15756 | }; then |
| 15757 | ac_header_preproc=yes |
| 15758 | else |
| 15759 | $as_echo "$as_me: failed program was:" >&5 |
| 15760 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15761 | |
| 15762 | ac_header_preproc=no |
| 15763 | fi |
| 15764 | |
| 15765 | rm -f conftest.err conftest.$ac_ext |
| 15766 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15767 | $as_echo "$ac_header_preproc" >&6; } |
| 15768 | |
| 15769 | # So? What about this header? |
| 15770 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15771 | yes:no: ) |
| 15772 | { $as_echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15773 | $as_echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15774 | { $as_echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5 |
| 15775 | $as_echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;} |
| 15776 | ac_header_preproc=yes |
| 15777 | ;; |
| 15778 | no:yes:* ) |
| 15779 | { $as_echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5 |
| 15780 | $as_echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;} |
| 15781 | { $as_echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5 |
| 15782 | $as_echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;} |
| 15783 | { $as_echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5 |
| 15784 | $as_echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;} |
| 15785 | { $as_echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 15786 | $as_echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15787 | { $as_echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5 |
| 15788 | $as_echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;} |
| 15789 | { $as_echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5 |
| 15790 | $as_echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;} |
| 15791 | ( cat <<\_ASBOX |
| 15792 | ## ------------------------------------ ## |
| 15793 | ## Report this to opensource@google.com ## |
| 15794 | ## ------------------------------------ ## |
| 15795 | _ASBOX |
| 15796 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15797 | ;; |
| 15798 | esac |
| 15799 | { $as_echo "$as_me:$LINENO: checking for sys/types.h" >&5 |
| 15800 | $as_echo_n "checking for sys/types.h... " >&6; } |
| 15801 | if test "${ac_cv_header_sys_types_h+set}" = set; then |
| 15802 | $as_echo_n "(cached) " >&6 |
| 15803 | else |
| 15804 | ac_cv_header_sys_types_h=$ac_header_preproc |
| 15805 | fi |
| 15806 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5 |
| 15807 | $as_echo "$ac_cv_header_sys_types_h" >&6; } |
| 15808 | |
| 15809 | fi |
| 15810 | if test $ac_cv_header_sys_types_h = yes; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15811 | ac_cv_have_systypes_h=1 |
| 15812 | else |
| 15813 | ac_cv_have_systypes_h=0 |
| 15814 | fi |
| 15815 | |
| 15816 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 15817 | if test "${ac_cv_header_inttypes_h+set}" = set; then |
| 15818 | { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
| 15819 | $as_echo_n "checking for inttypes.h... " >&6; } |
| 15820 | if test "${ac_cv_header_inttypes_h+set}" = set; then |
| 15821 | $as_echo_n "(cached) " >&6 |
| 15822 | fi |
| 15823 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5 |
| 15824 | $as_echo "$ac_cv_header_inttypes_h" >&6; } |
| 15825 | else |
| 15826 | # Is the header compilable? |
| 15827 | { $as_echo "$as_me:$LINENO: checking inttypes.h usability" >&5 |
| 15828 | $as_echo_n "checking inttypes.h usability... " >&6; } |
| 15829 | cat >conftest.$ac_ext <<_ACEOF |
| 15830 | /* confdefs.h. */ |
| 15831 | _ACEOF |
| 15832 | cat confdefs.h >>conftest.$ac_ext |
| 15833 | cat >>conftest.$ac_ext <<_ACEOF |
| 15834 | /* end confdefs.h. */ |
| 15835 | $ac_includes_default |
| 15836 | #include <inttypes.h> |
| 15837 | _ACEOF |
| 15838 | rm -f conftest.$ac_objext |
| 15839 | if { (ac_try="$ac_compile" |
| 15840 | case "(($ac_try" in |
| 15841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15842 | *) ac_try_echo=$ac_try;; |
| 15843 | esac |
| 15844 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15845 | $as_echo "$ac_try_echo") >&5 |
| 15846 | (eval "$ac_compile") 2>conftest.er1 |
| 15847 | ac_status=$? |
| 15848 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15849 | rm -f conftest.er1 |
| 15850 | cat conftest.err >&5 |
| 15851 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15852 | (exit $ac_status); } && { |
| 15853 | test -z "$ac_c_werror_flag" || |
| 15854 | test ! -s conftest.err |
| 15855 | } && test -s conftest.$ac_objext; then |
| 15856 | ac_header_compiler=yes |
| 15857 | else |
| 15858 | $as_echo "$as_me: failed program was:" >&5 |
| 15859 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15860 | |
| 15861 | ac_header_compiler=no |
| 15862 | fi |
| 15863 | |
| 15864 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15865 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15866 | $as_echo "$ac_header_compiler" >&6; } |
| 15867 | |
| 15868 | # Is the header present? |
| 15869 | { $as_echo "$as_me:$LINENO: checking inttypes.h presence" >&5 |
| 15870 | $as_echo_n "checking inttypes.h presence... " >&6; } |
| 15871 | cat >conftest.$ac_ext <<_ACEOF |
| 15872 | /* confdefs.h. */ |
| 15873 | _ACEOF |
| 15874 | cat confdefs.h >>conftest.$ac_ext |
| 15875 | cat >>conftest.$ac_ext <<_ACEOF |
| 15876 | /* end confdefs.h. */ |
| 15877 | #include <inttypes.h> |
| 15878 | _ACEOF |
| 15879 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15880 | case "(($ac_try" in |
| 15881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15882 | *) ac_try_echo=$ac_try;; |
| 15883 | esac |
| 15884 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15885 | $as_echo "$ac_try_echo") >&5 |
| 15886 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15887 | ac_status=$? |
| 15888 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15889 | rm -f conftest.er1 |
| 15890 | cat conftest.err >&5 |
| 15891 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15892 | (exit $ac_status); } >/dev/null && { |
| 15893 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 15894 | test ! -s conftest.err |
| 15895 | }; then |
| 15896 | ac_header_preproc=yes |
| 15897 | else |
| 15898 | $as_echo "$as_me: failed program was:" >&5 |
| 15899 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15900 | |
| 15901 | ac_header_preproc=no |
| 15902 | fi |
| 15903 | |
| 15904 | rm -f conftest.err conftest.$ac_ext |
| 15905 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15906 | $as_echo "$ac_header_preproc" >&6; } |
| 15907 | |
| 15908 | # So? What about this header? |
| 15909 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15910 | yes:no: ) |
| 15911 | { $as_echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15912 | $as_echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15913 | { $as_echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5 |
| 15914 | $as_echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;} |
| 15915 | ac_header_preproc=yes |
| 15916 | ;; |
| 15917 | no:yes:* ) |
| 15918 | { $as_echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5 |
| 15919 | $as_echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;} |
| 15920 | { $as_echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5 |
| 15921 | $as_echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;} |
| 15922 | { $as_echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5 |
| 15923 | $as_echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;} |
| 15924 | { $as_echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 15925 | $as_echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15926 | { $as_echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5 |
| 15927 | $as_echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;} |
| 15928 | { $as_echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5 |
| 15929 | $as_echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;} |
| 15930 | ( cat <<\_ASBOX |
| 15931 | ## ------------------------------------ ## |
| 15932 | ## Report this to opensource@google.com ## |
| 15933 | ## ------------------------------------ ## |
| 15934 | _ASBOX |
| 15935 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15936 | ;; |
| 15937 | esac |
| 15938 | { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
| 15939 | $as_echo_n "checking for inttypes.h... " >&6; } |
| 15940 | if test "${ac_cv_header_inttypes_h+set}" = set; then |
| 15941 | $as_echo_n "(cached) " >&6 |
| 15942 | else |
| 15943 | ac_cv_header_inttypes_h=$ac_header_preproc |
| 15944 | fi |
| 15945 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5 |
| 15946 | $as_echo "$ac_cv_header_inttypes_h" >&6; } |
| 15947 | |
| 15948 | fi |
| 15949 | if test $ac_cv_header_inttypes_h = yes; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 15950 | ac_cv_have_inttypes_h=1 |
| 15951 | else |
| 15952 | ac_cv_have_inttypes_h=0 |
| 15953 | fi |
| 15954 | |
| 15955 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 15956 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 15957 | for ac_header in fnmatch.h |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 15958 | do |
| 15959 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15960 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15961 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15962 | $as_echo_n "checking for $ac_header... " >&6; } |
| 15963 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15964 | $as_echo_n "(cached) " >&6 |
| 15965 | fi |
| 15966 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 15967 | $as_echo "$as_val"'` |
| 15968 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15969 | $as_echo "$ac_res" >&6; } |
| 15970 | else |
| 15971 | # Is the header compilable? |
| 15972 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15973 | $as_echo_n "checking $ac_header usability... " >&6; } |
| 15974 | cat >conftest.$ac_ext <<_ACEOF |
| 15975 | /* confdefs.h. */ |
| 15976 | _ACEOF |
| 15977 | cat confdefs.h >>conftest.$ac_ext |
| 15978 | cat >>conftest.$ac_ext <<_ACEOF |
| 15979 | /* end confdefs.h. */ |
| 15980 | $ac_includes_default |
| 15981 | #include <$ac_header> |
| 15982 | _ACEOF |
| 15983 | rm -f conftest.$ac_objext |
| 15984 | if { (ac_try="$ac_compile" |
| 15985 | case "(($ac_try" in |
| 15986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15987 | *) ac_try_echo=$ac_try;; |
| 15988 | esac |
| 15989 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15990 | $as_echo "$ac_try_echo") >&5 |
| 15991 | (eval "$ac_compile") 2>conftest.er1 |
| 15992 | ac_status=$? |
| 15993 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15994 | rm -f conftest.er1 |
| 15995 | cat conftest.err >&5 |
| 15996 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15997 | (exit $ac_status); } && { |
| 15998 | test -z "$ac_c_werror_flag" || |
| 15999 | test ! -s conftest.err |
| 16000 | } && test -s conftest.$ac_objext; then |
| 16001 | ac_header_compiler=yes |
| 16002 | else |
| 16003 | $as_echo "$as_me: failed program was:" >&5 |
| 16004 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16005 | |
| 16006 | ac_header_compiler=no |
| 16007 | fi |
| 16008 | |
| 16009 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16010 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16011 | $as_echo "$ac_header_compiler" >&6; } |
| 16012 | |
| 16013 | # Is the header present? |
| 16014 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16015 | $as_echo_n "checking $ac_header presence... " >&6; } |
| 16016 | cat >conftest.$ac_ext <<_ACEOF |
| 16017 | /* confdefs.h. */ |
| 16018 | _ACEOF |
| 16019 | cat confdefs.h >>conftest.$ac_ext |
| 16020 | cat >>conftest.$ac_ext <<_ACEOF |
| 16021 | /* end confdefs.h. */ |
| 16022 | #include <$ac_header> |
| 16023 | _ACEOF |
| 16024 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16025 | case "(($ac_try" in |
| 16026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16027 | *) ac_try_echo=$ac_try;; |
| 16028 | esac |
| 16029 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16030 | $as_echo "$ac_try_echo") >&5 |
| 16031 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16032 | ac_status=$? |
| 16033 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16034 | rm -f conftest.er1 |
| 16035 | cat conftest.err >&5 |
| 16036 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16037 | (exit $ac_status); } >/dev/null && { |
| 16038 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 16039 | test ! -s conftest.err |
| 16040 | }; then |
| 16041 | ac_header_preproc=yes |
| 16042 | else |
| 16043 | $as_echo "$as_me: failed program was:" >&5 |
| 16044 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16045 | |
| 16046 | ac_header_preproc=no |
| 16047 | fi |
| 16048 | |
| 16049 | rm -f conftest.err conftest.$ac_ext |
| 16050 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16051 | $as_echo "$ac_header_preproc" >&6; } |
| 16052 | |
| 16053 | # So? What about this header? |
| 16054 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16055 | yes:no: ) |
| 16056 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16057 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16058 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16059 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16060 | ac_header_preproc=yes |
| 16061 | ;; |
| 16062 | no:yes:* ) |
| 16063 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16064 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16065 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16066 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16067 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16068 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16069 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16070 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16071 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16072 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16073 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16074 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16075 | ( cat <<\_ASBOX |
| 16076 | ## ------------------------------------ ## |
| 16077 | ## Report this to opensource@google.com ## |
| 16078 | ## ------------------------------------ ## |
| 16079 | _ASBOX |
| 16080 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16081 | ;; |
| 16082 | esac |
| 16083 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16084 | $as_echo_n "checking for $ac_header... " >&6; } |
| 16085 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16086 | $as_echo_n "(cached) " >&6 |
| 16087 | else |
| 16088 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16089 | fi |
| 16090 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 16091 | $as_echo "$as_val"'` |
| 16092 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16093 | $as_echo "$ac_res" >&6; } |
| 16094 | |
| 16095 | fi |
| 16096 | if test `eval 'as_val=${'$as_ac_Header'} |
| 16097 | $as_echo "$as_val"'` = yes; then |
Craig Silverstein | 6791468 | 2008-08-21 00:50:59 +0000 | [diff] [blame] | 16098 | cat >>confdefs.h <<_ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 16099 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 16100 | _ACEOF |
| 16101 | |
| 16102 | fi |
| 16103 | |
| 16104 | done |
| 16105 | |
| 16106 | |
| 16107 | for ac_header in sys/stat.h |
| 16108 | do |
| 16109 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16110 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16111 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16112 | $as_echo_n "checking for $ac_header... " >&6; } |
| 16113 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16114 | $as_echo_n "(cached) " >&6 |
| 16115 | fi |
| 16116 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 16117 | $as_echo "$as_val"'` |
| 16118 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16119 | $as_echo "$ac_res" >&6; } |
| 16120 | else |
| 16121 | # Is the header compilable? |
| 16122 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16123 | $as_echo_n "checking $ac_header usability... " >&6; } |
| 16124 | cat >conftest.$ac_ext <<_ACEOF |
| 16125 | /* confdefs.h. */ |
| 16126 | _ACEOF |
| 16127 | cat confdefs.h >>conftest.$ac_ext |
| 16128 | cat >>conftest.$ac_ext <<_ACEOF |
| 16129 | /* end confdefs.h. */ |
| 16130 | $ac_includes_default |
| 16131 | #include <$ac_header> |
| 16132 | _ACEOF |
| 16133 | rm -f conftest.$ac_objext |
| 16134 | if { (ac_try="$ac_compile" |
| 16135 | case "(($ac_try" in |
| 16136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16137 | *) ac_try_echo=$ac_try;; |
| 16138 | esac |
| 16139 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16140 | $as_echo "$ac_try_echo") >&5 |
| 16141 | (eval "$ac_compile") 2>conftest.er1 |
| 16142 | ac_status=$? |
| 16143 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16144 | rm -f conftest.er1 |
| 16145 | cat conftest.err >&5 |
| 16146 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16147 | (exit $ac_status); } && { |
| 16148 | test -z "$ac_c_werror_flag" || |
| 16149 | test ! -s conftest.err |
| 16150 | } && test -s conftest.$ac_objext; then |
| 16151 | ac_header_compiler=yes |
| 16152 | else |
| 16153 | $as_echo "$as_me: failed program was:" >&5 |
| 16154 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16155 | |
| 16156 | ac_header_compiler=no |
| 16157 | fi |
| 16158 | |
| 16159 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16160 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16161 | $as_echo "$ac_header_compiler" >&6; } |
| 16162 | |
| 16163 | # Is the header present? |
| 16164 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16165 | $as_echo_n "checking $ac_header presence... " >&6; } |
| 16166 | cat >conftest.$ac_ext <<_ACEOF |
| 16167 | /* confdefs.h. */ |
| 16168 | _ACEOF |
| 16169 | cat confdefs.h >>conftest.$ac_ext |
| 16170 | cat >>conftest.$ac_ext <<_ACEOF |
| 16171 | /* end confdefs.h. */ |
| 16172 | #include <$ac_header> |
| 16173 | _ACEOF |
| 16174 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16175 | case "(($ac_try" in |
| 16176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16177 | *) ac_try_echo=$ac_try;; |
| 16178 | esac |
| 16179 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16180 | $as_echo "$ac_try_echo") >&5 |
| 16181 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16182 | ac_status=$? |
| 16183 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16184 | rm -f conftest.er1 |
| 16185 | cat conftest.err >&5 |
| 16186 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16187 | (exit $ac_status); } >/dev/null && { |
| 16188 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 16189 | test ! -s conftest.err |
| 16190 | }; then |
| 16191 | ac_header_preproc=yes |
| 16192 | else |
| 16193 | $as_echo "$as_me: failed program was:" >&5 |
| 16194 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16195 | |
| 16196 | ac_header_preproc=no |
| 16197 | fi |
| 16198 | |
| 16199 | rm -f conftest.err conftest.$ac_ext |
| 16200 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16201 | $as_echo "$ac_header_preproc" >&6; } |
| 16202 | |
| 16203 | # So? What about this header? |
| 16204 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16205 | yes:no: ) |
| 16206 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16207 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16208 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16209 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16210 | ac_header_preproc=yes |
| 16211 | ;; |
| 16212 | no:yes:* ) |
| 16213 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16214 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16215 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16216 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16217 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16218 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16219 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16220 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16221 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16222 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16223 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16224 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16225 | ( cat <<\_ASBOX |
| 16226 | ## ------------------------------------ ## |
| 16227 | ## Report this to opensource@google.com ## |
| 16228 | ## ------------------------------------ ## |
| 16229 | _ASBOX |
| 16230 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16231 | ;; |
| 16232 | esac |
| 16233 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16234 | $as_echo_n "checking for $ac_header... " >&6; } |
| 16235 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16236 | $as_echo_n "(cached) " >&6 |
| 16237 | else |
| 16238 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16239 | fi |
| 16240 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 16241 | $as_echo "$as_val"'` |
| 16242 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16243 | $as_echo "$ac_res" >&6; } |
| 16244 | |
| 16245 | fi |
| 16246 | if test `eval 'as_val=${'$as_ac_Header'} |
| 16247 | $as_echo "$as_val"'` = yes; then |
| 16248 | cat >>confdefs.h <<_ACEOF |
| 16249 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 16250 | _ACEOF |
| 16251 | |
| 16252 | fi |
| 16253 | |
| 16254 | done |
| 16255 | |
| 16256 | |
| 16257 | for ac_header in unistd.h |
| 16258 | do |
| 16259 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16260 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16261 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16262 | $as_echo_n "checking for $ac_header... " >&6; } |
| 16263 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16264 | $as_echo_n "(cached) " >&6 |
| 16265 | fi |
| 16266 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 16267 | $as_echo "$as_val"'` |
| 16268 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16269 | $as_echo "$ac_res" >&6; } |
| 16270 | else |
| 16271 | # Is the header compilable? |
| 16272 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16273 | $as_echo_n "checking $ac_header usability... " >&6; } |
| 16274 | cat >conftest.$ac_ext <<_ACEOF |
| 16275 | /* confdefs.h. */ |
| 16276 | _ACEOF |
| 16277 | cat confdefs.h >>conftest.$ac_ext |
| 16278 | cat >>conftest.$ac_ext <<_ACEOF |
| 16279 | /* end confdefs.h. */ |
| 16280 | $ac_includes_default |
| 16281 | #include <$ac_header> |
| 16282 | _ACEOF |
| 16283 | rm -f conftest.$ac_objext |
| 16284 | if { (ac_try="$ac_compile" |
| 16285 | case "(($ac_try" in |
| 16286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16287 | *) ac_try_echo=$ac_try;; |
| 16288 | esac |
| 16289 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16290 | $as_echo "$ac_try_echo") >&5 |
| 16291 | (eval "$ac_compile") 2>conftest.er1 |
| 16292 | ac_status=$? |
| 16293 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16294 | rm -f conftest.er1 |
| 16295 | cat conftest.err >&5 |
| 16296 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16297 | (exit $ac_status); } && { |
| 16298 | test -z "$ac_c_werror_flag" || |
| 16299 | test ! -s conftest.err |
| 16300 | } && test -s conftest.$ac_objext; then |
| 16301 | ac_header_compiler=yes |
| 16302 | else |
| 16303 | $as_echo "$as_me: failed program was:" >&5 |
| 16304 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16305 | |
| 16306 | ac_header_compiler=no |
| 16307 | fi |
| 16308 | |
| 16309 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16310 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16311 | $as_echo "$ac_header_compiler" >&6; } |
| 16312 | |
| 16313 | # Is the header present? |
| 16314 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16315 | $as_echo_n "checking $ac_header presence... " >&6; } |
| 16316 | cat >conftest.$ac_ext <<_ACEOF |
| 16317 | /* confdefs.h. */ |
| 16318 | _ACEOF |
| 16319 | cat confdefs.h >>conftest.$ac_ext |
| 16320 | cat >>conftest.$ac_ext <<_ACEOF |
| 16321 | /* end confdefs.h. */ |
| 16322 | #include <$ac_header> |
| 16323 | _ACEOF |
| 16324 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16325 | case "(($ac_try" in |
| 16326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16327 | *) ac_try_echo=$ac_try;; |
| 16328 | esac |
| 16329 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16330 | $as_echo "$ac_try_echo") >&5 |
| 16331 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16332 | ac_status=$? |
| 16333 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16334 | rm -f conftest.er1 |
| 16335 | cat conftest.err >&5 |
| 16336 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16337 | (exit $ac_status); } >/dev/null && { |
| 16338 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 16339 | test ! -s conftest.err |
| 16340 | }; then |
| 16341 | ac_header_preproc=yes |
| 16342 | else |
| 16343 | $as_echo "$as_me: failed program was:" >&5 |
| 16344 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16345 | |
| 16346 | ac_header_preproc=no |
| 16347 | fi |
| 16348 | |
| 16349 | rm -f conftest.err conftest.$ac_ext |
| 16350 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16351 | $as_echo "$ac_header_preproc" >&6; } |
| 16352 | |
| 16353 | # So? What about this header? |
| 16354 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16355 | yes:no: ) |
| 16356 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16357 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16358 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16359 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16360 | ac_header_preproc=yes |
| 16361 | ;; |
| 16362 | no:yes:* ) |
| 16363 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16364 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16365 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16366 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16367 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16368 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16369 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16370 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16371 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16372 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16373 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16374 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16375 | ( cat <<\_ASBOX |
| 16376 | ## ------------------------------------ ## |
| 16377 | ## Report this to opensource@google.com ## |
| 16378 | ## ------------------------------------ ## |
| 16379 | _ASBOX |
| 16380 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16381 | ;; |
| 16382 | esac |
| 16383 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16384 | $as_echo_n "checking for $ac_header... " >&6; } |
| 16385 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16386 | $as_echo_n "(cached) " >&6 |
| 16387 | else |
| 16388 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16389 | fi |
| 16390 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 16391 | $as_echo "$as_val"'` |
| 16392 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16393 | $as_echo "$ac_res" >&6; } |
| 16394 | |
| 16395 | fi |
| 16396 | if test `eval 'as_val=${'$as_ac_Header'} |
| 16397 | $as_echo "$as_val"'` = yes; then |
| 16398 | cat >>confdefs.h <<_ACEOF |
| 16399 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Craig Silverstein | 6791468 | 2008-08-21 00:50:59 +0000 | [diff] [blame] | 16400 | _ACEOF |
| 16401 | |
| 16402 | fi |
| 16403 | |
| 16404 | done |
| 16405 | |
| 16406 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 16407 | # These are the types I need. We look for them in either stdint.h, |
| 16408 | # sys/types.h, or inttypes.h, all of which are part of the default-includes. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 16409 | { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5 |
| 16410 | $as_echo_n "checking for uint16_t... " >&6; } |
| 16411 | if test "${ac_cv_type_uint16_t+set}" = set; then |
| 16412 | $as_echo_n "(cached) " >&6 |
| 16413 | else |
| 16414 | ac_cv_type_uint16_t=no |
| 16415 | cat >conftest.$ac_ext <<_ACEOF |
| 16416 | /* confdefs.h. */ |
| 16417 | _ACEOF |
| 16418 | cat confdefs.h >>conftest.$ac_ext |
| 16419 | cat >>conftest.$ac_ext <<_ACEOF |
| 16420 | /* end confdefs.h. */ |
| 16421 | $ac_includes_default |
| 16422 | int |
| 16423 | main () |
| 16424 | { |
| 16425 | if (sizeof (uint16_t)) |
| 16426 | return 0; |
| 16427 | ; |
| 16428 | return 0; |
| 16429 | } |
| 16430 | _ACEOF |
| 16431 | rm -f conftest.$ac_objext |
| 16432 | if { (ac_try="$ac_compile" |
| 16433 | case "(($ac_try" in |
| 16434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16435 | *) ac_try_echo=$ac_try;; |
| 16436 | esac |
| 16437 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16438 | $as_echo "$ac_try_echo") >&5 |
| 16439 | (eval "$ac_compile") 2>conftest.er1 |
| 16440 | ac_status=$? |
| 16441 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16442 | rm -f conftest.er1 |
| 16443 | cat conftest.err >&5 |
| 16444 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16445 | (exit $ac_status); } && { |
| 16446 | test -z "$ac_c_werror_flag" || |
| 16447 | test ! -s conftest.err |
| 16448 | } && test -s conftest.$ac_objext; then |
| 16449 | cat >conftest.$ac_ext <<_ACEOF |
| 16450 | /* confdefs.h. */ |
| 16451 | _ACEOF |
| 16452 | cat confdefs.h >>conftest.$ac_ext |
| 16453 | cat >>conftest.$ac_ext <<_ACEOF |
| 16454 | /* end confdefs.h. */ |
| 16455 | $ac_includes_default |
| 16456 | int |
| 16457 | main () |
| 16458 | { |
| 16459 | if (sizeof ((uint16_t))) |
| 16460 | return 0; |
| 16461 | ; |
| 16462 | return 0; |
| 16463 | } |
| 16464 | _ACEOF |
| 16465 | rm -f conftest.$ac_objext |
| 16466 | if { (ac_try="$ac_compile" |
| 16467 | case "(($ac_try" in |
| 16468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16469 | *) ac_try_echo=$ac_try;; |
| 16470 | esac |
| 16471 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16472 | $as_echo "$ac_try_echo") >&5 |
| 16473 | (eval "$ac_compile") 2>conftest.er1 |
| 16474 | ac_status=$? |
| 16475 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16476 | rm -f conftest.er1 |
| 16477 | cat conftest.err >&5 |
| 16478 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16479 | (exit $ac_status); } && { |
| 16480 | test -z "$ac_c_werror_flag" || |
| 16481 | test ! -s conftest.err |
| 16482 | } && test -s conftest.$ac_objext; then |
| 16483 | : |
| 16484 | else |
| 16485 | $as_echo "$as_me: failed program was:" >&5 |
| 16486 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16487 | |
| 16488 | ac_cv_type_uint16_t=yes |
| 16489 | fi |
| 16490 | |
| 16491 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16492 | else |
| 16493 | $as_echo "$as_me: failed program was:" >&5 |
| 16494 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16495 | |
| 16496 | |
| 16497 | fi |
| 16498 | |
| 16499 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16500 | fi |
| 16501 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 |
| 16502 | $as_echo "$ac_cv_type_uint16_t" >&6; } |
| 16503 | if test $ac_cv_type_uint16_t = yes; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 16504 | ac_cv_have_uint16_t=1 |
| 16505 | else |
| 16506 | ac_cv_have_uint16_t=0 |
| 16507 | fi |
| 16508 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 16509 | { $as_echo "$as_me:$LINENO: checking for u_int16_t" >&5 |
| 16510 | $as_echo_n "checking for u_int16_t... " >&6; } |
| 16511 | if test "${ac_cv_type_u_int16_t+set}" = set; then |
| 16512 | $as_echo_n "(cached) " >&6 |
| 16513 | else |
| 16514 | ac_cv_type_u_int16_t=no |
| 16515 | cat >conftest.$ac_ext <<_ACEOF |
| 16516 | /* confdefs.h. */ |
| 16517 | _ACEOF |
| 16518 | cat confdefs.h >>conftest.$ac_ext |
| 16519 | cat >>conftest.$ac_ext <<_ACEOF |
| 16520 | /* end confdefs.h. */ |
| 16521 | $ac_includes_default |
| 16522 | int |
| 16523 | main () |
| 16524 | { |
| 16525 | if (sizeof (u_int16_t)) |
| 16526 | return 0; |
| 16527 | ; |
| 16528 | return 0; |
| 16529 | } |
| 16530 | _ACEOF |
| 16531 | rm -f conftest.$ac_objext |
| 16532 | if { (ac_try="$ac_compile" |
| 16533 | case "(($ac_try" in |
| 16534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16535 | *) ac_try_echo=$ac_try;; |
| 16536 | esac |
| 16537 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16538 | $as_echo "$ac_try_echo") >&5 |
| 16539 | (eval "$ac_compile") 2>conftest.er1 |
| 16540 | ac_status=$? |
| 16541 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16542 | rm -f conftest.er1 |
| 16543 | cat conftest.err >&5 |
| 16544 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16545 | (exit $ac_status); } && { |
| 16546 | test -z "$ac_c_werror_flag" || |
| 16547 | test ! -s conftest.err |
| 16548 | } && test -s conftest.$ac_objext; then |
| 16549 | cat >conftest.$ac_ext <<_ACEOF |
| 16550 | /* confdefs.h. */ |
| 16551 | _ACEOF |
| 16552 | cat confdefs.h >>conftest.$ac_ext |
| 16553 | cat >>conftest.$ac_ext <<_ACEOF |
| 16554 | /* end confdefs.h. */ |
| 16555 | $ac_includes_default |
| 16556 | int |
| 16557 | main () |
| 16558 | { |
| 16559 | if (sizeof ((u_int16_t))) |
| 16560 | return 0; |
| 16561 | ; |
| 16562 | return 0; |
| 16563 | } |
| 16564 | _ACEOF |
| 16565 | rm -f conftest.$ac_objext |
| 16566 | if { (ac_try="$ac_compile" |
| 16567 | case "(($ac_try" in |
| 16568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16569 | *) ac_try_echo=$ac_try;; |
| 16570 | esac |
| 16571 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16572 | $as_echo "$ac_try_echo") >&5 |
| 16573 | (eval "$ac_compile") 2>conftest.er1 |
| 16574 | ac_status=$? |
| 16575 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16576 | rm -f conftest.er1 |
| 16577 | cat conftest.err >&5 |
| 16578 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16579 | (exit $ac_status); } && { |
| 16580 | test -z "$ac_c_werror_flag" || |
| 16581 | test ! -s conftest.err |
| 16582 | } && test -s conftest.$ac_objext; then |
| 16583 | : |
| 16584 | else |
| 16585 | $as_echo "$as_me: failed program was:" >&5 |
| 16586 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16587 | |
| 16588 | ac_cv_type_u_int16_t=yes |
| 16589 | fi |
| 16590 | |
| 16591 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16592 | else |
| 16593 | $as_echo "$as_me: failed program was:" >&5 |
| 16594 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16595 | |
| 16596 | |
| 16597 | fi |
| 16598 | |
| 16599 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16600 | fi |
| 16601 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5 |
| 16602 | $as_echo "$ac_cv_type_u_int16_t" >&6; } |
| 16603 | if test $ac_cv_type_u_int16_t = yes; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 16604 | ac_cv_have_u_int16_t=1 |
| 16605 | else |
| 16606 | ac_cv_have_u_int16_t=0 |
| 16607 | fi |
| 16608 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 16609 | { $as_echo "$as_me:$LINENO: checking for __int16" >&5 |
| 16610 | $as_echo_n "checking for __int16... " >&6; } |
| 16611 | if test "${ac_cv_type___int16+set}" = set; then |
| 16612 | $as_echo_n "(cached) " >&6 |
| 16613 | else |
| 16614 | ac_cv_type___int16=no |
| 16615 | cat >conftest.$ac_ext <<_ACEOF |
| 16616 | /* confdefs.h. */ |
| 16617 | _ACEOF |
| 16618 | cat confdefs.h >>conftest.$ac_ext |
| 16619 | cat >>conftest.$ac_ext <<_ACEOF |
| 16620 | /* end confdefs.h. */ |
| 16621 | $ac_includes_default |
| 16622 | int |
| 16623 | main () |
| 16624 | { |
| 16625 | if (sizeof (__int16)) |
| 16626 | return 0; |
| 16627 | ; |
| 16628 | return 0; |
| 16629 | } |
| 16630 | _ACEOF |
| 16631 | rm -f conftest.$ac_objext |
| 16632 | if { (ac_try="$ac_compile" |
| 16633 | case "(($ac_try" in |
| 16634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16635 | *) ac_try_echo=$ac_try;; |
| 16636 | esac |
| 16637 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16638 | $as_echo "$ac_try_echo") >&5 |
| 16639 | (eval "$ac_compile") 2>conftest.er1 |
| 16640 | ac_status=$? |
| 16641 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16642 | rm -f conftest.er1 |
| 16643 | cat conftest.err >&5 |
| 16644 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16645 | (exit $ac_status); } && { |
| 16646 | test -z "$ac_c_werror_flag" || |
| 16647 | test ! -s conftest.err |
| 16648 | } && test -s conftest.$ac_objext; then |
| 16649 | cat >conftest.$ac_ext <<_ACEOF |
| 16650 | /* confdefs.h. */ |
| 16651 | _ACEOF |
| 16652 | cat confdefs.h >>conftest.$ac_ext |
| 16653 | cat >>conftest.$ac_ext <<_ACEOF |
| 16654 | /* end confdefs.h. */ |
| 16655 | $ac_includes_default |
| 16656 | int |
| 16657 | main () |
| 16658 | { |
| 16659 | if (sizeof ((__int16))) |
| 16660 | return 0; |
| 16661 | ; |
| 16662 | return 0; |
| 16663 | } |
| 16664 | _ACEOF |
| 16665 | rm -f conftest.$ac_objext |
| 16666 | if { (ac_try="$ac_compile" |
| 16667 | case "(($ac_try" in |
| 16668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16669 | *) ac_try_echo=$ac_try;; |
| 16670 | esac |
| 16671 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16672 | $as_echo "$ac_try_echo") >&5 |
| 16673 | (eval "$ac_compile") 2>conftest.er1 |
| 16674 | ac_status=$? |
| 16675 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16676 | rm -f conftest.er1 |
| 16677 | cat conftest.err >&5 |
| 16678 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16679 | (exit $ac_status); } && { |
| 16680 | test -z "$ac_c_werror_flag" || |
| 16681 | test ! -s conftest.err |
| 16682 | } && test -s conftest.$ac_objext; then |
| 16683 | : |
| 16684 | else |
| 16685 | $as_echo "$as_me: failed program was:" >&5 |
| 16686 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16687 | |
| 16688 | ac_cv_type___int16=yes |
| 16689 | fi |
| 16690 | |
| 16691 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16692 | else |
| 16693 | $as_echo "$as_me: failed program was:" >&5 |
| 16694 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16695 | |
| 16696 | |
| 16697 | fi |
| 16698 | |
| 16699 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16700 | fi |
| 16701 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type___int16" >&5 |
| 16702 | $as_echo "$ac_cv_type___int16" >&6; } |
| 16703 | if test $ac_cv_type___int16 = yes; then |
Craig Silverstein | 6791468 | 2008-08-21 00:50:59 +0000 | [diff] [blame] | 16704 | ac_cv_have___int16=1 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 16705 | else |
Craig Silverstein | 6791468 | 2008-08-21 00:50:59 +0000 | [diff] [blame] | 16706 | ac_cv_have___int16=0 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 16707 | fi |
| 16708 | |
| 16709 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 16710 | |
| 16711 | |
Craig Silverstein | 6791468 | 2008-08-21 00:50:59 +0000 | [diff] [blame] | 16712 | for ac_func in strtoll strtoq |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 16713 | do |
| 16714 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16715 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16716 | $as_echo_n "checking for $ac_func... " >&6; } |
| 16717 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16718 | $as_echo_n "(cached) " >&6 |
| 16719 | else |
| 16720 | cat >conftest.$ac_ext <<_ACEOF |
| 16721 | /* confdefs.h. */ |
| 16722 | _ACEOF |
| 16723 | cat confdefs.h >>conftest.$ac_ext |
| 16724 | cat >>conftest.$ac_ext <<_ACEOF |
| 16725 | /* end confdefs.h. */ |
| 16726 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16727 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16728 | #define $ac_func innocuous_$ac_func |
| 16729 | |
| 16730 | /* System header to define __stub macros and hopefully few prototypes, |
| 16731 | which can conflict with char $ac_func (); below. |
| 16732 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16733 | <limits.h> exists even on freestanding compilers. */ |
| 16734 | |
| 16735 | #ifdef __STDC__ |
| 16736 | # include <limits.h> |
| 16737 | #else |
| 16738 | # include <assert.h> |
| 16739 | #endif |
| 16740 | |
| 16741 | #undef $ac_func |
| 16742 | |
| 16743 | /* Override any GCC internal prototype to avoid an error. |
| 16744 | Use char because int might match the return type of a GCC |
| 16745 | builtin and then its argument prototype would still apply. */ |
| 16746 | #ifdef __cplusplus |
| 16747 | extern "C" |
| 16748 | #endif |
| 16749 | char $ac_func (); |
| 16750 | /* The GNU C library defines this for functions which it implements |
| 16751 | to always fail with ENOSYS. Some functions are actually named |
| 16752 | something starting with __ and the normal name is an alias. */ |
| 16753 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 16754 | choke me |
| 16755 | #endif |
| 16756 | |
| 16757 | int |
| 16758 | main () |
| 16759 | { |
| 16760 | return $ac_func (); |
| 16761 | ; |
| 16762 | return 0; |
| 16763 | } |
| 16764 | _ACEOF |
| 16765 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16766 | if { (ac_try="$ac_link" |
| 16767 | case "(($ac_try" in |
| 16768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16769 | *) ac_try_echo=$ac_try;; |
| 16770 | esac |
| 16771 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16772 | $as_echo "$ac_try_echo") >&5 |
| 16773 | (eval "$ac_link") 2>conftest.er1 |
| 16774 | ac_status=$? |
| 16775 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16776 | rm -f conftest.er1 |
| 16777 | cat conftest.err >&5 |
| 16778 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16779 | (exit $ac_status); } && { |
| 16780 | test -z "$ac_c_werror_flag" || |
| 16781 | test ! -s conftest.err |
| 16782 | } && test -s conftest$ac_exeext && { |
| 16783 | test "$cross_compiling" = yes || |
| 16784 | $as_test_x conftest$ac_exeext |
| 16785 | }; then |
| 16786 | eval "$as_ac_var=yes" |
| 16787 | else |
| 16788 | $as_echo "$as_me: failed program was:" >&5 |
| 16789 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16790 | |
| 16791 | eval "$as_ac_var=no" |
| 16792 | fi |
| 16793 | |
| 16794 | rm -rf conftest.dSYM |
| 16795 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 16796 | conftest$ac_exeext conftest.$ac_ext |
| 16797 | fi |
| 16798 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 16799 | $as_echo "$as_val"'` |
| 16800 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16801 | $as_echo "$ac_res" >&6; } |
| 16802 | if test `eval 'as_val=${'$as_ac_var'} |
| 16803 | $as_echo "$as_val"'` = yes; then |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 16804 | cat >>confdefs.h <<_ACEOF |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 16805 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Craig Silverstein | 690172b | 2007-04-20 21:16:33 +0000 | [diff] [blame] | 16806 | _ACEOF |
| 16807 | |
| 16808 | fi |
| 16809 | done |
| 16810 | |
Craig Silverstein | 688ea02 | 2009-09-11 00:15:50 +0000 | [diff] [blame] | 16811 | |
| 16812 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 16813 | { $as_echo "$as_me:$LINENO: checking for __attribute__" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 16814 | $as_echo_n "checking for __attribute__... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 16815 | if test "${ac_cv___attribute__+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 16816 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 16817 | else |
| 16818 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 16819 | cat >conftest.$ac_ext <<_ACEOF |
| 16820 | /* confdefs.h. */ |
| 16821 | _ACEOF |
| 16822 | cat confdefs.h >>conftest.$ac_ext |
| 16823 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 16824 | /* end confdefs.h. */ |
| 16825 | #include <stdlib.h> |
Craig Silverstein | 290da38 | 2007-03-28 21:54:07 +0000 | [diff] [blame] | 16826 | static void foo(void) __attribute__ ((unused)); |
| 16827 | void foo(void) { exit(1); } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 16828 | int |
| 16829 | main () |
| 16830 | { |
Craig Silverstein | 290da38 | 2007-03-28 21:54:07 +0000 | [diff] [blame] | 16831 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 16832 | ; |
| 16833 | return 0; |
| 16834 | } |
| 16835 | _ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 16836 | rm -f conftest.$ac_objext |
| 16837 | if { (ac_try="$ac_compile" |
| 16838 | case "(($ac_try" in |
| 16839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16840 | *) ac_try_echo=$ac_try;; |
| 16841 | esac |
| 16842 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16843 | $as_echo "$ac_try_echo") >&5 |
| 16844 | (eval "$ac_compile") 2>conftest.er1 |
| 16845 | ac_status=$? |
| 16846 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16847 | rm -f conftest.er1 |
| 16848 | cat conftest.err >&5 |
| 16849 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16850 | (exit $ac_status); } && { |
| 16851 | test -z "$ac_c_werror_flag" || |
| 16852 | test ! -s conftest.err |
| 16853 | } && test -s conftest.$ac_objext; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 16854 | ac_cv___attribute__=yes |
| 16855 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 16856 | $as_echo "$as_me: failed program was:" >&5 |
| 16857 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16858 | |
| 16859 | ac_cv___attribute__=no |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 16860 | |
| 16861 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 16862 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 16863 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 16864 | fi |
| 16865 | |
| 16866 | if test "$ac_cv___attribute__" = "yes"; then |
| 16867 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 16868 | cat >>confdefs.h <<\_ACEOF |
| 16869 | #define HAVE___ATTRIBUTE__ 1 |
| 16870 | _ACEOF |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 16871 | |
| 16872 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 16873 | { $as_echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 16874 | $as_echo "$ac_cv___attribute__" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 16875 | |
Craig Silverstein | eb20839 | 2007-08-15 19:44:54 +0000 | [diff] [blame] | 16876 | # We only care about __attribute__ ((unused)) |
| 16877 | if test x"$ac_cv___attribute__" = x"yes"; then |
| 16878 | ac_cv___attribute__unused="__attribute__ ((unused))" |
| 16879 | else |
| 16880 | ac_cv___attribute__unused= |
| 16881 | fi |
| 16882 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 16883 | |
| 16884 | |
| 16885 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 16886 | ac_ext=c |
| 16887 | ac_cpp='$CPP $CPPFLAGS' |
| 16888 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16889 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16890 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 16891 | |
| 16892 | acx_pthread_ok=no |
| 16893 | |
| 16894 | # We used to check for pthread.h first, but this fails if pthread.h |
| 16895 | # requires special compiler flags (e.g. on True64 or Sequent). |
| 16896 | # It gets checked for in the link test anyway. |
| 16897 | |
| 16898 | # First of all, check if the user has set any of the PTHREAD_LIBS, |
| 16899 | # etcetera environment variables, and if threads linking works using |
| 16900 | # them: |
| 16901 | if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then |
| 16902 | save_CFLAGS="$CFLAGS" |
| 16903 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 16904 | save_LIBS="$LIBS" |
| 16905 | LIBS="$PTHREAD_LIBS $LIBS" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 16906 | { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 16907 | $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 16908 | cat >conftest.$ac_ext <<_ACEOF |
| 16909 | /* confdefs.h. */ |
| 16910 | _ACEOF |
| 16911 | cat confdefs.h >>conftest.$ac_ext |
| 16912 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 16913 | /* end confdefs.h. */ |
| 16914 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 16915 | /* Override any GCC internal prototype to avoid an error. |
| 16916 | Use char because int might match the return type of a GCC |
| 16917 | builtin and then its argument prototype would still apply. */ |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 16918 | #ifdef __cplusplus |
| 16919 | extern "C" |
| 16920 | #endif |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 16921 | char pthread_join (); |
| 16922 | int |
| 16923 | main () |
| 16924 | { |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 16925 | return pthread_join (); |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 16926 | ; |
| 16927 | return 0; |
| 16928 | } |
| 16929 | _ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 16930 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16931 | if { (ac_try="$ac_link" |
| 16932 | case "(($ac_try" in |
| 16933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16934 | *) ac_try_echo=$ac_try;; |
| 16935 | esac |
| 16936 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16937 | $as_echo "$ac_try_echo") >&5 |
| 16938 | (eval "$ac_link") 2>conftest.er1 |
| 16939 | ac_status=$? |
| 16940 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16941 | rm -f conftest.er1 |
| 16942 | cat conftest.err >&5 |
| 16943 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16944 | (exit $ac_status); } && { |
| 16945 | test -z "$ac_c_werror_flag" || |
| 16946 | test ! -s conftest.err |
| 16947 | } && test -s conftest$ac_exeext && { |
| 16948 | test "$cross_compiling" = yes || |
| 16949 | $as_test_x conftest$ac_exeext |
| 16950 | }; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 16951 | acx_pthread_ok=yes |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 16952 | else |
| 16953 | $as_echo "$as_me: failed program was:" >&5 |
| 16954 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16955 | |
| 16956 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 16957 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 16958 | |
| 16959 | rm -rf conftest.dSYM |
| 16960 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 16961 | conftest$ac_exeext conftest.$ac_ext |
| 16962 | { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 16963 | $as_echo "$acx_pthread_ok" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 16964 | if test x"$acx_pthread_ok" = xno; then |
| 16965 | PTHREAD_LIBS="" |
| 16966 | PTHREAD_CFLAGS="" |
| 16967 | fi |
| 16968 | LIBS="$save_LIBS" |
| 16969 | CFLAGS="$save_CFLAGS" |
| 16970 | fi |
| 16971 | |
| 16972 | # We must check for the threads library under a number of different |
| 16973 | # names; the ordering is very important because some systems |
| 16974 | # (e.g. DEC) have both -lpthread and -lpthreads, where one of the |
| 16975 | # libraries is broken (non-POSIX). |
| 16976 | |
| 16977 | # Create a list of thread flags to try. Items starting with a "-" are |
| 16978 | # C compiler flags, and other items are library names, except for "none" |
| 16979 | # which indicates that we try without any flags at all, and "pthread-config" |
| 16980 | # which is a program returning the flags for the Pth emulation library. |
| 16981 | |
| 16982 | acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" |
| 16983 | |
| 16984 | # The ordering *is* (sometimes) important. Some notes on the |
| 16985 | # individual items follow: |
| 16986 | |
| 16987 | # pthreads: AIX (must check this before -lpthread) |
| 16988 | # none: in case threads are in libc; should be tried before -Kthread and |
| 16989 | # other compiler flags to prevent continual compiler warnings |
| 16990 | # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) |
| 16991 | # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) |
| 16992 | # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) |
| 16993 | # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) |
| 16994 | # -pthreads: Solaris/gcc |
| 16995 | # -mthreads: Mingw32/gcc, Lynx/gcc |
| 16996 | # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it |
| 16997 | # doesn't hurt to check since this sometimes defines pthreads too; |
| 16998 | # also defines -D_REENTRANT) |
| 16999 | # ... -mt is also the pthreads flag for HP/aCC |
| 17000 | # pthread: Linux, etcetera |
| 17001 | # --thread-safe: KAI C++ |
| 17002 | # pthread-config: use pthread-config program (for GNU Pth library) |
| 17003 | |
| 17004 | case "${host_cpu}-${host_os}" in |
| 17005 | *solaris*) |
| 17006 | |
| 17007 | # On Solaris (at least, for some versions), libc contains stubbed |
| 17008 | # (non-functional) versions of the pthreads routines, so link-based |
| 17009 | # tests will erroneously succeed. (We need to link with -pthreads/-mt/ |
| 17010 | # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather |
| 17011 | # a function called by this macro, so we could check for that, but |
| 17012 | # who knows whether they'll stub that too in a future libc.) So, |
| 17013 | # we'll just look for -pthreads and -lpthread first: |
| 17014 | |
| 17015 | acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags" |
| 17016 | ;; |
| 17017 | esac |
| 17018 | |
| 17019 | if test x"$acx_pthread_ok" = xno; then |
| 17020 | for flag in $acx_pthread_flags; do |
| 17021 | |
| 17022 | case $flag in |
| 17023 | none) |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17024 | { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 17025 | $as_echo_n "checking whether pthreads work without any flags... " >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17026 | ;; |
| 17027 | |
| 17028 | -*) |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17029 | { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 17030 | $as_echo_n "checking whether pthreads work with $flag... " >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17031 | PTHREAD_CFLAGS="$flag" |
| 17032 | ;; |
| 17033 | |
| 17034 | pthread-config) |
| 17035 | # Extract the first word of "pthread-config", so it can be a program name with args. |
| 17036 | set dummy pthread-config; ac_word=$2 |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17037 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 17038 | $as_echo_n "checking for $ac_word... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17039 | if test "${ac_cv_prog_acx_pthread_config+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 17040 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17041 | else |
| 17042 | if test -n "$acx_pthread_config"; then |
| 17043 | ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test. |
| 17044 | else |
| 17045 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17046 | for as_dir in $PATH |
| 17047 | do |
| 17048 | IFS=$as_save_IFS |
| 17049 | test -z "$as_dir" && as_dir=. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17050 | for ac_exec_ext in '' $ac_executable_extensions; do |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 17051 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17052 | ac_cv_prog_acx_pthread_config="yes" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17053 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17054 | break 2 |
| 17055 | fi |
| 17056 | done |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17057 | done |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 17058 | IFS=$as_save_IFS |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17059 | |
| 17060 | test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no" |
| 17061 | fi |
| 17062 | fi |
| 17063 | acx_pthread_config=$ac_cv_prog_acx_pthread_config |
| 17064 | if test -n "$acx_pthread_config"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17065 | { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 17066 | $as_echo "$acx_pthread_config" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17067 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17068 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 17069 | $as_echo "no" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17070 | fi |
| 17071 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 17072 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17073 | if test x"$acx_pthread_config" = xno; then continue; fi |
| 17074 | PTHREAD_CFLAGS="`pthread-config --cflags`" |
| 17075 | PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" |
| 17076 | ;; |
| 17077 | |
| 17078 | *) |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17079 | { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 17080 | $as_echo_n "checking for the pthreads library -l$flag... " >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17081 | PTHREAD_LIBS="-l$flag" |
| 17082 | ;; |
| 17083 | esac |
| 17084 | |
| 17085 | save_LIBS="$LIBS" |
| 17086 | save_CFLAGS="$CFLAGS" |
| 17087 | LIBS="$PTHREAD_LIBS $LIBS" |
| 17088 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 17089 | |
| 17090 | # Check for various functions. We must include pthread.h, |
| 17091 | # since some functions may be macros. (On the Sequent, we |
| 17092 | # need a special flag -Kthread to make this header compile.) |
| 17093 | # We check for pthread_join because it is in -lpthread on IRIX |
| 17094 | # while pthread_create is in libc. We check for pthread_attr_init |
| 17095 | # due to DEC craziness with -lpthreads. We check for |
| 17096 | # pthread_cleanup_push because it is one of the few pthread |
| 17097 | # functions on Solaris that doesn't have a non-functional libc stub. |
| 17098 | # We try pthread_create on general principles. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17099 | cat >conftest.$ac_ext <<_ACEOF |
| 17100 | /* confdefs.h. */ |
| 17101 | _ACEOF |
| 17102 | cat confdefs.h >>conftest.$ac_ext |
| 17103 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17104 | /* end confdefs.h. */ |
| 17105 | #include <pthread.h> |
| 17106 | int |
| 17107 | main () |
| 17108 | { |
| 17109 | pthread_t th; pthread_join(th, 0); |
| 17110 | pthread_attr_init(0); pthread_cleanup_push(0, 0); |
| 17111 | pthread_create(0,0,0,0); pthread_cleanup_pop(0); |
| 17112 | ; |
| 17113 | return 0; |
| 17114 | } |
| 17115 | _ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17116 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17117 | if { (ac_try="$ac_link" |
| 17118 | case "(($ac_try" in |
| 17119 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17120 | *) ac_try_echo=$ac_try;; |
| 17121 | esac |
| 17122 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17123 | $as_echo "$ac_try_echo") >&5 |
| 17124 | (eval "$ac_link") 2>conftest.er1 |
| 17125 | ac_status=$? |
| 17126 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17127 | rm -f conftest.er1 |
| 17128 | cat conftest.err >&5 |
| 17129 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17130 | (exit $ac_status); } && { |
| 17131 | test -z "$ac_c_werror_flag" || |
| 17132 | test ! -s conftest.err |
| 17133 | } && test -s conftest$ac_exeext && { |
| 17134 | test "$cross_compiling" = yes || |
| 17135 | $as_test_x conftest$ac_exeext |
| 17136 | }; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17137 | acx_pthread_ok=yes |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17138 | else |
| 17139 | $as_echo "$as_me: failed program was:" >&5 |
| 17140 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17141 | |
| 17142 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17143 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17144 | |
| 17145 | rm -rf conftest.dSYM |
| 17146 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 17147 | conftest$ac_exeext conftest.$ac_ext |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17148 | |
| 17149 | LIBS="$save_LIBS" |
| 17150 | CFLAGS="$save_CFLAGS" |
| 17151 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17152 | { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 17153 | $as_echo "$acx_pthread_ok" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17154 | if test "x$acx_pthread_ok" = xyes; then |
| 17155 | break; |
| 17156 | fi |
| 17157 | |
| 17158 | PTHREAD_LIBS="" |
| 17159 | PTHREAD_CFLAGS="" |
| 17160 | done |
| 17161 | fi |
| 17162 | |
| 17163 | # Various other checks: |
| 17164 | if test "x$acx_pthread_ok" = xyes; then |
| 17165 | save_LIBS="$LIBS" |
| 17166 | LIBS="$PTHREAD_LIBS $LIBS" |
| 17167 | save_CFLAGS="$CFLAGS" |
| 17168 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 17169 | |
| 17170 | # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17171 | { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 17172 | $as_echo_n "checking for joinable pthread attribute... " >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17173 | attr_name=unknown |
| 17174 | for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17175 | cat >conftest.$ac_ext <<_ACEOF |
| 17176 | /* confdefs.h. */ |
| 17177 | _ACEOF |
| 17178 | cat confdefs.h >>conftest.$ac_ext |
| 17179 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17180 | /* end confdefs.h. */ |
| 17181 | #include <pthread.h> |
| 17182 | int |
| 17183 | main () |
| 17184 | { |
| 17185 | int attr=$attr; return attr; |
| 17186 | ; |
| 17187 | return 0; |
| 17188 | } |
| 17189 | _ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17190 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17191 | if { (ac_try="$ac_link" |
| 17192 | case "(($ac_try" in |
| 17193 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17194 | *) ac_try_echo=$ac_try;; |
| 17195 | esac |
| 17196 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17197 | $as_echo "$ac_try_echo") >&5 |
| 17198 | (eval "$ac_link") 2>conftest.er1 |
| 17199 | ac_status=$? |
| 17200 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17201 | rm -f conftest.er1 |
| 17202 | cat conftest.err >&5 |
| 17203 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17204 | (exit $ac_status); } && { |
| 17205 | test -z "$ac_c_werror_flag" || |
| 17206 | test ! -s conftest.err |
| 17207 | } && test -s conftest$ac_exeext && { |
| 17208 | test "$cross_compiling" = yes || |
| 17209 | $as_test_x conftest$ac_exeext |
| 17210 | }; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17211 | attr_name=$attr; break |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17212 | else |
| 17213 | $as_echo "$as_me: failed program was:" >&5 |
| 17214 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17215 | |
| 17216 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17217 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17218 | |
| 17219 | rm -rf conftest.dSYM |
| 17220 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 17221 | conftest$ac_exeext conftest.$ac_ext |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17222 | done |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17223 | { $as_echo "$as_me:$LINENO: result: $attr_name" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 17224 | $as_echo "$attr_name" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17225 | if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then |
| 17226 | |
| 17227 | cat >>confdefs.h <<_ACEOF |
| 17228 | #define PTHREAD_CREATE_JOINABLE $attr_name |
| 17229 | _ACEOF |
| 17230 | |
| 17231 | fi |
| 17232 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17233 | { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 17234 | $as_echo_n "checking if more special flags are required for pthreads... " >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17235 | flag=no |
| 17236 | case "${host_cpu}-${host_os}" in |
| 17237 | *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; |
| 17238 | *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; |
| 17239 | esac |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17240 | { $as_echo "$as_me:$LINENO: result: ${flag}" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 17241 | $as_echo "${flag}" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17242 | if test "x$flag" != xno; then |
| 17243 | PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" |
| 17244 | fi |
| 17245 | |
| 17246 | LIBS="$save_LIBS" |
| 17247 | CFLAGS="$save_CFLAGS" |
Craig Silverstein | eb20839 | 2007-08-15 19:44:54 +0000 | [diff] [blame] | 17248 | # More AIX lossage: must compile with xlc_r or cc_r |
| 17249 | if test x"$GCC" != xyes; then |
| 17250 | for ac_prog in xlc_r cc_r |
| 17251 | do |
| 17252 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 17253 | set dummy $ac_prog; ac_word=$2 |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17254 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 17255 | $as_echo_n "checking for $ac_word... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17256 | if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 17257 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17258 | else |
| 17259 | if test -n "$PTHREAD_CC"; then |
| 17260 | ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. |
| 17261 | else |
| 17262 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17263 | for as_dir in $PATH |
| 17264 | do |
| 17265 | IFS=$as_save_IFS |
| 17266 | test -z "$as_dir" && as_dir=. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17267 | for ac_exec_ext in '' $ac_executable_extensions; do |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 17268 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Craig Silverstein | eb20839 | 2007-08-15 19:44:54 +0000 | [diff] [blame] | 17269 | ac_cv_prog_PTHREAD_CC="$ac_prog" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17270 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17271 | break 2 |
| 17272 | fi |
| 17273 | done |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17274 | done |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 17275 | IFS=$as_save_IFS |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17276 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17277 | fi |
| 17278 | fi |
| 17279 | PTHREAD_CC=$ac_cv_prog_PTHREAD_CC |
| 17280 | if test -n "$PTHREAD_CC"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17281 | { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 17282 | $as_echo "$PTHREAD_CC" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17283 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17284 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 17285 | $as_echo "no" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17286 | fi |
| 17287 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 17288 | |
Craig Silverstein | eb20839 | 2007-08-15 19:44:54 +0000 | [diff] [blame] | 17289 | test -n "$PTHREAD_CC" && break |
| 17290 | done |
| 17291 | test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" |
| 17292 | |
| 17293 | else |
| 17294 | PTHREAD_CC=$CC |
| 17295 | fi |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17296 | |
Craig Silverstein | c79c32d | 2008-07-22 23:29:39 +0000 | [diff] [blame] | 17297 | # The next part tries to detect GCC inconsistency with -shared on some |
| 17298 | # architectures and systems. The problem is that in certain |
| 17299 | # configurations, when -shared is specified, GCC "forgets" to |
| 17300 | # internally use various flags which are still necessary. |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17301 | |
Craig Silverstein | c79c32d | 2008-07-22 23:29:39 +0000 | [diff] [blame] | 17302 | # |
| 17303 | # Prepare the flags |
| 17304 | # |
| 17305 | save_CFLAGS="$CFLAGS" |
| 17306 | save_LIBS="$LIBS" |
| 17307 | save_CC="$CC" |
| 17308 | |
| 17309 | # Try with the flags determined by the earlier checks. |
| 17310 | # |
| 17311 | # -Wl,-z,defs forces link-time symbol resolution, so that the |
| 17312 | # linking checks with -shared actually have any value |
| 17313 | # |
| 17314 | # FIXME: -fPIC is required for -shared on many architectures, |
| 17315 | # so we specify it here, but the right way would probably be to |
| 17316 | # properly detect whether it is actually required. |
| 17317 | CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS" |
| 17318 | LIBS="$PTHREAD_LIBS $LIBS" |
| 17319 | CC="$PTHREAD_CC" |
| 17320 | |
| 17321 | # In order not to create several levels of indentation, we test |
| 17322 | # the value of "$done" until we find the cure or run out of ideas. |
| 17323 | done="no" |
| 17324 | |
| 17325 | # First, make sure the CFLAGS we added are actually accepted by our |
| 17326 | # compiler. If not (and OS X's ld, for instance, does not accept -z), |
| 17327 | # then we can't do this test. |
| 17328 | if test x"$done" = xno; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17329 | { $as_echo "$as_me:$LINENO: checking whether to check for GCC pthread/shared inconsistencies" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 17330 | $as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17331 | cat >conftest.$ac_ext <<_ACEOF |
| 17332 | /* confdefs.h. */ |
| 17333 | _ACEOF |
| 17334 | cat confdefs.h >>conftest.$ac_ext |
| 17335 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | c79c32d | 2008-07-22 23:29:39 +0000 | [diff] [blame] | 17336 | /* end confdefs.h. */ |
| 17337 | |
| 17338 | int |
| 17339 | main () |
| 17340 | { |
| 17341 | |
| 17342 | ; |
| 17343 | return 0; |
| 17344 | } |
| 17345 | _ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17346 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17347 | if { (ac_try="$ac_link" |
| 17348 | case "(($ac_try" in |
| 17349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17350 | *) ac_try_echo=$ac_try;; |
| 17351 | esac |
| 17352 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17353 | $as_echo "$ac_try_echo") >&5 |
| 17354 | (eval "$ac_link") 2>conftest.er1 |
| 17355 | ac_status=$? |
| 17356 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17357 | rm -f conftest.er1 |
| 17358 | cat conftest.err >&5 |
| 17359 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17360 | (exit $ac_status); } && { |
| 17361 | test -z "$ac_c_werror_flag" || |
| 17362 | test ! -s conftest.err |
| 17363 | } && test -s conftest$ac_exeext && { |
| 17364 | test "$cross_compiling" = yes || |
| 17365 | $as_test_x conftest$ac_exeext |
| 17366 | }; then |
| 17367 | : |
Craig Silverstein | c79c32d | 2008-07-22 23:29:39 +0000 | [diff] [blame] | 17368 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17369 | $as_echo "$as_me: failed program was:" >&5 |
| 17370 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17371 | |
| 17372 | done=yes |
Craig Silverstein | c79c32d | 2008-07-22 23:29:39 +0000 | [diff] [blame] | 17373 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17374 | |
| 17375 | rm -rf conftest.dSYM |
| 17376 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 17377 | conftest$ac_exeext conftest.$ac_ext |
Craig Silverstein | c79c32d | 2008-07-22 23:29:39 +0000 | [diff] [blame] | 17378 | |
| 17379 | if test "x$done" = xyes ; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17380 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 17381 | $as_echo "no" >&6; } |
Craig Silverstein | c79c32d | 2008-07-22 23:29:39 +0000 | [diff] [blame] | 17382 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17383 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 17384 | $as_echo "yes" >&6; } |
Craig Silverstein | c79c32d | 2008-07-22 23:29:39 +0000 | [diff] [blame] | 17385 | fi |
| 17386 | fi |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17387 | |
Craig Silverstein | c79c32d | 2008-07-22 23:29:39 +0000 | [diff] [blame] | 17388 | if test x"$done" = xno; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17389 | { $as_echo "$as_me:$LINENO: checking whether -pthread is sufficient with -shared" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 17390 | $as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17391 | cat >conftest.$ac_ext <<_ACEOF |
| 17392 | /* confdefs.h. */ |
| 17393 | _ACEOF |
| 17394 | cat confdefs.h >>conftest.$ac_ext |
| 17395 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17396 | /* end confdefs.h. */ |
| 17397 | #include <pthread.h> |
| 17398 | int |
| 17399 | main () |
| 17400 | { |
| 17401 | pthread_t th; pthread_join(th, 0); |
Craig Silverstein | c79c32d | 2008-07-22 23:29:39 +0000 | [diff] [blame] | 17402 | pthread_attr_init(0); pthread_cleanup_push(0, 0); |
| 17403 | pthread_create(0,0,0,0); pthread_cleanup_pop(0); |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17404 | ; |
| 17405 | return 0; |
| 17406 | } |
| 17407 | _ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17408 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17409 | if { (ac_try="$ac_link" |
| 17410 | case "(($ac_try" in |
| 17411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17412 | *) ac_try_echo=$ac_try;; |
| 17413 | esac |
| 17414 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17415 | $as_echo "$ac_try_echo") >&5 |
| 17416 | (eval "$ac_link") 2>conftest.er1 |
| 17417 | ac_status=$? |
| 17418 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17419 | rm -f conftest.er1 |
| 17420 | cat conftest.err >&5 |
| 17421 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17422 | (exit $ac_status); } && { |
| 17423 | test -z "$ac_c_werror_flag" || |
| 17424 | test ! -s conftest.err |
| 17425 | } && test -s conftest$ac_exeext && { |
| 17426 | test "$cross_compiling" = yes || |
| 17427 | $as_test_x conftest$ac_exeext |
| 17428 | }; then |
Craig Silverstein | c79c32d | 2008-07-22 23:29:39 +0000 | [diff] [blame] | 17429 | done=yes |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17430 | else |
| 17431 | $as_echo "$as_me: failed program was:" >&5 |
| 17432 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17433 | |
| 17434 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17435 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17436 | |
| 17437 | rm -rf conftest.dSYM |
| 17438 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 17439 | conftest$ac_exeext conftest.$ac_ext |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17440 | |
Craig Silverstein | c79c32d | 2008-07-22 23:29:39 +0000 | [diff] [blame] | 17441 | if test "x$done" = xyes; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17442 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 17443 | $as_echo "yes" >&6; } |
Craig Silverstein | c79c32d | 2008-07-22 23:29:39 +0000 | [diff] [blame] | 17444 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17445 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 17446 | $as_echo "no" >&6; } |
Craig Silverstein | c79c32d | 2008-07-22 23:29:39 +0000 | [diff] [blame] | 17447 | fi |
| 17448 | fi |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17449 | |
Craig Silverstein | c79c32d | 2008-07-22 23:29:39 +0000 | [diff] [blame] | 17450 | # |
| 17451 | # Linux gcc on some architectures such as mips/mipsel forgets |
| 17452 | # about -lpthread |
| 17453 | # |
| 17454 | if test x"$done" = xno; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17455 | { $as_echo "$as_me:$LINENO: checking whether -lpthread fixes that" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 17456 | $as_echo_n "checking whether -lpthread fixes that... " >&6; } |
Craig Silverstein | c79c32d | 2008-07-22 23:29:39 +0000 | [diff] [blame] | 17457 | LIBS="-lpthread $PTHREAD_LIBS $save_LIBS" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17458 | cat >conftest.$ac_ext <<_ACEOF |
| 17459 | /* confdefs.h. */ |
| 17460 | _ACEOF |
| 17461 | cat confdefs.h >>conftest.$ac_ext |
| 17462 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17463 | /* end confdefs.h. */ |
| 17464 | #include <pthread.h> |
| 17465 | int |
| 17466 | main () |
| 17467 | { |
| 17468 | pthread_t th; pthread_join(th, 0); |
Craig Silverstein | c79c32d | 2008-07-22 23:29:39 +0000 | [diff] [blame] | 17469 | pthread_attr_init(0); pthread_cleanup_push(0, 0); |
| 17470 | pthread_create(0,0,0,0); pthread_cleanup_pop(0); |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17471 | ; |
| 17472 | return 0; |
| 17473 | } |
| 17474 | _ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17475 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17476 | if { (ac_try="$ac_link" |
| 17477 | case "(($ac_try" in |
| 17478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17479 | *) ac_try_echo=$ac_try;; |
| 17480 | esac |
| 17481 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17482 | $as_echo "$ac_try_echo") >&5 |
| 17483 | (eval "$ac_link") 2>conftest.er1 |
| 17484 | ac_status=$? |
| 17485 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17486 | rm -f conftest.er1 |
| 17487 | cat conftest.err >&5 |
| 17488 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17489 | (exit $ac_status); } && { |
| 17490 | test -z "$ac_c_werror_flag" || |
| 17491 | test ! -s conftest.err |
| 17492 | } && test -s conftest$ac_exeext && { |
| 17493 | test "$cross_compiling" = yes || |
| 17494 | $as_test_x conftest$ac_exeext |
| 17495 | }; then |
Craig Silverstein | c79c32d | 2008-07-22 23:29:39 +0000 | [diff] [blame] | 17496 | done=yes |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17497 | else |
| 17498 | $as_echo "$as_me: failed program was:" >&5 |
| 17499 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17500 | |
| 17501 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17502 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17503 | |
| 17504 | rm -rf conftest.dSYM |
| 17505 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 17506 | conftest$ac_exeext conftest.$ac_ext |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17507 | |
Craig Silverstein | c79c32d | 2008-07-22 23:29:39 +0000 | [diff] [blame] | 17508 | if test "x$done" = xyes; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17509 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 17510 | $as_echo "yes" >&6; } |
Craig Silverstein | c79c32d | 2008-07-22 23:29:39 +0000 | [diff] [blame] | 17511 | PTHREAD_LIBS="-lpthread $PTHREAD_LIBS" |
| 17512 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17513 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 17514 | $as_echo "no" >&6; } |
Craig Silverstein | c79c32d | 2008-07-22 23:29:39 +0000 | [diff] [blame] | 17515 | fi |
| 17516 | fi |
| 17517 | # |
| 17518 | # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc |
| 17519 | # |
| 17520 | if test x"$done" = xno; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17521 | { $as_echo "$as_me:$LINENO: checking whether -lc_r fixes that" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 17522 | $as_echo_n "checking whether -lc_r fixes that... " >&6; } |
Craig Silverstein | c79c32d | 2008-07-22 23:29:39 +0000 | [diff] [blame] | 17523 | LIBS="-lc_r $PTHREAD_LIBS $save_LIBS" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17524 | cat >conftest.$ac_ext <<_ACEOF |
| 17525 | /* confdefs.h. */ |
| 17526 | _ACEOF |
| 17527 | cat confdefs.h >>conftest.$ac_ext |
| 17528 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17529 | /* end confdefs.h. */ |
| 17530 | #include <pthread.h> |
| 17531 | int |
| 17532 | main () |
| 17533 | { |
| 17534 | pthread_t th; pthread_join(th, 0); |
Craig Silverstein | c79c32d | 2008-07-22 23:29:39 +0000 | [diff] [blame] | 17535 | pthread_attr_init(0); pthread_cleanup_push(0, 0); |
| 17536 | pthread_create(0,0,0,0); pthread_cleanup_pop(0); |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17537 | ; |
| 17538 | return 0; |
| 17539 | } |
| 17540 | _ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17541 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17542 | if { (ac_try="$ac_link" |
| 17543 | case "(($ac_try" in |
| 17544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17545 | *) ac_try_echo=$ac_try;; |
| 17546 | esac |
| 17547 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17548 | $as_echo "$ac_try_echo") >&5 |
| 17549 | (eval "$ac_link") 2>conftest.er1 |
| 17550 | ac_status=$? |
| 17551 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17552 | rm -f conftest.er1 |
| 17553 | cat conftest.err >&5 |
| 17554 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17555 | (exit $ac_status); } && { |
| 17556 | test -z "$ac_c_werror_flag" || |
| 17557 | test ! -s conftest.err |
| 17558 | } && test -s conftest$ac_exeext && { |
| 17559 | test "$cross_compiling" = yes || |
| 17560 | $as_test_x conftest$ac_exeext |
| 17561 | }; then |
Craig Silverstein | c79c32d | 2008-07-22 23:29:39 +0000 | [diff] [blame] | 17562 | done=yes |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17563 | else |
| 17564 | $as_echo "$as_me: failed program was:" >&5 |
| 17565 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17566 | |
| 17567 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17568 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17569 | |
| 17570 | rm -rf conftest.dSYM |
| 17571 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 17572 | conftest$ac_exeext conftest.$ac_ext |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17573 | |
Craig Silverstein | c79c32d | 2008-07-22 23:29:39 +0000 | [diff] [blame] | 17574 | if test "x$done" = xyes; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17575 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 17576 | $as_echo "yes" >&6; } |
Craig Silverstein | c79c32d | 2008-07-22 23:29:39 +0000 | [diff] [blame] | 17577 | PTHREAD_LIBS="-lc_r $PTHREAD_LIBS" |
| 17578 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17579 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 17580 | $as_echo "no" >&6; } |
Craig Silverstein | c79c32d | 2008-07-22 23:29:39 +0000 | [diff] [blame] | 17581 | fi |
| 17582 | fi |
| 17583 | if test x"$done" = xno; then |
| 17584 | # OK, we have run out of ideas |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17585 | { $as_echo "$as_me:$LINENO: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 17586 | $as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;} |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17587 | |
Craig Silverstein | c79c32d | 2008-07-22 23:29:39 +0000 | [diff] [blame] | 17588 | # so it's not safe to assume that we may use pthreads |
| 17589 | acx_pthread_ok=no |
| 17590 | fi |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17591 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17592 | { $as_echo "$as_me:$LINENO: checking whether what we have so far is sufficient with -nostdlib" >&5 |
Craig Silverstein | 71e1be9 | 2011-03-02 08:05:17 +0000 | [diff] [blame] | 17593 | $as_echo_n "checking whether what we have so far is sufficient with -nostdlib... " >&6; } |
| 17594 | CFLAGS="-nostdlib $CFLAGS" |
| 17595 | # we need c with nostdlib |
| 17596 | LIBS="$LIBS -lc" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17597 | cat >conftest.$ac_ext <<_ACEOF |
| 17598 | /* confdefs.h. */ |
| 17599 | _ACEOF |
| 17600 | cat confdefs.h >>conftest.$ac_ext |
| 17601 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | 71e1be9 | 2011-03-02 08:05:17 +0000 | [diff] [blame] | 17602 | /* end confdefs.h. */ |
| 17603 | #include <pthread.h> |
| 17604 | int |
| 17605 | main () |
| 17606 | { |
| 17607 | pthread_t th; pthread_join(th, 0); |
| 17608 | pthread_attr_init(0); pthread_cleanup_push(0, 0); |
| 17609 | pthread_create(0,0,0,0); pthread_cleanup_pop(0); |
| 17610 | ; |
| 17611 | return 0; |
| 17612 | } |
| 17613 | _ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17614 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17615 | if { (ac_try="$ac_link" |
| 17616 | case "(($ac_try" in |
| 17617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17618 | *) ac_try_echo=$ac_try;; |
| 17619 | esac |
| 17620 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17621 | $as_echo "$ac_try_echo") >&5 |
| 17622 | (eval "$ac_link") 2>conftest.er1 |
| 17623 | ac_status=$? |
| 17624 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17625 | rm -f conftest.er1 |
| 17626 | cat conftest.err >&5 |
| 17627 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17628 | (exit $ac_status); } && { |
| 17629 | test -z "$ac_c_werror_flag" || |
| 17630 | test ! -s conftest.err |
| 17631 | } && test -s conftest$ac_exeext && { |
| 17632 | test "$cross_compiling" = yes || |
| 17633 | $as_test_x conftest$ac_exeext |
| 17634 | }; then |
Craig Silverstein | 71e1be9 | 2011-03-02 08:05:17 +0000 | [diff] [blame] | 17635 | done=yes |
| 17636 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17637 | $as_echo "$as_me: failed program was:" >&5 |
| 17638 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17639 | |
| 17640 | done=no |
Craig Silverstein | 71e1be9 | 2011-03-02 08:05:17 +0000 | [diff] [blame] | 17641 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17642 | |
| 17643 | rm -rf conftest.dSYM |
| 17644 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 17645 | conftest$ac_exeext conftest.$ac_ext |
Craig Silverstein | 71e1be9 | 2011-03-02 08:05:17 +0000 | [diff] [blame] | 17646 | |
| 17647 | if test "x$done" = xyes; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17648 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
Craig Silverstein | 71e1be9 | 2011-03-02 08:05:17 +0000 | [diff] [blame] | 17649 | $as_echo "yes" >&6; } |
| 17650 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17651 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Craig Silverstein | 71e1be9 | 2011-03-02 08:05:17 +0000 | [diff] [blame] | 17652 | $as_echo "no" >&6; } |
| 17653 | fi |
| 17654 | |
| 17655 | if test x"$done" = xno; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17656 | { $as_echo "$as_me:$LINENO: checking whether -lpthread saves the day" >&5 |
Craig Silverstein | 71e1be9 | 2011-03-02 08:05:17 +0000 | [diff] [blame] | 17657 | $as_echo_n "checking whether -lpthread saves the day... " >&6; } |
| 17658 | LIBS="-lpthread $LIBS" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17659 | cat >conftest.$ac_ext <<_ACEOF |
| 17660 | /* confdefs.h. */ |
| 17661 | _ACEOF |
| 17662 | cat confdefs.h >>conftest.$ac_ext |
| 17663 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | 71e1be9 | 2011-03-02 08:05:17 +0000 | [diff] [blame] | 17664 | /* end confdefs.h. */ |
| 17665 | #include <pthread.h> |
| 17666 | int |
| 17667 | main () |
| 17668 | { |
| 17669 | pthread_t th; pthread_join(th, 0); |
| 17670 | pthread_attr_init(0); pthread_cleanup_push(0, 0); |
| 17671 | pthread_create(0,0,0,0); pthread_cleanup_pop(0); |
| 17672 | ; |
| 17673 | return 0; |
| 17674 | } |
| 17675 | _ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17676 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17677 | if { (ac_try="$ac_link" |
| 17678 | case "(($ac_try" in |
| 17679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17680 | *) ac_try_echo=$ac_try;; |
| 17681 | esac |
| 17682 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17683 | $as_echo "$ac_try_echo") >&5 |
| 17684 | (eval "$ac_link") 2>conftest.er1 |
| 17685 | ac_status=$? |
| 17686 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17687 | rm -f conftest.er1 |
| 17688 | cat conftest.err >&5 |
| 17689 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17690 | (exit $ac_status); } && { |
| 17691 | test -z "$ac_c_werror_flag" || |
| 17692 | test ! -s conftest.err |
| 17693 | } && test -s conftest$ac_exeext && { |
| 17694 | test "$cross_compiling" = yes || |
| 17695 | $as_test_x conftest$ac_exeext |
| 17696 | }; then |
Craig Silverstein | 71e1be9 | 2011-03-02 08:05:17 +0000 | [diff] [blame] | 17697 | done=yes |
| 17698 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17699 | $as_echo "$as_me: failed program was:" >&5 |
| 17700 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17701 | |
| 17702 | done=no |
Craig Silverstein | 71e1be9 | 2011-03-02 08:05:17 +0000 | [diff] [blame] | 17703 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17704 | |
| 17705 | rm -rf conftest.dSYM |
| 17706 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 17707 | conftest$ac_exeext conftest.$ac_ext |
Craig Silverstein | 71e1be9 | 2011-03-02 08:05:17 +0000 | [diff] [blame] | 17708 | |
| 17709 | if test "x$done" = xyes; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17710 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
Craig Silverstein | 71e1be9 | 2011-03-02 08:05:17 +0000 | [diff] [blame] | 17711 | $as_echo "yes" >&6; } |
| 17712 | PTHREAD_LIBS="$PTHREAD_LIBS -lpthread" |
| 17713 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17714 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
Craig Silverstein | 71e1be9 | 2011-03-02 08:05:17 +0000 | [diff] [blame] | 17715 | $as_echo "no" >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17716 | { $as_echo "$as_me:$LINENO: WARNING: Impossible to determine how to use pthreads with shared libraries and -nostdlib" >&5 |
Craig Silverstein | 71e1be9 | 2011-03-02 08:05:17 +0000 | [diff] [blame] | 17717 | $as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries and -nostdlib" >&2;} |
| 17718 | fi |
| 17719 | fi |
| 17720 | |
Craig Silverstein | c79c32d | 2008-07-22 23:29:39 +0000 | [diff] [blame] | 17721 | CFLAGS="$save_CFLAGS" |
| 17722 | LIBS="$save_LIBS" |
| 17723 | CC="$save_CC" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17724 | else |
| 17725 | PTHREAD_CC="$CC" |
| 17726 | fi |
| 17727 | |
| 17728 | |
| 17729 | |
| 17730 | |
| 17731 | |
| 17732 | # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
| 17733 | if test x"$acx_pthread_ok" = xyes; then |
| 17734 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17735 | cat >>confdefs.h <<\_ACEOF |
| 17736 | #define HAVE_PTHREAD 1 |
| 17737 | _ACEOF |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17738 | |
| 17739 | : |
| 17740 | else |
| 17741 | acx_pthread_ok=no |
| 17742 | |
| 17743 | fi |
| 17744 | ac_ext=c |
| 17745 | ac_cpp='$CPP $CPPFLAGS' |
| 17746 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17747 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17748 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17749 | |
| 17750 | |
| 17751 | |
| 17752 | # Find out what namespace 'normal' STL code lives in, and also what namespace |
| 17753 | # the user wants our classes to be defined in |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17754 | { $as_echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 17755 | $as_echo_n "checking whether the compiler implements namespaces... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17756 | if test "${ac_cv_cxx_namespaces+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 17757 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17758 | else |
| 17759 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 17760 | ac_ext=cpp |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17761 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 17762 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17763 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17764 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 17765 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17766 | cat >conftest.$ac_ext <<_ACEOF |
| 17767 | /* confdefs.h. */ |
| 17768 | _ACEOF |
| 17769 | cat confdefs.h >>conftest.$ac_ext |
| 17770 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17771 | /* end confdefs.h. */ |
| 17772 | namespace Outer { |
| 17773 | namespace Inner { int i = 0; }} |
| 17774 | int |
| 17775 | main () |
| 17776 | { |
| 17777 | using namespace Outer::Inner; return i; |
| 17778 | ; |
| 17779 | return 0; |
| 17780 | } |
| 17781 | _ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17782 | rm -f conftest.$ac_objext |
| 17783 | if { (ac_try="$ac_compile" |
| 17784 | case "(($ac_try" in |
| 17785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17786 | *) ac_try_echo=$ac_try;; |
| 17787 | esac |
| 17788 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17789 | $as_echo "$ac_try_echo") >&5 |
| 17790 | (eval "$ac_compile") 2>conftest.er1 |
| 17791 | ac_status=$? |
| 17792 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17793 | rm -f conftest.er1 |
| 17794 | cat conftest.err >&5 |
| 17795 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17796 | (exit $ac_status); } && { |
| 17797 | test -z "$ac_cxx_werror_flag" || |
| 17798 | test ! -s conftest.err |
| 17799 | } && test -s conftest.$ac_objext; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17800 | ac_cv_cxx_namespaces=yes |
| 17801 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17802 | $as_echo "$as_me: failed program was:" >&5 |
| 17803 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17804 | |
| 17805 | ac_cv_cxx_namespaces=no |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17806 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17807 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 17808 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17809 | ac_ext=c |
| 17810 | ac_cpp='$CPP $CPPFLAGS' |
| 17811 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17812 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17813 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17814 | |
| 17815 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17816 | { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 17817 | $as_echo "$ac_cv_cxx_namespaces" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17818 | if test "$ac_cv_cxx_namespaces" = yes; then |
| 17819 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17820 | cat >>confdefs.h <<\_ACEOF |
| 17821 | #define HAVE_NAMESPACES 1 |
| 17822 | _ACEOF |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17823 | |
| 17824 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17825 | { $as_echo "$as_me:$LINENO: checking what namespace STL code is in" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 17826 | $as_echo_n "checking what namespace STL code is in... " >&6; } |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17827 | if test "${ac_cv_cxx_stl_namespace+set}" = set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 17828 | $as_echo_n "(cached) " >&6 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17829 | else |
| 17830 | |
| 17831 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 17832 | ac_ext=cpp |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17833 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 17834 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17835 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17836 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 17837 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17838 | cat >conftest.$ac_ext <<_ACEOF |
| 17839 | /* confdefs.h. */ |
| 17840 | _ACEOF |
| 17841 | cat confdefs.h >>conftest.$ac_ext |
| 17842 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17843 | /* end confdefs.h. */ |
| 17844 | #include <vector> |
| 17845 | int |
| 17846 | main () |
| 17847 | { |
| 17848 | vector<int> t; return 0; |
| 17849 | ; |
| 17850 | return 0; |
| 17851 | } |
| 17852 | _ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17853 | rm -f conftest.$ac_objext |
| 17854 | if { (ac_try="$ac_compile" |
| 17855 | case "(($ac_try" in |
| 17856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17857 | *) ac_try_echo=$ac_try;; |
| 17858 | esac |
| 17859 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17860 | $as_echo "$ac_try_echo") >&5 |
| 17861 | (eval "$ac_compile") 2>conftest.er1 |
| 17862 | ac_status=$? |
| 17863 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17864 | rm -f conftest.er1 |
| 17865 | cat conftest.err >&5 |
| 17866 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17867 | (exit $ac_status); } && { |
| 17868 | test -z "$ac_cxx_werror_flag" || |
| 17869 | test ! -s conftest.err |
| 17870 | } && test -s conftest.$ac_objext; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17871 | ac_cv_cxx_stl_namespace=none |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17872 | else |
| 17873 | $as_echo "$as_me: failed program was:" >&5 |
| 17874 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17875 | |
| 17876 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17877 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17878 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 17879 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17880 | cat >conftest.$ac_ext <<_ACEOF |
| 17881 | /* confdefs.h. */ |
| 17882 | _ACEOF |
| 17883 | cat confdefs.h >>conftest.$ac_ext |
| 17884 | cat >>conftest.$ac_ext <<_ACEOF |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17885 | /* end confdefs.h. */ |
| 17886 | #include <vector> |
| 17887 | int |
| 17888 | main () |
| 17889 | { |
| 17890 | std::vector<int> t; return 0; |
| 17891 | ; |
| 17892 | return 0; |
| 17893 | } |
| 17894 | _ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17895 | rm -f conftest.$ac_objext |
| 17896 | if { (ac_try="$ac_compile" |
| 17897 | case "(($ac_try" in |
| 17898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17899 | *) ac_try_echo=$ac_try;; |
| 17900 | esac |
| 17901 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 17902 | $as_echo "$ac_try_echo") >&5 |
| 17903 | (eval "$ac_compile") 2>conftest.er1 |
| 17904 | ac_status=$? |
| 17905 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17906 | rm -f conftest.er1 |
| 17907 | cat conftest.err >&5 |
| 17908 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17909 | (exit $ac_status); } && { |
| 17910 | test -z "$ac_cxx_werror_flag" || |
| 17911 | test ! -s conftest.err |
| 17912 | } && test -s conftest.$ac_objext; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17913 | ac_cv_cxx_stl_namespace=std |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17914 | else |
| 17915 | $as_echo "$as_me: failed program was:" >&5 |
| 17916 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17917 | |
| 17918 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17919 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17920 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 17921 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17922 | ac_ext=c |
| 17923 | ac_cpp='$CPP $CPPFLAGS' |
| 17924 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17925 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17926 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17927 | |
| 17928 | fi |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17929 | { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_stl_namespace" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 17930 | $as_echo "$ac_cv_cxx_stl_namespace" >&6; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17931 | if test "$ac_cv_cxx_stl_namespace" = none; then |
| 17932 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17933 | cat >>confdefs.h <<\_ACEOF |
| 17934 | #define STL_NAMESPACE /**/ |
| 17935 | _ACEOF |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17936 | |
| 17937 | fi |
| 17938 | if test "$ac_cv_cxx_stl_namespace" = std; then |
| 17939 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17940 | cat >>confdefs.h <<\_ACEOF |
| 17941 | #define STL_NAMESPACE std |
| 17942 | _ACEOF |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17943 | |
| 17944 | fi |
| 17945 | |
| 17946 | google_namespace_default=google |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 17947 | # Check whether --enable-namespace was given. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 17948 | if test "${enable_namespace+set}" = set; then |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 17949 | enableval=$enable_namespace; case "$enableval" in |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17950 | yes) google_namespace="$google_namespace_default" ;; |
| 17951 | no) google_namespace="" ;; |
| 17952 | *) google_namespace="$enableval" ;; |
| 17953 | esac |
| 17954 | else |
| 17955 | google_namespace="$google_namespace_default" |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 17956 | fi |
| 17957 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17958 | if test -n "$google_namespace"; then |
Craig Silverstein | c79c32d | 2008-07-22 23:29:39 +0000 | [diff] [blame] | 17959 | ac_google_namespace="::$google_namespace" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17960 | ac_google_start_namespace="namespace $google_namespace {" |
| 17961 | ac_google_end_namespace="}" |
| 17962 | else |
| 17963 | ac_google_namespace="" |
| 17964 | ac_google_start_namespace="" |
| 17965 | ac_google_end_namespace="" |
| 17966 | fi |
| 17967 | |
| 17968 | cat >>confdefs.h <<_ACEOF |
| 17969 | #define GOOGLE_NAMESPACE $ac_google_namespace |
| 17970 | _ACEOF |
| 17971 | |
| 17972 | |
| 17973 | cat >>confdefs.h <<_ACEOF |
| 17974 | #define _START_GOOGLE_NAMESPACE_ $ac_google_start_namespace |
| 17975 | _ACEOF |
| 17976 | |
| 17977 | |
| 17978 | cat >>confdefs.h <<_ACEOF |
| 17979 | #define _END_GOOGLE_NAMESPACE_ $ac_google_end_namespace |
| 17980 | _ACEOF |
| 17981 | |
| 17982 | |
| 17983 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 17984 | # Solaris 10 6/06 has a bug where /usr/sfw/lib/libstdc++.la is empty. |
| 17985 | # If so, we replace it with our own version. |
| 17986 | LIBSTDCXX_LA_LINKER_FLAG= |
| 17987 | if test -f /usr/sfw/lib/libstdc++.la && ! test -s /usr/sfw/lib/libstdc++.la |
| 17988 | then |
| 17989 | LIBSTDCXX_LA_LINKER_FLAG='-L$(top_srcdir)/src/solaris' |
| 17990 | fi |
| 17991 | |
| 17992 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 17993 | # These are what's needed by gflags.h.in |
| 17994 | |
| 17995 | |
| 17996 | |
| 17997 | |
| 17998 | |
| 17999 | |
| 18000 | |
| 18001 | |
| 18002 | |
| 18003 | |
| 18004 | |
| 18005 | ## Check out ../autoconf/ for other macros you can call to do useful stuff |
| 18006 | |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 18007 | # For windows, this has a non-trivial value (__declspec(export)), but any |
| 18008 | # system that uses configure wants this to be the empty string. |
| 18009 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18010 | cat >>confdefs.h <<\_ACEOF |
| 18011 | #define GFLAGS_DLL_DECL /**/ |
| 18012 | _ACEOF |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 18013 | |
| 18014 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18015 | # Write generated configuration file, and also .h files |
Craig Silverstein | ac2abfc | 2011-04-21 19:22:43 +0000 | [diff] [blame] | 18016 | ac_config_files="$ac_config_files Makefile src/gflags/gflags.h src/gflags/gflags_declare.h src/gflags/gflags_completions.h" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18017 | |
| 18018 | cat >confcache <<\_ACEOF |
| 18019 | # This file is a shell script that caches the results of configure |
| 18020 | # tests run on this system so they can be shared between configure |
| 18021 | # scripts and configure runs, see configure's option --config-cache. |
| 18022 | # It is not useful on other systems. If it contains results you don't |
| 18023 | # want to keep, you may remove or edit it. |
| 18024 | # |
| 18025 | # config.status only pays attention to the cache file if you give it |
| 18026 | # the --recheck option to rerun configure. |
| 18027 | # |
| 18028 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 18029 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 18030 | # following values. |
| 18031 | |
| 18032 | _ACEOF |
| 18033 | |
| 18034 | # The following way of writing the cache mishandles newlines in values, |
| 18035 | # but we know of no workaround that is simple, portable, and efficient. |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18036 | # So, we kill variables containing newlines. |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18037 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 18038 | # and sets the high bit in the cache file unless we assign to the vars. |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18039 | ( |
| 18040 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 18041 | eval ac_val=\$$ac_var |
| 18042 | case $ac_val in #( |
| 18043 | *${as_nl}*) |
| 18044 | case $ac_var in #( |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18045 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 18046 | $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18047 | esac |
| 18048 | case $ac_var in #( |
| 18049 | _ | IFS | as_nl) ;; #( |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 18050 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18051 | *) $as_unset $ac_var ;; |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18052 | esac ;; |
| 18053 | esac |
| 18054 | done |
| 18055 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18056 | (set) 2>&1 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18057 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 18058 | *${as_nl}ac_space=\ *) |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18059 | # `set' does not quote correctly, so add quotes (double-quote |
| 18060 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18061 | sed -n \ |
| 18062 | "s/'/'\\\\''/g; |
| 18063 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18064 | ;; #( |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18065 | *) |
| 18066 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18067 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18068 | ;; |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18069 | esac | |
| 18070 | sort |
| 18071 | ) | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18072 | sed ' |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18073 | /^ac_cv_env_/b end |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18074 | t clear |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18075 | :clear |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18076 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 18077 | t end |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18078 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 18079 | :end' >>confcache |
| 18080 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 18081 | if test -w "$cache_file"; then |
| 18082 | test "x$cache_file" != "x/dev/null" && |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18083 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 18084 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18085 | cat confcache >$cache_file |
| 18086 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18087 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 18088 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18089 | fi |
| 18090 | fi |
| 18091 | rm -f confcache |
| 18092 | |
| 18093 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 18094 | # Let make expand exec_prefix. |
| 18095 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 18096 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18097 | DEFS=-DHAVE_CONFIG_H |
| 18098 | |
| 18099 | ac_libobjs= |
| 18100 | ac_ltlibobjs= |
| 18101 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 18102 | # 1. Remove the extension, and $U if already installed. |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18103 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 18104 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18105 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 18106 | # will be set to the directory where LIBOBJS objects are built. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18107 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 18108 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18109 | done |
| 18110 | LIBOBJS=$ac_libobjs |
| 18111 | |
| 18112 | LTLIBOBJS=$ac_ltlibobjs |
| 18113 | |
| 18114 | |
| 18115 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18116 | { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
| 18117 | Usually this means the macro was only invoked conditionally." >&5 |
| 18118 | $as_echo "$as_me: error: conditional \"AMDEP\" was never defined. |
| 18119 | Usually this means the macro was only invoked conditionally." >&2;} |
| 18120 | { (exit 1); exit 1; }; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18121 | fi |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18122 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18123 | { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
| 18124 | Usually this means the macro was only invoked conditionally." >&5 |
| 18125 | $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
| 18126 | Usually this means the macro was only invoked conditionally." >&2;} |
| 18127 | { (exit 1); exit 1; }; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18128 | fi |
Craig Silverstein | ee44191 | 2011-11-03 23:16:21 +0000 | [diff] [blame] | 18129 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 18130 | { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
| 18131 | Usually this means the macro was only invoked conditionally." >&5 |
| 18132 | $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
| 18133 | Usually this means the macro was only invoked conditionally." >&2;} |
| 18134 | { (exit 1); exit 1; }; } |
| 18135 | fi |
Craig Silverstein | c79c32d | 2008-07-22 23:29:39 +0000 | [diff] [blame] | 18136 | if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18137 | { { $as_echo "$as_me:$LINENO: error: conditional \"GCC\" was never defined. |
| 18138 | Usually this means the macro was only invoked conditionally." >&5 |
| 18139 | $as_echo "$as_me: error: conditional \"GCC\" was never defined. |
| 18140 | Usually this means the macro was only invoked conditionally." >&2;} |
| 18141 | { (exit 1); exit 1; }; } |
Craig Silverstein | c79c32d | 2008-07-22 23:29:39 +0000 | [diff] [blame] | 18142 | fi |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 18143 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18144 | { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
| 18145 | Usually this means the macro was only invoked conditionally." >&5 |
| 18146 | $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
| 18147 | Usually this means the macro was only invoked conditionally." >&2;} |
| 18148 | { (exit 1); exit 1; }; } |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 18149 | fi |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18150 | |
| 18151 | : ${CONFIG_STATUS=./config.status} |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 18152 | ac_write_fail=0 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18153 | ac_clean_files_save=$ac_clean_files |
| 18154 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18155 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 18156 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18157 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18158 | #! $SHELL |
| 18159 | # Generated by $as_me. |
| 18160 | # Run this file to recreate the current configuration. |
| 18161 | # Compiler output produced by configure, useful for debugging |
| 18162 | # configure, is in config.log if it exists. |
| 18163 | |
| 18164 | debug=false |
| 18165 | ac_cs_recheck=false |
| 18166 | ac_cs_silent=false |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 18167 | SHELL=\${CONFIG_SHELL-$SHELL} |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18168 | _ACEOF |
| 18169 | |
| 18170 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 18171 | ## --------------------- ## |
| 18172 | ## M4sh Initialization. ## |
| 18173 | ## --------------------- ## |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18174 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18175 | # Be more Bourne compatible |
| 18176 | DUALCASE=1; export DUALCASE # for MKS sh |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18177 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18178 | emulate sh |
| 18179 | NULLCMD=: |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 18180 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18181 | # is contrary to our usage. Disable this feature. |
| 18182 | alias -g '${1+"$@"}'='"$@"' |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18183 | setopt NO_GLOB_SUBST |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18184 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18185 | case `(set -o) 2>/dev/null` in |
| 18186 | *posix*) set -o posix ;; |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18187 | esac |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18188 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18189 | fi |
| 18190 | |
| 18191 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18192 | |
| 18193 | |
| 18194 | # PATH needs CR |
| 18195 | # Avoid depending upon Character Ranges. |
| 18196 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 18197 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 18198 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 18199 | as_cr_digits='0123456789' |
| 18200 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 18201 | |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 18202 | as_nl=' |
| 18203 | ' |
| 18204 | export as_nl |
| 18205 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 18206 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 18207 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 18208 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18209 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 18210 | as_echo='printf %s\n' |
| 18211 | as_echo_n='printf %s' |
| 18212 | else |
| 18213 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 18214 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 18215 | as_echo_n='/usr/ucb/echo -n' |
| 18216 | else |
| 18217 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 18218 | as_echo_n_body='eval |
| 18219 | arg=$1; |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18220 | case $arg in |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 18221 | *"$as_nl"*) |
| 18222 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 18223 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 18224 | esac; |
| 18225 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 18226 | ' |
| 18227 | export as_echo_n_body |
| 18228 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 18229 | fi |
| 18230 | export as_echo_body |
| 18231 | as_echo='sh -c $as_echo_body as_echo' |
| 18232 | fi |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18233 | |
| 18234 | # The user is always right. |
| 18235 | if test "${PATH_SEPARATOR+set}" != set; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 18236 | PATH_SEPARATOR=: |
| 18237 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 18238 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 18239 | PATH_SEPARATOR=';' |
| 18240 | } |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18241 | fi |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18242 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18243 | # Support unset when possible. |
| 18244 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 18245 | as_unset=unset |
| 18246 | else |
| 18247 | as_unset=false |
| 18248 | fi |
| 18249 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18250 | |
| 18251 | # IFS |
| 18252 | # We need space, tab and new line, in precisely that order. Quoting is |
| 18253 | # there to prevent editors from complaining about space-tab. |
| 18254 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 18255 | # splitting by setting IFS to empty value.) |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18256 | IFS=" "" $as_nl" |
| 18257 | |
| 18258 | # Find who we are. Look in the path if we contain no directory separator. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18259 | case $0 in |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18260 | *[\\/]* ) as_myself=$0 ;; |
| 18261 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18262 | for as_dir in $PATH |
| 18263 | do |
| 18264 | IFS=$as_save_IFS |
| 18265 | test -z "$as_dir" && as_dir=. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18266 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 18267 | done |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18268 | IFS=$as_save_IFS |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18269 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18270 | ;; |
| 18271 | esac |
| 18272 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 18273 | # in which case we are not to be found in the path. |
| 18274 | if test "x$as_myself" = x; then |
| 18275 | as_myself=$0 |
| 18276 | fi |
| 18277 | if test ! -f "$as_myself"; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 18278 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18279 | { (exit 1); exit 1; } |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18280 | fi |
| 18281 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18282 | # Work around bugs in pre-3.0 UWIN ksh. |
| 18283 | for as_var in ENV MAIL MAILPATH |
| 18284 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18285 | done |
| 18286 | PS1='$ ' |
| 18287 | PS2='> ' |
| 18288 | PS4='+ ' |
| 18289 | |
| 18290 | # NLS nuisances. |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 18291 | LC_ALL=C |
| 18292 | export LC_ALL |
| 18293 | LANGUAGE=C |
| 18294 | export LANGUAGE |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18295 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18296 | # Required to use basename. |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18297 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 18298 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 18299 | as_expr=expr |
| 18300 | else |
| 18301 | as_expr=false |
| 18302 | fi |
| 18303 | |
| 18304 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 18305 | as_basename=basename |
| 18306 | else |
| 18307 | as_basename=false |
| 18308 | fi |
| 18309 | |
| 18310 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18311 | # Name of the executable. |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18312 | as_me=`$as_basename -- "$0" || |
| 18313 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 18314 | X"$0" : 'X\(//\)$' \| \ |
| 18315 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 18316 | $as_echo X/"$0" | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18317 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 18318 | s//\1/ |
| 18319 | q |
| 18320 | } |
| 18321 | /^X\/\(\/\/\)$/{ |
| 18322 | s//\1/ |
| 18323 | q |
| 18324 | } |
| 18325 | /^X\/\(\/\).*/{ |
| 18326 | s//\1/ |
| 18327 | q |
| 18328 | } |
| 18329 | s/.*/./; q'` |
| 18330 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18331 | # CDPATH. |
| 18332 | $as_unset CDPATH |
| 18333 | |
| 18334 | |
| 18335 | |
| 18336 | as_lineno_1=$LINENO |
| 18337 | as_lineno_2=$LINENO |
| 18338 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 18339 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
| 18340 | |
| 18341 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 18342 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 18343 | # line-number line after each line using $LINENO; the second 'sed' |
| 18344 | # does the real work. The second script uses 'N' to pair each |
| 18345 | # line-number line with the line containing $LINENO, and appends |
| 18346 | # trailing '-' during substitution so that $LINENO is not a special |
| 18347 | # case at line end. |
| 18348 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 18349 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 18350 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 18351 | sed -n ' |
| 18352 | p |
| 18353 | /[$]LINENO/= |
| 18354 | ' <$as_myself | |
| 18355 | sed ' |
| 18356 | s/[$]LINENO.*/&-/ |
| 18357 | t lineno |
| 18358 | b |
| 18359 | :lineno |
| 18360 | N |
| 18361 | :loop |
| 18362 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 18363 | t loop |
| 18364 | s/-\n.*// |
| 18365 | ' >$as_me.lineno && |
| 18366 | chmod +x "$as_me.lineno" || |
| 18367 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 18368 | { (exit 1); exit 1; }; } |
| 18369 | |
| 18370 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 18371 | # (the dirname of $[0] is not the place where we might find the |
| 18372 | # original and so on. Autoconf is especially sensitive to this). |
| 18373 | . "./$as_me.lineno" |
| 18374 | # Exit status is that of the last command. |
| 18375 | exit |
| 18376 | } |
| 18377 | |
| 18378 | |
| 18379 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 18380 | as_dirname=dirname |
| 18381 | else |
| 18382 | as_dirname=false |
| 18383 | fi |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18384 | |
| 18385 | ECHO_C= ECHO_N= ECHO_T= |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18386 | case `echo -n x` in |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18387 | -n*) |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18388 | case `echo 'x\c'` in |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18389 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18390 | *) ECHO_C='\c';; |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18391 | esac;; |
| 18392 | *) |
| 18393 | ECHO_N='-n';; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18394 | esac |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18395 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 18396 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 18397 | as_expr=expr |
| 18398 | else |
| 18399 | as_expr=false |
| 18400 | fi |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18401 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18402 | rm -f conf$$ conf$$.exe conf$$.file |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18403 | if test -d conf$$.dir; then |
| 18404 | rm -f conf$$.dir/conf$$.file |
| 18405 | else |
| 18406 | rm -f conf$$.dir |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 18407 | mkdir conf$$.dir 2>/dev/null |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18408 | fi |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 18409 | if (echo >conf$$.file) 2>/dev/null; then |
| 18410 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 18411 | as_ln_s='ln -s' |
| 18412 | # ... but there are two gotchas: |
| 18413 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 18414 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 18415 | # In both cases, we have to default to `cp -p'. |
| 18416 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 18417 | as_ln_s='cp -p' |
| 18418 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 18419 | as_ln_s=ln |
| 18420 | else |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18421 | as_ln_s='cp -p' |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 18422 | fi |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18423 | else |
| 18424 | as_ln_s='cp -p' |
| 18425 | fi |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18426 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 18427 | rmdir conf$$.dir 2>/dev/null |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18428 | |
| 18429 | if mkdir -p . 2>/dev/null; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18430 | as_mkdir_p=: |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18431 | else |
| 18432 | test -d ./-p && rmdir ./-p |
| 18433 | as_mkdir_p=false |
| 18434 | fi |
| 18435 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18436 | if test -x / >/dev/null 2>&1; then |
| 18437 | as_test_x='test -x' |
| 18438 | else |
| 18439 | if ls -dL / >/dev/null 2>&1; then |
| 18440 | as_ls_L_option=L |
| 18441 | else |
| 18442 | as_ls_L_option= |
| 18443 | fi |
| 18444 | as_test_x=' |
| 18445 | eval sh -c '\'' |
| 18446 | if test -d "$1"; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 18447 | test -d "$1/."; |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18448 | else |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18449 | case $1 in |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 18450 | -*)set "./$1";; |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18451 | esac; |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18452 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18453 | ???[sx]*):;;*)false;;esac;fi |
| 18454 | '\'' sh |
| 18455 | ' |
| 18456 | fi |
| 18457 | as_executable_p=$as_test_x |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18458 | |
| 18459 | # Sed expression to map a string onto a valid CPP name. |
| 18460 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 18461 | |
| 18462 | # Sed expression to map a string onto a valid variable name. |
| 18463 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 18464 | |
| 18465 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18466 | exec 6>&1 |
| 18467 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18468 | # Save the log message, to keep $[0] and so on meaningful, and to |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18469 | # report actual input values of CONFIG_FILES etc. instead of their |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18470 | # values after options handling. |
| 18471 | ac_log=" |
Craig Silverstein | 404970d | 2011-07-30 02:57:58 +0000 | [diff] [blame] | 18472 | This file was extended by gflags $as_me 1.6, which was |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18473 | generated by GNU Autoconf 2.62. Invocation command line was |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18474 | |
| 18475 | CONFIG_FILES = $CONFIG_FILES |
| 18476 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 18477 | CONFIG_LINKS = $CONFIG_LINKS |
| 18478 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 18479 | $ $0 $@ |
| 18480 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18481 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 18482 | " |
| 18483 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18484 | _ACEOF |
| 18485 | |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 18486 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18487 | # Files that config.status was made for. |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18488 | config_files="$ac_config_files" |
| 18489 | config_headers="$ac_config_headers" |
| 18490 | config_commands="$ac_config_commands" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18491 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18492 | _ACEOF |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18493 | |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 18494 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18495 | ac_cs_usage="\ |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18496 | \`$as_me' instantiates files from templates according to the |
| 18497 | current configuration. |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18498 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18499 | Usage: $0 [OPTIONS] [FILE]... |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18500 | |
| 18501 | -h, --help print this help, then exit |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18502 | -V, --version print version number and configuration settings, then exit |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18503 | -q, --quiet do not print progress messages |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18504 | -d, --debug don't remove temporary files |
| 18505 | --recheck update $as_me by reconfiguring in the same conditions |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18506 | --file=FILE[:TEMPLATE] |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 18507 | instantiate the configuration file FILE |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18508 | --header=FILE[:TEMPLATE] |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 18509 | instantiate the configuration header FILE |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18510 | |
| 18511 | Configuration files: |
| 18512 | $config_files |
| 18513 | |
| 18514 | Configuration headers: |
| 18515 | $config_headers |
| 18516 | |
| 18517 | Configuration commands: |
| 18518 | $config_commands |
| 18519 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18520 | Report bugs to <bug-autoconf@gnu.org>." |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18521 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18522 | _ACEOF |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 18523 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18524 | ac_cs_version="\\ |
Craig Silverstein | 404970d | 2011-07-30 02:57:58 +0000 | [diff] [blame] | 18525 | gflags config.status 1.6 |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18526 | configured by $0, generated by GNU Autoconf 2.62, |
| 18527 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18528 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18529 | Copyright (C) 2008 Free Software Foundation, Inc. |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18530 | This config.status script is free software; the Free Software Foundation |
| 18531 | gives unlimited permission to copy, distribute and modify it." |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18532 | |
| 18533 | ac_pwd='$ac_pwd' |
| 18534 | srcdir='$srcdir' |
| 18535 | INSTALL='$INSTALL' |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18536 | MKDIR_P='$MKDIR_P' |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 18537 | AWK='$AWK' |
| 18538 | test -n "\$AWK" || AWK=awk |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18539 | _ACEOF |
| 18540 | |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 18541 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 18542 | # The default lists apply if the user does not specify any file. |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18543 | ac_need_defaults=: |
| 18544 | while test $# != 0 |
| 18545 | do |
| 18546 | case $1 in |
| 18547 | --*=*) |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18548 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 18549 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18550 | ac_shift=: |
| 18551 | ;; |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18552 | *) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18553 | ac_option=$1 |
| 18554 | ac_optarg=$2 |
| 18555 | ac_shift=shift |
| 18556 | ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18557 | esac |
| 18558 | |
| 18559 | case $ac_option in |
| 18560 | # Handling of the options. |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18561 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 18562 | ac_cs_recheck=: ;; |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18563 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 18564 | $as_echo "$ac_cs_version"; exit ;; |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18565 | --debug | --debu | --deb | --de | --d | -d ) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18566 | debug=: ;; |
| 18567 | --file | --fil | --fi | --f ) |
| 18568 | $ac_shift |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 18569 | case $ac_optarg in |
| 18570 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 18571 | esac |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18572 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18573 | ac_need_defaults=false;; |
| 18574 | --header | --heade | --head | --hea ) |
| 18575 | $ac_shift |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 18576 | case $ac_optarg in |
| 18577 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 18578 | esac |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18579 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18580 | ac_need_defaults=false;; |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18581 | --he | --h) |
| 18582 | # Conflict between --help and --header |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18583 | { $as_echo "$as_me: error: ambiguous option: $1 |
| 18584 | Try \`$0 --help' for more information." >&2 |
| 18585 | { (exit 1); exit 1; }; };; |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18586 | --help | --hel | -h ) |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 18587 | $as_echo "$ac_cs_usage"; exit ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18588 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 18589 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 18590 | ac_cs_silent=: ;; |
| 18591 | |
| 18592 | # This is an error. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18593 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
| 18594 | Try \`$0 --help' for more information." >&2 |
| 18595 | { (exit 1); exit 1; }; } ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18596 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 18597 | *) ac_config_targets="$ac_config_targets $1" |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18598 | ac_need_defaults=false ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18599 | |
| 18600 | esac |
| 18601 | shift |
| 18602 | done |
| 18603 | |
| 18604 | ac_configure_extra_args= |
| 18605 | |
| 18606 | if $ac_cs_silent; then |
| 18607 | exec 6>/dev/null |
| 18608 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 18609 | fi |
| 18610 | |
| 18611 | _ACEOF |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 18612 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18613 | if \$ac_cs_recheck; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 18614 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 18615 | shift |
| 18616 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 18617 | CONFIG_SHELL='$SHELL' |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18618 | export CONFIG_SHELL |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 18619 | exec "\$@" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18620 | fi |
| 18621 | |
| 18622 | _ACEOF |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 18623 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18624 | exec 5>>config.log |
| 18625 | { |
| 18626 | echo |
| 18627 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 18628 | ## Running $as_me. ## |
| 18629 | _ASBOX |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 18630 | $as_echo "$ac_log" |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18631 | } >&5 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18632 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18633 | _ACEOF |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 18634 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18635 | # |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18636 | # INIT-COMMANDS |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18637 | # |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18638 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 18639 | |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 18640 | |
| 18641 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 18642 | # if CDPATH is set. |
| 18643 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 18644 | |
| 18645 | sed_quote_subst='$sed_quote_subst' |
| 18646 | double_quote_subst='$double_quote_subst' |
| 18647 | delay_variable_subst='$delay_variable_subst' |
| 18648 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' |
| 18649 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' |
| 18650 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' |
| 18651 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' |
| 18652 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 18653 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' |
| 18654 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' |
| 18655 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' |
| 18656 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' |
| 18657 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' |
| 18658 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' |
| 18659 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' |
| 18660 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' |
| 18661 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' |
| 18662 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 18663 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 18664 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 18665 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' |
| 18666 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' |
| 18667 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' |
| 18668 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' |
| 18669 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' |
| 18670 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' |
| 18671 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' |
| 18672 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' |
| 18673 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' |
| 18674 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 18675 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 18676 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' |
| 18677 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' |
| 18678 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' |
| 18679 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' |
| 18680 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' |
| 18681 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' |
| 18682 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' |
| 18683 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 18684 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 18685 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 18686 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' |
| 18687 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' |
| 18688 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' |
| 18689 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' |
| 18690 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' |
| 18691 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' |
| 18692 | 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"`' |
| 18693 | 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"`' |
| 18694 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' |
| 18695 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' |
| 18696 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' |
| 18697 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' |
| 18698 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 18699 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' |
| 18700 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' |
| 18701 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 18702 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' |
| 18703 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' |
| 18704 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' |
| 18705 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' |
| 18706 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' |
| 18707 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' |
| 18708 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' |
| 18709 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' |
| 18710 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 18711 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 18712 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' |
| 18713 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' |
| 18714 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 18715 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 18716 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' |
| 18717 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 18718 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 18719 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 18720 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 18721 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 18722 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 18723 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' |
| 18724 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 18725 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 18726 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 18727 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' |
| 18728 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' |
| 18729 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' |
| 18730 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' |
| 18731 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' |
| 18732 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 18733 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' |
| 18734 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' |
| 18735 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' |
| 18736 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' |
| 18737 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' |
| 18738 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 18739 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' |
| 18740 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' |
| 18741 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 18742 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 18743 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' |
| 18744 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' |
| 18745 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' |
| 18746 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' |
| 18747 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 18748 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 18749 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' |
| 18750 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 18751 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 18752 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 18753 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 18754 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 18755 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 18756 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' |
| 18757 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' |
| 18758 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 18759 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 18760 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' |
| 18761 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' |
| 18762 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' |
| 18763 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 18764 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' |
| 18765 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' |
| 18766 | compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' |
| 18767 | predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' |
| 18768 | postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' |
| 18769 | predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' |
| 18770 | postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' |
| 18771 | compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' |
| 18772 | LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 18773 | old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 18774 | compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 18775 | GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 18776 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 18777 | lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 18778 | lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 18779 | lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 18780 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 18781 | archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 18782 | enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 18783 | export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 18784 | whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 18785 | compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 18786 | old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 18787 | old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 18788 | archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 18789 | archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 18790 | module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 18791 | module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 18792 | with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 18793 | allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 18794 | no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 18795 | hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 18796 | hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 18797 | hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 18798 | hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 18799 | hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 18800 | hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 18801 | hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 18802 | hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 18803 | inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 18804 | link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 18805 | fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 18806 | always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 18807 | export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 18808 | exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 18809 | include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 18810 | prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 18811 | file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 18812 | hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 18813 | compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 18814 | predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 18815 | postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 18816 | predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 18817 | postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 18818 | compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 18819 | |
| 18820 | LTCC='$LTCC' |
| 18821 | LTCFLAGS='$LTCFLAGS' |
| 18822 | compiler='$compiler_DEFAULT' |
| 18823 | |
| 18824 | # Quote evaled strings. |
| 18825 | for var in SED \ |
| 18826 | GREP \ |
| 18827 | EGREP \ |
| 18828 | FGREP \ |
| 18829 | LD \ |
| 18830 | NM \ |
| 18831 | LN_S \ |
| 18832 | lt_SP2NL \ |
| 18833 | lt_NL2SP \ |
| 18834 | reload_flag \ |
| 18835 | OBJDUMP \ |
| 18836 | deplibs_check_method \ |
| 18837 | file_magic_cmd \ |
| 18838 | AR \ |
| 18839 | AR_FLAGS \ |
| 18840 | STRIP \ |
| 18841 | RANLIB \ |
| 18842 | CC \ |
| 18843 | CFLAGS \ |
| 18844 | compiler \ |
| 18845 | lt_cv_sys_global_symbol_pipe \ |
| 18846 | lt_cv_sys_global_symbol_to_cdecl \ |
| 18847 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 18848 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
| 18849 | SHELL \ |
| 18850 | ECHO \ |
| 18851 | lt_prog_compiler_no_builtin_flag \ |
| 18852 | lt_prog_compiler_wl \ |
| 18853 | lt_prog_compiler_pic \ |
| 18854 | lt_prog_compiler_static \ |
| 18855 | lt_cv_prog_compiler_c_o \ |
| 18856 | need_locks \ |
| 18857 | DSYMUTIL \ |
| 18858 | NMEDIT \ |
| 18859 | LIPO \ |
| 18860 | OTOOL \ |
| 18861 | OTOOL64 \ |
| 18862 | shrext_cmds \ |
| 18863 | export_dynamic_flag_spec \ |
| 18864 | whole_archive_flag_spec \ |
| 18865 | compiler_needs_object \ |
| 18866 | with_gnu_ld \ |
| 18867 | allow_undefined_flag \ |
| 18868 | no_undefined_flag \ |
| 18869 | hardcode_libdir_flag_spec \ |
| 18870 | hardcode_libdir_flag_spec_ld \ |
| 18871 | hardcode_libdir_separator \ |
| 18872 | fix_srcfile_path \ |
| 18873 | exclude_expsyms \ |
| 18874 | include_expsyms \ |
| 18875 | file_list_spec \ |
| 18876 | variables_saved_for_relink \ |
| 18877 | libname_spec \ |
| 18878 | library_names_spec \ |
| 18879 | soname_spec \ |
| 18880 | finish_eval \ |
| 18881 | old_striplib \ |
| 18882 | striplib \ |
| 18883 | compiler_lib_search_dirs \ |
| 18884 | predep_objects \ |
| 18885 | postdep_objects \ |
| 18886 | predeps \ |
| 18887 | postdeps \ |
| 18888 | compiler_lib_search_path \ |
| 18889 | LD_CXX \ |
| 18890 | compiler_CXX \ |
| 18891 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 18892 | lt_prog_compiler_wl_CXX \ |
| 18893 | lt_prog_compiler_pic_CXX \ |
| 18894 | lt_prog_compiler_static_CXX \ |
| 18895 | lt_cv_prog_compiler_c_o_CXX \ |
| 18896 | export_dynamic_flag_spec_CXX \ |
| 18897 | whole_archive_flag_spec_CXX \ |
| 18898 | compiler_needs_object_CXX \ |
| 18899 | with_gnu_ld_CXX \ |
| 18900 | allow_undefined_flag_CXX \ |
| 18901 | no_undefined_flag_CXX \ |
| 18902 | hardcode_libdir_flag_spec_CXX \ |
| 18903 | hardcode_libdir_flag_spec_ld_CXX \ |
| 18904 | hardcode_libdir_separator_CXX \ |
| 18905 | fix_srcfile_path_CXX \ |
| 18906 | exclude_expsyms_CXX \ |
| 18907 | include_expsyms_CXX \ |
| 18908 | file_list_spec_CXX \ |
| 18909 | compiler_lib_search_dirs_CXX \ |
| 18910 | predep_objects_CXX \ |
| 18911 | postdep_objects_CXX \ |
| 18912 | predeps_CXX \ |
| 18913 | postdeps_CXX \ |
| 18914 | compiler_lib_search_path_CXX; do |
| 18915 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
| 18916 | *[\\\\\\\`\\"\\\$]*) |
| 18917 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
| 18918 | ;; |
| 18919 | *) |
| 18920 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 18921 | ;; |
| 18922 | esac |
| 18923 | done |
| 18924 | |
| 18925 | # Double-quote double-evaled strings. |
| 18926 | for var in reload_cmds \ |
| 18927 | old_postinstall_cmds \ |
| 18928 | old_postuninstall_cmds \ |
| 18929 | old_archive_cmds \ |
| 18930 | extract_expsyms_cmds \ |
| 18931 | old_archive_from_new_cmds \ |
| 18932 | old_archive_from_expsyms_cmds \ |
| 18933 | archive_cmds \ |
| 18934 | archive_expsym_cmds \ |
| 18935 | module_cmds \ |
| 18936 | module_expsym_cmds \ |
| 18937 | export_symbols_cmds \ |
| 18938 | prelink_cmds \ |
| 18939 | postinstall_cmds \ |
| 18940 | postuninstall_cmds \ |
| 18941 | finish_cmds \ |
| 18942 | sys_lib_search_path_spec \ |
| 18943 | sys_lib_dlsearch_path_spec \ |
| 18944 | old_archive_cmds_CXX \ |
| 18945 | old_archive_from_new_cmds_CXX \ |
| 18946 | old_archive_from_expsyms_cmds_CXX \ |
| 18947 | archive_cmds_CXX \ |
| 18948 | archive_expsym_cmds_CXX \ |
| 18949 | module_cmds_CXX \ |
| 18950 | module_expsym_cmds_CXX \ |
| 18951 | export_symbols_cmds_CXX \ |
| 18952 | prelink_cmds_CXX; do |
| 18953 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
| 18954 | *[\\\\\\\`\\"\\\$]*) |
| 18955 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
| 18956 | ;; |
| 18957 | *) |
| 18958 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 18959 | ;; |
| 18960 | esac |
| 18961 | done |
| 18962 | |
| 18963 | # Fix-up fallback echo if it was mangled by the above quoting rules. |
| 18964 | case \$lt_ECHO in |
| 18965 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` |
| 18966 | ;; |
| 18967 | esac |
| 18968 | |
| 18969 | ac_aux_dir='$ac_aux_dir' |
| 18970 | xsi_shell='$xsi_shell' |
| 18971 | lt_shell_append='$lt_shell_append' |
| 18972 | |
| 18973 | # See if we are running on zsh, and set the options which allow our |
| 18974 | # commands through without removal of \ escapes INIT. |
| 18975 | if test -n "\${ZSH_VERSION+set}" ; then |
| 18976 | setopt NO_GLOB_SUBST |
| 18977 | fi |
| 18978 | |
| 18979 | |
| 18980 | PACKAGE='$PACKAGE' |
| 18981 | VERSION='$VERSION' |
| 18982 | TIMESTAMP='$TIMESTAMP' |
| 18983 | RM='$RM' |
| 18984 | ofile='$ofile' |
| 18985 | |
| 18986 | |
| 18987 | |
| 18988 | |
| 18989 | |
| 18990 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18991 | _ACEOF |
| 18992 | |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 18993 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18994 | |
| 18995 | # Handling of arguments. |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 18996 | for ac_config_target in $ac_config_targets |
| 18997 | do |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 18998 | case $ac_config_target in |
| 18999 | "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; |
| 19000 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 19001 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19002 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 19003 | "src/gflags/gflags.h") CONFIG_FILES="$CONFIG_FILES src/gflags/gflags.h" ;; |
Craig Silverstein | ac2abfc | 2011-04-21 19:22:43 +0000 | [diff] [blame] | 19004 | "src/gflags/gflags_declare.h") CONFIG_FILES="$CONFIG_FILES src/gflags/gflags_declare.h" ;; |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19005 | "src/gflags/gflags_completions.h") CONFIG_FILES="$CONFIG_FILES src/gflags/gflags_completions.h" ;; |
| 19006 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 19007 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 19008 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 19009 | { (exit 1); exit 1; }; };; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 19010 | esac |
| 19011 | done |
| 19012 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19013 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 19014 | # If the user did not use the arguments to specify the items to instantiate, |
| 19015 | # then the envvar interface is used. Set only those that are not. |
| 19016 | # We use the long form for the default assignment because of an extremely |
| 19017 | # bizarre bug on SunOS 4.1.3. |
| 19018 | if $ac_need_defaults; then |
| 19019 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 19020 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 19021 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 19022 | fi |
| 19023 | |
| 19024 | # Have a temporary directory for convenience. Make it in the build tree |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19025 | # simply because there is no reason against having it here, and in addition, |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 19026 | # creating and moving files from /tmp can sometimes cause problems. |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19027 | # Hook for its removal unless debugging. |
| 19028 | # Note that there is a small window in which the directory will not be cleaned: |
| 19029 | # after its creation but before its name has been assigned to `$tmp'. |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 19030 | $debug || |
| 19031 | { |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19032 | tmp= |
| 19033 | trap 'exit_status=$? |
| 19034 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 19035 | ' 0 |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 19036 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 19037 | } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 19038 | # Create a (secure) tmp directory for tmp files. |
| 19039 | |
| 19040 | { |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19041 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 19042 | test -n "$tmp" && test -d "$tmp" |
| 19043 | } || |
| 19044 | { |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19045 | tmp=./conf$$-$RANDOM |
| 19046 | (umask 077 && mkdir "$tmp") |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 19047 | } || |
| 19048 | { |
| 19049 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
| 19050 | { (exit 1); exit 1; } |
| 19051 | } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 19052 | |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19053 | # Set up the scripts for CONFIG_FILES section. |
| 19054 | # No need to generate them if there are no CONFIG_FILES. |
| 19055 | # This happens for instance with `./config.status config.h'. |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19056 | if test -n "$CONFIG_FILES"; then |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 19057 | |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19058 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 19059 | ac_cr='
' |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19060 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 19061 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 19062 | ac_cs_awk_cr='\\r' |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19063 | else |
| 19064 | ac_cs_awk_cr=$ac_cr |
| 19065 | fi |
| 19066 | |
| 19067 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 19068 | _ACEOF |
| 19069 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19070 | |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19071 | { |
| 19072 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 19073 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 19074 | echo "_ACEOF" |
| 19075 | } >conf$$subs.sh || |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 19076 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 19077 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 19078 | { (exit 1); exit 1; }; } |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19079 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19080 | ac_delim='%!_!# ' |
| 19081 | for ac_last_try in false false false false false :; do |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19082 | . ./conf$$subs.sh || |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 19083 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 19084 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 19085 | { (exit 1); exit 1; }; } |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19086 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 19087 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19088 | break |
| 19089 | elif $ac_last_try; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 19090 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 19091 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 19092 | { (exit 1); exit 1; }; } |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19093 | else |
| 19094 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 19095 | fi |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19096 | done |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19097 | rm -f conf$$subs.sh |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19098 | |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19099 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 19100 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19101 | _ACEOF |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19102 | sed -n ' |
| 19103 | h |
| 19104 | s/^/S["/; s/!.*/"]=/ |
| 19105 | p |
| 19106 | g |
| 19107 | s/^[^!]*!// |
| 19108 | :repl |
| 19109 | t repl |
| 19110 | s/'"$ac_delim"'$// |
| 19111 | t delim |
| 19112 | :nl |
| 19113 | h |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 19114 | s/\(.\{148\}\).*/\1/ |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19115 | t more1 |
| 19116 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 19117 | p |
| 19118 | n |
| 19119 | b repl |
| 19120 | :more1 |
| 19121 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 19122 | p |
| 19123 | g |
| 19124 | s/.\{148\}// |
| 19125 | t nl |
| 19126 | :delim |
| 19127 | h |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 19128 | s/\(.\{148\}\).*/\1/ |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19129 | t more2 |
| 19130 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 19131 | p |
| 19132 | b |
| 19133 | :more2 |
| 19134 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 19135 | p |
| 19136 | g |
| 19137 | s/.\{148\}// |
| 19138 | t delim |
| 19139 | ' <conf$$subs.awk | sed ' |
| 19140 | /^[^""]/{ |
| 19141 | N |
| 19142 | s/\n// |
| 19143 | } |
| 19144 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 19145 | rm -f conf$$subs.awk |
| 19146 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 19147 | _ACAWK |
| 19148 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
| 19149 | for (key in S) S_is_set[key] = 1 |
| 19150 | FS = "" |
| 19151 | |
| 19152 | } |
| 19153 | { |
| 19154 | line = $ 0 |
| 19155 | nfields = split(line, field, "@") |
| 19156 | substed = 0 |
| 19157 | len = length(field[1]) |
| 19158 | for (i = 2; i < nfields; i++) { |
| 19159 | key = field[i] |
| 19160 | keylen = length(key) |
| 19161 | if (S_is_set[key]) { |
| 19162 | value = S[key] |
| 19163 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 19164 | len += length(value) + length(field[++i]) |
| 19165 | substed = 1 |
| 19166 | } else |
| 19167 | len += 1 + keylen |
| 19168 | } |
| 19169 | |
| 19170 | print line |
| 19171 | } |
| 19172 | |
| 19173 | _ACAWK |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19174 | _ACEOF |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19175 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 19176 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 19177 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 19178 | else |
| 19179 | cat |
| 19180 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 19181 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 |
| 19182 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} |
| 19183 | { (exit 1); exit 1; }; } |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19184 | _ACEOF |
| 19185 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19186 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 19187 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 19188 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 19189 | # (actually we leave an empty line to preserve line numbers). |
| 19190 | if test "x$srcdir" = x.; then |
| 19191 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 19192 | s/:*\$(srcdir):*/:/ |
| 19193 | s/:*\${srcdir}:*/:/ |
| 19194 | s/:*@srcdir@:*/:/ |
| 19195 | s/^\([^=]*=[ ]*\):*/\1/ |
| 19196 | s/:*$// |
| 19197 | s/^[^=]*=[ ]*$// |
| 19198 | }' |
| 19199 | fi |
| 19200 | |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19201 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 19202 | fi # test -n "$CONFIG_FILES" |
| 19203 | |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19204 | # Set up the scripts for CONFIG_HEADERS section. |
| 19205 | # No need to generate them if there are no CONFIG_HEADERS. |
| 19206 | # This happens for instance with `./config.status Makefile'. |
| 19207 | if test -n "$CONFIG_HEADERS"; then |
| 19208 | cat >"$tmp/defines.awk" <<\_ACAWK || |
| 19209 | BEGIN { |
| 19210 | _ACEOF |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19211 | |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19212 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 19213 | # here-document in config.status, that substitutes the proper values into |
| 19214 | # config.h.in to produce config.h. |
| 19215 | |
| 19216 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 19217 | # handling of long lines. |
| 19218 | ac_delim='%!_!# ' |
| 19219 | for ac_last_try in false false :; do |
| 19220 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
| 19221 | if test -z "$ac_t"; then |
| 19222 | break |
| 19223 | elif $ac_last_try; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 19224 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 |
| 19225 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} |
| 19226 | { (exit 1); exit 1; }; } |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19227 | else |
| 19228 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 19229 | fi |
| 19230 | done |
| 19231 | |
| 19232 | # For the awk script, D is an array of macro values keyed by name, |
| 19233 | # likewise P contains macro parameters if any. Preserve backslash |
| 19234 | # newline sequences. |
| 19235 | |
| 19236 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 19237 | sed -n ' |
| 19238 | s/.\{148\}/&'"$ac_delim"'/g |
| 19239 | t rset |
| 19240 | :rset |
| 19241 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 19242 | t def |
| 19243 | d |
| 19244 | :def |
| 19245 | s/\\$// |
| 19246 | t bsnl |
| 19247 | s/["\\]/\\&/g |
| 19248 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 19249 | D["\1"]=" \3"/p |
| 19250 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 19251 | d |
| 19252 | :bsnl |
| 19253 | s/["\\]/\\&/g |
| 19254 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 19255 | D["\1"]=" \3\\\\\\n"\\/p |
| 19256 | t cont |
| 19257 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 19258 | t cont |
| 19259 | d |
| 19260 | :cont |
| 19261 | n |
| 19262 | s/.\{148\}/&'"$ac_delim"'/g |
| 19263 | t clear |
| 19264 | :clear |
| 19265 | s/\\$// |
| 19266 | t bsnlc |
| 19267 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 19268 | d |
| 19269 | :bsnlc |
| 19270 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 19271 | b cont |
| 19272 | ' <confdefs.h | sed ' |
| 19273 | s/'"$ac_delim"'/"\\\ |
| 19274 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 19275 | |
| 19276 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 19277 | for (key in D) D_is_set[key] = 1 |
| 19278 | FS = "" |
| 19279 | } |
| 19280 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 19281 | line = \$ 0 |
| 19282 | split(line, arg, " ") |
| 19283 | if (arg[1] == "#") { |
| 19284 | defundef = arg[2] |
| 19285 | mac1 = arg[3] |
| 19286 | } else { |
| 19287 | defundef = substr(arg[1], 2) |
| 19288 | mac1 = arg[2] |
| 19289 | } |
| 19290 | split(mac1, mac2, "(") #) |
| 19291 | macro = mac2[1] |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19292 | if (D_is_set[macro]) { |
| 19293 | # Preserve the white space surrounding the "#". |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 19294 | prefix = substr(line, 1, index(line, defundef) - 1) |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19295 | print prefix "define", macro P[macro] D[macro] |
| 19296 | next |
| 19297 | } else { |
| 19298 | # Replace #undef with comments. This is necessary, for example, |
| 19299 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 19300 | # on some systems where configure will not decide to define it. |
| 19301 | if (defundef == "undef") { |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 19302 | print "/*", line, "*/" |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19303 | next |
| 19304 | } |
| 19305 | } |
| 19306 | } |
| 19307 | { print } |
| 19308 | _ACAWK |
| 19309 | _ACEOF |
| 19310 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 19311 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 |
| 19312 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} |
| 19313 | { (exit 1); exit 1; }; } |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19314 | fi # test -n "$CONFIG_HEADERS" |
| 19315 | |
| 19316 | |
| 19317 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 19318 | shift |
| 19319 | for ac_tag |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19320 | do |
| 19321 | case $ac_tag in |
| 19322 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 19323 | esac |
| 19324 | case $ac_mode$ac_tag in |
| 19325 | :[FHL]*:*);; |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 19326 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 19327 | $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 19328 | { (exit 1); exit 1; }; };; |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19329 | :[FH]-) ac_tag=-:-;; |
| 19330 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 19331 | esac |
| 19332 | ac_save_IFS=$IFS |
| 19333 | IFS=: |
| 19334 | set x $ac_tag |
| 19335 | IFS=$ac_save_IFS |
| 19336 | shift |
| 19337 | ac_file=$1 |
| 19338 | shift |
| 19339 | |
| 19340 | case $ac_mode in |
| 19341 | :L) ac_source=$1;; |
| 19342 | :[FH]) |
| 19343 | ac_file_inputs= |
| 19344 | for ac_f |
| 19345 | do |
| 19346 | case $ac_f in |
| 19347 | -) ac_f="$tmp/stdin";; |
| 19348 | *) # Look for the file first in the build tree, then in the source tree |
| 19349 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 19350 | # because $ac_f cannot contain `:'. |
| 19351 | test -f "$ac_f" || |
| 19352 | case $ac_f in |
| 19353 | [\\/$]*) false;; |
| 19354 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 19355 | esac || |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 19356 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 19357 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 19358 | { (exit 1); exit 1; }; };; |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19359 | esac |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19360 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 19361 | ac_file_inputs="$ac_file_inputs '$ac_f'" |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19362 | done |
| 19363 | |
| 19364 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 19365 | # use $as_me), people would be surprised to read: |
| 19366 | # /* config.h. Generated by config.status. */ |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19367 | configure_input='Generated from '` |
| 19368 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 19369 | `' by configure.' |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19370 | if test x"$ac_file" != x-; then |
| 19371 | configure_input="$ac_file. $configure_input" |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 19372 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19373 | $as_echo "$as_me: creating $ac_file" >&6;} |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19374 | fi |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19375 | # Neutralize special characters interpreted by sed in replacement strings. |
| 19376 | case $configure_input in #( |
| 19377 | *\&* | *\|* | *\\* ) |
| 19378 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 19379 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 19380 | *) ac_sed_conf_input=$configure_input;; |
| 19381 | esac |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19382 | |
| 19383 | case $ac_tag in |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19384 | *:-:* | *:-) cat >"$tmp/stdin" \ |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 19385 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 19386 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 19387 | { (exit 1); exit 1; }; } ;; |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19388 | esac |
| 19389 | ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 19390 | esac |
| 19391 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19392 | ac_dir=`$as_dirname -- "$ac_file" || |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 19393 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 19394 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 19395 | X"$ac_file" : 'X\(//\)$' \| \ |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19396 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19397 | $as_echo X"$ac_file" | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19398 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 19399 | s//\1/ |
| 19400 | q |
| 19401 | } |
| 19402 | /^X\(\/\/\)[^/].*/{ |
| 19403 | s//\1/ |
| 19404 | q |
| 19405 | } |
| 19406 | /^X\(\/\/\)$/{ |
| 19407 | s//\1/ |
| 19408 | q |
| 19409 | } |
| 19410 | /^X\(\/\).*/{ |
| 19411 | s//\1/ |
| 19412 | q |
| 19413 | } |
| 19414 | s/.*/./; q'` |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 19415 | { as_dir="$ac_dir" |
| 19416 | case $as_dir in #( |
| 19417 | -*) as_dir=./$as_dir;; |
| 19418 | esac |
| 19419 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 19420 | as_dirs= |
| 19421 | while :; do |
| 19422 | case $as_dir in #( |
| 19423 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 19424 | *) as_qdir=$as_dir;; |
| 19425 | esac |
| 19426 | as_dirs="'$as_qdir' $as_dirs" |
| 19427 | as_dir=`$as_dirname -- "$as_dir" || |
| 19428 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 19429 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 19430 | X"$as_dir" : 'X\(//\)$' \| \ |
| 19431 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 19432 | $as_echo X"$as_dir" | |
| 19433 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 19434 | s//\1/ |
| 19435 | q |
| 19436 | } |
| 19437 | /^X\(\/\/\)[^/].*/{ |
| 19438 | s//\1/ |
| 19439 | q |
| 19440 | } |
| 19441 | /^X\(\/\/\)$/{ |
| 19442 | s//\1/ |
| 19443 | q |
| 19444 | } |
| 19445 | /^X\(\/\).*/{ |
| 19446 | s//\1/ |
| 19447 | q |
| 19448 | } |
| 19449 | s/.*/./; q'` |
| 19450 | test -d "$as_dir" && break |
| 19451 | done |
| 19452 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 19453 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 19454 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 19455 | { (exit 1); exit 1; }; }; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 19456 | ac_builddir=. |
| 19457 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19458 | case "$ac_dir" in |
| 19459 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 19460 | *) |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19461 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19462 | # A ".." for each directory in $ac_dir_suffix. |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19463 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19464 | case $ac_top_builddir_sub in |
| 19465 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 19466 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 19467 | esac ;; |
| 19468 | esac |
| 19469 | ac_abs_top_builddir=$ac_pwd |
| 19470 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 19471 | # for backward compatibility: |
| 19472 | ac_top_builddir=$ac_top_build_prefix |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 19473 | |
| 19474 | case $srcdir in |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19475 | .) # We are building in place. |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 19476 | ac_srcdir=. |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19477 | ac_top_srcdir=$ac_top_builddir_sub |
| 19478 | ac_abs_top_srcdir=$ac_pwd ;; |
| 19479 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 19480 | ac_srcdir=$srcdir$ac_dir_suffix; |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19481 | ac_top_srcdir=$srcdir |
| 19482 | ac_abs_top_srcdir=$srcdir ;; |
| 19483 | *) # Relative name. |
| 19484 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 19485 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 19486 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 19487 | esac |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19488 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 19489 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 19490 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19491 | case $ac_mode in |
| 19492 | :F) |
| 19493 | # |
| 19494 | # CONFIG_FILE |
| 19495 | # |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 19496 | |
| 19497 | case $INSTALL in |
| 19498 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19499 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 19500 | esac |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 19501 | ac_MKDIR_P=$MKDIR_P |
| 19502 | case $MKDIR_P in |
| 19503 | [\\/$]* | ?:[\\/]* ) ;; |
| 19504 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 19505 | esac |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 19506 | _ACEOF |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19507 | |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19508 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19509 | # If the template does not know about datarootdir, expand it. |
| 19510 | # FIXME: This hack should be removed a few years after 2.60. |
| 19511 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 19512 | |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19513 | ac_sed_dataroot=' |
| 19514 | /datarootdir/ { |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19515 | p |
| 19516 | q |
| 19517 | } |
| 19518 | /@datadir@/p |
| 19519 | /@docdir@/p |
| 19520 | /@infodir@/p |
| 19521 | /@localedir@/p |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 19522 | /@mandir@/p |
| 19523 | ' |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19524 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19525 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 19526 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 19527 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19528 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19529 | _ACEOF |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19530 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19531 | ac_datarootdir_hack=' |
| 19532 | s&@datadir@&$datadir&g |
| 19533 | s&@docdir@&$docdir&g |
| 19534 | s&@infodir@&$infodir&g |
| 19535 | s&@localedir@&$localedir&g |
| 19536 | s&@mandir@&$mandir&g |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 19537 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19538 | esac |
| 19539 | _ACEOF |
| 19540 | |
| 19541 | # Neutralize VPATH when `$srcdir' = `.'. |
| 19542 | # Shell code in configure.ac might set extrasub. |
| 19543 | # FIXME: do we really want to maintain this feature? |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19544 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 19545 | ac_sed_extra="$ac_vpsub |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 19546 | $extrasub |
| 19547 | _ACEOF |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19548 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 19549 | :t |
| 19550 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19551 | s|@configure_input@|$ac_sed_conf_input|;t t |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19552 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19553 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19554 | s&@srcdir@&$ac_srcdir&;t t |
| 19555 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 19556 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 19557 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 19558 | s&@builddir@&$ac_builddir&;t t |
| 19559 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 19560 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 19561 | s&@INSTALL@&$ac_INSTALL&;t t |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 19562 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19563 | $ac_datarootdir_hack |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19564 | " |
| 19565 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 19566 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 19567 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 19568 | { (exit 1); exit 1; }; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 19569 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19570 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 19571 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 19572 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 19573 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19574 | which seems to be undefined. Please make sure it is defined." >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19575 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19576 | which seems to be undefined. Please make sure it is defined." >&2;} |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 19577 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19578 | rm -f "$tmp/stdin" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 19579 | case $ac_file in |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19580 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 19581 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 19582 | esac \ |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 19583 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 19584 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 19585 | { (exit 1); exit 1; }; } |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19586 | ;; |
| 19587 | :H) |
| 19588 | # |
| 19589 | # CONFIG_HEADER |
| 19590 | # |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 19591 | if test x"$ac_file" != x-; then |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19592 | { |
| 19593 | $as_echo "/* $configure_input */" \ |
| 19594 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
| 19595 | } >"$tmp/config.h" \ |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 19596 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 19597 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 19598 | { (exit 1); exit 1; }; } |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19599 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 19600 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19601 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 19602 | else |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19603 | rm -f "$ac_file" |
| 19604 | mv "$tmp/config.h" "$ac_file" \ |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 19605 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 19606 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 19607 | { (exit 1); exit 1; }; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 19608 | fi |
| 19609 | else |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19610 | $as_echo "/* $configure_input */" \ |
| 19611 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 19612 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 |
| 19613 | $as_echo "$as_me: error: could not create -" >&2;} |
| 19614 | { (exit 1); exit 1; }; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 19615 | fi |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19616 | # Compute "$ac_file"'s index in $config_headers. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 19617 | _am_arg="$ac_file" |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 19618 | _am_stamp_count=1 |
| 19619 | for _am_header in $config_headers :; do |
| 19620 | case $_am_header in |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 19621 | $_am_arg | $_am_arg:* ) |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 19622 | break ;; |
| 19623 | * ) |
| 19624 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 19625 | esac |
| 19626 | done |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 19627 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 19628 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 19629 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 19630 | X"$_am_arg" : 'X\(//\)$' \| \ |
| 19631 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 19632 | $as_echo X"$_am_arg" | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19633 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 19634 | s//\1/ |
| 19635 | q |
| 19636 | } |
| 19637 | /^X\(\/\/\)[^/].*/{ |
| 19638 | s//\1/ |
| 19639 | q |
| 19640 | } |
| 19641 | /^X\(\/\/\)$/{ |
| 19642 | s//\1/ |
| 19643 | q |
| 19644 | } |
| 19645 | /^X\(\/\).*/{ |
| 19646 | s//\1/ |
| 19647 | q |
| 19648 | } |
| 19649 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 19650 | ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 19651 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 19652 | :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19653 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19654 | ;; |
| 19655 | esac |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 19656 | |
| 19657 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19658 | case $ac_file$ac_mode in |
| 19659 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 19660 | # Strip MF so we end up with the name of the file. |
| 19661 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 19662 | # Check whether this is an Automake generated Makefile or not. |
| 19663 | # We used to match only the files named `Makefile.in', but |
| 19664 | # some people rename them; so instead we look at the file content. |
| 19665 | # Grep'ing the first line is not enough: some people post-process |
| 19666 | # each Makefile.in and add a new line on top of each file to say so. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 19667 | # Grep'ing the whole file is not good either: AIX grep has a line |
| 19668 | # limit of 2048, but all sed's we know have understand at least 4000. |
| 19669 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19670 | dirpart=`$as_dirname -- "$mf" || |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 19671 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 19672 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 19673 | X"$mf" : 'X\(//\)$' \| \ |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19674 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19675 | $as_echo X"$mf" | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19676 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 19677 | s//\1/ |
| 19678 | q |
| 19679 | } |
| 19680 | /^X\(\/\/\)[^/].*/{ |
| 19681 | s//\1/ |
| 19682 | q |
| 19683 | } |
| 19684 | /^X\(\/\/\)$/{ |
| 19685 | s//\1/ |
| 19686 | q |
| 19687 | } |
| 19688 | /^X\(\/\).*/{ |
| 19689 | s//\1/ |
| 19690 | q |
| 19691 | } |
| 19692 | s/.*/./; q'` |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 19693 | else |
| 19694 | continue |
| 19695 | fi |
| 19696 | # Extract the definition of DEPDIR, am__include, and am__quote |
| 19697 | # from the Makefile without running `make'. |
| 19698 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 19699 | test -z "$DEPDIR" && continue |
| 19700 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 19701 | test -z "am__include" && continue |
| 19702 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 19703 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 19704 | U=`sed -n 's/^U = //p' < "$mf"` |
| 19705 | # Find all dependency output files, they are included files with |
| 19706 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 19707 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 19708 | # expansion. |
| 19709 | for file in `sed -n " |
| 19710 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 19711 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 19712 | # Make sure the directory exists. |
| 19713 | test -f "$dirpart/$file" && continue |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19714 | fdir=`$as_dirname -- "$file" || |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 19715 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 19716 | X"$file" : 'X\(//\)[^/]' \| \ |
| 19717 | X"$file" : 'X\(//\)$' \| \ |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19718 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 19719 | $as_echo X"$file" | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 19720 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 19721 | s//\1/ |
| 19722 | q |
| 19723 | } |
| 19724 | /^X\(\/\/\)[^/].*/{ |
| 19725 | s//\1/ |
| 19726 | q |
| 19727 | } |
| 19728 | /^X\(\/\/\)$/{ |
| 19729 | s//\1/ |
| 19730 | q |
| 19731 | } |
| 19732 | /^X\(\/\).*/{ |
| 19733 | s//\1/ |
| 19734 | q |
| 19735 | } |
| 19736 | s/.*/./; q'` |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 19737 | { as_dir=$dirpart/$fdir |
| 19738 | case $as_dir in #( |
| 19739 | -*) as_dir=./$as_dir;; |
| 19740 | esac |
| 19741 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 19742 | as_dirs= |
| 19743 | while :; do |
| 19744 | case $as_dir in #( |
| 19745 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 19746 | *) as_qdir=$as_dir;; |
| 19747 | esac |
| 19748 | as_dirs="'$as_qdir' $as_dirs" |
| 19749 | as_dir=`$as_dirname -- "$as_dir" || |
| 19750 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 19751 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 19752 | X"$as_dir" : 'X\(//\)$' \| \ |
| 19753 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 19754 | $as_echo X"$as_dir" | |
| 19755 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 19756 | s//\1/ |
| 19757 | q |
| 19758 | } |
| 19759 | /^X\(\/\/\)[^/].*/{ |
| 19760 | s//\1/ |
| 19761 | q |
| 19762 | } |
| 19763 | /^X\(\/\/\)$/{ |
| 19764 | s//\1/ |
| 19765 | q |
| 19766 | } |
| 19767 | /^X\(\/\).*/{ |
| 19768 | s//\1/ |
| 19769 | q |
| 19770 | } |
| 19771 | s/.*/./; q'` |
| 19772 | test -d "$as_dir" && break |
| 19773 | done |
| 19774 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 19775 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 19776 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 19777 | { (exit 1); exit 1; }; }; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 19778 | # echo "creating $dirpart/$file" |
| 19779 | echo '# dummy' > "$dirpart/$file" |
| 19780 | done |
| 19781 | done |
| 19782 | ;; |
Craig Silverstein | 84b18ac | 2010-11-16 23:21:00 +0000 | [diff] [blame] | 19783 | "libtool":C) |
| 19784 | |
| 19785 | # See if we are running on zsh, and set the options which allow our |
| 19786 | # commands through without removal of \ escapes. |
| 19787 | if test -n "${ZSH_VERSION+set}" ; then |
| 19788 | setopt NO_GLOB_SUBST |
| 19789 | fi |
| 19790 | |
| 19791 | cfgfile="${ofile}T" |
| 19792 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 19793 | $RM "$cfgfile" |
| 19794 | |
| 19795 | cat <<_LT_EOF >> "$cfgfile" |
| 19796 | #! $SHELL |
| 19797 | |
| 19798 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 19799 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
| 19800 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 19801 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 19802 | # |
| 19803 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
| 19804 | # 2006, 2007, 2008 Free Software Foundation, Inc. |
| 19805 | # Written by Gordon Matzigkeit, 1996 |
| 19806 | # |
| 19807 | # This file is part of GNU Libtool. |
| 19808 | # |
| 19809 | # GNU Libtool is free software; you can redistribute it and/or |
| 19810 | # modify it under the terms of the GNU General Public License as |
| 19811 | # published by the Free Software Foundation; either version 2 of |
| 19812 | # the License, or (at your option) any later version. |
| 19813 | # |
| 19814 | # As a special exception to the GNU General Public License, |
| 19815 | # if you distribute this file as part of a program or library that |
| 19816 | # is built using GNU Libtool, you may include this file under the |
| 19817 | # same distribution terms that you use for the rest of that program. |
| 19818 | # |
| 19819 | # GNU Libtool is distributed in the hope that it will be useful, |
| 19820 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 19821 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 19822 | # GNU General Public License for more details. |
| 19823 | # |
| 19824 | # You should have received a copy of the GNU General Public License |
| 19825 | # along with GNU Libtool; see the file COPYING. If not, a copy |
| 19826 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
| 19827 | # obtained by writing to the Free Software Foundation, Inc., |
| 19828 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 19829 | |
| 19830 | |
| 19831 | # The names of the tagged configurations supported by this script. |
| 19832 | available_tags="CXX " |
| 19833 | |
| 19834 | # ### BEGIN LIBTOOL CONFIG |
| 19835 | |
| 19836 | # Whether or not to optimize for fast installation. |
| 19837 | fast_install=$enable_fast_install |
| 19838 | |
| 19839 | # Which release of libtool.m4 was used? |
| 19840 | macro_version=$macro_version |
| 19841 | macro_revision=$macro_revision |
| 19842 | |
| 19843 | # Whether or not to build shared libraries. |
| 19844 | build_libtool_libs=$enable_shared |
| 19845 | |
| 19846 | # Whether or not to build static libraries. |
| 19847 | build_old_libs=$enable_static |
| 19848 | |
| 19849 | # What type of objects to build. |
| 19850 | pic_mode=$pic_mode |
| 19851 | |
| 19852 | # The host system. |
| 19853 | host_alias=$host_alias |
| 19854 | host=$host |
| 19855 | host_os=$host_os |
| 19856 | |
| 19857 | # The build system. |
| 19858 | build_alias=$build_alias |
| 19859 | build=$build |
| 19860 | build_os=$build_os |
| 19861 | |
| 19862 | # A sed program that does not truncate output. |
| 19863 | SED=$lt_SED |
| 19864 | |
| 19865 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 19866 | Xsed="\$SED -e 1s/^X//" |
| 19867 | |
| 19868 | # A grep program that handles long lines. |
| 19869 | GREP=$lt_GREP |
| 19870 | |
| 19871 | # An ERE matcher. |
| 19872 | EGREP=$lt_EGREP |
| 19873 | |
| 19874 | # A literal string matcher. |
| 19875 | FGREP=$lt_FGREP |
| 19876 | |
| 19877 | # A BSD- or MS-compatible name lister. |
| 19878 | NM=$lt_NM |
| 19879 | |
| 19880 | # Whether we need soft or hard links. |
| 19881 | LN_S=$lt_LN_S |
| 19882 | |
| 19883 | # What is the maximum length of a command? |
| 19884 | max_cmd_len=$max_cmd_len |
| 19885 | |
| 19886 | # Object file suffix (normally "o"). |
| 19887 | objext=$ac_objext |
| 19888 | |
| 19889 | # Executable file suffix (normally ""). |
| 19890 | exeext=$exeext |
| 19891 | |
| 19892 | # whether the shell understands "unset". |
| 19893 | lt_unset=$lt_unset |
| 19894 | |
| 19895 | # turn spaces into newlines. |
| 19896 | SP2NL=$lt_lt_SP2NL |
| 19897 | |
| 19898 | # turn newlines into spaces. |
| 19899 | NL2SP=$lt_lt_NL2SP |
| 19900 | |
| 19901 | # How to create reloadable object files. |
| 19902 | reload_flag=$lt_reload_flag |
| 19903 | reload_cmds=$lt_reload_cmds |
| 19904 | |
| 19905 | # An object symbol dumper. |
| 19906 | OBJDUMP=$lt_OBJDUMP |
| 19907 | |
| 19908 | # Method to check whether dependent libraries are shared objects. |
| 19909 | deplibs_check_method=$lt_deplibs_check_method |
| 19910 | |
| 19911 | # Command to use when deplibs_check_method == "file_magic". |
| 19912 | file_magic_cmd=$lt_file_magic_cmd |
| 19913 | |
| 19914 | # The archiver. |
| 19915 | AR=$lt_AR |
| 19916 | AR_FLAGS=$lt_AR_FLAGS |
| 19917 | |
| 19918 | # A symbol stripping program. |
| 19919 | STRIP=$lt_STRIP |
| 19920 | |
| 19921 | # Commands used to install an old-style archive. |
| 19922 | RANLIB=$lt_RANLIB |
| 19923 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 19924 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 19925 | |
| 19926 | # A C compiler. |
| 19927 | LTCC=$lt_CC |
| 19928 | |
| 19929 | # LTCC compiler flags. |
| 19930 | LTCFLAGS=$lt_CFLAGS |
| 19931 | |
| 19932 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 19933 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 19934 | |
| 19935 | # Transform the output of nm in a proper C declaration. |
| 19936 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 19937 | |
| 19938 | # Transform the output of nm in a C name address pair. |
| 19939 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 19940 | |
| 19941 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
| 19942 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
| 19943 | |
| 19944 | # The name of the directory that contains temporary libtool files. |
| 19945 | objdir=$objdir |
| 19946 | |
| 19947 | # Shell to use when invoking shell scripts. |
| 19948 | SHELL=$lt_SHELL |
| 19949 | |
| 19950 | # An echo program that does not interpret backslashes. |
| 19951 | ECHO=$lt_ECHO |
| 19952 | |
| 19953 | # Used to examine libraries when file_magic_cmd begins with "file". |
| 19954 | MAGIC_CMD=$MAGIC_CMD |
| 19955 | |
| 19956 | # Must we lock files when doing compilation? |
| 19957 | need_locks=$lt_need_locks |
| 19958 | |
| 19959 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
| 19960 | DSYMUTIL=$lt_DSYMUTIL |
| 19961 | |
| 19962 | # Tool to change global to local symbols on Mac OS X. |
| 19963 | NMEDIT=$lt_NMEDIT |
| 19964 | |
| 19965 | # Tool to manipulate fat objects and archives on Mac OS X. |
| 19966 | LIPO=$lt_LIPO |
| 19967 | |
| 19968 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
| 19969 | OTOOL=$lt_OTOOL |
| 19970 | |
| 19971 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
| 19972 | OTOOL64=$lt_OTOOL64 |
| 19973 | |
| 19974 | # Old archive suffix (normally "a"). |
| 19975 | libext=$libext |
| 19976 | |
| 19977 | # Shared library suffix (normally ".so"). |
| 19978 | shrext_cmds=$lt_shrext_cmds |
| 19979 | |
| 19980 | # The commands to extract the exported symbol list from a shared archive. |
| 19981 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 19982 | |
| 19983 | # Variables whose values should be saved in libtool wrapper scripts and |
| 19984 | # restored at link time. |
| 19985 | variables_saved_for_relink=$lt_variables_saved_for_relink |
| 19986 | |
| 19987 | # Do we need the "lib" prefix for modules? |
| 19988 | need_lib_prefix=$need_lib_prefix |
| 19989 | |
| 19990 | # Do we need a version for libraries? |
| 19991 | need_version=$need_version |
| 19992 | |
| 19993 | # Library versioning type. |
| 19994 | version_type=$version_type |
| 19995 | |
| 19996 | # Shared library runtime path variable. |
| 19997 | runpath_var=$runpath_var |
| 19998 | |
| 19999 | # Shared library path variable. |
| 20000 | shlibpath_var=$shlibpath_var |
| 20001 | |
| 20002 | # Is shlibpath searched before the hard-coded library search path? |
| 20003 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 20004 | |
| 20005 | # Format of library name prefix. |
| 20006 | libname_spec=$lt_libname_spec |
| 20007 | |
| 20008 | # List of archive names. First name is the real one, the rest are links. |
| 20009 | # The last name is the one that the linker finds with -lNAME |
| 20010 | library_names_spec=$lt_library_names_spec |
| 20011 | |
| 20012 | # The coded name of the library, if different from the real name. |
| 20013 | soname_spec=$lt_soname_spec |
| 20014 | |
| 20015 | # Command to use after installation of a shared archive. |
| 20016 | postinstall_cmds=$lt_postinstall_cmds |
| 20017 | |
| 20018 | # Command to use after uninstallation of a shared archive. |
| 20019 | postuninstall_cmds=$lt_postuninstall_cmds |
| 20020 | |
| 20021 | # Commands used to finish a libtool library installation in a directory. |
| 20022 | finish_cmds=$lt_finish_cmds |
| 20023 | |
| 20024 | # As "finish_cmds", except a single script fragment to be evaled but |
| 20025 | # not shown. |
| 20026 | finish_eval=$lt_finish_eval |
| 20027 | |
| 20028 | # Whether we should hardcode library paths into libraries. |
| 20029 | hardcode_into_libs=$hardcode_into_libs |
| 20030 | |
| 20031 | # Compile-time system search path for libraries. |
| 20032 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 20033 | |
| 20034 | # Run-time system search path for libraries. |
| 20035 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 20036 | |
| 20037 | # Whether dlopen is supported. |
| 20038 | dlopen_support=$enable_dlopen |
| 20039 | |
| 20040 | # Whether dlopen of programs is supported. |
| 20041 | dlopen_self=$enable_dlopen_self |
| 20042 | |
| 20043 | # Whether dlopen of statically linked programs is supported. |
| 20044 | dlopen_self_static=$enable_dlopen_self_static |
| 20045 | |
| 20046 | # Commands to strip libraries. |
| 20047 | old_striplib=$lt_old_striplib |
| 20048 | striplib=$lt_striplib |
| 20049 | |
| 20050 | |
| 20051 | # The linker used to build libraries. |
| 20052 | LD=$lt_LD |
| 20053 | |
| 20054 | # Commands used to build an old-style archive. |
| 20055 | old_archive_cmds=$lt_old_archive_cmds |
| 20056 | |
| 20057 | # A language specific compiler. |
| 20058 | CC=$lt_compiler |
| 20059 | |
| 20060 | # Is the compiler the GNU compiler? |
| 20061 | with_gcc=$GCC |
| 20062 | |
| 20063 | # Compiler flag to turn off builtin functions. |
| 20064 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 20065 | |
| 20066 | # How to pass a linker flag through the compiler. |
| 20067 | wl=$lt_lt_prog_compiler_wl |
| 20068 | |
| 20069 | # Additional compiler flags for building library objects. |
| 20070 | pic_flag=$lt_lt_prog_compiler_pic |
| 20071 | |
| 20072 | # Compiler flag to prevent dynamic linking. |
| 20073 | link_static_flag=$lt_lt_prog_compiler_static |
| 20074 | |
| 20075 | # Does compiler simultaneously support -c and -o options? |
| 20076 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 20077 | |
| 20078 | # Whether or not to add -lc for building shared libraries. |
| 20079 | build_libtool_need_lc=$archive_cmds_need_lc |
| 20080 | |
| 20081 | # Whether or not to disallow shared libs when runtime libs are static. |
| 20082 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 20083 | |
| 20084 | # Compiler flag to allow reflexive dlopens. |
| 20085 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 20086 | |
| 20087 | # Compiler flag to generate shared objects directly from archives. |
| 20088 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 20089 | |
| 20090 | # Whether the compiler copes with passing no objects directly. |
| 20091 | compiler_needs_object=$lt_compiler_needs_object |
| 20092 | |
| 20093 | # Create an old-style archive from a shared archive. |
| 20094 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 20095 | |
| 20096 | # Create a temporary old-style archive to link instead of a shared archive. |
| 20097 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 20098 | |
| 20099 | # Commands used to build a shared archive. |
| 20100 | archive_cmds=$lt_archive_cmds |
| 20101 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 20102 | |
| 20103 | # Commands used to build a loadable module if different from building |
| 20104 | # a shared archive. |
| 20105 | module_cmds=$lt_module_cmds |
| 20106 | module_expsym_cmds=$lt_module_expsym_cmds |
| 20107 | |
| 20108 | # Whether we are building with GNU ld or not. |
| 20109 | with_gnu_ld=$lt_with_gnu_ld |
| 20110 | |
| 20111 | # Flag that allows shared libraries with undefined symbols to be built. |
| 20112 | allow_undefined_flag=$lt_allow_undefined_flag |
| 20113 | |
| 20114 | # Flag that enforces no undefined symbols. |
| 20115 | no_undefined_flag=$lt_no_undefined_flag |
| 20116 | |
| 20117 | # Flag to hardcode \$libdir into a binary during linking. |
| 20118 | # This must work even if \$libdir does not exist |
| 20119 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 20120 | |
| 20121 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
| 20122 | # during linking. This must work even if \$libdir does not exist. |
| 20123 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 20124 | |
| 20125 | # Whether we need a single "-rpath" flag with a separated argument. |
| 20126 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 20127 | |
| 20128 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 20129 | # DIR into the resulting binary. |
| 20130 | hardcode_direct=$hardcode_direct |
| 20131 | |
| 20132 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 20133 | # DIR into the resulting binary and the resulting library dependency is |
| 20134 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 20135 | # library is relocated. |
| 20136 | hardcode_direct_absolute=$hardcode_direct_absolute |
| 20137 | |
| 20138 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 20139 | # into the resulting binary. |
| 20140 | hardcode_minus_L=$hardcode_minus_L |
| 20141 | |
| 20142 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 20143 | # into the resulting binary. |
| 20144 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 20145 | |
| 20146 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 20147 | # into the library and all subsequent libraries and executables linked |
| 20148 | # against it. |
| 20149 | hardcode_automatic=$hardcode_automatic |
| 20150 | |
| 20151 | # Set to yes if linker adds runtime paths of dependent libraries |
| 20152 | # to runtime path list. |
| 20153 | inherit_rpath=$inherit_rpath |
| 20154 | |
| 20155 | # Whether libtool must link a program against all its dependency libraries. |
| 20156 | link_all_deplibs=$link_all_deplibs |
| 20157 | |
| 20158 | # Fix the shell variable \$srcfile for the compiler. |
| 20159 | fix_srcfile_path=$lt_fix_srcfile_path |
| 20160 | |
| 20161 | # Set to "yes" if exported symbols are required. |
| 20162 | always_export_symbols=$always_export_symbols |
| 20163 | |
| 20164 | # The commands to list exported symbols. |
| 20165 | export_symbols_cmds=$lt_export_symbols_cmds |
| 20166 | |
| 20167 | # Symbols that should not be listed in the preloaded symbols. |
| 20168 | exclude_expsyms=$lt_exclude_expsyms |
| 20169 | |
| 20170 | # Symbols that must always be exported. |
| 20171 | include_expsyms=$lt_include_expsyms |
| 20172 | |
| 20173 | # Commands necessary for linking programs (against libraries) with templates. |
| 20174 | prelink_cmds=$lt_prelink_cmds |
| 20175 | |
| 20176 | # Specify filename containing input files. |
| 20177 | file_list_spec=$lt_file_list_spec |
| 20178 | |
| 20179 | # How to hardcode a shared library path into an executable. |
| 20180 | hardcode_action=$hardcode_action |
| 20181 | |
| 20182 | # The directories searched by this compiler when creating a shared library. |
| 20183 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs |
| 20184 | |
| 20185 | # Dependencies to place before and after the objects being linked to |
| 20186 | # create a shared library. |
| 20187 | predep_objects=$lt_predep_objects |
| 20188 | postdep_objects=$lt_postdep_objects |
| 20189 | predeps=$lt_predeps |
| 20190 | postdeps=$lt_postdeps |
| 20191 | |
| 20192 | # The library search path used internally by the compiler when linking |
| 20193 | # a shared library. |
| 20194 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 20195 | |
| 20196 | # ### END LIBTOOL CONFIG |
| 20197 | |
| 20198 | _LT_EOF |
| 20199 | |
| 20200 | case $host_os in |
| 20201 | aix3*) |
| 20202 | cat <<\_LT_EOF >> "$cfgfile" |
| 20203 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 20204 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 20205 | # vanish in a puff of smoke. |
| 20206 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 20207 | COLLECT_NAMES= |
| 20208 | export COLLECT_NAMES |
| 20209 | fi |
| 20210 | _LT_EOF |
| 20211 | ;; |
| 20212 | esac |
| 20213 | |
| 20214 | |
| 20215 | ltmain="$ac_aux_dir/ltmain.sh" |
| 20216 | |
| 20217 | |
| 20218 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 20219 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 20220 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 20221 | # is reportedly fixed, but why not run on old versions too? |
| 20222 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ |
| 20223 | || (rm -f "$cfgfile"; exit 1) |
| 20224 | |
| 20225 | case $xsi_shell in |
| 20226 | yes) |
| 20227 | cat << \_LT_EOF >> "$cfgfile" |
| 20228 | |
| 20229 | # func_dirname file append nondir_replacement |
| 20230 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, |
| 20231 | # otherwise set result to NONDIR_REPLACEMENT. |
| 20232 | func_dirname () |
| 20233 | { |
| 20234 | case ${1} in |
| 20235 | */*) func_dirname_result="${1%/*}${2}" ;; |
| 20236 | * ) func_dirname_result="${3}" ;; |
| 20237 | esac |
| 20238 | } |
| 20239 | |
| 20240 | # func_basename file |
| 20241 | func_basename () |
| 20242 | { |
| 20243 | func_basename_result="${1##*/}" |
| 20244 | } |
| 20245 | |
| 20246 | # func_dirname_and_basename file append nondir_replacement |
| 20247 | # perform func_basename and func_dirname in a single function |
| 20248 | # call: |
| 20249 | # dirname: Compute the dirname of FILE. If nonempty, |
| 20250 | # add APPEND to the result, otherwise set result |
| 20251 | # to NONDIR_REPLACEMENT. |
| 20252 | # value returned in "$func_dirname_result" |
| 20253 | # basename: Compute filename of FILE. |
| 20254 | # value retuned in "$func_basename_result" |
| 20255 | # Implementation must be kept synchronized with func_dirname |
| 20256 | # and func_basename. For efficiency, we do not delegate to |
| 20257 | # those functions but instead duplicate the functionality here. |
| 20258 | func_dirname_and_basename () |
| 20259 | { |
| 20260 | case ${1} in |
| 20261 | */*) func_dirname_result="${1%/*}${2}" ;; |
| 20262 | * ) func_dirname_result="${3}" ;; |
| 20263 | esac |
| 20264 | func_basename_result="${1##*/}" |
| 20265 | } |
| 20266 | |
| 20267 | # func_stripname prefix suffix name |
| 20268 | # strip PREFIX and SUFFIX off of NAME. |
| 20269 | # PREFIX and SUFFIX must not contain globbing or regex special |
| 20270 | # characters, hashes, percent signs, but SUFFIX may contain a leading |
| 20271 | # dot (in which case that matches only a dot). |
| 20272 | func_stripname () |
| 20273 | { |
| 20274 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are |
| 20275 | # positional parameters, so assign one to ordinary parameter first. |
| 20276 | func_stripname_result=${3} |
| 20277 | func_stripname_result=${func_stripname_result#"${1}"} |
| 20278 | func_stripname_result=${func_stripname_result%"${2}"} |
| 20279 | } |
| 20280 | |
| 20281 | # func_opt_split |
| 20282 | func_opt_split () |
| 20283 | { |
| 20284 | func_opt_split_opt=${1%%=*} |
| 20285 | func_opt_split_arg=${1#*=} |
| 20286 | } |
| 20287 | |
| 20288 | # func_lo2o object |
| 20289 | func_lo2o () |
| 20290 | { |
| 20291 | case ${1} in |
| 20292 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; |
| 20293 | *) func_lo2o_result=${1} ;; |
| 20294 | esac |
| 20295 | } |
| 20296 | |
| 20297 | # func_xform libobj-or-source |
| 20298 | func_xform () |
| 20299 | { |
| 20300 | func_xform_result=${1%.*}.lo |
| 20301 | } |
| 20302 | |
| 20303 | # func_arith arithmetic-term... |
| 20304 | func_arith () |
| 20305 | { |
| 20306 | func_arith_result=$(( $* )) |
| 20307 | } |
| 20308 | |
| 20309 | # func_len string |
| 20310 | # STRING may not start with a hyphen. |
| 20311 | func_len () |
| 20312 | { |
| 20313 | func_len_result=${#1} |
| 20314 | } |
| 20315 | |
| 20316 | _LT_EOF |
| 20317 | ;; |
| 20318 | *) # Bourne compatible functions. |
| 20319 | cat << \_LT_EOF >> "$cfgfile" |
| 20320 | |
| 20321 | # func_dirname file append nondir_replacement |
| 20322 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, |
| 20323 | # otherwise set result to NONDIR_REPLACEMENT. |
| 20324 | func_dirname () |
| 20325 | { |
| 20326 | # Extract subdirectory from the argument. |
| 20327 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` |
| 20328 | if test "X$func_dirname_result" = "X${1}"; then |
| 20329 | func_dirname_result="${3}" |
| 20330 | else |
| 20331 | func_dirname_result="$func_dirname_result${2}" |
| 20332 | fi |
| 20333 | } |
| 20334 | |
| 20335 | # func_basename file |
| 20336 | func_basename () |
| 20337 | { |
| 20338 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` |
| 20339 | } |
| 20340 | |
| 20341 | |
| 20342 | # func_stripname prefix suffix name |
| 20343 | # strip PREFIX and SUFFIX off of NAME. |
| 20344 | # PREFIX and SUFFIX must not contain globbing or regex special |
| 20345 | # characters, hashes, percent signs, but SUFFIX may contain a leading |
| 20346 | # dot (in which case that matches only a dot). |
| 20347 | # func_strip_suffix prefix name |
| 20348 | func_stripname () |
| 20349 | { |
| 20350 | case ${2} in |
| 20351 | .*) func_stripname_result=`$ECHO "X${3}" \ |
| 20352 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; |
| 20353 | *) func_stripname_result=`$ECHO "X${3}" \ |
| 20354 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; |
| 20355 | esac |
| 20356 | } |
| 20357 | |
| 20358 | # sed scripts: |
| 20359 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' |
| 20360 | my_sed_long_arg='1s/^-[^=]*=//' |
| 20361 | |
| 20362 | # func_opt_split |
| 20363 | func_opt_split () |
| 20364 | { |
| 20365 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` |
| 20366 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` |
| 20367 | } |
| 20368 | |
| 20369 | # func_lo2o object |
| 20370 | func_lo2o () |
| 20371 | { |
| 20372 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` |
| 20373 | } |
| 20374 | |
| 20375 | # func_xform libobj-or-source |
| 20376 | func_xform () |
| 20377 | { |
| 20378 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` |
| 20379 | } |
| 20380 | |
| 20381 | # func_arith arithmetic-term... |
| 20382 | func_arith () |
| 20383 | { |
| 20384 | func_arith_result=`expr "$@"` |
| 20385 | } |
| 20386 | |
| 20387 | # func_len string |
| 20388 | # STRING may not start with a hyphen. |
| 20389 | func_len () |
| 20390 | { |
| 20391 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` |
| 20392 | } |
| 20393 | |
| 20394 | _LT_EOF |
| 20395 | esac |
| 20396 | |
| 20397 | case $lt_shell_append in |
| 20398 | yes) |
| 20399 | cat << \_LT_EOF >> "$cfgfile" |
| 20400 | |
| 20401 | # func_append var value |
| 20402 | # Append VALUE to the end of shell variable VAR. |
| 20403 | func_append () |
| 20404 | { |
| 20405 | eval "$1+=\$2" |
| 20406 | } |
| 20407 | _LT_EOF |
| 20408 | ;; |
| 20409 | *) |
| 20410 | cat << \_LT_EOF >> "$cfgfile" |
| 20411 | |
| 20412 | # func_append var value |
| 20413 | # Append VALUE to the end of shell variable VAR. |
| 20414 | func_append () |
| 20415 | { |
| 20416 | eval "$1=\$$1\$2" |
| 20417 | } |
| 20418 | |
| 20419 | _LT_EOF |
| 20420 | ;; |
| 20421 | esac |
| 20422 | |
| 20423 | |
| 20424 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ |
| 20425 | || (rm -f "$cfgfile"; exit 1) |
| 20426 | |
| 20427 | mv -f "$cfgfile" "$ofile" || |
| 20428 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 20429 | chmod +x "$ofile" |
| 20430 | |
| 20431 | |
| 20432 | cat <<_LT_EOF >> "$ofile" |
| 20433 | |
| 20434 | # ### BEGIN LIBTOOL TAG CONFIG: CXX |
| 20435 | |
| 20436 | # The linker used to build libraries. |
| 20437 | LD=$lt_LD_CXX |
| 20438 | |
| 20439 | # Commands used to build an old-style archive. |
| 20440 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 20441 | |
| 20442 | # A language specific compiler. |
| 20443 | CC=$lt_compiler_CXX |
| 20444 | |
| 20445 | # Is the compiler the GNU compiler? |
| 20446 | with_gcc=$GCC_CXX |
| 20447 | |
| 20448 | # Compiler flag to turn off builtin functions. |
| 20449 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 20450 | |
| 20451 | # How to pass a linker flag through the compiler. |
| 20452 | wl=$lt_lt_prog_compiler_wl_CXX |
| 20453 | |
| 20454 | # Additional compiler flags for building library objects. |
| 20455 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 20456 | |
| 20457 | # Compiler flag to prevent dynamic linking. |
| 20458 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 20459 | |
| 20460 | # Does compiler simultaneously support -c and -o options? |
| 20461 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 20462 | |
| 20463 | # Whether or not to add -lc for building shared libraries. |
| 20464 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 20465 | |
| 20466 | # Whether or not to disallow shared libs when runtime libs are static. |
| 20467 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 20468 | |
| 20469 | # Compiler flag to allow reflexive dlopens. |
| 20470 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 20471 | |
| 20472 | # Compiler flag to generate shared objects directly from archives. |
| 20473 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 20474 | |
| 20475 | # Whether the compiler copes with passing no objects directly. |
| 20476 | compiler_needs_object=$lt_compiler_needs_object_CXX |
| 20477 | |
| 20478 | # Create an old-style archive from a shared archive. |
| 20479 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 20480 | |
| 20481 | # Create a temporary old-style archive to link instead of a shared archive. |
| 20482 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 20483 | |
| 20484 | # Commands used to build a shared archive. |
| 20485 | archive_cmds=$lt_archive_cmds_CXX |
| 20486 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 20487 | |
| 20488 | # Commands used to build a loadable module if different from building |
| 20489 | # a shared archive. |
| 20490 | module_cmds=$lt_module_cmds_CXX |
| 20491 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 20492 | |
| 20493 | # Whether we are building with GNU ld or not. |
| 20494 | with_gnu_ld=$lt_with_gnu_ld_CXX |
| 20495 | |
| 20496 | # Flag that allows shared libraries with undefined symbols to be built. |
| 20497 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 20498 | |
| 20499 | # Flag that enforces no undefined symbols. |
| 20500 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 20501 | |
| 20502 | # Flag to hardcode \$libdir into a binary during linking. |
| 20503 | # This must work even if \$libdir does not exist |
| 20504 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 20505 | |
| 20506 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
| 20507 | # during linking. This must work even if \$libdir does not exist. |
| 20508 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 20509 | |
| 20510 | # Whether we need a single "-rpath" flag with a separated argument. |
| 20511 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 20512 | |
| 20513 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 20514 | # DIR into the resulting binary. |
| 20515 | hardcode_direct=$hardcode_direct_CXX |
| 20516 | |
| 20517 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 20518 | # DIR into the resulting binary and the resulting library dependency is |
| 20519 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 20520 | # library is relocated. |
| 20521 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX |
| 20522 | |
| 20523 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 20524 | # into the resulting binary. |
| 20525 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 20526 | |
| 20527 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 20528 | # into the resulting binary. |
| 20529 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 20530 | |
| 20531 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 20532 | # into the library and all subsequent libraries and executables linked |
| 20533 | # against it. |
| 20534 | hardcode_automatic=$hardcode_automatic_CXX |
| 20535 | |
| 20536 | # Set to yes if linker adds runtime paths of dependent libraries |
| 20537 | # to runtime path list. |
| 20538 | inherit_rpath=$inherit_rpath_CXX |
| 20539 | |
| 20540 | # Whether libtool must link a program against all its dependency libraries. |
| 20541 | link_all_deplibs=$link_all_deplibs_CXX |
| 20542 | |
| 20543 | # Fix the shell variable \$srcfile for the compiler. |
| 20544 | fix_srcfile_path=$lt_fix_srcfile_path_CXX |
| 20545 | |
| 20546 | # Set to "yes" if exported symbols are required. |
| 20547 | always_export_symbols=$always_export_symbols_CXX |
| 20548 | |
| 20549 | # The commands to list exported symbols. |
| 20550 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 20551 | |
| 20552 | # Symbols that should not be listed in the preloaded symbols. |
| 20553 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 20554 | |
| 20555 | # Symbols that must always be exported. |
| 20556 | include_expsyms=$lt_include_expsyms_CXX |
| 20557 | |
| 20558 | # Commands necessary for linking programs (against libraries) with templates. |
| 20559 | prelink_cmds=$lt_prelink_cmds_CXX |
| 20560 | |
| 20561 | # Specify filename containing input files. |
| 20562 | file_list_spec=$lt_file_list_spec_CXX |
| 20563 | |
| 20564 | # How to hardcode a shared library path into an executable. |
| 20565 | hardcode_action=$hardcode_action_CXX |
| 20566 | |
| 20567 | # The directories searched by this compiler when creating a shared library. |
| 20568 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX |
| 20569 | |
| 20570 | # Dependencies to place before and after the objects being linked to |
| 20571 | # create a shared library. |
| 20572 | predep_objects=$lt_predep_objects_CXX |
| 20573 | postdep_objects=$lt_postdep_objects_CXX |
| 20574 | predeps=$lt_predeps_CXX |
| 20575 | postdeps=$lt_postdeps_CXX |
| 20576 | |
| 20577 | # The library search path used internally by the compiler when linking |
| 20578 | # a shared library. |
| 20579 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 20580 | |
| 20581 | # ### END LIBTOOL TAG CONFIG: CXX |
| 20582 | _LT_EOF |
| 20583 | |
| 20584 | ;; |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 20585 | |
Craig Silverstein | 5a3c7f8 | 2009-04-15 21:57:04 +0000 | [diff] [blame] | 20586 | esac |
| 20587 | done # for ac_tag |
| 20588 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 20589 | |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 20590 | { (exit 0); exit 0; } |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 20591 | _ACEOF |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 20592 | chmod +x $CONFIG_STATUS |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 20593 | ac_clean_files=$ac_clean_files_save |
| 20594 | |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 20595 | test $ac_write_fail = 0 || |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 20596 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 |
| 20597 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} |
| 20598 | { (exit 1); exit 1; }; } |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 20599 | |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 20600 | |
| 20601 | # configure is writing to config.log, and then calls config.status. |
| 20602 | # config.status does its own redirection, appending to config.log. |
| 20603 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 20604 | # by configure, so config.status won't be able to write to it; its |
| 20605 | # output is simply discarded. So we exec the FD to /dev/null, |
| 20606 | # effectively closing config.log, so it can be properly (re)opened and |
| 20607 | # appended to by config.status. When coming back to configure, we |
| 20608 | # need to make the FD available again. |
| 20609 | if test "$no_create" != yes; then |
| 20610 | ac_cs_success=: |
| 20611 | ac_config_status_args= |
| 20612 | test "$silent" = yes && |
| 20613 | ac_config_status_args="$ac_config_status_args --quiet" |
| 20614 | exec 5>/dev/null |
| 20615 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 20616 | exec 5>>config.log |
| 20617 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 20618 | # would make configure fail if this is the last instruction. |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 20619 | $ac_cs_success || { (exit 1); exit 1; } |
Craig Silverstein | ab3d765 | 2009-11-10 16:33:51 +0000 | [diff] [blame] | 20620 | fi |
| 20621 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
Craig Silverstein | 917f4e7 | 2011-07-29 04:26:49 +0000 | [diff] [blame] | 20622 | { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5 |
| 20623 | $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;} |
Craig Silverstein | b9f2348 | 2007-03-22 00:15:41 +0000 | [diff] [blame] | 20624 | fi |
| 20625 | |