bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.65 for breakpad 0.1. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4 | # |
| 5 | # Report bugs to <opensource@google.com>. |
| 6 | # |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 7 | # |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, |
| 10 | # Inc. |
| 11 | # |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13 | # This configure script is free software; the Free Software Foundation |
| 14 | # gives unlimited permission to copy, distribute and modify it. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15 | ## -------------------- ## |
| 16 | ## M4sh Initialization. ## |
| 17 | ## -------------------- ## |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 19 | # Be more Bourne compatible |
| 20 | DUALCASE=1; export DUALCASE # for MKS sh |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 21 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 22 | emulate sh |
| 23 | NULLCMD=: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 25 | # is contrary to our usage. Disable this feature. |
| 26 | alias -g '${1+"$@"}'='"$@"' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 27 | setopt NO_GLOB_SUBST |
| 28 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 29 | case `(set -o) 2>/dev/null` in #( |
| 30 | *posix*) : |
| 31 | set -o posix ;; #( |
| 32 | *) : |
| 33 | ;; |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 34 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 35 | fi |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 36 | |
| 37 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 38 | as_nl=' |
| 39 | ' |
| 40 | export as_nl |
| 41 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 42 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 45 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 46 | # but without wasting forks for bash or zsh. |
| 47 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 48 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 49 | as_echo='print -r --' |
| 50 | as_echo_n='print -rn --' |
| 51 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 52 | as_echo='printf %s\n' |
| 53 | as_echo_n='printf %s' |
| 54 | else |
| 55 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 56 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 57 | as_echo_n='/usr/ucb/echo -n' |
| 58 | else |
| 59 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 60 | as_echo_n_body='eval |
| 61 | arg=$1; |
| 62 | case $arg in #( |
| 63 | *"$as_nl"*) |
| 64 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 65 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 66 | esac; |
| 67 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 68 | ' |
| 69 | export as_echo_n_body |
| 70 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 71 | fi |
| 72 | export as_echo_body |
| 73 | as_echo='sh -c $as_echo_body as_echo' |
| 74 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 75 | |
| 76 | # The user is always right. |
| 77 | if test "${PATH_SEPARATOR+set}" != set; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 78 | PATH_SEPARATOR=: |
| 79 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 80 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 81 | PATH_SEPARATOR=';' |
| 82 | } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 83 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 84 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 85 | |
| 86 | # IFS |
| 87 | # We need space, tab and new line, in precisely that order. Quoting is |
| 88 | # there to prevent editors from complaining about space-tab. |
| 89 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 90 | # splitting by setting IFS to empty value.) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 91 | IFS=" "" $as_nl" |
| 92 | |
| 93 | # Find who we are. Look in the path if we contain no directory separator. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 94 | case $0 in #(( |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 95 | *[\\/]* ) as_myself=$0 ;; |
| 96 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 97 | for as_dir in $PATH |
| 98 | do |
| 99 | IFS=$as_save_IFS |
| 100 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 101 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 102 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 103 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 104 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 105 | ;; |
| 106 | esac |
| 107 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 108 | # in which case we are not to be found in the path. |
| 109 | if test "x$as_myself" = x; then |
| 110 | as_myself=$0 |
| 111 | fi |
| 112 | if test ! -f "$as_myself"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 113 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 114 | exit 1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 115 | fi |
| 116 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 117 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 118 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 119 | # suppresses any "Segmentation fault" message there. '((' could |
| 120 | # trigger a bug in pdksh 5.2.14. |
| 121 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 122 | do eval test x\${$as_var+set} = xset \ |
| 123 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 124 | done |
| 125 | PS1='$ ' |
| 126 | PS2='> ' |
| 127 | PS4='+ ' |
| 128 | |
| 129 | # NLS nuisances. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 130 | LC_ALL=C |
| 131 | export LC_ALL |
| 132 | LANGUAGE=C |
| 133 | export LANGUAGE |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 134 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 135 | # CDPATH. |
| 136 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 137 | |
| 138 | if test "x$CONFIG_SHELL" = x; then |
| 139 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 140 | emulate sh |
| 141 | NULLCMD=: |
| 142 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 143 | # is contrary to our usage. Disable this feature. |
| 144 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 145 | setopt NO_GLOB_SUBST |
| 146 | else |
| 147 | case \`(set -o) 2>/dev/null\` in #( |
| 148 | *posix*) : |
| 149 | set -o posix ;; #( |
| 150 | *) : |
| 151 | ;; |
| 152 | esac |
| 153 | fi |
| 154 | " |
| 155 | as_required="as_fn_return () { (exit \$1); } |
| 156 | as_fn_success () { as_fn_return 0; } |
| 157 | as_fn_failure () { as_fn_return 1; } |
| 158 | as_fn_ret_success () { return 0; } |
| 159 | as_fn_ret_failure () { return 1; } |
| 160 | |
| 161 | exitcode=0 |
| 162 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 163 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 164 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 165 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 166 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 167 | |
| 168 | else |
| 169 | exitcode=1; echo positional parameters were not saved. |
| 170 | fi |
| 171 | test x\$exitcode = x0 || exit 1" |
| 172 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 173 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 174 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 175 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 176 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 177 | if (eval "$as_required") 2>/dev/null; then : |
| 178 | as_have_required=yes |
| 179 | else |
| 180 | as_have_required=no |
| 181 | fi |
| 182 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 183 | |
| 184 | else |
| 185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 186 | as_found=false |
| 187 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 188 | do |
| 189 | IFS=$as_save_IFS |
| 190 | test -z "$as_dir" && as_dir=. |
| 191 | as_found=: |
| 192 | case $as_dir in #( |
| 193 | /*) |
| 194 | for as_base in sh bash ksh sh5; do |
| 195 | # Try only shells that exist, to save several forks. |
| 196 | as_shell=$as_dir/$as_base |
| 197 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 198 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 199 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 200 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 201 | break 2 |
| 202 | fi |
| 203 | fi |
| 204 | done;; |
| 205 | esac |
| 206 | as_found=false |
| 207 | done |
| 208 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 209 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 210 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 211 | fi; } |
| 212 | IFS=$as_save_IFS |
| 213 | |
| 214 | |
| 215 | if test "x$CONFIG_SHELL" != x; then : |
| 216 | # We cannot yet assume a decent shell, so we have to provide a |
| 217 | # neutralization value for shells without unset; and this also |
| 218 | # works around shells that cannot unset nonexistent variables. |
| 219 | BASH_ENV=/dev/null |
| 220 | ENV=/dev/null |
| 221 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 222 | export CONFIG_SHELL |
| 223 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 224 | fi |
| 225 | |
| 226 | if test x$as_have_required = xno; then : |
| 227 | $as_echo "$0: This script requires a shell more modern than all" |
| 228 | $as_echo "$0: the shells that I found on your system." |
| 229 | if test x${ZSH_VERSION+set} = xset ; then |
| 230 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 231 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 232 | else |
| 233 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
| 234 | $0: opensource@google.com about your system, including any |
| 235 | $0: error possibly output before this message. Then install |
| 236 | $0: a modern shell, or manually run the script under such a |
| 237 | $0: shell if you do have one." |
| 238 | fi |
| 239 | exit 1 |
| 240 | fi |
| 241 | fi |
| 242 | fi |
| 243 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 244 | export SHELL |
| 245 | # Unset more variables known to interfere with behavior of common tools. |
| 246 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 247 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 248 | |
| 249 | ## --------------------- ## |
| 250 | ## M4sh Shell Functions. ## |
| 251 | ## --------------------- ## |
| 252 | # as_fn_unset VAR |
| 253 | # --------------- |
| 254 | # Portably unset VAR. |
| 255 | as_fn_unset () |
| 256 | { |
| 257 | { eval $1=; unset $1;} |
| 258 | } |
| 259 | as_unset=as_fn_unset |
| 260 | |
| 261 | # as_fn_set_status STATUS |
| 262 | # ----------------------- |
| 263 | # Set $? to STATUS, without forking. |
| 264 | as_fn_set_status () |
| 265 | { |
| 266 | return $1 |
| 267 | } # as_fn_set_status |
| 268 | |
| 269 | # as_fn_exit STATUS |
| 270 | # ----------------- |
| 271 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 272 | as_fn_exit () |
| 273 | { |
| 274 | set +e |
| 275 | as_fn_set_status $1 |
| 276 | exit $1 |
| 277 | } # as_fn_exit |
| 278 | |
| 279 | # as_fn_mkdir_p |
| 280 | # ------------- |
| 281 | # Create "$as_dir" as a directory, including parents if necessary. |
| 282 | as_fn_mkdir_p () |
| 283 | { |
| 284 | |
| 285 | case $as_dir in #( |
| 286 | -*) as_dir=./$as_dir;; |
| 287 | esac |
| 288 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 289 | as_dirs= |
| 290 | while :; do |
| 291 | case $as_dir in #( |
| 292 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 293 | *) as_qdir=$as_dir;; |
| 294 | esac |
| 295 | as_dirs="'$as_qdir' $as_dirs" |
| 296 | as_dir=`$as_dirname -- "$as_dir" || |
| 297 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 298 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 299 | X"$as_dir" : 'X\(//\)$' \| \ |
| 300 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 301 | $as_echo X"$as_dir" | |
| 302 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 303 | s//\1/ |
| 304 | q |
| 305 | } |
| 306 | /^X\(\/\/\)[^/].*/{ |
| 307 | s//\1/ |
| 308 | q |
| 309 | } |
| 310 | /^X\(\/\/\)$/{ |
| 311 | s//\1/ |
| 312 | q |
| 313 | } |
| 314 | /^X\(\/\).*/{ |
| 315 | s//\1/ |
| 316 | q |
| 317 | } |
| 318 | s/.*/./; q'` |
| 319 | test -d "$as_dir" && break |
| 320 | done |
| 321 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 322 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 323 | |
| 324 | |
| 325 | } # as_fn_mkdir_p |
| 326 | # as_fn_append VAR VALUE |
| 327 | # ---------------------- |
| 328 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 329 | # advantage of any shell optimizations that allow amortized linear growth over |
| 330 | # repeated appends, instead of the typical quadratic growth present in naive |
| 331 | # implementations. |
| 332 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 333 | eval 'as_fn_append () |
| 334 | { |
| 335 | eval $1+=\$2 |
| 336 | }' |
| 337 | else |
| 338 | as_fn_append () |
| 339 | { |
| 340 | eval $1=\$$1\$2 |
| 341 | } |
| 342 | fi # as_fn_append |
| 343 | |
| 344 | # as_fn_arith ARG... |
| 345 | # ------------------ |
| 346 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 347 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 348 | # must be portable across $(()) and expr. |
| 349 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 350 | eval 'as_fn_arith () |
| 351 | { |
| 352 | as_val=$(( $* )) |
| 353 | }' |
| 354 | else |
| 355 | as_fn_arith () |
| 356 | { |
| 357 | as_val=`expr "$@" || test $? -eq 1` |
| 358 | } |
| 359 | fi # as_fn_arith |
| 360 | |
| 361 | |
| 362 | # as_fn_error ERROR [LINENO LOG_FD] |
| 363 | # --------------------------------- |
| 364 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 365 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 366 | # script with status $?, using 1 if that was 0. |
| 367 | as_fn_error () |
| 368 | { |
| 369 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 370 | if test "$3"; then |
| 371 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 372 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 373 | fi |
| 374 | $as_echo "$as_me: error: $1" >&2 |
| 375 | as_fn_exit $as_status |
| 376 | } # as_fn_error |
| 377 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 378 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 379 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 380 | as_expr=expr |
| 381 | else |
| 382 | as_expr=false |
| 383 | fi |
| 384 | |
| 385 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 386 | as_basename=basename |
| 387 | else |
| 388 | as_basename=false |
| 389 | fi |
| 390 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 391 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 392 | as_dirname=dirname |
| 393 | else |
| 394 | as_dirname=false |
| 395 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 396 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 397 | as_me=`$as_basename -- "$0" || |
| 398 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 399 | X"$0" : 'X\(//\)$' \| \ |
| 400 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 401 | $as_echo X/"$0" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 402 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 403 | s//\1/ |
| 404 | q |
| 405 | } |
| 406 | /^X\/\(\/\/\)$/{ |
| 407 | s//\1/ |
| 408 | q |
| 409 | } |
| 410 | /^X\/\(\/\).*/{ |
| 411 | s//\1/ |
| 412 | q |
| 413 | } |
| 414 | s/.*/./; q'` |
| 415 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 416 | # Avoid depending upon Character Ranges. |
| 417 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 418 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 419 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 420 | as_cr_digits='0123456789' |
| 421 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 422 | |
| 423 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 424 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 425 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 426 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 427 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 428 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 429 | sed -n ' |
| 430 | p |
| 431 | /[$]LINENO/= |
| 432 | ' <$as_myself | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 433 | sed ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 434 | s/[$]LINENO.*/&-/ |
| 435 | t lineno |
| 436 | b |
| 437 | :lineno |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 438 | N |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 439 | :loop |
| 440 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 441 | t loop |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 442 | s/-\n.*// |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 443 | ' >$as_me.lineno && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 444 | chmod +x "$as_me.lineno" || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 445 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 446 | |
| 447 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 448 | # (the dirname of $[0] is not the place where we might find the |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 449 | # original and so on. Autoconf is especially sensitive to this). |
| 450 | . "./$as_me.lineno" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 451 | # Exit status is that of the last command. |
| 452 | exit |
| 453 | } |
| 454 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 455 | ECHO_C= ECHO_N= ECHO_T= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 456 | case `echo -n x` in #((((( |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 457 | -n*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 458 | case `echo 'xy\c'` in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 459 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 460 | xy) ECHO_C='\c';; |
| 461 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 462 | ECHO_T=' ';; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 463 | esac;; |
| 464 | *) |
| 465 | ECHO_N='-n';; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 466 | esac |
| 467 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 468 | rm -f conf$$ conf$$.exe conf$$.file |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 469 | if test -d conf$$.dir; then |
| 470 | rm -f conf$$.dir/conf$$.file |
| 471 | else |
| 472 | rm -f conf$$.dir |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 473 | mkdir conf$$.dir 2>/dev/null |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 474 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 475 | if (echo >conf$$.file) 2>/dev/null; then |
| 476 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 477 | as_ln_s='ln -s' |
| 478 | # ... but there are two gotchas: |
| 479 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 480 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 481 | # In both cases, we have to default to `cp -p'. |
| 482 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 483 | as_ln_s='cp -p' |
| 484 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 485 | as_ln_s=ln |
| 486 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 487 | as_ln_s='cp -p' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 488 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 489 | else |
| 490 | as_ln_s='cp -p' |
| 491 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 492 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 493 | rmdir conf$$.dir 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 494 | |
| 495 | if mkdir -p . 2>/dev/null; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 496 | as_mkdir_p='mkdir -p "$as_dir"' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 497 | else |
| 498 | test -d ./-p && rmdir ./-p |
| 499 | as_mkdir_p=false |
| 500 | fi |
| 501 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 502 | if test -x / >/dev/null 2>&1; then |
| 503 | as_test_x='test -x' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 504 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 505 | if ls -dL / >/dev/null 2>&1; then |
| 506 | as_ls_L_option=L |
| 507 | else |
| 508 | as_ls_L_option= |
| 509 | fi |
| 510 | as_test_x=' |
| 511 | eval sh -c '\'' |
| 512 | if test -d "$1"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 513 | test -d "$1/."; |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 514 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 515 | case $1 in #( |
| 516 | -*)set "./$1";; |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 517 | esac; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 518 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 519 | ???[sx]*):;;*)false;;esac;fi |
| 520 | '\'' sh |
| 521 | ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 522 | fi |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 523 | as_executable_p=$as_test_x |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 524 | |
| 525 | # Sed expression to map a string onto a valid CPP name. |
| 526 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 527 | |
| 528 | # Sed expression to map a string onto a valid variable name. |
| 529 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 530 | |
| 531 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 532 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 533 | # Check that we are running under the correct shell. |
| 534 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 535 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 536 | case X$lt_ECHO in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 537 | X*--fallback-echo) |
| 538 | # Remove one level of quotation (which was required for Make). |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 539 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 540 | ;; |
| 541 | esac |
| 542 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 543 | ECHO=${lt_ECHO-echo} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 544 | if test "X$1" = X--no-reexec; then |
| 545 | # Discard the --no-reexec flag, and continue. |
| 546 | shift |
| 547 | elif test "X$1" = X--fallback-echo; then |
| 548 | # Avoid inline document here, it may be left over |
| 549 | : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 550 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then |
| 551 | # Yippee, $ECHO works! |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 552 | : |
| 553 | else |
| 554 | # Restart under the correct shell. |
| 555 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 556 | fi |
| 557 | |
| 558 | if test "X$1" = X--fallback-echo; then |
| 559 | # used as fallback echo |
| 560 | shift |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 561 | cat <<_LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 562 | $* |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 563 | _LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 564 | exit 0 |
| 565 | fi |
| 566 | |
| 567 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 568 | # if CDPATH is set. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 569 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 570 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 571 | if test -z "$lt_ECHO"; then |
| 572 | if test "X${echo_test_string+set}" != Xset; then |
| 573 | # find a string as large as possible, as long as the shell can cope with it |
| 574 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 575 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 576 | if { echo_test_string=`eval $cmd`; } 2>/dev/null && |
| 577 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null |
| 578 | then |
| 579 | break |
| 580 | fi |
| 581 | done |
| 582 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 583 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 584 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
| 585 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && |
| 586 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 587 | : |
| 588 | else |
| 589 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 590 | # backslashes. This makes it impossible to quote backslashes using |
| 591 | # echo "$something" | sed 's/\\/\\\\/g' |
| 592 | # |
| 593 | # So, first we look for a working echo in the user's PATH. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 594 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 595 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 596 | for dir in $PATH /usr/ucb; do |
| 597 | IFS="$lt_save_ifs" |
| 598 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 599 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 600 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 601 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 602 | ECHO="$dir/echo" |
| 603 | break |
| 604 | fi |
| 605 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 606 | IFS="$lt_save_ifs" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 607 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 608 | if test "X$ECHO" = Xecho; then |
| 609 | # We didn't find a better echo, so look for alternatives. |
| 610 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && |
| 611 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && |
| 612 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 613 | # This shell has a builtin print -r that does the trick. |
| 614 | ECHO='print -r' |
| 615 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && |
| 616 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 617 | # If we have ksh, try running configure again with it. |
| 618 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 619 | export ORIGINAL_CONFIG_SHELL |
| 620 | CONFIG_SHELL=/bin/ksh |
| 621 | export CONFIG_SHELL |
| 622 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 623 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 624 | # Try using printf. |
| 625 | ECHO='printf %s\n' |
| 626 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
| 627 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && |
| 628 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 629 | # Cool, printf works |
| 630 | : |
| 631 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 632 | test "X$echo_testing_string" = 'X\t' && |
| 633 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 634 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 635 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 636 | export CONFIG_SHELL |
| 637 | SHELL="$CONFIG_SHELL" |
| 638 | export SHELL |
| 639 | ECHO="$CONFIG_SHELL $0 --fallback-echo" |
| 640 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 641 | test "X$echo_testing_string" = 'X\t' && |
| 642 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 643 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 644 | ECHO="$CONFIG_SHELL $0 --fallback-echo" |
| 645 | else |
| 646 | # maybe with a smaller string... |
| 647 | prev=: |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 648 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 649 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 650 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null |
| 651 | then |
| 652 | break |
| 653 | fi |
| 654 | prev="$cmd" |
| 655 | done |
| 656 | |
| 657 | if test "$prev" != 'sed 50q "$0"'; then |
| 658 | echo_test_string=`eval $prev` |
| 659 | export echo_test_string |
| 660 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 661 | else |
| 662 | # Oops. We lost completely, so just stick with echo. |
| 663 | ECHO=echo |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 664 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 665 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 666 | fi |
| 667 | fi |
| 668 | fi |
| 669 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 670 | |
| 671 | # Copy echo and quote the copy suitably for passing to libtool from |
| 672 | # the Makefile, instead of quoting the original, which is used later. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 673 | lt_ECHO=$ECHO |
| 674 | if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 675 | lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 676 | fi |
| 677 | |
| 678 | |
| 679 | |
| 680 | |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 681 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 682 | exec 6>&1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 683 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 684 | # Name of the host. |
| 685 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 686 | # so uname gets run too. |
| 687 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 688 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 689 | # |
| 690 | # Initializations. |
| 691 | # |
| 692 | ac_default_prefix=/usr/local |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 693 | ac_clean_files= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 694 | ac_config_libobj_dir=. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 695 | LIBOBJS= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 696 | cross_compiling=no |
| 697 | subdirs= |
| 698 | MFLAGS= |
| 699 | MAKEFLAGS= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 700 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 701 | # Identity of this package. |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 702 | PACKAGE_NAME='breakpad' |
| 703 | PACKAGE_TARNAME='breakpad' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 704 | PACKAGE_VERSION='0.1' |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 705 | PACKAGE_STRING='breakpad 0.1' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 706 | PACKAGE_BUGREPORT='opensource@google.com' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 707 | PACKAGE_URL='' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 708 | |
| 709 | ac_unique_file="README" |
| 710 | # Factoring default headers for most tests. |
| 711 | ac_includes_default="\ |
| 712 | #include <stdio.h> |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 713 | #ifdef HAVE_SYS_TYPES_H |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 714 | # include <sys/types.h> |
| 715 | #endif |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 716 | #ifdef HAVE_SYS_STAT_H |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 717 | # include <sys/stat.h> |
| 718 | #endif |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 719 | #ifdef STDC_HEADERS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 720 | # include <stdlib.h> |
| 721 | # include <stddef.h> |
| 722 | #else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 723 | # ifdef HAVE_STDLIB_H |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 724 | # include <stdlib.h> |
| 725 | # endif |
| 726 | #endif |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 727 | #ifdef HAVE_STRING_H |
| 728 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 729 | # include <memory.h> |
| 730 | # endif |
| 731 | # include <string.h> |
| 732 | #endif |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 733 | #ifdef HAVE_STRINGS_H |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 734 | # include <strings.h> |
| 735 | #endif |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 736 | #ifdef HAVE_INTTYPES_H |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 737 | # include <inttypes.h> |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 738 | #endif |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 739 | #ifdef HAVE_STDINT_H |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 740 | # include <stdint.h> |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 741 | #endif |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 742 | #ifdef HAVE_UNISTD_H |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 743 | # include <unistd.h> |
| 744 | #endif" |
| 745 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 746 | ac_subst_vars='am__EXEEXT_FALSE |
| 747 | am__EXEEXT_TRUE |
| 748 | LTLIBOBJS |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 749 | LIBOBJS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 750 | SELFTEST_FALSE |
| 751 | SELFTEST_TRUE |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 752 | LINUX_HOST_FALSE |
| 753 | LINUX_HOST_TRUE |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 754 | PTHREAD_CFLAGS |
| 755 | PTHREAD_LIBS |
| 756 | PTHREAD_CC |
| 757 | ax_pthread_config |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 758 | LIBTOOL_DEPS |
| 759 | CXXCPP |
| 760 | OTOOL64 |
| 761 | OTOOL |
| 762 | LIPO |
| 763 | NMEDIT |
| 764 | DSYMUTIL |
| 765 | lt_ECHO |
| 766 | RANLIB |
| 767 | AR |
| 768 | OBJDUMP |
| 769 | LN_S |
| 770 | NM |
| 771 | ac_ct_DUMPBIN |
| 772 | DUMPBIN |
| 773 | LD |
| 774 | FGREP |
| 775 | EGREP |
| 776 | GREP |
| 777 | SED |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 778 | LIBTOOL |
| 779 | am__fastdepCXX_FALSE |
| 780 | am__fastdepCXX_TRUE |
| 781 | CXXDEPMODE |
| 782 | ac_ct_CXX |
| 783 | CXXFLAGS |
| 784 | CXX |
| 785 | CPP |
| 786 | am__fastdepCC_FALSE |
| 787 | am__fastdepCC_TRUE |
| 788 | CCDEPMODE |
| 789 | AMDEPBACKSLASH |
| 790 | AMDEP_FALSE |
| 791 | AMDEP_TRUE |
| 792 | am__quote |
| 793 | am__include |
| 794 | DEPDIR |
| 795 | OBJEXT |
| 796 | EXEEXT |
| 797 | ac_ct_CC |
| 798 | CPPFLAGS |
| 799 | LDFLAGS |
| 800 | CFLAGS |
| 801 | CC |
| 802 | am__untar |
| 803 | am__tar |
| 804 | AMTAR |
| 805 | am__leading_dot |
| 806 | SET_MAKE |
| 807 | AWK |
| 808 | mkdir_p |
| 809 | MKDIR_P |
| 810 | INSTALL_STRIP_PROGRAM |
| 811 | STRIP |
| 812 | install_sh |
| 813 | MAKEINFO |
| 814 | AUTOHEADER |
| 815 | AUTOMAKE |
| 816 | AUTOCONF |
| 817 | ACLOCAL |
| 818 | VERSION |
| 819 | PACKAGE |
| 820 | CYGPATH_W |
| 821 | am__isrc |
| 822 | INSTALL_DATA |
| 823 | INSTALL_SCRIPT |
| 824 | INSTALL_PROGRAM |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 825 | host_os |
| 826 | host_vendor |
| 827 | host_cpu |
| 828 | host |
| 829 | build_os |
| 830 | build_vendor |
| 831 | build_cpu |
| 832 | build |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 833 | target_alias |
| 834 | host_alias |
| 835 | build_alias |
| 836 | LIBS |
| 837 | ECHO_T |
| 838 | ECHO_N |
| 839 | ECHO_C |
| 840 | DEFS |
| 841 | mandir |
| 842 | localedir |
| 843 | libdir |
| 844 | psdir |
| 845 | pdfdir |
| 846 | dvidir |
| 847 | htmldir |
| 848 | infodir |
| 849 | docdir |
| 850 | oldincludedir |
| 851 | includedir |
| 852 | localstatedir |
| 853 | sharedstatedir |
| 854 | sysconfdir |
| 855 | datadir |
| 856 | datarootdir |
| 857 | libexecdir |
| 858 | sbindir |
| 859 | bindir |
| 860 | program_transform_name |
| 861 | prefix |
| 862 | exec_prefix |
| 863 | PACKAGE_URL |
| 864 | PACKAGE_BUGREPORT |
| 865 | PACKAGE_STRING |
| 866 | PACKAGE_VERSION |
| 867 | PACKAGE_TARNAME |
| 868 | PACKAGE_NAME |
| 869 | PATH_SEPARATOR |
| 870 | SHELL' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 871 | ac_subst_files='' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 872 | ac_user_opts=' |
| 873 | enable_option_checking |
| 874 | enable_dependency_tracking |
| 875 | enable_shared |
| 876 | enable_static |
| 877 | with_pic |
| 878 | enable_fast_install |
| 879 | with_gnu_ld |
| 880 | enable_libtool_lock |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 881 | enable_m32 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 882 | enable_selftest |
| 883 | ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 884 | ac_precious_vars='build_alias |
| 885 | host_alias |
| 886 | target_alias |
| 887 | CC |
| 888 | CFLAGS |
| 889 | LDFLAGS |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 890 | LIBS |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 891 | CPPFLAGS |
| 892 | CPP |
| 893 | CXX |
| 894 | CXXFLAGS |
| 895 | CCC |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 896 | CXXCPP' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 897 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 898 | |
| 899 | # Initialize some variables set by options. |
| 900 | ac_init_help= |
| 901 | ac_init_version=false |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 902 | ac_unrecognized_opts= |
| 903 | ac_unrecognized_sep= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 904 | # The variables have the same names as the options, with |
| 905 | # dashes changed to underlines. |
| 906 | cache_file=/dev/null |
| 907 | exec_prefix=NONE |
| 908 | no_create= |
| 909 | no_recursion= |
| 910 | prefix=NONE |
| 911 | program_prefix=NONE |
| 912 | program_suffix=NONE |
| 913 | program_transform_name=s,x,x, |
| 914 | silent= |
| 915 | site= |
| 916 | srcdir= |
| 917 | verbose= |
| 918 | x_includes=NONE |
| 919 | x_libraries=NONE |
| 920 | |
| 921 | # Installation directory options. |
| 922 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 923 | # and all the variables that are supposed to be based on exec_prefix |
| 924 | # by default will actually change. |
| 925 | # Use braces instead of parens because sh, perl, etc. also accept them. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 926 | # (The list follows the same order as the GNU Coding Standards.) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 927 | bindir='${exec_prefix}/bin' |
| 928 | sbindir='${exec_prefix}/sbin' |
| 929 | libexecdir='${exec_prefix}/libexec' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 930 | datarootdir='${prefix}/share' |
| 931 | datadir='${datarootdir}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 932 | sysconfdir='${prefix}/etc' |
| 933 | sharedstatedir='${prefix}/com' |
| 934 | localstatedir='${prefix}/var' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 935 | includedir='${prefix}/include' |
| 936 | oldincludedir='/usr/include' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 937 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 938 | infodir='${datarootdir}/info' |
| 939 | htmldir='${docdir}' |
| 940 | dvidir='${docdir}' |
| 941 | pdfdir='${docdir}' |
| 942 | psdir='${docdir}' |
| 943 | libdir='${exec_prefix}/lib' |
| 944 | localedir='${datarootdir}/locale' |
| 945 | mandir='${datarootdir}/man' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 946 | |
| 947 | ac_prev= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 948 | ac_dashdash= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 949 | for ac_option |
| 950 | do |
| 951 | # If the previous option needs an argument, assign it. |
| 952 | if test -n "$ac_prev"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 953 | eval $ac_prev=\$ac_option |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 954 | ac_prev= |
| 955 | continue |
| 956 | fi |
| 957 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 958 | case $ac_option in |
| 959 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 960 | *) ac_optarg=yes ;; |
| 961 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 962 | |
| 963 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 964 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 965 | case $ac_dashdash$ac_option in |
| 966 | --) |
| 967 | ac_dashdash=yes ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 968 | |
| 969 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 970 | ac_prev=bindir ;; |
| 971 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 972 | bindir=$ac_optarg ;; |
| 973 | |
| 974 | -build | --build | --buil | --bui | --bu) |
| 975 | ac_prev=build_alias ;; |
| 976 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 977 | build_alias=$ac_optarg ;; |
| 978 | |
| 979 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 980 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 981 | ac_prev=cache_file ;; |
| 982 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 983 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 984 | cache_file=$ac_optarg ;; |
| 985 | |
| 986 | --config-cache | -C) |
| 987 | cache_file=config.cache ;; |
| 988 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 989 | -datadir | --datadir | --datadi | --datad) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 990 | ac_prev=datadir ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 991 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 992 | datadir=$ac_optarg ;; |
| 993 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 994 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 995 | | --dataroo | --dataro | --datar) |
| 996 | ac_prev=datarootdir ;; |
| 997 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 998 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 999 | datarootdir=$ac_optarg ;; |
| 1000 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1001 | -disable-* | --disable-*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1002 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1003 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1004 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1005 | as_fn_error "invalid feature name: $ac_useropt" |
| 1006 | ac_useropt_orig=$ac_useropt |
| 1007 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1008 | case $ac_user_opts in |
| 1009 | *" |
| 1010 | "enable_$ac_useropt" |
| 1011 | "*) ;; |
| 1012 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 1013 | ac_unrecognized_sep=', ';; |
| 1014 | esac |
| 1015 | eval enable_$ac_useropt=no ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1016 | |
| 1017 | -docdir | --docdir | --docdi | --doc | --do) |
| 1018 | ac_prev=docdir ;; |
| 1019 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1020 | docdir=$ac_optarg ;; |
| 1021 | |
| 1022 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1023 | ac_prev=dvidir ;; |
| 1024 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1025 | dvidir=$ac_optarg ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1026 | |
| 1027 | -enable-* | --enable-*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1028 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1029 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1030 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1031 | as_fn_error "invalid feature name: $ac_useropt" |
| 1032 | ac_useropt_orig=$ac_useropt |
| 1033 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1034 | case $ac_user_opts in |
| 1035 | *" |
| 1036 | "enable_$ac_useropt" |
| 1037 | "*) ;; |
| 1038 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1039 | ac_unrecognized_sep=', ';; |
| 1040 | esac |
| 1041 | eval enable_$ac_useropt=\$ac_optarg ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1042 | |
| 1043 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1044 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1045 | | --exec | --exe | --ex) |
| 1046 | ac_prev=exec_prefix ;; |
| 1047 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1048 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1049 | | --exec=* | --exe=* | --ex=*) |
| 1050 | exec_prefix=$ac_optarg ;; |
| 1051 | |
| 1052 | -gas | --gas | --ga | --g) |
| 1053 | # Obsolete; use --with-gas. |
| 1054 | with_gas=yes ;; |
| 1055 | |
| 1056 | -help | --help | --hel | --he | -h) |
| 1057 | ac_init_help=long ;; |
| 1058 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1059 | ac_init_help=recursive ;; |
| 1060 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1061 | ac_init_help=short ;; |
| 1062 | |
| 1063 | -host | --host | --hos | --ho) |
| 1064 | ac_prev=host_alias ;; |
| 1065 | -host=* | --host=* | --hos=* | --ho=*) |
| 1066 | host_alias=$ac_optarg ;; |
| 1067 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1068 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1069 | ac_prev=htmldir ;; |
| 1070 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1071 | | --ht=*) |
| 1072 | htmldir=$ac_optarg ;; |
| 1073 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1074 | -includedir | --includedir | --includedi | --included | --include \ |
| 1075 | | --includ | --inclu | --incl | --inc) |
| 1076 | ac_prev=includedir ;; |
| 1077 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1078 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1079 | includedir=$ac_optarg ;; |
| 1080 | |
| 1081 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1082 | ac_prev=infodir ;; |
| 1083 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1084 | infodir=$ac_optarg ;; |
| 1085 | |
| 1086 | -libdir | --libdir | --libdi | --libd) |
| 1087 | ac_prev=libdir ;; |
| 1088 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1089 | libdir=$ac_optarg ;; |
| 1090 | |
| 1091 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1092 | | --libexe | --libex | --libe) |
| 1093 | ac_prev=libexecdir ;; |
| 1094 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1095 | | --libexe=* | --libex=* | --libe=*) |
| 1096 | libexecdir=$ac_optarg ;; |
| 1097 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1098 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1099 | ac_prev=localedir ;; |
| 1100 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1101 | localedir=$ac_optarg ;; |
| 1102 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1103 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1104 | | --localstate | --localstat | --localsta | --localst | --locals) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1105 | ac_prev=localstatedir ;; |
| 1106 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1107 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1108 | localstatedir=$ac_optarg ;; |
| 1109 | |
| 1110 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1111 | ac_prev=mandir ;; |
| 1112 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1113 | mandir=$ac_optarg ;; |
| 1114 | |
| 1115 | -nfp | --nfp | --nf) |
| 1116 | # Obsolete; use --without-fp. |
| 1117 | with_fp=no ;; |
| 1118 | |
| 1119 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1120 | | --no-cr | --no-c | -n) |
| 1121 | no_create=yes ;; |
| 1122 | |
| 1123 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1124 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1125 | no_recursion=yes ;; |
| 1126 | |
| 1127 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1128 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1129 | | --oldin | --oldi | --old | --ol | --o) |
| 1130 | ac_prev=oldincludedir ;; |
| 1131 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1132 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1133 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1134 | oldincludedir=$ac_optarg ;; |
| 1135 | |
| 1136 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1137 | ac_prev=prefix ;; |
| 1138 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1139 | prefix=$ac_optarg ;; |
| 1140 | |
| 1141 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1142 | | --program-pre | --program-pr | --program-p) |
| 1143 | ac_prev=program_prefix ;; |
| 1144 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1145 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1146 | program_prefix=$ac_optarg ;; |
| 1147 | |
| 1148 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1149 | | --program-suf | --program-su | --program-s) |
| 1150 | ac_prev=program_suffix ;; |
| 1151 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1152 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1153 | program_suffix=$ac_optarg ;; |
| 1154 | |
| 1155 | -program-transform-name | --program-transform-name \ |
| 1156 | | --program-transform-nam | --program-transform-na \ |
| 1157 | | --program-transform-n | --program-transform- \ |
| 1158 | | --program-transform | --program-transfor \ |
| 1159 | | --program-transfo | --program-transf \ |
| 1160 | | --program-trans | --program-tran \ |
| 1161 | | --progr-tra | --program-tr | --program-t) |
| 1162 | ac_prev=program_transform_name ;; |
| 1163 | -program-transform-name=* | --program-transform-name=* \ |
| 1164 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1165 | | --program-transform-n=* | --program-transform-=* \ |
| 1166 | | --program-transform=* | --program-transfor=* \ |
| 1167 | | --program-transfo=* | --program-transf=* \ |
| 1168 | | --program-trans=* | --program-tran=* \ |
| 1169 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1170 | program_transform_name=$ac_optarg ;; |
| 1171 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1172 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1173 | ac_prev=pdfdir ;; |
| 1174 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1175 | pdfdir=$ac_optarg ;; |
| 1176 | |
| 1177 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1178 | ac_prev=psdir ;; |
| 1179 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1180 | psdir=$ac_optarg ;; |
| 1181 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1182 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1183 | | -silent | --silent | --silen | --sile | --sil) |
| 1184 | silent=yes ;; |
| 1185 | |
| 1186 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1187 | ac_prev=sbindir ;; |
| 1188 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1189 | | --sbi=* | --sb=*) |
| 1190 | sbindir=$ac_optarg ;; |
| 1191 | |
| 1192 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1193 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1194 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1195 | | --sha | --sh) |
| 1196 | ac_prev=sharedstatedir ;; |
| 1197 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1198 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1199 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1200 | | --sha=* | --sh=*) |
| 1201 | sharedstatedir=$ac_optarg ;; |
| 1202 | |
| 1203 | -site | --site | --sit) |
| 1204 | ac_prev=site ;; |
| 1205 | -site=* | --site=* | --sit=*) |
| 1206 | site=$ac_optarg ;; |
| 1207 | |
| 1208 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1209 | ac_prev=srcdir ;; |
| 1210 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1211 | srcdir=$ac_optarg ;; |
| 1212 | |
| 1213 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1214 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1215 | ac_prev=sysconfdir ;; |
| 1216 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1217 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1218 | sysconfdir=$ac_optarg ;; |
| 1219 | |
| 1220 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1221 | ac_prev=target_alias ;; |
| 1222 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1223 | target_alias=$ac_optarg ;; |
| 1224 | |
| 1225 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1226 | verbose=yes ;; |
| 1227 | |
| 1228 | -version | --version | --versio | --versi | --vers | -V) |
| 1229 | ac_init_version=: ;; |
| 1230 | |
| 1231 | -with-* | --with-*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1232 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1233 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1234 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1235 | as_fn_error "invalid package name: $ac_useropt" |
| 1236 | ac_useropt_orig=$ac_useropt |
| 1237 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1238 | case $ac_user_opts in |
| 1239 | *" |
| 1240 | "with_$ac_useropt" |
| 1241 | "*) ;; |
| 1242 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1243 | ac_unrecognized_sep=', ';; |
| 1244 | esac |
| 1245 | eval with_$ac_useropt=\$ac_optarg ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1246 | |
| 1247 | -without-* | --without-*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1248 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1249 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1250 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1251 | as_fn_error "invalid package name: $ac_useropt" |
| 1252 | ac_useropt_orig=$ac_useropt |
| 1253 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1254 | case $ac_user_opts in |
| 1255 | *" |
| 1256 | "with_$ac_useropt" |
| 1257 | "*) ;; |
| 1258 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1259 | ac_unrecognized_sep=', ';; |
| 1260 | esac |
| 1261 | eval with_$ac_useropt=no ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1262 | |
| 1263 | --x) |
| 1264 | # Obsolete; use --with-x. |
| 1265 | with_x=yes ;; |
| 1266 | |
| 1267 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1268 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1269 | ac_prev=x_includes ;; |
| 1270 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1271 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1272 | x_includes=$ac_optarg ;; |
| 1273 | |
| 1274 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1275 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1276 | ac_prev=x_libraries ;; |
| 1277 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1278 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1279 | x_libraries=$ac_optarg ;; |
| 1280 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1281 | -*) as_fn_error "unrecognized option: \`$ac_option' |
| 1282 | Try \`$0 --help' for more information." |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1283 | ;; |
| 1284 | |
| 1285 | *=*) |
| 1286 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1287 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1288 | case $ac_envvar in #( |
| 1289 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1290 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; |
| 1291 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1292 | eval $ac_envvar=\$ac_optarg |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1293 | export $ac_envvar ;; |
| 1294 | |
| 1295 | *) |
| 1296 | # FIXME: should be removed in autoconf 3.0. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1297 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1298 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1299 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1300 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1301 | ;; |
| 1302 | |
| 1303 | esac |
| 1304 | done |
| 1305 | |
| 1306 | if test -n "$ac_prev"; then |
| 1307 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1308 | as_fn_error "missing argument to $ac_option" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1309 | fi |
| 1310 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1311 | if test -n "$ac_unrecognized_opts"; then |
| 1312 | case $enable_option_checking in |
| 1313 | no) ;; |
| 1314 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; |
| 1315 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1316 | esac |
| 1317 | fi |
| 1318 | |
| 1319 | # Check all directory arguments for consistency. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1320 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1321 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1322 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1323 | libdir localedir mandir |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1324 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1325 | eval ac_val=\$$ac_var |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1326 | # Remove trailing slashes. |
| 1327 | case $ac_val in |
| 1328 | */ ) |
| 1329 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1330 | eval $ac_var=\$ac_val;; |
| 1331 | esac |
| 1332 | # Be sure to have absolute directory names. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1333 | case $ac_val in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1334 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1335 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1336 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1337 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1338 | done |
| 1339 | |
| 1340 | # There might be people who depend on the old broken behavior: `$host' |
| 1341 | # used to hold the argument of --host etc. |
| 1342 | # FIXME: To remove some day. |
| 1343 | build=$build_alias |
| 1344 | host=$host_alias |
| 1345 | target=$target_alias |
| 1346 | |
| 1347 | # FIXME: To remove some day. |
| 1348 | if test "x$host_alias" != x; then |
| 1349 | if test "x$build_alias" = x; then |
| 1350 | cross_compiling=maybe |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1351 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1352 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1353 | elif test "x$build_alias" != "x$host_alias"; then |
| 1354 | cross_compiling=yes |
| 1355 | fi |
| 1356 | fi |
| 1357 | |
| 1358 | ac_tool_prefix= |
| 1359 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1360 | |
| 1361 | test "$silent" = yes && exec 6>/dev/null |
| 1362 | |
| 1363 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1364 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1365 | ac_ls_di=`ls -di .` && |
| 1366 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1367 | as_fn_error "working directory cannot be determined" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1368 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1369 | as_fn_error "pwd does not report name of working directory" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1370 | |
| 1371 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1372 | # Find the source files, if location was not specified. |
| 1373 | if test -z "$srcdir"; then |
| 1374 | ac_srcdir_defaulted=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1375 | # Try the directory containing this script, then the parent directory. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1376 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1377 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1378 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1379 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1380 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1381 | $as_echo X"$as_myself" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1382 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1383 | s//\1/ |
| 1384 | q |
| 1385 | } |
| 1386 | /^X\(\/\/\)[^/].*/{ |
| 1387 | s//\1/ |
| 1388 | q |
| 1389 | } |
| 1390 | /^X\(\/\/\)$/{ |
| 1391 | s//\1/ |
| 1392 | q |
| 1393 | } |
| 1394 | /^X\(\/\).*/{ |
| 1395 | s//\1/ |
| 1396 | q |
| 1397 | } |
| 1398 | s/.*/./; q'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1399 | srcdir=$ac_confdir |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1400 | if test ! -r "$srcdir/$ac_unique_file"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1401 | srcdir=.. |
| 1402 | fi |
| 1403 | else |
| 1404 | ac_srcdir_defaulted=no |
| 1405 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1406 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1407 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1408 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1409 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1410 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1411 | ac_abs_confdir=`( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1412 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1413 | pwd)` |
| 1414 | # When building in place, set srcdir=. |
| 1415 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1416 | srcdir=. |
| 1417 | fi |
| 1418 | # Remove unnecessary trailing slashes from srcdir. |
| 1419 | # Double slashes in file names in object file debugging info |
| 1420 | # mess up M-x gdb in Emacs. |
| 1421 | case $srcdir in |
| 1422 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1423 | esac |
| 1424 | for ac_var in $ac_precious_vars; do |
| 1425 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1426 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1427 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1428 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1429 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1430 | |
| 1431 | # |
| 1432 | # Report the --help message. |
| 1433 | # |
| 1434 | if test "$ac_init_help" = "long"; then |
| 1435 | # Omit some internal or obsolete options to make the list less imposing. |
| 1436 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1437 | cat <<_ACEOF |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 1438 | \`configure' configures breakpad 0.1 to adapt to many kinds of systems. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1439 | |
| 1440 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1441 | |
| 1442 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1443 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1444 | |
| 1445 | Defaults for the options are specified in brackets. |
| 1446 | |
| 1447 | Configuration: |
| 1448 | -h, --help display this help and exit |
| 1449 | --help=short display options specific to this package |
| 1450 | --help=recursive display the short help of all the included packages |
| 1451 | -V, --version display version information and exit |
| 1452 | -q, --quiet, --silent do not print \`checking...' messages |
| 1453 | --cache-file=FILE cache test results in FILE [disabled] |
| 1454 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1455 | -n, --no-create do not create output files |
| 1456 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1457 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1458 | Installation directories: |
| 1459 | --prefix=PREFIX install architecture-independent files in PREFIX |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1460 | [$ac_default_prefix] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1461 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1462 | [PREFIX] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1463 | |
| 1464 | By default, \`make install' will install all the files in |
| 1465 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1466 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1467 | for instance \`--prefix=\$HOME'. |
| 1468 | |
| 1469 | For better control, use the options below. |
| 1470 | |
| 1471 | Fine tuning of the installation directories: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1472 | --bindir=DIR user executables [EPREFIX/bin] |
| 1473 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1474 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1475 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1476 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1477 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1478 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1479 | --includedir=DIR C header files [PREFIX/include] |
| 1480 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1481 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1482 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1483 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1484 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1485 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1486 | --docdir=DIR documentation root [DATAROOTDIR/doc/breakpad] |
| 1487 | --htmldir=DIR html documentation [DOCDIR] |
| 1488 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1489 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1490 | --psdir=DIR ps documentation [DOCDIR] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1491 | _ACEOF |
| 1492 | |
| 1493 | cat <<\_ACEOF |
| 1494 | |
| 1495 | Program names: |
| 1496 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1497 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1498 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1499 | |
| 1500 | System types: |
| 1501 | --build=BUILD configure for building on BUILD [guessed] |
| 1502 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1503 | _ACEOF |
| 1504 | fi |
| 1505 | |
| 1506 | if test -n "$ac_init_help"; then |
| 1507 | case $ac_init_help in |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 1508 | short | recursive ) echo "Configuration of breakpad 0.1:";; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1509 | esac |
| 1510 | cat <<\_ACEOF |
| 1511 | |
| 1512 | Optional Features: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1513 | --disable-option-checking ignore unrecognized --enable/--with options |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1514 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1515 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1516 | --disable-dependency-tracking speeds up one-time build |
| 1517 | --enable-dependency-tracking do not reject slow dependency extractors |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1518 | --enable-shared[=PKGS] build shared libraries [default=yes] |
| 1519 | --enable-static[=PKGS] build static libraries [default=yes] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1520 | --enable-fast-install[=PKGS] |
| 1521 | optimize for fast installation [default=yes] |
| 1522 | --disable-libtool-lock avoid locking (might break parallel builds) |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 1523 | --enable-m32 Compile/build with -m32 (default is no) |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 1524 | --enable-selftest Run extra tests with "make check" (may conflict with |
| 1525 | optimizations) (default is no) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1526 | |
| 1527 | Optional Packages: |
| 1528 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1529 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1530 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1531 | both] |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1532 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1533 | |
| 1534 | Some influential environment variables: |
| 1535 | CC C compiler command |
| 1536 | CFLAGS C compiler flags |
| 1537 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1538 | nonstandard directory <lib dir> |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 1539 | LIBS libraries to pass to the linker, e.g. -l<library> |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 1540 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1541 | you have headers in a nonstandard directory <include dir> |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1542 | CPP C preprocessor |
| 1543 | CXX C++ compiler command |
| 1544 | CXXFLAGS C++ compiler flags |
| 1545 | CXXCPP C++ preprocessor |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1546 | |
| 1547 | Use these variables to override the choices made by `configure' or to help |
| 1548 | it to find libraries and programs with nonstandard names/locations. |
| 1549 | |
| 1550 | Report bugs to <opensource@google.com>. |
| 1551 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1552 | ac_status=$? |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1553 | fi |
| 1554 | |
| 1555 | if test "$ac_init_help" = "recursive"; then |
| 1556 | # If there are subdirs, report their specific --help. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1557 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1558 | test -d "$ac_dir" || |
| 1559 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1560 | continue |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1561 | ac_builddir=. |
| 1562 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1563 | case "$ac_dir" in |
| 1564 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1565 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1566 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1567 | # A ".." for each directory in $ac_dir_suffix. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1568 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1569 | case $ac_top_builddir_sub in |
| 1570 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1571 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1572 | esac ;; |
| 1573 | esac |
| 1574 | ac_abs_top_builddir=$ac_pwd |
| 1575 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1576 | # for backward compatibility: |
| 1577 | ac_top_builddir=$ac_top_build_prefix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1578 | |
| 1579 | case $srcdir in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1580 | .) # We are building in place. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1581 | ac_srcdir=. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1582 | ac_top_srcdir=$ac_top_builddir_sub |
| 1583 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1584 | [\\/]* | ?:[\\/]* ) # Absolute name. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1585 | ac_srcdir=$srcdir$ac_dir_suffix; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1586 | ac_top_srcdir=$srcdir |
| 1587 | ac_abs_top_srcdir=$srcdir ;; |
| 1588 | *) # Relative name. |
| 1589 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1590 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1591 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1592 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1593 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1594 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1595 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1596 | # Check for guested configure. |
| 1597 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1598 | echo && |
| 1599 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1600 | elif test -f "$ac_srcdir/configure"; then |
| 1601 | echo && |
| 1602 | $SHELL "$ac_srcdir/configure" --help=recursive |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1603 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1604 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1605 | fi || ac_status=$? |
| 1606 | cd "$ac_pwd" || { ac_status=$?; break; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1607 | done |
| 1608 | fi |
| 1609 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1610 | test -n "$ac_init_help" && exit $ac_status |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1611 | if $ac_init_version; then |
| 1612 | cat <<\_ACEOF |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 1613 | breakpad configure 0.1 |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 1614 | generated by GNU Autoconf 2.65 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1615 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1616 | Copyright (C) 2009 Free Software Foundation, Inc. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1617 | This configure script is free software; the Free Software Foundation |
| 1618 | gives unlimited permission to copy, distribute and modify it. |
| 1619 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1620 | exit |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1621 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1622 | |
| 1623 | ## ------------------------ ## |
| 1624 | ## Autoconf initialization. ## |
| 1625 | ## ------------------------ ## |
| 1626 | |
| 1627 | # ac_fn_c_try_compile LINENO |
| 1628 | # -------------------------- |
| 1629 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1630 | ac_fn_c_try_compile () |
| 1631 | { |
| 1632 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1633 | rm -f conftest.$ac_objext |
| 1634 | if { { ac_try="$ac_compile" |
| 1635 | case "(($ac_try" in |
| 1636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1637 | *) ac_try_echo=$ac_try;; |
| 1638 | esac |
| 1639 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1640 | $as_echo "$ac_try_echo"; } >&5 |
| 1641 | (eval "$ac_compile") 2>conftest.err |
| 1642 | ac_status=$? |
| 1643 | if test -s conftest.err; then |
| 1644 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1645 | cat conftest.er1 >&5 |
| 1646 | mv -f conftest.er1 conftest.err |
| 1647 | fi |
| 1648 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1649 | test $ac_status = 0; } && { |
| 1650 | test -z "$ac_c_werror_flag" || |
| 1651 | test ! -s conftest.err |
| 1652 | } && test -s conftest.$ac_objext; then : |
| 1653 | ac_retval=0 |
| 1654 | else |
| 1655 | $as_echo "$as_me: failed program was:" >&5 |
| 1656 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1657 | |
| 1658 | ac_retval=1 |
| 1659 | fi |
| 1660 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 1661 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1662 | |
| 1663 | } # ac_fn_c_try_compile |
| 1664 | |
| 1665 | # ac_fn_c_try_cpp LINENO |
| 1666 | # ---------------------- |
| 1667 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1668 | ac_fn_c_try_cpp () |
| 1669 | { |
| 1670 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1671 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1672 | case "(($ac_try" in |
| 1673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1674 | *) ac_try_echo=$ac_try;; |
| 1675 | esac |
| 1676 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1677 | $as_echo "$ac_try_echo"; } >&5 |
| 1678 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1679 | ac_status=$? |
| 1680 | if test -s conftest.err; then |
| 1681 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1682 | cat conftest.er1 >&5 |
| 1683 | mv -f conftest.er1 conftest.err |
| 1684 | fi |
| 1685 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1686 | test $ac_status = 0; } >/dev/null && { |
| 1687 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1688 | test ! -s conftest.err |
| 1689 | }; then : |
| 1690 | ac_retval=0 |
| 1691 | else |
| 1692 | $as_echo "$as_me: failed program was:" >&5 |
| 1693 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1694 | |
| 1695 | ac_retval=1 |
| 1696 | fi |
| 1697 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 1698 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1699 | |
| 1700 | } # ac_fn_c_try_cpp |
| 1701 | |
| 1702 | # ac_fn_cxx_try_compile LINENO |
| 1703 | # ---------------------------- |
| 1704 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1705 | ac_fn_cxx_try_compile () |
| 1706 | { |
| 1707 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1708 | rm -f conftest.$ac_objext |
| 1709 | if { { ac_try="$ac_compile" |
| 1710 | case "(($ac_try" in |
| 1711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1712 | *) ac_try_echo=$ac_try;; |
| 1713 | esac |
| 1714 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1715 | $as_echo "$ac_try_echo"; } >&5 |
| 1716 | (eval "$ac_compile") 2>conftest.err |
| 1717 | ac_status=$? |
| 1718 | if test -s conftest.err; then |
| 1719 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1720 | cat conftest.er1 >&5 |
| 1721 | mv -f conftest.er1 conftest.err |
| 1722 | fi |
| 1723 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1724 | test $ac_status = 0; } && { |
| 1725 | test -z "$ac_cxx_werror_flag" || |
| 1726 | test ! -s conftest.err |
| 1727 | } && test -s conftest.$ac_objext; then : |
| 1728 | ac_retval=0 |
| 1729 | else |
| 1730 | $as_echo "$as_me: failed program was:" >&5 |
| 1731 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1732 | |
| 1733 | ac_retval=1 |
| 1734 | fi |
| 1735 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 1736 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1737 | |
| 1738 | } # ac_fn_cxx_try_compile |
| 1739 | |
| 1740 | # ac_fn_c_try_link LINENO |
| 1741 | # ----------------------- |
| 1742 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1743 | ac_fn_c_try_link () |
| 1744 | { |
| 1745 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1746 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1747 | if { { ac_try="$ac_link" |
| 1748 | case "(($ac_try" in |
| 1749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1750 | *) ac_try_echo=$ac_try;; |
| 1751 | esac |
| 1752 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1753 | $as_echo "$ac_try_echo"; } >&5 |
| 1754 | (eval "$ac_link") 2>conftest.err |
| 1755 | ac_status=$? |
| 1756 | if test -s conftest.err; then |
| 1757 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1758 | cat conftest.er1 >&5 |
| 1759 | mv -f conftest.er1 conftest.err |
| 1760 | fi |
| 1761 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1762 | test $ac_status = 0; } && { |
| 1763 | test -z "$ac_c_werror_flag" || |
| 1764 | test ! -s conftest.err |
| 1765 | } && test -s conftest$ac_exeext && { |
| 1766 | test "$cross_compiling" = yes || |
| 1767 | $as_test_x conftest$ac_exeext |
| 1768 | }; then : |
| 1769 | ac_retval=0 |
| 1770 | else |
| 1771 | $as_echo "$as_me: failed program was:" >&5 |
| 1772 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1773 | |
| 1774 | ac_retval=1 |
| 1775 | fi |
| 1776 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1777 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1778 | # interfere with the next link command; also delete a directory that is |
| 1779 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1780 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1781 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 1782 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1783 | |
| 1784 | } # ac_fn_c_try_link |
| 1785 | |
| 1786 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1787 | # ------------------------------------------------------- |
| 1788 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1789 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1790 | ac_fn_c_check_header_compile () |
| 1791 | { |
| 1792 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1794 | $as_echo_n "checking for $2... " >&6; } |
| 1795 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1796 | $as_echo_n "(cached) " >&6 |
| 1797 | else |
| 1798 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1799 | /* end confdefs.h. */ |
| 1800 | $4 |
| 1801 | #include <$2> |
| 1802 | _ACEOF |
| 1803 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1804 | eval "$3=yes" |
| 1805 | else |
| 1806 | eval "$3=no" |
| 1807 | fi |
| 1808 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1809 | fi |
| 1810 | eval ac_res=\$$3 |
| 1811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1812 | $as_echo "$ac_res" >&6; } |
| 1813 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1814 | |
| 1815 | } # ac_fn_c_check_header_compile |
| 1816 | |
| 1817 | # ac_fn_c_try_run LINENO |
| 1818 | # ---------------------- |
| 1819 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1820 | # that executables *can* be run. |
| 1821 | ac_fn_c_try_run () |
| 1822 | { |
| 1823 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1824 | if { { ac_try="$ac_link" |
| 1825 | case "(($ac_try" in |
| 1826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1827 | *) ac_try_echo=$ac_try;; |
| 1828 | esac |
| 1829 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1830 | $as_echo "$ac_try_echo"; } >&5 |
| 1831 | (eval "$ac_link") 2>&5 |
| 1832 | ac_status=$? |
| 1833 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1834 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1835 | { { case "(($ac_try" in |
| 1836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1837 | *) ac_try_echo=$ac_try;; |
| 1838 | esac |
| 1839 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1840 | $as_echo "$ac_try_echo"; } >&5 |
| 1841 | (eval "$ac_try") 2>&5 |
| 1842 | ac_status=$? |
| 1843 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1844 | test $ac_status = 0; }; }; then : |
| 1845 | ac_retval=0 |
| 1846 | else |
| 1847 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1848 | $as_echo "$as_me: failed program was:" >&5 |
| 1849 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1850 | |
| 1851 | ac_retval=$ac_status |
| 1852 | fi |
| 1853 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1854 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 1855 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1856 | |
| 1857 | } # ac_fn_c_try_run |
| 1858 | |
| 1859 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1860 | # ---------------------------------- |
| 1861 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1862 | ac_fn_c_check_func () |
| 1863 | { |
| 1864 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1866 | $as_echo_n "checking for $2... " >&6; } |
| 1867 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1868 | $as_echo_n "(cached) " >&6 |
| 1869 | else |
| 1870 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1871 | /* end confdefs.h. */ |
| 1872 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1873 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1874 | #define $2 innocuous_$2 |
| 1875 | |
| 1876 | /* System header to define __stub macros and hopefully few prototypes, |
| 1877 | which can conflict with char $2 (); below. |
| 1878 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1879 | <limits.h> exists even on freestanding compilers. */ |
| 1880 | |
| 1881 | #ifdef __STDC__ |
| 1882 | # include <limits.h> |
| 1883 | #else |
| 1884 | # include <assert.h> |
| 1885 | #endif |
| 1886 | |
| 1887 | #undef $2 |
| 1888 | |
| 1889 | /* Override any GCC internal prototype to avoid an error. |
| 1890 | Use char because int might match the return type of a GCC |
| 1891 | builtin and then its argument prototype would still apply. */ |
| 1892 | #ifdef __cplusplus |
| 1893 | extern "C" |
| 1894 | #endif |
| 1895 | char $2 (); |
| 1896 | /* The GNU C library defines this for functions which it implements |
| 1897 | to always fail with ENOSYS. Some functions are actually named |
| 1898 | something starting with __ and the normal name is an alias. */ |
| 1899 | #if defined __stub_$2 || defined __stub___$2 |
| 1900 | choke me |
| 1901 | #endif |
| 1902 | |
| 1903 | int |
| 1904 | main () |
| 1905 | { |
| 1906 | return $2 (); |
| 1907 | ; |
| 1908 | return 0; |
| 1909 | } |
| 1910 | _ACEOF |
| 1911 | if ac_fn_c_try_link "$LINENO"; then : |
| 1912 | eval "$3=yes" |
| 1913 | else |
| 1914 | eval "$3=no" |
| 1915 | fi |
| 1916 | rm -f core conftest.err conftest.$ac_objext \ |
| 1917 | conftest$ac_exeext conftest.$ac_ext |
| 1918 | fi |
| 1919 | eval ac_res=\$$3 |
| 1920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1921 | $as_echo "$ac_res" >&6; } |
| 1922 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1923 | |
| 1924 | } # ac_fn_c_check_func |
| 1925 | |
| 1926 | # ac_fn_cxx_try_cpp LINENO |
| 1927 | # ------------------------ |
| 1928 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1929 | ac_fn_cxx_try_cpp () |
| 1930 | { |
| 1931 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1932 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1933 | case "(($ac_try" in |
| 1934 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1935 | *) ac_try_echo=$ac_try;; |
| 1936 | esac |
| 1937 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1938 | $as_echo "$ac_try_echo"; } >&5 |
| 1939 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1940 | ac_status=$? |
| 1941 | if test -s conftest.err; then |
| 1942 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1943 | cat conftest.er1 >&5 |
| 1944 | mv -f conftest.er1 conftest.err |
| 1945 | fi |
| 1946 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1947 | test $ac_status = 0; } >/dev/null && { |
| 1948 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 1949 | test ! -s conftest.err |
| 1950 | }; then : |
| 1951 | ac_retval=0 |
| 1952 | else |
| 1953 | $as_echo "$as_me: failed program was:" >&5 |
| 1954 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1955 | |
| 1956 | ac_retval=1 |
| 1957 | fi |
| 1958 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 1959 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1960 | |
| 1961 | } # ac_fn_cxx_try_cpp |
| 1962 | |
| 1963 | # ac_fn_cxx_try_link LINENO |
| 1964 | # ------------------------- |
| 1965 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1966 | ac_fn_cxx_try_link () |
| 1967 | { |
| 1968 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1969 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1970 | if { { ac_try="$ac_link" |
| 1971 | case "(($ac_try" in |
| 1972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1973 | *) ac_try_echo=$ac_try;; |
| 1974 | esac |
| 1975 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1976 | $as_echo "$ac_try_echo"; } >&5 |
| 1977 | (eval "$ac_link") 2>conftest.err |
| 1978 | ac_status=$? |
| 1979 | if test -s conftest.err; then |
| 1980 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1981 | cat conftest.er1 >&5 |
| 1982 | mv -f conftest.er1 conftest.err |
| 1983 | fi |
| 1984 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1985 | test $ac_status = 0; } && { |
| 1986 | test -z "$ac_cxx_werror_flag" || |
| 1987 | test ! -s conftest.err |
| 1988 | } && test -s conftest$ac_exeext && { |
| 1989 | test "$cross_compiling" = yes || |
| 1990 | $as_test_x conftest$ac_exeext |
| 1991 | }; then : |
| 1992 | ac_retval=0 |
| 1993 | else |
| 1994 | $as_echo "$as_me: failed program was:" >&5 |
| 1995 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1996 | |
| 1997 | ac_retval=1 |
| 1998 | fi |
| 1999 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 2000 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 2001 | # interfere with the next link command; also delete a directory that is |
| 2002 | # left behind by Apple's compiler. We do this before executing the actions. |
| 2003 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 2004 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 2005 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2006 | |
| 2007 | } # ac_fn_cxx_try_link |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 2008 | |
| 2009 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2010 | # ---------------------------------------------------- |
| 2011 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 2012 | # INCLUDES, setting cache variable VAR accordingly. |
| 2013 | ac_fn_c_check_member () |
| 2014 | { |
| 2015 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2017 | $as_echo_n "checking for $2.$3... " >&6; } |
| 2018 | if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2019 | $as_echo_n "(cached) " >&6 |
| 2020 | else |
| 2021 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2022 | /* end confdefs.h. */ |
| 2023 | $5 |
| 2024 | int |
| 2025 | main () |
| 2026 | { |
| 2027 | static $2 ac_aggr; |
| 2028 | if (ac_aggr.$3) |
| 2029 | return 0; |
| 2030 | ; |
| 2031 | return 0; |
| 2032 | } |
| 2033 | _ACEOF |
| 2034 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2035 | eval "$4=yes" |
| 2036 | else |
| 2037 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2038 | /* end confdefs.h. */ |
| 2039 | $5 |
| 2040 | int |
| 2041 | main () |
| 2042 | { |
| 2043 | static $2 ac_aggr; |
| 2044 | if (sizeof ac_aggr.$3) |
| 2045 | return 0; |
| 2046 | ; |
| 2047 | return 0; |
| 2048 | } |
| 2049 | _ACEOF |
| 2050 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2051 | eval "$4=yes" |
| 2052 | else |
| 2053 | eval "$4=no" |
| 2054 | fi |
| 2055 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2056 | fi |
| 2057 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2058 | fi |
| 2059 | eval ac_res=\$$4 |
| 2060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2061 | $as_echo "$ac_res" >&6; } |
| 2062 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2063 | |
| 2064 | } # ac_fn_c_check_member |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2065 | cat >config.log <<_ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2066 | This file contains any messages produced by compilers while |
| 2067 | running configure, to aid debugging if configure makes a mistake. |
| 2068 | |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 2069 | It was created by breakpad $as_me 0.1, which was |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 2070 | generated by GNU Autoconf 2.65. Invocation command line was |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2071 | |
| 2072 | $ $0 $@ |
| 2073 | |
| 2074 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2075 | exec 5>>config.log |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2076 | { |
| 2077 | cat <<_ASUNAME |
| 2078 | ## --------- ## |
| 2079 | ## Platform. ## |
| 2080 | ## --------- ## |
| 2081 | |
| 2082 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2083 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2084 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2085 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2086 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2087 | |
| 2088 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2089 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2090 | |
| 2091 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2092 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2093 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2094 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2095 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2096 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2097 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2098 | |
| 2099 | _ASUNAME |
| 2100 | |
| 2101 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2102 | for as_dir in $PATH |
| 2103 | do |
| 2104 | IFS=$as_save_IFS |
| 2105 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2106 | $as_echo "PATH: $as_dir" |
| 2107 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2108 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2109 | |
| 2110 | } >&5 |
| 2111 | |
| 2112 | cat >&5 <<_ACEOF |
| 2113 | |
| 2114 | |
| 2115 | ## ----------- ## |
| 2116 | ## Core tests. ## |
| 2117 | ## ----------- ## |
| 2118 | |
| 2119 | _ACEOF |
| 2120 | |
| 2121 | |
| 2122 | # Keep a trace of the command line. |
| 2123 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 2124 | # Strip out --silent because we don't want to record it for future runs. |
| 2125 | # Also quote any args containing shell meta-characters. |
| 2126 | # Make two passes to allow for proper duplicate-argument suppression. |
| 2127 | ac_configure_args= |
| 2128 | ac_configure_args0= |
| 2129 | ac_configure_args1= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2130 | ac_must_keep_next=false |
| 2131 | for ac_pass in 1 2 |
| 2132 | do |
| 2133 | for ac_arg |
| 2134 | do |
| 2135 | case $ac_arg in |
| 2136 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2137 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2138 | | -silent | --silent | --silen | --sile | --sil) |
| 2139 | continue ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2140 | *\'*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2141 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2142 | esac |
| 2143 | case $ac_pass in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2144 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2145 | 2) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2146 | as_fn_append ac_configure_args1 " '$ac_arg'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2147 | if test $ac_must_keep_next = true; then |
| 2148 | ac_must_keep_next=false # Got value, back to normal. |
| 2149 | else |
| 2150 | case $ac_arg in |
| 2151 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2152 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2153 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2154 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2155 | case "$ac_configure_args0 " in |
| 2156 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2157 | esac |
| 2158 | ;; |
| 2159 | -* ) ac_must_keep_next=true ;; |
| 2160 | esac |
| 2161 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2162 | as_fn_append ac_configure_args " '$ac_arg'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2163 | ;; |
| 2164 | esac |
| 2165 | done |
| 2166 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2167 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2168 | { ac_configure_args1=; unset ac_configure_args1;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2169 | |
| 2170 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2171 | # config.log. We remove comments because anyway the quotes in there |
| 2172 | # would cause problems or look ugly. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2173 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2174 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2175 | trap 'exit_status=$? |
| 2176 | # Save into config.log some information that might help in debugging. |
| 2177 | { |
| 2178 | echo |
| 2179 | |
| 2180 | cat <<\_ASBOX |
| 2181 | ## ---------------- ## |
| 2182 | ## Cache variables. ## |
| 2183 | ## ---------------- ## |
| 2184 | _ASBOX |
| 2185 | echo |
| 2186 | # The following way of writing the cache mishandles newlines in values, |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2187 | ( |
| 2188 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2189 | eval ac_val=\$$ac_var |
| 2190 | case $ac_val in #( |
| 2191 | *${as_nl}*) |
| 2192 | case $ac_var in #( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2193 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2194 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2195 | esac |
| 2196 | case $ac_var in #( |
| 2197 | _ | IFS | as_nl) ;; #( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2198 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2199 | *) { eval $ac_var=; unset $ac_var;} ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2200 | esac ;; |
| 2201 | esac |
| 2202 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2203 | (set) 2>&1 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2204 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2205 | *${as_nl}ac_space=\ *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2206 | sed -n \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2207 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2208 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2209 | ;; #( |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2210 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2211 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2212 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2213 | esac | |
| 2214 | sort |
| 2215 | ) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2216 | echo |
| 2217 | |
| 2218 | cat <<\_ASBOX |
| 2219 | ## ----------------- ## |
| 2220 | ## Output variables. ## |
| 2221 | ## ----------------- ## |
| 2222 | _ASBOX |
| 2223 | echo |
| 2224 | for ac_var in $ac_subst_vars |
| 2225 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2226 | eval ac_val=\$$ac_var |
| 2227 | case $ac_val in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2228 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2229 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2230 | $as_echo "$ac_var='\''$ac_val'\''" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2231 | done | sort |
| 2232 | echo |
| 2233 | |
| 2234 | if test -n "$ac_subst_files"; then |
| 2235 | cat <<\_ASBOX |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2236 | ## ------------------- ## |
| 2237 | ## File substitutions. ## |
| 2238 | ## ------------------- ## |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2239 | _ASBOX |
| 2240 | echo |
| 2241 | for ac_var in $ac_subst_files |
| 2242 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2243 | eval ac_val=\$$ac_var |
| 2244 | case $ac_val in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2245 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2246 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2247 | $as_echo "$ac_var='\''$ac_val'\''" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2248 | done | sort |
| 2249 | echo |
| 2250 | fi |
| 2251 | |
| 2252 | if test -s confdefs.h; then |
| 2253 | cat <<\_ASBOX |
| 2254 | ## ----------- ## |
| 2255 | ## confdefs.h. ## |
| 2256 | ## ----------- ## |
| 2257 | _ASBOX |
| 2258 | echo |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2259 | cat confdefs.h |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2260 | echo |
| 2261 | fi |
| 2262 | test "$ac_signal" != 0 && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2263 | $as_echo "$as_me: caught signal $ac_signal" |
| 2264 | $as_echo "$as_me: exit $exit_status" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2265 | } >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2266 | rm -f core *.core core.conftest.* && |
| 2267 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2268 | exit $exit_status |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2269 | ' 0 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2270 | for ac_signal in 1 2 13 15; do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2271 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2272 | done |
| 2273 | ac_signal=0 |
| 2274 | |
| 2275 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2276 | rm -f -r conftest* confdefs.h |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2277 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2278 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2279 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2280 | # Predefined preprocessor variables. |
| 2281 | |
| 2282 | cat >>confdefs.h <<_ACEOF |
| 2283 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2284 | _ACEOF |
| 2285 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2286 | cat >>confdefs.h <<_ACEOF |
| 2287 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2288 | _ACEOF |
| 2289 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2290 | cat >>confdefs.h <<_ACEOF |
| 2291 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2292 | _ACEOF |
| 2293 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2294 | cat >>confdefs.h <<_ACEOF |
| 2295 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2296 | _ACEOF |
| 2297 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2298 | cat >>confdefs.h <<_ACEOF |
| 2299 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2300 | _ACEOF |
| 2301 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2302 | cat >>confdefs.h <<_ACEOF |
| 2303 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2304 | _ACEOF |
| 2305 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2306 | |
| 2307 | # Let the site file select an alternate cache file if it wants to. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2308 | # Prefer an explicitly selected file to automatically selected ones. |
| 2309 | ac_site_file1=NONE |
| 2310 | ac_site_file2=NONE |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2311 | if test -n "$CONFIG_SITE"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2312 | ac_site_file1=$CONFIG_SITE |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2313 | elif test "x$prefix" != xNONE; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2314 | ac_site_file1=$prefix/share/config.site |
| 2315 | ac_site_file2=$prefix/etc/config.site |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2316 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2317 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2318 | ac_site_file2=$ac_default_prefix/etc/config.site |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2319 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2320 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2321 | do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2322 | test "x$ac_site_file" = xNONE && continue |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 2323 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2324 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2325 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2326 | sed 's/^/| /' "$ac_site_file" >&5 |
| 2327 | . "$ac_site_file" |
| 2328 | fi |
| 2329 | done |
| 2330 | |
| 2331 | if test -r "$cache_file"; then |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 2332 | # Some versions of bash will fail to source /dev/null (special files |
| 2333 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2334 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2335 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2336 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2337 | case $cache_file in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2338 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2339 | *) . "./$cache_file";; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2340 | esac |
| 2341 | fi |
| 2342 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2343 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2344 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2345 | >$cache_file |
| 2346 | fi |
| 2347 | |
| 2348 | # Check that the precious variables saved in the cache have kept the same |
| 2349 | # value. |
| 2350 | ac_cache_corrupted=false |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2351 | for ac_var in $ac_precious_vars; do |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2352 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2353 | eval ac_new_set=\$ac_env_${ac_var}_set |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2354 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2355 | eval ac_new_val=\$ac_env_${ac_var}_value |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2356 | case $ac_old_set,$ac_new_set in |
| 2357 | set,) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2358 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2359 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2360 | ac_cache_corrupted=: ;; |
| 2361 | ,set) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2362 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2363 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2364 | ac_cache_corrupted=: ;; |
| 2365 | ,);; |
| 2366 | *) |
| 2367 | if test "x$ac_old_val" != "x$ac_new_val"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2368 | # differences in whitespace do not lead to failure. |
| 2369 | ac_old_val_w=`echo x $ac_old_val` |
| 2370 | ac_new_val_w=`echo x $ac_new_val` |
| 2371 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2372 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2373 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2374 | ac_cache_corrupted=: |
| 2375 | else |
| 2376 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2377 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2378 | eval $ac_var=\$ac_old_val |
| 2379 | fi |
| 2380 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2381 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2382 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2383 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2384 | fi;; |
| 2385 | esac |
| 2386 | # Pass precious variables to config.status. |
| 2387 | if test "$ac_new_set" = set; then |
| 2388 | case $ac_new_val in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2389 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2390 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2391 | esac |
| 2392 | case " $ac_configure_args " in |
| 2393 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2394 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2395 | esac |
| 2396 | fi |
| 2397 | done |
| 2398 | if $ac_cache_corrupted; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2399 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2400 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2401 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2402 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2403 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2404 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2405 | ## -------------------- ## |
| 2406 | ## Main body of script. ## |
| 2407 | ## -------------------- ## |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2408 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2409 | ac_ext=c |
| 2410 | ac_cpp='$CPP $CPPFLAGS' |
| 2411 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2412 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2413 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2414 | |
| 2415 | |
| 2416 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2417 | ac_aux_dir= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2418 | for ac_dir in autotools "$srcdir"/autotools; do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2419 | for ac_t in install-sh install.sh shtool; do |
| 2420 | if test -f "$ac_dir/$ac_t"; then |
| 2421 | ac_aux_dir=$ac_dir |
| 2422 | ac_install_sh="$ac_aux_dir/$ac_t -c" |
| 2423 | break 2 |
| 2424 | fi |
| 2425 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2426 | done |
| 2427 | if test -z "$ac_aux_dir"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2428 | as_fn_error "cannot find install-sh, install.sh, or shtool in autotools \"$srcdir\"/autotools" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2429 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2430 | |
| 2431 | # These three variables are undocumented and unsupported, |
| 2432 | # and are intended to be withdrawn in a future Autoconf release. |
| 2433 | # They can cause serious problems if a builder's source tree is in a directory |
| 2434 | # whose full name contains unusual characters. |
| 2435 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2436 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2437 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2438 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2439 | |
mmentovai | 425d256 | 2006-08-30 20:05:05 +0000 | [diff] [blame] | 2440 | |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 2441 | # Make sure we can run config.sub. |
| 2442 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 2443 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
| 2444 | |
| 2445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 2446 | $as_echo_n "checking build system type... " >&6; } |
| 2447 | if test "${ac_cv_build+set}" = set; then : |
| 2448 | $as_echo_n "(cached) " >&6 |
| 2449 | else |
| 2450 | ac_build_alias=$build_alias |
| 2451 | test "x$ac_build_alias" = x && |
| 2452 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2453 | test "x$ac_build_alias" = x && |
| 2454 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 |
| 2455 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 2456 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
| 2457 | |
| 2458 | fi |
| 2459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 2460 | $as_echo "$ac_cv_build" >&6; } |
| 2461 | case $ac_cv_build in |
| 2462 | *-*-*) ;; |
| 2463 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; |
| 2464 | esac |
| 2465 | build=$ac_cv_build |
| 2466 | ac_save_IFS=$IFS; IFS='-' |
| 2467 | set x $ac_cv_build |
| 2468 | shift |
| 2469 | build_cpu=$1 |
| 2470 | build_vendor=$2 |
| 2471 | shift; shift |
| 2472 | # Remember, the first character of IFS is used to create $*, |
| 2473 | # except with old shells: |
| 2474 | build_os=$* |
| 2475 | IFS=$ac_save_IFS |
| 2476 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 2477 | |
| 2478 | |
| 2479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 2480 | $as_echo_n "checking host system type... " >&6; } |
| 2481 | if test "${ac_cv_host+set}" = set; then : |
| 2482 | $as_echo_n "(cached) " >&6 |
| 2483 | else |
| 2484 | if test "x$host_alias" = x; then |
| 2485 | ac_cv_host=$ac_cv_build |
| 2486 | else |
| 2487 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 2488 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
| 2489 | fi |
| 2490 | |
| 2491 | fi |
| 2492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 2493 | $as_echo "$ac_cv_host" >&6; } |
| 2494 | case $ac_cv_host in |
| 2495 | *-*-*) ;; |
| 2496 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; |
| 2497 | esac |
| 2498 | host=$ac_cv_host |
| 2499 | ac_save_IFS=$IFS; IFS='-' |
| 2500 | set x $ac_cv_host |
| 2501 | shift |
| 2502 | host_cpu=$1 |
| 2503 | host_vendor=$2 |
| 2504 | shift; shift |
| 2505 | # Remember, the first character of IFS is used to create $*, |
| 2506 | # except with old shells: |
| 2507 | host_os=$* |
| 2508 | IFS=$ac_save_IFS |
| 2509 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 2510 | |
| 2511 | |
| 2512 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2513 | am__api_version='1.11' |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2514 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2515 | # Find a good install program. We prefer a C program (faster), |
| 2516 | # so one script is as good as another. But avoid the broken or |
| 2517 | # incompatible versions: |
| 2518 | # SysV /etc/install, /usr/sbin/install |
| 2519 | # SunOS /usr/etc/install |
| 2520 | # IRIX /sbin/install |
| 2521 | # AIX /bin/install |
| 2522 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 2523 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 2524 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 2525 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 2526 | # OS/2's system install, which has a completely different semantic |
| 2527 | # ./install, which can be erroneously created by make from ./install.sh. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2528 | # Reject install programs that cannot install multiple files. |
| 2529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 2530 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2531 | if test -z "$INSTALL"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2532 | if test "${ac_cv_path_install+set}" = set; then : |
| 2533 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2534 | else |
| 2535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2536 | for as_dir in $PATH |
| 2537 | do |
| 2538 | IFS=$as_save_IFS |
| 2539 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2540 | # Account for people who put trailing slashes in PATH elements. |
| 2541 | case $as_dir/ in #(( |
| 2542 | ./ | .// | /[cC]/* | \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2543 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2544 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2545 | /usr/ucb/* ) ;; |
| 2546 | *) |
| 2547 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 2548 | # Don't use installbsd from OSF since it installs stuff as root |
| 2549 | # by default. |
| 2550 | for ac_prog in ginstall scoinst install; do |
| 2551 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2552 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2553 | if test $ac_prog = install && |
| 2554 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2555 | # AIX install. It has an incompatible calling convention. |
| 2556 | : |
| 2557 | elif test $ac_prog = install && |
| 2558 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2559 | # program-specific install script used by HP pwplus--don't use. |
| 2560 | : |
| 2561 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2562 | rm -rf conftest.one conftest.two conftest.dir |
| 2563 | echo one > conftest.one |
| 2564 | echo two > conftest.two |
| 2565 | mkdir conftest.dir |
| 2566 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 2567 | test -s conftest.one && test -s conftest.two && |
| 2568 | test -s conftest.dir/conftest.one && |
| 2569 | test -s conftest.dir/conftest.two |
| 2570 | then |
| 2571 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 2572 | break 3 |
| 2573 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2574 | fi |
| 2575 | fi |
| 2576 | done |
| 2577 | done |
| 2578 | ;; |
| 2579 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2580 | |
| 2581 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2582 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2583 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2584 | rm -rf conftest.one conftest.two conftest.dir |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2585 | |
| 2586 | fi |
| 2587 | if test "${ac_cv_path_install+set}" = set; then |
| 2588 | INSTALL=$ac_cv_path_install |
| 2589 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2590 | # As a last resort, use the slow shell script. Don't cache a |
| 2591 | # value for INSTALL within a source directory, because that will |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2592 | # break other packages using the cache if that directory is |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2593 | # removed, or if the value is a relative name. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2594 | INSTALL=$ac_install_sh |
| 2595 | fi |
| 2596 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 2598 | $as_echo "$INSTALL" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2599 | |
| 2600 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2601 | # It thinks the first close brace ends the variable substitution. |
| 2602 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2603 | |
| 2604 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 2605 | |
| 2606 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2607 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
| 2609 | $as_echo_n "checking whether build environment is sane... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2610 | # Just in case |
| 2611 | sleep 1 |
| 2612 | echo timestamp > conftest.file |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2613 | # Reject unsafe characters in $srcdir or the absolute working directory |
| 2614 | # name. Accept space and tab only in the latter. |
| 2615 | am_lf=' |
| 2616 | ' |
| 2617 | case `pwd` in |
| 2618 | *[\\\"\#\$\&\'\`$am_lf]*) |
| 2619 | as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; |
| 2620 | esac |
| 2621 | case $srcdir in |
| 2622 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
| 2623 | as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; |
| 2624 | esac |
| 2625 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2626 | # Do `set' in a subshell so we don't clobber the current shell's |
| 2627 | # arguments. Must try -L first in case configure is actually a |
| 2628 | # symlink; some systems play weird games with the mod time of symlinks |
| 2629 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 2630 | # directory). |
| 2631 | if ( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2632 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2633 | if test "$*" = "X"; then |
| 2634 | # -L didn't work. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2635 | set X `ls -t "$srcdir/configure" conftest.file` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2636 | fi |
| 2637 | rm -f conftest.file |
| 2638 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 2639 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 2640 | |
| 2641 | # If neither matched, then we have a broken ls. This can happen |
| 2642 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 2643 | # broken ls alias from the environment. This has actually |
| 2644 | # happened. Such a system could not be considered "sane". |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2645 | as_fn_error "ls -t appears to fail. Make sure there is not a broken |
| 2646 | alias in your environment" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2647 | fi |
| 2648 | |
| 2649 | test "$2" = conftest.file |
| 2650 | ) |
| 2651 | then |
| 2652 | # Ok. |
| 2653 | : |
| 2654 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2655 | as_fn_error "newly created file is older than distributed files! |
| 2656 | Check your system clock" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2657 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2659 | $as_echo "yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2660 | test "$program_prefix" != NONE && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2661 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2662 | # Use a double $ so make ignores it. |
| 2663 | test "$program_suffix" != NONE && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2664 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2665 | # Double any \ or $. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2666 | # By default was `s,x,x', remove it if useless. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2667 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 2668 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2669 | |
| 2670 | # expand $ac_aux_dir to an absolute path |
| 2671 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 2672 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2673 | if test x"${MISSING+set}" != xset; then |
| 2674 | case $am_aux_dir in |
| 2675 | *\ * | *\ *) |
| 2676 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
| 2677 | *) |
| 2678 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
| 2679 | esac |
| 2680 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2681 | # Use eval to expand $SHELL |
| 2682 | if eval "$MISSING --run true"; then |
| 2683 | am_missing_run="$MISSING --run " |
| 2684 | else |
| 2685 | am_missing_run= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2686 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
| 2687 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2688 | fi |
| 2689 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2690 | if test x"${install_sh}" != xset; then |
| 2691 | case $am_aux_dir in |
| 2692 | *\ * | *\ *) |
| 2693 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 2694 | *) |
| 2695 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 2696 | esac |
| 2697 | fi |
| 2698 | |
| 2699 | # Installed binaries are usually stripped using `strip' when the user |
| 2700 | # run `make install-strip'. However `strip' might not be the right |
| 2701 | # tool to use in cross-compilation environments, therefore Automake |
| 2702 | # will honor the `STRIP' environment variable to overrule this program. |
| 2703 | if test "$cross_compiling" != no; then |
| 2704 | if test -n "$ac_tool_prefix"; then |
| 2705 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 2706 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 2707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2708 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2709 | if test "${ac_cv_prog_STRIP+set}" = set; then : |
| 2710 | $as_echo_n "(cached) " >&6 |
| 2711 | else |
| 2712 | if test -n "$STRIP"; then |
| 2713 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2714 | else |
| 2715 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2716 | for as_dir in $PATH |
| 2717 | do |
| 2718 | IFS=$as_save_IFS |
| 2719 | test -z "$as_dir" && as_dir=. |
| 2720 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2721 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2722 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 2723 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2724 | break 2 |
| 2725 | fi |
| 2726 | done |
| 2727 | done |
| 2728 | IFS=$as_save_IFS |
| 2729 | |
| 2730 | fi |
| 2731 | fi |
| 2732 | STRIP=$ac_cv_prog_STRIP |
| 2733 | if test -n "$STRIP"; then |
| 2734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 2735 | $as_echo "$STRIP" >&6; } |
| 2736 | else |
| 2737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2738 | $as_echo "no" >&6; } |
| 2739 | fi |
| 2740 | |
| 2741 | |
| 2742 | fi |
| 2743 | if test -z "$ac_cv_prog_STRIP"; then |
| 2744 | ac_ct_STRIP=$STRIP |
| 2745 | # Extract the first word of "strip", so it can be a program name with args. |
| 2746 | set dummy strip; ac_word=$2 |
| 2747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2748 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2749 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : |
| 2750 | $as_echo_n "(cached) " >&6 |
| 2751 | else |
| 2752 | if test -n "$ac_ct_STRIP"; then |
| 2753 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 2754 | else |
| 2755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2756 | for as_dir in $PATH |
| 2757 | do |
| 2758 | IFS=$as_save_IFS |
| 2759 | test -z "$as_dir" && as_dir=. |
| 2760 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2761 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2762 | ac_cv_prog_ac_ct_STRIP="strip" |
| 2763 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2764 | break 2 |
| 2765 | fi |
| 2766 | done |
| 2767 | done |
| 2768 | IFS=$as_save_IFS |
| 2769 | |
| 2770 | fi |
| 2771 | fi |
| 2772 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 2773 | if test -n "$ac_ct_STRIP"; then |
| 2774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 2775 | $as_echo "$ac_ct_STRIP" >&6; } |
| 2776 | else |
| 2777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2778 | $as_echo "no" >&6; } |
| 2779 | fi |
| 2780 | |
| 2781 | if test "x$ac_ct_STRIP" = x; then |
| 2782 | STRIP=":" |
| 2783 | else |
| 2784 | case $cross_compiling:$ac_tool_warned in |
| 2785 | yes:) |
| 2786 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2787 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2788 | ac_tool_warned=yes ;; |
| 2789 | esac |
| 2790 | STRIP=$ac_ct_STRIP |
| 2791 | fi |
| 2792 | else |
| 2793 | STRIP="$ac_cv_prog_STRIP" |
| 2794 | fi |
| 2795 | |
| 2796 | fi |
| 2797 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 2798 | |
| 2799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
| 2800 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2801 | if test -z "$MKDIR_P"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2802 | if test "${ac_cv_path_mkdir+set}" = set; then : |
| 2803 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2804 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2806 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 2807 | do |
| 2808 | IFS=$as_save_IFS |
| 2809 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2810 | for ac_prog in mkdir gmkdir; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2811 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2812 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
| 2813 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 2814 | 'mkdir (GNU coreutils) '* | \ |
| 2815 | 'mkdir (coreutils) '* | \ |
| 2816 | 'mkdir (fileutils) '4.1*) |
| 2817 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 2818 | break 3;; |
| 2819 | esac |
| 2820 | done |
| 2821 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2822 | done |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2823 | IFS=$as_save_IFS |
| 2824 | |
| 2825 | fi |
| 2826 | |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 2827 | test -d ./--version && rmdir ./--version |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2828 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 2829 | MKDIR_P="$ac_cv_path_mkdir -p" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2830 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2831 | # As a last resort, use the slow shell script. Don't cache a |
| 2832 | # value for MKDIR_P within a source directory, because that will |
| 2833 | # break other packages using the cache if that directory is |
| 2834 | # removed, or if the value is a relative name. |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2835 | MKDIR_P="$ac_install_sh -d" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2836 | fi |
| 2837 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 2839 | $as_echo "$MKDIR_P" >&6; } |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2840 | |
| 2841 | mkdir_p="$MKDIR_P" |
| 2842 | case $mkdir_p in |
| 2843 | [\\/$]* | ?:[\\/]*) ;; |
| 2844 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
| 2845 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2846 | |
| 2847 | for ac_prog in gawk mawk nawk awk |
| 2848 | do |
| 2849 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2850 | set dummy $ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2852 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2853 | if test "${ac_cv_prog_AWK+set}" = set; then : |
| 2854 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2855 | else |
| 2856 | if test -n "$AWK"; then |
| 2857 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 2858 | else |
| 2859 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2860 | for as_dir in $PATH |
| 2861 | do |
| 2862 | IFS=$as_save_IFS |
| 2863 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2864 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2865 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2866 | ac_cv_prog_AWK="$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2867 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2868 | break 2 |
| 2869 | fi |
| 2870 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2871 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2872 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2873 | |
| 2874 | fi |
| 2875 | fi |
| 2876 | AWK=$ac_cv_prog_AWK |
| 2877 | if test -n "$AWK"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 2879 | $as_echo "$AWK" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2880 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2882 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2883 | fi |
| 2884 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2885 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2886 | test -n "$AWK" && break |
| 2887 | done |
| 2888 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 2890 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 2891 | set x ${MAKE-make} |
| 2892 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 2893 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2894 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2895 | else |
| 2896 | cat >conftest.make <<\_ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2897 | SHELL = /bin/sh |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2898 | all: |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2899 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2900 | _ACEOF |
| 2901 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2902 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 2903 | *@@@%%%=?*=@@@%%%*) |
| 2904 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 2905 | *) |
| 2906 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 2907 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2908 | rm -f conftest.make |
| 2909 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2910 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2912 | $as_echo "yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2913 | SET_MAKE= |
| 2914 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2916 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2917 | SET_MAKE="MAKE=${MAKE-make}" |
| 2918 | fi |
| 2919 | |
| 2920 | rm -rf .tst 2>/dev/null |
| 2921 | mkdir .tst 2>/dev/null |
| 2922 | if test -d .tst; then |
| 2923 | am__leading_dot=. |
| 2924 | else |
| 2925 | am__leading_dot=_ |
| 2926 | fi |
| 2927 | rmdir .tst 2>/dev/null |
| 2928 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2929 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 2930 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 2931 | # is not polluted with repeated "-I." |
| 2932 | am__isrc=' -I$(srcdir)' |
| 2933 | # test to see if srcdir already configured |
| 2934 | if test -f $srcdir/config.status; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2935 | as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2936 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2937 | fi |
| 2938 | |
| 2939 | # test whether we have cygpath |
| 2940 | if test -z "$CYGPATH_W"; then |
| 2941 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 2942 | CYGPATH_W='cygpath -w' |
| 2943 | else |
| 2944 | CYGPATH_W=echo |
| 2945 | fi |
| 2946 | fi |
| 2947 | |
| 2948 | |
| 2949 | # Define the identity of the package. |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 2950 | PACKAGE='breakpad' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2951 | VERSION='0.1' |
| 2952 | |
| 2953 | |
| 2954 | cat >>confdefs.h <<_ACEOF |
| 2955 | #define PACKAGE "$PACKAGE" |
| 2956 | _ACEOF |
| 2957 | |
| 2958 | |
| 2959 | cat >>confdefs.h <<_ACEOF |
| 2960 | #define VERSION "$VERSION" |
| 2961 | _ACEOF |
| 2962 | |
| 2963 | # Some tools Automake needs. |
| 2964 | |
| 2965 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 2966 | |
| 2967 | |
| 2968 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 2969 | |
| 2970 | |
| 2971 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 2972 | |
| 2973 | |
| 2974 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 2975 | |
| 2976 | |
| 2977 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 2978 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2979 | # We need awk for the "check" target. The system "awk" is bad on |
| 2980 | # some platforms. |
| 2981 | # Always define AMTAR for backward compatibility. |
| 2982 | |
| 2983 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 2984 | |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 2985 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 |
| 2987 | $as_echo_n "checking how to create a ustar tar archive... " >&6; } |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 2988 | # Loop over all known methods to create a tar archive until one works. |
| 2989 | _am_tools='gnutar plaintar pax cpio none' |
| 2990 | _am_tools=${am_cv_prog_tar_ustar-$_am_tools} |
| 2991 | # Do not fold the above two line into one, because Tru64 sh and |
| 2992 | # Solaris sh will not grok spaces in the rhs of `-'. |
| 2993 | for _am_tool in $_am_tools |
| 2994 | do |
| 2995 | case $_am_tool in |
| 2996 | gnutar) |
| 2997 | for _am_tar in tar gnutar gtar; |
| 2998 | do |
| 2999 | { echo "$as_me:$LINENO: $_am_tar --version" >&5 |
| 3000 | ($_am_tar --version) >&5 2>&5 |
| 3001 | ac_status=$? |
| 3002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3003 | (exit $ac_status); } && break |
| 3004 | done |
| 3005 | am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' |
| 3006 | am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' |
| 3007 | am__untar="$_am_tar -xf -" |
| 3008 | ;; |
| 3009 | plaintar) |
| 3010 | # Must skip GNU tar: if it does not support --format= it doesn't create |
| 3011 | # ustar tarball either. |
| 3012 | (tar --version) >/dev/null 2>&1 && continue |
| 3013 | am__tar='tar chf - "$$tardir"' |
| 3014 | am__tar_='tar chf - "$tardir"' |
| 3015 | am__untar='tar xf -' |
| 3016 | ;; |
| 3017 | pax) |
| 3018 | am__tar='pax -L -x ustar -w "$$tardir"' |
| 3019 | am__tar_='pax -L -x ustar -w "$tardir"' |
| 3020 | am__untar='pax -r' |
| 3021 | ;; |
| 3022 | cpio) |
| 3023 | am__tar='find "$$tardir" -print | cpio -o -H ustar -L' |
| 3024 | am__tar_='find "$tardir" -print | cpio -o -H ustar -L' |
| 3025 | am__untar='cpio -i -H ustar -d' |
| 3026 | ;; |
| 3027 | none) |
| 3028 | am__tar=false |
| 3029 | am__tar_=false |
| 3030 | am__untar=false |
| 3031 | ;; |
| 3032 | esac |
| 3033 | |
| 3034 | # If the value was cached, stop now. We just wanted to have am__tar |
| 3035 | # and am__untar set. |
| 3036 | test -n "${am_cv_prog_tar_ustar}" && break |
| 3037 | |
| 3038 | # tar/untar a dummy directory, and stop if the command works |
| 3039 | rm -rf conftest.dir |
| 3040 | mkdir conftest.dir |
| 3041 | echo GrepMe > conftest.dir/file |
| 3042 | { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 |
| 3043 | (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 |
| 3044 | ac_status=$? |
| 3045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3046 | (exit $ac_status); } |
| 3047 | rm -rf conftest.dir |
| 3048 | if test -s conftest.tar; then |
| 3049 | { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 |
| 3050 | ($am__untar <conftest.tar) >&5 2>&5 |
| 3051 | ac_status=$? |
| 3052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3053 | (exit $ac_status); } |
| 3054 | grep GrepMe conftest.dir/file >/dev/null 2>&1 && break |
| 3055 | fi |
| 3056 | done |
| 3057 | rm -rf conftest.dir |
| 3058 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3059 | if test "${am_cv_prog_tar_ustar+set}" = set; then : |
| 3060 | $as_echo_n "(cached) " >&6 |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 3061 | else |
| 3062 | am_cv_prog_tar_ustar=$_am_tool |
| 3063 | fi |
| 3064 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 |
| 3066 | $as_echo "$am_cv_prog_tar_ustar" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3067 | |
| 3068 | |
| 3069 | |
| 3070 | |
| 3071 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3072 | ac_config_headers="$ac_config_headers src/config.h" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3073 | |
| 3074 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3075 | ac_ext=c |
| 3076 | ac_cpp='$CPP $CPPFLAGS' |
| 3077 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3078 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3079 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3080 | if test -n "$ac_tool_prefix"; then |
| 3081 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3082 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3084 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3085 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 3086 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3087 | else |
| 3088 | if test -n "$CC"; then |
| 3089 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3090 | else |
| 3091 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3092 | for as_dir in $PATH |
| 3093 | do |
| 3094 | IFS=$as_save_IFS |
| 3095 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3096 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3097 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3098 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3099 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3100 | break 2 |
| 3101 | fi |
| 3102 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3103 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3104 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3105 | |
| 3106 | fi |
| 3107 | fi |
| 3108 | CC=$ac_cv_prog_CC |
| 3109 | if test -n "$CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3111 | $as_echo "$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3112 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3114 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3115 | fi |
| 3116 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3117 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3118 | fi |
| 3119 | if test -z "$ac_cv_prog_CC"; then |
| 3120 | ac_ct_CC=$CC |
| 3121 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3122 | set dummy gcc; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3124 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3125 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 3126 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3127 | else |
| 3128 | if test -n "$ac_ct_CC"; then |
| 3129 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3130 | else |
| 3131 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3132 | for as_dir in $PATH |
| 3133 | do |
| 3134 | IFS=$as_save_IFS |
| 3135 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3136 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3137 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3138 | ac_cv_prog_ac_ct_CC="gcc" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3139 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3140 | break 2 |
| 3141 | fi |
| 3142 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3143 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3144 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3145 | |
| 3146 | fi |
| 3147 | fi |
| 3148 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3149 | if test -n "$ac_ct_CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3151 | $as_echo "$ac_ct_CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3152 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3154 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3155 | fi |
| 3156 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3157 | if test "x$ac_ct_CC" = x; then |
| 3158 | CC="" |
| 3159 | else |
| 3160 | case $cross_compiling:$ac_tool_warned in |
| 3161 | yes:) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3162 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3163 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3164 | ac_tool_warned=yes ;; |
| 3165 | esac |
| 3166 | CC=$ac_ct_CC |
| 3167 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3168 | else |
| 3169 | CC="$ac_cv_prog_CC" |
| 3170 | fi |
| 3171 | |
| 3172 | if test -z "$CC"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3173 | if test -n "$ac_tool_prefix"; then |
| 3174 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3175 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3177 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3178 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 3179 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3180 | else |
| 3181 | if test -n "$CC"; then |
| 3182 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3183 | else |
| 3184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3185 | for as_dir in $PATH |
| 3186 | do |
| 3187 | IFS=$as_save_IFS |
| 3188 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3189 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3190 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3191 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3192 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3193 | break 2 |
| 3194 | fi |
| 3195 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3196 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3197 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3198 | |
| 3199 | fi |
| 3200 | fi |
| 3201 | CC=$ac_cv_prog_CC |
| 3202 | if test -n "$CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3204 | $as_echo "$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3205 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3207 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3208 | fi |
| 3209 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3210 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3211 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3212 | fi |
| 3213 | if test -z "$CC"; then |
| 3214 | # Extract the first word of "cc", so it can be a program name with args. |
| 3215 | set dummy cc; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3217 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3218 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 3219 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3220 | else |
| 3221 | if test -n "$CC"; then |
| 3222 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3223 | else |
| 3224 | ac_prog_rejected=no |
| 3225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3226 | for as_dir in $PATH |
| 3227 | do |
| 3228 | IFS=$as_save_IFS |
| 3229 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3230 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3231 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3232 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3233 | ac_prog_rejected=yes |
| 3234 | continue |
| 3235 | fi |
| 3236 | ac_cv_prog_CC="cc" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3237 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3238 | break 2 |
| 3239 | fi |
| 3240 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3241 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3242 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3243 | |
| 3244 | if test $ac_prog_rejected = yes; then |
| 3245 | # We found a bogon in the path, so make sure we never use it. |
| 3246 | set dummy $ac_cv_prog_CC |
| 3247 | shift |
| 3248 | if test $# != 0; then |
| 3249 | # We chose a different compiler from the bogus one. |
| 3250 | # However, it has the same basename, so the bogon will be chosen |
| 3251 | # first if we set CC to just the basename; use the full file name. |
| 3252 | shift |
| 3253 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 3254 | fi |
| 3255 | fi |
| 3256 | fi |
| 3257 | fi |
| 3258 | CC=$ac_cv_prog_CC |
| 3259 | if test -n "$CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3261 | $as_echo "$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3262 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3264 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3265 | fi |
| 3266 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3267 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3268 | fi |
| 3269 | if test -z "$CC"; then |
| 3270 | if test -n "$ac_tool_prefix"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3271 | for ac_prog in cl.exe |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3272 | do |
| 3273 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3274 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3276 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3277 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 3278 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3279 | else |
| 3280 | if test -n "$CC"; then |
| 3281 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3282 | else |
| 3283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3284 | for as_dir in $PATH |
| 3285 | do |
| 3286 | IFS=$as_save_IFS |
| 3287 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3288 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3289 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3290 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3291 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3292 | break 2 |
| 3293 | fi |
| 3294 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3295 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3296 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3297 | |
| 3298 | fi |
| 3299 | fi |
| 3300 | CC=$ac_cv_prog_CC |
| 3301 | if test -n "$CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3303 | $as_echo "$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3304 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3306 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3307 | fi |
| 3308 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3309 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3310 | test -n "$CC" && break |
| 3311 | done |
| 3312 | fi |
| 3313 | if test -z "$CC"; then |
| 3314 | ac_ct_CC=$CC |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3315 | for ac_prog in cl.exe |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3316 | do |
| 3317 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3318 | set dummy $ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3320 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3321 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 3322 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3323 | else |
| 3324 | if test -n "$ac_ct_CC"; then |
| 3325 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3326 | else |
| 3327 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3328 | for as_dir in $PATH |
| 3329 | do |
| 3330 | IFS=$as_save_IFS |
| 3331 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3332 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3333 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3334 | ac_cv_prog_ac_ct_CC="$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3335 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3336 | break 2 |
| 3337 | fi |
| 3338 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3339 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3340 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3341 | |
| 3342 | fi |
| 3343 | fi |
| 3344 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3345 | if test -n "$ac_ct_CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3347 | $as_echo "$ac_ct_CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3348 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3350 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3351 | fi |
| 3352 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3353 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3354 | test -n "$ac_ct_CC" && break |
| 3355 | done |
| 3356 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3357 | if test "x$ac_ct_CC" = x; then |
| 3358 | CC="" |
| 3359 | else |
| 3360 | case $cross_compiling:$ac_tool_warned in |
| 3361 | yes:) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3362 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3363 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3364 | ac_tool_warned=yes ;; |
| 3365 | esac |
| 3366 | CC=$ac_ct_CC |
| 3367 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3368 | fi |
| 3369 | |
| 3370 | fi |
| 3371 | |
| 3372 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3373 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3374 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3375 | as_fn_error "no acceptable C compiler found in \$PATH |
| 3376 | See \`config.log' for more details." "$LINENO" 5; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3377 | |
| 3378 | # Provide some information about the compiler. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3379 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 3380 | set X $ac_compile |
| 3381 | ac_compiler=$2 |
| 3382 | for ac_option in --version -v -V -qversion; do |
| 3383 | { { ac_try="$ac_compiler $ac_option >&5" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3384 | case "(($ac_try" in |
| 3385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3386 | *) ac_try_echo=$ac_try;; |
| 3387 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3388 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3389 | $as_echo "$ac_try_echo"; } >&5 |
| 3390 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3391 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3392 | if test -s conftest.err; then |
| 3393 | sed '10a\ |
| 3394 | ... rest of stderr output deleted ... |
| 3395 | 10q' conftest.err >conftest.er1 |
| 3396 | cat conftest.er1 >&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3397 | fi |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3398 | rm -f conftest.er1 conftest.err |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3399 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3400 | test $ac_status = 0; } |
| 3401 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3402 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3403 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3404 | /* end confdefs.h. */ |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3405 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3406 | int |
| 3407 | main () |
| 3408 | { |
| 3409 | |
| 3410 | ; |
| 3411 | return 0; |
| 3412 | } |
| 3413 | _ACEOF |
| 3414 | ac_clean_files_save=$ac_clean_files |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3415 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3416 | # Try to create an executable without -o first, disregard a.out. |
| 3417 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3418 | # of exeext. |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3420 | $as_echo_n "checking whether the C compiler works... " >&6; } |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3421 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3422 | |
| 3423 | # The possible output files: |
| 3424 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3425 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3426 | ac_rmfiles= |
| 3427 | for ac_file in $ac_files |
| 3428 | do |
| 3429 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3430 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3431 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3432 | esac |
| 3433 | done |
| 3434 | rm -f $ac_rmfiles |
| 3435 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3436 | if { { ac_try="$ac_link_default" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3437 | case "(($ac_try" in |
| 3438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3439 | *) ac_try_echo=$ac_try;; |
| 3440 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3441 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3442 | $as_echo "$ac_try_echo"; } >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3443 | (eval "$ac_link_default") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3444 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3445 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3446 | test $ac_status = 0; }; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3447 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3448 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3449 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3450 | # so that the user can short-circuit this test for compilers unknown to |
| 3451 | # Autoconf. |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3452 | for ac_file in $ac_files '' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3453 | do |
| 3454 | test -f "$ac_file" || continue |
| 3455 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3456 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3457 | ;; |
| 3458 | [ab].out ) |
| 3459 | # We found the default executable, but exeext='' is most |
| 3460 | # certainly right. |
| 3461 | break;; |
| 3462 | *.* ) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3463 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3464 | then :; else |
| 3465 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3466 | fi |
| 3467 | # We set ac_cv_exeext here because the later test for it is not |
| 3468 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3469 | # argument, so we may need to know it at that point already. |
| 3470 | # Even if this section looks crufty: it has the advantage of |
| 3471 | # actually working. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3472 | break;; |
| 3473 | * ) |
| 3474 | break;; |
| 3475 | esac |
| 3476 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3477 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3478 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3479 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3480 | ac_file='' |
| 3481 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3482 | if test -z "$ac_file"; then : |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3484 | $as_echo "no" >&6; } |
| 3485 | $as_echo "$as_me: failed program was:" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3486 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3487 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3488 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3489 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3490 | { as_fn_set_status 77 |
| 3491 | as_fn_error "C compiler cannot create executables |
| 3492 | See \`config.log' for more details." "$LINENO" 5; }; } |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3493 | else |
| 3494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3495 | $as_echo "yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3496 | fi |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3498 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3500 | $as_echo "$ac_file" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3501 | ac_exeext=$ac_cv_exeext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3502 | |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3503 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3504 | ac_clean_files=$ac_clean_files_save |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 3506 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 3507 | if { { ac_try="$ac_link" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3508 | case "(($ac_try" in |
| 3509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3510 | *) ac_try_echo=$ac_try;; |
| 3511 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3512 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3513 | $as_echo "$ac_try_echo"; } >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3514 | (eval "$ac_link") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3515 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3516 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3517 | test $ac_status = 0; }; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3518 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3519 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3520 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3521 | # `rm'. |
| 3522 | for ac_file in conftest.exe conftest conftest.*; do |
| 3523 | test -f "$ac_file" || continue |
| 3524 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3525 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3526 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3527 | break;; |
| 3528 | * ) break;; |
| 3529 | esac |
| 3530 | done |
| 3531 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3532 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3533 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3534 | as_fn_error "cannot compute suffix of executables: cannot compile and link |
| 3535 | See \`config.log' for more details." "$LINENO" 5; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3536 | fi |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3537 | rm -f conftest conftest$ac_cv_exeext |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 3539 | $as_echo "$ac_cv_exeext" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3540 | |
| 3541 | rm -f conftest.$ac_ext |
| 3542 | EXEEXT=$ac_cv_exeext |
| 3543 | ac_exeext=$EXEEXT |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3544 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3545 | /* end confdefs.h. */ |
| 3546 | #include <stdio.h> |
| 3547 | int |
| 3548 | main () |
| 3549 | { |
| 3550 | FILE *f = fopen ("conftest.out", "w"); |
| 3551 | return ferror (f) || fclose (f) != 0; |
| 3552 | |
| 3553 | ; |
| 3554 | return 0; |
| 3555 | } |
| 3556 | _ACEOF |
| 3557 | ac_clean_files="$ac_clean_files conftest.out" |
| 3558 | # Check that the compiler produces executables we can run. If not, either |
| 3559 | # the compiler is broken, or we cross compile. |
| 3560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3561 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3562 | if test "$cross_compiling" != yes; then |
| 3563 | { { ac_try="$ac_link" |
| 3564 | case "(($ac_try" in |
| 3565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3566 | *) ac_try_echo=$ac_try;; |
| 3567 | esac |
| 3568 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3569 | $as_echo "$ac_try_echo"; } >&5 |
| 3570 | (eval "$ac_link") 2>&5 |
| 3571 | ac_status=$? |
| 3572 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3573 | test $ac_status = 0; } |
| 3574 | if { ac_try='./conftest$ac_cv_exeext' |
| 3575 | { { case "(($ac_try" in |
| 3576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3577 | *) ac_try_echo=$ac_try;; |
| 3578 | esac |
| 3579 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3580 | $as_echo "$ac_try_echo"; } >&5 |
| 3581 | (eval "$ac_try") 2>&5 |
| 3582 | ac_status=$? |
| 3583 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3584 | test $ac_status = 0; }; }; then |
| 3585 | cross_compiling=no |
| 3586 | else |
| 3587 | if test "$cross_compiling" = maybe; then |
| 3588 | cross_compiling=yes |
| 3589 | else |
| 3590 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3591 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3592 | as_fn_error "cannot run C compiled programs. |
| 3593 | If you meant to cross compile, use \`--host'. |
| 3594 | See \`config.log' for more details." "$LINENO" 5; } |
| 3595 | fi |
| 3596 | fi |
| 3597 | fi |
| 3598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3599 | $as_echo "$cross_compiling" >&6; } |
| 3600 | |
| 3601 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3602 | ac_clean_files=$ac_clean_files_save |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 3604 | $as_echo_n "checking for suffix of object files... " >&6; } |
| 3605 | if test "${ac_cv_objext+set}" = set; then : |
| 3606 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3607 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3608 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3609 | /* end confdefs.h. */ |
| 3610 | |
| 3611 | int |
| 3612 | main () |
| 3613 | { |
| 3614 | |
| 3615 | ; |
| 3616 | return 0; |
| 3617 | } |
| 3618 | _ACEOF |
| 3619 | rm -f conftest.o conftest.obj |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3620 | if { { ac_try="$ac_compile" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3621 | case "(($ac_try" in |
| 3622 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3623 | *) ac_try_echo=$ac_try;; |
| 3624 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3625 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3626 | $as_echo "$ac_try_echo"; } >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3627 | (eval "$ac_compile") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3628 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3629 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3630 | test $ac_status = 0; }; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3631 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3632 | test -f "$ac_file" || continue; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3633 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3634 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3635 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3636 | break;; |
| 3637 | esac |
| 3638 | done |
| 3639 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3640 | $as_echo "$as_me: failed program was:" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3641 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3642 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3643 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3644 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3645 | as_fn_error "cannot compute suffix of object files: cannot compile |
| 3646 | See \`config.log' for more details." "$LINENO" 5; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3647 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3648 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3649 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 3651 | $as_echo "$ac_cv_objext" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3652 | OBJEXT=$ac_cv_objext |
| 3653 | ac_objext=$OBJEXT |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 3655 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 3656 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
| 3657 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3658 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3660 | /* end confdefs.h. */ |
| 3661 | |
| 3662 | int |
| 3663 | main () |
| 3664 | { |
| 3665 | #ifndef __GNUC__ |
| 3666 | choke me |
| 3667 | #endif |
| 3668 | |
| 3669 | ; |
| 3670 | return 0; |
| 3671 | } |
| 3672 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3673 | if ac_fn_c_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3674 | ac_compiler_gnu=yes |
| 3675 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3676 | ac_compiler_gnu=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3677 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3678 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3679 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3680 | |
| 3681 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3683 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3684 | if test $ac_compiler_gnu = yes; then |
| 3685 | GCC=yes |
| 3686 | else |
| 3687 | GCC= |
| 3688 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3689 | ac_test_CFLAGS=${CFLAGS+set} |
| 3690 | ac_save_CFLAGS=$CFLAGS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 3692 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 3693 | if test "${ac_cv_prog_cc_g+set}" = set; then : |
| 3694 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3695 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3696 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3697 | ac_c_werror_flag=yes |
| 3698 | ac_cv_prog_cc_g=no |
| 3699 | CFLAGS="-g" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3700 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3701 | /* end confdefs.h. */ |
| 3702 | |
| 3703 | int |
| 3704 | main () |
| 3705 | { |
| 3706 | |
| 3707 | ; |
| 3708 | return 0; |
| 3709 | } |
| 3710 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3711 | if ac_fn_c_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3712 | ac_cv_prog_cc_g=yes |
| 3713 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3714 | CFLAGS="" |
| 3715 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3716 | /* end confdefs.h. */ |
| 3717 | |
| 3718 | int |
| 3719 | main () |
| 3720 | { |
| 3721 | |
| 3722 | ; |
| 3723 | return 0; |
| 3724 | } |
| 3725 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3726 | if ac_fn_c_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3727 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3728 | else |
| 3729 | ac_c_werror_flag=$ac_save_c_werror_flag |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3730 | CFLAGS="-g" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3731 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3732 | /* end confdefs.h. */ |
| 3733 | |
| 3734 | int |
| 3735 | main () |
| 3736 | { |
| 3737 | |
| 3738 | ; |
| 3739 | return 0; |
| 3740 | } |
| 3741 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3742 | if ac_fn_c_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3743 | ac_cv_prog_cc_g=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3744 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3745 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3746 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3747 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3748 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3749 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3750 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3751 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 3753 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3754 | if test "$ac_test_CFLAGS" = set; then |
| 3755 | CFLAGS=$ac_save_CFLAGS |
| 3756 | elif test $ac_cv_prog_cc_g = yes; then |
| 3757 | if test "$GCC" = yes; then |
| 3758 | CFLAGS="-g -O2" |
| 3759 | else |
| 3760 | CFLAGS="-g" |
| 3761 | fi |
| 3762 | else |
| 3763 | if test "$GCC" = yes; then |
| 3764 | CFLAGS="-O2" |
| 3765 | else |
| 3766 | CFLAGS= |
| 3767 | fi |
| 3768 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 3770 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 3771 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
| 3772 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3773 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3774 | ac_cv_prog_cc_c89=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3775 | ac_save_CC=$CC |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3777 | /* end confdefs.h. */ |
| 3778 | #include <stdarg.h> |
| 3779 | #include <stdio.h> |
| 3780 | #include <sys/types.h> |
| 3781 | #include <sys/stat.h> |
| 3782 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3783 | struct buf { int x; }; |
| 3784 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3785 | static char *e (p, i) |
| 3786 | char **p; |
| 3787 | int i; |
| 3788 | { |
| 3789 | return p[i]; |
| 3790 | } |
| 3791 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3792 | { |
| 3793 | char *s; |
| 3794 | va_list v; |
| 3795 | va_start (v,p); |
| 3796 | s = g (p, va_arg (v,int)); |
| 3797 | va_end (v); |
| 3798 | return s; |
| 3799 | } |
| 3800 | |
| 3801 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3802 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3803 | These don't provoke an error unfortunately, instead are silently treated |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3804 | as 'x'. The following induces an error, until -std is added to get |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3805 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3806 | array size at least. It's necessary to write '\x00'==0 to get something |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3807 | that's true only with -std. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3808 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3809 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3810 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3811 | inside strings and character constants. */ |
| 3812 | #define FOO(x) 'x' |
| 3813 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3814 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3815 | int test (int i, double x); |
| 3816 | struct s1 {int (*f) (int a);}; |
| 3817 | struct s2 {int (*f) (double a);}; |
| 3818 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3819 | int argc; |
| 3820 | char **argv; |
| 3821 | int |
| 3822 | main () |
| 3823 | { |
| 3824 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3825 | ; |
| 3826 | return 0; |
| 3827 | } |
| 3828 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3829 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3830 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3831 | do |
| 3832 | CC="$ac_save_CC $ac_arg" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3833 | if ac_fn_c_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3834 | ac_cv_prog_cc_c89=$ac_arg |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3835 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3836 | rm -f core conftest.err conftest.$ac_objext |
| 3837 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3838 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3839 | rm -f conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3840 | CC=$ac_save_CC |
| 3841 | |
| 3842 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3843 | # AC_CACHE_VAL |
| 3844 | case "x$ac_cv_prog_cc_c89" in |
| 3845 | x) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3847 | $as_echo "none needed" >&6; } ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3848 | xno) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3850 | $as_echo "unsupported" >&6; } ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3851 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3852 | CC="$CC $ac_cv_prog_cc_c89" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 3854 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3855 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3856 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3857 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3858 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3859 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3860 | ac_ext=c |
| 3861 | ac_cpp='$CPP $CPPFLAGS' |
| 3862 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3863 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3864 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3865 | DEPDIR="${am__leading_dot}deps" |
| 3866 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3867 | ac_config_commands="$ac_config_commands depfiles" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3868 | |
| 3869 | |
| 3870 | am_make=${MAKE-make} |
| 3871 | cat > confinc << 'END' |
| 3872 | am__doit: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3873 | @echo this is the am__doit target |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3874 | .PHONY: am__doit |
| 3875 | END |
| 3876 | # If we don't find an include directive, just comment out the code. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
| 3878 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3879 | am__include="#" |
| 3880 | am__quote= |
| 3881 | _am_result=none |
| 3882 | # First try GNU make style include. |
| 3883 | echo "include confinc" > confmf |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3884 | # Ignore all kinds of additional output from `make'. |
| 3885 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 3886 | *the\ am__doit\ target*) |
| 3887 | am__include=include |
| 3888 | am__quote= |
| 3889 | _am_result=GNU |
| 3890 | ;; |
| 3891 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3892 | # Now try BSD make style include. |
| 3893 | if test "$am__include" = "#"; then |
| 3894 | echo '.include "confinc"' > confmf |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3895 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 3896 | *the\ am__doit\ target*) |
| 3897 | am__include=.include |
| 3898 | am__quote="\"" |
| 3899 | _am_result=BSD |
| 3900 | ;; |
| 3901 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3902 | fi |
| 3903 | |
| 3904 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
| 3906 | $as_echo "$_am_result" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3907 | rm -f confinc confmf |
| 3908 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3909 | # Check whether --enable-dependency-tracking was given. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3910 | if test "${enable_dependency_tracking+set}" = set; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3911 | enableval=$enable_dependency_tracking; |
| 3912 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3913 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3914 | if test "x$enable_dependency_tracking" != xno; then |
| 3915 | am_depcomp="$ac_aux_dir/depcomp" |
| 3916 | AMDEPBACKSLASH='\' |
| 3917 | fi |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3918 | if test "x$enable_dependency_tracking" != xno; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3919 | AMDEP_TRUE= |
| 3920 | AMDEP_FALSE='#' |
| 3921 | else |
| 3922 | AMDEP_TRUE='#' |
| 3923 | AMDEP_FALSE= |
| 3924 | fi |
| 3925 | |
| 3926 | |
| 3927 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3928 | depcc="$CC" am_compiler_list= |
| 3929 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 3931 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 3932 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : |
| 3933 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3934 | else |
| 3935 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 3936 | # We make a subdir and do the tests there. Otherwise we can end up |
| 3937 | # making bogus files that we don't know about and never remove. For |
| 3938 | # instance it was reported that on HP-UX the gcc test will end up |
| 3939 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 3940 | # in D'. |
| 3941 | mkdir conftest.dir |
| 3942 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 3943 | # using a relative directory. |
| 3944 | cp "$am_depcomp" conftest.dir |
| 3945 | cd conftest.dir |
| 3946 | # We will build objects and dependencies in a subdirectory because |
| 3947 | # it helps to detect inapplicable dependency modes. For instance |
| 3948 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 3949 | # side effect of compilation, but ICC will put the dependencies in |
| 3950 | # the current directory while Tru64 will put them in the object |
| 3951 | # directory. |
| 3952 | mkdir sub |
| 3953 | |
| 3954 | am_cv_CC_dependencies_compiler_type=none |
| 3955 | if test "$am_compiler_list" = ""; then |
| 3956 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 3957 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3958 | am__universal=false |
| 3959 | case " $depcc " in #( |
| 3960 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 3961 | esac |
| 3962 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3963 | for depmode in $am_compiler_list; do |
| 3964 | # Setup a source with many dependencies, because some compilers |
| 3965 | # like to wrap large dependency lists on column 80 (with \), and |
| 3966 | # we should not choose a depcomp mode which is confused by this. |
| 3967 | # |
| 3968 | # We need to recreate these files for each test, as the compiler may |
| 3969 | # overwrite some of them when testing with obscure command lines. |
| 3970 | # This happens at least with the AIX C compiler. |
| 3971 | : > sub/conftest.c |
| 3972 | for i in 1 2 3 4 5 6; do |
| 3973 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 3974 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 3975 | # Solaris 8's {/usr,}/bin/sh. |
| 3976 | touch sub/conftst$i.h |
| 3977 | done |
| 3978 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 3979 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3980 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 3981 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 3982 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 3983 | # versions had trouble with output in subdirs |
| 3984 | am__obj=sub/conftest.${OBJEXT-o} |
| 3985 | am__minus_obj="-o $am__obj" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3986 | case $depmode in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3987 | gcc) |
| 3988 | # This depmode causes a compiler race in universal mode. |
| 3989 | test "$am__universal" = false || continue |
| 3990 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3991 | nosideeffect) |
| 3992 | # after this tag, mechanisms are not by side-effect, so they'll |
| 3993 | # only be used when explicitly requested |
| 3994 | if test "x$enable_dependency_tracking" = xyes; then |
| 3995 | continue |
| 3996 | else |
| 3997 | break |
| 3998 | fi |
| 3999 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4000 | msvisualcpp | msvcmsys) |
| 4001 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 4002 | # not run yet. These depmodes are late enough in the game, and |
| 4003 | # so weak that their functioning should not be impacted. |
| 4004 | am__obj=conftest.${OBJEXT-o} |
| 4005 | am__minus_obj= |
| 4006 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4007 | none) break ;; |
| 4008 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4009 | if depmode=$depmode \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4010 | source=sub/conftest.c object=$am__obj \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4011 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4012 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4013 | >/dev/null 2>conftest.err && |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 4014 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4015 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4016 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4017 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 4018 | # icc doesn't choke on unknown options, it will just issue warnings |
| 4019 | # or remarks (even with -Werror). So we grep stderr for any message |
| 4020 | # that says an option was ignored or not supported. |
| 4021 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 4022 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 4023 | # The diagnosis changed in icc 8.0: |
| 4024 | # icc: Command line remark: option '-MP' not supported |
| 4025 | if (grep 'ignoring option' conftest.err || |
| 4026 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 4027 | am_cv_CC_dependencies_compiler_type=$depmode |
| 4028 | break |
| 4029 | fi |
| 4030 | fi |
| 4031 | done |
| 4032 | |
| 4033 | cd .. |
| 4034 | rm -rf conftest.dir |
| 4035 | else |
| 4036 | am_cv_CC_dependencies_compiler_type=none |
| 4037 | fi |
| 4038 | |
| 4039 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 4041 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4042 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 4043 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 4044 | if |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4045 | test "x$enable_dependency_tracking" != xno \ |
| 4046 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 4047 | am__fastdepCC_TRUE= |
| 4048 | am__fastdepCC_FALSE='#' |
| 4049 | else |
| 4050 | am__fastdepCC_TRUE='#' |
| 4051 | am__fastdepCC_FALSE= |
| 4052 | fi |
| 4053 | |
| 4054 | |
| 4055 | ac_ext=c |
| 4056 | ac_cpp='$CPP $CPPFLAGS' |
| 4057 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4058 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4059 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 4061 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4062 | # On Suns, sometimes $CPP names a directory. |
| 4063 | if test -n "$CPP" && test -d "$CPP"; then |
| 4064 | CPP= |
| 4065 | fi |
| 4066 | if test -z "$CPP"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4067 | if test "${ac_cv_prog_CPP+set}" = set; then : |
| 4068 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4069 | else |
| 4070 | # Double quotes because CPP needs to be expanded |
| 4071 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4072 | do |
| 4073 | ac_preproc_ok=false |
| 4074 | for ac_c_preproc_warn_flag in '' yes |
| 4075 | do |
| 4076 | # Use a header file that comes with gcc, so configuring glibc |
| 4077 | # with a fresh cross-compiler works. |
| 4078 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4079 | # <limits.h> exists even on freestanding compilers. |
| 4080 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4081 | # not just through cpp. "Syntax error" is here to catch this case. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4082 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4083 | /* end confdefs.h. */ |
| 4084 | #ifdef __STDC__ |
| 4085 | # include <limits.h> |
| 4086 | #else |
| 4087 | # include <assert.h> |
| 4088 | #endif |
| 4089 | Syntax error |
| 4090 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4091 | if ac_fn_c_try_cpp "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4092 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4093 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4094 | # Broken: fails on valid input. |
| 4095 | continue |
| 4096 | fi |
| 4097 | rm -f conftest.err conftest.$ac_ext |
| 4098 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4099 | # OK, works on sane cases. Now check whether nonexistent headers |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4100 | # can be detected and how. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4101 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4102 | /* end confdefs.h. */ |
| 4103 | #include <ac_nonexistent.h> |
| 4104 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4105 | if ac_fn_c_try_cpp "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4106 | # Broken: success on invalid input. |
| 4107 | continue |
| 4108 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4109 | # Passes both tests. |
| 4110 | ac_preproc_ok=: |
| 4111 | break |
| 4112 | fi |
| 4113 | rm -f conftest.err conftest.$ac_ext |
| 4114 | |
| 4115 | done |
| 4116 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4117 | rm -f conftest.err conftest.$ac_ext |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4118 | if $ac_preproc_ok; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4119 | break |
| 4120 | fi |
| 4121 | |
| 4122 | done |
| 4123 | ac_cv_prog_CPP=$CPP |
| 4124 | |
| 4125 | fi |
| 4126 | CPP=$ac_cv_prog_CPP |
| 4127 | else |
| 4128 | ac_cv_prog_CPP=$CPP |
| 4129 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 4131 | $as_echo "$CPP" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4132 | ac_preproc_ok=false |
| 4133 | for ac_c_preproc_warn_flag in '' yes |
| 4134 | do |
| 4135 | # Use a header file that comes with gcc, so configuring glibc |
| 4136 | # with a fresh cross-compiler works. |
| 4137 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4138 | # <limits.h> exists even on freestanding compilers. |
| 4139 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4140 | # not just through cpp. "Syntax error" is here to catch this case. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4142 | /* end confdefs.h. */ |
| 4143 | #ifdef __STDC__ |
| 4144 | # include <limits.h> |
| 4145 | #else |
| 4146 | # include <assert.h> |
| 4147 | #endif |
| 4148 | Syntax error |
| 4149 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4150 | if ac_fn_c_try_cpp "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4151 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4152 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4153 | # Broken: fails on valid input. |
| 4154 | continue |
| 4155 | fi |
| 4156 | rm -f conftest.err conftest.$ac_ext |
| 4157 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4158 | # OK, works on sane cases. Now check whether nonexistent headers |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4159 | # can be detected and how. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4160 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4161 | /* end confdefs.h. */ |
| 4162 | #include <ac_nonexistent.h> |
| 4163 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4164 | if ac_fn_c_try_cpp "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4165 | # Broken: success on invalid input. |
| 4166 | continue |
| 4167 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4168 | # Passes both tests. |
| 4169 | ac_preproc_ok=: |
| 4170 | break |
| 4171 | fi |
| 4172 | rm -f conftest.err conftest.$ac_ext |
| 4173 | |
| 4174 | done |
| 4175 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4176 | rm -f conftest.err conftest.$ac_ext |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4177 | if $ac_preproc_ok; then : |
| 4178 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4179 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4180 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4181 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4182 | as_fn_error "C preprocessor \"$CPP\" fails sanity check |
| 4183 | See \`config.log' for more details." "$LINENO" 5; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4184 | fi |
| 4185 | |
| 4186 | ac_ext=c |
| 4187 | ac_cpp='$CPP $CPPFLAGS' |
| 4188 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4189 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4190 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4191 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4192 | ac_ext=cpp |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4193 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 4194 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4195 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4196 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4197 | if test -z "$CXX"; then |
| 4198 | if test -n "$CCC"; then |
| 4199 | CXX=$CCC |
| 4200 | else |
| 4201 | if test -n "$ac_tool_prefix"; then |
| 4202 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4203 | do |
| 4204 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4205 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4207 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4208 | if test "${ac_cv_prog_CXX+set}" = set; then : |
| 4209 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4210 | else |
| 4211 | if test -n "$CXX"; then |
| 4212 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 4213 | else |
| 4214 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4215 | for as_dir in $PATH |
| 4216 | do |
| 4217 | IFS=$as_save_IFS |
| 4218 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4219 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 4220 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4221 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4222 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4223 | break 2 |
| 4224 | fi |
| 4225 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4226 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4227 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4228 | |
| 4229 | fi |
| 4230 | fi |
| 4231 | CXX=$ac_cv_prog_CXX |
| 4232 | if test -n "$CXX"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 4234 | $as_echo "$CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4235 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4237 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4238 | fi |
| 4239 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4240 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4241 | test -n "$CXX" && break |
| 4242 | done |
| 4243 | fi |
| 4244 | if test -z "$CXX"; then |
| 4245 | ac_ct_CXX=$CXX |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4246 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4247 | do |
| 4248 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4249 | set dummy $ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4251 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4252 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : |
| 4253 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4254 | else |
| 4255 | if test -n "$ac_ct_CXX"; then |
| 4256 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 4257 | else |
| 4258 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4259 | for as_dir in $PATH |
| 4260 | do |
| 4261 | IFS=$as_save_IFS |
| 4262 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4263 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 4264 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4265 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4266 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4267 | break 2 |
| 4268 | fi |
| 4269 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4270 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4271 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4272 | |
| 4273 | fi |
| 4274 | fi |
| 4275 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 4276 | if test -n "$ac_ct_CXX"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 4278 | $as_echo "$ac_ct_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4279 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4281 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4282 | fi |
| 4283 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4284 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4285 | test -n "$ac_ct_CXX" && break |
| 4286 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4287 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4288 | if test "x$ac_ct_CXX" = x; then |
| 4289 | CXX="g++" |
| 4290 | else |
| 4291 | case $cross_compiling:$ac_tool_warned in |
| 4292 | yes:) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4293 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4294 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4295 | ac_tool_warned=yes ;; |
| 4296 | esac |
| 4297 | CXX=$ac_ct_CXX |
| 4298 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4299 | fi |
| 4300 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4301 | fi |
| 4302 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4303 | # Provide some information about the compiler. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4304 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 4305 | set X $ac_compile |
| 4306 | ac_compiler=$2 |
| 4307 | for ac_option in --version -v -V -qversion; do |
| 4308 | { { ac_try="$ac_compiler $ac_option >&5" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4309 | case "(($ac_try" in |
| 4310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4311 | *) ac_try_echo=$ac_try;; |
| 4312 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4313 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4314 | $as_echo "$ac_try_echo"; } >&5 |
| 4315 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4316 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4317 | if test -s conftest.err; then |
| 4318 | sed '10a\ |
| 4319 | ... rest of stderr output deleted ... |
| 4320 | 10q' conftest.err >conftest.er1 |
| 4321 | cat conftest.er1 >&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4322 | fi |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 4323 | rm -f conftest.er1 conftest.err |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4324 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4325 | test $ac_status = 0; } |
| 4326 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4327 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
| 4329 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| 4330 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : |
| 4331 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4332 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4333 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4334 | /* end confdefs.h. */ |
| 4335 | |
| 4336 | int |
| 4337 | main () |
| 4338 | { |
| 4339 | #ifndef __GNUC__ |
| 4340 | choke me |
| 4341 | #endif |
| 4342 | |
| 4343 | ; |
| 4344 | return 0; |
| 4345 | } |
| 4346 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4347 | if ac_fn_cxx_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4348 | ac_compiler_gnu=yes |
| 4349 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4350 | ac_compiler_gnu=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4351 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4352 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4353 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 4354 | |
| 4355 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 4357 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 4358 | if test $ac_compiler_gnu = yes; then |
| 4359 | GXX=yes |
| 4360 | else |
| 4361 | GXX= |
| 4362 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4363 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 4364 | ac_save_CXXFLAGS=$CXXFLAGS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 4366 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| 4367 | if test "${ac_cv_prog_cxx_g+set}" = set; then : |
| 4368 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4369 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4370 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 4371 | ac_cxx_werror_flag=yes |
| 4372 | ac_cv_prog_cxx_g=no |
| 4373 | CXXFLAGS="-g" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4374 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4375 | /* end confdefs.h. */ |
| 4376 | |
| 4377 | int |
| 4378 | main () |
| 4379 | { |
| 4380 | |
| 4381 | ; |
| 4382 | return 0; |
| 4383 | } |
| 4384 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4385 | if ac_fn_cxx_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4386 | ac_cv_prog_cxx_g=yes |
| 4387 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4388 | CXXFLAGS="" |
| 4389 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4390 | /* end confdefs.h. */ |
| 4391 | |
| 4392 | int |
| 4393 | main () |
| 4394 | { |
| 4395 | |
| 4396 | ; |
| 4397 | return 0; |
| 4398 | } |
| 4399 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4400 | if ac_fn_cxx_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4401 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4402 | else |
| 4403 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4404 | CXXFLAGS="-g" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4405 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4406 | /* end confdefs.h. */ |
| 4407 | |
| 4408 | int |
| 4409 | main () |
| 4410 | { |
| 4411 | |
| 4412 | ; |
| 4413 | return 0; |
| 4414 | } |
| 4415 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4416 | if ac_fn_cxx_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4417 | ac_cv_prog_cxx_g=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4418 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4419 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4420 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4421 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4422 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4423 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4424 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 4425 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 4427 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4428 | if test "$ac_test_CXXFLAGS" = set; then |
| 4429 | CXXFLAGS=$ac_save_CXXFLAGS |
| 4430 | elif test $ac_cv_prog_cxx_g = yes; then |
| 4431 | if test "$GXX" = yes; then |
| 4432 | CXXFLAGS="-g -O2" |
| 4433 | else |
| 4434 | CXXFLAGS="-g" |
| 4435 | fi |
| 4436 | else |
| 4437 | if test "$GXX" = yes; then |
| 4438 | CXXFLAGS="-O2" |
| 4439 | else |
| 4440 | CXXFLAGS= |
| 4441 | fi |
| 4442 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4443 | ac_ext=c |
| 4444 | ac_cpp='$CPP $CPPFLAGS' |
| 4445 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4446 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4447 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4448 | |
| 4449 | depcc="$CXX" am_compiler_list= |
| 4450 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 4452 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 4453 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : |
| 4454 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4455 | else |
| 4456 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 4457 | # We make a subdir and do the tests there. Otherwise we can end up |
| 4458 | # making bogus files that we don't know about and never remove. For |
| 4459 | # instance it was reported that on HP-UX the gcc test will end up |
| 4460 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 4461 | # in D'. |
| 4462 | mkdir conftest.dir |
| 4463 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 4464 | # using a relative directory. |
| 4465 | cp "$am_depcomp" conftest.dir |
| 4466 | cd conftest.dir |
| 4467 | # We will build objects and dependencies in a subdirectory because |
| 4468 | # it helps to detect inapplicable dependency modes. For instance |
| 4469 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 4470 | # side effect of compilation, but ICC will put the dependencies in |
| 4471 | # the current directory while Tru64 will put them in the object |
| 4472 | # directory. |
| 4473 | mkdir sub |
| 4474 | |
| 4475 | am_cv_CXX_dependencies_compiler_type=none |
| 4476 | if test "$am_compiler_list" = ""; then |
| 4477 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 4478 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4479 | am__universal=false |
| 4480 | case " $depcc " in #( |
| 4481 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 4482 | esac |
| 4483 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4484 | for depmode in $am_compiler_list; do |
| 4485 | # Setup a source with many dependencies, because some compilers |
| 4486 | # like to wrap large dependency lists on column 80 (with \), and |
| 4487 | # we should not choose a depcomp mode which is confused by this. |
| 4488 | # |
| 4489 | # We need to recreate these files for each test, as the compiler may |
| 4490 | # overwrite some of them when testing with obscure command lines. |
| 4491 | # This happens at least with the AIX C compiler. |
| 4492 | : > sub/conftest.c |
| 4493 | for i in 1 2 3 4 5 6; do |
| 4494 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 4495 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 4496 | # Solaris 8's {/usr,}/bin/sh. |
| 4497 | touch sub/conftst$i.h |
| 4498 | done |
| 4499 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 4500 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4501 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 4502 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 4503 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 4504 | # versions had trouble with output in subdirs |
| 4505 | am__obj=sub/conftest.${OBJEXT-o} |
| 4506 | am__minus_obj="-o $am__obj" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4507 | case $depmode in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4508 | gcc) |
| 4509 | # This depmode causes a compiler race in universal mode. |
| 4510 | test "$am__universal" = false || continue |
| 4511 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4512 | nosideeffect) |
| 4513 | # after this tag, mechanisms are not by side-effect, so they'll |
| 4514 | # only be used when explicitly requested |
| 4515 | if test "x$enable_dependency_tracking" = xyes; then |
| 4516 | continue |
| 4517 | else |
| 4518 | break |
| 4519 | fi |
| 4520 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4521 | msvisualcpp | msvcmsys) |
| 4522 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 4523 | # not run yet. These depmodes are late enough in the game, and |
| 4524 | # so weak that their functioning should not be impacted. |
| 4525 | am__obj=conftest.${OBJEXT-o} |
| 4526 | am__minus_obj= |
| 4527 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4528 | none) break ;; |
| 4529 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4530 | if depmode=$depmode \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4531 | source=sub/conftest.c object=$am__obj \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4532 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4533 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4534 | >/dev/null 2>conftest.err && |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 4535 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4536 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4537 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4538 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 4539 | # icc doesn't choke on unknown options, it will just issue warnings |
| 4540 | # or remarks (even with -Werror). So we grep stderr for any message |
| 4541 | # that says an option was ignored or not supported. |
| 4542 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 4543 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 4544 | # The diagnosis changed in icc 8.0: |
| 4545 | # icc: Command line remark: option '-MP' not supported |
| 4546 | if (grep 'ignoring option' conftest.err || |
| 4547 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 4548 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 4549 | break |
| 4550 | fi |
| 4551 | fi |
| 4552 | done |
| 4553 | |
| 4554 | cd .. |
| 4555 | rm -rf conftest.dir |
| 4556 | else |
| 4557 | am_cv_CXX_dependencies_compiler_type=none |
| 4558 | fi |
| 4559 | |
| 4560 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 4562 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4563 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 4564 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 4565 | if |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4566 | test "x$enable_dependency_tracking" != xno \ |
| 4567 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 4568 | am__fastdepCXX_TRUE= |
| 4569 | am__fastdepCXX_FALSE='#' |
| 4570 | else |
| 4571 | am__fastdepCXX_TRUE='#' |
| 4572 | am__fastdepCXX_FALSE= |
| 4573 | fi |
| 4574 | |
| 4575 | |
| 4576 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4577 | case `pwd` in |
| 4578 | *\ * | *\ *) |
| 4579 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
| 4580 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
| 4581 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4582 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4583 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4584 | |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 4585 | macro_version='2.2.6b' |
| 4586 | macro_revision='1.3017' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4587 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4588 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4589 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4590 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4591 | |
| 4592 | |
| 4593 | |
| 4594 | |
| 4595 | |
| 4596 | |
| 4597 | |
| 4598 | |
| 4599 | |
| 4600 | ltmain="$ac_aux_dir/ltmain.sh" |
| 4601 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
| 4603 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
| 4604 | if test "${ac_cv_path_SED+set}" = set; then : |
| 4605 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4606 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4607 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 4608 | for ac_i in 1 2 3 4 5 6 7; do |
| 4609 | ac_script="$ac_script$as_nl$ac_script" |
| 4610 | done |
| 4611 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
| 4612 | { ac_script=; unset ac_script;} |
| 4613 | if test -z "$SED"; then |
| 4614 | ac_path_SED_found=false |
| 4615 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4617 | for as_dir in $PATH |
| 4618 | do |
| 4619 | IFS=$as_save_IFS |
| 4620 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4621 | for ac_prog in sed gsed; do |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4622 | for ac_exec_ext in '' $ac_executable_extensions; do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4623 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
| 4624 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue |
| 4625 | # Check for GNU ac_path_SED and select it if it is found. |
| 4626 | # Check for GNU $ac_path_SED |
| 4627 | case `"$ac_path_SED" --version 2>&1` in |
| 4628 | *GNU*) |
| 4629 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 4630 | *) |
| 4631 | ac_count=0 |
| 4632 | $as_echo_n 0123456789 >"conftest.in" |
| 4633 | while : |
| 4634 | do |
| 4635 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4636 | mv "conftest.tmp" "conftest.in" |
| 4637 | cp "conftest.in" "conftest.nl" |
| 4638 | $as_echo '' >> "conftest.nl" |
| 4639 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4640 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4641 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4642 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 4643 | # Best one so far, save it but keep looking for a better one |
| 4644 | ac_cv_path_SED="$ac_path_SED" |
| 4645 | ac_path_SED_max=$ac_count |
| 4646 | fi |
| 4647 | # 10*(2^10) chars as input seems more than enough |
| 4648 | test $ac_count -gt 10 && break |
| 4649 | done |
| 4650 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4651 | esac |
| 4652 | |
| 4653 | $ac_path_SED_found && break 3 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4654 | done |
| 4655 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4656 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4657 | IFS=$as_save_IFS |
| 4658 | if test -z "$ac_cv_path_SED"; then |
| 4659 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
| 4660 | fi |
| 4661 | else |
| 4662 | ac_cv_path_SED=$SED |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4663 | fi |
| 4664 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4665 | fi |
| 4666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| 4667 | $as_echo "$ac_cv_path_SED" >&6; } |
| 4668 | SED="$ac_cv_path_SED" |
| 4669 | rm -f conftest.sed |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 4670 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4671 | test -z "$SED" && SED=sed |
| 4672 | Xsed="$SED -e 1s/^X//" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4673 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4674 | |
| 4675 | |
| 4676 | |
| 4677 | |
| 4678 | |
| 4679 | |
| 4680 | |
| 4681 | |
| 4682 | |
| 4683 | |
| 4684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 4685 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 4686 | if test "${ac_cv_path_GREP+set}" = set; then : |
| 4687 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4688 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4689 | if test -z "$GREP"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4690 | ac_path_GREP_found=false |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4691 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4692 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4693 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4694 | do |
| 4695 | IFS=$as_save_IFS |
| 4696 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4697 | for ac_prog in grep ggrep; do |
| 4698 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4699 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4700 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 4701 | # Check for GNU ac_path_GREP and select it if it is found. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4702 | # Check for GNU $ac_path_GREP |
| 4703 | case `"$ac_path_GREP" --version 2>&1` in |
| 4704 | *GNU*) |
| 4705 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4706 | *) |
| 4707 | ac_count=0 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4708 | $as_echo_n 0123456789 >"conftest.in" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4709 | while : |
| 4710 | do |
| 4711 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4712 | mv "conftest.tmp" "conftest.in" |
| 4713 | cp "conftest.in" "conftest.nl" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4714 | $as_echo 'GREP' >> "conftest.nl" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4715 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4716 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4717 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4718 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4719 | # Best one so far, save it but keep looking for a better one |
| 4720 | ac_cv_path_GREP="$ac_path_GREP" |
| 4721 | ac_path_GREP_max=$ac_count |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4722 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4723 | # 10*(2^10) chars as input seems more than enough |
| 4724 | test $ac_count -gt 10 && break |
| 4725 | done |
| 4726 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4727 | esac |
| 4728 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4729 | $ac_path_GREP_found && break 3 |
| 4730 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4731 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4732 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4733 | IFS=$as_save_IFS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4734 | if test -z "$ac_cv_path_GREP"; then |
| 4735 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4736 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4737 | else |
| 4738 | ac_cv_path_GREP=$GREP |
| 4739 | fi |
| 4740 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4741 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 4743 | $as_echo "$ac_cv_path_GREP" >&6; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4744 | GREP="$ac_cv_path_GREP" |
| 4745 | |
| 4746 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 4748 | $as_echo_n "checking for egrep... " >&6; } |
| 4749 | if test "${ac_cv_path_EGREP+set}" = set; then : |
| 4750 | $as_echo_n "(cached) " >&6 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4751 | else |
| 4752 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4753 | then ac_cv_path_EGREP="$GREP -E" |
| 4754 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4755 | if test -z "$EGREP"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4756 | ac_path_EGREP_found=false |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4757 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4758 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4759 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4760 | do |
| 4761 | IFS=$as_save_IFS |
| 4762 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4763 | for ac_prog in egrep; do |
| 4764 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4765 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4766 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 4767 | # Check for GNU ac_path_EGREP and select it if it is found. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4768 | # Check for GNU $ac_path_EGREP |
| 4769 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4770 | *GNU*) |
| 4771 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4772 | *) |
| 4773 | ac_count=0 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4774 | $as_echo_n 0123456789 >"conftest.in" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4775 | while : |
| 4776 | do |
| 4777 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4778 | mv "conftest.tmp" "conftest.in" |
| 4779 | cp "conftest.in" "conftest.nl" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4780 | $as_echo 'EGREP' >> "conftest.nl" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4781 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4782 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4783 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4784 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4785 | # Best one so far, save it but keep looking for a better one |
| 4786 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4787 | ac_path_EGREP_max=$ac_count |
| 4788 | fi |
| 4789 | # 10*(2^10) chars as input seems more than enough |
| 4790 | test $ac_count -gt 10 && break |
| 4791 | done |
| 4792 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4793 | esac |
| 4794 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4795 | $ac_path_EGREP_found && break 3 |
| 4796 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4797 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4798 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4799 | IFS=$as_save_IFS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4800 | if test -z "$ac_cv_path_EGREP"; then |
| 4801 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4802 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4803 | else |
| 4804 | ac_cv_path_EGREP=$EGREP |
| 4805 | fi |
| 4806 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4807 | fi |
| 4808 | fi |
| 4809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 4810 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 4811 | EGREP="$ac_cv_path_EGREP" |
| 4812 | |
| 4813 | |
| 4814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
| 4815 | $as_echo_n "checking for fgrep... " >&6; } |
| 4816 | if test "${ac_cv_path_FGREP+set}" = set; then : |
| 4817 | $as_echo_n "(cached) " >&6 |
| 4818 | else |
| 4819 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
| 4820 | then ac_cv_path_FGREP="$GREP -F" |
| 4821 | else |
| 4822 | if test -z "$FGREP"; then |
| 4823 | ac_path_FGREP_found=false |
| 4824 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4825 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4826 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4827 | do |
| 4828 | IFS=$as_save_IFS |
| 4829 | test -z "$as_dir" && as_dir=. |
| 4830 | for ac_prog in fgrep; do |
| 4831 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4832 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4833 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue |
| 4834 | # Check for GNU ac_path_FGREP and select it if it is found. |
| 4835 | # Check for GNU $ac_path_FGREP |
| 4836 | case `"$ac_path_FGREP" --version 2>&1` in |
| 4837 | *GNU*) |
| 4838 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
| 4839 | *) |
| 4840 | ac_count=0 |
| 4841 | $as_echo_n 0123456789 >"conftest.in" |
| 4842 | while : |
| 4843 | do |
| 4844 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4845 | mv "conftest.tmp" "conftest.in" |
| 4846 | cp "conftest.in" "conftest.nl" |
| 4847 | $as_echo 'FGREP' >> "conftest.nl" |
| 4848 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4849 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4850 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4851 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
| 4852 | # Best one so far, save it but keep looking for a better one |
| 4853 | ac_cv_path_FGREP="$ac_path_FGREP" |
| 4854 | ac_path_FGREP_max=$ac_count |
| 4855 | fi |
| 4856 | # 10*(2^10) chars as input seems more than enough |
| 4857 | test $ac_count -gt 10 && break |
| 4858 | done |
| 4859 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4860 | esac |
| 4861 | |
| 4862 | $ac_path_FGREP_found && break 3 |
| 4863 | done |
| 4864 | done |
| 4865 | done |
| 4866 | IFS=$as_save_IFS |
| 4867 | if test -z "$ac_cv_path_FGREP"; then |
| 4868 | as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4869 | fi |
| 4870 | else |
| 4871 | ac_cv_path_FGREP=$FGREP |
| 4872 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4873 | |
| 4874 | fi |
| 4875 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
| 4877 | $as_echo "$ac_cv_path_FGREP" >&6; } |
| 4878 | FGREP="$ac_cv_path_FGREP" |
| 4879 | |
| 4880 | |
| 4881 | test -z "$GREP" && GREP=grep |
| 4882 | |
| 4883 | |
| 4884 | |
| 4885 | |
| 4886 | |
| 4887 | |
| 4888 | |
| 4889 | |
| 4890 | |
| 4891 | |
| 4892 | |
| 4893 | |
| 4894 | |
| 4895 | |
| 4896 | |
| 4897 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4898 | |
| 4899 | |
| 4900 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4901 | # Check whether --with-gnu-ld was given. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4902 | if test "${with_gnu_ld+set}" = set; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4903 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4904 | else |
| 4905 | with_gnu_ld=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4906 | fi |
| 4907 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4908 | ac_prog=ld |
| 4909 | if test "$GCC" = yes; then |
| 4910 | # Check if gcc -print-prog-name=ld gives a path. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 4912 | $as_echo_n "checking for ld used by $CC... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4913 | case $host in |
| 4914 | *-*-mingw*) |
| 4915 | # gcc leaves a trailing carriage return which upsets mingw |
| 4916 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 4917 | *) |
| 4918 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 4919 | esac |
| 4920 | case $ac_prog in |
| 4921 | # Accept absolute paths. |
| 4922 | [\\/]* | ?:[\\/]*) |
| 4923 | re_direlt='/[^/][^/]*/\.\./' |
| 4924 | # Canonicalize the pathname of ld |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4925 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 4926 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 4927 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4928 | done |
| 4929 | test -z "$LD" && LD="$ac_prog" |
| 4930 | ;; |
| 4931 | "") |
| 4932 | # If it fails, then pretend we aren't using GCC. |
| 4933 | ac_prog=ld |
| 4934 | ;; |
| 4935 | *) |
| 4936 | # If it is relative, then search for the first ld in PATH. |
| 4937 | with_gnu_ld=unknown |
| 4938 | ;; |
| 4939 | esac |
| 4940 | elif test "$with_gnu_ld" = yes; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 4942 | $as_echo_n "checking for GNU ld... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4943 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 4945 | $as_echo_n "checking for non-GNU ld... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4946 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4947 | if test "${lt_cv_path_LD+set}" = set; then : |
| 4948 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4949 | else |
| 4950 | if test -z "$LD"; then |
| 4951 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 4952 | for ac_dir in $PATH; do |
| 4953 | IFS="$lt_save_ifs" |
| 4954 | test -z "$ac_dir" && ac_dir=. |
| 4955 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 4956 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 4957 | # Check to see if the program is GNU ld. I'd rather use --version, |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4958 | # but apparently some variants of GNU ld only accept -v. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4959 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 4960 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 4961 | *GNU* | *'with BFD'*) |
| 4962 | test "$with_gnu_ld" != no && break |
| 4963 | ;; |
| 4964 | *) |
| 4965 | test "$with_gnu_ld" != yes && break |
| 4966 | ;; |
| 4967 | esac |
| 4968 | fi |
| 4969 | done |
| 4970 | IFS="$lt_save_ifs" |
| 4971 | else |
| 4972 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 4973 | fi |
| 4974 | fi |
| 4975 | |
| 4976 | LD="$lt_cv_path_LD" |
| 4977 | if test -n "$LD"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 4979 | $as_echo "$LD" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4980 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4982 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4983 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4984 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 4985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 4986 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
| 4987 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : |
| 4988 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4989 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4990 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4991 | case `$LD -v 2>&1 </dev/null` in |
| 4992 | *GNU* | *'with BFD'*) |
| 4993 | lt_cv_prog_gnu_ld=yes |
| 4994 | ;; |
| 4995 | *) |
| 4996 | lt_cv_prog_gnu_ld=no |
| 4997 | ;; |
| 4998 | esac |
| 4999 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 5001 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5002 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 5003 | |
| 5004 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5005 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5006 | |
| 5007 | |
| 5008 | |
| 5009 | |
| 5010 | |
| 5011 | |
| 5012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
| 5013 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
| 5014 | if test "${lt_cv_path_NM+set}" = set; then : |
| 5015 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5016 | else |
| 5017 | if test -n "$NM"; then |
| 5018 | # Let the user override the test. |
| 5019 | lt_cv_path_NM="$NM" |
| 5020 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5021 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 5022 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 5023 | lt_nm_to_check="$lt_nm_to_check nm" |
| 5024 | fi |
| 5025 | for lt_tmp_nm in $lt_nm_to_check; do |
| 5026 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5027 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 5028 | IFS="$lt_save_ifs" |
| 5029 | test -z "$ac_dir" && ac_dir=. |
| 5030 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 5031 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 5032 | # Check to see if the nm accepts a BSD-compat flag. |
| 5033 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 5034 | # nm: unknown option "B" ignored |
| 5035 | # Tru64's nm complains that /dev/null is an invalid object file |
| 5036 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 5037 | */dev/null* | *'Invalid file or object type'*) |
| 5038 | lt_cv_path_NM="$tmp_nm -B" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5039 | break |
| 5040 | ;; |
| 5041 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5042 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 5043 | */dev/null*) |
| 5044 | lt_cv_path_NM="$tmp_nm -p" |
| 5045 | break |
| 5046 | ;; |
| 5047 | *) |
| 5048 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 5049 | continue # so that we can try to find one that supports BSD flags |
| 5050 | ;; |
| 5051 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5052 | ;; |
| 5053 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5054 | fi |
| 5055 | done |
| 5056 | IFS="$lt_save_ifs" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5057 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5058 | : ${lt_cv_path_NM=no} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5059 | fi |
| 5060 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
| 5062 | $as_echo "$lt_cv_path_NM" >&6; } |
| 5063 | if test "$lt_cv_path_NM" != "no"; then |
| 5064 | NM="$lt_cv_path_NM" |
| 5065 | else |
| 5066 | # Didn't find any BSD compatible name lister, look for dumpbin. |
| 5067 | if test -n "$ac_tool_prefix"; then |
| 5068 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" |
| 5069 | do |
| 5070 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5071 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5073 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5074 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : |
| 5075 | $as_echo_n "(cached) " >&6 |
| 5076 | else |
| 5077 | if test -n "$DUMPBIN"; then |
| 5078 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
| 5079 | else |
| 5080 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5081 | for as_dir in $PATH |
| 5082 | do |
| 5083 | IFS=$as_save_IFS |
| 5084 | test -z "$as_dir" && as_dir=. |
| 5085 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5086 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5087 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
| 5088 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5089 | break 2 |
| 5090 | fi |
| 5091 | done |
| 5092 | done |
| 5093 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5094 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5095 | fi |
| 5096 | fi |
| 5097 | DUMPBIN=$ac_cv_prog_DUMPBIN |
| 5098 | if test -n "$DUMPBIN"; then |
| 5099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
| 5100 | $as_echo "$DUMPBIN" >&6; } |
| 5101 | else |
| 5102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5103 | $as_echo "no" >&6; } |
| 5104 | fi |
| 5105 | |
| 5106 | |
| 5107 | test -n "$DUMPBIN" && break |
| 5108 | done |
| 5109 | fi |
| 5110 | if test -z "$DUMPBIN"; then |
| 5111 | ac_ct_DUMPBIN=$DUMPBIN |
| 5112 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" |
| 5113 | do |
| 5114 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5115 | set dummy $ac_prog; ac_word=$2 |
| 5116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5117 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5118 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : |
| 5119 | $as_echo_n "(cached) " >&6 |
| 5120 | else |
| 5121 | if test -n "$ac_ct_DUMPBIN"; then |
| 5122 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
| 5123 | else |
| 5124 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5125 | for as_dir in $PATH |
| 5126 | do |
| 5127 | IFS=$as_save_IFS |
| 5128 | test -z "$as_dir" && as_dir=. |
| 5129 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5130 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5131 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
| 5132 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5133 | break 2 |
| 5134 | fi |
| 5135 | done |
| 5136 | done |
| 5137 | IFS=$as_save_IFS |
| 5138 | |
| 5139 | fi |
| 5140 | fi |
| 5141 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
| 5142 | if test -n "$ac_ct_DUMPBIN"; then |
| 5143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
| 5144 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
| 5145 | else |
| 5146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5147 | $as_echo "no" >&6; } |
| 5148 | fi |
| 5149 | |
| 5150 | |
| 5151 | test -n "$ac_ct_DUMPBIN" && break |
| 5152 | done |
| 5153 | |
| 5154 | if test "x$ac_ct_DUMPBIN" = x; then |
| 5155 | DUMPBIN=":" |
| 5156 | else |
| 5157 | case $cross_compiling:$ac_tool_warned in |
| 5158 | yes:) |
| 5159 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5160 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5161 | ac_tool_warned=yes ;; |
| 5162 | esac |
| 5163 | DUMPBIN=$ac_ct_DUMPBIN |
| 5164 | fi |
| 5165 | fi |
| 5166 | |
| 5167 | |
| 5168 | if test "$DUMPBIN" != ":"; then |
| 5169 | NM="$DUMPBIN" |
| 5170 | fi |
| 5171 | fi |
| 5172 | test -z "$NM" && NM=nm |
| 5173 | |
| 5174 | |
| 5175 | |
| 5176 | |
| 5177 | |
| 5178 | |
| 5179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
| 5180 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
| 5181 | if test "${lt_cv_nm_interface+set}" = set; then : |
| 5182 | $as_echo_n "(cached) " >&6 |
| 5183 | else |
| 5184 | lt_cv_nm_interface="BSD nm" |
| 5185 | echo "int some_variable = 0;" > conftest.$ac_ext |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 5186 | (eval echo "\"\$as_me:5186: $ac_compile\"" >&5) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5187 | (eval "$ac_compile" 2>conftest.err) |
| 5188 | cat conftest.err >&5 |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 5189 | (eval echo "\"\$as_me:5189: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5190 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 5191 | cat conftest.err >&5 |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 5192 | (eval echo "\"\$as_me:5192: output\"" >&5) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5193 | cat conftest.out >&5 |
| 5194 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 5195 | lt_cv_nm_interface="MS dumpbin" |
| 5196 | fi |
| 5197 | rm -f conftest* |
| 5198 | fi |
| 5199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
| 5200 | $as_echo "$lt_cv_nm_interface" >&6; } |
| 5201 | |
| 5202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
| 5203 | $as_echo_n "checking whether ln -s works... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5204 | LN_S=$as_ln_s |
| 5205 | if test "$LN_S" = "ln -s"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5207 | $as_echo "yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5208 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
| 5210 | $as_echo "no, using $LN_S" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5211 | fi |
| 5212 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5213 | # find the maximum length of command line arguments |
| 5214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
| 5215 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
| 5216 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : |
| 5217 | $as_echo_n "(cached) " >&6 |
| 5218 | else |
| 5219 | i=0 |
| 5220 | teststring="ABCD" |
| 5221 | |
| 5222 | case $build_os in |
| 5223 | msdosdjgpp*) |
| 5224 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 5225 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 5226 | # during glob expansion). Even if it were fixed, the result of this |
| 5227 | # check would be larger than it should be. |
| 5228 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 5229 | ;; |
| 5230 | |
| 5231 | gnu*) |
| 5232 | # Under GNU Hurd, this test is not required because there is |
| 5233 | # no limit to the length of command line arguments. |
| 5234 | # Libtool will interpret -1 as no limit whatsoever |
| 5235 | lt_cv_sys_max_cmd_len=-1; |
| 5236 | ;; |
| 5237 | |
| 5238 | cygwin* | mingw* | cegcc*) |
| 5239 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 5240 | # about 5 minutes as the teststring grows exponentially. |
| 5241 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 5242 | # you end up with a "frozen" computer, even though with patience |
| 5243 | # the test eventually succeeds (with a max line length of 256k). |
| 5244 | # Instead, let's just punt: use the minimum linelength reported by |
| 5245 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 5246 | lt_cv_sys_max_cmd_len=8192; |
| 5247 | ;; |
| 5248 | |
| 5249 | amigaos*) |
| 5250 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 5251 | # So we just punt and use a minimum line length of 8192. |
| 5252 | lt_cv_sys_max_cmd_len=8192; |
| 5253 | ;; |
| 5254 | |
| 5255 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 5256 | # This has been around since 386BSD, at least. Likely further. |
| 5257 | if test -x /sbin/sysctl; then |
| 5258 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 5259 | elif test -x /usr/sbin/sysctl; then |
| 5260 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 5261 | else |
| 5262 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 5263 | fi |
| 5264 | # And add a safety zone |
| 5265 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 5266 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 5267 | ;; |
| 5268 | |
| 5269 | interix*) |
| 5270 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 5271 | lt_cv_sys_max_cmd_len=196608 |
| 5272 | ;; |
| 5273 | |
| 5274 | osf*) |
| 5275 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 5276 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 5277 | # nice to cause kernel panics so lets avoid the loop below. |
| 5278 | # First set a reasonable default. |
| 5279 | lt_cv_sys_max_cmd_len=16384 |
| 5280 | # |
| 5281 | if test -x /sbin/sysconfig; then |
| 5282 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 5283 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 5284 | esac |
| 5285 | fi |
| 5286 | ;; |
| 5287 | sco3.2v5*) |
| 5288 | lt_cv_sys_max_cmd_len=102400 |
| 5289 | ;; |
| 5290 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 5291 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 5292 | if test -n "$kargmax"; then |
| 5293 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 5294 | else |
| 5295 | lt_cv_sys_max_cmd_len=32768 |
| 5296 | fi |
| 5297 | ;; |
| 5298 | *) |
| 5299 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 5300 | if test -n "$lt_cv_sys_max_cmd_len"; then |
| 5301 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 5302 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 5303 | else |
| 5304 | # Make teststring a little bigger before we do anything with it. |
| 5305 | # a 1K string should be a reasonable start. |
| 5306 | for i in 1 2 3 4 5 6 7 8 ; do |
| 5307 | teststring=$teststring$teststring |
| 5308 | done |
| 5309 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 5310 | # If test is not a shell built-in, we'll probably end up computing a |
| 5311 | # maximum length that is only half of the actual maximum length, but |
| 5312 | # we can't tell. |
| 5313 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ |
| 5314 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && |
| 5315 | test $i != 17 # 1/2 MB should be enough |
| 5316 | do |
| 5317 | i=`expr $i + 1` |
| 5318 | teststring=$teststring$teststring |
| 5319 | done |
| 5320 | # Only check the string length outside the loop. |
| 5321 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 5322 | teststring= |
| 5323 | # Add a significant safety factor because C++ compilers can tack on |
| 5324 | # massive amounts of additional arguments before passing them to the |
| 5325 | # linker. It appears as though 1/2 is a usable value. |
| 5326 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 5327 | fi |
| 5328 | ;; |
| 5329 | esac |
| 5330 | |
| 5331 | fi |
| 5332 | |
| 5333 | if test -n $lt_cv_sys_max_cmd_len ; then |
| 5334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
| 5335 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
| 5336 | else |
| 5337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 5338 | $as_echo "none" >&6; } |
| 5339 | fi |
| 5340 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 5341 | |
| 5342 | |
| 5343 | |
| 5344 | |
| 5345 | |
| 5346 | |
| 5347 | : ${CP="cp -f"} |
| 5348 | : ${MV="mv -f"} |
| 5349 | : ${RM="rm -f"} |
| 5350 | |
| 5351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
| 5352 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } |
| 5353 | # Try some XSI features |
| 5354 | xsi_shell=no |
| 5355 | ( _lt_dummy="a/b/c" |
| 5356 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ |
| 5357 | = c,a/b,, \ |
| 5358 | && eval 'test $(( 1 + 1 )) -eq 2 \ |
| 5359 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
| 5360 | && xsi_shell=yes |
| 5361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
| 5362 | $as_echo "$xsi_shell" >&6; } |
| 5363 | |
| 5364 | |
| 5365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
| 5366 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } |
| 5367 | lt_shell_append=no |
| 5368 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ |
| 5369 | >/dev/null 2>&1 \ |
| 5370 | && lt_shell_append=yes |
| 5371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
| 5372 | $as_echo "$lt_shell_append" >&6; } |
| 5373 | |
| 5374 | |
| 5375 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 5376 | lt_unset=unset |
| 5377 | else |
| 5378 | lt_unset=false |
| 5379 | fi |
| 5380 | |
| 5381 | |
| 5382 | |
| 5383 | |
| 5384 | |
| 5385 | # test EBCDIC or ASCII |
| 5386 | case `echo X|tr X '\101'` in |
| 5387 | A) # ASCII based system |
| 5388 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 5389 | lt_SP2NL='tr \040 \012' |
| 5390 | lt_NL2SP='tr \015\012 \040\040' |
| 5391 | ;; |
| 5392 | *) # EBCDIC based system |
| 5393 | lt_SP2NL='tr \100 \n' |
| 5394 | lt_NL2SP='tr \r\n \100\100' |
| 5395 | ;; |
| 5396 | esac |
| 5397 | |
| 5398 | |
| 5399 | |
| 5400 | |
| 5401 | |
| 5402 | |
| 5403 | |
| 5404 | |
| 5405 | |
| 5406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
| 5407 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
| 5408 | if test "${lt_cv_ld_reload_flag+set}" = set; then : |
| 5409 | $as_echo_n "(cached) " >&6 |
| 5410 | else |
| 5411 | lt_cv_ld_reload_flag='-r' |
| 5412 | fi |
| 5413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
| 5414 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
| 5415 | reload_flag=$lt_cv_ld_reload_flag |
| 5416 | case $reload_flag in |
| 5417 | "" | " "*) ;; |
| 5418 | *) reload_flag=" $reload_flag" ;; |
| 5419 | esac |
| 5420 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 5421 | case $host_os in |
| 5422 | darwin*) |
| 5423 | if test "$GCC" = yes; then |
| 5424 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 5425 | else |
| 5426 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 5427 | fi |
| 5428 | ;; |
| 5429 | esac |
| 5430 | |
| 5431 | |
| 5432 | |
| 5433 | |
| 5434 | |
| 5435 | |
| 5436 | |
| 5437 | |
| 5438 | |
| 5439 | if test -n "$ac_tool_prefix"; then |
| 5440 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 5441 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| 5442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5443 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5444 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : |
| 5445 | $as_echo_n "(cached) " >&6 |
| 5446 | else |
| 5447 | if test -n "$OBJDUMP"; then |
| 5448 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 5449 | else |
| 5450 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5451 | for as_dir in $PATH |
| 5452 | do |
| 5453 | IFS=$as_save_IFS |
| 5454 | test -z "$as_dir" && as_dir=. |
| 5455 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5456 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5457 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| 5458 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5459 | break 2 |
| 5460 | fi |
| 5461 | done |
| 5462 | done |
| 5463 | IFS=$as_save_IFS |
| 5464 | |
| 5465 | fi |
| 5466 | fi |
| 5467 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 5468 | if test -n "$OBJDUMP"; then |
| 5469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
| 5470 | $as_echo "$OBJDUMP" >&6; } |
| 5471 | else |
| 5472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5473 | $as_echo "no" >&6; } |
| 5474 | fi |
| 5475 | |
| 5476 | |
| 5477 | fi |
| 5478 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 5479 | ac_ct_OBJDUMP=$OBJDUMP |
| 5480 | # Extract the first word of "objdump", so it can be a program name with args. |
| 5481 | set dummy objdump; ac_word=$2 |
| 5482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5483 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5484 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : |
| 5485 | $as_echo_n "(cached) " >&6 |
| 5486 | else |
| 5487 | if test -n "$ac_ct_OBJDUMP"; then |
| 5488 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 5489 | else |
| 5490 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5491 | for as_dir in $PATH |
| 5492 | do |
| 5493 | IFS=$as_save_IFS |
| 5494 | test -z "$as_dir" && as_dir=. |
| 5495 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5496 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5497 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| 5498 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5499 | break 2 |
| 5500 | fi |
| 5501 | done |
| 5502 | done |
| 5503 | IFS=$as_save_IFS |
| 5504 | |
| 5505 | fi |
| 5506 | fi |
| 5507 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 5508 | if test -n "$ac_ct_OBJDUMP"; then |
| 5509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
| 5510 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
| 5511 | else |
| 5512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5513 | $as_echo "no" >&6; } |
| 5514 | fi |
| 5515 | |
| 5516 | if test "x$ac_ct_OBJDUMP" = x; then |
| 5517 | OBJDUMP="false" |
| 5518 | else |
| 5519 | case $cross_compiling:$ac_tool_warned in |
| 5520 | yes:) |
| 5521 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5522 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5523 | ac_tool_warned=yes ;; |
| 5524 | esac |
| 5525 | OBJDUMP=$ac_ct_OBJDUMP |
| 5526 | fi |
| 5527 | else |
| 5528 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 5529 | fi |
| 5530 | |
| 5531 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 5532 | |
| 5533 | |
| 5534 | |
| 5535 | |
| 5536 | |
| 5537 | |
| 5538 | |
| 5539 | |
| 5540 | |
| 5541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
| 5542 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
| 5543 | if test "${lt_cv_deplibs_check_method+set}" = set; then : |
| 5544 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5545 | else |
| 5546 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 5547 | lt_cv_file_magic_test_file= |
| 5548 | lt_cv_deplibs_check_method='unknown' |
| 5549 | # Need to set the preceding variable on all platforms that support |
| 5550 | # interlibrary dependencies. |
| 5551 | # 'none' -- dependencies not supported. |
| 5552 | # `unknown' -- same as none, but documents that we really don't know. |
| 5553 | # 'pass_all' -- all dependencies passed with no checks. |
| 5554 | # 'test_compile' -- check by making test program. |
| 5555 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 5556 | # which responds to the $file_magic_cmd with a given extended regex. |
| 5557 | # If you have `file' or equivalent on your system and you're not sure |
| 5558 | # whether `pass_all' will *always* work, you probably want this one. |
| 5559 | |
| 5560 | case $host_os in |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 5561 | aix[4-9]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5562 | lt_cv_deplibs_check_method=pass_all |
| 5563 | ;; |
| 5564 | |
| 5565 | beos*) |
| 5566 | lt_cv_deplibs_check_method=pass_all |
| 5567 | ;; |
| 5568 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5569 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5570 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 5571 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 5572 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 5573 | ;; |
| 5574 | |
| 5575 | cygwin*) |
| 5576 | # func_win32_libid is a shell function defined in ltmain.sh |
| 5577 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 5578 | lt_cv_file_magic_cmd='func_win32_libid' |
| 5579 | ;; |
| 5580 | |
| 5581 | mingw* | pw32*) |
| 5582 | # Base MSYS/MinGW do not provide the 'file' command needed by |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 5583 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 5584 | # unless we find 'file', for example because we are cross-compiling. |
| 5585 | if ( file / ) >/dev/null 2>&1; then |
| 5586 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 5587 | lt_cv_file_magic_cmd='func_win32_libid' |
| 5588 | else |
| 5589 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 5590 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 5591 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5592 | ;; |
| 5593 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5594 | cegcc) |
| 5595 | # use the weaker test based on 'objdump'. See mingw*. |
| 5596 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
| 5597 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 5598 | ;; |
| 5599 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5600 | darwin* | rhapsody*) |
| 5601 | lt_cv_deplibs_check_method=pass_all |
| 5602 | ;; |
| 5603 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 5604 | freebsd* | dragonfly*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5605 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5606 | case $host_cpu in |
| 5607 | i*86 ) |
| 5608 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 5609 | # Let's accept both of them until this is cleared up. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5610 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5611 | lt_cv_file_magic_cmd=/usr/bin/file |
| 5612 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 5613 | ;; |
| 5614 | esac |
| 5615 | else |
| 5616 | lt_cv_deplibs_check_method=pass_all |
| 5617 | fi |
| 5618 | ;; |
| 5619 | |
| 5620 | gnu*) |
| 5621 | lt_cv_deplibs_check_method=pass_all |
| 5622 | ;; |
| 5623 | |
| 5624 | hpux10.20* | hpux11*) |
| 5625 | lt_cv_file_magic_cmd=/usr/bin/file |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5626 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5627 | ia64*) |
| 5628 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 5629 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 5630 | ;; |
| 5631 | hppa*64*) |
| 5632 | 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]' |
| 5633 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 5634 | ;; |
| 5635 | *) |
| 5636 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 5637 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 5638 | ;; |
| 5639 | esac |
| 5640 | ;; |
| 5641 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 5642 | interix[3-9]*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5643 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 5644 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 5645 | ;; |
| 5646 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5647 | irix5* | irix6* | nonstopux*) |
| 5648 | case $LD in |
| 5649 | *-32|*"-32 ") libmagic=32-bit;; |
| 5650 | *-n32|*"-n32 ") libmagic=N32;; |
| 5651 | *-64|*"-64 ") libmagic=64-bit;; |
| 5652 | *) libmagic=never-match;; |
| 5653 | esac |
| 5654 | lt_cv_deplibs_check_method=pass_all |
| 5655 | ;; |
| 5656 | |
| 5657 | # This must be Linux ELF. |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 5658 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5659 | lt_cv_deplibs_check_method=pass_all |
| 5660 | ;; |
| 5661 | |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 5662 | netbsd* | netbsdelf*-gnu) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5663 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5664 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 5665 | else |
| 5666 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 5667 | fi |
| 5668 | ;; |
| 5669 | |
| 5670 | newos6*) |
| 5671 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 5672 | lt_cv_file_magic_cmd=/usr/bin/file |
| 5673 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 5674 | ;; |
| 5675 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5676 | *nto* | *qnx*) |
| 5677 | lt_cv_deplibs_check_method=pass_all |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5678 | ;; |
| 5679 | |
| 5680 | openbsd*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5681 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5682 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5683 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5684 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5685 | fi |
| 5686 | ;; |
| 5687 | |
| 5688 | osf3* | osf4* | osf5*) |
| 5689 | lt_cv_deplibs_check_method=pass_all |
| 5690 | ;; |
| 5691 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 5692 | rdos*) |
| 5693 | lt_cv_deplibs_check_method=pass_all |
| 5694 | ;; |
| 5695 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5696 | solaris*) |
| 5697 | lt_cv_deplibs_check_method=pass_all |
| 5698 | ;; |
| 5699 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5700 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 5701 | lt_cv_deplibs_check_method=pass_all |
| 5702 | ;; |
| 5703 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5704 | sysv4 | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5705 | case $host_vendor in |
| 5706 | motorola) |
| 5707 | 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]' |
| 5708 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 5709 | ;; |
| 5710 | ncr) |
| 5711 | lt_cv_deplibs_check_method=pass_all |
| 5712 | ;; |
| 5713 | sequent) |
| 5714 | lt_cv_file_magic_cmd='/bin/file' |
| 5715 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 5716 | ;; |
| 5717 | sni) |
| 5718 | lt_cv_file_magic_cmd='/bin/file' |
| 5719 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 5720 | lt_cv_file_magic_test_file=/lib/libc.so |
| 5721 | ;; |
| 5722 | siemens) |
| 5723 | lt_cv_deplibs_check_method=pass_all |
| 5724 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5725 | pc) |
| 5726 | lt_cv_deplibs_check_method=pass_all |
| 5727 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5728 | esac |
| 5729 | ;; |
| 5730 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5731 | tpf*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5732 | lt_cv_deplibs_check_method=pass_all |
| 5733 | ;; |
| 5734 | esac |
| 5735 | |
| 5736 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
| 5738 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5739 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 5740 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 5741 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 5742 | |
| 5743 | |
| 5744 | |
| 5745 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5746 | |
| 5747 | |
| 5748 | |
| 5749 | |
| 5750 | |
| 5751 | |
| 5752 | |
| 5753 | |
| 5754 | if test -n "$ac_tool_prefix"; then |
| 5755 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 5756 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 5757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5758 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5759 | if test "${ac_cv_prog_AR+set}" = set; then : |
| 5760 | $as_echo_n "(cached) " >&6 |
| 5761 | else |
| 5762 | if test -n "$AR"; then |
| 5763 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 5764 | else |
| 5765 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5766 | for as_dir in $PATH |
| 5767 | do |
| 5768 | IFS=$as_save_IFS |
| 5769 | test -z "$as_dir" && as_dir=. |
| 5770 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5771 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5772 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 5773 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5774 | break 2 |
| 5775 | fi |
| 5776 | done |
| 5777 | done |
| 5778 | IFS=$as_save_IFS |
| 5779 | |
| 5780 | fi |
| 5781 | fi |
| 5782 | AR=$ac_cv_prog_AR |
| 5783 | if test -n "$AR"; then |
| 5784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 5785 | $as_echo "$AR" >&6; } |
| 5786 | else |
| 5787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5788 | $as_echo "no" >&6; } |
| 5789 | fi |
| 5790 | |
| 5791 | |
| 5792 | fi |
| 5793 | if test -z "$ac_cv_prog_AR"; then |
| 5794 | ac_ct_AR=$AR |
| 5795 | # Extract the first word of "ar", so it can be a program name with args. |
| 5796 | set dummy ar; ac_word=$2 |
| 5797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5798 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5799 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : |
| 5800 | $as_echo_n "(cached) " >&6 |
| 5801 | else |
| 5802 | if test -n "$ac_ct_AR"; then |
| 5803 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 5804 | else |
| 5805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5806 | for as_dir in $PATH |
| 5807 | do |
| 5808 | IFS=$as_save_IFS |
| 5809 | test -z "$as_dir" && as_dir=. |
| 5810 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5811 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5812 | ac_cv_prog_ac_ct_AR="ar" |
| 5813 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5814 | break 2 |
| 5815 | fi |
| 5816 | done |
| 5817 | done |
| 5818 | IFS=$as_save_IFS |
| 5819 | |
| 5820 | fi |
| 5821 | fi |
| 5822 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 5823 | if test -n "$ac_ct_AR"; then |
| 5824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 5825 | $as_echo "$ac_ct_AR" >&6; } |
| 5826 | else |
| 5827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5828 | $as_echo "no" >&6; } |
| 5829 | fi |
| 5830 | |
| 5831 | if test "x$ac_ct_AR" = x; then |
| 5832 | AR="false" |
| 5833 | else |
| 5834 | case $cross_compiling:$ac_tool_warned in |
| 5835 | yes:) |
| 5836 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5837 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5838 | ac_tool_warned=yes ;; |
| 5839 | esac |
| 5840 | AR=$ac_ct_AR |
| 5841 | fi |
| 5842 | else |
| 5843 | AR="$ac_cv_prog_AR" |
| 5844 | fi |
| 5845 | |
| 5846 | test -z "$AR" && AR=ar |
| 5847 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 5848 | |
| 5849 | |
| 5850 | |
| 5851 | |
| 5852 | |
| 5853 | |
| 5854 | |
| 5855 | |
| 5856 | |
| 5857 | |
| 5858 | |
| 5859 | if test -n "$ac_tool_prefix"; then |
| 5860 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 5861 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 5862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5863 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5864 | if test "${ac_cv_prog_STRIP+set}" = set; then : |
| 5865 | $as_echo_n "(cached) " >&6 |
| 5866 | else |
| 5867 | if test -n "$STRIP"; then |
| 5868 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 5869 | else |
| 5870 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5871 | for as_dir in $PATH |
| 5872 | do |
| 5873 | IFS=$as_save_IFS |
| 5874 | test -z "$as_dir" && as_dir=. |
| 5875 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5876 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5877 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 5878 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5879 | break 2 |
| 5880 | fi |
| 5881 | done |
| 5882 | done |
| 5883 | IFS=$as_save_IFS |
| 5884 | |
| 5885 | fi |
| 5886 | fi |
| 5887 | STRIP=$ac_cv_prog_STRIP |
| 5888 | if test -n "$STRIP"; then |
| 5889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 5890 | $as_echo "$STRIP" >&6; } |
| 5891 | else |
| 5892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5893 | $as_echo "no" >&6; } |
| 5894 | fi |
| 5895 | |
| 5896 | |
| 5897 | fi |
| 5898 | if test -z "$ac_cv_prog_STRIP"; then |
| 5899 | ac_ct_STRIP=$STRIP |
| 5900 | # Extract the first word of "strip", so it can be a program name with args. |
| 5901 | set dummy strip; ac_word=$2 |
| 5902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5903 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5904 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : |
| 5905 | $as_echo_n "(cached) " >&6 |
| 5906 | else |
| 5907 | if test -n "$ac_ct_STRIP"; then |
| 5908 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 5909 | else |
| 5910 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5911 | for as_dir in $PATH |
| 5912 | do |
| 5913 | IFS=$as_save_IFS |
| 5914 | test -z "$as_dir" && as_dir=. |
| 5915 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5916 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5917 | ac_cv_prog_ac_ct_STRIP="strip" |
| 5918 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5919 | break 2 |
| 5920 | fi |
| 5921 | done |
| 5922 | done |
| 5923 | IFS=$as_save_IFS |
| 5924 | |
| 5925 | fi |
| 5926 | fi |
| 5927 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 5928 | if test -n "$ac_ct_STRIP"; then |
| 5929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 5930 | $as_echo "$ac_ct_STRIP" >&6; } |
| 5931 | else |
| 5932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5933 | $as_echo "no" >&6; } |
| 5934 | fi |
| 5935 | |
| 5936 | if test "x$ac_ct_STRIP" = x; then |
| 5937 | STRIP=":" |
| 5938 | else |
| 5939 | case $cross_compiling:$ac_tool_warned in |
| 5940 | yes:) |
| 5941 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5942 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5943 | ac_tool_warned=yes ;; |
| 5944 | esac |
| 5945 | STRIP=$ac_ct_STRIP |
| 5946 | fi |
| 5947 | else |
| 5948 | STRIP="$ac_cv_prog_STRIP" |
| 5949 | fi |
| 5950 | |
| 5951 | test -z "$STRIP" && STRIP=: |
| 5952 | |
| 5953 | |
| 5954 | |
| 5955 | |
| 5956 | |
| 5957 | |
| 5958 | if test -n "$ac_tool_prefix"; then |
| 5959 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5960 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 5961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5962 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5963 | if test "${ac_cv_prog_RANLIB+set}" = set; then : |
| 5964 | $as_echo_n "(cached) " >&6 |
| 5965 | else |
| 5966 | if test -n "$RANLIB"; then |
| 5967 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5968 | else |
| 5969 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5970 | for as_dir in $PATH |
| 5971 | do |
| 5972 | IFS=$as_save_IFS |
| 5973 | test -z "$as_dir" && as_dir=. |
| 5974 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5975 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5976 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 5977 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5978 | break 2 |
| 5979 | fi |
| 5980 | done |
| 5981 | done |
| 5982 | IFS=$as_save_IFS |
| 5983 | |
| 5984 | fi |
| 5985 | fi |
| 5986 | RANLIB=$ac_cv_prog_RANLIB |
| 5987 | if test -n "$RANLIB"; then |
| 5988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 5989 | $as_echo "$RANLIB" >&6; } |
| 5990 | else |
| 5991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5992 | $as_echo "no" >&6; } |
| 5993 | fi |
| 5994 | |
| 5995 | |
| 5996 | fi |
| 5997 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5998 | ac_ct_RANLIB=$RANLIB |
| 5999 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6000 | set dummy ranlib; ac_word=$2 |
| 6001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6002 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6003 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : |
| 6004 | $as_echo_n "(cached) " >&6 |
| 6005 | else |
| 6006 | if test -n "$ac_ct_RANLIB"; then |
| 6007 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_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=. |
| 6014 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 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_ac_ct_RANLIB="ranlib" |
| 6017 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6018 | break 2 |
| 6019 | fi |
| 6020 | done |
| 6021 | done |
| 6022 | IFS=$as_save_IFS |
| 6023 | |
| 6024 | fi |
| 6025 | fi |
| 6026 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6027 | if test -n "$ac_ct_RANLIB"; then |
| 6028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 6029 | $as_echo "$ac_ct_RANLIB" >&6; } |
| 6030 | else |
| 6031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6032 | $as_echo "no" >&6; } |
| 6033 | fi |
| 6034 | |
| 6035 | if test "x$ac_ct_RANLIB" = x; then |
| 6036 | RANLIB=":" |
| 6037 | else |
| 6038 | case $cross_compiling:$ac_tool_warned in |
| 6039 | yes:) |
| 6040 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6041 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6042 | ac_tool_warned=yes ;; |
| 6043 | esac |
| 6044 | RANLIB=$ac_ct_RANLIB |
| 6045 | fi |
| 6046 | else |
| 6047 | RANLIB="$ac_cv_prog_RANLIB" |
| 6048 | fi |
| 6049 | |
| 6050 | test -z "$RANLIB" && RANLIB=: |
| 6051 | |
| 6052 | |
| 6053 | |
| 6054 | |
| 6055 | |
| 6056 | |
| 6057 | # Determine commands to create old-style static archives. |
| 6058 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
| 6059 | old_postinstall_cmds='chmod 644 $oldlib' |
| 6060 | old_postuninstall_cmds= |
| 6061 | |
| 6062 | if test -n "$RANLIB"; then |
| 6063 | case $host_os in |
| 6064 | openbsd*) |
| 6065 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
| 6066 | ;; |
| 6067 | *) |
| 6068 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
| 6069 | ;; |
| 6070 | esac |
| 6071 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 6072 | fi |
| 6073 | |
| 6074 | |
| 6075 | |
| 6076 | |
| 6077 | |
| 6078 | |
| 6079 | |
| 6080 | |
| 6081 | |
| 6082 | |
| 6083 | |
| 6084 | |
| 6085 | |
| 6086 | |
| 6087 | |
| 6088 | |
| 6089 | |
| 6090 | |
| 6091 | |
| 6092 | |
| 6093 | |
| 6094 | |
| 6095 | |
| 6096 | |
| 6097 | |
| 6098 | |
| 6099 | |
| 6100 | |
| 6101 | |
| 6102 | |
| 6103 | |
| 6104 | |
| 6105 | |
| 6106 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6107 | # If no C compiler was specified, use CC. |
| 6108 | LTCC=${LTCC-"$CC"} |
| 6109 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6110 | # If no C compiler flags were specified, use CFLAGS. |
| 6111 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 6112 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6113 | # Allow CC to be a program name with arguments. |
| 6114 | compiler=$CC |
| 6115 | |
| 6116 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6117 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
| 6119 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
| 6120 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : |
| 6121 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6122 | else |
| 6123 | |
| 6124 | # These are sane defaults that work on at least a few old systems. |
| 6125 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 6126 | |
| 6127 | # Character class describing NM global symbol codes. |
| 6128 | symcode='[BCDEGRST]' |
| 6129 | |
| 6130 | # Regexp to match symbols that can be accessed directly from C. |
| 6131 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 6132 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6133 | # Define system-specific variables. |
| 6134 | case $host_os in |
| 6135 | aix*) |
| 6136 | symcode='[BCDT]' |
| 6137 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6138 | cygwin* | mingw* | pw32* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6139 | symcode='[ABCDGISTW]' |
| 6140 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6141 | hpux*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6142 | if test "$host_cpu" = ia64; then |
| 6143 | symcode='[ABCDEGRST]' |
| 6144 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6145 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6146 | irix* | nonstopux*) |
| 6147 | symcode='[BCDEGRST]' |
| 6148 | ;; |
| 6149 | osf*) |
| 6150 | symcode='[BCDEGQRST]' |
| 6151 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6152 | solaris*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6153 | symcode='[BDRT]' |
| 6154 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6155 | sco3.2v5*) |
| 6156 | symcode='[DT]' |
| 6157 | ;; |
| 6158 | sysv4.2uw2*) |
| 6159 | symcode='[DT]' |
| 6160 | ;; |
| 6161 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 6162 | symcode='[ABDT]' |
| 6163 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6164 | sysv4) |
| 6165 | symcode='[DFNSTU]' |
| 6166 | ;; |
| 6167 | esac |
| 6168 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6169 | # If we're using GNU nm, then use its standard symbol codes. |
| 6170 | case `$NM -V 2>&1` in |
| 6171 | *GNU* | *'with BFD'*) |
| 6172 | symcode='[ABCDGIRSTW]' ;; |
| 6173 | esac |
| 6174 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6175 | # Transform an extracted symbol line into a proper C declaration. |
| 6176 | # Some systems (esp. on ia64) link data and code symbols differently, |
| 6177 | # so use this general approach. |
| 6178 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 6179 | |
| 6180 | # Transform an extracted symbol line into symbol name and symbol address |
| 6181 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
| 6182 | 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'" |
| 6183 | |
| 6184 | # Handle CRLF in mingw tool chain |
| 6185 | opt_cr= |
| 6186 | case $build_os in |
| 6187 | mingw*) |
| 6188 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 6189 | ;; |
| 6190 | esac |
| 6191 | |
| 6192 | # Try without a prefix underscore, then with it. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6193 | for ac_symprfx in "" "_"; do |
| 6194 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6195 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 6196 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 6197 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6198 | # Write the raw and C identifiers. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6199 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 6200 | # Fake it for dumpbin and say T for any non-static function |
| 6201 | # and D for any global variable. |
| 6202 | # Also find C++ and __fastcall symbols from MSVC++, |
| 6203 | # which start with @ or ?. |
| 6204 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
| 6205 | " {last_section=section; section=\$ 3};"\ |
| 6206 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 6207 | " \$ 0!~/External *\|/{next};"\ |
| 6208 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 6209 | " {if(hide[section]) next};"\ |
| 6210 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
| 6211 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
| 6212 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
| 6213 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
| 6214 | " ' prfx=^$ac_symprfx" |
| 6215 | else |
| 6216 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 6217 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6218 | |
| 6219 | # Check to see that the pipe works correctly. |
| 6220 | pipe_works=no |
| 6221 | |
| 6222 | rm -f conftest* |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6223 | cat > conftest.$ac_ext <<_LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6224 | #ifdef __cplusplus |
| 6225 | extern "C" { |
| 6226 | #endif |
| 6227 | char nm_test_var; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6228 | void nm_test_func(void); |
| 6229 | void nm_test_func(void){} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6230 | #ifdef __cplusplus |
| 6231 | } |
| 6232 | #endif |
| 6233 | int main(){nm_test_var='a';nm_test_func();return(0);} |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6234 | _LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6235 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6236 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6237 | (eval $ac_compile) 2>&5 |
| 6238 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6239 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6240 | test $ac_status = 0; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6241 | # Now try to grab the symbols. |
| 6242 | nlist=conftest.nm |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6243 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6244 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 6245 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6246 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6247 | test $ac_status = 0; } && test -s "$nlist"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6248 | # Try sorting and uniquifying the output. |
| 6249 | if sort "$nlist" | uniq > "$nlist"T; then |
| 6250 | mv -f "$nlist"T "$nlist" |
| 6251 | else |
| 6252 | rm -f "$nlist"T |
| 6253 | fi |
| 6254 | |
| 6255 | # Make sure that we snagged all the symbols we need. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6256 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 6257 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 6258 | cat <<_LT_EOF > conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6259 | #ifdef __cplusplus |
| 6260 | extern "C" { |
| 6261 | #endif |
| 6262 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6263 | _LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6264 | # Now generate the symbol file. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6265 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6266 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6267 | cat <<_LT_EOF >> conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6268 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6269 | /* The mapping between symbol names and symbols. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6270 | const struct { |
| 6271 | const char *name; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6272 | void *address; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6273 | } |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6274 | lt__PROGRAM__LTX_preloaded_symbols[] = |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6275 | { |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6276 | { "@PROGRAM@", (void *) 0 }, |
| 6277 | _LT_EOF |
| 6278 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 6279 | cat <<\_LT_EOF >> conftest.$ac_ext |
| 6280 | {0, (void *) 0} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6281 | }; |
| 6282 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6283 | /* This works around a problem in FreeBSD linker */ |
| 6284 | #ifdef FREEBSD_WORKAROUND |
| 6285 | static const void *lt_preloaded_setup() { |
| 6286 | return lt__PROGRAM__LTX_preloaded_symbols; |
| 6287 | } |
| 6288 | #endif |
| 6289 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6290 | #ifdef __cplusplus |
| 6291 | } |
| 6292 | #endif |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6293 | _LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6294 | # Now try linking the two files. |
| 6295 | mv conftest.$ac_objext conftstm.$ac_objext |
| 6296 | lt_save_LIBS="$LIBS" |
| 6297 | lt_save_CFLAGS="$CFLAGS" |
| 6298 | LIBS="conftstm.$ac_objext" |
| 6299 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6300 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6301 | (eval $ac_link) 2>&5 |
| 6302 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6303 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6304 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6305 | pipe_works=yes |
| 6306 | fi |
| 6307 | LIBS="$lt_save_LIBS" |
| 6308 | CFLAGS="$lt_save_CFLAGS" |
| 6309 | else |
| 6310 | echo "cannot find nm_test_func in $nlist" >&5 |
| 6311 | fi |
| 6312 | else |
| 6313 | echo "cannot find nm_test_var in $nlist" >&5 |
| 6314 | fi |
| 6315 | else |
| 6316 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 6317 | fi |
| 6318 | else |
| 6319 | echo "$progname: failed program was:" >&5 |
| 6320 | cat conftest.$ac_ext >&5 |
| 6321 | fi |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 6322 | rm -rf conftest* conftst* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6323 | |
| 6324 | # Do not use the global_symbol_pipe unless it works. |
| 6325 | if test "$pipe_works" = yes; then |
| 6326 | break |
| 6327 | else |
| 6328 | lt_cv_sys_global_symbol_pipe= |
| 6329 | fi |
| 6330 | done |
| 6331 | |
| 6332 | fi |
| 6333 | |
| 6334 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 6335 | lt_cv_sys_global_symbol_to_cdecl= |
| 6336 | fi |
| 6337 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
| 6339 | $as_echo "failed" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6340 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| 6342 | $as_echo "ok" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6343 | fi |
| 6344 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6345 | |
| 6346 | |
| 6347 | |
| 6348 | |
| 6349 | |
| 6350 | |
| 6351 | |
| 6352 | |
| 6353 | |
| 6354 | |
| 6355 | |
| 6356 | |
| 6357 | |
| 6358 | |
| 6359 | |
| 6360 | |
| 6361 | |
| 6362 | |
| 6363 | |
| 6364 | |
| 6365 | |
| 6366 | |
| 6367 | # Check whether --enable-libtool-lock was given. |
| 6368 | if test "${enable_libtool_lock+set}" = set; then : |
| 6369 | enableval=$enable_libtool_lock; |
| 6370 | fi |
| 6371 | |
| 6372 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 6373 | |
| 6374 | # Some flags need to be propagated to the compiler or linker for good |
| 6375 | # libtool support. |
| 6376 | case $host in |
| 6377 | ia64-*-hpux*) |
| 6378 | # Find out which ABI we are using. |
| 6379 | echo 'int i;' > conftest.$ac_ext |
| 6380 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6381 | (eval $ac_compile) 2>&5 |
| 6382 | ac_status=$? |
| 6383 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6384 | test $ac_status = 0; }; then |
| 6385 | case `/usr/bin/file conftest.$ac_objext` in |
| 6386 | *ELF-32*) |
| 6387 | HPUX_IA64_MODE="32" |
| 6388 | ;; |
| 6389 | *ELF-64*) |
| 6390 | HPUX_IA64_MODE="64" |
| 6391 | ;; |
| 6392 | esac |
| 6393 | fi |
| 6394 | rm -rf conftest* |
| 6395 | ;; |
| 6396 | *-*-irix6*) |
| 6397 | # Find out which ABI we are using. |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 6398 | echo '#line 6398 "configure"' > conftest.$ac_ext |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6399 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6400 | (eval $ac_compile) 2>&5 |
| 6401 | ac_status=$? |
| 6402 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6403 | test $ac_status = 0; }; then |
| 6404 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 6405 | case `/usr/bin/file conftest.$ac_objext` in |
| 6406 | *32-bit*) |
| 6407 | LD="${LD-ld} -melf32bsmip" |
| 6408 | ;; |
| 6409 | *N32*) |
| 6410 | LD="${LD-ld} -melf32bmipn32" |
| 6411 | ;; |
| 6412 | *64-bit*) |
| 6413 | LD="${LD-ld} -melf64bmip" |
| 6414 | ;; |
| 6415 | esac |
| 6416 | else |
| 6417 | case `/usr/bin/file conftest.$ac_objext` in |
| 6418 | *32-bit*) |
| 6419 | LD="${LD-ld} -32" |
| 6420 | ;; |
| 6421 | *N32*) |
| 6422 | LD="${LD-ld} -n32" |
| 6423 | ;; |
| 6424 | *64-bit*) |
| 6425 | LD="${LD-ld} -64" |
| 6426 | ;; |
| 6427 | esac |
| 6428 | fi |
| 6429 | fi |
| 6430 | rm -rf conftest* |
| 6431 | ;; |
| 6432 | |
| 6433 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
| 6434 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
| 6435 | # Find out which ABI we are using. |
| 6436 | echo 'int i;' > conftest.$ac_ext |
| 6437 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6438 | (eval $ac_compile) 2>&5 |
| 6439 | ac_status=$? |
| 6440 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6441 | test $ac_status = 0; }; then |
| 6442 | case `/usr/bin/file conftest.o` in |
| 6443 | *32-bit*) |
| 6444 | case $host in |
| 6445 | x86_64-*kfreebsd*-gnu) |
| 6446 | LD="${LD-ld} -m elf_i386_fbsd" |
| 6447 | ;; |
| 6448 | x86_64-*linux*) |
| 6449 | LD="${LD-ld} -m elf_i386" |
| 6450 | ;; |
| 6451 | ppc64-*linux*|powerpc64-*linux*) |
| 6452 | LD="${LD-ld} -m elf32ppclinux" |
| 6453 | ;; |
| 6454 | s390x-*linux*) |
| 6455 | LD="${LD-ld} -m elf_s390" |
| 6456 | ;; |
| 6457 | sparc64-*linux*) |
| 6458 | LD="${LD-ld} -m elf32_sparc" |
| 6459 | ;; |
| 6460 | esac |
| 6461 | ;; |
| 6462 | *64-bit*) |
| 6463 | case $host in |
| 6464 | x86_64-*kfreebsd*-gnu) |
| 6465 | LD="${LD-ld} -m elf_x86_64_fbsd" |
| 6466 | ;; |
| 6467 | x86_64-*linux*) |
| 6468 | LD="${LD-ld} -m elf_x86_64" |
| 6469 | ;; |
| 6470 | ppc*-*linux*|powerpc*-*linux*) |
| 6471 | LD="${LD-ld} -m elf64ppc" |
| 6472 | ;; |
| 6473 | s390*-*linux*|s390*-*tpf*) |
| 6474 | LD="${LD-ld} -m elf64_s390" |
| 6475 | ;; |
| 6476 | sparc*-*linux*) |
| 6477 | LD="${LD-ld} -m elf64_sparc" |
| 6478 | ;; |
| 6479 | esac |
| 6480 | ;; |
| 6481 | esac |
| 6482 | fi |
| 6483 | rm -rf conftest* |
| 6484 | ;; |
| 6485 | |
| 6486 | *-*-sco3.2v5*) |
| 6487 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 6488 | SAVE_CFLAGS="$CFLAGS" |
| 6489 | CFLAGS="$CFLAGS -belf" |
| 6490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
| 6491 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
| 6492 | if test "${lt_cv_cc_needs_belf+set}" = set; then : |
| 6493 | $as_echo_n "(cached) " >&6 |
| 6494 | else |
| 6495 | ac_ext=c |
| 6496 | ac_cpp='$CPP $CPPFLAGS' |
| 6497 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6498 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6499 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6500 | |
| 6501 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6502 | /* end confdefs.h. */ |
| 6503 | |
| 6504 | int |
| 6505 | main () |
| 6506 | { |
| 6507 | |
| 6508 | ; |
| 6509 | return 0; |
| 6510 | } |
| 6511 | _ACEOF |
| 6512 | if ac_fn_c_try_link "$LINENO"; then : |
| 6513 | lt_cv_cc_needs_belf=yes |
| 6514 | else |
| 6515 | lt_cv_cc_needs_belf=no |
| 6516 | fi |
| 6517 | rm -f core conftest.err conftest.$ac_objext \ |
| 6518 | conftest$ac_exeext conftest.$ac_ext |
| 6519 | ac_ext=c |
| 6520 | ac_cpp='$CPP $CPPFLAGS' |
| 6521 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6522 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6523 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6524 | |
| 6525 | fi |
| 6526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
| 6527 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
| 6528 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 6529 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 6530 | CFLAGS="$SAVE_CFLAGS" |
| 6531 | fi |
| 6532 | ;; |
| 6533 | sparc*-*solaris*) |
| 6534 | # Find out which ABI we are using. |
| 6535 | echo 'int i;' > conftest.$ac_ext |
| 6536 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6537 | (eval $ac_compile) 2>&5 |
| 6538 | ac_status=$? |
| 6539 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6540 | test $ac_status = 0; }; then |
| 6541 | case `/usr/bin/file conftest.o` in |
| 6542 | *64-bit*) |
| 6543 | case $lt_cv_prog_gnu_ld in |
| 6544 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 6545 | *) |
| 6546 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 6547 | LD="${LD-ld} -64" |
| 6548 | fi |
| 6549 | ;; |
| 6550 | esac |
| 6551 | ;; |
| 6552 | esac |
| 6553 | fi |
| 6554 | rm -rf conftest* |
| 6555 | ;; |
| 6556 | esac |
| 6557 | |
| 6558 | need_locks="$enable_libtool_lock" |
| 6559 | |
| 6560 | |
| 6561 | case $host_os in |
| 6562 | rhapsody* | darwin*) |
| 6563 | if test -n "$ac_tool_prefix"; then |
| 6564 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
| 6565 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
| 6566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6567 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6568 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : |
| 6569 | $as_echo_n "(cached) " >&6 |
| 6570 | else |
| 6571 | if test -n "$DSYMUTIL"; then |
| 6572 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
| 6573 | else |
| 6574 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6575 | for as_dir in $PATH |
| 6576 | do |
| 6577 | IFS=$as_save_IFS |
| 6578 | test -z "$as_dir" && as_dir=. |
| 6579 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6580 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6581 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
| 6582 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6583 | break 2 |
| 6584 | fi |
| 6585 | done |
| 6586 | done |
| 6587 | IFS=$as_save_IFS |
| 6588 | |
| 6589 | fi |
| 6590 | fi |
| 6591 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
| 6592 | if test -n "$DSYMUTIL"; then |
| 6593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
| 6594 | $as_echo "$DSYMUTIL" >&6; } |
| 6595 | else |
| 6596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6597 | $as_echo "no" >&6; } |
| 6598 | fi |
| 6599 | |
| 6600 | |
| 6601 | fi |
| 6602 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
| 6603 | ac_ct_DSYMUTIL=$DSYMUTIL |
| 6604 | # Extract the first word of "dsymutil", so it can be a program name with args. |
| 6605 | set dummy dsymutil; ac_word=$2 |
| 6606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6607 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6608 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : |
| 6609 | $as_echo_n "(cached) " >&6 |
| 6610 | else |
| 6611 | if test -n "$ac_ct_DSYMUTIL"; then |
| 6612 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
| 6613 | else |
| 6614 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6615 | for as_dir in $PATH |
| 6616 | do |
| 6617 | IFS=$as_save_IFS |
| 6618 | test -z "$as_dir" && as_dir=. |
| 6619 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6620 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6621 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
| 6622 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6623 | break 2 |
| 6624 | fi |
| 6625 | done |
| 6626 | done |
| 6627 | IFS=$as_save_IFS |
| 6628 | |
| 6629 | fi |
| 6630 | fi |
| 6631 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
| 6632 | if test -n "$ac_ct_DSYMUTIL"; then |
| 6633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
| 6634 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
| 6635 | else |
| 6636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6637 | $as_echo "no" >&6; } |
| 6638 | fi |
| 6639 | |
| 6640 | if test "x$ac_ct_DSYMUTIL" = x; then |
| 6641 | DSYMUTIL=":" |
| 6642 | else |
| 6643 | case $cross_compiling:$ac_tool_warned in |
| 6644 | yes:) |
| 6645 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6646 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6647 | ac_tool_warned=yes ;; |
| 6648 | esac |
| 6649 | DSYMUTIL=$ac_ct_DSYMUTIL |
| 6650 | fi |
| 6651 | else |
| 6652 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
| 6653 | fi |
| 6654 | |
| 6655 | if test -n "$ac_tool_prefix"; then |
| 6656 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
| 6657 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
| 6658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6659 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6660 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : |
| 6661 | $as_echo_n "(cached) " >&6 |
| 6662 | else |
| 6663 | if test -n "$NMEDIT"; then |
| 6664 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
| 6665 | else |
| 6666 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6667 | for as_dir in $PATH |
| 6668 | do |
| 6669 | IFS=$as_save_IFS |
| 6670 | test -z "$as_dir" && as_dir=. |
| 6671 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6672 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6673 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
| 6674 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6675 | break 2 |
| 6676 | fi |
| 6677 | done |
| 6678 | done |
| 6679 | IFS=$as_save_IFS |
| 6680 | |
| 6681 | fi |
| 6682 | fi |
| 6683 | NMEDIT=$ac_cv_prog_NMEDIT |
| 6684 | if test -n "$NMEDIT"; then |
| 6685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
| 6686 | $as_echo "$NMEDIT" >&6; } |
| 6687 | else |
| 6688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6689 | $as_echo "no" >&6; } |
| 6690 | fi |
| 6691 | |
| 6692 | |
| 6693 | fi |
| 6694 | if test -z "$ac_cv_prog_NMEDIT"; then |
| 6695 | ac_ct_NMEDIT=$NMEDIT |
| 6696 | # Extract the first word of "nmedit", so it can be a program name with args. |
| 6697 | set dummy nmedit; ac_word=$2 |
| 6698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6699 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6700 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : |
| 6701 | $as_echo_n "(cached) " >&6 |
| 6702 | else |
| 6703 | if test -n "$ac_ct_NMEDIT"; then |
| 6704 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
| 6705 | else |
| 6706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6707 | for as_dir in $PATH |
| 6708 | do |
| 6709 | IFS=$as_save_IFS |
| 6710 | test -z "$as_dir" && as_dir=. |
| 6711 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6712 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6713 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
| 6714 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6715 | break 2 |
| 6716 | fi |
| 6717 | done |
| 6718 | done |
| 6719 | IFS=$as_save_IFS |
| 6720 | |
| 6721 | fi |
| 6722 | fi |
| 6723 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
| 6724 | if test -n "$ac_ct_NMEDIT"; then |
| 6725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
| 6726 | $as_echo "$ac_ct_NMEDIT" >&6; } |
| 6727 | else |
| 6728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6729 | $as_echo "no" >&6; } |
| 6730 | fi |
| 6731 | |
| 6732 | if test "x$ac_ct_NMEDIT" = x; then |
| 6733 | NMEDIT=":" |
| 6734 | else |
| 6735 | case $cross_compiling:$ac_tool_warned in |
| 6736 | yes:) |
| 6737 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6738 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6739 | ac_tool_warned=yes ;; |
| 6740 | esac |
| 6741 | NMEDIT=$ac_ct_NMEDIT |
| 6742 | fi |
| 6743 | else |
| 6744 | NMEDIT="$ac_cv_prog_NMEDIT" |
| 6745 | fi |
| 6746 | |
| 6747 | if test -n "$ac_tool_prefix"; then |
| 6748 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
| 6749 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
| 6750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6751 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6752 | if test "${ac_cv_prog_LIPO+set}" = set; then : |
| 6753 | $as_echo_n "(cached) " >&6 |
| 6754 | else |
| 6755 | if test -n "$LIPO"; then |
| 6756 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
| 6757 | else |
| 6758 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6759 | for as_dir in $PATH |
| 6760 | do |
| 6761 | IFS=$as_save_IFS |
| 6762 | test -z "$as_dir" && as_dir=. |
| 6763 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6764 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6765 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
| 6766 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6767 | break 2 |
| 6768 | fi |
| 6769 | done |
| 6770 | done |
| 6771 | IFS=$as_save_IFS |
| 6772 | |
| 6773 | fi |
| 6774 | fi |
| 6775 | LIPO=$ac_cv_prog_LIPO |
| 6776 | if test -n "$LIPO"; then |
| 6777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
| 6778 | $as_echo "$LIPO" >&6; } |
| 6779 | else |
| 6780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6781 | $as_echo "no" >&6; } |
| 6782 | fi |
| 6783 | |
| 6784 | |
| 6785 | fi |
| 6786 | if test -z "$ac_cv_prog_LIPO"; then |
| 6787 | ac_ct_LIPO=$LIPO |
| 6788 | # Extract the first word of "lipo", so it can be a program name with args. |
| 6789 | set dummy lipo; ac_word=$2 |
| 6790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6791 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6792 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : |
| 6793 | $as_echo_n "(cached) " >&6 |
| 6794 | else |
| 6795 | if test -n "$ac_ct_LIPO"; then |
| 6796 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
| 6797 | else |
| 6798 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6799 | for as_dir in $PATH |
| 6800 | do |
| 6801 | IFS=$as_save_IFS |
| 6802 | test -z "$as_dir" && as_dir=. |
| 6803 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6804 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6805 | ac_cv_prog_ac_ct_LIPO="lipo" |
| 6806 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6807 | break 2 |
| 6808 | fi |
| 6809 | done |
| 6810 | done |
| 6811 | IFS=$as_save_IFS |
| 6812 | |
| 6813 | fi |
| 6814 | fi |
| 6815 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
| 6816 | if test -n "$ac_ct_LIPO"; then |
| 6817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
| 6818 | $as_echo "$ac_ct_LIPO" >&6; } |
| 6819 | else |
| 6820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6821 | $as_echo "no" >&6; } |
| 6822 | fi |
| 6823 | |
| 6824 | if test "x$ac_ct_LIPO" = x; then |
| 6825 | LIPO=":" |
| 6826 | else |
| 6827 | case $cross_compiling:$ac_tool_warned in |
| 6828 | yes:) |
| 6829 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6830 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6831 | ac_tool_warned=yes ;; |
| 6832 | esac |
| 6833 | LIPO=$ac_ct_LIPO |
| 6834 | fi |
| 6835 | else |
| 6836 | LIPO="$ac_cv_prog_LIPO" |
| 6837 | fi |
| 6838 | |
| 6839 | if test -n "$ac_tool_prefix"; then |
| 6840 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
| 6841 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
| 6842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6843 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6844 | if test "${ac_cv_prog_OTOOL+set}" = set; then : |
| 6845 | $as_echo_n "(cached) " >&6 |
| 6846 | else |
| 6847 | if test -n "$OTOOL"; then |
| 6848 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
| 6849 | else |
| 6850 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6851 | for as_dir in $PATH |
| 6852 | do |
| 6853 | IFS=$as_save_IFS |
| 6854 | test -z "$as_dir" && as_dir=. |
| 6855 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6856 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6857 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
| 6858 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6859 | break 2 |
| 6860 | fi |
| 6861 | done |
| 6862 | done |
| 6863 | IFS=$as_save_IFS |
| 6864 | |
| 6865 | fi |
| 6866 | fi |
| 6867 | OTOOL=$ac_cv_prog_OTOOL |
| 6868 | if test -n "$OTOOL"; then |
| 6869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
| 6870 | $as_echo "$OTOOL" >&6; } |
| 6871 | else |
| 6872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6873 | $as_echo "no" >&6; } |
| 6874 | fi |
| 6875 | |
| 6876 | |
| 6877 | fi |
| 6878 | if test -z "$ac_cv_prog_OTOOL"; then |
| 6879 | ac_ct_OTOOL=$OTOOL |
| 6880 | # Extract the first word of "otool", so it can be a program name with args. |
| 6881 | set dummy otool; ac_word=$2 |
| 6882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6883 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6884 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : |
| 6885 | $as_echo_n "(cached) " >&6 |
| 6886 | else |
| 6887 | if test -n "$ac_ct_OTOOL"; then |
| 6888 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
| 6889 | else |
| 6890 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6891 | for as_dir in $PATH |
| 6892 | do |
| 6893 | IFS=$as_save_IFS |
| 6894 | test -z "$as_dir" && as_dir=. |
| 6895 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6896 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6897 | ac_cv_prog_ac_ct_OTOOL="otool" |
| 6898 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6899 | break 2 |
| 6900 | fi |
| 6901 | done |
| 6902 | done |
| 6903 | IFS=$as_save_IFS |
| 6904 | |
| 6905 | fi |
| 6906 | fi |
| 6907 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
| 6908 | if test -n "$ac_ct_OTOOL"; then |
| 6909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
| 6910 | $as_echo "$ac_ct_OTOOL" >&6; } |
| 6911 | else |
| 6912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6913 | $as_echo "no" >&6; } |
| 6914 | fi |
| 6915 | |
| 6916 | if test "x$ac_ct_OTOOL" = x; then |
| 6917 | OTOOL=":" |
| 6918 | else |
| 6919 | case $cross_compiling:$ac_tool_warned in |
| 6920 | yes:) |
| 6921 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6922 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6923 | ac_tool_warned=yes ;; |
| 6924 | esac |
| 6925 | OTOOL=$ac_ct_OTOOL |
| 6926 | fi |
| 6927 | else |
| 6928 | OTOOL="$ac_cv_prog_OTOOL" |
| 6929 | fi |
| 6930 | |
| 6931 | if test -n "$ac_tool_prefix"; then |
| 6932 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
| 6933 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
| 6934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6935 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6936 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : |
| 6937 | $as_echo_n "(cached) " >&6 |
| 6938 | else |
| 6939 | if test -n "$OTOOL64"; then |
| 6940 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
| 6941 | else |
| 6942 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6943 | for as_dir in $PATH |
| 6944 | do |
| 6945 | IFS=$as_save_IFS |
| 6946 | test -z "$as_dir" && as_dir=. |
| 6947 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6948 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6949 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
| 6950 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6951 | break 2 |
| 6952 | fi |
| 6953 | done |
| 6954 | done |
| 6955 | IFS=$as_save_IFS |
| 6956 | |
| 6957 | fi |
| 6958 | fi |
| 6959 | OTOOL64=$ac_cv_prog_OTOOL64 |
| 6960 | if test -n "$OTOOL64"; then |
| 6961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
| 6962 | $as_echo "$OTOOL64" >&6; } |
| 6963 | else |
| 6964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6965 | $as_echo "no" >&6; } |
| 6966 | fi |
| 6967 | |
| 6968 | |
| 6969 | fi |
| 6970 | if test -z "$ac_cv_prog_OTOOL64"; then |
| 6971 | ac_ct_OTOOL64=$OTOOL64 |
| 6972 | # Extract the first word of "otool64", so it can be a program name with args. |
| 6973 | set dummy otool64; ac_word=$2 |
| 6974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6975 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6976 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : |
| 6977 | $as_echo_n "(cached) " >&6 |
| 6978 | else |
| 6979 | if test -n "$ac_ct_OTOOL64"; then |
| 6980 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
| 6981 | else |
| 6982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6983 | for as_dir in $PATH |
| 6984 | do |
| 6985 | IFS=$as_save_IFS |
| 6986 | test -z "$as_dir" && as_dir=. |
| 6987 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6988 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6989 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
| 6990 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6991 | break 2 |
| 6992 | fi |
| 6993 | done |
| 6994 | done |
| 6995 | IFS=$as_save_IFS |
| 6996 | |
| 6997 | fi |
| 6998 | fi |
| 6999 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
| 7000 | if test -n "$ac_ct_OTOOL64"; then |
| 7001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
| 7002 | $as_echo "$ac_ct_OTOOL64" >&6; } |
| 7003 | else |
| 7004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7005 | $as_echo "no" >&6; } |
| 7006 | fi |
| 7007 | |
| 7008 | if test "x$ac_ct_OTOOL64" = x; then |
| 7009 | OTOOL64=":" |
| 7010 | else |
| 7011 | case $cross_compiling:$ac_tool_warned in |
| 7012 | yes:) |
| 7013 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7014 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7015 | ac_tool_warned=yes ;; |
| 7016 | esac |
| 7017 | OTOOL64=$ac_ct_OTOOL64 |
| 7018 | fi |
| 7019 | else |
| 7020 | OTOOL64="$ac_cv_prog_OTOOL64" |
| 7021 | fi |
| 7022 | |
| 7023 | |
| 7024 | |
| 7025 | |
| 7026 | |
| 7027 | |
| 7028 | |
| 7029 | |
| 7030 | |
| 7031 | |
| 7032 | |
| 7033 | |
| 7034 | |
| 7035 | |
| 7036 | |
| 7037 | |
| 7038 | |
| 7039 | |
| 7040 | |
| 7041 | |
| 7042 | |
| 7043 | |
| 7044 | |
| 7045 | |
| 7046 | |
| 7047 | |
| 7048 | |
| 7049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
| 7050 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
| 7051 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : |
| 7052 | $as_echo_n "(cached) " >&6 |
| 7053 | else |
| 7054 | lt_cv_apple_cc_single_mod=no |
| 7055 | if test -z "${LT_MULTI_MODULE}"; then |
| 7056 | # By default we will add the -single_module flag. You can override |
| 7057 | # by either setting the environment variable LT_MULTI_MODULE |
| 7058 | # non-empty at configure time, or by adding -multi_module to the |
| 7059 | # link flags. |
| 7060 | rm -rf libconftest.dylib* |
| 7061 | echo "int foo(void){return 1;}" > conftest.c |
| 7062 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 7063 | -dynamiclib -Wl,-single_module conftest.c" >&5 |
| 7064 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 7065 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
| 7066 | _lt_result=$? |
| 7067 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then |
| 7068 | lt_cv_apple_cc_single_mod=yes |
| 7069 | else |
| 7070 | cat conftest.err >&5 |
| 7071 | fi |
| 7072 | rm -rf libconftest.dylib* |
| 7073 | rm -f conftest.* |
| 7074 | fi |
| 7075 | fi |
| 7076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
| 7077 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
| 7078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
| 7079 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
| 7080 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : |
| 7081 | $as_echo_n "(cached) " >&6 |
| 7082 | else |
| 7083 | lt_cv_ld_exported_symbols_list=no |
| 7084 | save_LDFLAGS=$LDFLAGS |
| 7085 | echo "_main" > conftest.sym |
| 7086 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
| 7087 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7088 | /* end confdefs.h. */ |
| 7089 | |
| 7090 | int |
| 7091 | main () |
| 7092 | { |
| 7093 | |
| 7094 | ; |
| 7095 | return 0; |
| 7096 | } |
| 7097 | _ACEOF |
| 7098 | if ac_fn_c_try_link "$LINENO"; then : |
| 7099 | lt_cv_ld_exported_symbols_list=yes |
| 7100 | else |
| 7101 | lt_cv_ld_exported_symbols_list=no |
| 7102 | fi |
| 7103 | rm -f core conftest.err conftest.$ac_objext \ |
| 7104 | conftest$ac_exeext conftest.$ac_ext |
| 7105 | LDFLAGS="$save_LDFLAGS" |
| 7106 | |
| 7107 | fi |
| 7108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
| 7109 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
| 7110 | case $host_os in |
| 7111 | rhapsody* | darwin1.[012]) |
| 7112 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
| 7113 | darwin1.*) |
| 7114 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 7115 | darwin*) # darwin 5.x on |
| 7116 | # if running on 10.5 or later, the deployment target defaults |
| 7117 | # to the OS version, if on x86, and 10.4, the deployment |
| 7118 | # target defaults to 10.4. Don't you love it? |
| 7119 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
| 7120 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
| 7121 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 7122 | 10.[012]*) |
| 7123 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 7124 | 10.*) |
| 7125 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 7126 | esac |
| 7127 | ;; |
| 7128 | esac |
| 7129 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
| 7130 | _lt_dar_single_mod='$single_module' |
| 7131 | fi |
| 7132 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
| 7133 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
| 7134 | else |
| 7135 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 7136 | fi |
| 7137 | if test "$DSYMUTIL" != ":"; then |
| 7138 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
| 7139 | else |
| 7140 | _lt_dsymutil= |
| 7141 | fi |
| 7142 | ;; |
| 7143 | esac |
| 7144 | |
| 7145 | |
| 7146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 7147 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 7148 | if test "${ac_cv_header_stdc+set}" = set; then : |
| 7149 | $as_echo_n "(cached) " >&6 |
| 7150 | else |
| 7151 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7152 | /* end confdefs.h. */ |
| 7153 | #include <stdlib.h> |
| 7154 | #include <stdarg.h> |
| 7155 | #include <string.h> |
| 7156 | #include <float.h> |
| 7157 | |
| 7158 | int |
| 7159 | main () |
| 7160 | { |
| 7161 | |
| 7162 | ; |
| 7163 | return 0; |
| 7164 | } |
| 7165 | _ACEOF |
| 7166 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7167 | ac_cv_header_stdc=yes |
| 7168 | else |
| 7169 | ac_cv_header_stdc=no |
| 7170 | fi |
| 7171 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7172 | |
| 7173 | if test $ac_cv_header_stdc = yes; then |
| 7174 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 7175 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7176 | /* end confdefs.h. */ |
| 7177 | #include <string.h> |
| 7178 | |
| 7179 | _ACEOF |
| 7180 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7181 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 7182 | |
| 7183 | else |
| 7184 | ac_cv_header_stdc=no |
| 7185 | fi |
| 7186 | rm -f conftest* |
| 7187 | |
| 7188 | fi |
| 7189 | |
| 7190 | if test $ac_cv_header_stdc = yes; then |
| 7191 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 7192 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7193 | /* end confdefs.h. */ |
| 7194 | #include <stdlib.h> |
| 7195 | |
| 7196 | _ACEOF |
| 7197 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7198 | $EGREP "free" >/dev/null 2>&1; then : |
| 7199 | |
| 7200 | else |
| 7201 | ac_cv_header_stdc=no |
| 7202 | fi |
| 7203 | rm -f conftest* |
| 7204 | |
| 7205 | fi |
| 7206 | |
| 7207 | if test $ac_cv_header_stdc = yes; then |
| 7208 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 7209 | if test "$cross_compiling" = yes; then : |
| 7210 | : |
| 7211 | else |
| 7212 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7213 | /* end confdefs.h. */ |
| 7214 | #include <ctype.h> |
| 7215 | #include <stdlib.h> |
| 7216 | #if ((' ' & 0x0FF) == 0x020) |
| 7217 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 7218 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 7219 | #else |
| 7220 | # define ISLOWER(c) \ |
| 7221 | (('a' <= (c) && (c) <= 'i') \ |
| 7222 | || ('j' <= (c) && (c) <= 'r') \ |
| 7223 | || ('s' <= (c) && (c) <= 'z')) |
| 7224 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 7225 | #endif |
| 7226 | |
| 7227 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 7228 | int |
| 7229 | main () |
| 7230 | { |
| 7231 | int i; |
| 7232 | for (i = 0; i < 256; i++) |
| 7233 | if (XOR (islower (i), ISLOWER (i)) |
| 7234 | || toupper (i) != TOUPPER (i)) |
| 7235 | return 2; |
| 7236 | return 0; |
| 7237 | } |
| 7238 | _ACEOF |
| 7239 | if ac_fn_c_try_run "$LINENO"; then : |
| 7240 | |
| 7241 | else |
| 7242 | ac_cv_header_stdc=no |
| 7243 | fi |
| 7244 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7245 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7246 | fi |
| 7247 | |
| 7248 | fi |
| 7249 | fi |
| 7250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 7251 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 7252 | if test $ac_cv_header_stdc = yes; then |
| 7253 | |
| 7254 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 7255 | |
| 7256 | fi |
| 7257 | |
| 7258 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 7259 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 7260 | inttypes.h stdint.h unistd.h |
| 7261 | do : |
| 7262 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7263 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 7264 | " |
| 7265 | eval as_val=\$$as_ac_Header |
| 7266 | if test "x$as_val" = x""yes; then : |
| 7267 | cat >>confdefs.h <<_ACEOF |
| 7268 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7269 | _ACEOF |
| 7270 | |
| 7271 | fi |
| 7272 | |
| 7273 | done |
| 7274 | |
| 7275 | |
| 7276 | for ac_header in dlfcn.h |
| 7277 | do : |
| 7278 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
| 7279 | " |
| 7280 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : |
| 7281 | cat >>confdefs.h <<_ACEOF |
| 7282 | #define HAVE_DLFCN_H 1 |
| 7283 | _ACEOF |
| 7284 | |
| 7285 | fi |
| 7286 | |
| 7287 | done |
| 7288 | |
| 7289 | |
| 7290 | |
| 7291 | ac_ext=cpp |
| 7292 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 7293 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7294 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7295 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 7296 | if test -z "$CXX"; then |
| 7297 | if test -n "$CCC"; then |
| 7298 | CXX=$CCC |
| 7299 | else |
| 7300 | if test -n "$ac_tool_prefix"; then |
| 7301 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 7302 | do |
| 7303 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 7304 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 7305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7306 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7307 | if test "${ac_cv_prog_CXX+set}" = set; then : |
| 7308 | $as_echo_n "(cached) " >&6 |
| 7309 | else |
| 7310 | if test -n "$CXX"; then |
| 7311 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 7312 | else |
| 7313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7314 | for as_dir in $PATH |
| 7315 | do |
| 7316 | IFS=$as_save_IFS |
| 7317 | test -z "$as_dir" && as_dir=. |
| 7318 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7319 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7320 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 7321 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7322 | break 2 |
| 7323 | fi |
| 7324 | done |
| 7325 | done |
| 7326 | IFS=$as_save_IFS |
| 7327 | |
| 7328 | fi |
| 7329 | fi |
| 7330 | CXX=$ac_cv_prog_CXX |
| 7331 | if test -n "$CXX"; then |
| 7332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 7333 | $as_echo "$CXX" >&6; } |
| 7334 | else |
| 7335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7336 | $as_echo "no" >&6; } |
| 7337 | fi |
| 7338 | |
| 7339 | |
| 7340 | test -n "$CXX" && break |
| 7341 | done |
| 7342 | fi |
| 7343 | if test -z "$CXX"; then |
| 7344 | ac_ct_CXX=$CXX |
| 7345 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 7346 | do |
| 7347 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7348 | set dummy $ac_prog; ac_word=$2 |
| 7349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7350 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7351 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : |
| 7352 | $as_echo_n "(cached) " >&6 |
| 7353 | else |
| 7354 | if test -n "$ac_ct_CXX"; then |
| 7355 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 7356 | else |
| 7357 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7358 | for as_dir in $PATH |
| 7359 | do |
| 7360 | IFS=$as_save_IFS |
| 7361 | test -z "$as_dir" && as_dir=. |
| 7362 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7363 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7364 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 7365 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7366 | break 2 |
| 7367 | fi |
| 7368 | done |
| 7369 | done |
| 7370 | IFS=$as_save_IFS |
| 7371 | |
| 7372 | fi |
| 7373 | fi |
| 7374 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 7375 | if test -n "$ac_ct_CXX"; then |
| 7376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 7377 | $as_echo "$ac_ct_CXX" >&6; } |
| 7378 | else |
| 7379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7380 | $as_echo "no" >&6; } |
| 7381 | fi |
| 7382 | |
| 7383 | |
| 7384 | test -n "$ac_ct_CXX" && break |
| 7385 | done |
| 7386 | |
| 7387 | if test "x$ac_ct_CXX" = x; then |
| 7388 | CXX="g++" |
| 7389 | else |
| 7390 | case $cross_compiling:$ac_tool_warned in |
| 7391 | yes:) |
| 7392 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7393 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7394 | ac_tool_warned=yes ;; |
| 7395 | esac |
| 7396 | CXX=$ac_ct_CXX |
| 7397 | fi |
| 7398 | fi |
| 7399 | |
| 7400 | fi |
| 7401 | fi |
| 7402 | # Provide some information about the compiler. |
| 7403 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 7404 | set X $ac_compile |
| 7405 | ac_compiler=$2 |
| 7406 | for ac_option in --version -v -V -qversion; do |
| 7407 | { { ac_try="$ac_compiler $ac_option >&5" |
| 7408 | case "(($ac_try" in |
| 7409 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7410 | *) ac_try_echo=$ac_try;; |
| 7411 | esac |
| 7412 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 7413 | $as_echo "$ac_try_echo"; } >&5 |
| 7414 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 7415 | ac_status=$? |
| 7416 | if test -s conftest.err; then |
| 7417 | sed '10a\ |
| 7418 | ... rest of stderr output deleted ... |
| 7419 | 10q' conftest.err >conftest.er1 |
| 7420 | cat conftest.er1 >&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7421 | fi |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 7422 | rm -f conftest.er1 conftest.err |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7423 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7424 | test $ac_status = 0; } |
| 7425 | done |
| 7426 | |
| 7427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
| 7428 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| 7429 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : |
| 7430 | $as_echo_n "(cached) " >&6 |
| 7431 | else |
| 7432 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7433 | /* end confdefs.h. */ |
| 7434 | |
| 7435 | int |
| 7436 | main () |
| 7437 | { |
| 7438 | #ifndef __GNUC__ |
| 7439 | choke me |
| 7440 | #endif |
| 7441 | |
| 7442 | ; |
| 7443 | return 0; |
| 7444 | } |
| 7445 | _ACEOF |
| 7446 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 7447 | ac_compiler_gnu=yes |
| 7448 | else |
| 7449 | ac_compiler_gnu=no |
| 7450 | fi |
| 7451 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7452 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 7453 | |
| 7454 | fi |
| 7455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 7456 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 7457 | if test $ac_compiler_gnu = yes; then |
| 7458 | GXX=yes |
| 7459 | else |
| 7460 | GXX= |
| 7461 | fi |
| 7462 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 7463 | ac_save_CXXFLAGS=$CXXFLAGS |
| 7464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 7465 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| 7466 | if test "${ac_cv_prog_cxx_g+set}" = set; then : |
| 7467 | $as_echo_n "(cached) " >&6 |
| 7468 | else |
| 7469 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 7470 | ac_cxx_werror_flag=yes |
| 7471 | ac_cv_prog_cxx_g=no |
| 7472 | CXXFLAGS="-g" |
| 7473 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7474 | /* end confdefs.h. */ |
| 7475 | |
| 7476 | int |
| 7477 | main () |
| 7478 | { |
| 7479 | |
| 7480 | ; |
| 7481 | return 0; |
| 7482 | } |
| 7483 | _ACEOF |
| 7484 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 7485 | ac_cv_prog_cxx_g=yes |
| 7486 | else |
| 7487 | CXXFLAGS="" |
| 7488 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7489 | /* end confdefs.h. */ |
| 7490 | |
| 7491 | int |
| 7492 | main () |
| 7493 | { |
| 7494 | |
| 7495 | ; |
| 7496 | return 0; |
| 7497 | } |
| 7498 | _ACEOF |
| 7499 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 7500 | |
| 7501 | else |
| 7502 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 7503 | CXXFLAGS="-g" |
| 7504 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7505 | /* end confdefs.h. */ |
| 7506 | |
| 7507 | int |
| 7508 | main () |
| 7509 | { |
| 7510 | |
| 7511 | ; |
| 7512 | return 0; |
| 7513 | } |
| 7514 | _ACEOF |
| 7515 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 7516 | ac_cv_prog_cxx_g=yes |
| 7517 | fi |
| 7518 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7519 | fi |
| 7520 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7521 | fi |
| 7522 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7523 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 7524 | fi |
| 7525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 7526 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
| 7527 | if test "$ac_test_CXXFLAGS" = set; then |
| 7528 | CXXFLAGS=$ac_save_CXXFLAGS |
| 7529 | elif test $ac_cv_prog_cxx_g = yes; then |
| 7530 | if test "$GXX" = yes; then |
| 7531 | CXXFLAGS="-g -O2" |
| 7532 | else |
| 7533 | CXXFLAGS="-g" |
| 7534 | fi |
| 7535 | else |
| 7536 | if test "$GXX" = yes; then |
| 7537 | CXXFLAGS="-O2" |
| 7538 | else |
| 7539 | CXXFLAGS= |
| 7540 | fi |
| 7541 | fi |
| 7542 | ac_ext=c |
| 7543 | ac_cpp='$CPP $CPPFLAGS' |
| 7544 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7545 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7546 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7547 | |
| 7548 | depcc="$CXX" am_compiler_list= |
| 7549 | |
| 7550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 7551 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 7552 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : |
| 7553 | $as_echo_n "(cached) " >&6 |
| 7554 | else |
| 7555 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 7556 | # We make a subdir and do the tests there. Otherwise we can end up |
| 7557 | # making bogus files that we don't know about and never remove. For |
| 7558 | # instance it was reported that on HP-UX the gcc test will end up |
| 7559 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 7560 | # in D'. |
| 7561 | mkdir conftest.dir |
| 7562 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 7563 | # using a relative directory. |
| 7564 | cp "$am_depcomp" conftest.dir |
| 7565 | cd conftest.dir |
| 7566 | # We will build objects and dependencies in a subdirectory because |
| 7567 | # it helps to detect inapplicable dependency modes. For instance |
| 7568 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 7569 | # side effect of compilation, but ICC will put the dependencies in |
| 7570 | # the current directory while Tru64 will put them in the object |
| 7571 | # directory. |
| 7572 | mkdir sub |
| 7573 | |
| 7574 | am_cv_CXX_dependencies_compiler_type=none |
| 7575 | if test "$am_compiler_list" = ""; then |
| 7576 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 7577 | fi |
| 7578 | am__universal=false |
| 7579 | case " $depcc " in #( |
| 7580 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 7581 | esac |
| 7582 | |
| 7583 | for depmode in $am_compiler_list; do |
| 7584 | # Setup a source with many dependencies, because some compilers |
| 7585 | # like to wrap large dependency lists on column 80 (with \), and |
| 7586 | # we should not choose a depcomp mode which is confused by this. |
| 7587 | # |
| 7588 | # We need to recreate these files for each test, as the compiler may |
| 7589 | # overwrite some of them when testing with obscure command lines. |
| 7590 | # This happens at least with the AIX C compiler. |
| 7591 | : > sub/conftest.c |
| 7592 | for i in 1 2 3 4 5 6; do |
| 7593 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 7594 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 7595 | # Solaris 8's {/usr,}/bin/sh. |
| 7596 | touch sub/conftst$i.h |
| 7597 | done |
| 7598 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 7599 | |
| 7600 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 7601 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 7602 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 7603 | # versions had trouble with output in subdirs |
| 7604 | am__obj=sub/conftest.${OBJEXT-o} |
| 7605 | am__minus_obj="-o $am__obj" |
| 7606 | case $depmode in |
| 7607 | gcc) |
| 7608 | # This depmode causes a compiler race in universal mode. |
| 7609 | test "$am__universal" = false || continue |
| 7610 | ;; |
| 7611 | nosideeffect) |
| 7612 | # after this tag, mechanisms are not by side-effect, so they'll |
| 7613 | # only be used when explicitly requested |
| 7614 | if test "x$enable_dependency_tracking" = xyes; then |
| 7615 | continue |
| 7616 | else |
| 7617 | break |
| 7618 | fi |
| 7619 | ;; |
| 7620 | msvisualcpp | msvcmsys) |
| 7621 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 7622 | # not run yet. These depmodes are late enough in the game, and |
| 7623 | # so weak that their functioning should not be impacted. |
| 7624 | am__obj=conftest.${OBJEXT-o} |
| 7625 | am__minus_obj= |
| 7626 | ;; |
| 7627 | none) break ;; |
| 7628 | esac |
| 7629 | if depmode=$depmode \ |
| 7630 | source=sub/conftest.c object=$am__obj \ |
| 7631 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 7632 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 7633 | >/dev/null 2>conftest.err && |
| 7634 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 7635 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 7636 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 7637 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 7638 | # icc doesn't choke on unknown options, it will just issue warnings |
| 7639 | # or remarks (even with -Werror). So we grep stderr for any message |
| 7640 | # that says an option was ignored or not supported. |
| 7641 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 7642 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 7643 | # The diagnosis changed in icc 8.0: |
| 7644 | # icc: Command line remark: option '-MP' not supported |
| 7645 | if (grep 'ignoring option' conftest.err || |
| 7646 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 7647 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 7648 | break |
| 7649 | fi |
| 7650 | fi |
| 7651 | done |
| 7652 | |
| 7653 | cd .. |
| 7654 | rm -rf conftest.dir |
| 7655 | else |
| 7656 | am_cv_CXX_dependencies_compiler_type=none |
| 7657 | fi |
| 7658 | |
| 7659 | fi |
| 7660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 7661 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
| 7662 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 7663 | |
| 7664 | if |
| 7665 | test "x$enable_dependency_tracking" != xno \ |
| 7666 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 7667 | am__fastdepCXX_TRUE= |
| 7668 | am__fastdepCXX_FALSE='#' |
| 7669 | else |
| 7670 | am__fastdepCXX_TRUE='#' |
| 7671 | am__fastdepCXX_FALSE= |
| 7672 | fi |
| 7673 | |
| 7674 | |
| 7675 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 7676 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 7677 | (test "X$CXX" != "Xg++"))) ; then |
| 7678 | ac_ext=cpp |
| 7679 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 7680 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7681 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7682 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 7683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 |
| 7684 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } |
| 7685 | if test -z "$CXXCPP"; then |
| 7686 | if test "${ac_cv_prog_CXXCPP+set}" = set; then : |
| 7687 | $as_echo_n "(cached) " >&6 |
| 7688 | else |
| 7689 | # Double quotes because CXXCPP needs to be expanded |
| 7690 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 7691 | do |
| 7692 | ac_preproc_ok=false |
| 7693 | for ac_cxx_preproc_warn_flag in '' yes |
| 7694 | do |
| 7695 | # Use a header file that comes with gcc, so configuring glibc |
| 7696 | # with a fresh cross-compiler works. |
| 7697 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7698 | # <limits.h> exists even on freestanding compilers. |
| 7699 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 7700 | # not just through cpp. "Syntax error" is here to catch this case. |
| 7701 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7702 | /* end confdefs.h. */ |
| 7703 | #ifdef __STDC__ |
| 7704 | # include <limits.h> |
| 7705 | #else |
| 7706 | # include <assert.h> |
| 7707 | #endif |
| 7708 | Syntax error |
| 7709 | _ACEOF |
| 7710 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 7711 | |
| 7712 | else |
| 7713 | # Broken: fails on valid input. |
| 7714 | continue |
| 7715 | fi |
| 7716 | rm -f conftest.err conftest.$ac_ext |
| 7717 | |
| 7718 | # OK, works on sane cases. Now check whether nonexistent headers |
| 7719 | # can be detected and how. |
| 7720 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7721 | /* end confdefs.h. */ |
| 7722 | #include <ac_nonexistent.h> |
| 7723 | _ACEOF |
| 7724 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 7725 | # Broken: success on invalid input. |
| 7726 | continue |
| 7727 | else |
| 7728 | # Passes both tests. |
| 7729 | ac_preproc_ok=: |
| 7730 | break |
| 7731 | fi |
| 7732 | rm -f conftest.err conftest.$ac_ext |
| 7733 | |
| 7734 | done |
| 7735 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 7736 | rm -f conftest.err conftest.$ac_ext |
| 7737 | if $ac_preproc_ok; then : |
| 7738 | break |
| 7739 | fi |
| 7740 | |
| 7741 | done |
| 7742 | ac_cv_prog_CXXCPP=$CXXCPP |
| 7743 | |
| 7744 | fi |
| 7745 | CXXCPP=$ac_cv_prog_CXXCPP |
| 7746 | else |
| 7747 | ac_cv_prog_CXXCPP=$CXXCPP |
| 7748 | fi |
| 7749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 |
| 7750 | $as_echo "$CXXCPP" >&6; } |
| 7751 | ac_preproc_ok=false |
| 7752 | for ac_cxx_preproc_warn_flag in '' yes |
| 7753 | do |
| 7754 | # Use a header file that comes with gcc, so configuring glibc |
| 7755 | # with a fresh cross-compiler works. |
| 7756 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7757 | # <limits.h> exists even on freestanding compilers. |
| 7758 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 7759 | # not just through cpp. "Syntax error" is here to catch this case. |
| 7760 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7761 | /* end confdefs.h. */ |
| 7762 | #ifdef __STDC__ |
| 7763 | # include <limits.h> |
| 7764 | #else |
| 7765 | # include <assert.h> |
| 7766 | #endif |
| 7767 | Syntax error |
| 7768 | _ACEOF |
| 7769 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 7770 | |
| 7771 | else |
| 7772 | # Broken: fails on valid input. |
| 7773 | continue |
| 7774 | fi |
| 7775 | rm -f conftest.err conftest.$ac_ext |
| 7776 | |
| 7777 | # OK, works on sane cases. Now check whether nonexistent headers |
| 7778 | # can be detected and how. |
| 7779 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7780 | /* end confdefs.h. */ |
| 7781 | #include <ac_nonexistent.h> |
| 7782 | _ACEOF |
| 7783 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 7784 | # Broken: success on invalid input. |
| 7785 | continue |
| 7786 | else |
| 7787 | # Passes both tests. |
| 7788 | ac_preproc_ok=: |
| 7789 | break |
| 7790 | fi |
| 7791 | rm -f conftest.err conftest.$ac_ext |
| 7792 | |
| 7793 | done |
| 7794 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 7795 | rm -f conftest.err conftest.$ac_ext |
| 7796 | if $ac_preproc_ok; then : |
| 7797 | |
| 7798 | else |
| 7799 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7800 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 7801 | _lt_caught_CXX_error=yes; } |
| 7802 | fi |
| 7803 | |
| 7804 | ac_ext=c |
| 7805 | ac_cpp='$CPP $CPPFLAGS' |
| 7806 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7807 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7808 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7809 | |
| 7810 | else |
| 7811 | _lt_caught_CXX_error=yes |
| 7812 | fi |
| 7813 | |
| 7814 | |
| 7815 | |
| 7816 | |
| 7817 | |
| 7818 | # Set options |
| 7819 | |
| 7820 | |
| 7821 | |
| 7822 | enable_dlopen=no |
| 7823 | |
| 7824 | |
| 7825 | enable_win32_dll=no |
| 7826 | |
| 7827 | |
| 7828 | # Check whether --enable-shared was given. |
| 7829 | if test "${enable_shared+set}" = set; then : |
| 7830 | enableval=$enable_shared; p=${PACKAGE-default} |
| 7831 | case $enableval in |
| 7832 | yes) enable_shared=yes ;; |
| 7833 | no) enable_shared=no ;; |
| 7834 | *) |
| 7835 | enable_shared=no |
| 7836 | # Look at the argument we got. We use all the common list separators. |
| 7837 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 7838 | for pkg in $enableval; do |
| 7839 | IFS="$lt_save_ifs" |
| 7840 | if test "X$pkg" = "X$p"; then |
| 7841 | enable_shared=yes |
| 7842 | fi |
| 7843 | done |
| 7844 | IFS="$lt_save_ifs" |
| 7845 | ;; |
| 7846 | esac |
| 7847 | else |
| 7848 | enable_shared=yes |
| 7849 | fi |
| 7850 | |
| 7851 | |
| 7852 | |
| 7853 | |
| 7854 | |
| 7855 | |
| 7856 | |
| 7857 | |
| 7858 | |
| 7859 | # Check whether --enable-static was given. |
| 7860 | if test "${enable_static+set}" = set; then : |
| 7861 | enableval=$enable_static; p=${PACKAGE-default} |
| 7862 | case $enableval in |
| 7863 | yes) enable_static=yes ;; |
| 7864 | no) enable_static=no ;; |
| 7865 | *) |
| 7866 | enable_static=no |
| 7867 | # Look at the argument we got. We use all the common list separators. |
| 7868 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 7869 | for pkg in $enableval; do |
| 7870 | IFS="$lt_save_ifs" |
| 7871 | if test "X$pkg" = "X$p"; then |
| 7872 | enable_static=yes |
| 7873 | fi |
| 7874 | done |
| 7875 | IFS="$lt_save_ifs" |
| 7876 | ;; |
| 7877 | esac |
| 7878 | else |
| 7879 | enable_static=yes |
| 7880 | fi |
| 7881 | |
| 7882 | |
| 7883 | |
| 7884 | |
| 7885 | |
| 7886 | |
| 7887 | |
| 7888 | |
| 7889 | |
| 7890 | |
| 7891 | # Check whether --with-pic was given. |
| 7892 | if test "${with_pic+set}" = set; then : |
| 7893 | withval=$with_pic; pic_mode="$withval" |
| 7894 | else |
| 7895 | pic_mode=default |
| 7896 | fi |
| 7897 | |
| 7898 | |
| 7899 | test -z "$pic_mode" && pic_mode=default |
| 7900 | |
| 7901 | |
| 7902 | |
| 7903 | |
| 7904 | |
| 7905 | |
| 7906 | |
| 7907 | # Check whether --enable-fast-install was given. |
| 7908 | if test "${enable_fast_install+set}" = set; then : |
| 7909 | enableval=$enable_fast_install; p=${PACKAGE-default} |
| 7910 | case $enableval in |
| 7911 | yes) enable_fast_install=yes ;; |
| 7912 | no) enable_fast_install=no ;; |
| 7913 | *) |
| 7914 | enable_fast_install=no |
| 7915 | # Look at the argument we got. We use all the common list separators. |
| 7916 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 7917 | for pkg in $enableval; do |
| 7918 | IFS="$lt_save_ifs" |
| 7919 | if test "X$pkg" = "X$p"; then |
| 7920 | enable_fast_install=yes |
| 7921 | fi |
| 7922 | done |
| 7923 | IFS="$lt_save_ifs" |
| 7924 | ;; |
| 7925 | esac |
| 7926 | else |
| 7927 | enable_fast_install=yes |
| 7928 | fi |
| 7929 | |
| 7930 | |
| 7931 | |
| 7932 | |
| 7933 | |
| 7934 | |
| 7935 | |
| 7936 | |
| 7937 | |
| 7938 | |
| 7939 | |
| 7940 | # This can be used to rebuild libtool when needed |
| 7941 | LIBTOOL_DEPS="$ltmain" |
| 7942 | |
| 7943 | # Always use our own libtool. |
| 7944 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 7945 | |
| 7946 | |
| 7947 | |
| 7948 | |
| 7949 | |
| 7950 | |
| 7951 | |
| 7952 | |
| 7953 | |
| 7954 | |
| 7955 | |
| 7956 | |
| 7957 | |
| 7958 | |
| 7959 | |
| 7960 | |
| 7961 | |
| 7962 | |
| 7963 | |
| 7964 | |
| 7965 | |
| 7966 | |
| 7967 | |
| 7968 | |
| 7969 | |
| 7970 | test -z "$LN_S" && LN_S="ln -s" |
| 7971 | |
| 7972 | |
| 7973 | |
| 7974 | |
| 7975 | |
| 7976 | |
| 7977 | |
| 7978 | |
| 7979 | |
| 7980 | |
| 7981 | |
| 7982 | |
| 7983 | |
| 7984 | |
| 7985 | if test -n "${ZSH_VERSION+set}" ; then |
| 7986 | setopt NO_GLOB_SUBST |
| 7987 | fi |
| 7988 | |
| 7989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
| 7990 | $as_echo_n "checking for objdir... " >&6; } |
| 7991 | if test "${lt_cv_objdir+set}" = set; then : |
| 7992 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7993 | else |
| 7994 | rm -f .libs 2>/dev/null |
| 7995 | mkdir .libs 2>/dev/null |
| 7996 | if test -d .libs; then |
| 7997 | lt_cv_objdir=.libs |
| 7998 | else |
| 7999 | # MS-DOS does not allow filenames that begin with a dot. |
| 8000 | lt_cv_objdir=_libs |
| 8001 | fi |
| 8002 | rmdir .libs 2>/dev/null |
| 8003 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
| 8005 | $as_echo "$lt_cv_objdir" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8006 | objdir=$lt_cv_objdir |
| 8007 | |
| 8008 | |
| 8009 | |
| 8010 | |
| 8011 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8012 | cat >>confdefs.h <<_ACEOF |
| 8013 | #define LT_OBJDIR "$lt_cv_objdir/" |
| 8014 | _ACEOF |
| 8015 | |
| 8016 | |
| 8017 | |
| 8018 | |
| 8019 | |
| 8020 | |
| 8021 | |
| 8022 | |
| 8023 | |
| 8024 | |
| 8025 | |
| 8026 | |
| 8027 | |
| 8028 | |
| 8029 | |
| 8030 | |
| 8031 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8032 | case $host_os in |
| 8033 | aix3*) |
| 8034 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 8035 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 8036 | # vanish in a puff of smoke. |
| 8037 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 8038 | COLLECT_NAMES= |
| 8039 | export COLLECT_NAMES |
| 8040 | fi |
| 8041 | ;; |
| 8042 | esac |
| 8043 | |
| 8044 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 8045 | # metacharacters that are still active within double-quoted strings. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8046 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8047 | |
| 8048 | # Same as above, but do not quote variable references. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8049 | double_quote_subst='s/\(["`\\]\)/\\\1/g' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8050 | |
| 8051 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 8052 | # double_quote_subst'ed string. |
| 8053 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 8054 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8055 | # Sed substitution to delay expansion of an escaped single quote. |
| 8056 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
| 8057 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8058 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 8059 | no_glob_subst='s/\*/\\\*/g' |
| 8060 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8061 | # Global variables: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8062 | ofile=libtool |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8063 | can_build_shared=yes |
| 8064 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8065 | # All known linkers require a `.a' archive for static linking (except MSVC, |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8066 | # which needs '.lib'). |
| 8067 | libext=a |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8068 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8069 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 8070 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8071 | old_CC="$CC" |
| 8072 | old_CFLAGS="$CFLAGS" |
| 8073 | |
| 8074 | # Set sane defaults for various variables |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8075 | test -z "$CC" && CC=cc |
| 8076 | test -z "$LTCC" && LTCC=$CC |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8077 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8078 | test -z "$LD" && LD=ld |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8079 | test -z "$ac_objext" && ac_objext=o |
| 8080 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8081 | for cc_temp in $compiler""; do |
| 8082 | case $cc_temp in |
| 8083 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 8084 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 8085 | \-*) ;; |
| 8086 | *) break;; |
| 8087 | esac |
| 8088 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8089 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8090 | |
| 8091 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8092 | # Only perform the check for file, if the check method requires it |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8093 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8094 | case $deplibs_check_method in |
| 8095 | file_magic*) |
| 8096 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
| 8098 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
| 8099 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : |
| 8100 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8101 | else |
| 8102 | case $MAGIC_CMD in |
| 8103 | [\\/*] | ?:[\\/]*) |
| 8104 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 8105 | ;; |
| 8106 | *) |
| 8107 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 8108 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 8109 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 8110 | for ac_dir in $ac_dummy; do |
| 8111 | IFS="$lt_save_ifs" |
| 8112 | test -z "$ac_dir" && ac_dir=. |
| 8113 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 8114 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 8115 | if test -n "$file_magic_test_file"; then |
| 8116 | case $deplibs_check_method in |
| 8117 | "file_magic "*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8118 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8119 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8120 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 8121 | $EGREP "$file_magic_regex" > /dev/null; then |
| 8122 | : |
| 8123 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8124 | cat <<_LT_EOF 1>&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8125 | |
| 8126 | *** Warning: the command libtool uses to detect shared libraries, |
| 8127 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 8128 | *** The result is that libtool may fail to recognize shared libraries |
| 8129 | *** as such. This will affect the creation of libtool libraries that |
| 8130 | *** depend on shared libraries, but programs linked with such libtool |
| 8131 | *** libraries will work regardless of this problem. Nevertheless, you |
| 8132 | *** may want to report the problem to your system manager and/or to |
| 8133 | *** bug-libtool@gnu.org |
| 8134 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8135 | _LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8136 | fi ;; |
| 8137 | esac |
| 8138 | fi |
| 8139 | break |
| 8140 | fi |
| 8141 | done |
| 8142 | IFS="$lt_save_ifs" |
| 8143 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 8144 | ;; |
| 8145 | esac |
| 8146 | fi |
| 8147 | |
| 8148 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8149 | if test -n "$MAGIC_CMD"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 8151 | $as_echo "$MAGIC_CMD" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8152 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8154 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8155 | fi |
| 8156 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8157 | |
| 8158 | |
| 8159 | |
| 8160 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8161 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 8162 | if test -n "$ac_tool_prefix"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
| 8164 | $as_echo_n "checking for file... " >&6; } |
| 8165 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : |
| 8166 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8167 | else |
| 8168 | case $MAGIC_CMD in |
| 8169 | [\\/*] | ?:[\\/]*) |
| 8170 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 8171 | ;; |
| 8172 | *) |
| 8173 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 8174 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 8175 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 8176 | for ac_dir in $ac_dummy; do |
| 8177 | IFS="$lt_save_ifs" |
| 8178 | test -z "$ac_dir" && ac_dir=. |
| 8179 | if test -f $ac_dir/file; then |
| 8180 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 8181 | if test -n "$file_magic_test_file"; then |
| 8182 | case $deplibs_check_method in |
| 8183 | "file_magic "*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8184 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8185 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8186 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 8187 | $EGREP "$file_magic_regex" > /dev/null; then |
| 8188 | : |
| 8189 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8190 | cat <<_LT_EOF 1>&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8191 | |
| 8192 | *** Warning: the command libtool uses to detect shared libraries, |
| 8193 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 8194 | *** The result is that libtool may fail to recognize shared libraries |
| 8195 | *** as such. This will affect the creation of libtool libraries that |
| 8196 | *** depend on shared libraries, but programs linked with such libtool |
| 8197 | *** libraries will work regardless of this problem. Nevertheless, you |
| 8198 | *** may want to report the problem to your system manager and/or to |
| 8199 | *** bug-libtool@gnu.org |
| 8200 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8201 | _LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8202 | fi ;; |
| 8203 | esac |
| 8204 | fi |
| 8205 | break |
| 8206 | fi |
| 8207 | done |
| 8208 | IFS="$lt_save_ifs" |
| 8209 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 8210 | ;; |
| 8211 | esac |
| 8212 | fi |
| 8213 | |
| 8214 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8215 | if test -n "$MAGIC_CMD"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 8217 | $as_echo "$MAGIC_CMD" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8218 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8220 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8221 | fi |
| 8222 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8223 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8224 | else |
| 8225 | MAGIC_CMD=: |
| 8226 | fi |
| 8227 | fi |
| 8228 | |
| 8229 | fi |
| 8230 | ;; |
| 8231 | esac |
| 8232 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8233 | # Use C for the default configuration in the libtool script |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8234 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8235 | lt_save_CC="$CC" |
| 8236 | ac_ext=c |
| 8237 | ac_cpp='$CPP $CPPFLAGS' |
| 8238 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8239 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8240 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8241 | |
| 8242 | |
| 8243 | # Source file extension for C test sources. |
| 8244 | ac_ext=c |
| 8245 | |
| 8246 | # Object file extension for compiled C test sources. |
| 8247 | objext=o |
| 8248 | objext=$objext |
| 8249 | |
| 8250 | # Code to be used in simple compile tests |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8251 | lt_simple_compile_test_code="int some_variable = 0;" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8252 | |
| 8253 | # Code to be used in simple link tests |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8254 | lt_simple_link_test_code='int main(){return(0);}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8255 | |
| 8256 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8257 | |
| 8258 | |
| 8259 | |
| 8260 | |
| 8261 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8262 | # If no C compiler was specified, use CC. |
| 8263 | LTCC=${LTCC-"$CC"} |
| 8264 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8265 | # If no C compiler flags were specified, use CFLAGS. |
| 8266 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 8267 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8268 | # Allow CC to be a program name with arguments. |
| 8269 | compiler=$CC |
| 8270 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8271 | # Save the default compiler, since it gets overwritten when the other |
| 8272 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
| 8273 | compiler_DEFAULT=$CC |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8274 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8275 | # save warnings/boilerplate of simple test code |
| 8276 | ac_outfile=conftest.$ac_objext |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8277 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8278 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 8279 | _lt_compiler_boilerplate=`cat conftest.err` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8280 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8281 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8282 | ac_outfile=conftest.$ac_objext |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8283 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8284 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 8285 | _lt_linker_boilerplate=`cat conftest.err` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8286 | $RM -r conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8287 | |
| 8288 | |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 8289 | ## CAVEAT EMPTOR: |
| 8290 | ## There is no encapsulation within the following macros, do not change |
| 8291 | ## the running order or otherwise move them around unless you know exactly |
| 8292 | ## what you are doing... |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8293 | if test -n "$compiler"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8294 | |
| 8295 | lt_prog_compiler_no_builtin_flag= |
| 8296 | |
| 8297 | if test "$GCC" = yes; then |
| 8298 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 8299 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 8301 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
| 8302 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : |
| 8303 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8304 | else |
| 8305 | lt_cv_prog_compiler_rtti_exceptions=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8306 | ac_outfile=conftest.$ac_objext |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8307 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8308 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 8309 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8310 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8311 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8312 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8313 | # The option is referenced via a variable to avoid confusing sed. |
| 8314 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8315 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8316 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8317 | -e 's:$: $lt_compiler_flag:'` |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 8318 | (eval echo "\"\$as_me:8318: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8319 | (eval "$lt_compile" 2>conftest.err) |
| 8320 | ac_status=$? |
| 8321 | cat conftest.err >&5 |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 8322 | echo "$as_me:8322: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8323 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 8324 | # The compiler can only warn and ignore the option if not recognized |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8325 | # So say no if there are warnings other than the usual output. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8326 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8327 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8328 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8329 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 8330 | fi |
| 8331 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8332 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8333 | |
| 8334 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 8336 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8337 | |
| 8338 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 8339 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 8340 | else |
| 8341 | : |
| 8342 | fi |
| 8343 | |
| 8344 | fi |
| 8345 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8346 | |
| 8347 | |
| 8348 | |
| 8349 | |
| 8350 | |
| 8351 | lt_prog_compiler_wl= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8352 | lt_prog_compiler_pic= |
| 8353 | lt_prog_compiler_static= |
| 8354 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 8356 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8357 | |
| 8358 | if test "$GCC" = yes; then |
| 8359 | lt_prog_compiler_wl='-Wl,' |
| 8360 | lt_prog_compiler_static='-static' |
| 8361 | |
| 8362 | case $host_os in |
| 8363 | aix*) |
| 8364 | # All AIX code is PIC. |
| 8365 | if test "$host_cpu" = ia64; then |
| 8366 | # AIX 5 now supports IA64 processor |
| 8367 | lt_prog_compiler_static='-Bstatic' |
| 8368 | fi |
| 8369 | ;; |
| 8370 | |
| 8371 | amigaos*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8372 | case $host_cpu in |
| 8373 | powerpc) |
| 8374 | # see comment about AmigaOS4 .so support |
| 8375 | lt_prog_compiler_pic='-fPIC' |
| 8376 | ;; |
| 8377 | m68k) |
| 8378 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 8379 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 8380 | # like `-m68040'. |
| 8381 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 8382 | ;; |
| 8383 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8384 | ;; |
| 8385 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8386 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8387 | # PIC is the default for these OSes. |
| 8388 | ;; |
| 8389 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8390 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8391 | # This hack is so that the source file can tell whether it is being |
| 8392 | # built for inclusion in a dll (and should export symbols for example). |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8393 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 8394 | # (--disable-auto-import) libraries |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8395 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 8396 | ;; |
| 8397 | |
| 8398 | darwin* | rhapsody*) |
| 8399 | # PIC is the default on this platform |
| 8400 | # Common symbols not allowed in MH_DYLIB files |
| 8401 | lt_prog_compiler_pic='-fno-common' |
| 8402 | ;; |
| 8403 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8404 | hpux*) |
| 8405 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 8406 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 8407 | # sets the default TLS model and affects inlining. |
| 8408 | case $host_cpu in |
| 8409 | hppa*64*) |
| 8410 | # +Z the default |
| 8411 | ;; |
| 8412 | *) |
| 8413 | lt_prog_compiler_pic='-fPIC' |
| 8414 | ;; |
| 8415 | esac |
| 8416 | ;; |
| 8417 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8418 | interix[3-9]*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8419 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 8420 | # Instead, we relocate shared libraries at runtime. |
| 8421 | ;; |
| 8422 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8423 | msdosdjgpp*) |
| 8424 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 8425 | # on systems that don't support them. |
| 8426 | lt_prog_compiler_can_build_shared=no |
| 8427 | enable_shared=no |
| 8428 | ;; |
| 8429 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8430 | *nto* | *qnx*) |
| 8431 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 8432 | # it will coredump. |
| 8433 | lt_prog_compiler_pic='-fPIC -shared' |
| 8434 | ;; |
| 8435 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8436 | sysv4*MP*) |
| 8437 | if test -d /usr/nec; then |
| 8438 | lt_prog_compiler_pic=-Kconform_pic |
| 8439 | fi |
| 8440 | ;; |
| 8441 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8442 | *) |
| 8443 | lt_prog_compiler_pic='-fPIC' |
| 8444 | ;; |
| 8445 | esac |
| 8446 | else |
| 8447 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 8448 | case $host_os in |
| 8449 | aix*) |
| 8450 | lt_prog_compiler_wl='-Wl,' |
| 8451 | if test "$host_cpu" = ia64; then |
| 8452 | # AIX 5 now supports IA64 processor |
| 8453 | lt_prog_compiler_static='-Bstatic' |
| 8454 | else |
| 8455 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 8456 | fi |
| 8457 | ;; |
| 8458 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8459 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8460 | # This hack is so that the source file can tell whether it is being |
| 8461 | # built for inclusion in a dll (and should export symbols for example). |
| 8462 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 8463 | ;; |
| 8464 | |
| 8465 | hpux9* | hpux10* | hpux11*) |
| 8466 | lt_prog_compiler_wl='-Wl,' |
| 8467 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 8468 | # not for PA HP-UX. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8469 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8470 | hppa*64*|ia64*) |
| 8471 | # +Z the default |
| 8472 | ;; |
| 8473 | *) |
| 8474 | lt_prog_compiler_pic='+Z' |
| 8475 | ;; |
| 8476 | esac |
| 8477 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 8478 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
| 8479 | ;; |
| 8480 | |
| 8481 | irix5* | irix6* | nonstopux*) |
| 8482 | lt_prog_compiler_wl='-Wl,' |
| 8483 | # PIC (with -KPIC) is the default. |
| 8484 | lt_prog_compiler_static='-non_shared' |
| 8485 | ;; |
| 8486 | |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 8487 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8488 | case $cc_basename in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8489 | # old Intel for x86_64 which still supported -KPIC. |
| 8490 | ecc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8491 | lt_prog_compiler_wl='-Wl,' |
| 8492 | lt_prog_compiler_pic='-KPIC' |
| 8493 | lt_prog_compiler_static='-static' |
| 8494 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8495 | # icc used to be incompatible with GCC. |
| 8496 | # ICC 10 doesn't accept -KPIC any more. |
| 8497 | icc* | ifort*) |
| 8498 | lt_prog_compiler_wl='-Wl,' |
| 8499 | lt_prog_compiler_pic='-fPIC' |
| 8500 | lt_prog_compiler_static='-static' |
| 8501 | ;; |
| 8502 | # Lahey Fortran 8.1. |
| 8503 | lf95*) |
| 8504 | lt_prog_compiler_wl='-Wl,' |
| 8505 | lt_prog_compiler_pic='--shared' |
| 8506 | lt_prog_compiler_static='--static' |
| 8507 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8508 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 8509 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 8510 | # which looks to be a dead project) |
| 8511 | lt_prog_compiler_wl='-Wl,' |
| 8512 | lt_prog_compiler_pic='-fpic' |
| 8513 | lt_prog_compiler_static='-Bstatic' |
| 8514 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8515 | ccc*) |
| 8516 | lt_prog_compiler_wl='-Wl,' |
| 8517 | # All Alpha code is PIC. |
| 8518 | lt_prog_compiler_static='-non_shared' |
| 8519 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8520 | xl*) |
| 8521 | # IBM XL C 8.0/Fortran 10.1 on PPC |
| 8522 | lt_prog_compiler_wl='-Wl,' |
| 8523 | lt_prog_compiler_pic='-qpic' |
| 8524 | lt_prog_compiler_static='-qstaticlink' |
| 8525 | ;; |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8526 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8527 | case `$CC -V 2>&1 | sed 5q` in |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8528 | *Sun\ C*) |
| 8529 | # Sun C 5.9 |
| 8530 | lt_prog_compiler_pic='-KPIC' |
| 8531 | lt_prog_compiler_static='-Bstatic' |
| 8532 | lt_prog_compiler_wl='-Wl,' |
| 8533 | ;; |
| 8534 | *Sun\ F*) |
| 8535 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 8536 | lt_prog_compiler_pic='-KPIC' |
| 8537 | lt_prog_compiler_static='-Bstatic' |
| 8538 | lt_prog_compiler_wl='' |
| 8539 | ;; |
| 8540 | esac |
| 8541 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8542 | esac |
| 8543 | ;; |
| 8544 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8545 | newsos6) |
| 8546 | lt_prog_compiler_pic='-KPIC' |
| 8547 | lt_prog_compiler_static='-Bstatic' |
| 8548 | ;; |
| 8549 | |
| 8550 | *nto* | *qnx*) |
| 8551 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 8552 | # it will coredump. |
| 8553 | lt_prog_compiler_pic='-fPIC -shared' |
| 8554 | ;; |
| 8555 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8556 | osf3* | osf4* | osf5*) |
| 8557 | lt_prog_compiler_wl='-Wl,' |
| 8558 | # All OSF/1 code is PIC. |
| 8559 | lt_prog_compiler_static='-non_shared' |
| 8560 | ;; |
| 8561 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8562 | rdos*) |
| 8563 | lt_prog_compiler_static='-non_shared' |
| 8564 | ;; |
| 8565 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8566 | solaris*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8567 | lt_prog_compiler_pic='-KPIC' |
| 8568 | lt_prog_compiler_static='-Bstatic' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8569 | case $cc_basename in |
| 8570 | f77* | f90* | f95*) |
| 8571 | lt_prog_compiler_wl='-Qoption ld ';; |
| 8572 | *) |
| 8573 | lt_prog_compiler_wl='-Wl,';; |
| 8574 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8575 | ;; |
| 8576 | |
| 8577 | sunos4*) |
| 8578 | lt_prog_compiler_wl='-Qoption ld ' |
| 8579 | lt_prog_compiler_pic='-PIC' |
| 8580 | lt_prog_compiler_static='-Bstatic' |
| 8581 | ;; |
| 8582 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8583 | sysv4 | sysv4.2uw2* | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8584 | lt_prog_compiler_wl='-Wl,' |
| 8585 | lt_prog_compiler_pic='-KPIC' |
| 8586 | lt_prog_compiler_static='-Bstatic' |
| 8587 | ;; |
| 8588 | |
| 8589 | sysv4*MP*) |
| 8590 | if test -d /usr/nec ;then |
| 8591 | lt_prog_compiler_pic='-Kconform_pic' |
| 8592 | lt_prog_compiler_static='-Bstatic' |
| 8593 | fi |
| 8594 | ;; |
| 8595 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8596 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 8597 | lt_prog_compiler_wl='-Wl,' |
| 8598 | lt_prog_compiler_pic='-KPIC' |
| 8599 | lt_prog_compiler_static='-Bstatic' |
| 8600 | ;; |
| 8601 | |
| 8602 | unicos*) |
| 8603 | lt_prog_compiler_wl='-Wl,' |
| 8604 | lt_prog_compiler_can_build_shared=no |
| 8605 | ;; |
| 8606 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8607 | uts4*) |
| 8608 | lt_prog_compiler_pic='-pic' |
| 8609 | lt_prog_compiler_static='-Bstatic' |
| 8610 | ;; |
| 8611 | |
| 8612 | *) |
| 8613 | lt_prog_compiler_can_build_shared=no |
| 8614 | ;; |
| 8615 | esac |
| 8616 | fi |
| 8617 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8618 | case $host_os in |
| 8619 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 8620 | *djgpp*) |
| 8621 | lt_prog_compiler_pic= |
| 8622 | ;; |
| 8623 | *) |
| 8624 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 8625 | ;; |
| 8626 | esac |
| 8627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
| 8628 | $as_echo "$lt_prog_compiler_pic" >&6; } |
| 8629 | |
| 8630 | |
| 8631 | |
| 8632 | |
| 8633 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8634 | |
| 8635 | # |
| 8636 | # Check to make sure the PIC flag actually works. |
| 8637 | # |
| 8638 | if test -n "$lt_prog_compiler_pic"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 8640 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
| 8641 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : |
| 8642 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8643 | else |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8644 | lt_cv_prog_compiler_pic_works=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8645 | ac_outfile=conftest.$ac_objext |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8646 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8647 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 8648 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8649 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8650 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8651 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8652 | # The option is referenced via a variable to avoid confusing sed. |
| 8653 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8654 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8655 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8656 | -e 's:$: $lt_compiler_flag:'` |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 8657 | (eval echo "\"\$as_me:8657: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8658 | (eval "$lt_compile" 2>conftest.err) |
| 8659 | ac_status=$? |
| 8660 | cat conftest.err >&5 |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 8661 | echo "$as_me:8661: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8662 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 8663 | # The compiler can only warn and ignore the option if not recognized |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8664 | # So say no if there are warnings other than the usual output. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8665 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8666 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8667 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8668 | lt_cv_prog_compiler_pic_works=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8669 | fi |
| 8670 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8671 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8672 | |
| 8673 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
| 8675 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8676 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8677 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8678 | case $lt_prog_compiler_pic in |
| 8679 | "" | " "*) ;; |
| 8680 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 8681 | esac |
| 8682 | else |
| 8683 | lt_prog_compiler_pic= |
| 8684 | lt_prog_compiler_can_build_shared=no |
| 8685 | fi |
| 8686 | |
| 8687 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8688 | |
| 8689 | |
| 8690 | |
| 8691 | |
| 8692 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8693 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8694 | # |
| 8695 | # Check to make sure the static flag actually works. |
| 8696 | # |
| 8697 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 8699 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| 8700 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : |
| 8701 | $as_echo_n "(cached) " >&6 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8702 | else |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8703 | lt_cv_prog_compiler_static_works=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8704 | save_LDFLAGS="$LDFLAGS" |
| 8705 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8706 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8707 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 8708 | # The linker can only warn and ignore the option if not recognized |
| 8709 | # So say no if there are warnings |
| 8710 | if test -s conftest.err; then |
| 8711 | # Append any errors to the config.log. |
| 8712 | cat conftest.err 1>&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8713 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8714 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8715 | if diff conftest.exp conftest.er2 >/dev/null; then |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8716 | lt_cv_prog_compiler_static_works=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8717 | fi |
| 8718 | else |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8719 | lt_cv_prog_compiler_static_works=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8720 | fi |
| 8721 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8722 | $RM -r conftest* |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8723 | LDFLAGS="$save_LDFLAGS" |
| 8724 | |
| 8725 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
| 8727 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8728 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8729 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8730 | : |
| 8731 | else |
| 8732 | lt_prog_compiler_static= |
| 8733 | fi |
| 8734 | |
| 8735 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8736 | |
| 8737 | |
| 8738 | |
| 8739 | |
| 8740 | |
| 8741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 8742 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 8743 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : |
| 8744 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8745 | else |
| 8746 | lt_cv_prog_compiler_c_o=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8747 | $RM -r conftest 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8748 | mkdir conftest |
| 8749 | cd conftest |
| 8750 | mkdir out |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8751 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8752 | |
| 8753 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 8754 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8755 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8756 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8757 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8758 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8759 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8760 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8761 | -e 's:$: $lt_compiler_flag:'` |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 8762 | (eval echo "\"\$as_me:8762: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8763 | (eval "$lt_compile" 2>out/conftest.err) |
| 8764 | ac_status=$? |
| 8765 | cat out/conftest.err >&5 |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 8766 | echo "$as_me:8766: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8767 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 8768 | then |
| 8769 | # The compiler can only warn and ignore the option if not recognized |
| 8770 | # So say no if there are warnings |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8771 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8772 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 8773 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8774 | lt_cv_prog_compiler_c_o=yes |
| 8775 | fi |
| 8776 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8777 | chmod u+w . 2>&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8778 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8779 | # SGI C++ compiler will create directory out/ii_files/ for |
| 8780 | # template instantiation |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8781 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 8782 | $RM out/* && rmdir out |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8783 | cd .. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8784 | $RM -r conftest |
| 8785 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8786 | |
| 8787 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 8789 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 8790 | |
| 8791 | |
| 8792 | |
| 8793 | |
| 8794 | |
| 8795 | |
| 8796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 8797 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 8798 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : |
| 8799 | $as_echo_n "(cached) " >&6 |
| 8800 | else |
| 8801 | lt_cv_prog_compiler_c_o=no |
| 8802 | $RM -r conftest 2>/dev/null |
| 8803 | mkdir conftest |
| 8804 | cd conftest |
| 8805 | mkdir out |
| 8806 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8807 | |
| 8808 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 8809 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8810 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8811 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8812 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8813 | lt_compile=`echo "$ac_compile" | $SED \ |
| 8814 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8815 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8816 | -e 's:$: $lt_compiler_flag:'` |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 8817 | (eval echo "\"\$as_me:8817: $lt_compile\"" >&5) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8818 | (eval "$lt_compile" 2>out/conftest.err) |
| 8819 | ac_status=$? |
| 8820 | cat out/conftest.err >&5 |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 8821 | echo "$as_me:8821: \$? = $ac_status" >&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8822 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 8823 | then |
| 8824 | # The compiler can only warn and ignore the option if not recognized |
| 8825 | # So say no if there are warnings |
| 8826 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 8827 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 8828 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 8829 | lt_cv_prog_compiler_c_o=yes |
| 8830 | fi |
| 8831 | fi |
| 8832 | chmod u+w . 2>&5 |
| 8833 | $RM conftest* |
| 8834 | # SGI C++ compiler will create directory out/ii_files/ for |
| 8835 | # template instantiation |
| 8836 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 8837 | $RM out/* && rmdir out |
| 8838 | cd .. |
| 8839 | $RM -r conftest |
| 8840 | $RM conftest* |
| 8841 | |
| 8842 | fi |
| 8843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 8844 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 8845 | |
| 8846 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8847 | |
| 8848 | |
| 8849 | hard_links="nottested" |
| 8850 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
| 8851 | # do not overwrite the value of need_locks provided by the user |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| 8853 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8854 | hard_links=yes |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8855 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8856 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 8857 | touch conftest.a |
| 8858 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 8859 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 8861 | $as_echo "$hard_links" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8862 | if test "$hard_links" = no; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8863 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 8864 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8865 | need_locks=warn |
| 8866 | fi |
| 8867 | else |
| 8868 | need_locks=no |
| 8869 | fi |
| 8870 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8871 | |
| 8872 | |
| 8873 | |
| 8874 | |
| 8875 | |
| 8876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 8877 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8878 | |
| 8879 | runpath_var= |
| 8880 | allow_undefined_flag= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8881 | always_export_symbols=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8882 | archive_cmds= |
| 8883 | archive_expsym_cmds= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8884 | compiler_needs_object=no |
| 8885 | enable_shared_with_static_runtimes=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8886 | export_dynamic_flag_spec= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8887 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 8888 | hardcode_automatic=no |
| 8889 | hardcode_direct=no |
| 8890 | hardcode_direct_absolute=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8891 | hardcode_libdir_flag_spec= |
| 8892 | hardcode_libdir_flag_spec_ld= |
| 8893 | hardcode_libdir_separator= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8894 | hardcode_minus_L=no |
| 8895 | hardcode_shlibpath_var=unsupported |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8896 | inherit_rpath=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8897 | link_all_deplibs=unknown |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8898 | module_cmds= |
| 8899 | module_expsym_cmds= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8900 | old_archive_from_new_cmds= |
| 8901 | old_archive_from_expsyms_cmds= |
| 8902 | thread_safe_flag_spec= |
| 8903 | whole_archive_flag_spec= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8904 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 8905 | # included in the symbol list |
| 8906 | include_expsyms= |
| 8907 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 8908 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 8909 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 8910 | # as well as any symbol that contains `d'. |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8911 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8912 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 8913 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 8914 | # the symbol is explicitly referenced. Since portable code cannot |
| 8915 | # rely on this symbol name, it's probably fine to never include it in |
| 8916 | # preloaded symbol tables. |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8917 | # Exclude shared library initialization/finalization symbols. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8918 | extract_expsyms_cmds= |
| 8919 | |
| 8920 | case $host_os in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8921 | cygwin* | mingw* | pw32* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8922 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 8923 | # When not using gcc, we currently assume that we are using |
| 8924 | # Microsoft Visual C++. |
| 8925 | if test "$GCC" != yes; then |
| 8926 | with_gnu_ld=no |
| 8927 | fi |
| 8928 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8929 | interix*) |
| 8930 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 8931 | with_gnu_ld=yes |
| 8932 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8933 | openbsd*) |
| 8934 | with_gnu_ld=no |
| 8935 | ;; |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 8936 | linux* | k*bsd*-gnu) |
| 8937 | link_all_deplibs=no |
| 8938 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8939 | esac |
| 8940 | |
| 8941 | ld_shlibs=yes |
| 8942 | if test "$with_gnu_ld" = yes; then |
| 8943 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 8944 | wlarc='${wl}' |
| 8945 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8946 | # Set some defaults for GNU ld with shared library support. These |
| 8947 | # are reset later if shared libraries are not supported. Putting them |
| 8948 | # here allows them to be overridden if necessary. |
| 8949 | runpath_var=LD_RUN_PATH |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8950 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8951 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 8952 | # ancient GNU ld didn't support --whole-archive et. al. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8953 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 8954 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 8955 | else |
| 8956 | whole_archive_flag_spec= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8957 | fi |
| 8958 | supports_anon_versioning=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8959 | case `$LD -v 2>&1` in |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 8960 | *GNU\ gold*) supports_anon_versioning=yes ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8961 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 8962 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 8963 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 8964 | *\ 2.11.*) ;; # other 2.11 versions |
| 8965 | *) supports_anon_versioning=yes ;; |
| 8966 | esac |
| 8967 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8968 | # See if GNU ld supports shared libraries. |
| 8969 | case $host_os in |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8970 | aix[3-9]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8971 | # On AIX/PPC, the GNU linker is very broken |
| 8972 | if test "$host_cpu" != ia64; then |
| 8973 | ld_shlibs=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8974 | cat <<_LT_EOF 1>&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8975 | |
| 8976 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 8977 | *** to be unable to reliably create shared libraries on AIX. |
| 8978 | *** Therefore, libtool is disabling shared libraries support. If you |
| 8979 | *** really care for shared libraries, you may want to modify your PATH |
| 8980 | *** so that a non-GNU linker is found, and then restart. |
| 8981 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8982 | _LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8983 | fi |
| 8984 | ;; |
| 8985 | |
| 8986 | amigaos*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8987 | case $host_cpu in |
| 8988 | powerpc) |
| 8989 | # see comment about AmigaOS4 .so support |
| 8990 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8991 | archive_expsym_cmds='' |
| 8992 | ;; |
| 8993 | m68k) |
| 8994 | 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)' |
| 8995 | hardcode_libdir_flag_spec='-L$libdir' |
| 8996 | hardcode_minus_L=yes |
| 8997 | ;; |
| 8998 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8999 | ;; |
| 9000 | |
| 9001 | beos*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9002 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9003 | allow_undefined_flag=unsupported |
| 9004 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 9005 | # support --undefined. This deserves some investigation. FIXME |
| 9006 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9007 | else |
| 9008 | ld_shlibs=no |
| 9009 | fi |
| 9010 | ;; |
| 9011 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9012 | cygwin* | mingw* | pw32* | cegcc*) |
| 9013 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9014 | # as there is no search path for DLLs. |
| 9015 | hardcode_libdir_flag_spec='-L$libdir' |
| 9016 | allow_undefined_flag=unsupported |
| 9017 | always_export_symbols=no |
| 9018 | enable_shared_with_static_runtimes=yes |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9019 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9020 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9021 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9022 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9023 | # If the export-symbols file already is a .def file (1st line |
| 9024 | # is EXPORTS), use it as is; otherwise, prepend... |
| 9025 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 9026 | cp $export_symbols $output_objdir/$soname.def; |
| 9027 | else |
| 9028 | echo EXPORTS > $output_objdir/$soname.def; |
| 9029 | cat $export_symbols >> $output_objdir/$soname.def; |
| 9030 | fi~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9031 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9032 | else |
| 9033 | ld_shlibs=no |
| 9034 | fi |
| 9035 | ;; |
| 9036 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9037 | interix[3-9]*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9038 | hardcode_direct=no |
| 9039 | hardcode_shlibpath_var=no |
| 9040 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 9041 | export_dynamic_flag_spec='${wl}-E' |
| 9042 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 9043 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 9044 | # default) and relocated if they conflict, which is a slow very memory |
| 9045 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 9046 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 9047 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 9048 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 9049 | 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' |
| 9050 | ;; |
| 9051 | |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 9052 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9053 | tmp_diet=no |
| 9054 | if test "$host_os" = linux-dietlibc; then |
| 9055 | case $cc_basename in |
| 9056 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
| 9057 | esac |
| 9058 | fi |
| 9059 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 9060 | && test "$tmp_diet" = no |
| 9061 | then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9062 | tmp_addflag= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9063 | tmp_sharedflag='-shared' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9064 | case $cc_basename,$host_cpu in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9065 | pgcc*) # Portland Group C compiler |
| 9066 | 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' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9067 | tmp_addflag=' $pic_flag' |
| 9068 | ;; |
| 9069 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9070 | 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' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9071 | tmp_addflag=' $pic_flag -Mnomain' ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9072 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9073 | tmp_addflag=' -i_dynamic' ;; |
| 9074 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 9075 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 9076 | ifc* | ifort*) # Intel Fortran compiler |
| 9077 | tmp_addflag=' -nofor_main' ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9078 | lf95*) # Lahey Fortran 8.1 |
| 9079 | whole_archive_flag_spec= |
| 9080 | tmp_sharedflag='--shared' ;; |
| 9081 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
| 9082 | tmp_sharedflag='-qmkshrobj' |
| 9083 | tmp_addflag= ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9084 | esac |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9085 | case `$CC -V 2>&1 | sed 5q` in |
| 9086 | *Sun\ C*) # Sun C 5.9 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9087 | 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' |
| 9088 | compiler_needs_object=yes |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9089 | tmp_sharedflag='-G' ;; |
| 9090 | *Sun\ F*) # Sun Fortran 8.3 |
| 9091 | tmp_sharedflag='-G' ;; |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9092 | esac |
| 9093 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9094 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9095 | if test "x$supports_anon_versioning" = xyes; then |
| 9096 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 9097 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 9098 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 9099 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 9100 | fi |
| 9101 | |
| 9102 | case $cc_basename in |
| 9103 | xlf*) |
| 9104 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 9105 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
| 9106 | hardcode_libdir_flag_spec= |
| 9107 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 9108 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' |
| 9109 | if test "x$supports_anon_versioning" = xyes; then |
| 9110 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 9111 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 9112 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 9113 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
| 9114 | fi |
| 9115 | ;; |
| 9116 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9117 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9118 | ld_shlibs=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9119 | fi |
| 9120 | ;; |
| 9121 | |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 9122 | netbsd* | netbsdelf*-gnu) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9123 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9124 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 9125 | wlarc= |
| 9126 | else |
| 9127 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9128 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9129 | fi |
| 9130 | ;; |
| 9131 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9132 | solaris*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9133 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9134 | ld_shlibs=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9135 | cat <<_LT_EOF 1>&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9136 | |
| 9137 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 9138 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 9139 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 9140 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 9141 | *** your PATH or compiler configuration so that the native linker is |
| 9142 | *** used, and then restart. |
| 9143 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9144 | _LT_EOF |
| 9145 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9146 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9147 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9148 | else |
| 9149 | ld_shlibs=no |
| 9150 | fi |
| 9151 | ;; |
| 9152 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9153 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 9154 | case `$LD -v 2>&1` in |
| 9155 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 9156 | ld_shlibs=no |
| 9157 | cat <<_LT_EOF 1>&2 |
| 9158 | |
| 9159 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 9160 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 9161 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 9162 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 9163 | *** your PATH or compiler configuration so that the native linker is |
| 9164 | *** used, and then restart. |
| 9165 | |
| 9166 | _LT_EOF |
| 9167 | ;; |
| 9168 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9169 | # For security reasons, it is highly recommended that you always |
| 9170 | # use absolute paths for naming shared libraries, and exclude the |
| 9171 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 9172 | # requires that you compile everything twice, which is a pain. |
| 9173 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 9174 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9175 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9176 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9177 | else |
| 9178 | ld_shlibs=no |
| 9179 | fi |
| 9180 | ;; |
| 9181 | esac |
| 9182 | ;; |
| 9183 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9184 | sunos4*) |
| 9185 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 9186 | wlarc= |
| 9187 | hardcode_direct=yes |
| 9188 | hardcode_shlibpath_var=no |
| 9189 | ;; |
| 9190 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9191 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9192 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9193 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9194 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9195 | else |
| 9196 | ld_shlibs=no |
| 9197 | fi |
| 9198 | ;; |
| 9199 | esac |
| 9200 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9201 | if test "$ld_shlibs" = no; then |
| 9202 | runpath_var= |
| 9203 | hardcode_libdir_flag_spec= |
| 9204 | export_dynamic_flag_spec= |
| 9205 | whole_archive_flag_spec= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9206 | fi |
| 9207 | else |
| 9208 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 9209 | case $host_os in |
| 9210 | aix3*) |
| 9211 | allow_undefined_flag=unsupported |
| 9212 | always_export_symbols=yes |
| 9213 | 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' |
| 9214 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 9215 | # are no directories specified by -L. |
| 9216 | hardcode_minus_L=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9217 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9218 | # Neither direct hardcoding nor static linking is supported with a |
| 9219 | # broken collect2. |
| 9220 | hardcode_direct=unsupported |
| 9221 | fi |
| 9222 | ;; |
| 9223 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9224 | aix[4-9]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9225 | if test "$host_cpu" = ia64; then |
| 9226 | # On IA64, the linker does run time linking by default, so we don't |
| 9227 | # have to do anything special. |
| 9228 | aix_use_runtimelinking=no |
| 9229 | exp_sym_flag='-Bexport' |
| 9230 | no_entry_flag="" |
| 9231 | else |
| 9232 | # If we're using GNU nm, then we don't want the "-C" option. |
| 9233 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9234 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 9235 | 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' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9236 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9237 | 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' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9238 | fi |
| 9239 | aix_use_runtimelinking=no |
| 9240 | |
| 9241 | # Test if we are trying to use run time linking or normal |
| 9242 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 9243 | # need to do runtime linking. |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9244 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9245 | for ld_flag in $LDFLAGS; do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9246 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 9247 | aix_use_runtimelinking=yes |
| 9248 | break |
| 9249 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9250 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9251 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9252 | esac |
| 9253 | |
| 9254 | exp_sym_flag='-bexport' |
| 9255 | no_entry_flag='-bnoentry' |
| 9256 | fi |
| 9257 | |
| 9258 | # When large executables or shared objects are built, AIX ld can |
| 9259 | # have problems creating the table of contents. If linking a library |
| 9260 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 9261 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 9262 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 9263 | |
| 9264 | archive_cmds='' |
| 9265 | hardcode_direct=yes |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9266 | hardcode_direct_absolute=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9267 | hardcode_libdir_separator=':' |
| 9268 | link_all_deplibs=yes |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9269 | file_list_spec='${wl}-f,' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9270 | |
| 9271 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9272 | case $host_os in aix4.[012]|aix4.[012].*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9273 | # We only want to do this on AIX 4.2 and lower, the check |
| 9274 | # below for broken collect2 doesn't work under 4.3+ |
| 9275 | collect2name=`${CC} -print-prog-name=collect2` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9276 | if test -f "$collect2name" && |
| 9277 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9278 | then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9279 | # We have reworked collect2 |
| 9280 | : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9281 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9282 | # We have old collect2 |
| 9283 | hardcode_direct=unsupported |
| 9284 | # It fails to find uninstalled libraries when the uninstalled |
| 9285 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 9286 | # to unsupported forces relinking |
| 9287 | hardcode_minus_L=yes |
| 9288 | hardcode_libdir_flag_spec='-L$libdir' |
| 9289 | hardcode_libdir_separator= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9290 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9291 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9292 | esac |
| 9293 | shared_flag='-shared' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9294 | if test "$aix_use_runtimelinking" = yes; then |
| 9295 | shared_flag="$shared_flag "'${wl}-G' |
| 9296 | fi |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 9297 | link_all_deplibs=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9298 | else |
| 9299 | # not using gcc |
| 9300 | if test "$host_cpu" = ia64; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9301 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 9302 | # chokes on -Wl,-G. The following line is correct: |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9303 | shared_flag='-G' |
| 9304 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9305 | if test "$aix_use_runtimelinking" = yes; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9306 | shared_flag='${wl}-G' |
| 9307 | else |
| 9308 | shared_flag='${wl}-bM:SRE' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9309 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9310 | fi |
| 9311 | fi |
| 9312 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9313 | export_dynamic_flag_spec='${wl}-bexpall' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9314 | # It seems that -bexpall does not export symbols beginning with |
| 9315 | # underscore (_), so it is better to generate a list of symbols to export. |
| 9316 | always_export_symbols=yes |
| 9317 | if test "$aix_use_runtimelinking" = yes; then |
| 9318 | # Warning - without using the other runtime loading flags (-brtl), |
| 9319 | # -berok will link without error, but may produce a broken library. |
| 9320 | allow_undefined_flag='-berok' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9321 | # Determine the default libpath from the value encoded in an |
| 9322 | # empty executable. |
| 9323 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9324 | /* end confdefs.h. */ |
| 9325 | |
| 9326 | int |
| 9327 | main () |
| 9328 | { |
| 9329 | |
| 9330 | ; |
| 9331 | return 0; |
| 9332 | } |
| 9333 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9334 | if ac_fn_c_try_link "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9335 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9336 | lt_aix_libpath_sed=' |
| 9337 | /Import File Strings/,/^$/ { |
| 9338 | /^0/ { |
| 9339 | s/^0 *\(.*\)$/\1/ |
| 9340 | p |
| 9341 | } |
| 9342 | }' |
| 9343 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9344 | # Check for a 64-bit object if we didn't find anything. |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9345 | if test -z "$aix_libpath"; then |
| 9346 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9347 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9348 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9349 | rm -f core conftest.err conftest.$ac_objext \ |
| 9350 | conftest$ac_exeext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9351 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 9352 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9353 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9354 | 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" |
| 9355 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9356 | if test "$host_cpu" = ia64; then |
| 9357 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 9358 | allow_undefined_flag="-z nodefs" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9359 | 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" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9360 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9361 | # Determine the default libpath from the value encoded in an |
| 9362 | # empty executable. |
| 9363 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9364 | /* end confdefs.h. */ |
| 9365 | |
| 9366 | int |
| 9367 | main () |
| 9368 | { |
| 9369 | |
| 9370 | ; |
| 9371 | return 0; |
| 9372 | } |
| 9373 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9374 | if ac_fn_c_try_link "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9375 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9376 | lt_aix_libpath_sed=' |
| 9377 | /Import File Strings/,/^$/ { |
| 9378 | /^0/ { |
| 9379 | s/^0 *\(.*\)$/\1/ |
| 9380 | p |
| 9381 | } |
| 9382 | }' |
| 9383 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9384 | # Check for a 64-bit object if we didn't find anything. |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9385 | if test -z "$aix_libpath"; then |
| 9386 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9387 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9388 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9389 | rm -f core conftest.err conftest.$ac_objext \ |
| 9390 | conftest$ac_exeext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9391 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 9392 | |
| 9393 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9394 | # Warning - without using the other run time loading flags, |
| 9395 | # -berok will link without error, but may produce a broken library. |
| 9396 | no_undefined_flag=' ${wl}-bernotok' |
| 9397 | allow_undefined_flag=' ${wl}-berok' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9398 | # Exported symbols can be pulled into shared objects from archives |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9399 | whole_archive_flag_spec='$convenience' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9400 | archive_cmds_need_lc=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9401 | # This is similar to how AIX traditionally builds its shared libraries. |
| 9402 | 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' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9403 | fi |
| 9404 | fi |
| 9405 | ;; |
| 9406 | |
| 9407 | amigaos*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9408 | case $host_cpu in |
| 9409 | powerpc) |
| 9410 | # see comment about AmigaOS4 .so support |
| 9411 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9412 | archive_expsym_cmds='' |
| 9413 | ;; |
| 9414 | m68k) |
| 9415 | 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)' |
| 9416 | hardcode_libdir_flag_spec='-L$libdir' |
| 9417 | hardcode_minus_L=yes |
| 9418 | ;; |
| 9419 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9420 | ;; |
| 9421 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9422 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9423 | export_dynamic_flag_spec=-rdynamic |
| 9424 | ;; |
| 9425 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9426 | cygwin* | mingw* | pw32* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9427 | # When not using gcc, we currently assume that we are using |
| 9428 | # Microsoft Visual C++. |
| 9429 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 9430 | # no search path for DLLs. |
| 9431 | hardcode_libdir_flag_spec=' ' |
| 9432 | allow_undefined_flag=unsupported |
| 9433 | # Tell ltmain to make .lib files, not .a files. |
| 9434 | libext=lib |
| 9435 | # Tell ltmain to make .dll files, not .so files. |
| 9436 | shrext_cmds=".dll" |
| 9437 | # FIXME: Setting linknames here is a bad hack. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9438 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9439 | # The linker will automatically build a .lib file if we build a DLL. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9440 | old_archive_from_new_cmds='true' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9441 | # FIXME: Should let the user specify the lib program. |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9442 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9443 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 9444 | enable_shared_with_static_runtimes=yes |
| 9445 | ;; |
| 9446 | |
| 9447 | darwin* | rhapsody*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9448 | |
| 9449 | |
| 9450 | archive_cmds_need_lc=no |
| 9451 | hardcode_direct=no |
| 9452 | hardcode_automatic=yes |
| 9453 | hardcode_shlibpath_var=unsupported |
| 9454 | whole_archive_flag_spec='' |
| 9455 | link_all_deplibs=yes |
| 9456 | allow_undefined_flag="$_lt_dar_allow_undefined" |
| 9457 | case $cc_basename in |
| 9458 | ifort*) _lt_dar_can_shared=yes ;; |
| 9459 | *) _lt_dar_can_shared=$GCC ;; |
| 9460 | esac |
| 9461 | if test "$_lt_dar_can_shared" = "yes"; then |
| 9462 | output_verbose_link_cmd=echo |
| 9463 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
| 9464 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 9465 | 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}" |
| 9466 | 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}" |
| 9467 | |
| 9468 | else |
| 9469 | ld_shlibs=no |
| 9470 | fi |
| 9471 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9472 | ;; |
| 9473 | |
| 9474 | dgux*) |
| 9475 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9476 | hardcode_libdir_flag_spec='-L$libdir' |
| 9477 | hardcode_shlibpath_var=no |
| 9478 | ;; |
| 9479 | |
| 9480 | freebsd1*) |
| 9481 | ld_shlibs=no |
| 9482 | ;; |
| 9483 | |
| 9484 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 9485 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 9486 | # does not break anything, and helps significantly (at the cost of a little |
| 9487 | # extra space). |
| 9488 | freebsd2.2*) |
| 9489 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 9490 | hardcode_libdir_flag_spec='-R$libdir' |
| 9491 | hardcode_direct=yes |
| 9492 | hardcode_shlibpath_var=no |
| 9493 | ;; |
| 9494 | |
| 9495 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 9496 | freebsd2*) |
| 9497 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 9498 | hardcode_direct=yes |
| 9499 | hardcode_minus_L=yes |
| 9500 | hardcode_shlibpath_var=no |
| 9501 | ;; |
| 9502 | |
| 9503 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9504 | freebsd* | dragonfly*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9505 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 9506 | hardcode_libdir_flag_spec='-R$libdir' |
| 9507 | hardcode_direct=yes |
| 9508 | hardcode_shlibpath_var=no |
| 9509 | ;; |
| 9510 | |
| 9511 | hpux9*) |
| 9512 | if test "$GCC" = yes; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9513 | 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' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9514 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9515 | 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' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9516 | fi |
| 9517 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 9518 | hardcode_libdir_separator=: |
| 9519 | hardcode_direct=yes |
| 9520 | |
| 9521 | # hardcode_minus_L: Not really in the search PATH, |
| 9522 | # but as the default location of the library. |
| 9523 | hardcode_minus_L=yes |
| 9524 | export_dynamic_flag_spec='${wl}-E' |
| 9525 | ;; |
| 9526 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9527 | hpux10*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9528 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9529 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 9530 | else |
| 9531 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 9532 | fi |
| 9533 | if test "$with_gnu_ld" = no; then |
| 9534 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9535 | hardcode_libdir_flag_spec_ld='+b $libdir' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9536 | hardcode_libdir_separator=: |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9537 | hardcode_direct=yes |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9538 | hardcode_direct_absolute=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9539 | export_dynamic_flag_spec='${wl}-E' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9540 | # hardcode_minus_L: Not really in the search PATH, |
| 9541 | # but as the default location of the library. |
| 9542 | hardcode_minus_L=yes |
| 9543 | fi |
| 9544 | ;; |
| 9545 | |
| 9546 | hpux11*) |
| 9547 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 9548 | case $host_cpu in |
| 9549 | hppa*64*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9550 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9551 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9552 | ia64*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9553 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9554 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9555 | *) |
| 9556 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 9557 | ;; |
| 9558 | esac |
| 9559 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9560 | case $host_cpu in |
| 9561 | hppa*64*) |
| 9562 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9563 | ;; |
| 9564 | ia64*) |
| 9565 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9566 | ;; |
| 9567 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9568 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9569 | ;; |
| 9570 | esac |
| 9571 | fi |
| 9572 | if test "$with_gnu_ld" = no; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9573 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 9574 | hardcode_libdir_separator=: |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 9575 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9576 | case $host_cpu in |
| 9577 | hppa*64*|ia64*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9578 | hardcode_direct=no |
| 9579 | hardcode_shlibpath_var=no |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 9580 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9581 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9582 | hardcode_direct=yes |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9583 | hardcode_direct_absolute=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9584 | export_dynamic_flag_spec='${wl}-E' |
| 9585 | |
| 9586 | # hardcode_minus_L: Not really in the search PATH, |
| 9587 | # but as the default location of the library. |
| 9588 | hardcode_minus_L=yes |
| 9589 | ;; |
| 9590 | esac |
| 9591 | fi |
| 9592 | ;; |
| 9593 | |
| 9594 | irix5* | irix6* | nonstopux*) |
| 9595 | if test "$GCC" = yes; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9596 | 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' |
| 9597 | # Try to use the -exported_symbol ld option, if it does not |
| 9598 | # work, assume that -exports_file does not work either and |
| 9599 | # implicitly export all symbols. |
| 9600 | save_LDFLAGS="$LDFLAGS" |
| 9601 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
| 9602 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9603 | /* end confdefs.h. */ |
| 9604 | int foo(void) {} |
| 9605 | _ACEOF |
| 9606 | if ac_fn_c_try_link "$LINENO"; then : |
| 9607 | 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' |
| 9608 | |
| 9609 | fi |
| 9610 | rm -f core conftest.err conftest.$ac_objext \ |
| 9611 | conftest$ac_exeext conftest.$ac_ext |
| 9612 | LDFLAGS="$save_LDFLAGS" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9613 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9614 | 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' |
| 9615 | 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' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9616 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9617 | archive_cmds_need_lc='no' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9618 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9619 | hardcode_libdir_separator=: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9620 | inherit_rpath=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9621 | link_all_deplibs=yes |
| 9622 | ;; |
| 9623 | |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 9624 | netbsd* | netbsdelf*-gnu) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9625 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9626 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 9627 | else |
| 9628 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 9629 | fi |
| 9630 | hardcode_libdir_flag_spec='-R$libdir' |
| 9631 | hardcode_direct=yes |
| 9632 | hardcode_shlibpath_var=no |
| 9633 | ;; |
| 9634 | |
| 9635 | newsos6) |
| 9636 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9637 | hardcode_direct=yes |
| 9638 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9639 | hardcode_libdir_separator=: |
| 9640 | hardcode_shlibpath_var=no |
| 9641 | ;; |
| 9642 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9643 | *nto* | *qnx*) |
| 9644 | ;; |
| 9645 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9646 | openbsd*) |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9647 | if test -f /usr/libexec/ld.so; then |
| 9648 | hardcode_direct=yes |
| 9649 | hardcode_shlibpath_var=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9650 | hardcode_direct_absolute=yes |
| 9651 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9652 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 9653 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 9654 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 9655 | export_dynamic_flag_spec='${wl}-E' |
| 9656 | else |
| 9657 | case $host_os in |
| 9658 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 9659 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 9660 | hardcode_libdir_flag_spec='-R$libdir' |
| 9661 | ;; |
| 9662 | *) |
| 9663 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 9664 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 9665 | ;; |
| 9666 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9667 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9668 | else |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9669 | ld_shlibs=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9670 | fi |
| 9671 | ;; |
| 9672 | |
| 9673 | os2*) |
| 9674 | hardcode_libdir_flag_spec='-L$libdir' |
| 9675 | hardcode_minus_L=yes |
| 9676 | allow_undefined_flag=unsupported |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9677 | 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' |
| 9678 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9679 | ;; |
| 9680 | |
| 9681 | osf3*) |
| 9682 | if test "$GCC" = yes; then |
| 9683 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9684 | 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' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9685 | else |
| 9686 | allow_undefined_flag=' -expect_unresolved \*' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9687 | 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' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9688 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9689 | archive_cmds_need_lc='no' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9690 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9691 | hardcode_libdir_separator=: |
| 9692 | ;; |
| 9693 | |
| 9694 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 9695 | if test "$GCC" = yes; then |
| 9696 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9697 | 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' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9698 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9699 | else |
| 9700 | allow_undefined_flag=' -expect_unresolved \*' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9701 | 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' |
| 9702 | 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~ |
| 9703 | $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' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9704 | |
| 9705 | # Both c and cxx compiler support -rpath directly |
| 9706 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 9707 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9708 | archive_cmds_need_lc='no' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9709 | hardcode_libdir_separator=: |
| 9710 | ;; |
| 9711 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9712 | solaris*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9713 | no_undefined_flag=' -z defs' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9714 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9715 | wlarc='${wl}' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9716 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9717 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 9718 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9719 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9720 | case `$CC -V 2>&1` in |
| 9721 | *"Compilers 5.0"*) |
| 9722 | wlarc='' |
| 9723 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9724 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 9725 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
| 9726 | ;; |
| 9727 | *) |
| 9728 | wlarc='${wl}' |
| 9729 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9730 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 9731 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 9732 | ;; |
| 9733 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9734 | fi |
| 9735 | hardcode_libdir_flag_spec='-R$libdir' |
| 9736 | hardcode_shlibpath_var=no |
| 9737 | case $host_os in |
| 9738 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9739 | *) |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9740 | # The compiler driver will combine and reorder linker options, |
| 9741 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
| 9742 | # but is careful enough not to reorder. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9743 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9744 | if test "$GCC" = yes; then |
| 9745 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 9746 | else |
| 9747 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
| 9748 | fi |
| 9749 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9750 | esac |
| 9751 | link_all_deplibs=yes |
| 9752 | ;; |
| 9753 | |
| 9754 | sunos4*) |
| 9755 | if test "x$host_vendor" = xsequent; then |
| 9756 | # Use $CC to link under sequent, because it throws in some extra .o |
| 9757 | # files that make .init and .fini sections work. |
| 9758 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9759 | else |
| 9760 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 9761 | fi |
| 9762 | hardcode_libdir_flag_spec='-L$libdir' |
| 9763 | hardcode_direct=yes |
| 9764 | hardcode_minus_L=yes |
| 9765 | hardcode_shlibpath_var=no |
| 9766 | ;; |
| 9767 | |
| 9768 | sysv4) |
| 9769 | case $host_vendor in |
| 9770 | sni) |
| 9771 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9772 | hardcode_direct=yes # is this really true??? |
| 9773 | ;; |
| 9774 | siemens) |
| 9775 | ## LD is ld it makes a PLAMLIB |
| 9776 | ## CC just makes a GrossModule. |
| 9777 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 9778 | reload_cmds='$CC -r -o $output$reload_objs' |
| 9779 | hardcode_direct=no |
| 9780 | ;; |
| 9781 | motorola) |
| 9782 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9783 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 9784 | ;; |
| 9785 | esac |
| 9786 | runpath_var='LD_RUN_PATH' |
| 9787 | hardcode_shlibpath_var=no |
| 9788 | ;; |
| 9789 | |
| 9790 | sysv4.3*) |
| 9791 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9792 | hardcode_shlibpath_var=no |
| 9793 | export_dynamic_flag_spec='-Bexport' |
| 9794 | ;; |
| 9795 | |
| 9796 | sysv4*MP*) |
| 9797 | if test -d /usr/nec; then |
| 9798 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9799 | hardcode_shlibpath_var=no |
| 9800 | runpath_var=LD_RUN_PATH |
| 9801 | hardcode_runpath_var=yes |
| 9802 | ld_shlibs=yes |
| 9803 | fi |
| 9804 | ;; |
| 9805 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9806 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9807 | no_undefined_flag='${wl}-z,text' |
| 9808 | archive_cmds_need_lc=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9809 | hardcode_shlibpath_var=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9810 | runpath_var='LD_RUN_PATH' |
bryner | 07f8ef5 | 2006-09-05 19:42:57 +0000 | [diff] [blame] | 9811 | |
mmentovai | 3261e8b | 2006-09-06 02:56:44 +0000 | [diff] [blame] | 9812 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9813 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9814 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
mmentovai | 3261e8b | 2006-09-06 02:56:44 +0000 | [diff] [blame] | 9815 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9816 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9817 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
mmentovai | 3261e8b | 2006-09-06 02:56:44 +0000 | [diff] [blame] | 9818 | fi |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 9819 | ;; |
| 9820 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9821 | sysv5* | sco3.2v5* | sco5v6*) |
| 9822 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 9823 | # link with -lc, and that would cause any symbols used from libc to |
| 9824 | # always be unresolved, which means just about no library would |
| 9825 | # ever link correctly. If we're not using GNU ld we use -z text |
| 9826 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 9827 | # as -z defs. |
| 9828 | no_undefined_flag='${wl}-z,text' |
| 9829 | allow_undefined_flag='${wl}-z,nodefs' |
| 9830 | archive_cmds_need_lc=no |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 9831 | hardcode_shlibpath_var=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9832 | hardcode_libdir_flag_spec='${wl}-R,$libdir' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9833 | hardcode_libdir_separator=':' |
| 9834 | link_all_deplibs=yes |
| 9835 | export_dynamic_flag_spec='${wl}-Bexport' |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 9836 | runpath_var='LD_RUN_PATH' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9837 | |
| 9838 | if test "$GCC" = yes; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9839 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9840 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9841 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9842 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9843 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9844 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9845 | ;; |
| 9846 | |
| 9847 | uts4*) |
| 9848 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9849 | hardcode_libdir_flag_spec='-L$libdir' |
| 9850 | hardcode_shlibpath_var=no |
| 9851 | ;; |
| 9852 | |
| 9853 | *) |
| 9854 | ld_shlibs=no |
| 9855 | ;; |
| 9856 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9857 | |
| 9858 | if test x$host_vendor = xsni; then |
| 9859 | case $host in |
| 9860 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 9861 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 9862 | ;; |
| 9863 | esac |
| 9864 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9865 | fi |
| 9866 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
| 9868 | $as_echo "$ld_shlibs" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9869 | test "$ld_shlibs" = no && can_build_shared=no |
| 9870 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9871 | with_gnu_ld=$with_gnu_ld |
| 9872 | |
| 9873 | |
| 9874 | |
| 9875 | |
| 9876 | |
| 9877 | |
| 9878 | |
| 9879 | |
| 9880 | |
| 9881 | |
| 9882 | |
| 9883 | |
| 9884 | |
| 9885 | |
| 9886 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9887 | # |
| 9888 | # Do we need to explicitly link libc? |
| 9889 | # |
| 9890 | case "x$archive_cmds_need_lc" in |
| 9891 | x|xyes) |
| 9892 | # Assume -lc should be added |
| 9893 | archive_cmds_need_lc=yes |
| 9894 | |
| 9895 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 9896 | case $archive_cmds in |
| 9897 | *'~'*) |
| 9898 | # FIXME: we may have to deal with multi-command sequences. |
| 9899 | ;; |
| 9900 | '$CC '*) |
| 9901 | # Test whether the compiler implicitly links with -lc since on some |
| 9902 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 9903 | # to ld, don't add -lc before -lgcc. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
| 9905 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
| 9906 | $RM conftest* |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9907 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9908 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9909 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9910 | (eval $ac_compile) 2>&5 |
| 9911 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9912 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9913 | test $ac_status = 0; } 2>conftest.err; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9914 | soname=conftest |
| 9915 | lib=conftest |
| 9916 | libobjs=conftest.$ac_objext |
| 9917 | deplibs= |
| 9918 | wl=$lt_prog_compiler_wl |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9919 | pic_flag=$lt_prog_compiler_pic |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9920 | compiler_flags=-v |
| 9921 | linker_flags=-v |
| 9922 | verstring= |
| 9923 | output_objdir=. |
| 9924 | libname=conftest |
| 9925 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 9926 | allow_undefined_flag= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9927 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
| 9928 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9929 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9930 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9931 | test $ac_status = 0; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9932 | then |
| 9933 | archive_cmds_need_lc=no |
| 9934 | else |
| 9935 | archive_cmds_need_lc=yes |
| 9936 | fi |
| 9937 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 9938 | else |
| 9939 | cat conftest.err 1>&5 |
| 9940 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9941 | $RM conftest* |
| 9942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 |
| 9943 | $as_echo "$archive_cmds_need_lc" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9944 | ;; |
| 9945 | esac |
| 9946 | fi |
| 9947 | ;; |
| 9948 | esac |
| 9949 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9950 | |
| 9951 | |
| 9952 | |
| 9953 | |
| 9954 | |
| 9955 | |
| 9956 | |
| 9957 | |
| 9958 | |
| 9959 | |
| 9960 | |
| 9961 | |
| 9962 | |
| 9963 | |
| 9964 | |
| 9965 | |
| 9966 | |
| 9967 | |
| 9968 | |
| 9969 | |
| 9970 | |
| 9971 | |
| 9972 | |
| 9973 | |
| 9974 | |
| 9975 | |
| 9976 | |
| 9977 | |
| 9978 | |
| 9979 | |
| 9980 | |
| 9981 | |
| 9982 | |
| 9983 | |
| 9984 | |
| 9985 | |
| 9986 | |
| 9987 | |
| 9988 | |
| 9989 | |
| 9990 | |
| 9991 | |
| 9992 | |
| 9993 | |
| 9994 | |
| 9995 | |
| 9996 | |
| 9997 | |
| 9998 | |
| 9999 | |
| 10000 | |
| 10001 | |
| 10002 | |
| 10003 | |
| 10004 | |
| 10005 | |
| 10006 | |
| 10007 | |
| 10008 | |
| 10009 | |
| 10010 | |
| 10011 | |
| 10012 | |
| 10013 | |
| 10014 | |
| 10015 | |
| 10016 | |
| 10017 | |
| 10018 | |
| 10019 | |
| 10020 | |
| 10021 | |
| 10022 | |
| 10023 | |
| 10024 | |
| 10025 | |
| 10026 | |
| 10027 | |
| 10028 | |
| 10029 | |
| 10030 | |
| 10031 | |
| 10032 | |
| 10033 | |
| 10034 | |
| 10035 | |
| 10036 | |
| 10037 | |
| 10038 | |
| 10039 | |
| 10040 | |
| 10041 | |
| 10042 | |
| 10043 | |
| 10044 | |
| 10045 | |
| 10046 | |
| 10047 | |
| 10048 | |
| 10049 | |
| 10050 | |
| 10051 | |
| 10052 | |
| 10053 | |
| 10054 | |
| 10055 | |
| 10056 | |
| 10057 | |
| 10058 | |
| 10059 | |
| 10060 | |
| 10061 | |
| 10062 | |
| 10063 | |
| 10064 | |
| 10065 | |
| 10066 | |
| 10067 | |
| 10068 | |
| 10069 | |
| 10070 | |
| 10071 | |
| 10072 | |
| 10073 | |
| 10074 | |
| 10075 | |
| 10076 | |
| 10077 | |
| 10078 | |
| 10079 | |
| 10080 | |
| 10081 | |
| 10082 | |
| 10083 | |
| 10084 | |
| 10085 | |
| 10086 | |
| 10087 | |
| 10088 | |
| 10089 | |
| 10090 | |
| 10091 | |
| 10092 | |
| 10093 | |
| 10094 | |
| 10095 | |
| 10096 | |
| 10097 | |
| 10098 | |
| 10099 | |
| 10100 | |
| 10101 | |
| 10102 | |
| 10103 | |
| 10104 | |
| 10105 | |
| 10106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| 10107 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 10108 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10109 | if test "$GCC" = yes; then |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 10110 | case $host_os in |
| 10111 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
| 10112 | *) lt_awk_arg="/^libraries:/" ;; |
| 10113 | esac |
| 10114 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10115 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10116 | # if the path contains ";" then we assume it to be the separator |
| 10117 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 10118 | # assumed that no part of a normal pathname contains ";" but that should |
| 10119 | # okay in the real world where ";" in dirpaths is itself problematic. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10120 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10121 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10122 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10123 | fi |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 10124 | # Ok, now we have the path, separated by spaces, we can step through it |
| 10125 | # and add multilib dir if necessary. |
| 10126 | lt_tmp_lt_search_path_spec= |
| 10127 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| 10128 | for lt_sys_path in $lt_search_path_spec; do |
| 10129 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
| 10130 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
| 10131 | else |
| 10132 | test -d "$lt_sys_path" && \ |
| 10133 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 10134 | fi |
| 10135 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10136 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 10137 | BEGIN {RS=" "; FS="/|\n";} { |
| 10138 | lt_foo=""; |
| 10139 | lt_count=0; |
| 10140 | for (lt_i = NF; lt_i > 0; lt_i--) { |
| 10141 | if ($lt_i != "" && $lt_i != ".") { |
| 10142 | if ($lt_i == "..") { |
| 10143 | lt_count++; |
| 10144 | } else { |
| 10145 | if (lt_count == 0) { |
| 10146 | lt_foo="/" $lt_i lt_foo; |
| 10147 | } else { |
| 10148 | lt_count--; |
| 10149 | } |
| 10150 | } |
| 10151 | } |
| 10152 | } |
| 10153 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
| 10154 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
| 10155 | }'` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10156 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10157 | else |
| 10158 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 10159 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10160 | library_names_spec= |
| 10161 | libname_spec='lib$name' |
| 10162 | soname_spec= |
| 10163 | shrext_cmds=".so" |
| 10164 | postinstall_cmds= |
| 10165 | postuninstall_cmds= |
| 10166 | finish_cmds= |
| 10167 | finish_eval= |
| 10168 | shlibpath_var= |
| 10169 | shlibpath_overrides_runpath=unknown |
| 10170 | version_type=none |
| 10171 | dynamic_linker="$host_os ld.so" |
| 10172 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10173 | need_lib_prefix=unknown |
| 10174 | hardcode_into_libs=no |
| 10175 | |
| 10176 | # when you set need_version to no, make sure it does not cause -set_version |
| 10177 | # flags to be left without arguments |
| 10178 | need_version=unknown |
| 10179 | |
| 10180 | case $host_os in |
| 10181 | aix3*) |
| 10182 | version_type=linux |
| 10183 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 10184 | shlibpath_var=LIBPATH |
| 10185 | |
| 10186 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 10187 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10188 | ;; |
| 10189 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 10190 | aix[4-9]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10191 | version_type=linux |
| 10192 | need_lib_prefix=no |
| 10193 | need_version=no |
| 10194 | hardcode_into_libs=yes |
| 10195 | if test "$host_cpu" = ia64; then |
| 10196 | # AIX 5 supports IA64 |
| 10197 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 10198 | shlibpath_var=LD_LIBRARY_PATH |
| 10199 | else |
| 10200 | # With GCC up to 2.95.x, collect2 would create an import file |
| 10201 | # for dependence libraries. The import file would start with |
| 10202 | # the line `#! .'. This would cause the generated library to |
| 10203 | # depend on `.', always an invalid library. This was fixed in |
| 10204 | # development snapshots of GCC prior to 3.0. |
| 10205 | case $host_os in |
| 10206 | aix4 | aix4.[01] | aix4.[01].*) |
| 10207 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 10208 | echo ' yes ' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10209 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10210 | : |
| 10211 | else |
| 10212 | can_build_shared=no |
| 10213 | fi |
| 10214 | ;; |
| 10215 | esac |
| 10216 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 10217 | # soname into executable. Probably we can add versioning support to |
| 10218 | # collect2, so additional links can be useful in future. |
| 10219 | if test "$aix_use_runtimelinking" = yes; then |
| 10220 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 10221 | # instead of lib<name>.a to let people know that these are not |
| 10222 | # typical AIX shared libraries. |
| 10223 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10224 | else |
| 10225 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 10226 | # and later when we are not doing run time linking. |
| 10227 | library_names_spec='${libname}${release}.a $libname.a' |
| 10228 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10229 | fi |
| 10230 | shlibpath_var=LIBPATH |
| 10231 | fi |
| 10232 | ;; |
| 10233 | |
| 10234 | amigaos*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10235 | case $host_cpu in |
| 10236 | powerpc) |
| 10237 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 10238 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 10239 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10240 | ;; |
| 10241 | m68k) |
| 10242 | library_names_spec='$libname.ixlibrary $libname.a' |
| 10243 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 10244 | 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' |
| 10245 | ;; |
| 10246 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10247 | ;; |
| 10248 | |
| 10249 | beos*) |
| 10250 | library_names_spec='${libname}${shared_ext}' |
| 10251 | dynamic_linker="$host_os ld.so" |
| 10252 | shlibpath_var=LIBRARY_PATH |
| 10253 | ;; |
| 10254 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10255 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10256 | version_type=linux |
| 10257 | need_version=no |
| 10258 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10259 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10260 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 10261 | shlibpath_var=LD_LIBRARY_PATH |
| 10262 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 10263 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 10264 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 10265 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 10266 | # libtool to hard-code these into programs |
| 10267 | ;; |
| 10268 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10269 | cygwin* | mingw* | pw32* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10270 | version_type=windows |
| 10271 | shrext_cmds=".dll" |
| 10272 | need_version=no |
| 10273 | need_lib_prefix=no |
| 10274 | |
| 10275 | case $GCC,$host_os in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10276 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10277 | library_names_spec='$libname.dll.a' |
| 10278 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 10279 | postinstall_cmds='base_file=`basename \${file}`~ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10280 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10281 | dldir=$destdir/`dirname \$dlpath`~ |
| 10282 | test -d \$dldir || mkdir -p \$dldir~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10283 | $install_prog $dir/$dlname \$dldir/$dlname~ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10284 | chmod a+x \$dldir/$dlname~ |
| 10285 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 10286 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 10287 | fi' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10288 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 10289 | dlpath=$dir/\$dldll~ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10290 | $RM \$dlpath' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10291 | shlibpath_overrides_runpath=yes |
| 10292 | |
| 10293 | case $host_os in |
| 10294 | cygwin*) |
| 10295 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 10296 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 10297 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 10298 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10299 | mingw* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10300 | # MinGW DLLs use traditional 'lib' prefix |
| 10301 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10302 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 10303 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10304 | # It is most probably a Windows format PATH printed by |
| 10305 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 10306 | # path with ; separators, and with drive letters. We can handle the |
| 10307 | # drive letters (cygwin fileutils understands them), so leave them, |
| 10308 | # especially as we might pass files found there to a mingw objdump, |
| 10309 | # which wouldn't understand a cygwinified path. Ahh. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10310 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10311 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10312 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10313 | fi |
| 10314 | ;; |
| 10315 | pw32*) |
| 10316 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10317 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10318 | ;; |
| 10319 | esac |
| 10320 | ;; |
| 10321 | |
| 10322 | *) |
| 10323 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 10324 | ;; |
| 10325 | esac |
| 10326 | dynamic_linker='Win32 ld.exe' |
| 10327 | # FIXME: first we should search . and the directory the executable is in |
| 10328 | shlibpath_var=PATH |
| 10329 | ;; |
| 10330 | |
| 10331 | darwin* | rhapsody*) |
| 10332 | dynamic_linker="$host_os dyld" |
| 10333 | version_type=darwin |
| 10334 | need_lib_prefix=no |
| 10335 | need_version=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10336 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10337 | soname_spec='${libname}${release}${major}$shared_ext' |
| 10338 | shlibpath_overrides_runpath=yes |
| 10339 | shlibpath_var=DYLD_LIBRARY_PATH |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10340 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 10341 | |
| 10342 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10343 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 10344 | ;; |
| 10345 | |
| 10346 | dgux*) |
| 10347 | version_type=linux |
| 10348 | need_lib_prefix=no |
| 10349 | need_version=no |
| 10350 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 10351 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10352 | shlibpath_var=LD_LIBRARY_PATH |
| 10353 | ;; |
| 10354 | |
| 10355 | freebsd1*) |
| 10356 | dynamic_linker=no |
| 10357 | ;; |
| 10358 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10359 | freebsd* | dragonfly*) |
| 10360 | # DragonFly does not have aout. When/if they implement a new |
| 10361 | # versioning mechanism, adjust this. |
| 10362 | if test -x /usr/bin/objformat; then |
| 10363 | objformat=`/usr/bin/objformat` |
| 10364 | else |
| 10365 | case $host_os in |
| 10366 | freebsd[123]*) objformat=aout ;; |
| 10367 | *) objformat=elf ;; |
| 10368 | esac |
| 10369 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10370 | version_type=freebsd-$objformat |
| 10371 | case $version_type in |
| 10372 | freebsd-elf*) |
| 10373 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10374 | need_version=no |
| 10375 | need_lib_prefix=no |
| 10376 | ;; |
| 10377 | freebsd-*) |
| 10378 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 10379 | need_version=yes |
| 10380 | ;; |
| 10381 | esac |
| 10382 | shlibpath_var=LD_LIBRARY_PATH |
| 10383 | case $host_os in |
| 10384 | freebsd2*) |
| 10385 | shlibpath_overrides_runpath=yes |
| 10386 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10387 | freebsd3.[01]* | freebsdelf3.[01]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10388 | shlibpath_overrides_runpath=yes |
| 10389 | hardcode_into_libs=yes |
| 10390 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10391 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 10392 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10393 | shlibpath_overrides_runpath=no |
| 10394 | hardcode_into_libs=yes |
| 10395 | ;; |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 10396 | *) # from 4.6 on, and DragonFly |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10397 | shlibpath_overrides_runpath=yes |
| 10398 | hardcode_into_libs=yes |
| 10399 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10400 | esac |
| 10401 | ;; |
| 10402 | |
| 10403 | gnu*) |
| 10404 | version_type=linux |
| 10405 | need_lib_prefix=no |
| 10406 | need_version=no |
| 10407 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 10408 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10409 | shlibpath_var=LD_LIBRARY_PATH |
| 10410 | hardcode_into_libs=yes |
| 10411 | ;; |
| 10412 | |
| 10413 | hpux9* | hpux10* | hpux11*) |
| 10414 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 10415 | # link against other versions. |
| 10416 | version_type=sunos |
| 10417 | need_lib_prefix=no |
| 10418 | need_version=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10419 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10420 | ia64*) |
| 10421 | shrext_cmds='.so' |
| 10422 | hardcode_into_libs=yes |
| 10423 | dynamic_linker="$host_os dld.so" |
| 10424 | shlibpath_var=LD_LIBRARY_PATH |
| 10425 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 10426 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10427 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10428 | if test "X$HPUX_IA64_MODE" = X32; then |
| 10429 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 10430 | else |
| 10431 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 10432 | fi |
| 10433 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 10434 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10435 | hppa*64*) |
| 10436 | shrext_cmds='.sl' |
| 10437 | hardcode_into_libs=yes |
| 10438 | dynamic_linker="$host_os dld.sl" |
| 10439 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 10440 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 10441 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10442 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10443 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 10444 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 10445 | ;; |
| 10446 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10447 | shrext_cmds='.sl' |
| 10448 | dynamic_linker="$host_os dld.sl" |
| 10449 | shlibpath_var=SHLIB_PATH |
| 10450 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 10451 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10452 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10453 | ;; |
| 10454 | esac |
| 10455 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 10456 | postinstall_cmds='chmod 555 $lib' |
| 10457 | ;; |
| 10458 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 10459 | interix[3-9]*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10460 | version_type=linux |
| 10461 | need_lib_prefix=no |
| 10462 | need_version=no |
| 10463 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10464 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10465 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 10466 | shlibpath_var=LD_LIBRARY_PATH |
| 10467 | shlibpath_overrides_runpath=no |
| 10468 | hardcode_into_libs=yes |
| 10469 | ;; |
| 10470 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10471 | irix5* | irix6* | nonstopux*) |
| 10472 | case $host_os in |
| 10473 | nonstopux*) version_type=nonstopux ;; |
| 10474 | *) |
| 10475 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 10476 | version_type=linux |
| 10477 | else |
| 10478 | version_type=irix |
| 10479 | fi ;; |
| 10480 | esac |
| 10481 | need_lib_prefix=no |
| 10482 | need_version=no |
| 10483 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10484 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10485 | case $host_os in |
| 10486 | irix5* | nonstopux*) |
| 10487 | libsuff= shlibsuff= |
| 10488 | ;; |
| 10489 | *) |
| 10490 | case $LD in # libtool.m4 will add one of these switches to LD |
| 10491 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 10492 | libsuff= shlibsuff= libmagic=32-bit;; |
| 10493 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 10494 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 10495 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 10496 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 10497 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 10498 | esac |
| 10499 | ;; |
| 10500 | esac |
| 10501 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 10502 | shlibpath_overrides_runpath=no |
| 10503 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 10504 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 10505 | hardcode_into_libs=yes |
| 10506 | ;; |
| 10507 | |
| 10508 | # No shared lib support for Linux oldld, aout, or coff. |
| 10509 | linux*oldld* | linux*aout* | linux*coff*) |
| 10510 | dynamic_linker=no |
| 10511 | ;; |
| 10512 | |
| 10513 | # This must be Linux ELF. |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 10514 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10515 | version_type=linux |
| 10516 | need_lib_prefix=no |
| 10517 | need_version=no |
| 10518 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10519 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10520 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 10521 | shlibpath_var=LD_LIBRARY_PATH |
| 10522 | shlibpath_overrides_runpath=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10523 | # Some binutils ld are patched to set DT_RUNPATH |
| 10524 | save_LDFLAGS=$LDFLAGS |
| 10525 | save_libdir=$libdir |
| 10526 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
| 10527 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
| 10528 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10529 | /* end confdefs.h. */ |
| 10530 | |
| 10531 | int |
| 10532 | main () |
| 10533 | { |
| 10534 | |
| 10535 | ; |
| 10536 | return 0; |
| 10537 | } |
| 10538 | _ACEOF |
| 10539 | if ac_fn_c_try_link "$LINENO"; then : |
| 10540 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
| 10541 | shlibpath_overrides_runpath=yes |
| 10542 | fi |
| 10543 | fi |
| 10544 | rm -f core conftest.err conftest.$ac_objext \ |
| 10545 | conftest$ac_exeext conftest.$ac_ext |
| 10546 | LDFLAGS=$save_LDFLAGS |
| 10547 | libdir=$save_libdir |
| 10548 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10549 | # This implies no fast_install, which is unacceptable. |
| 10550 | # Some rework will be needed to allow for fast_install |
| 10551 | # before this can be enabled. |
| 10552 | hardcode_into_libs=yes |
| 10553 | |
| 10554 | # Append ld.so.conf contents to the search path |
| 10555 | if test -f /etc/ld.so.conf; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10556 | 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' ' '` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10557 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 10558 | fi |
| 10559 | |
| 10560 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 10561 | # powerpc, because MkLinux only supported shared libraries with the |
| 10562 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 10563 | # most powerpc-linux boxes support dynamic linking these days and |
| 10564 | # people can always --disable-shared, the test was removed, and we |
| 10565 | # assume the GNU/Linux dynamic linker is in use. |
| 10566 | dynamic_linker='GNU/Linux ld.so' |
| 10567 | ;; |
| 10568 | |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 10569 | netbsdelf*-gnu) |
| 10570 | version_type=linux |
| 10571 | need_lib_prefix=no |
| 10572 | need_version=no |
| 10573 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10574 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10575 | shlibpath_var=LD_LIBRARY_PATH |
| 10576 | shlibpath_overrides_runpath=no |
| 10577 | hardcode_into_libs=yes |
| 10578 | dynamic_linker='NetBSD ld.elf_so' |
| 10579 | ;; |
| 10580 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10581 | netbsd*) |
| 10582 | version_type=sunos |
| 10583 | need_lib_prefix=no |
| 10584 | need_version=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10585 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10586 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10587 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 10588 | dynamic_linker='NetBSD (a.out) ld.so' |
| 10589 | else |
| 10590 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10591 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10592 | dynamic_linker='NetBSD ld.elf_so' |
| 10593 | fi |
| 10594 | shlibpath_var=LD_LIBRARY_PATH |
| 10595 | shlibpath_overrides_runpath=yes |
| 10596 | hardcode_into_libs=yes |
| 10597 | ;; |
| 10598 | |
| 10599 | newsos6) |
| 10600 | version_type=linux |
| 10601 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10602 | shlibpath_var=LD_LIBRARY_PATH |
| 10603 | shlibpath_overrides_runpath=yes |
| 10604 | ;; |
| 10605 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10606 | *nto* | *qnx*) |
| 10607 | version_type=qnx |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10608 | need_lib_prefix=no |
| 10609 | need_version=no |
| 10610 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10611 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10612 | shlibpath_var=LD_LIBRARY_PATH |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10613 | shlibpath_overrides_runpath=no |
| 10614 | hardcode_into_libs=yes |
| 10615 | dynamic_linker='ldqnx.so' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10616 | ;; |
| 10617 | |
| 10618 | openbsd*) |
| 10619 | version_type=sunos |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10620 | sys_lib_dlsearch_path_spec="/usr/lib" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10621 | need_lib_prefix=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10622 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 10623 | case $host_os in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10624 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 10625 | *) need_version=no ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10626 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10627 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10628 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 10629 | shlibpath_var=LD_LIBRARY_PATH |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10630 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10631 | case $host_os in |
| 10632 | openbsd2.[89] | openbsd2.[89].*) |
| 10633 | shlibpath_overrides_runpath=no |
| 10634 | ;; |
| 10635 | *) |
| 10636 | shlibpath_overrides_runpath=yes |
| 10637 | ;; |
| 10638 | esac |
| 10639 | else |
| 10640 | shlibpath_overrides_runpath=yes |
| 10641 | fi |
| 10642 | ;; |
| 10643 | |
| 10644 | os2*) |
| 10645 | libname_spec='$name' |
| 10646 | shrext_cmds=".dll" |
| 10647 | need_lib_prefix=no |
| 10648 | library_names_spec='$libname${shared_ext} $libname.a' |
| 10649 | dynamic_linker='OS/2 ld.exe' |
| 10650 | shlibpath_var=LIBPATH |
| 10651 | ;; |
| 10652 | |
| 10653 | osf3* | osf4* | osf5*) |
| 10654 | version_type=osf |
| 10655 | need_lib_prefix=no |
| 10656 | need_version=no |
| 10657 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10658 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10659 | shlibpath_var=LD_LIBRARY_PATH |
| 10660 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 10661 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 10662 | ;; |
| 10663 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 10664 | rdos*) |
| 10665 | dynamic_linker=no |
| 10666 | ;; |
| 10667 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10668 | solaris*) |
| 10669 | version_type=linux |
| 10670 | need_lib_prefix=no |
| 10671 | need_version=no |
| 10672 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10673 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10674 | shlibpath_var=LD_LIBRARY_PATH |
| 10675 | shlibpath_overrides_runpath=yes |
| 10676 | hardcode_into_libs=yes |
| 10677 | # ldd complains unless libraries are executable |
| 10678 | postinstall_cmds='chmod +x $lib' |
| 10679 | ;; |
| 10680 | |
| 10681 | sunos4*) |
| 10682 | version_type=sunos |
| 10683 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10684 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 10685 | shlibpath_var=LD_LIBRARY_PATH |
| 10686 | shlibpath_overrides_runpath=yes |
| 10687 | if test "$with_gnu_ld" = yes; then |
| 10688 | need_lib_prefix=no |
| 10689 | fi |
| 10690 | need_version=yes |
| 10691 | ;; |
| 10692 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10693 | sysv4 | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10694 | version_type=linux |
| 10695 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10696 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10697 | shlibpath_var=LD_LIBRARY_PATH |
| 10698 | case $host_vendor in |
| 10699 | sni) |
| 10700 | shlibpath_overrides_runpath=no |
| 10701 | need_lib_prefix=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10702 | runpath_var=LD_RUN_PATH |
| 10703 | ;; |
| 10704 | siemens) |
| 10705 | need_lib_prefix=no |
| 10706 | ;; |
| 10707 | motorola) |
| 10708 | need_lib_prefix=no |
| 10709 | need_version=no |
| 10710 | shlibpath_overrides_runpath=no |
| 10711 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 10712 | ;; |
| 10713 | esac |
| 10714 | ;; |
| 10715 | |
| 10716 | sysv4*MP*) |
| 10717 | if test -d /usr/nec ;then |
| 10718 | version_type=linux |
| 10719 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 10720 | soname_spec='$libname${shared_ext}.$major' |
| 10721 | shlibpath_var=LD_LIBRARY_PATH |
| 10722 | fi |
| 10723 | ;; |
| 10724 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10725 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 10726 | version_type=freebsd-elf |
| 10727 | need_lib_prefix=no |
| 10728 | need_version=no |
| 10729 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10730 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10731 | shlibpath_var=LD_LIBRARY_PATH |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10732 | shlibpath_overrides_runpath=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10733 | hardcode_into_libs=yes |
| 10734 | if test "$with_gnu_ld" = yes; then |
| 10735 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10736 | else |
| 10737 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10738 | case $host_os in |
| 10739 | sco3.2v5*) |
| 10740 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 10741 | ;; |
| 10742 | esac |
| 10743 | fi |
| 10744 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 10745 | ;; |
| 10746 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10747 | tpf*) |
| 10748 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 10749 | version_type=linux |
| 10750 | need_lib_prefix=no |
| 10751 | need_version=no |
| 10752 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10753 | shlibpath_var=LD_LIBRARY_PATH |
| 10754 | shlibpath_overrides_runpath=no |
| 10755 | hardcode_into_libs=yes |
| 10756 | ;; |
| 10757 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10758 | uts4*) |
| 10759 | version_type=linux |
| 10760 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10761 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10762 | shlibpath_var=LD_LIBRARY_PATH |
| 10763 | ;; |
| 10764 | |
| 10765 | *) |
| 10766 | dynamic_linker=no |
| 10767 | ;; |
| 10768 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| 10770 | $as_echo "$dynamic_linker" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10771 | test "$dynamic_linker" = no && can_build_shared=no |
| 10772 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10773 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 10774 | if test "$GCC" = yes; then |
| 10775 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 10776 | fi |
| 10777 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10778 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 10779 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 10780 | fi |
| 10781 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 10782 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 10783 | fi |
| 10784 | |
| 10785 | |
| 10786 | |
| 10787 | |
| 10788 | |
| 10789 | |
| 10790 | |
| 10791 | |
| 10792 | |
| 10793 | |
| 10794 | |
| 10795 | |
| 10796 | |
| 10797 | |
| 10798 | |
| 10799 | |
| 10800 | |
| 10801 | |
| 10802 | |
| 10803 | |
| 10804 | |
| 10805 | |
| 10806 | |
| 10807 | |
| 10808 | |
| 10809 | |
| 10810 | |
| 10811 | |
| 10812 | |
| 10813 | |
| 10814 | |
| 10815 | |
| 10816 | |
| 10817 | |
| 10818 | |
| 10819 | |
| 10820 | |
| 10821 | |
| 10822 | |
| 10823 | |
| 10824 | |
| 10825 | |
| 10826 | |
| 10827 | |
| 10828 | |
| 10829 | |
| 10830 | |
| 10831 | |
| 10832 | |
| 10833 | |
| 10834 | |
| 10835 | |
| 10836 | |
| 10837 | |
| 10838 | |
| 10839 | |
| 10840 | |
| 10841 | |
| 10842 | |
| 10843 | |
| 10844 | |
| 10845 | |
| 10846 | |
| 10847 | |
| 10848 | |
| 10849 | |
| 10850 | |
| 10851 | |
| 10852 | |
| 10853 | |
| 10854 | |
| 10855 | |
| 10856 | |
| 10857 | |
| 10858 | |
| 10859 | |
| 10860 | |
| 10861 | |
| 10862 | |
| 10863 | |
| 10864 | |
| 10865 | |
| 10866 | |
| 10867 | |
| 10868 | |
| 10869 | |
| 10870 | |
| 10871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
| 10872 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10873 | hardcode_action= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10874 | if test -n "$hardcode_libdir_flag_spec" || |
| 10875 | test -n "$runpath_var" || |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10876 | test "X$hardcode_automatic" = "Xyes" ; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10877 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10878 | # We can hardcode non-existent directories. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10879 | if test "$hardcode_direct" != no && |
| 10880 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 10881 | # have to relink, otherwise we might link with an installed library |
| 10882 | # when we should be linking with a yet-to-be-installed one |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10883 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10884 | test "$hardcode_minus_L" != no; then |
| 10885 | # Linking always hardcodes the temporary library directory. |
| 10886 | hardcode_action=relink |
| 10887 | else |
| 10888 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 10889 | hardcode_action=immediate |
| 10890 | fi |
| 10891 | else |
| 10892 | # We cannot hardcode anything, or else we can only hardcode existing |
| 10893 | # directories. |
| 10894 | hardcode_action=unsupported |
| 10895 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
| 10897 | $as_echo "$hardcode_action" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10898 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10899 | if test "$hardcode_action" = relink || |
| 10900 | test "$inherit_rpath" = yes; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10901 | # Fast installation is not supported |
| 10902 | enable_fast_install=no |
| 10903 | elif test "$shlibpath_overrides_runpath" = yes || |
| 10904 | test "$enable_shared" = no; then |
| 10905 | # Fast installation is not necessary |
| 10906 | enable_fast_install=needless |
| 10907 | fi |
| 10908 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10909 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10910 | |
| 10911 | |
| 10912 | |
| 10913 | |
| 10914 | if test "x$enable_dlopen" != xyes; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10915 | enable_dlopen=unknown |
| 10916 | enable_dlopen_self=unknown |
| 10917 | enable_dlopen_self_static=unknown |
| 10918 | else |
| 10919 | lt_cv_dlopen=no |
| 10920 | lt_cv_dlopen_libs= |
| 10921 | |
| 10922 | case $host_os in |
| 10923 | beos*) |
| 10924 | lt_cv_dlopen="load_add_on" |
| 10925 | lt_cv_dlopen_libs= |
| 10926 | lt_cv_dlopen_self=yes |
| 10927 | ;; |
| 10928 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10929 | mingw* | pw32* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10930 | lt_cv_dlopen="LoadLibrary" |
| 10931 | lt_cv_dlopen_libs= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10932 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10933 | |
| 10934 | cygwin*) |
| 10935 | lt_cv_dlopen="dlopen" |
| 10936 | lt_cv_dlopen_libs= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10937 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10938 | |
| 10939 | darwin*) |
| 10940 | # if libdl is installed we need to link against it |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 10942 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 10943 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : |
| 10944 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10945 | else |
| 10946 | ac_check_lib_save_LIBS=$LIBS |
| 10947 | LIBS="-ldl $LIBS" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10948 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10949 | /* end confdefs.h. */ |
| 10950 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10951 | /* Override any GCC internal prototype to avoid an error. |
| 10952 | Use char because int might match the return type of a GCC |
| 10953 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10954 | #ifdef __cplusplus |
| 10955 | extern "C" |
| 10956 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10957 | char dlopen (); |
| 10958 | int |
| 10959 | main () |
| 10960 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10961 | return dlopen (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10962 | ; |
| 10963 | return 0; |
| 10964 | } |
| 10965 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10966 | if ac_fn_c_try_link "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10967 | ac_cv_lib_dl_dlopen=yes |
| 10968 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10969 | ac_cv_lib_dl_dlopen=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10970 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10971 | rm -f core conftest.err conftest.$ac_objext \ |
| 10972 | conftest$ac_exeext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10973 | LIBS=$ac_check_lib_save_LIBS |
| 10974 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10976 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 10977 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10978 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 10979 | else |
| 10980 | |
| 10981 | lt_cv_dlopen="dyld" |
| 10982 | lt_cv_dlopen_libs= |
| 10983 | lt_cv_dlopen_self=yes |
| 10984 | |
| 10985 | fi |
| 10986 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10987 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10988 | |
| 10989 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10990 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
| 10991 | if test "x$ac_cv_func_shl_load" = x""yes; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10992 | lt_cv_dlopen="shl_load" |
| 10993 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| 10995 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
| 10996 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : |
| 10997 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10998 | else |
| 10999 | ac_check_lib_save_LIBS=$LIBS |
| 11000 | LIBS="-ldld $LIBS" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11001 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11002 | /* end confdefs.h. */ |
| 11003 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11004 | /* Override any GCC internal prototype to avoid an error. |
| 11005 | Use char because int might match the return type of a GCC |
| 11006 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11007 | #ifdef __cplusplus |
| 11008 | extern "C" |
| 11009 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11010 | char shl_load (); |
| 11011 | int |
| 11012 | main () |
| 11013 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11014 | return shl_load (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11015 | ; |
| 11016 | return 0; |
| 11017 | } |
| 11018 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11019 | if ac_fn_c_try_link "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11020 | ac_cv_lib_dld_shl_load=yes |
| 11021 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11022 | ac_cv_lib_dld_shl_load=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11023 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11024 | rm -f core conftest.err conftest.$ac_objext \ |
| 11025 | conftest$ac_exeext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11026 | LIBS=$ac_check_lib_save_LIBS |
| 11027 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| 11029 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
| 11030 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 11031 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11032 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11033 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
| 11034 | if test "x$ac_cv_func_dlopen" = x""yes; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11035 | lt_cv_dlopen="dlopen" |
| 11036 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 11038 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 11039 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : |
| 11040 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11041 | else |
| 11042 | ac_check_lib_save_LIBS=$LIBS |
| 11043 | LIBS="-ldl $LIBS" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11044 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11045 | /* end confdefs.h. */ |
| 11046 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11047 | /* Override any GCC internal prototype to avoid an error. |
| 11048 | Use char because int might match the return type of a GCC |
| 11049 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11050 | #ifdef __cplusplus |
| 11051 | extern "C" |
| 11052 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11053 | char dlopen (); |
| 11054 | int |
| 11055 | main () |
| 11056 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11057 | return dlopen (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11058 | ; |
| 11059 | return 0; |
| 11060 | } |
| 11061 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11062 | if ac_fn_c_try_link "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11063 | ac_cv_lib_dl_dlopen=yes |
| 11064 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11065 | ac_cv_lib_dl_dlopen=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11066 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11067 | rm -f core conftest.err conftest.$ac_objext \ |
| 11068 | conftest$ac_exeext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11069 | LIBS=$ac_check_lib_save_LIBS |
| 11070 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 11072 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 11073 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11074 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 11075 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
| 11077 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
| 11078 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : |
| 11079 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11080 | else |
| 11081 | ac_check_lib_save_LIBS=$LIBS |
| 11082 | LIBS="-lsvld $LIBS" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11083 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11084 | /* end confdefs.h. */ |
| 11085 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11086 | /* Override any GCC internal prototype to avoid an error. |
| 11087 | Use char because int might match the return type of a GCC |
| 11088 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11089 | #ifdef __cplusplus |
| 11090 | extern "C" |
| 11091 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11092 | char dlopen (); |
| 11093 | int |
| 11094 | main () |
| 11095 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11096 | return dlopen (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11097 | ; |
| 11098 | return 0; |
| 11099 | } |
| 11100 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11101 | if ac_fn_c_try_link "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11102 | ac_cv_lib_svld_dlopen=yes |
| 11103 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11104 | ac_cv_lib_svld_dlopen=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11105 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11106 | rm -f core conftest.err conftest.$ac_objext \ |
| 11107 | conftest$ac_exeext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11108 | LIBS=$ac_check_lib_save_LIBS |
| 11109 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
| 11111 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
| 11112 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11113 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 11114 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
| 11116 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
| 11117 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : |
| 11118 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11119 | else |
| 11120 | ac_check_lib_save_LIBS=$LIBS |
| 11121 | LIBS="-ldld $LIBS" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11122 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11123 | /* end confdefs.h. */ |
| 11124 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11125 | /* Override any GCC internal prototype to avoid an error. |
| 11126 | Use char because int might match the return type of a GCC |
| 11127 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11128 | #ifdef __cplusplus |
| 11129 | extern "C" |
| 11130 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11131 | char dld_link (); |
| 11132 | int |
| 11133 | main () |
| 11134 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11135 | return dld_link (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11136 | ; |
| 11137 | return 0; |
| 11138 | } |
| 11139 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11140 | if ac_fn_c_try_link "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11141 | ac_cv_lib_dld_dld_link=yes |
| 11142 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11143 | ac_cv_lib_dld_dld_link=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11144 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11145 | rm -f core conftest.err conftest.$ac_objext \ |
| 11146 | conftest$ac_exeext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11147 | LIBS=$ac_check_lib_save_LIBS |
| 11148 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
| 11150 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
| 11151 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 11152 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11153 | fi |
| 11154 | |
| 11155 | |
| 11156 | fi |
| 11157 | |
| 11158 | |
| 11159 | fi |
| 11160 | |
| 11161 | |
| 11162 | fi |
| 11163 | |
| 11164 | |
| 11165 | fi |
| 11166 | |
| 11167 | |
| 11168 | fi |
| 11169 | |
| 11170 | ;; |
| 11171 | esac |
| 11172 | |
| 11173 | if test "x$lt_cv_dlopen" != xno; then |
| 11174 | enable_dlopen=yes |
| 11175 | else |
| 11176 | enable_dlopen=no |
| 11177 | fi |
| 11178 | |
| 11179 | case $lt_cv_dlopen in |
| 11180 | dlopen) |
| 11181 | save_CPPFLAGS="$CPPFLAGS" |
| 11182 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 11183 | |
| 11184 | save_LDFLAGS="$LDFLAGS" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11185 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11186 | |
| 11187 | save_LIBS="$LIBS" |
| 11188 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 11189 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
| 11191 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } |
| 11192 | if test "${lt_cv_dlopen_self+set}" = set; then : |
| 11193 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11194 | else |
| 11195 | if test "$cross_compiling" = yes; then : |
| 11196 | lt_cv_dlopen_self=cross |
| 11197 | else |
| 11198 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11199 | lt_status=$lt_dlunknown |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11200 | cat > conftest.$ac_ext <<_LT_EOF |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 11201 | #line 11201 "configure" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11202 | #include "confdefs.h" |
| 11203 | |
| 11204 | #if HAVE_DLFCN_H |
| 11205 | #include <dlfcn.h> |
| 11206 | #endif |
| 11207 | |
| 11208 | #include <stdio.h> |
| 11209 | |
| 11210 | #ifdef RTLD_GLOBAL |
| 11211 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11212 | #else |
| 11213 | # ifdef DL_GLOBAL |
| 11214 | # define LT_DLGLOBAL DL_GLOBAL |
| 11215 | # else |
| 11216 | # define LT_DLGLOBAL 0 |
| 11217 | # endif |
| 11218 | #endif |
| 11219 | |
| 11220 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11221 | find out it does not work in some platform. */ |
| 11222 | #ifndef LT_DLLAZY_OR_NOW |
| 11223 | # ifdef RTLD_LAZY |
| 11224 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11225 | # else |
| 11226 | # ifdef DL_LAZY |
| 11227 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11228 | # else |
| 11229 | # ifdef RTLD_NOW |
| 11230 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11231 | # else |
| 11232 | # ifdef DL_NOW |
| 11233 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11234 | # else |
| 11235 | # define LT_DLLAZY_OR_NOW 0 |
| 11236 | # endif |
| 11237 | # endif |
| 11238 | # endif |
| 11239 | # endif |
| 11240 | #endif |
| 11241 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11242 | void fnord() { int i=42;} |
| 11243 | int main () |
| 11244 | { |
| 11245 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11246 | int status = $lt_dlunknown; |
| 11247 | |
| 11248 | if (self) |
| 11249 | { |
| 11250 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11251 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11252 | /* dlclose (self); */ |
| 11253 | } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11254 | else |
| 11255 | puts (dlerror ()); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11256 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11257 | return status; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11258 | } |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11259 | _LT_EOF |
| 11260 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11261 | (eval $ac_link) 2>&5 |
| 11262 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11263 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11264 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11265 | (./conftest; exit; ) >&5 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11266 | lt_status=$? |
| 11267 | case x$lt_status in |
| 11268 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 11269 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11270 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11271 | esac |
| 11272 | else : |
| 11273 | # compilation failed |
| 11274 | lt_cv_dlopen_self=no |
| 11275 | fi |
| 11276 | fi |
| 11277 | rm -fr conftest* |
| 11278 | |
| 11279 | |
| 11280 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
| 11282 | $as_echo "$lt_cv_dlopen_self" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11283 | |
| 11284 | if test "x$lt_cv_dlopen_self" = xyes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11285 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
| 11287 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
| 11288 | if test "${lt_cv_dlopen_self_static+set}" = set; then : |
| 11289 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11290 | else |
| 11291 | if test "$cross_compiling" = yes; then : |
| 11292 | lt_cv_dlopen_self_static=cross |
| 11293 | else |
| 11294 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11295 | lt_status=$lt_dlunknown |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11296 | cat > conftest.$ac_ext <<_LT_EOF |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 11297 | #line 11297 "configure" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11298 | #include "confdefs.h" |
| 11299 | |
| 11300 | #if HAVE_DLFCN_H |
| 11301 | #include <dlfcn.h> |
| 11302 | #endif |
| 11303 | |
| 11304 | #include <stdio.h> |
| 11305 | |
| 11306 | #ifdef RTLD_GLOBAL |
| 11307 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11308 | #else |
| 11309 | # ifdef DL_GLOBAL |
| 11310 | # define LT_DLGLOBAL DL_GLOBAL |
| 11311 | # else |
| 11312 | # define LT_DLGLOBAL 0 |
| 11313 | # endif |
| 11314 | #endif |
| 11315 | |
| 11316 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11317 | find out it does not work in some platform. */ |
| 11318 | #ifndef LT_DLLAZY_OR_NOW |
| 11319 | # ifdef RTLD_LAZY |
| 11320 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11321 | # else |
| 11322 | # ifdef DL_LAZY |
| 11323 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11324 | # else |
| 11325 | # ifdef RTLD_NOW |
| 11326 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11327 | # else |
| 11328 | # ifdef DL_NOW |
| 11329 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11330 | # else |
| 11331 | # define LT_DLLAZY_OR_NOW 0 |
| 11332 | # endif |
| 11333 | # endif |
| 11334 | # endif |
| 11335 | # endif |
| 11336 | #endif |
| 11337 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11338 | void fnord() { int i=42;} |
| 11339 | int main () |
| 11340 | { |
| 11341 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11342 | int status = $lt_dlunknown; |
| 11343 | |
| 11344 | if (self) |
| 11345 | { |
| 11346 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11347 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11348 | /* dlclose (self); */ |
| 11349 | } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11350 | else |
| 11351 | puts (dlerror ()); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11352 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11353 | return status; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11354 | } |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11355 | _LT_EOF |
| 11356 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11357 | (eval $ac_link) 2>&5 |
| 11358 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11359 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11360 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11361 | (./conftest; exit; ) >&5 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11362 | lt_status=$? |
| 11363 | case x$lt_status in |
| 11364 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 11365 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11366 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11367 | esac |
| 11368 | else : |
| 11369 | # compilation failed |
| 11370 | lt_cv_dlopen_self_static=no |
| 11371 | fi |
| 11372 | fi |
| 11373 | rm -fr conftest* |
| 11374 | |
| 11375 | |
| 11376 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
| 11378 | $as_echo "$lt_cv_dlopen_self_static" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11379 | fi |
| 11380 | |
| 11381 | CPPFLAGS="$save_CPPFLAGS" |
| 11382 | LDFLAGS="$save_LDFLAGS" |
| 11383 | LIBS="$save_LIBS" |
| 11384 | ;; |
| 11385 | esac |
| 11386 | |
| 11387 | case $lt_cv_dlopen_self in |
| 11388 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 11389 | *) enable_dlopen_self=unknown ;; |
| 11390 | esac |
| 11391 | |
| 11392 | case $lt_cv_dlopen_self_static in |
| 11393 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 11394 | *) enable_dlopen_self_static=unknown ;; |
| 11395 | esac |
| 11396 | fi |
| 11397 | |
| 11398 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11399 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11400 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11401 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11402 | |
| 11403 | |
| 11404 | |
| 11405 | |
| 11406 | |
| 11407 | |
| 11408 | |
| 11409 | |
| 11410 | |
| 11411 | |
| 11412 | |
| 11413 | |
| 11414 | striplib= |
| 11415 | old_striplib= |
| 11416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
| 11417 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } |
| 11418 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
| 11419 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 11420 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 11421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11422 | $as_echo "yes" >&6; } |
| 11423 | else |
| 11424 | # FIXME - insert some real tests, host_os isn't really good enough |
| 11425 | case $host_os in |
| 11426 | darwin*) |
| 11427 | if test -n "$STRIP" ; then |
| 11428 | striplib="$STRIP -x" |
| 11429 | old_striplib="$STRIP -S" |
| 11430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11431 | $as_echo "yes" >&6; } |
| 11432 | else |
| 11433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11434 | $as_echo "no" >&6; } |
| 11435 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11436 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11437 | *) |
| 11438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11439 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11440 | ;; |
| 11441 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11442 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11443 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11444 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11445 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11446 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11447 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11448 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11449 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11450 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11451 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11452 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11453 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11454 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11455 | # Report which library types will actually be built |
| 11456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
| 11457 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } |
| 11458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
| 11459 | $as_echo "$can_build_shared" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11460 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
| 11462 | $as_echo_n "checking whether to build shared libraries... " >&6; } |
| 11463 | test "$can_build_shared" = "no" && enable_shared=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11464 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11465 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 11466 | # are all built from PIC. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11467 | case $host_os in |
| 11468 | aix3*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11469 | test "$enable_shared" = yes && enable_static=no |
| 11470 | if test -n "$RANLIB"; then |
| 11471 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 11472 | postinstall_cmds='$RANLIB $lib' |
| 11473 | fi |
| 11474 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11475 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11476 | aix[4-9]*) |
| 11477 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 11478 | test "$enable_shared" = yes && enable_static=no |
| 11479 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11480 | ;; |
| 11481 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
| 11483 | $as_echo "$enable_shared" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11484 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
| 11486 | $as_echo_n "checking whether to build static libraries... " >&6; } |
| 11487 | # Make sure either enable_shared or enable_static is yes. |
| 11488 | test "$enable_shared" = yes || enable_static=yes |
| 11489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
| 11490 | $as_echo "$enable_static" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11491 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11492 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11493 | |
| 11494 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11495 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11496 | ac_ext=c |
| 11497 | ac_cpp='$CPP $CPPFLAGS' |
| 11498 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11499 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11500 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11501 | |
| 11502 | CC="$lt_save_CC" |
| 11503 | |
| 11504 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11505 | ac_ext=cpp |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11506 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 11507 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11508 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11509 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 11510 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11511 | archive_cmds_need_lc_CXX=no |
| 11512 | allow_undefined_flag_CXX= |
| 11513 | always_export_symbols_CXX=no |
| 11514 | archive_expsym_cmds_CXX= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11515 | compiler_needs_object_CXX=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11516 | export_dynamic_flag_spec_CXX= |
| 11517 | hardcode_direct_CXX=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11518 | hardcode_direct_absolute_CXX=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11519 | hardcode_libdir_flag_spec_CXX= |
| 11520 | hardcode_libdir_flag_spec_ld_CXX= |
| 11521 | hardcode_libdir_separator_CXX= |
| 11522 | hardcode_minus_L_CXX=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11523 | hardcode_shlibpath_var_CXX=unsupported |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11524 | hardcode_automatic_CXX=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11525 | inherit_rpath_CXX=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11526 | module_cmds_CXX= |
| 11527 | module_expsym_cmds_CXX= |
| 11528 | link_all_deplibs_CXX=unknown |
| 11529 | old_archive_cmds_CXX=$old_archive_cmds |
| 11530 | no_undefined_flag_CXX= |
| 11531 | whole_archive_flag_spec_CXX= |
| 11532 | enable_shared_with_static_runtimes_CXX=no |
| 11533 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11534 | # Source file extension for C++ test sources. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11535 | ac_ext=cpp |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11536 | |
| 11537 | # Object file extension for compiled C++ test sources. |
| 11538 | objext=o |
| 11539 | objext_CXX=$objext |
| 11540 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11541 | # No sense in running all these tests if we already determined that |
| 11542 | # the CXX compiler isn't working. Some variables (like enable_shared) |
| 11543 | # are currently assumed to apply to all compilers on this platform, |
| 11544 | # and will be corrupted by setting them based on a non-working compiler. |
| 11545 | if test "$_lt_caught_CXX_error" != yes; then |
| 11546 | # Code to be used in simple compile tests |
| 11547 | lt_simple_compile_test_code="int some_variable = 0;" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11548 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11549 | # Code to be used in simple link tests |
| 11550 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11551 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11552 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 11553 | |
| 11554 | |
| 11555 | |
| 11556 | |
| 11557 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11558 | |
| 11559 | # If no C compiler was specified, use CC. |
| 11560 | LTCC=${LTCC-"$CC"} |
| 11561 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11562 | # If no C compiler flags were specified, use CFLAGS. |
| 11563 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 11564 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11565 | # Allow CC to be a program name with arguments. |
| 11566 | compiler=$CC |
| 11567 | |
| 11568 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11569 | # save warnings/boilerplate of simple test code |
| 11570 | ac_outfile=conftest.$ac_objext |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 11571 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11572 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 11573 | _lt_compiler_boilerplate=`cat conftest.err` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11574 | $RM conftest* |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11575 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11576 | ac_outfile=conftest.$ac_objext |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 11577 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11578 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 11579 | _lt_linker_boilerplate=`cat conftest.err` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11580 | $RM -r conftest* |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11581 | |
| 11582 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11583 | # Allow CC to be a program name with arguments. |
| 11584 | lt_save_CC=$CC |
| 11585 | lt_save_LD=$LD |
| 11586 | lt_save_GCC=$GCC |
| 11587 | GCC=$GXX |
| 11588 | lt_save_with_gnu_ld=$with_gnu_ld |
| 11589 | lt_save_path_LD=$lt_cv_path_LD |
| 11590 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 11591 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 11592 | else |
| 11593 | $as_unset lt_cv_prog_gnu_ld |
| 11594 | fi |
| 11595 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 11596 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 11597 | else |
| 11598 | $as_unset lt_cv_path_LD |
| 11599 | fi |
| 11600 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 11601 | CC=${CXX-"c++"} |
| 11602 | compiler=$CC |
| 11603 | compiler_CXX=$CC |
| 11604 | for cc_temp in $compiler""; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11605 | case $cc_temp in |
| 11606 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 11607 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 11608 | \-*) ;; |
| 11609 | *) break;; |
| 11610 | esac |
| 11611 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11612 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11613 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11614 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11615 | if test -n "$compiler"; then |
| 11616 | # We don't want -fno-exception when compiling C++ code, so set the |
| 11617 | # no_builtin_flag separately |
| 11618 | if test "$GXX" = yes; then |
| 11619 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 11620 | else |
| 11621 | lt_prog_compiler_no_builtin_flag_CXX= |
| 11622 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11623 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11624 | if test "$GXX" = yes; then |
| 11625 | # Set up default GNU C++ configuration |
| 11626 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11627 | |
| 11628 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11629 | # Check whether --with-gnu-ld was given. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11630 | if test "${with_gnu_ld+set}" = set; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11631 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11632 | else |
| 11633 | with_gnu_ld=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11634 | fi |
| 11635 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11636 | ac_prog=ld |
| 11637 | if test "$GCC" = yes; then |
| 11638 | # Check if gcc -print-prog-name=ld gives a path. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 11640 | $as_echo_n "checking for ld used by $CC... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11641 | case $host in |
| 11642 | *-*-mingw*) |
| 11643 | # gcc leaves a trailing carriage return which upsets mingw |
| 11644 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 11645 | *) |
| 11646 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 11647 | esac |
| 11648 | case $ac_prog in |
| 11649 | # Accept absolute paths. |
| 11650 | [\\/]* | ?:[\\/]*) |
| 11651 | re_direlt='/[^/][^/]*/\.\./' |
| 11652 | # Canonicalize the pathname of ld |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11653 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 11654 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 11655 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11656 | done |
| 11657 | test -z "$LD" && LD="$ac_prog" |
| 11658 | ;; |
| 11659 | "") |
| 11660 | # If it fails, then pretend we aren't using GCC. |
| 11661 | ac_prog=ld |
| 11662 | ;; |
| 11663 | *) |
| 11664 | # If it is relative, then search for the first ld in PATH. |
| 11665 | with_gnu_ld=unknown |
| 11666 | ;; |
| 11667 | esac |
| 11668 | elif test "$with_gnu_ld" = yes; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 11670 | $as_echo_n "checking for GNU ld... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11671 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 11673 | $as_echo_n "checking for non-GNU ld... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11674 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11675 | if test "${lt_cv_path_LD+set}" = set; then : |
| 11676 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11677 | else |
| 11678 | if test -z "$LD"; then |
| 11679 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 11680 | for ac_dir in $PATH; do |
| 11681 | IFS="$lt_save_ifs" |
| 11682 | test -z "$ac_dir" && ac_dir=. |
| 11683 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 11684 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 11685 | # Check to see if the program is GNU ld. I'd rather use --version, |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11686 | # but apparently some variants of GNU ld only accept -v. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11687 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 11688 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 11689 | *GNU* | *'with BFD'*) |
| 11690 | test "$with_gnu_ld" != no && break |
| 11691 | ;; |
| 11692 | *) |
| 11693 | test "$with_gnu_ld" != yes && break |
| 11694 | ;; |
| 11695 | esac |
| 11696 | fi |
| 11697 | done |
| 11698 | IFS="$lt_save_ifs" |
| 11699 | else |
| 11700 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 11701 | fi |
| 11702 | fi |
| 11703 | |
| 11704 | LD="$lt_cv_path_LD" |
| 11705 | if test -n "$LD"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 11707 | $as_echo "$LD" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11708 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11710 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11711 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11712 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 11713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 11714 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
| 11715 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : |
| 11716 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11717 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11718 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11719 | case `$LD -v 2>&1 </dev/null` in |
| 11720 | *GNU* | *'with BFD'*) |
| 11721 | lt_cv_prog_gnu_ld=yes |
| 11722 | ;; |
| 11723 | *) |
| 11724 | lt_cv_prog_gnu_ld=no |
| 11725 | ;; |
| 11726 | esac |
| 11727 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 11729 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11730 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 11731 | |
| 11732 | |
| 11733 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11734 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11735 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11736 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11737 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11738 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 11739 | # archiving commands below assume that GNU ld is being used. |
| 11740 | if test "$with_gnu_ld" = yes; then |
| 11741 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11742 | 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' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11743 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11744 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 11745 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11746 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11747 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 11748 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 11749 | # investigate it a little bit more. (MM) |
| 11750 | wlarc='${wl}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11751 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11752 | # ancient GNU ld didn't support --whole-archive et. al. |
| 11753 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | |
| 11754 | $GREP 'no-whole-archive' > /dev/null; then |
| 11755 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 11756 | else |
| 11757 | whole_archive_flag_spec_CXX= |
| 11758 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11759 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11760 | with_gnu_ld=no |
| 11761 | wlarc= |
| 11762 | |
| 11763 | # A generic and very simple default shared library creation |
| 11764 | # command for GNU C++ for the case where it uses the native |
| 11765 | # linker, instead of GNU ld. If possible, this setting should |
| 11766 | # overridden to take advantage of the native linker features on |
| 11767 | # the platform it is being used on. |
| 11768 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11769 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11770 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11771 | # Commands to make compiler produce verbose output that lists |
| 11772 | # what "hidden" libraries, object files and flags are used when |
| 11773 | # linking a shared library. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11774 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
| 11775 | |
| 11776 | else |
| 11777 | GXX=no |
| 11778 | with_gnu_ld=no |
| 11779 | wlarc= |
| 11780 | fi |
| 11781 | |
| 11782 | # PORTME: fill in a description of your system's C++ link characteristics |
| 11783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 11784 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 11785 | ld_shlibs_CXX=yes |
| 11786 | case $host_os in |
| 11787 | aix3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11788 | # FIXME: insert proper C++ library support |
| 11789 | ld_shlibs_CXX=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11790 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11791 | aix[4-9]*) |
| 11792 | if test "$host_cpu" = ia64; then |
| 11793 | # On IA64, the linker does run time linking by default, so we don't |
| 11794 | # have to do anything special. |
| 11795 | aix_use_runtimelinking=no |
| 11796 | exp_sym_flag='-Bexport' |
| 11797 | no_entry_flag="" |
| 11798 | else |
| 11799 | aix_use_runtimelinking=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11800 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11801 | # Test if we are trying to use run time linking or normal |
| 11802 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 11803 | # need to do runtime linking. |
| 11804 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 11805 | for ld_flag in $LDFLAGS; do |
| 11806 | case $ld_flag in |
| 11807 | *-brtl*) |
| 11808 | aix_use_runtimelinking=yes |
| 11809 | break |
| 11810 | ;; |
| 11811 | esac |
| 11812 | done |
| 11813 | ;; |
| 11814 | esac |
| 11815 | |
| 11816 | exp_sym_flag='-bexport' |
| 11817 | no_entry_flag='-bnoentry' |
| 11818 | fi |
| 11819 | |
| 11820 | # When large executables or shared objects are built, AIX ld can |
| 11821 | # have problems creating the table of contents. If linking a library |
| 11822 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 11823 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 11824 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 11825 | |
| 11826 | archive_cmds_CXX='' |
| 11827 | hardcode_direct_CXX=yes |
| 11828 | hardcode_direct_absolute_CXX=yes |
| 11829 | hardcode_libdir_separator_CXX=':' |
| 11830 | link_all_deplibs_CXX=yes |
| 11831 | file_list_spec_CXX='${wl}-f,' |
| 11832 | |
| 11833 | if test "$GXX" = yes; then |
| 11834 | case $host_os in aix4.[012]|aix4.[012].*) |
| 11835 | # We only want to do this on AIX 4.2 and lower, the check |
| 11836 | # below for broken collect2 doesn't work under 4.3+ |
| 11837 | collect2name=`${CC} -print-prog-name=collect2` |
| 11838 | if test -f "$collect2name" && |
| 11839 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 11840 | then |
| 11841 | # We have reworked collect2 |
| 11842 | : |
| 11843 | else |
| 11844 | # We have old collect2 |
| 11845 | hardcode_direct_CXX=unsupported |
| 11846 | # It fails to find uninstalled libraries when the uninstalled |
| 11847 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 11848 | # to unsupported forces relinking |
| 11849 | hardcode_minus_L_CXX=yes |
| 11850 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 11851 | hardcode_libdir_separator_CXX= |
| 11852 | fi |
| 11853 | esac |
| 11854 | shared_flag='-shared' |
| 11855 | if test "$aix_use_runtimelinking" = yes; then |
| 11856 | shared_flag="$shared_flag "'${wl}-G' |
| 11857 | fi |
| 11858 | else |
| 11859 | # not using gcc |
| 11860 | if test "$host_cpu" = ia64; then |
| 11861 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 11862 | # chokes on -Wl,-G. The following line is correct: |
| 11863 | shared_flag='-G' |
| 11864 | else |
| 11865 | if test "$aix_use_runtimelinking" = yes; then |
| 11866 | shared_flag='${wl}-G' |
| 11867 | else |
| 11868 | shared_flag='${wl}-bM:SRE' |
| 11869 | fi |
| 11870 | fi |
| 11871 | fi |
| 11872 | |
| 11873 | export_dynamic_flag_spec_CXX='${wl}-bexpall' |
| 11874 | # It seems that -bexpall does not export symbols beginning with |
| 11875 | # underscore (_), so it is better to generate a list of symbols to |
| 11876 | # export. |
| 11877 | always_export_symbols_CXX=yes |
| 11878 | if test "$aix_use_runtimelinking" = yes; then |
| 11879 | # Warning - without using the other runtime loading flags (-brtl), |
| 11880 | # -berok will link without error, but may produce a broken library. |
| 11881 | allow_undefined_flag_CXX='-berok' |
| 11882 | # Determine the default libpath from the value encoded in an empty |
| 11883 | # executable. |
| 11884 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11885 | /* end confdefs.h. */ |
| 11886 | |
| 11887 | int |
| 11888 | main () |
| 11889 | { |
| 11890 | |
| 11891 | ; |
| 11892 | return 0; |
| 11893 | } |
| 11894 | _ACEOF |
| 11895 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 11896 | |
| 11897 | lt_aix_libpath_sed=' |
| 11898 | /Import File Strings/,/^$/ { |
| 11899 | /^0/ { |
| 11900 | s/^0 *\(.*\)$/\1/ |
| 11901 | p |
| 11902 | } |
| 11903 | }' |
| 11904 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 11905 | # Check for a 64-bit object if we didn't find anything. |
| 11906 | if test -z "$aix_libpath"; then |
| 11907 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 11908 | fi |
| 11909 | fi |
| 11910 | rm -f core conftest.err conftest.$ac_objext \ |
| 11911 | conftest$ac_exeext conftest.$ac_ext |
| 11912 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 11913 | |
| 11914 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 11915 | |
| 11916 | 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" |
| 11917 | else |
| 11918 | if test "$host_cpu" = ia64; then |
| 11919 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 11920 | allow_undefined_flag_CXX="-z nodefs" |
| 11921 | 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" |
| 11922 | else |
| 11923 | # Determine the default libpath from the value encoded in an |
| 11924 | # empty executable. |
| 11925 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11926 | /* end confdefs.h. */ |
| 11927 | |
| 11928 | int |
| 11929 | main () |
| 11930 | { |
| 11931 | |
| 11932 | ; |
| 11933 | return 0; |
| 11934 | } |
| 11935 | _ACEOF |
| 11936 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 11937 | |
| 11938 | lt_aix_libpath_sed=' |
| 11939 | /Import File Strings/,/^$/ { |
| 11940 | /^0/ { |
| 11941 | s/^0 *\(.*\)$/\1/ |
| 11942 | p |
| 11943 | } |
| 11944 | }' |
| 11945 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 11946 | # Check for a 64-bit object if we didn't find anything. |
| 11947 | if test -z "$aix_libpath"; then |
| 11948 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 11949 | fi |
| 11950 | fi |
| 11951 | rm -f core conftest.err conftest.$ac_objext \ |
| 11952 | conftest$ac_exeext conftest.$ac_ext |
| 11953 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 11954 | |
| 11955 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 11956 | # Warning - without using the other run time loading flags, |
| 11957 | # -berok will link without error, but may produce a broken library. |
| 11958 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 11959 | allow_undefined_flag_CXX=' ${wl}-berok' |
| 11960 | # Exported symbols can be pulled into shared objects from archives |
| 11961 | whole_archive_flag_spec_CXX='$convenience' |
| 11962 | archive_cmds_need_lc_CXX=yes |
| 11963 | # This is similar to how AIX traditionally builds its shared |
| 11964 | # libraries. |
| 11965 | 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' |
| 11966 | fi |
| 11967 | fi |
| 11968 | ;; |
| 11969 | |
| 11970 | beos*) |
| 11971 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 11972 | allow_undefined_flag_CXX=unsupported |
| 11973 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 11974 | # support --undefined. This deserves some investigation. FIXME |
| 11975 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11976 | else |
| 11977 | ld_shlibs_CXX=no |
| 11978 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11979 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11980 | |
| 11981 | chorus*) |
| 11982 | case $cc_basename in |
| 11983 | *) |
| 11984 | # FIXME: insert proper C++ library support |
| 11985 | ld_shlibs_CXX=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11986 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11987 | esac |
| 11988 | ;; |
| 11989 | |
| 11990 | cygwin* | mingw* | pw32* | cegcc*) |
| 11991 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 11992 | # as there is no search path for DLLs. |
| 11993 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 11994 | allow_undefined_flag_CXX=unsupported |
| 11995 | always_export_symbols_CXX=no |
| 11996 | enable_shared_with_static_runtimes_CXX=yes |
| 11997 | |
| 11998 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 11999 | 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' |
| 12000 | # If the export-symbols file already is a .def file (1st line |
| 12001 | # is EXPORTS), use it as is; otherwise, prepend... |
| 12002 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 12003 | cp $export_symbols $output_objdir/$soname.def; |
| 12004 | else |
| 12005 | echo EXPORTS > $output_objdir/$soname.def; |
| 12006 | cat $export_symbols >> $output_objdir/$soname.def; |
| 12007 | fi~ |
| 12008 | $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' |
| 12009 | else |
| 12010 | ld_shlibs_CXX=no |
| 12011 | fi |
| 12012 | ;; |
| 12013 | darwin* | rhapsody*) |
| 12014 | |
| 12015 | |
| 12016 | archive_cmds_need_lc_CXX=no |
| 12017 | hardcode_direct_CXX=no |
| 12018 | hardcode_automatic_CXX=yes |
| 12019 | hardcode_shlibpath_var_CXX=unsupported |
| 12020 | whole_archive_flag_spec_CXX='' |
| 12021 | link_all_deplibs_CXX=yes |
| 12022 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" |
| 12023 | case $cc_basename in |
| 12024 | ifort*) _lt_dar_can_shared=yes ;; |
| 12025 | *) _lt_dar_can_shared=$GCC ;; |
| 12026 | esac |
| 12027 | if test "$_lt_dar_can_shared" = "yes"; then |
| 12028 | output_verbose_link_cmd=echo |
| 12029 | 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}" |
| 12030 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 12031 | 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}" |
| 12032 | 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}" |
| 12033 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then |
| 12034 | 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}" |
| 12035 | 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}" |
| 12036 | fi |
| 12037 | |
| 12038 | else |
| 12039 | ld_shlibs_CXX=no |
| 12040 | fi |
| 12041 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12042 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12043 | |
| 12044 | dgux*) |
| 12045 | case $cc_basename in |
| 12046 | ec++*) |
| 12047 | # FIXME: insert proper C++ library support |
| 12048 | ld_shlibs_CXX=no |
| 12049 | ;; |
| 12050 | ghcx*) |
| 12051 | # Green Hills C++ Compiler |
| 12052 | # FIXME: insert proper C++ library support |
| 12053 | ld_shlibs_CXX=no |
| 12054 | ;; |
| 12055 | *) |
| 12056 | # FIXME: insert proper C++ library support |
| 12057 | ld_shlibs_CXX=no |
| 12058 | ;; |
| 12059 | esac |
| 12060 | ;; |
| 12061 | |
| 12062 | freebsd[12]*) |
| 12063 | # C++ shared libraries reported to be fairly broken before |
| 12064 | # switch to ELF |
| 12065 | ld_shlibs_CXX=no |
| 12066 | ;; |
| 12067 | |
| 12068 | freebsd-elf*) |
| 12069 | archive_cmds_need_lc_CXX=no |
| 12070 | ;; |
| 12071 | |
| 12072 | freebsd* | dragonfly*) |
| 12073 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 12074 | # conventions |
| 12075 | ld_shlibs_CXX=yes |
| 12076 | ;; |
| 12077 | |
| 12078 | gnu*) |
| 12079 | ;; |
| 12080 | |
| 12081 | hpux9*) |
| 12082 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 12083 | hardcode_libdir_separator_CXX=: |
| 12084 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 12085 | hardcode_direct_CXX=yes |
| 12086 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 12087 | # but as the default |
| 12088 | # location of the library. |
| 12089 | |
| 12090 | case $cc_basename in |
| 12091 | CC*) |
| 12092 | # FIXME: insert proper C++ library support |
| 12093 | ld_shlibs_CXX=no |
| 12094 | ;; |
| 12095 | aCC*) |
| 12096 | 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' |
| 12097 | # Commands to make compiler produce verbose output that lists |
| 12098 | # what "hidden" libraries, object files and flags are used when |
| 12099 | # linking a shared library. |
| 12100 | # |
| 12101 | # There doesn't appear to be a way to prevent this compiler from |
| 12102 | # explicitly linking system object files so we need to strip them |
| 12103 | # from the output so that they don't get included in the library |
| 12104 | # dependencies. |
| 12105 | 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' |
| 12106 | ;; |
| 12107 | *) |
| 12108 | if test "$GXX" = yes; then |
| 12109 | 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' |
| 12110 | else |
| 12111 | # FIXME: insert proper C++ library support |
| 12112 | ld_shlibs_CXX=no |
| 12113 | fi |
| 12114 | ;; |
| 12115 | esac |
| 12116 | ;; |
| 12117 | |
| 12118 | hpux10*|hpux11*) |
| 12119 | if test $with_gnu_ld = no; then |
| 12120 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 12121 | hardcode_libdir_separator_CXX=: |
| 12122 | |
| 12123 | case $host_cpu in |
| 12124 | hppa*64*|ia64*) |
| 12125 | ;; |
| 12126 | *) |
| 12127 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 12128 | ;; |
| 12129 | esac |
| 12130 | fi |
| 12131 | case $host_cpu in |
| 12132 | hppa*64*|ia64*) |
| 12133 | hardcode_direct_CXX=no |
| 12134 | hardcode_shlibpath_var_CXX=no |
| 12135 | ;; |
| 12136 | *) |
| 12137 | hardcode_direct_CXX=yes |
| 12138 | hardcode_direct_absolute_CXX=yes |
| 12139 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 12140 | # but as the default |
| 12141 | # location of the library. |
| 12142 | ;; |
| 12143 | esac |
| 12144 | |
| 12145 | case $cc_basename in |
| 12146 | CC*) |
| 12147 | # FIXME: insert proper C++ library support |
| 12148 | ld_shlibs_CXX=no |
| 12149 | ;; |
| 12150 | aCC*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12151 | case $host_cpu in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12152 | hppa*64*) |
| 12153 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12154 | ;; |
| 12155 | ia64*) |
| 12156 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12157 | ;; |
| 12158 | *) |
| 12159 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12160 | ;; |
| 12161 | esac |
| 12162 | # Commands to make compiler produce verbose output that lists |
| 12163 | # what "hidden" libraries, object files and flags are used when |
| 12164 | # linking a shared library. |
| 12165 | # |
| 12166 | # There doesn't appear to be a way to prevent this compiler from |
| 12167 | # explicitly linking system object files so we need to strip them |
| 12168 | # from the output so that they don't get included in the library |
| 12169 | # dependencies. |
| 12170 | 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' |
| 12171 | ;; |
| 12172 | *) |
| 12173 | if test "$GXX" = yes; then |
| 12174 | if test $with_gnu_ld = no; then |
| 12175 | case $host_cpu in |
| 12176 | hppa*64*) |
| 12177 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12178 | ;; |
| 12179 | ia64*) |
| 12180 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12181 | ;; |
| 12182 | *) |
| 12183 | 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' |
| 12184 | ;; |
| 12185 | esac |
| 12186 | fi |
| 12187 | else |
| 12188 | # FIXME: insert proper C++ library support |
| 12189 | ld_shlibs_CXX=no |
| 12190 | fi |
| 12191 | ;; |
| 12192 | esac |
| 12193 | ;; |
| 12194 | |
| 12195 | interix[3-9]*) |
| 12196 | hardcode_direct_CXX=no |
| 12197 | hardcode_shlibpath_var_CXX=no |
| 12198 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 12199 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 12200 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 12201 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 12202 | # default) and relocated if they conflict, which is a slow very memory |
| 12203 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 12204 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 12205 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 12206 | 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' |
| 12207 | 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' |
| 12208 | ;; |
| 12209 | irix5* | irix6*) |
| 12210 | case $cc_basename in |
| 12211 | CC*) |
| 12212 | # SGI C++ |
| 12213 | 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' |
| 12214 | |
| 12215 | # Archives containing C++ object files must be created using |
| 12216 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 12217 | # necessary to make sure instantiated templates are included |
| 12218 | # in the archive. |
| 12219 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 12220 | ;; |
| 12221 | *) |
| 12222 | if test "$GXX" = yes; then |
| 12223 | if test "$with_gnu_ld" = no; then |
| 12224 | 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' |
| 12225 | else |
| 12226 | 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' |
| 12227 | fi |
| 12228 | fi |
| 12229 | link_all_deplibs_CXX=yes |
| 12230 | ;; |
| 12231 | esac |
| 12232 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 12233 | hardcode_libdir_separator_CXX=: |
| 12234 | inherit_rpath_CXX=yes |
| 12235 | ;; |
| 12236 | |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 12237 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12238 | case $cc_basename in |
| 12239 | KCC*) |
| 12240 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 12241 | |
| 12242 | # KCC will only create a shared library if the output file |
| 12243 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 12244 | # to its proper name (with version) after linking. |
| 12245 | 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' |
| 12246 | 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' |
| 12247 | # Commands to make compiler produce verbose output that lists |
| 12248 | # what "hidden" libraries, object files and flags are used when |
| 12249 | # linking a shared library. |
| 12250 | # |
| 12251 | # There doesn't appear to be a way to prevent this compiler from |
| 12252 | # explicitly linking system object files so we need to strip them |
| 12253 | # from the output so that they don't get included in the library |
| 12254 | # dependencies. |
| 12255 | 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' |
| 12256 | |
| 12257 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 12258 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 12259 | |
| 12260 | # Archives containing C++ object files must be created using |
| 12261 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 12262 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 12263 | ;; |
| 12264 | icpc* | ecpc* ) |
| 12265 | # Intel C++ |
| 12266 | with_gnu_ld=yes |
| 12267 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 12268 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 12269 | # earlier do not add the objects themselves. |
| 12270 | case `$CC -V 2>&1` in |
| 12271 | *"Version 7."*) |
| 12272 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12273 | 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' |
| 12274 | ;; |
| 12275 | *) # Version 8.0 or newer |
| 12276 | tmp_idyn= |
| 12277 | case $host_cpu in |
| 12278 | ia64*) tmp_idyn=' -i_dynamic';; |
| 12279 | esac |
| 12280 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12281 | 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' |
| 12282 | ;; |
| 12283 | esac |
| 12284 | archive_cmds_need_lc_CXX=no |
| 12285 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 12286 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 12287 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 12288 | ;; |
| 12289 | pgCC* | pgcpp*) |
| 12290 | # Portland Group C++ compiler |
| 12291 | case `$CC -V` in |
| 12292 | *pgCC\ [1-5]* | *pgcpp\ [1-5]*) |
| 12293 | prelink_cmds_CXX='tpldir=Template.dir~ |
| 12294 | rm -rf $tpldir~ |
| 12295 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ |
| 12296 | compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' |
| 12297 | old_archive_cmds_CXX='tpldir=Template.dir~ |
| 12298 | rm -rf $tpldir~ |
| 12299 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ |
| 12300 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ |
| 12301 | $RANLIB $oldlib' |
| 12302 | archive_cmds_CXX='tpldir=Template.dir~ |
| 12303 | rm -rf $tpldir~ |
| 12304 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
| 12305 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 12306 | archive_expsym_cmds_CXX='tpldir=Template.dir~ |
| 12307 | rm -rf $tpldir~ |
| 12308 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
| 12309 | $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' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12310 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12311 | *) # Version 6 will use weak symbols |
| 12312 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 12313 | 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' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12314 | ;; |
| 12315 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12316 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12317 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 12318 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 12319 | 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' |
| 12320 | ;; |
| 12321 | cxx*) |
| 12322 | # Compaq C++ |
| 12323 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12324 | 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' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12325 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12326 | runpath_var=LD_RUN_PATH |
| 12327 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 12328 | hardcode_libdir_separator_CXX=: |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12329 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12330 | # Commands to make compiler produce verbose output that lists |
| 12331 | # what "hidden" libraries, object files and flags are used when |
| 12332 | # linking a shared library. |
| 12333 | # |
| 12334 | # There doesn't appear to be a way to prevent this compiler from |
| 12335 | # explicitly linking system object files so we need to strip them |
| 12336 | # from the output so that they don't get included in the library |
| 12337 | # dependencies. |
| 12338 | 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' |
| 12339 | ;; |
| 12340 | xl*) |
| 12341 | # IBM XL 8.0 on PPC, with GNU ld |
| 12342 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 12343 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 12344 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12345 | if test "x$supports_anon_versioning" = xyes; then |
| 12346 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ |
| 12347 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 12348 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 12349 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 12350 | fi |
| 12351 | ;; |
| 12352 | *) |
| 12353 | case `$CC -V 2>&1 | sed 5q` in |
| 12354 | *Sun\ C*) |
| 12355 | # Sun C++ 5.9 |
| 12356 | no_undefined_flag_CXX=' -zdefs' |
| 12357 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12358 | 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' |
| 12359 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 12360 | 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' |
| 12361 | compiler_needs_object_CXX=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12362 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12363 | # Not sure whether something based on |
| 12364 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
| 12365 | # would be better. |
| 12366 | output_verbose_link_cmd='echo' |
| 12367 | |
| 12368 | # Archives containing C++ object files must be created using |
| 12369 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 12370 | # necessary to make sure instantiated templates are included |
| 12371 | # in the archive. |
| 12372 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 12373 | ;; |
| 12374 | esac |
| 12375 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12376 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12377 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12378 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12379 | lynxos*) |
| 12380 | # FIXME: insert proper C++ library support |
| 12381 | ld_shlibs_CXX=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12382 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12383 | |
| 12384 | m88k*) |
| 12385 | # FIXME: insert proper C++ library support |
| 12386 | ld_shlibs_CXX=no |
| 12387 | ;; |
| 12388 | |
| 12389 | mvs*) |
| 12390 | case $cc_basename in |
| 12391 | cxx*) |
| 12392 | # FIXME: insert proper C++ library support |
| 12393 | ld_shlibs_CXX=no |
| 12394 | ;; |
| 12395 | *) |
| 12396 | # FIXME: insert proper C++ library support |
| 12397 | ld_shlibs_CXX=no |
| 12398 | ;; |
| 12399 | esac |
| 12400 | ;; |
| 12401 | |
| 12402 | netbsd*) |
| 12403 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 12404 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 12405 | wlarc= |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12406 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12407 | hardcode_direct_CXX=yes |
| 12408 | hardcode_shlibpath_var_CXX=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12409 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12410 | # Workaround some broken pre-1.5 toolchains |
| 12411 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12412 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12413 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12414 | *nto* | *qnx*) |
| 12415 | ld_shlibs_CXX=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12416 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12417 | |
| 12418 | openbsd2*) |
| 12419 | # C++ shared libraries are fairly broken |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12420 | ld_shlibs_CXX=no |
| 12421 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12422 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12423 | openbsd*) |
| 12424 | if test -f /usr/libexec/ld.so; then |
| 12425 | hardcode_direct_CXX=yes |
| 12426 | hardcode_shlibpath_var_CXX=no |
| 12427 | hardcode_direct_absolute_CXX=yes |
| 12428 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 12429 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 12430 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 12431 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| 12432 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 12433 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12434 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12435 | output_verbose_link_cmd=echo |
| 12436 | else |
| 12437 | ld_shlibs_CXX=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12438 | fi |
| 12439 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12440 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12441 | osf3* | osf4* | osf5*) |
| 12442 | case $cc_basename in |
| 12443 | KCC*) |
| 12444 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 12445 | |
| 12446 | # KCC will only create a shared library if the output file |
| 12447 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 12448 | # to its proper name (with version) after linking. |
| 12449 | 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' |
| 12450 | |
| 12451 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 12452 | hardcode_libdir_separator_CXX=: |
| 12453 | |
| 12454 | # Archives containing C++ object files must be created using |
| 12455 | # the KAI C++ compiler. |
| 12456 | case $host in |
| 12457 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; |
| 12458 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; |
| 12459 | esac |
| 12460 | ;; |
| 12461 | RCC*) |
| 12462 | # Rational C++ 2.4.1 |
| 12463 | # FIXME: insert proper C++ library support |
| 12464 | ld_shlibs_CXX=no |
| 12465 | ;; |
| 12466 | cxx*) |
| 12467 | case $host in |
| 12468 | osf3*) |
| 12469 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 12470 | 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' |
| 12471 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 12472 | ;; |
| 12473 | *) |
| 12474 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
| 12475 | 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' |
| 12476 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 12477 | echo "-hidden">> $lib.exp~ |
| 12478 | $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~ |
| 12479 | $RM $lib.exp' |
| 12480 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 12481 | ;; |
| 12482 | esac |
| 12483 | |
| 12484 | hardcode_libdir_separator_CXX=: |
| 12485 | |
| 12486 | # Commands to make compiler produce verbose output that lists |
| 12487 | # what "hidden" libraries, object files and flags are used when |
| 12488 | # linking a shared library. |
| 12489 | # |
| 12490 | # There doesn't appear to be a way to prevent this compiler from |
| 12491 | # explicitly linking system object files so we need to strip them |
| 12492 | # from the output so that they don't get included in the library |
| 12493 | # dependencies. |
| 12494 | 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' |
| 12495 | ;; |
| 12496 | *) |
| 12497 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 12498 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 12499 | case $host in |
| 12500 | osf3*) |
| 12501 | 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' |
| 12502 | ;; |
| 12503 | *) |
| 12504 | 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' |
| 12505 | ;; |
| 12506 | esac |
| 12507 | |
| 12508 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 12509 | hardcode_libdir_separator_CXX=: |
| 12510 | |
| 12511 | # Commands to make compiler produce verbose output that lists |
| 12512 | # what "hidden" libraries, object files and flags are used when |
| 12513 | # linking a shared library. |
| 12514 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
| 12515 | |
| 12516 | else |
| 12517 | # FIXME: insert proper C++ library support |
| 12518 | ld_shlibs_CXX=no |
| 12519 | fi |
| 12520 | ;; |
| 12521 | esac |
| 12522 | ;; |
| 12523 | |
| 12524 | psos*) |
| 12525 | # FIXME: insert proper C++ library support |
| 12526 | ld_shlibs_CXX=no |
| 12527 | ;; |
| 12528 | |
| 12529 | sunos4*) |
| 12530 | case $cc_basename in |
| 12531 | CC*) |
| 12532 | # Sun C++ 4.x |
| 12533 | # FIXME: insert proper C++ library support |
| 12534 | ld_shlibs_CXX=no |
| 12535 | ;; |
| 12536 | lcc*) |
| 12537 | # Lucid |
| 12538 | # FIXME: insert proper C++ library support |
| 12539 | ld_shlibs_CXX=no |
| 12540 | ;; |
| 12541 | *) |
| 12542 | # FIXME: insert proper C++ library support |
| 12543 | ld_shlibs_CXX=no |
| 12544 | ;; |
| 12545 | esac |
| 12546 | ;; |
| 12547 | |
| 12548 | solaris*) |
| 12549 | case $cc_basename in |
| 12550 | CC*) |
| 12551 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 12552 | archive_cmds_need_lc_CXX=yes |
| 12553 | no_undefined_flag_CXX=' -zdefs' |
| 12554 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12555 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 12556 | $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' |
| 12557 | |
| 12558 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 12559 | hardcode_shlibpath_var_CXX=no |
| 12560 | case $host_os in |
| 12561 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 12562 | *) |
| 12563 | # The compiler driver will combine and reorder linker options, |
| 12564 | # but understands `-z linker_flag'. |
| 12565 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 12566 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' |
| 12567 | ;; |
| 12568 | esac |
| 12569 | link_all_deplibs_CXX=yes |
| 12570 | |
| 12571 | output_verbose_link_cmd='echo' |
| 12572 | |
| 12573 | # Archives containing C++ object files must be created using |
| 12574 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 12575 | # necessary to make sure instantiated templates are included |
| 12576 | # in the archive. |
| 12577 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 12578 | ;; |
| 12579 | gcx*) |
| 12580 | # Green Hills C++ Compiler |
| 12581 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 12582 | |
| 12583 | # The C++ compiler must be used to create the archive. |
| 12584 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 12585 | ;; |
| 12586 | *) |
| 12587 | # GNU C++ compiler with Solaris linker |
| 12588 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 12589 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 12590 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then |
| 12591 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 12592 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 12593 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 12594 | |
| 12595 | # Commands to make compiler produce verbose output that lists |
| 12596 | # what "hidden" libraries, object files and flags are used when |
| 12597 | # linking a shared library. |
| 12598 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
| 12599 | else |
| 12600 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 12601 | # platform. |
| 12602 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 12603 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 12604 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 12605 | |
| 12606 | # Commands to make compiler produce verbose output that lists |
| 12607 | # what "hidden" libraries, object files and flags are used when |
| 12608 | # linking a shared library. |
| 12609 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
| 12610 | fi |
| 12611 | |
| 12612 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 12613 | case $host_os in |
| 12614 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 12615 | *) |
| 12616 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 12617 | ;; |
| 12618 | esac |
| 12619 | fi |
| 12620 | ;; |
| 12621 | esac |
| 12622 | ;; |
| 12623 | |
| 12624 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 12625 | no_undefined_flag_CXX='${wl}-z,text' |
| 12626 | archive_cmds_need_lc_CXX=no |
| 12627 | hardcode_shlibpath_var_CXX=no |
| 12628 | runpath_var='LD_RUN_PATH' |
| 12629 | |
| 12630 | case $cc_basename in |
| 12631 | CC*) |
| 12632 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12633 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12634 | ;; |
| 12635 | *) |
| 12636 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12637 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12638 | ;; |
| 12639 | esac |
| 12640 | ;; |
| 12641 | |
| 12642 | sysv5* | sco3.2v5* | sco5v6*) |
| 12643 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 12644 | # link with -lc, and that would cause any symbols used from libc to |
| 12645 | # always be unresolved, which means just about no library would |
| 12646 | # ever link correctly. If we're not using GNU ld we use -z text |
| 12647 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 12648 | # as -z defs. |
| 12649 | no_undefined_flag_CXX='${wl}-z,text' |
| 12650 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
| 12651 | archive_cmds_need_lc_CXX=no |
| 12652 | hardcode_shlibpath_var_CXX=no |
| 12653 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' |
| 12654 | hardcode_libdir_separator_CXX=':' |
| 12655 | link_all_deplibs_CXX=yes |
| 12656 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
| 12657 | runpath_var='LD_RUN_PATH' |
| 12658 | |
| 12659 | case $cc_basename in |
| 12660 | CC*) |
| 12661 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12662 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12663 | ;; |
| 12664 | *) |
| 12665 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12666 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12667 | ;; |
| 12668 | esac |
| 12669 | ;; |
| 12670 | |
| 12671 | tandem*) |
| 12672 | case $cc_basename in |
| 12673 | NCC*) |
| 12674 | # NonStop-UX NCC 3.20 |
| 12675 | # FIXME: insert proper C++ library support |
| 12676 | ld_shlibs_CXX=no |
| 12677 | ;; |
| 12678 | *) |
| 12679 | # FIXME: insert proper C++ library support |
| 12680 | ld_shlibs_CXX=no |
| 12681 | ;; |
| 12682 | esac |
| 12683 | ;; |
| 12684 | |
| 12685 | vxworks*) |
| 12686 | # FIXME: insert proper C++ library support |
| 12687 | ld_shlibs_CXX=no |
| 12688 | ;; |
| 12689 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12690 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12691 | # FIXME: insert proper C++ library support |
| 12692 | ld_shlibs_CXX=no |
| 12693 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12694 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12695 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
| 12697 | $as_echo "$ld_shlibs_CXX" >&6; } |
| 12698 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12699 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12700 | GCC_CXX="$GXX" |
| 12701 | LD_CXX="$LD" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12702 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12703 | ## CAVEAT EMPTOR: |
| 12704 | ## There is no encapsulation within the following macros, do not change |
| 12705 | ## the running order or otherwise move them around unless you know exactly |
| 12706 | ## what you are doing... |
| 12707 | # Dependencies to place before and after the object being linked: |
| 12708 | predep_objects_CXX= |
| 12709 | postdep_objects_CXX= |
| 12710 | predeps_CXX= |
| 12711 | postdeps_CXX= |
| 12712 | compiler_lib_search_path_CXX= |
| 12713 | |
| 12714 | cat > conftest.$ac_ext <<_LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12715 | class Foo |
| 12716 | { |
| 12717 | public: |
| 12718 | Foo (void) { a = 0; } |
| 12719 | private: |
| 12720 | int a; |
| 12721 | }; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12722 | _LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12723 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12724 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12725 | (eval $ac_compile) 2>&5 |
| 12726 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12727 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 12728 | test $ac_status = 0; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12729 | # Parse the compiler output and extract the necessary |
| 12730 | # objects, libraries and library flags. |
| 12731 | |
| 12732 | # Sentinel used to keep track of whether or not we are before |
| 12733 | # the conftest object file. |
| 12734 | pre_test_object_deps_done=no |
| 12735 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12736 | for p in `eval "$output_verbose_link_cmd"`; do |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12737 | case $p in |
| 12738 | |
| 12739 | -L* | -R* | -l*) |
| 12740 | # Some compilers place space between "-{L,R}" and the path. |
| 12741 | # Remove the space. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12742 | if test $p = "-L" || |
| 12743 | test $p = "-R"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12744 | prev=$p |
| 12745 | continue |
| 12746 | else |
| 12747 | prev= |
| 12748 | fi |
| 12749 | |
| 12750 | if test "$pre_test_object_deps_done" = no; then |
| 12751 | case $p in |
| 12752 | -L* | -R*) |
| 12753 | # Internal compiler library paths should come after those |
| 12754 | # provided the user. The postdeps already come after the |
| 12755 | # user supplied libs so there is no need to process them. |
| 12756 | if test -z "$compiler_lib_search_path_CXX"; then |
| 12757 | compiler_lib_search_path_CXX="${prev}${p}" |
| 12758 | else |
| 12759 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 12760 | fi |
| 12761 | ;; |
| 12762 | # The "-l" case would never come before the object being |
| 12763 | # linked, so don't bother handling this case. |
| 12764 | esac |
| 12765 | else |
| 12766 | if test -z "$postdeps_CXX"; then |
| 12767 | postdeps_CXX="${prev}${p}" |
| 12768 | else |
| 12769 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 12770 | fi |
| 12771 | fi |
| 12772 | ;; |
| 12773 | |
| 12774 | *.$objext) |
| 12775 | # This assumes that the test object file only shows up |
| 12776 | # once in the compiler output. |
| 12777 | if test "$p" = "conftest.$objext"; then |
| 12778 | pre_test_object_deps_done=yes |
| 12779 | continue |
| 12780 | fi |
| 12781 | |
| 12782 | if test "$pre_test_object_deps_done" = no; then |
| 12783 | if test -z "$predep_objects_CXX"; then |
| 12784 | predep_objects_CXX="$p" |
| 12785 | else |
| 12786 | predep_objects_CXX="$predep_objects_CXX $p" |
| 12787 | fi |
| 12788 | else |
| 12789 | if test -z "$postdep_objects_CXX"; then |
| 12790 | postdep_objects_CXX="$p" |
| 12791 | else |
| 12792 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 12793 | fi |
| 12794 | fi |
| 12795 | ;; |
| 12796 | |
| 12797 | *) ;; # Ignore the rest. |
| 12798 | |
| 12799 | esac |
| 12800 | done |
| 12801 | |
| 12802 | # Clean up. |
| 12803 | rm -f a.out a.exe |
| 12804 | else |
| 12805 | echo "libtool.m4: error: problem compiling CXX test program" |
| 12806 | fi |
| 12807 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12808 | $RM -f confest.$objext |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12809 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12810 | # PORTME: override above test on systems where it is broken |
| 12811 | case $host_os in |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12812 | interix[3-9]*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12813 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 12814 | # hack all around it, let's just trust "g++" to DTRT. |
| 12815 | predep_objects_CXX= |
| 12816 | postdep_objects_CXX= |
| 12817 | postdeps_CXX= |
| 12818 | ;; |
| 12819 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12820 | linux*) |
| 12821 | case `$CC -V 2>&1 | sed 5q` in |
| 12822 | *Sun\ C*) |
| 12823 | # Sun C++ 5.9 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12824 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12825 | # The more standards-conforming stlport4 library is |
| 12826 | # incompatible with the Cstd library. Avoid specifying |
| 12827 | # it if it's in CXXFLAGS. Ignore libCrun as |
| 12828 | # -library=stlport4 depends on it. |
| 12829 | case " $CXX $CXXFLAGS " in |
| 12830 | *" -library=stlport4 "*) |
| 12831 | solaris_use_stlport4=yes |
| 12832 | ;; |
| 12833 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12834 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12835 | if test "$solaris_use_stlport4" != yes; then |
| 12836 | postdeps_CXX='-library=Cstd -library=Crun' |
| 12837 | fi |
| 12838 | ;; |
| 12839 | esac |
| 12840 | ;; |
| 12841 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12842 | solaris*) |
| 12843 | case $cc_basename in |
| 12844 | CC*) |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12845 | # The more standards-conforming stlport4 library is |
| 12846 | # incompatible with the Cstd library. Avoid specifying |
| 12847 | # it if it's in CXXFLAGS. Ignore libCrun as |
| 12848 | # -library=stlport4 depends on it. |
| 12849 | case " $CXX $CXXFLAGS " in |
| 12850 | *" -library=stlport4 "*) |
| 12851 | solaris_use_stlport4=yes |
| 12852 | ;; |
| 12853 | esac |
| 12854 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12855 | # Adding this requires a known-good setup of shared libraries for |
| 12856 | # Sun compiler versions before 5.6, else PIC objects from an old |
| 12857 | # archive will be linked into the output, leading to subtle bugs. |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12858 | if test "$solaris_use_stlport4" != yes; then |
| 12859 | postdeps_CXX='-library=Cstd -library=Crun' |
| 12860 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12861 | ;; |
| 12862 | esac |
| 12863 | ;; |
| 12864 | esac |
| 12865 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12866 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12867 | case " $postdeps_CXX " in |
| 12868 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 12869 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12870 | compiler_lib_search_dirs_CXX= |
| 12871 | if test -n "${compiler_lib_search_path_CXX}"; then |
| 12872 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` |
| 12873 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12874 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12875 | |
| 12876 | |
| 12877 | |
| 12878 | |
| 12879 | |
| 12880 | |
| 12881 | |
| 12882 | |
| 12883 | |
| 12884 | |
| 12885 | |
| 12886 | |
| 12887 | |
| 12888 | |
| 12889 | |
| 12890 | |
| 12891 | |
| 12892 | |
| 12893 | |
| 12894 | |
| 12895 | |
| 12896 | |
| 12897 | |
| 12898 | |
| 12899 | |
| 12900 | |
| 12901 | |
| 12902 | |
| 12903 | |
| 12904 | |
| 12905 | lt_prog_compiler_wl_CXX= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12906 | lt_prog_compiler_pic_CXX= |
| 12907 | lt_prog_compiler_static_CXX= |
| 12908 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 12910 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12911 | |
| 12912 | # C++ specific cases for pic, static, wl, etc. |
| 12913 | if test "$GXX" = yes; then |
| 12914 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12915 | lt_prog_compiler_static_CXX='-static' |
| 12916 | |
| 12917 | case $host_os in |
| 12918 | aix*) |
| 12919 | # All AIX code is PIC. |
| 12920 | if test "$host_cpu" = ia64; then |
| 12921 | # AIX 5 now supports IA64 processor |
| 12922 | lt_prog_compiler_static_CXX='-Bstatic' |
| 12923 | fi |
| 12924 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12925 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12926 | amigaos*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12927 | case $host_cpu in |
| 12928 | powerpc) |
| 12929 | # see comment about AmigaOS4 .so support |
| 12930 | lt_prog_compiler_pic_CXX='-fPIC' |
| 12931 | ;; |
| 12932 | m68k) |
| 12933 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 12934 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 12935 | # like `-m68040'. |
| 12936 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 12937 | ;; |
| 12938 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12939 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12940 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12941 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12942 | # PIC is the default for these OSes. |
| 12943 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12944 | mingw* | cygwin* | os2* | pw32* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12945 | # This hack is so that the source file can tell whether it is being |
| 12946 | # built for inclusion in a dll (and should export symbols for example). |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12947 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 12948 | # (--disable-auto-import) libraries |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12949 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 12950 | ;; |
| 12951 | darwin* | rhapsody*) |
| 12952 | # PIC is the default on this platform |
| 12953 | # Common symbols not allowed in MH_DYLIB files |
| 12954 | lt_prog_compiler_pic_CXX='-fno-common' |
| 12955 | ;; |
| 12956 | *djgpp*) |
| 12957 | # DJGPP does not support shared libraries at all |
| 12958 | lt_prog_compiler_pic_CXX= |
| 12959 | ;; |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12960 | interix[3-9]*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12961 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 12962 | # Instead, we relocate shared libraries at runtime. |
| 12963 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12964 | sysv4*MP*) |
| 12965 | if test -d /usr/nec; then |
| 12966 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 12967 | fi |
| 12968 | ;; |
| 12969 | hpux*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12970 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 12971 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 12972 | # sets the default TLS model and affects inlining. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12973 | case $host_cpu in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12974 | hppa*64*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12975 | ;; |
| 12976 | *) |
| 12977 | lt_prog_compiler_pic_CXX='-fPIC' |
| 12978 | ;; |
| 12979 | esac |
| 12980 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12981 | *qnx* | *nto*) |
| 12982 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 12983 | # it will coredump. |
| 12984 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 12985 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12986 | *) |
| 12987 | lt_prog_compiler_pic_CXX='-fPIC' |
| 12988 | ;; |
| 12989 | esac |
| 12990 | else |
| 12991 | case $host_os in |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12992 | aix[4-9]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12993 | # All AIX code is PIC. |
| 12994 | if test "$host_cpu" = ia64; then |
| 12995 | # AIX 5 now supports IA64 processor |
| 12996 | lt_prog_compiler_static_CXX='-Bstatic' |
| 12997 | else |
| 12998 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 12999 | fi |
| 13000 | ;; |
| 13001 | chorus*) |
| 13002 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13003 | cxch68*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13004 | # Green Hills C++ Compiler |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13005 | # _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" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13006 | ;; |
| 13007 | esac |
| 13008 | ;; |
| 13009 | dgux*) |
| 13010 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13011 | ec++*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13012 | lt_prog_compiler_pic_CXX='-KPIC' |
| 13013 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13014 | ghcx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13015 | # Green Hills C++ Compiler |
| 13016 | lt_prog_compiler_pic_CXX='-pic' |
| 13017 | ;; |
| 13018 | *) |
| 13019 | ;; |
| 13020 | esac |
| 13021 | ;; |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13022 | freebsd* | dragonfly*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13023 | # FreeBSD uses GNU C++ |
| 13024 | ;; |
| 13025 | hpux9* | hpux10* | hpux11*) |
| 13026 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13027 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13028 | lt_prog_compiler_wl_CXX='-Wl,' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13029 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13030 | if test "$host_cpu" != ia64; then |
| 13031 | lt_prog_compiler_pic_CXX='+Z' |
| 13032 | fi |
| 13033 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13034 | aCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13035 | lt_prog_compiler_wl_CXX='-Wl,' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13036 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 13037 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13038 | hppa*64*|ia64*) |
| 13039 | # +Z the default |
| 13040 | ;; |
| 13041 | *) |
| 13042 | lt_prog_compiler_pic_CXX='+Z' |
| 13043 | ;; |
| 13044 | esac |
| 13045 | ;; |
| 13046 | *) |
| 13047 | ;; |
| 13048 | esac |
| 13049 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13050 | interix*) |
| 13051 | # This is c89, which is MS Visual C++ (no shared libs) |
| 13052 | # Anyone wants to do a port? |
| 13053 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13054 | irix5* | irix6* | nonstopux*) |
| 13055 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13056 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13057 | lt_prog_compiler_wl_CXX='-Wl,' |
| 13058 | lt_prog_compiler_static_CXX='-non_shared' |
| 13059 | # CC pic flag -KPIC is the default. |
| 13060 | ;; |
| 13061 | *) |
| 13062 | ;; |
| 13063 | esac |
| 13064 | ;; |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 13065 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13066 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13067 | KCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13068 | # KAI C++ Compiler |
| 13069 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 13070 | lt_prog_compiler_pic_CXX='-fPIC' |
| 13071 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13072 | ecpc* ) |
| 13073 | # old Intel C++ for x86_64 which still supported -KPIC. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13074 | lt_prog_compiler_wl_CXX='-Wl,' |
| 13075 | lt_prog_compiler_pic_CXX='-KPIC' |
| 13076 | lt_prog_compiler_static_CXX='-static' |
| 13077 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13078 | icpc* ) |
| 13079 | # Intel C++, used to be incompatible with GCC. |
| 13080 | # ICC 10 doesn't accept -KPIC any more. |
| 13081 | lt_prog_compiler_wl_CXX='-Wl,' |
| 13082 | lt_prog_compiler_pic_CXX='-fPIC' |
| 13083 | lt_prog_compiler_static_CXX='-static' |
| 13084 | ;; |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13085 | pgCC* | pgcpp*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13086 | # Portland Group C++ compiler |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13087 | lt_prog_compiler_wl_CXX='-Wl,' |
| 13088 | lt_prog_compiler_pic_CXX='-fpic' |
| 13089 | lt_prog_compiler_static_CXX='-Bstatic' |
| 13090 | ;; |
| 13091 | cxx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13092 | # Compaq C++ |
| 13093 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 13094 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 13095 | lt_prog_compiler_pic_CXX= |
| 13096 | lt_prog_compiler_static_CXX='-non_shared' |
| 13097 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13098 | xlc* | xlC*) |
| 13099 | # IBM XL 8.0 on PPC |
| 13100 | lt_prog_compiler_wl_CXX='-Wl,' |
| 13101 | lt_prog_compiler_pic_CXX='-qpic' |
| 13102 | lt_prog_compiler_static_CXX='-qstaticlink' |
| 13103 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13104 | *) |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13105 | case `$CC -V 2>&1 | sed 5q` in |
| 13106 | *Sun\ C*) |
| 13107 | # Sun C++ 5.9 |
| 13108 | lt_prog_compiler_pic_CXX='-KPIC' |
| 13109 | lt_prog_compiler_static_CXX='-Bstatic' |
| 13110 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 13111 | ;; |
| 13112 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13113 | ;; |
| 13114 | esac |
| 13115 | ;; |
| 13116 | lynxos*) |
| 13117 | ;; |
| 13118 | m88k*) |
| 13119 | ;; |
| 13120 | mvs*) |
| 13121 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13122 | cxx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13123 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 13124 | ;; |
| 13125 | *) |
| 13126 | ;; |
| 13127 | esac |
| 13128 | ;; |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 13129 | netbsd* | netbsdelf*-gnu) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13130 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13131 | *qnx* | *nto*) |
| 13132 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 13133 | # it will coredump. |
| 13134 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 13135 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13136 | osf3* | osf4* | osf5*) |
| 13137 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13138 | KCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13139 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 13140 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13141 | RCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13142 | # Rational C++ 2.4.1 |
| 13143 | lt_prog_compiler_pic_CXX='-pic' |
| 13144 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13145 | cxx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13146 | # Digital/Compaq C++ |
| 13147 | lt_prog_compiler_wl_CXX='-Wl,' |
| 13148 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 13149 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 13150 | lt_prog_compiler_pic_CXX= |
| 13151 | lt_prog_compiler_static_CXX='-non_shared' |
| 13152 | ;; |
| 13153 | *) |
| 13154 | ;; |
| 13155 | esac |
| 13156 | ;; |
| 13157 | psos*) |
| 13158 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13159 | solaris*) |
| 13160 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13161 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13162 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 13163 | lt_prog_compiler_pic_CXX='-KPIC' |
| 13164 | lt_prog_compiler_static_CXX='-Bstatic' |
| 13165 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 13166 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13167 | gcx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13168 | # Green Hills C++ Compiler |
| 13169 | lt_prog_compiler_pic_CXX='-PIC' |
| 13170 | ;; |
| 13171 | *) |
| 13172 | ;; |
| 13173 | esac |
| 13174 | ;; |
| 13175 | sunos4*) |
| 13176 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13177 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13178 | # Sun C++ 4.x |
| 13179 | lt_prog_compiler_pic_CXX='-pic' |
| 13180 | lt_prog_compiler_static_CXX='-Bstatic' |
| 13181 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13182 | lcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13183 | # Lucid |
| 13184 | lt_prog_compiler_pic_CXX='-pic' |
| 13185 | ;; |
| 13186 | *) |
| 13187 | ;; |
| 13188 | esac |
| 13189 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13190 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 13191 | case $cc_basename in |
| 13192 | CC*) |
| 13193 | lt_prog_compiler_wl_CXX='-Wl,' |
| 13194 | lt_prog_compiler_pic_CXX='-KPIC' |
| 13195 | lt_prog_compiler_static_CXX='-Bstatic' |
| 13196 | ;; |
| 13197 | esac |
| 13198 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13199 | tandem*) |
| 13200 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13201 | NCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13202 | # NonStop-UX NCC 3.20 |
| 13203 | lt_prog_compiler_pic_CXX='-KPIC' |
| 13204 | ;; |
| 13205 | *) |
| 13206 | ;; |
| 13207 | esac |
| 13208 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13209 | vxworks*) |
| 13210 | ;; |
| 13211 | *) |
| 13212 | lt_prog_compiler_can_build_shared_CXX=no |
| 13213 | ;; |
| 13214 | esac |
| 13215 | fi |
| 13216 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13217 | case $host_os in |
| 13218 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 13219 | *djgpp*) |
| 13220 | lt_prog_compiler_pic_CXX= |
| 13221 | ;; |
| 13222 | *) |
| 13223 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 13224 | ;; |
| 13225 | esac |
| 13226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 |
| 13227 | $as_echo "$lt_prog_compiler_pic_CXX" >&6; } |
| 13228 | |
| 13229 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13230 | |
| 13231 | # |
| 13232 | # Check to make sure the PIC flag actually works. |
| 13233 | # |
| 13234 | if test -n "$lt_prog_compiler_pic_CXX"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 13236 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } |
| 13237 | if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : |
| 13238 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13239 | else |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13240 | lt_cv_prog_compiler_pic_works_CXX=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13241 | ac_outfile=conftest.$ac_objext |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13242 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13243 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 13244 | # Insert the option either (1) after the last *FLAGS variable, or |
| 13245 | # (2) before a word containing "conftest.", or (3) at the end. |
| 13246 | # Note that $ac_compile itself does not contain backslashes and begins |
| 13247 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 13248 | # The option is referenced via a variable to avoid confusing sed. |
| 13249 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13250 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13251 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 13252 | -e 's:$: $lt_compiler_flag:'` |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 13253 | (eval echo "\"\$as_me:13253: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13254 | (eval "$lt_compile" 2>conftest.err) |
| 13255 | ac_status=$? |
| 13256 | cat conftest.err >&5 |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 13257 | echo "$as_me:13257: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13258 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 13259 | # The compiler can only warn and ignore the option if not recognized |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13260 | # So say no if there are warnings other than the usual output. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13261 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13262 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 13263 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13264 | lt_cv_prog_compiler_pic_works_CXX=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13265 | fi |
| 13266 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13267 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13268 | |
| 13269 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 |
| 13271 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13272 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13273 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13274 | case $lt_prog_compiler_pic_CXX in |
| 13275 | "" | " "*) ;; |
| 13276 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 13277 | esac |
| 13278 | else |
| 13279 | lt_prog_compiler_pic_CXX= |
| 13280 | lt_prog_compiler_can_build_shared_CXX=no |
| 13281 | fi |
| 13282 | |
| 13283 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13284 | |
| 13285 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13286 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13287 | # |
| 13288 | # Check to make sure the static flag actually works. |
| 13289 | # |
| 13290 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 13292 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| 13293 | if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : |
| 13294 | $as_echo_n "(cached) " >&6 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13295 | else |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13296 | lt_cv_prog_compiler_static_works_CXX=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13297 | save_LDFLAGS="$LDFLAGS" |
| 13298 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13299 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13300 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 13301 | # The linker can only warn and ignore the option if not recognized |
| 13302 | # So say no if there are warnings |
| 13303 | if test -s conftest.err; then |
| 13304 | # Append any errors to the config.log. |
| 13305 | cat conftest.err 1>&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13306 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13307 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 13308 | if diff conftest.exp conftest.er2 >/dev/null; then |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13309 | lt_cv_prog_compiler_static_works_CXX=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13310 | fi |
| 13311 | else |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13312 | lt_cv_prog_compiler_static_works_CXX=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13313 | fi |
| 13314 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13315 | $RM -r conftest* |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13316 | LDFLAGS="$save_LDFLAGS" |
| 13317 | |
| 13318 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 |
| 13320 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13321 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13322 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13323 | : |
| 13324 | else |
| 13325 | lt_prog_compiler_static_CXX= |
| 13326 | fi |
| 13327 | |
| 13328 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13329 | |
| 13330 | |
| 13331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 13332 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 13333 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : |
| 13334 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13335 | else |
| 13336 | lt_cv_prog_compiler_c_o_CXX=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13337 | $RM -r conftest 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13338 | mkdir conftest |
| 13339 | cd conftest |
| 13340 | mkdir out |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13341 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13342 | |
| 13343 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 13344 | # Insert the option either (1) after the last *FLAGS variable, or |
| 13345 | # (2) before a word containing "conftest.", or (3) at the end. |
| 13346 | # Note that $ac_compile itself does not contain backslashes and begins |
| 13347 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 13348 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13349 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13350 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 13351 | -e 's:$: $lt_compiler_flag:'` |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 13352 | (eval echo "\"\$as_me:13352: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13353 | (eval "$lt_compile" 2>out/conftest.err) |
| 13354 | ac_status=$? |
| 13355 | cat out/conftest.err >&5 |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 13356 | echo "$as_me:13356: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13357 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 13358 | then |
| 13359 | # The compiler can only warn and ignore the option if not recognized |
| 13360 | # So say no if there are warnings |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13361 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13362 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 13363 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13364 | lt_cv_prog_compiler_c_o_CXX=yes |
| 13365 | fi |
| 13366 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13367 | chmod u+w . 2>&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13368 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13369 | # SGI C++ compiler will create directory out/ii_files/ for |
| 13370 | # template instantiation |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13371 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 13372 | $RM out/* && rmdir out |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13373 | cd .. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13374 | $RM -r conftest |
| 13375 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13376 | |
| 13377 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 13379 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
| 13380 | |
| 13381 | |
| 13382 | |
| 13383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 13384 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 13385 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : |
| 13386 | $as_echo_n "(cached) " >&6 |
| 13387 | else |
| 13388 | lt_cv_prog_compiler_c_o_CXX=no |
| 13389 | $RM -r conftest 2>/dev/null |
| 13390 | mkdir conftest |
| 13391 | cd conftest |
| 13392 | mkdir out |
| 13393 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 13394 | |
| 13395 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 13396 | # Insert the option either (1) after the last *FLAGS variable, or |
| 13397 | # (2) before a word containing "conftest.", or (3) at the end. |
| 13398 | # Note that $ac_compile itself does not contain backslashes and begins |
| 13399 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 13400 | lt_compile=`echo "$ac_compile" | $SED \ |
| 13401 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 13402 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 13403 | -e 's:$: $lt_compiler_flag:'` |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 13404 | (eval echo "\"\$as_me:13404: $lt_compile\"" >&5) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13405 | (eval "$lt_compile" 2>out/conftest.err) |
| 13406 | ac_status=$? |
| 13407 | cat out/conftest.err >&5 |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 13408 | echo "$as_me:13408: \$? = $ac_status" >&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13409 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 13410 | then |
| 13411 | # The compiler can only warn and ignore the option if not recognized |
| 13412 | # So say no if there are warnings |
| 13413 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 13414 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 13415 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 13416 | lt_cv_prog_compiler_c_o_CXX=yes |
| 13417 | fi |
| 13418 | fi |
| 13419 | chmod u+w . 2>&5 |
| 13420 | $RM conftest* |
| 13421 | # SGI C++ compiler will create directory out/ii_files/ for |
| 13422 | # template instantiation |
| 13423 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 13424 | $RM out/* && rmdir out |
| 13425 | cd .. |
| 13426 | $RM -r conftest |
| 13427 | $RM conftest* |
| 13428 | |
| 13429 | fi |
| 13430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 13431 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
| 13432 | |
| 13433 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13434 | |
| 13435 | |
| 13436 | hard_links="nottested" |
| 13437 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 13438 | # do not overwrite the value of need_locks provided by the user |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| 13440 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13441 | hard_links=yes |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13442 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13443 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 13444 | touch conftest.a |
| 13445 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 13446 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 13448 | $as_echo "$hard_links" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13449 | if test "$hard_links" = no; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13450 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 13451 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13452 | need_locks=warn |
| 13453 | fi |
| 13454 | else |
| 13455 | need_locks=no |
| 13456 | fi |
| 13457 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13458 | |
| 13459 | |
| 13460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 13461 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13462 | |
| 13463 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 13464 | case $host_os in |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13465 | aix[4-9]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13466 | # If we're using GNU nm, then we don't want the "-C" option. |
| 13467 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13468 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 13469 | 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' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13470 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13471 | 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' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13472 | fi |
| 13473 | ;; |
| 13474 | pw32*) |
| 13475 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 13476 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13477 | cygwin* | mingw* | cegcc*) |
| 13478 | 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' |
| 13479 | ;; |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 13480 | linux* | k*bsd*-gnu) |
| 13481 | link_all_deplibs_CXX=no |
| 13482 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13483 | *) |
| 13484 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 13485 | ;; |
| 13486 | esac |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13487 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13488 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
| 13490 | $as_echo "$ld_shlibs_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13491 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 13492 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13493 | with_gnu_ld_CXX=$with_gnu_ld |
| 13494 | |
| 13495 | |
| 13496 | |
| 13497 | |
| 13498 | |
| 13499 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13500 | # |
| 13501 | # Do we need to explicitly link libc? |
| 13502 | # |
| 13503 | case "x$archive_cmds_need_lc_CXX" in |
| 13504 | x|xyes) |
| 13505 | # Assume -lc should be added |
| 13506 | archive_cmds_need_lc_CXX=yes |
| 13507 | |
| 13508 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 13509 | case $archive_cmds_CXX in |
| 13510 | *'~'*) |
| 13511 | # FIXME: we may have to deal with multi-command sequences. |
| 13512 | ;; |
| 13513 | '$CC '*) |
| 13514 | # Test whether the compiler implicitly links with -lc since on some |
| 13515 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 13516 | # to ld, don't add -lc before -lgcc. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
| 13518 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
| 13519 | $RM conftest* |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13520 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13521 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13522 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13523 | (eval $ac_compile) 2>&5 |
| 13524 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13525 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 13526 | test $ac_status = 0; } 2>conftest.err; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13527 | soname=conftest |
| 13528 | lib=conftest |
| 13529 | libobjs=conftest.$ac_objext |
| 13530 | deplibs= |
| 13531 | wl=$lt_prog_compiler_wl_CXX |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13532 | pic_flag=$lt_prog_compiler_pic_CXX |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13533 | compiler_flags=-v |
| 13534 | linker_flags=-v |
| 13535 | verstring= |
| 13536 | output_objdir=. |
| 13537 | libname=conftest |
| 13538 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 13539 | allow_undefined_flag_CXX= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13540 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
| 13541 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13542 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13543 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 13544 | test $ac_status = 0; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13545 | then |
| 13546 | archive_cmds_need_lc_CXX=no |
| 13547 | else |
| 13548 | archive_cmds_need_lc_CXX=yes |
| 13549 | fi |
| 13550 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 13551 | else |
| 13552 | cat conftest.err 1>&5 |
| 13553 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13554 | $RM conftest* |
| 13555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5 |
| 13556 | $as_echo "$archive_cmds_need_lc_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13557 | ;; |
| 13558 | esac |
| 13559 | fi |
| 13560 | ;; |
| 13561 | esac |
| 13562 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13563 | |
| 13564 | |
| 13565 | |
| 13566 | |
| 13567 | |
| 13568 | |
| 13569 | |
| 13570 | |
| 13571 | |
| 13572 | |
| 13573 | |
| 13574 | |
| 13575 | |
| 13576 | |
| 13577 | |
| 13578 | |
| 13579 | |
| 13580 | |
| 13581 | |
| 13582 | |
| 13583 | |
| 13584 | |
| 13585 | |
| 13586 | |
| 13587 | |
| 13588 | |
| 13589 | |
| 13590 | |
| 13591 | |
| 13592 | |
| 13593 | |
| 13594 | |
| 13595 | |
| 13596 | |
| 13597 | |
| 13598 | |
| 13599 | |
| 13600 | |
| 13601 | |
| 13602 | |
| 13603 | |
| 13604 | |
| 13605 | |
| 13606 | |
| 13607 | |
| 13608 | |
| 13609 | |
| 13610 | |
| 13611 | |
| 13612 | |
| 13613 | |
| 13614 | |
| 13615 | |
| 13616 | |
| 13617 | |
| 13618 | |
| 13619 | |
| 13620 | |
| 13621 | |
| 13622 | |
| 13623 | |
| 13624 | |
| 13625 | |
| 13626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| 13627 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
| 13628 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13629 | library_names_spec= |
| 13630 | libname_spec='lib$name' |
| 13631 | soname_spec= |
| 13632 | shrext_cmds=".so" |
| 13633 | postinstall_cmds= |
| 13634 | postuninstall_cmds= |
| 13635 | finish_cmds= |
| 13636 | finish_eval= |
| 13637 | shlibpath_var= |
| 13638 | shlibpath_overrides_runpath=unknown |
| 13639 | version_type=none |
| 13640 | dynamic_linker="$host_os ld.so" |
| 13641 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13642 | need_lib_prefix=unknown |
| 13643 | hardcode_into_libs=no |
| 13644 | |
| 13645 | # when you set need_version to no, make sure it does not cause -set_version |
| 13646 | # flags to be left without arguments |
| 13647 | need_version=unknown |
| 13648 | |
| 13649 | case $host_os in |
| 13650 | aix3*) |
| 13651 | version_type=linux |
| 13652 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 13653 | shlibpath_var=LIBPATH |
| 13654 | |
| 13655 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 13656 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13657 | ;; |
| 13658 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13659 | aix[4-9]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13660 | version_type=linux |
| 13661 | need_lib_prefix=no |
| 13662 | need_version=no |
| 13663 | hardcode_into_libs=yes |
| 13664 | if test "$host_cpu" = ia64; then |
| 13665 | # AIX 5 supports IA64 |
| 13666 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 13667 | shlibpath_var=LD_LIBRARY_PATH |
| 13668 | else |
| 13669 | # With GCC up to 2.95.x, collect2 would create an import file |
| 13670 | # for dependence libraries. The import file would start with |
| 13671 | # the line `#! .'. This would cause the generated library to |
| 13672 | # depend on `.', always an invalid library. This was fixed in |
| 13673 | # development snapshots of GCC prior to 3.0. |
| 13674 | case $host_os in |
| 13675 | aix4 | aix4.[01] | aix4.[01].*) |
| 13676 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 13677 | echo ' yes ' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13678 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13679 | : |
| 13680 | else |
| 13681 | can_build_shared=no |
| 13682 | fi |
| 13683 | ;; |
| 13684 | esac |
| 13685 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 13686 | # soname into executable. Probably we can add versioning support to |
| 13687 | # collect2, so additional links can be useful in future. |
| 13688 | if test "$aix_use_runtimelinking" = yes; then |
| 13689 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 13690 | # instead of lib<name>.a to let people know that these are not |
| 13691 | # typical AIX shared libraries. |
| 13692 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13693 | else |
| 13694 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 13695 | # and later when we are not doing run time linking. |
| 13696 | library_names_spec='${libname}${release}.a $libname.a' |
| 13697 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13698 | fi |
| 13699 | shlibpath_var=LIBPATH |
| 13700 | fi |
| 13701 | ;; |
| 13702 | |
| 13703 | amigaos*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13704 | case $host_cpu in |
| 13705 | powerpc) |
| 13706 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 13707 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 13708 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13709 | ;; |
| 13710 | m68k) |
| 13711 | library_names_spec='$libname.ixlibrary $libname.a' |
| 13712 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 13713 | 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' |
| 13714 | ;; |
| 13715 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13716 | ;; |
| 13717 | |
| 13718 | beos*) |
| 13719 | library_names_spec='${libname}${shared_ext}' |
| 13720 | dynamic_linker="$host_os ld.so" |
| 13721 | shlibpath_var=LIBRARY_PATH |
| 13722 | ;; |
| 13723 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13724 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13725 | version_type=linux |
| 13726 | need_version=no |
| 13727 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13728 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13729 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 13730 | shlibpath_var=LD_LIBRARY_PATH |
| 13731 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 13732 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 13733 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 13734 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 13735 | # libtool to hard-code these into programs |
| 13736 | ;; |
| 13737 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13738 | cygwin* | mingw* | pw32* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13739 | version_type=windows |
| 13740 | shrext_cmds=".dll" |
| 13741 | need_version=no |
| 13742 | need_lib_prefix=no |
| 13743 | |
| 13744 | case $GCC,$host_os in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13745 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13746 | library_names_spec='$libname.dll.a' |
| 13747 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 13748 | postinstall_cmds='base_file=`basename \${file}`~ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13749 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13750 | dldir=$destdir/`dirname \$dlpath`~ |
| 13751 | test -d \$dldir || mkdir -p \$dldir~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13752 | $install_prog $dir/$dlname \$dldir/$dlname~ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13753 | chmod a+x \$dldir/$dlname~ |
| 13754 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 13755 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 13756 | fi' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13757 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 13758 | dlpath=$dir/\$dldll~ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13759 | $RM \$dlpath' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13760 | shlibpath_overrides_runpath=yes |
| 13761 | |
| 13762 | case $host_os in |
| 13763 | cygwin*) |
| 13764 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 13765 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 13766 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 13767 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13768 | mingw* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13769 | # MinGW DLLs use traditional 'lib' prefix |
| 13770 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13771 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 13772 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13773 | # It is most probably a Windows format PATH printed by |
| 13774 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 13775 | # path with ; separators, and with drive letters. We can handle the |
| 13776 | # drive letters (cygwin fileutils understands them), so leave them, |
| 13777 | # especially as we might pass files found there to a mingw objdump, |
| 13778 | # which wouldn't understand a cygwinified path. Ahh. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13779 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13780 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13781 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13782 | fi |
| 13783 | ;; |
| 13784 | pw32*) |
| 13785 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13786 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13787 | ;; |
| 13788 | esac |
| 13789 | ;; |
| 13790 | |
| 13791 | *) |
| 13792 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 13793 | ;; |
| 13794 | esac |
| 13795 | dynamic_linker='Win32 ld.exe' |
| 13796 | # FIXME: first we should search . and the directory the executable is in |
| 13797 | shlibpath_var=PATH |
| 13798 | ;; |
| 13799 | |
| 13800 | darwin* | rhapsody*) |
| 13801 | dynamic_linker="$host_os dyld" |
| 13802 | version_type=darwin |
| 13803 | need_lib_prefix=no |
| 13804 | need_version=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13805 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13806 | soname_spec='${libname}${release}${major}$shared_ext' |
| 13807 | shlibpath_overrides_runpath=yes |
| 13808 | shlibpath_var=DYLD_LIBRARY_PATH |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13809 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13810 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13811 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 13812 | ;; |
| 13813 | |
| 13814 | dgux*) |
| 13815 | version_type=linux |
| 13816 | need_lib_prefix=no |
| 13817 | need_version=no |
| 13818 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 13819 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13820 | shlibpath_var=LD_LIBRARY_PATH |
| 13821 | ;; |
| 13822 | |
| 13823 | freebsd1*) |
| 13824 | dynamic_linker=no |
| 13825 | ;; |
| 13826 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13827 | freebsd* | dragonfly*) |
| 13828 | # DragonFly does not have aout. When/if they implement a new |
| 13829 | # versioning mechanism, adjust this. |
| 13830 | if test -x /usr/bin/objformat; then |
| 13831 | objformat=`/usr/bin/objformat` |
| 13832 | else |
| 13833 | case $host_os in |
| 13834 | freebsd[123]*) objformat=aout ;; |
| 13835 | *) objformat=elf ;; |
| 13836 | esac |
| 13837 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13838 | version_type=freebsd-$objformat |
| 13839 | case $version_type in |
| 13840 | freebsd-elf*) |
| 13841 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 13842 | need_version=no |
| 13843 | need_lib_prefix=no |
| 13844 | ;; |
| 13845 | freebsd-*) |
| 13846 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 13847 | need_version=yes |
| 13848 | ;; |
| 13849 | esac |
| 13850 | shlibpath_var=LD_LIBRARY_PATH |
| 13851 | case $host_os in |
| 13852 | freebsd2*) |
| 13853 | shlibpath_overrides_runpath=yes |
| 13854 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13855 | freebsd3.[01]* | freebsdelf3.[01]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13856 | shlibpath_overrides_runpath=yes |
| 13857 | hardcode_into_libs=yes |
| 13858 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13859 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 13860 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13861 | shlibpath_overrides_runpath=no |
| 13862 | hardcode_into_libs=yes |
| 13863 | ;; |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13864 | *) # from 4.6 on, and DragonFly |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13865 | shlibpath_overrides_runpath=yes |
| 13866 | hardcode_into_libs=yes |
| 13867 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13868 | esac |
| 13869 | ;; |
| 13870 | |
| 13871 | gnu*) |
| 13872 | version_type=linux |
| 13873 | need_lib_prefix=no |
| 13874 | need_version=no |
| 13875 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 13876 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13877 | shlibpath_var=LD_LIBRARY_PATH |
| 13878 | hardcode_into_libs=yes |
| 13879 | ;; |
| 13880 | |
| 13881 | hpux9* | hpux10* | hpux11*) |
| 13882 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 13883 | # link against other versions. |
| 13884 | version_type=sunos |
| 13885 | need_lib_prefix=no |
| 13886 | need_version=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13887 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13888 | ia64*) |
| 13889 | shrext_cmds='.so' |
| 13890 | hardcode_into_libs=yes |
| 13891 | dynamic_linker="$host_os dld.so" |
| 13892 | shlibpath_var=LD_LIBRARY_PATH |
| 13893 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13894 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13895 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13896 | if test "X$HPUX_IA64_MODE" = X32; then |
| 13897 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 13898 | else |
| 13899 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 13900 | fi |
| 13901 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13902 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13903 | hppa*64*) |
| 13904 | shrext_cmds='.sl' |
| 13905 | hardcode_into_libs=yes |
| 13906 | dynamic_linker="$host_os dld.sl" |
| 13907 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 13908 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13909 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13910 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13911 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 13912 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13913 | ;; |
| 13914 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13915 | shrext_cmds='.sl' |
| 13916 | dynamic_linker="$host_os dld.sl" |
| 13917 | shlibpath_var=SHLIB_PATH |
| 13918 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 13919 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13920 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13921 | ;; |
| 13922 | esac |
| 13923 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 13924 | postinstall_cmds='chmod 555 $lib' |
| 13925 | ;; |
| 13926 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13927 | interix[3-9]*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13928 | version_type=linux |
| 13929 | need_lib_prefix=no |
| 13930 | need_version=no |
| 13931 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 13932 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13933 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 13934 | shlibpath_var=LD_LIBRARY_PATH |
| 13935 | shlibpath_overrides_runpath=no |
| 13936 | hardcode_into_libs=yes |
| 13937 | ;; |
| 13938 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13939 | irix5* | irix6* | nonstopux*) |
| 13940 | case $host_os in |
| 13941 | nonstopux*) version_type=nonstopux ;; |
| 13942 | *) |
| 13943 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 13944 | version_type=linux |
| 13945 | else |
| 13946 | version_type=irix |
| 13947 | fi ;; |
| 13948 | esac |
| 13949 | need_lib_prefix=no |
| 13950 | need_version=no |
| 13951 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13952 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 13953 | case $host_os in |
| 13954 | irix5* | nonstopux*) |
| 13955 | libsuff= shlibsuff= |
| 13956 | ;; |
| 13957 | *) |
| 13958 | case $LD in # libtool.m4 will add one of these switches to LD |
| 13959 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 13960 | libsuff= shlibsuff= libmagic=32-bit;; |
| 13961 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 13962 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 13963 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 13964 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 13965 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 13966 | esac |
| 13967 | ;; |
| 13968 | esac |
| 13969 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 13970 | shlibpath_overrides_runpath=no |
| 13971 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 13972 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 13973 | hardcode_into_libs=yes |
| 13974 | ;; |
| 13975 | |
| 13976 | # No shared lib support for Linux oldld, aout, or coff. |
| 13977 | linux*oldld* | linux*aout* | linux*coff*) |
| 13978 | dynamic_linker=no |
| 13979 | ;; |
| 13980 | |
| 13981 | # This must be Linux ELF. |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 13982 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13983 | version_type=linux |
| 13984 | need_lib_prefix=no |
| 13985 | need_version=no |
| 13986 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13987 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13988 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 13989 | shlibpath_var=LD_LIBRARY_PATH |
| 13990 | shlibpath_overrides_runpath=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13991 | # Some binutils ld are patched to set DT_RUNPATH |
| 13992 | save_LDFLAGS=$LDFLAGS |
| 13993 | save_libdir=$libdir |
| 13994 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ |
| 13995 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" |
| 13996 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13997 | /* end confdefs.h. */ |
| 13998 | |
| 13999 | int |
| 14000 | main () |
| 14001 | { |
| 14002 | |
| 14003 | ; |
| 14004 | return 0; |
| 14005 | } |
| 14006 | _ACEOF |
| 14007 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 14008 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
| 14009 | shlibpath_overrides_runpath=yes |
| 14010 | fi |
| 14011 | fi |
| 14012 | rm -f core conftest.err conftest.$ac_objext \ |
| 14013 | conftest$ac_exeext conftest.$ac_ext |
| 14014 | LDFLAGS=$save_LDFLAGS |
| 14015 | libdir=$save_libdir |
| 14016 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14017 | # This implies no fast_install, which is unacceptable. |
| 14018 | # Some rework will be needed to allow for fast_install |
| 14019 | # before this can be enabled. |
| 14020 | hardcode_into_libs=yes |
| 14021 | |
| 14022 | # Append ld.so.conf contents to the search path |
| 14023 | if test -f /etc/ld.so.conf; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14024 | 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' ' '` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14025 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 14026 | fi |
| 14027 | |
| 14028 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 14029 | # powerpc, because MkLinux only supported shared libraries with the |
| 14030 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 14031 | # most powerpc-linux boxes support dynamic linking these days and |
| 14032 | # people can always --disable-shared, the test was removed, and we |
| 14033 | # assume the GNU/Linux dynamic linker is in use. |
| 14034 | dynamic_linker='GNU/Linux ld.so' |
| 14035 | ;; |
| 14036 | |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 14037 | netbsdelf*-gnu) |
| 14038 | version_type=linux |
| 14039 | need_lib_prefix=no |
| 14040 | need_version=no |
| 14041 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 14042 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14043 | shlibpath_var=LD_LIBRARY_PATH |
| 14044 | shlibpath_overrides_runpath=no |
| 14045 | hardcode_into_libs=yes |
| 14046 | dynamic_linker='NetBSD ld.elf_so' |
| 14047 | ;; |
| 14048 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14049 | netbsd*) |
| 14050 | version_type=sunos |
| 14051 | need_lib_prefix=no |
| 14052 | need_version=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14053 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14054 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 14055 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 14056 | dynamic_linker='NetBSD (a.out) ld.so' |
| 14057 | else |
| 14058 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 14059 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14060 | dynamic_linker='NetBSD ld.elf_so' |
| 14061 | fi |
| 14062 | shlibpath_var=LD_LIBRARY_PATH |
| 14063 | shlibpath_overrides_runpath=yes |
| 14064 | hardcode_into_libs=yes |
| 14065 | ;; |
| 14066 | |
| 14067 | newsos6) |
| 14068 | version_type=linux |
| 14069 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14070 | shlibpath_var=LD_LIBRARY_PATH |
| 14071 | shlibpath_overrides_runpath=yes |
| 14072 | ;; |
| 14073 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14074 | *nto* | *qnx*) |
| 14075 | version_type=qnx |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14076 | need_lib_prefix=no |
| 14077 | need_version=no |
| 14078 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14079 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14080 | shlibpath_var=LD_LIBRARY_PATH |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14081 | shlibpath_overrides_runpath=no |
| 14082 | hardcode_into_libs=yes |
| 14083 | dynamic_linker='ldqnx.so' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14084 | ;; |
| 14085 | |
| 14086 | openbsd*) |
| 14087 | version_type=sunos |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14088 | sys_lib_dlsearch_path_spec="/usr/lib" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14089 | need_lib_prefix=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14090 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 14091 | case $host_os in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14092 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 14093 | *) need_version=no ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14094 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14095 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 14096 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 14097 | shlibpath_var=LD_LIBRARY_PATH |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14098 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14099 | case $host_os in |
| 14100 | openbsd2.[89] | openbsd2.[89].*) |
| 14101 | shlibpath_overrides_runpath=no |
| 14102 | ;; |
| 14103 | *) |
| 14104 | shlibpath_overrides_runpath=yes |
| 14105 | ;; |
| 14106 | esac |
| 14107 | else |
| 14108 | shlibpath_overrides_runpath=yes |
| 14109 | fi |
| 14110 | ;; |
| 14111 | |
| 14112 | os2*) |
| 14113 | libname_spec='$name' |
| 14114 | shrext_cmds=".dll" |
| 14115 | need_lib_prefix=no |
| 14116 | library_names_spec='$libname${shared_ext} $libname.a' |
| 14117 | dynamic_linker='OS/2 ld.exe' |
| 14118 | shlibpath_var=LIBPATH |
| 14119 | ;; |
| 14120 | |
| 14121 | osf3* | osf4* | osf5*) |
| 14122 | version_type=osf |
| 14123 | need_lib_prefix=no |
| 14124 | need_version=no |
| 14125 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14126 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14127 | shlibpath_var=LD_LIBRARY_PATH |
| 14128 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 14129 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 14130 | ;; |
| 14131 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 14132 | rdos*) |
| 14133 | dynamic_linker=no |
| 14134 | ;; |
| 14135 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14136 | solaris*) |
| 14137 | version_type=linux |
| 14138 | need_lib_prefix=no |
| 14139 | need_version=no |
| 14140 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14141 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14142 | shlibpath_var=LD_LIBRARY_PATH |
| 14143 | shlibpath_overrides_runpath=yes |
| 14144 | hardcode_into_libs=yes |
| 14145 | # ldd complains unless libraries are executable |
| 14146 | postinstall_cmds='chmod +x $lib' |
| 14147 | ;; |
| 14148 | |
| 14149 | sunos4*) |
| 14150 | version_type=sunos |
| 14151 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 14152 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 14153 | shlibpath_var=LD_LIBRARY_PATH |
| 14154 | shlibpath_overrides_runpath=yes |
| 14155 | if test "$with_gnu_ld" = yes; then |
| 14156 | need_lib_prefix=no |
| 14157 | fi |
| 14158 | need_version=yes |
| 14159 | ;; |
| 14160 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14161 | sysv4 | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14162 | version_type=linux |
| 14163 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14164 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14165 | shlibpath_var=LD_LIBRARY_PATH |
| 14166 | case $host_vendor in |
| 14167 | sni) |
| 14168 | shlibpath_overrides_runpath=no |
| 14169 | need_lib_prefix=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14170 | runpath_var=LD_RUN_PATH |
| 14171 | ;; |
| 14172 | siemens) |
| 14173 | need_lib_prefix=no |
| 14174 | ;; |
| 14175 | motorola) |
| 14176 | need_lib_prefix=no |
| 14177 | need_version=no |
| 14178 | shlibpath_overrides_runpath=no |
| 14179 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 14180 | ;; |
| 14181 | esac |
| 14182 | ;; |
| 14183 | |
| 14184 | sysv4*MP*) |
| 14185 | if test -d /usr/nec ;then |
| 14186 | version_type=linux |
| 14187 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 14188 | soname_spec='$libname${shared_ext}.$major' |
| 14189 | shlibpath_var=LD_LIBRARY_PATH |
| 14190 | fi |
| 14191 | ;; |
| 14192 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14193 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 14194 | version_type=freebsd-elf |
| 14195 | need_lib_prefix=no |
| 14196 | need_version=no |
| 14197 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 14198 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14199 | shlibpath_var=LD_LIBRARY_PATH |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14200 | shlibpath_overrides_runpath=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14201 | hardcode_into_libs=yes |
| 14202 | if test "$with_gnu_ld" = yes; then |
| 14203 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14204 | else |
| 14205 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14206 | case $host_os in |
| 14207 | sco3.2v5*) |
| 14208 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 14209 | ;; |
| 14210 | esac |
| 14211 | fi |
| 14212 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 14213 | ;; |
| 14214 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14215 | tpf*) |
| 14216 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 14217 | version_type=linux |
| 14218 | need_lib_prefix=no |
| 14219 | need_version=no |
| 14220 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14221 | shlibpath_var=LD_LIBRARY_PATH |
| 14222 | shlibpath_overrides_runpath=no |
| 14223 | hardcode_into_libs=yes |
| 14224 | ;; |
| 14225 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14226 | uts4*) |
| 14227 | version_type=linux |
| 14228 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14229 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14230 | shlibpath_var=LD_LIBRARY_PATH |
| 14231 | ;; |
| 14232 | |
| 14233 | *) |
| 14234 | dynamic_linker=no |
| 14235 | ;; |
| 14236 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| 14238 | $as_echo "$dynamic_linker" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14239 | test "$dynamic_linker" = no && can_build_shared=no |
| 14240 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14241 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 14242 | if test "$GCC" = yes; then |
| 14243 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 14244 | fi |
| 14245 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14246 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 14247 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 14248 | fi |
| 14249 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 14250 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 14251 | fi |
| 14252 | |
| 14253 | |
| 14254 | |
| 14255 | |
| 14256 | |
| 14257 | |
| 14258 | |
| 14259 | |
| 14260 | |
| 14261 | |
| 14262 | |
| 14263 | |
| 14264 | |
| 14265 | |
| 14266 | |
| 14267 | |
| 14268 | |
| 14269 | |
| 14270 | |
| 14271 | |
| 14272 | |
| 14273 | |
| 14274 | |
| 14275 | |
| 14276 | |
| 14277 | |
| 14278 | |
| 14279 | |
| 14280 | |
| 14281 | |
| 14282 | |
| 14283 | |
| 14284 | |
| 14285 | |
| 14286 | |
| 14287 | |
| 14288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
| 14289 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14290 | hardcode_action_CXX= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14291 | if test -n "$hardcode_libdir_flag_spec_CXX" || |
| 14292 | test -n "$runpath_var_CXX" || |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14293 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14294 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14295 | # We can hardcode non-existent directories. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14296 | if test "$hardcode_direct_CXX" != no && |
| 14297 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 14298 | # have to relink, otherwise we might link with an installed library |
| 14299 | # when we should be linking with a yet-to-be-installed one |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14300 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14301 | test "$hardcode_minus_L_CXX" != no; then |
| 14302 | # Linking always hardcodes the temporary library directory. |
| 14303 | hardcode_action_CXX=relink |
| 14304 | else |
| 14305 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 14306 | hardcode_action_CXX=immediate |
| 14307 | fi |
| 14308 | else |
| 14309 | # We cannot hardcode anything, or else we can only hardcode existing |
| 14310 | # directories. |
| 14311 | hardcode_action_CXX=unsupported |
| 14312 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 |
| 14314 | $as_echo "$hardcode_action_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14315 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14316 | if test "$hardcode_action_CXX" = relink || |
| 14317 | test "$inherit_rpath_CXX" = yes; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14318 | # Fast installation is not supported |
| 14319 | enable_fast_install=no |
| 14320 | elif test "$shlibpath_overrides_runpath" = yes || |
| 14321 | test "$enable_shared" = no; then |
| 14322 | # Fast installation is not necessary |
| 14323 | enable_fast_install=needless |
| 14324 | fi |
| 14325 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14326 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14327 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14328 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14329 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14330 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14331 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14332 | fi # test -n "$compiler" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14333 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14334 | CC=$lt_save_CC |
| 14335 | LDCXX=$LD |
| 14336 | LD=$lt_save_LD |
| 14337 | GCC=$lt_save_GCC |
| 14338 | with_gnu_ld=$lt_save_with_gnu_ld |
| 14339 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 14340 | lt_cv_path_LD=$lt_save_path_LD |
| 14341 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 14342 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 14343 | fi # test "$_lt_caught_CXX_error" != yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14344 | |
| 14345 | ac_ext=c |
| 14346 | ac_cpp='$CPP $CPPFLAGS' |
| 14347 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14348 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14349 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14350 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14351 | |
| 14352 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14353 | |
| 14354 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14355 | |
| 14356 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14357 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14358 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14359 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14360 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14361 | |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 14362 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14363 | ac_config_commands="$ac_config_commands libtool" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14364 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14365 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14366 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14367 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14368 | # Only expand once: |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14369 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14370 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14371 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14372 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 14374 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 14375 | if test "${ac_cv_header_stdc+set}" = set; then : |
| 14376 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14377 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14378 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14379 | /* end confdefs.h. */ |
| 14380 | #include <stdlib.h> |
| 14381 | #include <stdarg.h> |
| 14382 | #include <string.h> |
| 14383 | #include <float.h> |
| 14384 | |
| 14385 | int |
| 14386 | main () |
| 14387 | { |
| 14388 | |
| 14389 | ; |
| 14390 | return 0; |
| 14391 | } |
| 14392 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14393 | if ac_fn_c_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14394 | ac_cv_header_stdc=yes |
| 14395 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14396 | ac_cv_header_stdc=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14397 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14398 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14399 | |
| 14400 | if test $ac_cv_header_stdc = yes; then |
| 14401 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14402 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14403 | /* end confdefs.h. */ |
| 14404 | #include <string.h> |
| 14405 | |
| 14406 | _ACEOF |
| 14407 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14408 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 14409 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14410 | else |
| 14411 | ac_cv_header_stdc=no |
| 14412 | fi |
| 14413 | rm -f conftest* |
| 14414 | |
| 14415 | fi |
| 14416 | |
| 14417 | if test $ac_cv_header_stdc = yes; then |
| 14418 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14419 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14420 | /* end confdefs.h. */ |
| 14421 | #include <stdlib.h> |
| 14422 | |
| 14423 | _ACEOF |
| 14424 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14425 | $EGREP "free" >/dev/null 2>&1; then : |
| 14426 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14427 | else |
| 14428 | ac_cv_header_stdc=no |
| 14429 | fi |
| 14430 | rm -f conftest* |
| 14431 | |
| 14432 | fi |
| 14433 | |
| 14434 | if test $ac_cv_header_stdc = yes; then |
| 14435 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14436 | if test "$cross_compiling" = yes; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14437 | : |
| 14438 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14439 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14440 | /* end confdefs.h. */ |
| 14441 | #include <ctype.h> |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14442 | #include <stdlib.h> |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14443 | #if ((' ' & 0x0FF) == 0x020) |
| 14444 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 14445 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 14446 | #else |
| 14447 | # define ISLOWER(c) \ |
| 14448 | (('a' <= (c) && (c) <= 'i') \ |
| 14449 | || ('j' <= (c) && (c) <= 'r') \ |
| 14450 | || ('s' <= (c) && (c) <= 'z')) |
| 14451 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 14452 | #endif |
| 14453 | |
| 14454 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 14455 | int |
| 14456 | main () |
| 14457 | { |
| 14458 | int i; |
| 14459 | for (i = 0; i < 256; i++) |
| 14460 | if (XOR (islower (i), ISLOWER (i)) |
| 14461 | || toupper (i) != TOUPPER (i)) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14462 | return 2; |
| 14463 | return 0; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14464 | } |
| 14465 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14466 | if ac_fn_c_try_run "$LINENO"; then : |
| 14467 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14468 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14469 | ac_cv_header_stdc=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14470 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14471 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14472 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14473 | fi |
| 14474 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14475 | fi |
| 14476 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 14478 | $as_echo "$ac_cv_header_stdc" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14479 | if test $ac_cv_header_stdc = yes; then |
| 14480 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14481 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14482 | |
| 14483 | fi |
| 14484 | |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 14485 | # =========================================================================== |
| 14486 | # http://www.nongnu.org/autoconf-archive/ax_pthread.html |
| 14487 | # =========================================================================== |
| 14488 | # |
| 14489 | # SYNOPSIS |
| 14490 | # |
| 14491 | # AX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) |
| 14492 | # |
| 14493 | # DESCRIPTION |
| 14494 | # |
| 14495 | # This macro figures out how to build C programs using POSIX threads. It |
| 14496 | # sets the PTHREAD_LIBS output variable to the threads library and linker |
| 14497 | # flags, and the PTHREAD_CFLAGS output variable to any special C compiler |
| 14498 | # flags that are needed. (The user can also force certain compiler |
| 14499 | # flags/libs to be tested by setting these environment variables.) |
| 14500 | # |
| 14501 | # Also sets PTHREAD_CC to any special C compiler that is needed for |
| 14502 | # multi-threaded programs (defaults to the value of CC otherwise). (This |
| 14503 | # is necessary on AIX to use the special cc_r compiler alias.) |
| 14504 | # |
| 14505 | # NOTE: You are assumed to not only compile your program with these flags, |
| 14506 | # but also link it with them as well. e.g. you should link with |
| 14507 | # $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS |
| 14508 | # |
| 14509 | # If you are only building threads programs, you may wish to use these |
| 14510 | # variables in your default LIBS, CFLAGS, and CC: |
| 14511 | # |
| 14512 | # LIBS="$PTHREAD_LIBS $LIBS" |
| 14513 | # CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 14514 | # CC="$PTHREAD_CC" |
| 14515 | # |
| 14516 | # In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant |
| 14517 | # has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to that name |
| 14518 | # (e.g. PTHREAD_CREATE_UNDETACHED on AIX). |
| 14519 | # |
| 14520 | # ACTION-IF-FOUND is a list of shell commands to run if a threads library |
| 14521 | # is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it |
| 14522 | # is not found. If ACTION-IF-FOUND is not specified, the default action |
| 14523 | # will define HAVE_PTHREAD. |
| 14524 | # |
| 14525 | # Please let the authors know if this macro fails on any platform, or if |
| 14526 | # you have any other suggestions or comments. This macro was based on work |
| 14527 | # by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help |
| 14528 | # from M. Frigo), as well as ac_pthread and hb_pthread macros posted by |
| 14529 | # Alejandro Forero Cuervo to the autoconf macro repository. We are also |
| 14530 | # grateful for the helpful feedback of numerous users. |
| 14531 | # |
| 14532 | # LICENSE |
| 14533 | # |
| 14534 | # Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu> |
| 14535 | # |
| 14536 | # This program is free software: you can redistribute it and/or modify it |
| 14537 | # under the terms of the GNU General Public License as published by the |
| 14538 | # Free Software Foundation, either version 3 of the License, or (at your |
| 14539 | # option) any later version. |
| 14540 | # |
| 14541 | # This program is distributed in the hope that it will be useful, but |
| 14542 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14543 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General |
| 14544 | # Public License for more details. |
| 14545 | # |
| 14546 | # You should have received a copy of the GNU General Public License along |
| 14547 | # with this program. If not, see <http://www.gnu.org/licenses/>. |
| 14548 | # |
| 14549 | # As a special exception, the respective Autoconf Macro's copyright owner |
| 14550 | # gives unlimited permission to copy, distribute and modify the configure |
| 14551 | # scripts that are the output of Autoconf when processing the Macro. You |
| 14552 | # need not follow the terms of the GNU General Public License when using |
| 14553 | # or distributing such scripts, even though portions of the text of the |
| 14554 | # Macro appear in them. The GNU General Public License (GPL) does govern |
| 14555 | # all other use of the material that constitutes the Autoconf Macro. |
| 14556 | # |
| 14557 | # This special exception to the GPL applies to versions of the Autoconf |
| 14558 | # Macro released by the Autoconf Archive. When you make and distribute a |
| 14559 | # modified version of the Autoconf Macro, you may extend this special |
| 14560 | # exception to the GPL to apply to your modified version as well. |
| 14561 | |
| 14562 | #serial 6 |
| 14563 | |
| 14564 | # This is what autoupdate's m4 run will expand. It fires |
| 14565 | # the warning (with _au_warn_XXX), outputs it into the |
| 14566 | # updated configure.ac (with AC_DIAGNOSE), and then outputs |
| 14567 | # the replacement expansion. |
| 14568 | |
| 14569 | |
| 14570 | # This is an auxiliary macro that is also run when |
| 14571 | # autoupdate runs m4. It simply calls m4_warning, but |
| 14572 | # we need a wrapper so that each warning is emitted only |
| 14573 | # once. We break the quoting in m4_warning's argument in |
| 14574 | # order to expand this macro's arguments, not AU_DEFUN's. |
| 14575 | |
| 14576 | |
| 14577 | # Finally, this is the expansion that is picked up by |
| 14578 | # autoconf. It tells the user to run autoupdate, and |
| 14579 | # then outputs the replacement expansion. We do not care |
| 14580 | # about autoupdate's warning because that contains |
| 14581 | # information on what to do *after* running autoupdate. |
| 14582 | |
| 14583 | |
| 14584 | |
| 14585 | |
| 14586 | ac_ext=c |
| 14587 | ac_cpp='$CPP $CPPFLAGS' |
| 14588 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14589 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14590 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14591 | |
| 14592 | ax_pthread_ok=no |
| 14593 | |
| 14594 | # We used to check for pthread.h first, but this fails if pthread.h |
| 14595 | # requires special compiler flags (e.g. on True64 or Sequent). |
| 14596 | # It gets checked for in the link test anyway. |
| 14597 | |
| 14598 | # First of all, check if the user has set any of the PTHREAD_LIBS, |
| 14599 | # etcetera environment variables, and if threads linking works using |
| 14600 | # them: |
| 14601 | if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then |
| 14602 | save_CFLAGS="$CFLAGS" |
| 14603 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 14604 | save_LIBS="$LIBS" |
| 14605 | LIBS="$PTHREAD_LIBS $LIBS" |
| 14606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 |
| 14607 | $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } |
| 14608 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14609 | /* end confdefs.h. */ |
| 14610 | |
| 14611 | /* Override any GCC internal prototype to avoid an error. |
| 14612 | Use char because int might match the return type of a GCC |
| 14613 | builtin and then its argument prototype would still apply. */ |
| 14614 | #ifdef __cplusplus |
| 14615 | extern "C" |
| 14616 | #endif |
| 14617 | char pthread_join (); |
| 14618 | int |
| 14619 | main () |
| 14620 | { |
| 14621 | return pthread_join (); |
| 14622 | ; |
| 14623 | return 0; |
| 14624 | } |
| 14625 | _ACEOF |
| 14626 | if ac_fn_c_try_link "$LINENO"; then : |
| 14627 | ax_pthread_ok=yes |
| 14628 | fi |
| 14629 | rm -f core conftest.err conftest.$ac_objext \ |
| 14630 | conftest$ac_exeext conftest.$ac_ext |
| 14631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 |
| 14632 | $as_echo "$ax_pthread_ok" >&6; } |
| 14633 | if test x"$ax_pthread_ok" = xno; then |
| 14634 | PTHREAD_LIBS="" |
| 14635 | PTHREAD_CFLAGS="" |
| 14636 | fi |
| 14637 | LIBS="$save_LIBS" |
| 14638 | CFLAGS="$save_CFLAGS" |
| 14639 | fi |
| 14640 | |
| 14641 | # We must check for the threads library under a number of different |
| 14642 | # names; the ordering is very important because some systems |
| 14643 | # (e.g. DEC) have both -lpthread and -lpthreads, where one of the |
| 14644 | # libraries is broken (non-POSIX). |
| 14645 | |
| 14646 | # Create a list of thread flags to try. Items starting with a "-" are |
| 14647 | # C compiler flags, and other items are library names, except for "none" |
| 14648 | # which indicates that we try without any flags at all, and "pthread-config" |
| 14649 | # which is a program returning the flags for the Pth emulation library. |
| 14650 | |
| 14651 | ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" |
| 14652 | |
| 14653 | # The ordering *is* (sometimes) important. Some notes on the |
| 14654 | # individual items follow: |
| 14655 | |
| 14656 | # pthreads: AIX (must check this before -lpthread) |
| 14657 | # none: in case threads are in libc; should be tried before -Kthread and |
| 14658 | # other compiler flags to prevent continual compiler warnings |
| 14659 | # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) |
| 14660 | # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) |
| 14661 | # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) |
| 14662 | # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) |
| 14663 | # -pthreads: Solaris/gcc |
| 14664 | # -mthreads: Mingw32/gcc, Lynx/gcc |
| 14665 | # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it |
| 14666 | # doesn't hurt to check since this sometimes defines pthreads too; |
| 14667 | # also defines -D_REENTRANT) |
| 14668 | # ... -mt is also the pthreads flag for HP/aCC |
| 14669 | # pthread: Linux, etcetera |
| 14670 | # --thread-safe: KAI C++ |
| 14671 | # pthread-config: use pthread-config program (for GNU Pth library) |
| 14672 | |
| 14673 | case "${host_cpu}-${host_os}" in |
| 14674 | *solaris*) |
| 14675 | |
| 14676 | # On Solaris (at least, for some versions), libc contains stubbed |
| 14677 | # (non-functional) versions of the pthreads routines, so link-based |
| 14678 | # tests will erroneously succeed. (We need to link with -pthreads/-mt/ |
| 14679 | # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather |
| 14680 | # a function called by this macro, so we could check for that, but |
| 14681 | # who knows whether they'll stub that too in a future libc.) So, |
| 14682 | # we'll just look for -pthreads and -lpthread first: |
| 14683 | |
| 14684 | ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" |
| 14685 | ;; |
| 14686 | |
| 14687 | *-darwin*) |
| 14688 | acx_pthread_flags="-pthread $acx_pthread_flags" |
| 14689 | ;; |
| 14690 | esac |
| 14691 | |
| 14692 | if test x"$ax_pthread_ok" = xno; then |
| 14693 | for flag in $ax_pthread_flags; do |
| 14694 | |
| 14695 | case $flag in |
| 14696 | none) |
| 14697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 |
| 14698 | $as_echo_n "checking whether pthreads work without any flags... " >&6; } |
| 14699 | ;; |
| 14700 | |
| 14701 | -*) |
| 14702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 |
| 14703 | $as_echo_n "checking whether pthreads work with $flag... " >&6; } |
| 14704 | PTHREAD_CFLAGS="$flag" |
| 14705 | ;; |
| 14706 | |
| 14707 | pthread-config) |
| 14708 | # Extract the first word of "pthread-config", so it can be a program name with args. |
| 14709 | set dummy pthread-config; ac_word=$2 |
| 14710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 14711 | $as_echo_n "checking for $ac_word... " >&6; } |
| 14712 | if test "${ac_cv_prog_ax_pthread_config+set}" = set; then : |
| 14713 | $as_echo_n "(cached) " >&6 |
| 14714 | else |
| 14715 | if test -n "$ax_pthread_config"; then |
| 14716 | ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. |
| 14717 | else |
| 14718 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14719 | for as_dir in $PATH |
| 14720 | do |
| 14721 | IFS=$as_save_IFS |
| 14722 | test -z "$as_dir" && as_dir=. |
| 14723 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14724 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 14725 | ac_cv_prog_ax_pthread_config="yes" |
| 14726 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14727 | break 2 |
| 14728 | fi |
| 14729 | done |
| 14730 | done |
| 14731 | IFS=$as_save_IFS |
| 14732 | |
| 14733 | test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" |
| 14734 | fi |
| 14735 | fi |
| 14736 | ax_pthread_config=$ac_cv_prog_ax_pthread_config |
| 14737 | if test -n "$ax_pthread_config"; then |
| 14738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 |
| 14739 | $as_echo "$ax_pthread_config" >&6; } |
| 14740 | else |
| 14741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14742 | $as_echo "no" >&6; } |
| 14743 | fi |
| 14744 | |
| 14745 | |
| 14746 | if test x"$ax_pthread_config" = xno; then continue; fi |
| 14747 | PTHREAD_CFLAGS="`pthread-config --cflags`" |
| 14748 | PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" |
| 14749 | ;; |
| 14750 | |
| 14751 | *) |
| 14752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 |
| 14753 | $as_echo_n "checking for the pthreads library -l$flag... " >&6; } |
| 14754 | PTHREAD_LIBS="-l$flag" |
| 14755 | ;; |
| 14756 | esac |
| 14757 | |
| 14758 | save_LIBS="$LIBS" |
| 14759 | save_CFLAGS="$CFLAGS" |
| 14760 | LIBS="$PTHREAD_LIBS $LIBS" |
| 14761 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 14762 | |
| 14763 | # Check for various functions. We must include pthread.h, |
| 14764 | # since some functions may be macros. (On the Sequent, we |
| 14765 | # need a special flag -Kthread to make this header compile.) |
| 14766 | # We check for pthread_join because it is in -lpthread on IRIX |
| 14767 | # while pthread_create is in libc. We check for pthread_attr_init |
| 14768 | # due to DEC craziness with -lpthreads. We check for |
| 14769 | # pthread_cleanup_push because it is one of the few pthread |
| 14770 | # functions on Solaris that doesn't have a non-functional libc stub. |
| 14771 | # We try pthread_create on general principles. |
| 14772 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14773 | /* end confdefs.h. */ |
| 14774 | #include <pthread.h> |
| 14775 | static void routine(void* a) {a=0;} |
| 14776 | static void* start_routine(void* a) {return a;} |
| 14777 | int |
| 14778 | main () |
| 14779 | { |
| 14780 | pthread_t th; pthread_attr_t attr; |
| 14781 | pthread_join(th, 0); |
| 14782 | pthread_attr_init(&attr); |
| 14783 | pthread_cleanup_push(routine, 0); |
| 14784 | pthread_create(&th,0,start_routine,0); |
| 14785 | pthread_cleanup_pop(0); |
| 14786 | ; |
| 14787 | return 0; |
| 14788 | } |
| 14789 | _ACEOF |
| 14790 | if ac_fn_c_try_link "$LINENO"; then : |
| 14791 | ax_pthread_ok=yes |
| 14792 | fi |
| 14793 | rm -f core conftest.err conftest.$ac_objext \ |
| 14794 | conftest$ac_exeext conftest.$ac_ext |
| 14795 | |
| 14796 | LIBS="$save_LIBS" |
| 14797 | CFLAGS="$save_CFLAGS" |
| 14798 | |
| 14799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 |
| 14800 | $as_echo "$ax_pthread_ok" >&6; } |
| 14801 | if test "x$ax_pthread_ok" = xyes; then |
| 14802 | break; |
| 14803 | fi |
| 14804 | |
| 14805 | PTHREAD_LIBS="" |
| 14806 | PTHREAD_CFLAGS="" |
| 14807 | done |
| 14808 | fi |
| 14809 | |
| 14810 | # Various other checks: |
| 14811 | if test "x$ax_pthread_ok" = xyes; then |
| 14812 | save_LIBS="$LIBS" |
| 14813 | LIBS="$PTHREAD_LIBS $LIBS" |
| 14814 | save_CFLAGS="$CFLAGS" |
| 14815 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 14816 | |
| 14817 | # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. |
| 14818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 |
| 14819 | $as_echo_n "checking for joinable pthread attribute... " >&6; } |
| 14820 | attr_name=unknown |
| 14821 | for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do |
| 14822 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14823 | /* end confdefs.h. */ |
| 14824 | #include <pthread.h> |
| 14825 | int |
| 14826 | main () |
| 14827 | { |
| 14828 | int attr=$attr; return attr; |
| 14829 | ; |
| 14830 | return 0; |
| 14831 | } |
| 14832 | _ACEOF |
| 14833 | if ac_fn_c_try_link "$LINENO"; then : |
| 14834 | attr_name=$attr; break |
| 14835 | fi |
| 14836 | rm -f core conftest.err conftest.$ac_objext \ |
| 14837 | conftest$ac_exeext conftest.$ac_ext |
| 14838 | done |
| 14839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 |
| 14840 | $as_echo "$attr_name" >&6; } |
| 14841 | if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then |
| 14842 | |
| 14843 | cat >>confdefs.h <<_ACEOF |
| 14844 | #define PTHREAD_CREATE_JOINABLE $attr_name |
| 14845 | _ACEOF |
| 14846 | |
| 14847 | fi |
| 14848 | |
| 14849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 |
| 14850 | $as_echo_n "checking if more special flags are required for pthreads... " >&6; } |
| 14851 | flag=no |
| 14852 | case "${host_cpu}-${host_os}" in |
| 14853 | *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; |
| 14854 | *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; |
| 14855 | esac |
| 14856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 |
| 14857 | $as_echo "${flag}" >&6; } |
| 14858 | if test "x$flag" != xno; then |
| 14859 | PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" |
| 14860 | fi |
| 14861 | |
| 14862 | LIBS="$save_LIBS" |
| 14863 | CFLAGS="$save_CFLAGS" |
| 14864 | |
| 14865 | # More AIX lossage: must compile with xlc_r or cc_r |
| 14866 | if test x"$GCC" != xyes; then |
| 14867 | for ac_prog in xlc_r cc_r |
| 14868 | do |
| 14869 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 14870 | set dummy $ac_prog; ac_word=$2 |
| 14871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 14872 | $as_echo_n "checking for $ac_word... " >&6; } |
| 14873 | if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then : |
| 14874 | $as_echo_n "(cached) " >&6 |
| 14875 | else |
| 14876 | if test -n "$PTHREAD_CC"; then |
| 14877 | ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. |
| 14878 | else |
| 14879 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14880 | for as_dir in $PATH |
| 14881 | do |
| 14882 | IFS=$as_save_IFS |
| 14883 | test -z "$as_dir" && as_dir=. |
| 14884 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14885 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 14886 | ac_cv_prog_PTHREAD_CC="$ac_prog" |
| 14887 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14888 | break 2 |
| 14889 | fi |
| 14890 | done |
| 14891 | done |
| 14892 | IFS=$as_save_IFS |
| 14893 | |
| 14894 | fi |
| 14895 | fi |
| 14896 | PTHREAD_CC=$ac_cv_prog_PTHREAD_CC |
| 14897 | if test -n "$PTHREAD_CC"; then |
| 14898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 |
| 14899 | $as_echo "$PTHREAD_CC" >&6; } |
| 14900 | else |
| 14901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14902 | $as_echo "no" >&6; } |
| 14903 | fi |
| 14904 | |
| 14905 | |
| 14906 | test -n "$PTHREAD_CC" && break |
| 14907 | done |
| 14908 | test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" |
| 14909 | |
| 14910 | else |
| 14911 | PTHREAD_CC=$CC |
| 14912 | fi |
| 14913 | else |
| 14914 | PTHREAD_CC="$CC" |
| 14915 | fi |
| 14916 | |
| 14917 | |
| 14918 | |
| 14919 | |
| 14920 | |
| 14921 | # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
| 14922 | if test x"$ax_pthread_ok" = xyes; then |
| 14923 | |
| 14924 | $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h |
| 14925 | |
| 14926 | : |
| 14927 | else |
| 14928 | ax_pthread_ok=no |
| 14929 | |
| 14930 | fi |
| 14931 | ac_ext=c |
| 14932 | ac_cpp='$CPP $CPPFLAGS' |
| 14933 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14934 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14935 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14936 | |
| 14937 | |
| 14938 | |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 14939 | # Only build Linux client libs when compiling for Linux |
| 14940 | case $host in |
| 14941 | *-*-linux*) |
| 14942 | LINUX_HOST=true |
| 14943 | ;; |
| 14944 | esac |
| 14945 | if test x$LINUX_HOST = xtrue; then |
| 14946 | LINUX_HOST_TRUE= |
| 14947 | LINUX_HOST_FALSE='#' |
| 14948 | else |
| 14949 | LINUX_HOST_TRUE='#' |
| 14950 | LINUX_HOST_FALSE= |
| 14951 | fi |
| 14952 | |
| 14953 | |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 14954 | # Check whether --enable-m32 was given. |
| 14955 | if test "${enable_m32+set}" = set; then : |
| 14956 | enableval=$enable_m32; case "${enableval}" in |
| 14957 | yes) |
ted.mielczarek | efa30c1 | 2010-09-17 13:36:11 +0000 | [diff] [blame^] | 14958 | CFLAGS="${CFLAGS} -m32" |
| 14959 | CXXFLAGS="${CXXFLAGS} -m32" |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 14960 | usem32=true |
| 14961 | ;; |
| 14962 | no) |
| 14963 | usem32=false |
| 14964 | ;; |
| 14965 | *) |
| 14966 | as_fn_error "bad value ${enableval} for --enable-m32" "$LINENO" 5 |
| 14967 | ;; |
| 14968 | esac |
| 14969 | else |
| 14970 | usem32=false |
| 14971 | fi |
| 14972 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14973 | |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 14974 | ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h> |
| 14975 | " |
| 14976 | if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then : |
| 14977 | |
| 14978 | $as_echo "#define GET_SA_LEN(X) (((struct sockaddr*)&(X))->sa_len)" >>confdefs.h |
| 14979 | |
| 14980 | else |
| 14981 | |
| 14982 | $as_echo "#define GET_SA_LEN(X) (((struct sockaddr*)&(X))->sa_family == AF_INET ? sizeof(struct sockaddr_in) : \\ |
| 14983 | ((struct sockaddr*)&(X))->sa_family == AF_INET6 ? sizeof(struct sockaddr_in6) : sizeof(struct sockaddr))" >>confdefs.h |
| 14984 | |
| 14985 | fi |
| 14986 | |
| 14987 | |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 14988 | # Check whether --enable-selftest was given. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14989 | if test "${enable_selftest+set}" = set; then : |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 14990 | enableval=$enable_selftest; case "${enableval}" in |
| 14991 | yes) |
| 14992 | selftest=true |
| 14993 | ;; |
| 14994 | no) |
| 14995 | selftest=false |
| 14996 | ;; |
| 14997 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14998 | as_fn_error "bad value ${enableval} for --enable-selftest" "$LINENO" 5 |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 14999 | ;; |
| 15000 | esac |
| 15001 | else |
| 15002 | selftest=false |
| 15003 | fi |
| 15004 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 15005 | if test x$selftest = xtrue; then |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 15006 | SELFTEST_TRUE= |
| 15007 | SELFTEST_FALSE='#' |
| 15008 | else |
| 15009 | SELFTEST_TRUE='#' |
| 15010 | SELFTEST_FALSE= |
| 15011 | fi |
| 15012 | |
| 15013 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15014 | ac_config_files="$ac_config_files Makefile" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15015 | |
| 15016 | cat >confcache <<\_ACEOF |
| 15017 | # This file is a shell script that caches the results of configure |
| 15018 | # tests run on this system so they can be shared between configure |
| 15019 | # scripts and configure runs, see configure's option --config-cache. |
| 15020 | # It is not useful on other systems. If it contains results you don't |
| 15021 | # want to keep, you may remove or edit it. |
| 15022 | # |
| 15023 | # config.status only pays attention to the cache file if you give it |
| 15024 | # the --recheck option to rerun configure. |
| 15025 | # |
| 15026 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 15027 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 15028 | # following values. |
| 15029 | |
| 15030 | _ACEOF |
| 15031 | |
| 15032 | # The following way of writing the cache mishandles newlines in values, |
| 15033 | # but we know of no workaround that is simple, portable, and efficient. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15034 | # So, we kill variables containing newlines. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15035 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 15036 | # and sets the high bit in the cache file unless we assign to the vars. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15037 | ( |
| 15038 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 15039 | eval ac_val=\$$ac_var |
| 15040 | case $ac_val in #( |
| 15041 | *${as_nl}*) |
| 15042 | case $ac_var in #( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15043 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 15044 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15045 | esac |
| 15046 | case $ac_var in #( |
| 15047 | _ | IFS | as_nl) ;; #( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15048 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 15049 | *) { eval $ac_var=; unset $ac_var;} ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15050 | esac ;; |
| 15051 | esac |
| 15052 | done |
| 15053 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15054 | (set) 2>&1 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15055 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 15056 | *${as_nl}ac_space=\ *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15057 | # `set' does not quote correctly, so add quotes: double-quote |
| 15058 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15059 | sed -n \ |
| 15060 | "s/'/'\\\\''/g; |
| 15061 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15062 | ;; #( |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15063 | *) |
| 15064 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15065 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15066 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15067 | esac | |
| 15068 | sort |
| 15069 | ) | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15070 | sed ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15071 | /^ac_cv_env_/b end |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15072 | t clear |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15073 | :clear |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15074 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 15075 | t end |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15076 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 15077 | :end' >>confcache |
| 15078 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 15079 | if test -w "$cache_file"; then |
| 15080 | test "x$cache_file" != "x/dev/null" && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15081 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 15082 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15083 | cat confcache >$cache_file |
| 15084 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15085 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 15086 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15087 | fi |
| 15088 | fi |
| 15089 | rm -f confcache |
| 15090 | |
| 15091 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 15092 | # Let make expand exec_prefix. |
| 15093 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 15094 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15095 | DEFS=-DHAVE_CONFIG_H |
| 15096 | |
| 15097 | ac_libobjs= |
| 15098 | ac_ltlibobjs= |
| 15099 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 15100 | # 1. Remove the extension, and $U if already installed. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15101 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15102 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15103 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 15104 | # will be set to the directory where LIBOBJS objects are built. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15105 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 15106 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15107 | done |
| 15108 | LIBOBJS=$ac_libobjs |
| 15109 | |
| 15110 | LTLIBOBJS=$ac_ltlibobjs |
| 15111 | |
| 15112 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15113 | if test -n "$EXEEXT"; then |
| 15114 | am__EXEEXT_TRUE= |
| 15115 | am__EXEEXT_FALSE='#' |
| 15116 | else |
| 15117 | am__EXEEXT_TRUE='#' |
| 15118 | am__EXEEXT_FALSE= |
| 15119 | fi |
| 15120 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15121 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15122 | as_fn_error "conditional \"AMDEP\" was never defined. |
| 15123 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15124 | fi |
| 15125 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15126 | as_fn_error "conditional \"am__fastdepCC\" was never defined. |
| 15127 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15128 | fi |
| 15129 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15130 | as_fn_error "conditional \"am__fastdepCXX\" was never defined. |
| 15131 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 15132 | fi |
| 15133 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
| 15134 | as_fn_error "conditional \"am__fastdepCXX\" was never defined. |
| 15135 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15136 | fi |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 15137 | if test -z "${LINUX_HOST_TRUE}" && test -z "${LINUX_HOST_FALSE}"; then |
| 15138 | as_fn_error "conditional \"LINUX_HOST\" was never defined. |
| 15139 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 15140 | fi |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 15141 | if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15142 | as_fn_error "conditional \"SELFTEST\" was never defined. |
| 15143 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 15144 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15145 | |
| 15146 | : ${CONFIG_STATUS=./config.status} |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15147 | ac_write_fail=0 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15148 | ac_clean_files_save=$ac_clean_files |
| 15149 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15150 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 15151 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 15152 | as_write_fail=0 |
| 15153 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15154 | #! $SHELL |
| 15155 | # Generated by $as_me. |
| 15156 | # Run this file to recreate the current configuration. |
| 15157 | # Compiler output produced by configure, useful for debugging |
| 15158 | # configure, is in config.log if it exists. |
| 15159 | |
| 15160 | debug=false |
| 15161 | ac_cs_recheck=false |
| 15162 | ac_cs_silent=false |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15163 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15164 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 15165 | export SHELL |
| 15166 | _ASEOF |
| 15167 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 15168 | ## -------------------- ## |
| 15169 | ## M4sh Initialization. ## |
| 15170 | ## -------------------- ## |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15171 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 15172 | # Be more Bourne compatible |
| 15173 | DUALCASE=1; export DUALCASE # for MKS sh |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15174 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15175 | emulate sh |
| 15176 | NULLCMD=: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15177 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15178 | # is contrary to our usage. Disable this feature. |
| 15179 | alias -g '${1+"$@"}'='"$@"' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15180 | setopt NO_GLOB_SUBST |
| 15181 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15182 | case `(set -o) 2>/dev/null` in #( |
| 15183 | *posix*) : |
| 15184 | set -o posix ;; #( |
| 15185 | *) : |
| 15186 | ;; |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 15187 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15188 | fi |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 15189 | |
| 15190 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15191 | as_nl=' |
| 15192 | ' |
| 15193 | export as_nl |
| 15194 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 15195 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 15196 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 15197 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 15198 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 15199 | # but without wasting forks for bash or zsh. |
| 15200 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 15201 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 15202 | as_echo='print -r --' |
| 15203 | as_echo_n='print -rn --' |
| 15204 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 15205 | as_echo='printf %s\n' |
| 15206 | as_echo_n='printf %s' |
| 15207 | else |
| 15208 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 15209 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 15210 | as_echo_n='/usr/ucb/echo -n' |
| 15211 | else |
| 15212 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 15213 | as_echo_n_body='eval |
| 15214 | arg=$1; |
| 15215 | case $arg in #( |
| 15216 | *"$as_nl"*) |
| 15217 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 15218 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 15219 | esac; |
| 15220 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 15221 | ' |
| 15222 | export as_echo_n_body |
| 15223 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 15224 | fi |
| 15225 | export as_echo_body |
| 15226 | as_echo='sh -c $as_echo_body as_echo' |
| 15227 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15228 | |
| 15229 | # The user is always right. |
| 15230 | if test "${PATH_SEPARATOR+set}" != set; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15231 | PATH_SEPARATOR=: |
| 15232 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 15233 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 15234 | PATH_SEPARATOR=';' |
| 15235 | } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15236 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15237 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15238 | |
| 15239 | # IFS |
| 15240 | # We need space, tab and new line, in precisely that order. Quoting is |
| 15241 | # there to prevent editors from complaining about space-tab. |
| 15242 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 15243 | # splitting by setting IFS to empty value.) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15244 | IFS=" "" $as_nl" |
| 15245 | |
| 15246 | # Find who we are. Look in the path if we contain no directory separator. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15247 | case $0 in #(( |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15248 | *[\\/]* ) as_myself=$0 ;; |
| 15249 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15250 | for as_dir in $PATH |
| 15251 | do |
| 15252 | IFS=$as_save_IFS |
| 15253 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15254 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 15255 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15256 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15257 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15258 | ;; |
| 15259 | esac |
| 15260 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 15261 | # in which case we are not to be found in the path. |
| 15262 | if test "x$as_myself" = x; then |
| 15263 | as_myself=$0 |
| 15264 | fi |
| 15265 | if test ! -f "$as_myself"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15266 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 15267 | exit 1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15268 | fi |
| 15269 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15270 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 15271 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 15272 | # suppresses any "Segmentation fault" message there. '((' could |
| 15273 | # trigger a bug in pdksh 5.2.14. |
| 15274 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 15275 | do eval test x\${$as_var+set} = xset \ |
| 15276 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15277 | done |
| 15278 | PS1='$ ' |
| 15279 | PS2='> ' |
| 15280 | PS4='+ ' |
| 15281 | |
| 15282 | # NLS nuisances. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15283 | LC_ALL=C |
| 15284 | export LC_ALL |
| 15285 | LANGUAGE=C |
| 15286 | export LANGUAGE |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15287 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15288 | # CDPATH. |
| 15289 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 15290 | |
| 15291 | |
| 15292 | # as_fn_error ERROR [LINENO LOG_FD] |
| 15293 | # --------------------------------- |
| 15294 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 15295 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 15296 | # script with status $?, using 1 if that was 0. |
| 15297 | as_fn_error () |
| 15298 | { |
| 15299 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 15300 | if test "$3"; then |
| 15301 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 15302 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 15303 | fi |
| 15304 | $as_echo "$as_me: error: $1" >&2 |
| 15305 | as_fn_exit $as_status |
| 15306 | } # as_fn_error |
| 15307 | |
| 15308 | |
| 15309 | # as_fn_set_status STATUS |
| 15310 | # ----------------------- |
| 15311 | # Set $? to STATUS, without forking. |
| 15312 | as_fn_set_status () |
| 15313 | { |
| 15314 | return $1 |
| 15315 | } # as_fn_set_status |
| 15316 | |
| 15317 | # as_fn_exit STATUS |
| 15318 | # ----------------- |
| 15319 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 15320 | as_fn_exit () |
| 15321 | { |
| 15322 | set +e |
| 15323 | as_fn_set_status $1 |
| 15324 | exit $1 |
| 15325 | } # as_fn_exit |
| 15326 | |
| 15327 | # as_fn_unset VAR |
| 15328 | # --------------- |
| 15329 | # Portably unset VAR. |
| 15330 | as_fn_unset () |
| 15331 | { |
| 15332 | { eval $1=; unset $1;} |
| 15333 | } |
| 15334 | as_unset=as_fn_unset |
| 15335 | # as_fn_append VAR VALUE |
| 15336 | # ---------------------- |
| 15337 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 15338 | # advantage of any shell optimizations that allow amortized linear growth over |
| 15339 | # repeated appends, instead of the typical quadratic growth present in naive |
| 15340 | # implementations. |
| 15341 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 15342 | eval 'as_fn_append () |
| 15343 | { |
| 15344 | eval $1+=\$2 |
| 15345 | }' |
| 15346 | else |
| 15347 | as_fn_append () |
| 15348 | { |
| 15349 | eval $1=\$$1\$2 |
| 15350 | } |
| 15351 | fi # as_fn_append |
| 15352 | |
| 15353 | # as_fn_arith ARG... |
| 15354 | # ------------------ |
| 15355 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 15356 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 15357 | # must be portable across $(()) and expr. |
| 15358 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 15359 | eval 'as_fn_arith () |
| 15360 | { |
| 15361 | as_val=$(( $* )) |
| 15362 | }' |
| 15363 | else |
| 15364 | as_fn_arith () |
| 15365 | { |
| 15366 | as_val=`expr "$@" || test $? -eq 1` |
| 15367 | } |
| 15368 | fi # as_fn_arith |
| 15369 | |
| 15370 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15371 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 15372 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 15373 | as_expr=expr |
| 15374 | else |
| 15375 | as_expr=false |
| 15376 | fi |
| 15377 | |
| 15378 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 15379 | as_basename=basename |
| 15380 | else |
| 15381 | as_basename=false |
| 15382 | fi |
| 15383 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15384 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 15385 | as_dirname=dirname |
| 15386 | else |
| 15387 | as_dirname=false |
| 15388 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15389 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15390 | as_me=`$as_basename -- "$0" || |
| 15391 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 15392 | X"$0" : 'X\(//\)$' \| \ |
| 15393 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15394 | $as_echo X/"$0" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15395 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 15396 | s//\1/ |
| 15397 | q |
| 15398 | } |
| 15399 | /^X\/\(\/\/\)$/{ |
| 15400 | s//\1/ |
| 15401 | q |
| 15402 | } |
| 15403 | /^X\/\(\/\).*/{ |
| 15404 | s//\1/ |
| 15405 | q |
| 15406 | } |
| 15407 | s/.*/./; q'` |
| 15408 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15409 | # Avoid depending upon Character Ranges. |
| 15410 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 15411 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 15412 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 15413 | as_cr_digits='0123456789' |
| 15414 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15415 | |
| 15416 | ECHO_C= ECHO_N= ECHO_T= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15417 | case `echo -n x` in #((((( |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15418 | -n*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15419 | case `echo 'xy\c'` in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15420 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15421 | xy) ECHO_C='\c';; |
| 15422 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 15423 | ECHO_T=' ';; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15424 | esac;; |
| 15425 | *) |
| 15426 | ECHO_N='-n';; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15427 | esac |
| 15428 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15429 | rm -f conf$$ conf$$.exe conf$$.file |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15430 | if test -d conf$$.dir; then |
| 15431 | rm -f conf$$.dir/conf$$.file |
| 15432 | else |
| 15433 | rm -f conf$$.dir |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15434 | mkdir conf$$.dir 2>/dev/null |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15435 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15436 | if (echo >conf$$.file) 2>/dev/null; then |
| 15437 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 15438 | as_ln_s='ln -s' |
| 15439 | # ... but there are two gotchas: |
| 15440 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 15441 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 15442 | # In both cases, we have to default to `cp -p'. |
| 15443 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 15444 | as_ln_s='cp -p' |
| 15445 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 15446 | as_ln_s=ln |
| 15447 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15448 | as_ln_s='cp -p' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15449 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15450 | else |
| 15451 | as_ln_s='cp -p' |
| 15452 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15453 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 15454 | rmdir conf$$.dir 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15455 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15456 | |
| 15457 | # as_fn_mkdir_p |
| 15458 | # ------------- |
| 15459 | # Create "$as_dir" as a directory, including parents if necessary. |
| 15460 | as_fn_mkdir_p () |
| 15461 | { |
| 15462 | |
| 15463 | case $as_dir in #( |
| 15464 | -*) as_dir=./$as_dir;; |
| 15465 | esac |
| 15466 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 15467 | as_dirs= |
| 15468 | while :; do |
| 15469 | case $as_dir in #( |
| 15470 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 15471 | *) as_qdir=$as_dir;; |
| 15472 | esac |
| 15473 | as_dirs="'$as_qdir' $as_dirs" |
| 15474 | as_dir=`$as_dirname -- "$as_dir" || |
| 15475 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 15476 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 15477 | X"$as_dir" : 'X\(//\)$' \| \ |
| 15478 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 15479 | $as_echo X"$as_dir" | |
| 15480 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 15481 | s//\1/ |
| 15482 | q |
| 15483 | } |
| 15484 | /^X\(\/\/\)[^/].*/{ |
| 15485 | s//\1/ |
| 15486 | q |
| 15487 | } |
| 15488 | /^X\(\/\/\)$/{ |
| 15489 | s//\1/ |
| 15490 | q |
| 15491 | } |
| 15492 | /^X\(\/\).*/{ |
| 15493 | s//\1/ |
| 15494 | q |
| 15495 | } |
| 15496 | s/.*/./; q'` |
| 15497 | test -d "$as_dir" && break |
| 15498 | done |
| 15499 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 15500 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 15501 | |
| 15502 | |
| 15503 | } # as_fn_mkdir_p |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15504 | if mkdir -p . 2>/dev/null; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15505 | as_mkdir_p='mkdir -p "$as_dir"' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15506 | else |
| 15507 | test -d ./-p && rmdir ./-p |
| 15508 | as_mkdir_p=false |
| 15509 | fi |
| 15510 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 15511 | if test -x / >/dev/null 2>&1; then |
| 15512 | as_test_x='test -x' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15513 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 15514 | if ls -dL / >/dev/null 2>&1; then |
| 15515 | as_ls_L_option=L |
| 15516 | else |
| 15517 | as_ls_L_option= |
| 15518 | fi |
| 15519 | as_test_x=' |
| 15520 | eval sh -c '\'' |
| 15521 | if test -d "$1"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15522 | test -d "$1/."; |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 15523 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15524 | case $1 in #( |
| 15525 | -*)set "./$1";; |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 15526 | esac; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15527 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 15528 | ???[sx]*):;;*)false;;esac;fi |
| 15529 | '\'' sh |
| 15530 | ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15531 | fi |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 15532 | as_executable_p=$as_test_x |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15533 | |
| 15534 | # Sed expression to map a string onto a valid CPP name. |
| 15535 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 15536 | |
| 15537 | # Sed expression to map a string onto a valid variable name. |
| 15538 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 15539 | |
| 15540 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15541 | exec 6>&1 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15542 | ## ----------------------------------- ## |
| 15543 | ## Main body of $CONFIG_STATUS script. ## |
| 15544 | ## ----------------------------------- ## |
| 15545 | _ASEOF |
| 15546 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15547 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15548 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 15549 | # Save the log message, to keep $0 and so on meaningful, and to |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15550 | # report actual input values of CONFIG_FILES etc. instead of their |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15551 | # values after options handling. |
| 15552 | ac_log=" |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 15553 | This file was extended by breakpad $as_me 0.1, which was |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 15554 | generated by GNU Autoconf 2.65. Invocation command line was |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15555 | |
| 15556 | CONFIG_FILES = $CONFIG_FILES |
| 15557 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 15558 | CONFIG_LINKS = $CONFIG_LINKS |
| 15559 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 15560 | $ $0 $@ |
| 15561 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15562 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 15563 | " |
| 15564 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15565 | _ACEOF |
| 15566 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15567 | case $ac_config_files in *" |
| 15568 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 15569 | esac |
| 15570 | |
| 15571 | case $ac_config_headers in *" |
| 15572 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 15573 | esac |
| 15574 | |
| 15575 | |
| 15576 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15577 | # Files that config.status was made for. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15578 | config_files="$ac_config_files" |
| 15579 | config_headers="$ac_config_headers" |
| 15580 | config_commands="$ac_config_commands" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15581 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15582 | _ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15583 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15584 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15585 | ac_cs_usage="\ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15586 | \`$as_me' instantiates files and other configuration actions |
| 15587 | from templates according to the current configuration. Unless the files |
| 15588 | and actions are specified as TAGs, all are instantiated by default. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15589 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15590 | Usage: $0 [OPTION]... [TAG]... |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15591 | |
| 15592 | -h, --help print this help, then exit |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 15593 | -V, --version print version number and configuration settings, then exit |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 15594 | --config print configuration, then exit |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15595 | -q, --quiet, --silent |
| 15596 | do not print progress messages |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15597 | -d, --debug don't remove temporary files |
| 15598 | --recheck update $as_me by reconfiguring in the same conditions |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15599 | --file=FILE[:TEMPLATE] |
| 15600 | instantiate the configuration file FILE |
| 15601 | --header=FILE[:TEMPLATE] |
| 15602 | instantiate the configuration header FILE |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15603 | |
| 15604 | Configuration files: |
| 15605 | $config_files |
| 15606 | |
| 15607 | Configuration headers: |
| 15608 | $config_headers |
| 15609 | |
| 15610 | Configuration commands: |
| 15611 | $config_commands |
| 15612 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15613 | Report bugs to <opensource@google.com>." |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15614 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15615 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15616 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 15617 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15618 | ac_cs_version="\\ |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 15619 | breakpad config.status 0.1 |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 15620 | configured by $0, generated by GNU Autoconf 2.65, |
| 15621 | with options \\"\$ac_cs_config\\" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15622 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15623 | Copyright (C) 2009 Free Software Foundation, Inc. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15624 | This config.status script is free software; the Free Software Foundation |
| 15625 | gives unlimited permission to copy, distribute and modify it." |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15626 | |
| 15627 | ac_pwd='$ac_pwd' |
| 15628 | srcdir='$srcdir' |
| 15629 | INSTALL='$INSTALL' |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 15630 | MKDIR_P='$MKDIR_P' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15631 | AWK='$AWK' |
| 15632 | test -n "\$AWK" || AWK=awk |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15633 | _ACEOF |
| 15634 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15635 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 15636 | # The default lists apply if the user does not specify any file. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15637 | ac_need_defaults=: |
| 15638 | while test $# != 0 |
| 15639 | do |
| 15640 | case $1 in |
| 15641 | --*=*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15642 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 15643 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15644 | ac_shift=: |
| 15645 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15646 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15647 | ac_option=$1 |
| 15648 | ac_optarg=$2 |
| 15649 | ac_shift=shift |
| 15650 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15651 | esac |
| 15652 | |
| 15653 | case $ac_option in |
| 15654 | # Handling of the options. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15655 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 15656 | ac_cs_recheck=: ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15657 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15658 | $as_echo "$ac_cs_version"; exit ;; |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 15659 | --config | --confi | --conf | --con | --co | --c ) |
| 15660 | $as_echo "$ac_cs_config"; exit ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15661 | --debug | --debu | --deb | --de | --d | -d ) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15662 | debug=: ;; |
| 15663 | --file | --fil | --fi | --f ) |
| 15664 | $ac_shift |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15665 | case $ac_optarg in |
| 15666 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 15667 | esac |
| 15668 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15669 | ac_need_defaults=false;; |
| 15670 | --header | --heade | --head | --hea ) |
| 15671 | $ac_shift |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15672 | case $ac_optarg in |
| 15673 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 15674 | esac |
| 15675 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15676 | ac_need_defaults=false;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15677 | --he | --h) |
| 15678 | # Conflict between --help and --header |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15679 | as_fn_error "ambiguous option: \`$1' |
| 15680 | Try \`$0 --help' for more information.";; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15681 | --help | --hel | -h ) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15682 | $as_echo "$ac_cs_usage"; exit ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15683 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 15684 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 15685 | ac_cs_silent=: ;; |
| 15686 | |
| 15687 | # This is an error. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15688 | -*) as_fn_error "unrecognized option: \`$1' |
| 15689 | Try \`$0 --help' for more information." ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15690 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15691 | *) as_fn_append ac_config_targets " $1" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15692 | ac_need_defaults=false ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15693 | |
| 15694 | esac |
| 15695 | shift |
| 15696 | done |
| 15697 | |
| 15698 | ac_configure_extra_args= |
| 15699 | |
| 15700 | if $ac_cs_silent; then |
| 15701 | exec 6>/dev/null |
| 15702 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 15703 | fi |
| 15704 | |
| 15705 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15706 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15707 | if \$ac_cs_recheck; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15708 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 15709 | shift |
| 15710 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 15711 | CONFIG_SHELL='$SHELL' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15712 | export CONFIG_SHELL |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15713 | exec "\$@" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15714 | fi |
| 15715 | |
| 15716 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15717 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15718 | exec 5>>config.log |
| 15719 | { |
| 15720 | echo |
| 15721 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 15722 | ## Running $as_me. ## |
| 15723 | _ASBOX |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15724 | $as_echo "$ac_log" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15725 | } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15726 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15727 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15728 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15729 | # |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15730 | # INIT-COMMANDS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15731 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15732 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 15733 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15734 | |
| 15735 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 15736 | # if CDPATH is set. |
| 15737 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 15738 | |
| 15739 | sed_quote_subst='$sed_quote_subst' |
| 15740 | double_quote_subst='$double_quote_subst' |
| 15741 | delay_variable_subst='$delay_variable_subst' |
| 15742 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' |
| 15743 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' |
| 15744 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' |
| 15745 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 15746 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' |
| 15747 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' |
| 15748 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' |
| 15749 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' |
| 15750 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' |
| 15751 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' |
| 15752 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' |
| 15753 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' |
| 15754 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' |
| 15755 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' |
| 15756 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 15757 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 15758 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 15759 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' |
| 15760 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' |
| 15761 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' |
| 15762 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' |
| 15763 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' |
| 15764 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' |
| 15765 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' |
| 15766 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' |
| 15767 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' |
| 15768 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 15769 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15770 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' |
| 15771 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' |
| 15772 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' |
| 15773 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' |
| 15774 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' |
| 15775 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' |
| 15776 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' |
| 15777 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15778 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15779 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15780 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' |
| 15781 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' |
| 15782 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' |
| 15783 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' |
| 15784 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' |
| 15785 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' |
| 15786 | 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"`' |
| 15787 | 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"`' |
| 15788 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' |
| 15789 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' |
| 15790 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' |
| 15791 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' |
| 15792 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 15793 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' |
| 15794 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' |
| 15795 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 15796 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' |
| 15797 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' |
| 15798 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' |
| 15799 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' |
| 15800 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' |
| 15801 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' |
| 15802 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' |
| 15803 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' |
| 15804 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15805 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15806 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' |
| 15807 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' |
| 15808 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15809 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15810 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' |
| 15811 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15812 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15813 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15814 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15815 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15816 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15817 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' |
| 15818 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 15819 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 15820 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15821 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' |
| 15822 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' |
| 15823 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' |
| 15824 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' |
| 15825 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' |
| 15826 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 15827 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' |
| 15828 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' |
| 15829 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' |
| 15830 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' |
| 15831 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' |
| 15832 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15833 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' |
| 15834 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' |
| 15835 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15836 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15837 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' |
| 15838 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' |
| 15839 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' |
| 15840 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' |
| 15841 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 15842 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 15843 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' |
| 15844 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15845 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15846 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15847 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15848 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15849 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15850 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' |
| 15851 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' |
| 15852 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15853 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15854 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' |
| 15855 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' |
| 15856 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' |
| 15857 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 15858 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' |
| 15859 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' |
| 15860 | compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' |
| 15861 | predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' |
| 15862 | postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' |
| 15863 | predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' |
| 15864 | postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' |
| 15865 | compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' |
| 15866 | LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15867 | old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15868 | compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15869 | GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15870 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15871 | lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15872 | lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15873 | lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15874 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15875 | archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15876 | enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15877 | export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15878 | whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15879 | compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15880 | old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15881 | old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15882 | archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15883 | archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15884 | module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15885 | module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15886 | with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15887 | allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15888 | no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15889 | hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15890 | hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15891 | hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15892 | hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15893 | hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15894 | hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15895 | hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15896 | hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15897 | inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15898 | link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15899 | fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15900 | always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15901 | export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15902 | exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15903 | include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15904 | prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15905 | file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15906 | hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15907 | compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15908 | predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15909 | postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15910 | predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15911 | postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15912 | compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15913 | |
| 15914 | LTCC='$LTCC' |
| 15915 | LTCFLAGS='$LTCFLAGS' |
| 15916 | compiler='$compiler_DEFAULT' |
| 15917 | |
| 15918 | # Quote evaled strings. |
| 15919 | for var in SED \ |
| 15920 | GREP \ |
| 15921 | EGREP \ |
| 15922 | FGREP \ |
| 15923 | LD \ |
| 15924 | NM \ |
| 15925 | LN_S \ |
| 15926 | lt_SP2NL \ |
| 15927 | lt_NL2SP \ |
| 15928 | reload_flag \ |
| 15929 | OBJDUMP \ |
| 15930 | deplibs_check_method \ |
| 15931 | file_magic_cmd \ |
| 15932 | AR \ |
| 15933 | AR_FLAGS \ |
| 15934 | STRIP \ |
| 15935 | RANLIB \ |
| 15936 | CC \ |
| 15937 | CFLAGS \ |
| 15938 | compiler \ |
| 15939 | lt_cv_sys_global_symbol_pipe \ |
| 15940 | lt_cv_sys_global_symbol_to_cdecl \ |
| 15941 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 15942 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
| 15943 | SHELL \ |
| 15944 | ECHO \ |
| 15945 | lt_prog_compiler_no_builtin_flag \ |
| 15946 | lt_prog_compiler_wl \ |
| 15947 | lt_prog_compiler_pic \ |
| 15948 | lt_prog_compiler_static \ |
| 15949 | lt_cv_prog_compiler_c_o \ |
| 15950 | need_locks \ |
| 15951 | DSYMUTIL \ |
| 15952 | NMEDIT \ |
| 15953 | LIPO \ |
| 15954 | OTOOL \ |
| 15955 | OTOOL64 \ |
| 15956 | shrext_cmds \ |
| 15957 | export_dynamic_flag_spec \ |
| 15958 | whole_archive_flag_spec \ |
| 15959 | compiler_needs_object \ |
| 15960 | with_gnu_ld \ |
| 15961 | allow_undefined_flag \ |
| 15962 | no_undefined_flag \ |
| 15963 | hardcode_libdir_flag_spec \ |
| 15964 | hardcode_libdir_flag_spec_ld \ |
| 15965 | hardcode_libdir_separator \ |
| 15966 | fix_srcfile_path \ |
| 15967 | exclude_expsyms \ |
| 15968 | include_expsyms \ |
| 15969 | file_list_spec \ |
| 15970 | variables_saved_for_relink \ |
| 15971 | libname_spec \ |
| 15972 | library_names_spec \ |
| 15973 | soname_spec \ |
| 15974 | finish_eval \ |
| 15975 | old_striplib \ |
| 15976 | striplib \ |
| 15977 | compiler_lib_search_dirs \ |
| 15978 | predep_objects \ |
| 15979 | postdep_objects \ |
| 15980 | predeps \ |
| 15981 | postdeps \ |
| 15982 | compiler_lib_search_path \ |
| 15983 | LD_CXX \ |
| 15984 | compiler_CXX \ |
| 15985 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 15986 | lt_prog_compiler_wl_CXX \ |
| 15987 | lt_prog_compiler_pic_CXX \ |
| 15988 | lt_prog_compiler_static_CXX \ |
| 15989 | lt_cv_prog_compiler_c_o_CXX \ |
| 15990 | export_dynamic_flag_spec_CXX \ |
| 15991 | whole_archive_flag_spec_CXX \ |
| 15992 | compiler_needs_object_CXX \ |
| 15993 | with_gnu_ld_CXX \ |
| 15994 | allow_undefined_flag_CXX \ |
| 15995 | no_undefined_flag_CXX \ |
| 15996 | hardcode_libdir_flag_spec_CXX \ |
| 15997 | hardcode_libdir_flag_spec_ld_CXX \ |
| 15998 | hardcode_libdir_separator_CXX \ |
| 15999 | fix_srcfile_path_CXX \ |
| 16000 | exclude_expsyms_CXX \ |
| 16001 | include_expsyms_CXX \ |
| 16002 | file_list_spec_CXX \ |
| 16003 | compiler_lib_search_dirs_CXX \ |
| 16004 | predep_objects_CXX \ |
| 16005 | postdep_objects_CXX \ |
| 16006 | predeps_CXX \ |
| 16007 | postdeps_CXX \ |
| 16008 | compiler_lib_search_path_CXX; do |
| 16009 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
| 16010 | *[\\\\\\\`\\"\\\$]*) |
| 16011 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
| 16012 | ;; |
| 16013 | *) |
| 16014 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 16015 | ;; |
| 16016 | esac |
| 16017 | done |
| 16018 | |
| 16019 | # Double-quote double-evaled strings. |
| 16020 | for var in reload_cmds \ |
| 16021 | old_postinstall_cmds \ |
| 16022 | old_postuninstall_cmds \ |
| 16023 | old_archive_cmds \ |
| 16024 | extract_expsyms_cmds \ |
| 16025 | old_archive_from_new_cmds \ |
| 16026 | old_archive_from_expsyms_cmds \ |
| 16027 | archive_cmds \ |
| 16028 | archive_expsym_cmds \ |
| 16029 | module_cmds \ |
| 16030 | module_expsym_cmds \ |
| 16031 | export_symbols_cmds \ |
| 16032 | prelink_cmds \ |
| 16033 | postinstall_cmds \ |
| 16034 | postuninstall_cmds \ |
| 16035 | finish_cmds \ |
| 16036 | sys_lib_search_path_spec \ |
| 16037 | sys_lib_dlsearch_path_spec \ |
| 16038 | old_archive_cmds_CXX \ |
| 16039 | old_archive_from_new_cmds_CXX \ |
| 16040 | old_archive_from_expsyms_cmds_CXX \ |
| 16041 | archive_cmds_CXX \ |
| 16042 | archive_expsym_cmds_CXX \ |
| 16043 | module_cmds_CXX \ |
| 16044 | module_expsym_cmds_CXX \ |
| 16045 | export_symbols_cmds_CXX \ |
| 16046 | prelink_cmds_CXX; do |
| 16047 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
| 16048 | *[\\\\\\\`\\"\\\$]*) |
| 16049 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
| 16050 | ;; |
| 16051 | *) |
| 16052 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 16053 | ;; |
| 16054 | esac |
| 16055 | done |
| 16056 | |
| 16057 | # Fix-up fallback echo if it was mangled by the above quoting rules. |
| 16058 | case \$lt_ECHO in |
| 16059 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` |
| 16060 | ;; |
| 16061 | esac |
| 16062 | |
| 16063 | ac_aux_dir='$ac_aux_dir' |
| 16064 | xsi_shell='$xsi_shell' |
| 16065 | lt_shell_append='$lt_shell_append' |
| 16066 | |
| 16067 | # See if we are running on zsh, and set the options which allow our |
| 16068 | # commands through without removal of \ escapes INIT. |
| 16069 | if test -n "\${ZSH_VERSION+set}" ; then |
| 16070 | setopt NO_GLOB_SUBST |
| 16071 | fi |
| 16072 | |
| 16073 | |
| 16074 | PACKAGE='$PACKAGE' |
| 16075 | VERSION='$VERSION' |
| 16076 | TIMESTAMP='$TIMESTAMP' |
| 16077 | RM='$RM' |
| 16078 | ofile='$ofile' |
| 16079 | |
| 16080 | |
| 16081 | |
| 16082 | |
| 16083 | |
| 16084 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16085 | _ACEOF |
| 16086 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16087 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16088 | |
| 16089 | # Handling of arguments. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16090 | for ac_config_target in $ac_config_targets |
| 16091 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16092 | case $ac_config_target in |
| 16093 | "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; |
| 16094 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16095 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16096 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 16097 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16098 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16099 | esac |
| 16100 | done |
| 16101 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16102 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16103 | # If the user did not use the arguments to specify the items to instantiate, |
| 16104 | # then the envvar interface is used. Set only those that are not. |
| 16105 | # We use the long form for the default assignment because of an extremely |
| 16106 | # bizarre bug on SunOS 4.1.3. |
| 16107 | if $ac_need_defaults; then |
| 16108 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 16109 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 16110 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 16111 | fi |
| 16112 | |
| 16113 | # Have a temporary directory for convenience. Make it in the build tree |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16114 | # simply because there is no reason against having it here, and in addition, |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16115 | # creating and moving files from /tmp can sometimes cause problems. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16116 | # Hook for its removal unless debugging. |
| 16117 | # Note that there is a small window in which the directory will not be cleaned: |
| 16118 | # after its creation but before its name has been assigned to `$tmp'. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16119 | $debug || |
| 16120 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16121 | tmp= |
| 16122 | trap 'exit_status=$? |
| 16123 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 16124 | ' 0 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16125 | trap 'as_fn_exit 1' 1 2 13 15 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16126 | } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16127 | # Create a (secure) tmp directory for tmp files. |
| 16128 | |
| 16129 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16130 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16131 | test -n "$tmp" && test -d "$tmp" |
| 16132 | } || |
| 16133 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16134 | tmp=./conf$$-$RANDOM |
| 16135 | (umask 077 && mkdir "$tmp") |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16136 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16137 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16138 | # Set up the scripts for CONFIG_FILES section. |
| 16139 | # No need to generate them if there are no CONFIG_FILES. |
| 16140 | # This happens for instance with `./config.status config.h'. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16141 | if test -n "$CONFIG_FILES"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16142 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16143 | |
| 16144 | ac_cr=`echo X | tr X '\015'` |
| 16145 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 16146 | # But we know of no other shell where ac_cr would be empty at this |
| 16147 | # point, so we can use a bashism as a fallback. |
| 16148 | if test "x$ac_cr" = x; then |
| 16149 | eval ac_cr=\$\'\\r\' |
| 16150 | fi |
| 16151 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 16152 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 16153 | ac_cs_awk_cr='\r' |
| 16154 | else |
| 16155 | ac_cs_awk_cr=$ac_cr |
| 16156 | fi |
| 16157 | |
| 16158 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16159 | _ACEOF |
| 16160 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16161 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16162 | { |
| 16163 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 16164 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 16165 | echo "_ACEOF" |
| 16166 | } >conf$$subs.sh || |
| 16167 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 16168 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16169 | ac_delim='%!_!# ' |
| 16170 | for ac_last_try in false false false false false :; do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16171 | . ./conf$$subs.sh || |
| 16172 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16173 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16174 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 16175 | if test $ac_delim_n = $ac_delim_num; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16176 | break |
| 16177 | elif $ac_last_try; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16178 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16179 | else |
| 16180 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16181 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16182 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16183 | rm -f conf$$subs.sh |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16184 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16185 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16186 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16187 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16188 | sed -n ' |
| 16189 | h |
| 16190 | s/^/S["/; s/!.*/"]=/ |
| 16191 | p |
| 16192 | g |
| 16193 | s/^[^!]*!// |
| 16194 | :repl |
| 16195 | t repl |
| 16196 | s/'"$ac_delim"'$// |
| 16197 | t delim |
| 16198 | :nl |
| 16199 | h |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 16200 | s/\(.\{148\}\)..*/\1/ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16201 | t more1 |
| 16202 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 16203 | p |
| 16204 | n |
| 16205 | b repl |
| 16206 | :more1 |
| 16207 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 16208 | p |
| 16209 | g |
| 16210 | s/.\{148\}// |
| 16211 | t nl |
| 16212 | :delim |
| 16213 | h |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 16214 | s/\(.\{148\}\)..*/\1/ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16215 | t more2 |
| 16216 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 16217 | p |
| 16218 | b |
| 16219 | :more2 |
| 16220 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 16221 | p |
| 16222 | g |
| 16223 | s/.\{148\}// |
| 16224 | t delim |
| 16225 | ' <conf$$subs.awk | sed ' |
| 16226 | /^[^""]/{ |
| 16227 | N |
| 16228 | s/\n// |
| 16229 | } |
| 16230 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 16231 | rm -f conf$$subs.awk |
| 16232 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16233 | _ACAWK |
| 16234 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
| 16235 | for (key in S) S_is_set[key] = 1 |
| 16236 | FS = "" |
| 16237 | |
| 16238 | } |
| 16239 | { |
| 16240 | line = $ 0 |
| 16241 | nfields = split(line, field, "@") |
| 16242 | substed = 0 |
| 16243 | len = length(field[1]) |
| 16244 | for (i = 2; i < nfields; i++) { |
| 16245 | key = field[i] |
| 16246 | keylen = length(key) |
| 16247 | if (S_is_set[key]) { |
| 16248 | value = S[key] |
| 16249 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 16250 | len += length(value) + length(field[++i]) |
| 16251 | substed = 1 |
| 16252 | } else |
| 16253 | len += 1 + keylen |
| 16254 | } |
| 16255 | |
| 16256 | print line |
| 16257 | } |
| 16258 | |
| 16259 | _ACAWK |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16260 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16261 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 16262 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 16263 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 16264 | else |
| 16265 | cat |
| 16266 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
| 16267 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16268 | _ACEOF |
| 16269 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16270 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 16271 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 16272 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 16273 | # (actually we leave an empty line to preserve line numbers). |
| 16274 | if test "x$srcdir" = x.; then |
| 16275 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 16276 | s/:*\$(srcdir):*/:/ |
| 16277 | s/:*\${srcdir}:*/:/ |
| 16278 | s/:*@srcdir@:*/:/ |
| 16279 | s/^\([^=]*=[ ]*\):*/\1/ |
| 16280 | s/:*$// |
| 16281 | s/^[^=]*=[ ]*$// |
| 16282 | }' |
| 16283 | fi |
| 16284 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16285 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16286 | fi # test -n "$CONFIG_FILES" |
| 16287 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16288 | # Set up the scripts for CONFIG_HEADERS section. |
| 16289 | # No need to generate them if there are no CONFIG_HEADERS. |
| 16290 | # This happens for instance with `./config.status Makefile'. |
| 16291 | if test -n "$CONFIG_HEADERS"; then |
| 16292 | cat >"$tmp/defines.awk" <<\_ACAWK || |
| 16293 | BEGIN { |
| 16294 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16295 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16296 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 16297 | # here-document in config.status, that substitutes the proper values into |
| 16298 | # config.h.in to produce config.h. |
| 16299 | |
| 16300 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 16301 | # handling of long lines. |
| 16302 | ac_delim='%!_!# ' |
| 16303 | for ac_last_try in false false :; do |
| 16304 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
| 16305 | if test -z "$ac_t"; then |
| 16306 | break |
| 16307 | elif $ac_last_try; then |
| 16308 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 16309 | else |
| 16310 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 16311 | fi |
| 16312 | done |
| 16313 | |
| 16314 | # For the awk script, D is an array of macro values keyed by name, |
| 16315 | # likewise P contains macro parameters if any. Preserve backslash |
| 16316 | # newline sequences. |
| 16317 | |
| 16318 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 16319 | sed -n ' |
| 16320 | s/.\{148\}/&'"$ac_delim"'/g |
| 16321 | t rset |
| 16322 | :rset |
| 16323 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 16324 | t def |
| 16325 | d |
| 16326 | :def |
| 16327 | s/\\$// |
| 16328 | t bsnl |
| 16329 | s/["\\]/\\&/g |
| 16330 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 16331 | D["\1"]=" \3"/p |
| 16332 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 16333 | d |
| 16334 | :bsnl |
| 16335 | s/["\\]/\\&/g |
| 16336 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 16337 | D["\1"]=" \3\\\\\\n"\\/p |
| 16338 | t cont |
| 16339 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 16340 | t cont |
| 16341 | d |
| 16342 | :cont |
| 16343 | n |
| 16344 | s/.\{148\}/&'"$ac_delim"'/g |
| 16345 | t clear |
| 16346 | :clear |
| 16347 | s/\\$// |
| 16348 | t bsnlc |
| 16349 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 16350 | d |
| 16351 | :bsnlc |
| 16352 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 16353 | b cont |
| 16354 | ' <confdefs.h | sed ' |
| 16355 | s/'"$ac_delim"'/"\\\ |
| 16356 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 16357 | |
| 16358 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16359 | for (key in D) D_is_set[key] = 1 |
| 16360 | FS = "" |
| 16361 | } |
| 16362 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 16363 | line = \$ 0 |
| 16364 | split(line, arg, " ") |
| 16365 | if (arg[1] == "#") { |
| 16366 | defundef = arg[2] |
| 16367 | mac1 = arg[3] |
| 16368 | } else { |
| 16369 | defundef = substr(arg[1], 2) |
| 16370 | mac1 = arg[2] |
| 16371 | } |
| 16372 | split(mac1, mac2, "(") #) |
| 16373 | macro = mac2[1] |
| 16374 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 16375 | if (D_is_set[macro]) { |
| 16376 | # Preserve the white space surrounding the "#". |
| 16377 | print prefix "define", macro P[macro] D[macro] |
| 16378 | next |
| 16379 | } else { |
| 16380 | # Replace #undef with comments. This is necessary, for example, |
| 16381 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 16382 | # on some systems where configure will not decide to define it. |
| 16383 | if (defundef == "undef") { |
| 16384 | print "/*", prefix defundef, macro, "*/" |
| 16385 | next |
| 16386 | } |
| 16387 | } |
| 16388 | } |
| 16389 | { print } |
| 16390 | _ACAWK |
| 16391 | _ACEOF |
| 16392 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 16393 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 |
| 16394 | fi # test -n "$CONFIG_HEADERS" |
| 16395 | |
| 16396 | |
| 16397 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 16398 | shift |
| 16399 | for ac_tag |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16400 | do |
| 16401 | case $ac_tag in |
| 16402 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 16403 | esac |
| 16404 | case $ac_mode$ac_tag in |
| 16405 | :[FHL]*:*);; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16406 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16407 | :[FH]-) ac_tag=-:-;; |
| 16408 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 16409 | esac |
| 16410 | ac_save_IFS=$IFS |
| 16411 | IFS=: |
| 16412 | set x $ac_tag |
| 16413 | IFS=$ac_save_IFS |
| 16414 | shift |
| 16415 | ac_file=$1 |
| 16416 | shift |
| 16417 | |
| 16418 | case $ac_mode in |
| 16419 | :L) ac_source=$1;; |
| 16420 | :[FH]) |
| 16421 | ac_file_inputs= |
| 16422 | for ac_f |
| 16423 | do |
| 16424 | case $ac_f in |
| 16425 | -) ac_f="$tmp/stdin";; |
| 16426 | *) # Look for the file first in the build tree, then in the source tree |
| 16427 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 16428 | # because $ac_f cannot contain `:'. |
| 16429 | test -f "$ac_f" || |
| 16430 | case $ac_f in |
| 16431 | [\\/$]*) false;; |
| 16432 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 16433 | esac || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16434 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16435 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16436 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 16437 | as_fn_append ac_file_inputs " '$ac_f'" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16438 | done |
| 16439 | |
| 16440 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16441 | # use $as_me), people would be surprised to read: |
| 16442 | # /* config.h. Generated by config.status. */ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16443 | configure_input='Generated from '` |
| 16444 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 16445 | `' by configure.' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16446 | if test x"$ac_file" != x-; then |
| 16447 | configure_input="$ac_file. $configure_input" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16448 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 16449 | $as_echo "$as_me: creating $ac_file" >&6;} |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16450 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16451 | # Neutralize special characters interpreted by sed in replacement strings. |
| 16452 | case $configure_input in #( |
| 16453 | *\&* | *\|* | *\\* ) |
| 16454 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 16455 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 16456 | *) ac_sed_conf_input=$configure_input;; |
| 16457 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16458 | |
| 16459 | case $ac_tag in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16460 | *:-:* | *:-) cat >"$tmp/stdin" \ |
| 16461 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16462 | esac |
| 16463 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16464 | esac |
| 16465 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16466 | ac_dir=`$as_dirname -- "$ac_file" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16467 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16468 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16469 | X"$ac_file" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16470 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16471 | $as_echo X"$ac_file" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16472 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16473 | s//\1/ |
| 16474 | q |
| 16475 | } |
| 16476 | /^X\(\/\/\)[^/].*/{ |
| 16477 | s//\1/ |
| 16478 | q |
| 16479 | } |
| 16480 | /^X\(\/\/\)$/{ |
| 16481 | s//\1/ |
| 16482 | q |
| 16483 | } |
| 16484 | /^X\(\/\).*/{ |
| 16485 | s//\1/ |
| 16486 | q |
| 16487 | } |
| 16488 | s/.*/./; q'` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16489 | as_dir="$ac_dir"; as_fn_mkdir_p |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16490 | ac_builddir=. |
| 16491 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16492 | case "$ac_dir" in |
| 16493 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 16494 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16495 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16496 | # A ".." for each directory in $ac_dir_suffix. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16497 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16498 | case $ac_top_builddir_sub in |
| 16499 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 16500 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 16501 | esac ;; |
| 16502 | esac |
| 16503 | ac_abs_top_builddir=$ac_pwd |
| 16504 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 16505 | # for backward compatibility: |
| 16506 | ac_top_builddir=$ac_top_build_prefix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16507 | |
| 16508 | case $srcdir in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16509 | .) # We are building in place. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16510 | ac_srcdir=. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16511 | ac_top_srcdir=$ac_top_builddir_sub |
| 16512 | ac_abs_top_srcdir=$ac_pwd ;; |
| 16513 | [\\/]* | ?:[\\/]* ) # Absolute name. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16514 | ac_srcdir=$srcdir$ac_dir_suffix; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16515 | ac_top_srcdir=$srcdir |
| 16516 | ac_abs_top_srcdir=$srcdir ;; |
| 16517 | *) # Relative name. |
| 16518 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 16519 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 16520 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16521 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16522 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16523 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16524 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16525 | case $ac_mode in |
| 16526 | :F) |
| 16527 | # |
| 16528 | # CONFIG_FILE |
| 16529 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16530 | |
| 16531 | case $INSTALL in |
| 16532 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16533 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16534 | esac |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 16535 | ac_MKDIR_P=$MKDIR_P |
| 16536 | case $MKDIR_P in |
| 16537 | [\\/$]* | ?:[\\/]* ) ;; |
| 16538 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 16539 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16540 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16541 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16542 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16543 | # If the template does not know about datarootdir, expand it. |
| 16544 | # FIXME: This hack should be removed a few years after 2.60. |
| 16545 | ac_datarootdir_hack=; ac_datarootdir_seen= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16546 | ac_sed_dataroot=' |
| 16547 | /datarootdir/ { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16548 | p |
| 16549 | q |
| 16550 | } |
| 16551 | /@datadir@/p |
| 16552 | /@docdir@/p |
| 16553 | /@infodir@/p |
| 16554 | /@localedir@/p |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16555 | /@mandir@/p' |
| 16556 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16557 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 16558 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16559 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 16560 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16561 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16562 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16563 | ac_datarootdir_hack=' |
| 16564 | s&@datadir@&$datadir&g |
| 16565 | s&@docdir@&$docdir&g |
| 16566 | s&@infodir@&$infodir&g |
| 16567 | s&@localedir@&$localedir&g |
| 16568 | s&@mandir@&$mandir&g |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16569 | s&\\\${datarootdir}&$datarootdir&g' ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16570 | esac |
| 16571 | _ACEOF |
| 16572 | |
| 16573 | # Neutralize VPATH when `$srcdir' = `.'. |
| 16574 | # Shell code in configure.ac might set extrasub. |
| 16575 | # FIXME: do we really want to maintain this feature? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16576 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16577 | ac_sed_extra="$ac_vpsub |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16578 | $extrasub |
| 16579 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16580 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16581 | :t |
| 16582 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16583 | s|@configure_input@|$ac_sed_conf_input|;t t |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16584 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16585 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16586 | s&@srcdir@&$ac_srcdir&;t t |
| 16587 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 16588 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 16589 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 16590 | s&@builddir@&$ac_builddir&;t t |
| 16591 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 16592 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 16593 | s&@INSTALL@&$ac_INSTALL&;t t |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 16594 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16595 | $ac_datarootdir_hack |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16596 | " |
| 16597 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
| 16598 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16599 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16600 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 16601 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 16602 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16603 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16604 | which seems to be undefined. Please make sure it is defined." >&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16605 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16606 | which seems to be undefined. Please make sure it is defined." >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16607 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16608 | rm -f "$tmp/stdin" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16609 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16610 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 16611 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 16612 | esac \ |
| 16613 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16614 | ;; |
| 16615 | :H) |
| 16616 | # |
| 16617 | # CONFIG_HEADER |
| 16618 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16619 | if test x"$ac_file" != x-; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16620 | { |
| 16621 | $as_echo "/* $configure_input */" \ |
| 16622 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
| 16623 | } >"$tmp/config.h" \ |
| 16624 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 16625 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
| 16626 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 16627 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16628 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16629 | rm -f "$ac_file" |
| 16630 | mv "$tmp/config.h" "$ac_file" \ |
| 16631 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16632 | fi |
| 16633 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16634 | $as_echo "/* $configure_input */" \ |
| 16635 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
| 16636 | || as_fn_error "could not create -" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16637 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16638 | # Compute "$ac_file"'s index in $config_headers. |
| 16639 | _am_arg="$ac_file" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16640 | _am_stamp_count=1 |
| 16641 | for _am_header in $config_headers :; do |
| 16642 | case $_am_header in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16643 | $_am_arg | $_am_arg:* ) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16644 | break ;; |
| 16645 | * ) |
| 16646 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 16647 | esac |
| 16648 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16649 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 16650 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16651 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 16652 | X"$_am_arg" : 'X\(//\)$' \| \ |
| 16653 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 16654 | $as_echo X"$_am_arg" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16655 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16656 | s//\1/ |
| 16657 | q |
| 16658 | } |
| 16659 | /^X\(\/\/\)[^/].*/{ |
| 16660 | s//\1/ |
| 16661 | q |
| 16662 | } |
| 16663 | /^X\(\/\/\)$/{ |
| 16664 | s//\1/ |
| 16665 | q |
| 16666 | } |
| 16667 | /^X\(\/\).*/{ |
| 16668 | s//\1/ |
| 16669 | q |
| 16670 | } |
| 16671 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 16672 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16673 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16674 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| 16675 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16676 | ;; |
| 16677 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16678 | |
| 16679 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16680 | case $ac_file$ac_mode in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16681 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
| 16682 | # Autoconf 2.62 quotes --file arguments for eval, but not when files |
| 16683 | # are listed without --file. Let's play safe and only enable the eval |
| 16684 | # if we detect the quoting. |
| 16685 | case $CONFIG_FILES in |
| 16686 | *\'*) eval set x "$CONFIG_FILES" ;; |
| 16687 | *) set x $CONFIG_FILES ;; |
| 16688 | esac |
| 16689 | shift |
| 16690 | for mf |
| 16691 | do |
| 16692 | # Strip MF so we end up with the name of the file. |
| 16693 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 16694 | # Check whether this is an Automake generated Makefile or not. |
| 16695 | # We used to match only the files named `Makefile.in', but |
| 16696 | # some people rename them; so instead we look at the file content. |
| 16697 | # Grep'ing the first line is not enough: some people post-process |
| 16698 | # each Makefile.in and add a new line on top of each file to say so. |
| 16699 | # Grep'ing the whole file is not good either: AIX grep has a line |
| 16700 | # limit of 2048, but all sed's we know have understand at least 4000. |
| 16701 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
| 16702 | dirpart=`$as_dirname -- "$mf" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16703 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16704 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 16705 | X"$mf" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16706 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16707 | $as_echo X"$mf" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16708 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16709 | s//\1/ |
| 16710 | q |
| 16711 | } |
| 16712 | /^X\(\/\/\)[^/].*/{ |
| 16713 | s//\1/ |
| 16714 | q |
| 16715 | } |
| 16716 | /^X\(\/\/\)$/{ |
| 16717 | s//\1/ |
| 16718 | q |
| 16719 | } |
| 16720 | /^X\(\/\).*/{ |
| 16721 | s//\1/ |
| 16722 | q |
| 16723 | } |
| 16724 | s/.*/./; q'` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16725 | else |
| 16726 | continue |
| 16727 | fi |
| 16728 | # Extract the definition of DEPDIR, am__include, and am__quote |
| 16729 | # from the Makefile without running `make'. |
| 16730 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 16731 | test -z "$DEPDIR" && continue |
| 16732 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 16733 | test -z "am__include" && continue |
| 16734 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 16735 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 16736 | U=`sed -n 's/^U = //p' < "$mf"` |
| 16737 | # Find all dependency output files, they are included files with |
| 16738 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 16739 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 16740 | # expansion. |
| 16741 | for file in `sed -n " |
| 16742 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 16743 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 16744 | # Make sure the directory exists. |
| 16745 | test -f "$dirpart/$file" && continue |
| 16746 | fdir=`$as_dirname -- "$file" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16747 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16748 | X"$file" : 'X\(//\)[^/]' \| \ |
| 16749 | X"$file" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16750 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16751 | $as_echo X"$file" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16752 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16753 | s//\1/ |
| 16754 | q |
| 16755 | } |
| 16756 | /^X\(\/\/\)[^/].*/{ |
| 16757 | s//\1/ |
| 16758 | q |
| 16759 | } |
| 16760 | /^X\(\/\/\)$/{ |
| 16761 | s//\1/ |
| 16762 | q |
| 16763 | } |
| 16764 | /^X\(\/\).*/{ |
| 16765 | s//\1/ |
| 16766 | q |
| 16767 | } |
| 16768 | s/.*/./; q'` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16769 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
| 16770 | # echo "creating $dirpart/$file" |
| 16771 | echo '# dummy' > "$dirpart/$file" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16772 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16773 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16774 | } |
| 16775 | ;; |
| 16776 | "libtool":C) |
| 16777 | |
| 16778 | # See if we are running on zsh, and set the options which allow our |
| 16779 | # commands through without removal of \ escapes. |
| 16780 | if test -n "${ZSH_VERSION+set}" ; then |
| 16781 | setopt NO_GLOB_SUBST |
| 16782 | fi |
| 16783 | |
| 16784 | cfgfile="${ofile}T" |
| 16785 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 16786 | $RM "$cfgfile" |
| 16787 | |
| 16788 | cat <<_LT_EOF >> "$cfgfile" |
| 16789 | #! $SHELL |
| 16790 | |
| 16791 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 16792 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
| 16793 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 16794 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 16795 | # |
| 16796 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
| 16797 | # 2006, 2007, 2008 Free Software Foundation, Inc. |
| 16798 | # Written by Gordon Matzigkeit, 1996 |
| 16799 | # |
| 16800 | # This file is part of GNU Libtool. |
| 16801 | # |
| 16802 | # GNU Libtool is free software; you can redistribute it and/or |
| 16803 | # modify it under the terms of the GNU General Public License as |
| 16804 | # published by the Free Software Foundation; either version 2 of |
| 16805 | # the License, or (at your option) any later version. |
| 16806 | # |
| 16807 | # As a special exception to the GNU General Public License, |
| 16808 | # if you distribute this file as part of a program or library that |
| 16809 | # is built using GNU Libtool, you may include this file under the |
| 16810 | # same distribution terms that you use for the rest of that program. |
| 16811 | # |
| 16812 | # GNU Libtool is distributed in the hope that it will be useful, |
| 16813 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16814 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16815 | # GNU General Public License for more details. |
| 16816 | # |
| 16817 | # You should have received a copy of the GNU General Public License |
| 16818 | # along with GNU Libtool; see the file COPYING. If not, a copy |
| 16819 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
| 16820 | # obtained by writing to the Free Software Foundation, Inc., |
| 16821 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 16822 | |
| 16823 | |
| 16824 | # The names of the tagged configurations supported by this script. |
| 16825 | available_tags="CXX " |
| 16826 | |
| 16827 | # ### BEGIN LIBTOOL CONFIG |
| 16828 | |
| 16829 | # Which release of libtool.m4 was used? |
| 16830 | macro_version=$macro_version |
| 16831 | macro_revision=$macro_revision |
| 16832 | |
| 16833 | # Whether or not to build shared libraries. |
| 16834 | build_libtool_libs=$enable_shared |
| 16835 | |
| 16836 | # Whether or not to build static libraries. |
| 16837 | build_old_libs=$enable_static |
| 16838 | |
| 16839 | # What type of objects to build. |
| 16840 | pic_mode=$pic_mode |
| 16841 | |
| 16842 | # Whether or not to optimize for fast installation. |
| 16843 | fast_install=$enable_fast_install |
| 16844 | |
| 16845 | # The host system. |
| 16846 | host_alias=$host_alias |
| 16847 | host=$host |
| 16848 | host_os=$host_os |
| 16849 | |
| 16850 | # The build system. |
| 16851 | build_alias=$build_alias |
| 16852 | build=$build |
| 16853 | build_os=$build_os |
| 16854 | |
| 16855 | # A sed program that does not truncate output. |
| 16856 | SED=$lt_SED |
| 16857 | |
| 16858 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 16859 | Xsed="\$SED -e 1s/^X//" |
| 16860 | |
| 16861 | # A grep program that handles long lines. |
| 16862 | GREP=$lt_GREP |
| 16863 | |
| 16864 | # An ERE matcher. |
| 16865 | EGREP=$lt_EGREP |
| 16866 | |
| 16867 | # A literal string matcher. |
| 16868 | FGREP=$lt_FGREP |
| 16869 | |
| 16870 | # A BSD- or MS-compatible name lister. |
| 16871 | NM=$lt_NM |
| 16872 | |
| 16873 | # Whether we need soft or hard links. |
| 16874 | LN_S=$lt_LN_S |
| 16875 | |
| 16876 | # What is the maximum length of a command? |
| 16877 | max_cmd_len=$max_cmd_len |
| 16878 | |
| 16879 | # Object file suffix (normally "o"). |
| 16880 | objext=$ac_objext |
| 16881 | |
| 16882 | # Executable file suffix (normally ""). |
| 16883 | exeext=$exeext |
| 16884 | |
| 16885 | # whether the shell understands "unset". |
| 16886 | lt_unset=$lt_unset |
| 16887 | |
| 16888 | # turn spaces into newlines. |
| 16889 | SP2NL=$lt_lt_SP2NL |
| 16890 | |
| 16891 | # turn newlines into spaces. |
| 16892 | NL2SP=$lt_lt_NL2SP |
| 16893 | |
| 16894 | # How to create reloadable object files. |
| 16895 | reload_flag=$lt_reload_flag |
| 16896 | reload_cmds=$lt_reload_cmds |
| 16897 | |
| 16898 | # An object symbol dumper. |
| 16899 | OBJDUMP=$lt_OBJDUMP |
| 16900 | |
| 16901 | # Method to check whether dependent libraries are shared objects. |
| 16902 | deplibs_check_method=$lt_deplibs_check_method |
| 16903 | |
| 16904 | # Command to use when deplibs_check_method == "file_magic". |
| 16905 | file_magic_cmd=$lt_file_magic_cmd |
| 16906 | |
| 16907 | # The archiver. |
| 16908 | AR=$lt_AR |
| 16909 | AR_FLAGS=$lt_AR_FLAGS |
| 16910 | |
| 16911 | # A symbol stripping program. |
| 16912 | STRIP=$lt_STRIP |
| 16913 | |
| 16914 | # Commands used to install an old-style archive. |
| 16915 | RANLIB=$lt_RANLIB |
| 16916 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 16917 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 16918 | |
| 16919 | # A C compiler. |
| 16920 | LTCC=$lt_CC |
| 16921 | |
| 16922 | # LTCC compiler flags. |
| 16923 | LTCFLAGS=$lt_CFLAGS |
| 16924 | |
| 16925 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 16926 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 16927 | |
| 16928 | # Transform the output of nm in a proper C declaration. |
| 16929 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 16930 | |
| 16931 | # Transform the output of nm in a C name address pair. |
| 16932 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 16933 | |
| 16934 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
| 16935 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
| 16936 | |
| 16937 | # The name of the directory that contains temporary libtool files. |
| 16938 | objdir=$objdir |
| 16939 | |
| 16940 | # Shell to use when invoking shell scripts. |
| 16941 | SHELL=$lt_SHELL |
| 16942 | |
| 16943 | # An echo program that does not interpret backslashes. |
| 16944 | ECHO=$lt_ECHO |
| 16945 | |
| 16946 | # Used to examine libraries when file_magic_cmd begins with "file". |
| 16947 | MAGIC_CMD=$MAGIC_CMD |
| 16948 | |
| 16949 | # Must we lock files when doing compilation? |
| 16950 | need_locks=$lt_need_locks |
| 16951 | |
| 16952 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
| 16953 | DSYMUTIL=$lt_DSYMUTIL |
| 16954 | |
| 16955 | # Tool to change global to local symbols on Mac OS X. |
| 16956 | NMEDIT=$lt_NMEDIT |
| 16957 | |
| 16958 | # Tool to manipulate fat objects and archives on Mac OS X. |
| 16959 | LIPO=$lt_LIPO |
| 16960 | |
| 16961 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
| 16962 | OTOOL=$lt_OTOOL |
| 16963 | |
| 16964 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
| 16965 | OTOOL64=$lt_OTOOL64 |
| 16966 | |
| 16967 | # Old archive suffix (normally "a"). |
| 16968 | libext=$libext |
| 16969 | |
| 16970 | # Shared library suffix (normally ".so"). |
| 16971 | shrext_cmds=$lt_shrext_cmds |
| 16972 | |
| 16973 | # The commands to extract the exported symbol list from a shared archive. |
| 16974 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 16975 | |
| 16976 | # Variables whose values should be saved in libtool wrapper scripts and |
| 16977 | # restored at link time. |
| 16978 | variables_saved_for_relink=$lt_variables_saved_for_relink |
| 16979 | |
| 16980 | # Do we need the "lib" prefix for modules? |
| 16981 | need_lib_prefix=$need_lib_prefix |
| 16982 | |
| 16983 | # Do we need a version for libraries? |
| 16984 | need_version=$need_version |
| 16985 | |
| 16986 | # Library versioning type. |
| 16987 | version_type=$version_type |
| 16988 | |
| 16989 | # Shared library runtime path variable. |
| 16990 | runpath_var=$runpath_var |
| 16991 | |
| 16992 | # Shared library path variable. |
| 16993 | shlibpath_var=$shlibpath_var |
| 16994 | |
| 16995 | # Is shlibpath searched before the hard-coded library search path? |
| 16996 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 16997 | |
| 16998 | # Format of library name prefix. |
| 16999 | libname_spec=$lt_libname_spec |
| 17000 | |
| 17001 | # List of archive names. First name is the real one, the rest are links. |
| 17002 | # The last name is the one that the linker finds with -lNAME |
| 17003 | library_names_spec=$lt_library_names_spec |
| 17004 | |
| 17005 | # The coded name of the library, if different from the real name. |
| 17006 | soname_spec=$lt_soname_spec |
| 17007 | |
| 17008 | # Command to use after installation of a shared archive. |
| 17009 | postinstall_cmds=$lt_postinstall_cmds |
| 17010 | |
| 17011 | # Command to use after uninstallation of a shared archive. |
| 17012 | postuninstall_cmds=$lt_postuninstall_cmds |
| 17013 | |
| 17014 | # Commands used to finish a libtool library installation in a directory. |
| 17015 | finish_cmds=$lt_finish_cmds |
| 17016 | |
| 17017 | # As "finish_cmds", except a single script fragment to be evaled but |
| 17018 | # not shown. |
| 17019 | finish_eval=$lt_finish_eval |
| 17020 | |
| 17021 | # Whether we should hardcode library paths into libraries. |
| 17022 | hardcode_into_libs=$hardcode_into_libs |
| 17023 | |
| 17024 | # Compile-time system search path for libraries. |
| 17025 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 17026 | |
| 17027 | # Run-time system search path for libraries. |
| 17028 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 17029 | |
| 17030 | # Whether dlopen is supported. |
| 17031 | dlopen_support=$enable_dlopen |
| 17032 | |
| 17033 | # Whether dlopen of programs is supported. |
| 17034 | dlopen_self=$enable_dlopen_self |
| 17035 | |
| 17036 | # Whether dlopen of statically linked programs is supported. |
| 17037 | dlopen_self_static=$enable_dlopen_self_static |
| 17038 | |
| 17039 | # Commands to strip libraries. |
| 17040 | old_striplib=$lt_old_striplib |
| 17041 | striplib=$lt_striplib |
| 17042 | |
| 17043 | |
| 17044 | # The linker used to build libraries. |
| 17045 | LD=$lt_LD |
| 17046 | |
| 17047 | # Commands used to build an old-style archive. |
| 17048 | old_archive_cmds=$lt_old_archive_cmds |
| 17049 | |
| 17050 | # A language specific compiler. |
| 17051 | CC=$lt_compiler |
| 17052 | |
| 17053 | # Is the compiler the GNU compiler? |
| 17054 | with_gcc=$GCC |
| 17055 | |
| 17056 | # Compiler flag to turn off builtin functions. |
| 17057 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 17058 | |
| 17059 | # How to pass a linker flag through the compiler. |
| 17060 | wl=$lt_lt_prog_compiler_wl |
| 17061 | |
| 17062 | # Additional compiler flags for building library objects. |
| 17063 | pic_flag=$lt_lt_prog_compiler_pic |
| 17064 | |
| 17065 | # Compiler flag to prevent dynamic linking. |
| 17066 | link_static_flag=$lt_lt_prog_compiler_static |
| 17067 | |
| 17068 | # Does compiler simultaneously support -c and -o options? |
| 17069 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 17070 | |
| 17071 | # Whether or not to add -lc for building shared libraries. |
| 17072 | build_libtool_need_lc=$archive_cmds_need_lc |
| 17073 | |
| 17074 | # Whether or not to disallow shared libs when runtime libs are static. |
| 17075 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 17076 | |
| 17077 | # Compiler flag to allow reflexive dlopens. |
| 17078 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 17079 | |
| 17080 | # Compiler flag to generate shared objects directly from archives. |
| 17081 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 17082 | |
| 17083 | # Whether the compiler copes with passing no objects directly. |
| 17084 | compiler_needs_object=$lt_compiler_needs_object |
| 17085 | |
| 17086 | # Create an old-style archive from a shared archive. |
| 17087 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 17088 | |
| 17089 | # Create a temporary old-style archive to link instead of a shared archive. |
| 17090 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 17091 | |
| 17092 | # Commands used to build a shared archive. |
| 17093 | archive_cmds=$lt_archive_cmds |
| 17094 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 17095 | |
| 17096 | # Commands used to build a loadable module if different from building |
| 17097 | # a shared archive. |
| 17098 | module_cmds=$lt_module_cmds |
| 17099 | module_expsym_cmds=$lt_module_expsym_cmds |
| 17100 | |
| 17101 | # Whether we are building with GNU ld or not. |
| 17102 | with_gnu_ld=$lt_with_gnu_ld |
| 17103 | |
| 17104 | # Flag that allows shared libraries with undefined symbols to be built. |
| 17105 | allow_undefined_flag=$lt_allow_undefined_flag |
| 17106 | |
| 17107 | # Flag that enforces no undefined symbols. |
| 17108 | no_undefined_flag=$lt_no_undefined_flag |
| 17109 | |
| 17110 | # Flag to hardcode \$libdir into a binary during linking. |
| 17111 | # This must work even if \$libdir does not exist |
| 17112 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 17113 | |
| 17114 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
| 17115 | # during linking. This must work even if \$libdir does not exist. |
| 17116 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 17117 | |
| 17118 | # Whether we need a single "-rpath" flag with a separated argument. |
| 17119 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 17120 | |
| 17121 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 17122 | # DIR into the resulting binary. |
| 17123 | hardcode_direct=$hardcode_direct |
| 17124 | |
| 17125 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 17126 | # DIR into the resulting binary and the resulting library dependency is |
| 17127 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 17128 | # library is relocated. |
| 17129 | hardcode_direct_absolute=$hardcode_direct_absolute |
| 17130 | |
| 17131 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 17132 | # into the resulting binary. |
| 17133 | hardcode_minus_L=$hardcode_minus_L |
| 17134 | |
| 17135 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 17136 | # into the resulting binary. |
| 17137 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 17138 | |
| 17139 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 17140 | # into the library and all subsequent libraries and executables linked |
| 17141 | # against it. |
| 17142 | hardcode_automatic=$hardcode_automatic |
| 17143 | |
| 17144 | # Set to yes if linker adds runtime paths of dependent libraries |
| 17145 | # to runtime path list. |
| 17146 | inherit_rpath=$inherit_rpath |
| 17147 | |
| 17148 | # Whether libtool must link a program against all its dependency libraries. |
| 17149 | link_all_deplibs=$link_all_deplibs |
| 17150 | |
| 17151 | # Fix the shell variable \$srcfile for the compiler. |
| 17152 | fix_srcfile_path=$lt_fix_srcfile_path |
| 17153 | |
| 17154 | # Set to "yes" if exported symbols are required. |
| 17155 | always_export_symbols=$always_export_symbols |
| 17156 | |
| 17157 | # The commands to list exported symbols. |
| 17158 | export_symbols_cmds=$lt_export_symbols_cmds |
| 17159 | |
| 17160 | # Symbols that should not be listed in the preloaded symbols. |
| 17161 | exclude_expsyms=$lt_exclude_expsyms |
| 17162 | |
| 17163 | # Symbols that must always be exported. |
| 17164 | include_expsyms=$lt_include_expsyms |
| 17165 | |
| 17166 | # Commands necessary for linking programs (against libraries) with templates. |
| 17167 | prelink_cmds=$lt_prelink_cmds |
| 17168 | |
| 17169 | # Specify filename containing input files. |
| 17170 | file_list_spec=$lt_file_list_spec |
| 17171 | |
| 17172 | # How to hardcode a shared library path into an executable. |
| 17173 | hardcode_action=$hardcode_action |
| 17174 | |
| 17175 | # The directories searched by this compiler when creating a shared library. |
| 17176 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs |
| 17177 | |
| 17178 | # Dependencies to place before and after the objects being linked to |
| 17179 | # create a shared library. |
| 17180 | predep_objects=$lt_predep_objects |
| 17181 | postdep_objects=$lt_postdep_objects |
| 17182 | predeps=$lt_predeps |
| 17183 | postdeps=$lt_postdeps |
| 17184 | |
| 17185 | # The library search path used internally by the compiler when linking |
| 17186 | # a shared library. |
| 17187 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 17188 | |
| 17189 | # ### END LIBTOOL CONFIG |
| 17190 | |
| 17191 | _LT_EOF |
| 17192 | |
| 17193 | case $host_os in |
| 17194 | aix3*) |
| 17195 | cat <<\_LT_EOF >> "$cfgfile" |
| 17196 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 17197 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 17198 | # vanish in a puff of smoke. |
| 17199 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 17200 | COLLECT_NAMES= |
| 17201 | export COLLECT_NAMES |
| 17202 | fi |
| 17203 | _LT_EOF |
| 17204 | ;; |
| 17205 | esac |
| 17206 | |
| 17207 | |
| 17208 | ltmain="$ac_aux_dir/ltmain.sh" |
| 17209 | |
| 17210 | |
| 17211 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 17212 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 17213 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 17214 | # is reportedly fixed, but why not run on old versions too? |
| 17215 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ |
| 17216 | || (rm -f "$cfgfile"; exit 1) |
| 17217 | |
| 17218 | case $xsi_shell in |
| 17219 | yes) |
| 17220 | cat << \_LT_EOF >> "$cfgfile" |
| 17221 | |
| 17222 | # func_dirname file append nondir_replacement |
| 17223 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, |
| 17224 | # otherwise set result to NONDIR_REPLACEMENT. |
| 17225 | func_dirname () |
| 17226 | { |
| 17227 | case ${1} in |
| 17228 | */*) func_dirname_result="${1%/*}${2}" ;; |
| 17229 | * ) func_dirname_result="${3}" ;; |
| 17230 | esac |
| 17231 | } |
| 17232 | |
| 17233 | # func_basename file |
| 17234 | func_basename () |
| 17235 | { |
| 17236 | func_basename_result="${1##*/}" |
| 17237 | } |
| 17238 | |
| 17239 | # func_dirname_and_basename file append nondir_replacement |
| 17240 | # perform func_basename and func_dirname in a single function |
| 17241 | # call: |
| 17242 | # dirname: Compute the dirname of FILE. If nonempty, |
| 17243 | # add APPEND to the result, otherwise set result |
| 17244 | # to NONDIR_REPLACEMENT. |
| 17245 | # value returned in "$func_dirname_result" |
| 17246 | # basename: Compute filename of FILE. |
| 17247 | # value retuned in "$func_basename_result" |
| 17248 | # Implementation must be kept synchronized with func_dirname |
| 17249 | # and func_basename. For efficiency, we do not delegate to |
| 17250 | # those functions but instead duplicate the functionality here. |
| 17251 | func_dirname_and_basename () |
| 17252 | { |
| 17253 | case ${1} in |
| 17254 | */*) func_dirname_result="${1%/*}${2}" ;; |
| 17255 | * ) func_dirname_result="${3}" ;; |
| 17256 | esac |
| 17257 | func_basename_result="${1##*/}" |
| 17258 | } |
| 17259 | |
| 17260 | # func_stripname prefix suffix name |
| 17261 | # strip PREFIX and SUFFIX off of NAME. |
| 17262 | # PREFIX and SUFFIX must not contain globbing or regex special |
| 17263 | # characters, hashes, percent signs, but SUFFIX may contain a leading |
| 17264 | # dot (in which case that matches only a dot). |
| 17265 | func_stripname () |
| 17266 | { |
| 17267 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are |
| 17268 | # positional parameters, so assign one to ordinary parameter first. |
| 17269 | func_stripname_result=${3} |
| 17270 | func_stripname_result=${func_stripname_result#"${1}"} |
| 17271 | func_stripname_result=${func_stripname_result%"${2}"} |
| 17272 | } |
| 17273 | |
| 17274 | # func_opt_split |
| 17275 | func_opt_split () |
| 17276 | { |
| 17277 | func_opt_split_opt=${1%%=*} |
| 17278 | func_opt_split_arg=${1#*=} |
| 17279 | } |
| 17280 | |
| 17281 | # func_lo2o object |
| 17282 | func_lo2o () |
| 17283 | { |
| 17284 | case ${1} in |
| 17285 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; |
| 17286 | *) func_lo2o_result=${1} ;; |
| 17287 | esac |
| 17288 | } |
| 17289 | |
| 17290 | # func_xform libobj-or-source |
| 17291 | func_xform () |
| 17292 | { |
| 17293 | func_xform_result=${1%.*}.lo |
| 17294 | } |
| 17295 | |
| 17296 | # func_arith arithmetic-term... |
| 17297 | func_arith () |
| 17298 | { |
| 17299 | func_arith_result=$(( $* )) |
| 17300 | } |
| 17301 | |
| 17302 | # func_len string |
| 17303 | # STRING may not start with a hyphen. |
| 17304 | func_len () |
| 17305 | { |
| 17306 | func_len_result=${#1} |
| 17307 | } |
| 17308 | |
| 17309 | _LT_EOF |
| 17310 | ;; |
| 17311 | *) # Bourne compatible functions. |
| 17312 | cat << \_LT_EOF >> "$cfgfile" |
| 17313 | |
| 17314 | # func_dirname file append nondir_replacement |
| 17315 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, |
| 17316 | # otherwise set result to NONDIR_REPLACEMENT. |
| 17317 | func_dirname () |
| 17318 | { |
| 17319 | # Extract subdirectory from the argument. |
| 17320 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` |
| 17321 | if test "X$func_dirname_result" = "X${1}"; then |
| 17322 | func_dirname_result="${3}" |
| 17323 | else |
| 17324 | func_dirname_result="$func_dirname_result${2}" |
| 17325 | fi |
| 17326 | } |
| 17327 | |
| 17328 | # func_basename file |
| 17329 | func_basename () |
| 17330 | { |
| 17331 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` |
| 17332 | } |
| 17333 | |
| 17334 | |
| 17335 | # func_stripname prefix suffix name |
| 17336 | # strip PREFIX and SUFFIX off of NAME. |
| 17337 | # PREFIX and SUFFIX must not contain globbing or regex special |
| 17338 | # characters, hashes, percent signs, but SUFFIX may contain a leading |
| 17339 | # dot (in which case that matches only a dot). |
| 17340 | # func_strip_suffix prefix name |
| 17341 | func_stripname () |
| 17342 | { |
| 17343 | case ${2} in |
| 17344 | .*) func_stripname_result=`$ECHO "X${3}" \ |
| 17345 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; |
| 17346 | *) func_stripname_result=`$ECHO "X${3}" \ |
| 17347 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; |
| 17348 | esac |
| 17349 | } |
| 17350 | |
| 17351 | # sed scripts: |
| 17352 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' |
| 17353 | my_sed_long_arg='1s/^-[^=]*=//' |
| 17354 | |
| 17355 | # func_opt_split |
| 17356 | func_opt_split () |
| 17357 | { |
| 17358 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` |
| 17359 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` |
| 17360 | } |
| 17361 | |
| 17362 | # func_lo2o object |
| 17363 | func_lo2o () |
| 17364 | { |
| 17365 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` |
| 17366 | } |
| 17367 | |
| 17368 | # func_xform libobj-or-source |
| 17369 | func_xform () |
| 17370 | { |
| 17371 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` |
| 17372 | } |
| 17373 | |
| 17374 | # func_arith arithmetic-term... |
| 17375 | func_arith () |
| 17376 | { |
| 17377 | func_arith_result=`expr "$@"` |
| 17378 | } |
| 17379 | |
| 17380 | # func_len string |
| 17381 | # STRING may not start with a hyphen. |
| 17382 | func_len () |
| 17383 | { |
| 17384 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` |
| 17385 | } |
| 17386 | |
| 17387 | _LT_EOF |
| 17388 | esac |
| 17389 | |
| 17390 | case $lt_shell_append in |
| 17391 | yes) |
| 17392 | cat << \_LT_EOF >> "$cfgfile" |
| 17393 | |
| 17394 | # func_append var value |
| 17395 | # Append VALUE to the end of shell variable VAR. |
| 17396 | func_append () |
| 17397 | { |
| 17398 | eval "$1+=\$2" |
| 17399 | } |
| 17400 | _LT_EOF |
| 17401 | ;; |
| 17402 | *) |
| 17403 | cat << \_LT_EOF >> "$cfgfile" |
| 17404 | |
| 17405 | # func_append var value |
| 17406 | # Append VALUE to the end of shell variable VAR. |
| 17407 | func_append () |
| 17408 | { |
| 17409 | eval "$1=\$$1\$2" |
| 17410 | } |
| 17411 | |
| 17412 | _LT_EOF |
| 17413 | ;; |
| 17414 | esac |
| 17415 | |
| 17416 | |
| 17417 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ |
| 17418 | || (rm -f "$cfgfile"; exit 1) |
| 17419 | |
| 17420 | mv -f "$cfgfile" "$ofile" || |
| 17421 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 17422 | chmod +x "$ofile" |
| 17423 | |
| 17424 | |
| 17425 | cat <<_LT_EOF >> "$ofile" |
| 17426 | |
| 17427 | # ### BEGIN LIBTOOL TAG CONFIG: CXX |
| 17428 | |
| 17429 | # The linker used to build libraries. |
| 17430 | LD=$lt_LD_CXX |
| 17431 | |
| 17432 | # Commands used to build an old-style archive. |
| 17433 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 17434 | |
| 17435 | # A language specific compiler. |
| 17436 | CC=$lt_compiler_CXX |
| 17437 | |
| 17438 | # Is the compiler the GNU compiler? |
| 17439 | with_gcc=$GCC_CXX |
| 17440 | |
| 17441 | # Compiler flag to turn off builtin functions. |
| 17442 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 17443 | |
| 17444 | # How to pass a linker flag through the compiler. |
| 17445 | wl=$lt_lt_prog_compiler_wl_CXX |
| 17446 | |
| 17447 | # Additional compiler flags for building library objects. |
| 17448 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 17449 | |
| 17450 | # Compiler flag to prevent dynamic linking. |
| 17451 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 17452 | |
| 17453 | # Does compiler simultaneously support -c and -o options? |
| 17454 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 17455 | |
| 17456 | # Whether or not to add -lc for building shared libraries. |
| 17457 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 17458 | |
| 17459 | # Whether or not to disallow shared libs when runtime libs are static. |
| 17460 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 17461 | |
| 17462 | # Compiler flag to allow reflexive dlopens. |
| 17463 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 17464 | |
| 17465 | # Compiler flag to generate shared objects directly from archives. |
| 17466 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 17467 | |
| 17468 | # Whether the compiler copes with passing no objects directly. |
| 17469 | compiler_needs_object=$lt_compiler_needs_object_CXX |
| 17470 | |
| 17471 | # Create an old-style archive from a shared archive. |
| 17472 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 17473 | |
| 17474 | # Create a temporary old-style archive to link instead of a shared archive. |
| 17475 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 17476 | |
| 17477 | # Commands used to build a shared archive. |
| 17478 | archive_cmds=$lt_archive_cmds_CXX |
| 17479 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 17480 | |
| 17481 | # Commands used to build a loadable module if different from building |
| 17482 | # a shared archive. |
| 17483 | module_cmds=$lt_module_cmds_CXX |
| 17484 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 17485 | |
| 17486 | # Whether we are building with GNU ld or not. |
| 17487 | with_gnu_ld=$lt_with_gnu_ld_CXX |
| 17488 | |
| 17489 | # Flag that allows shared libraries with undefined symbols to be built. |
| 17490 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 17491 | |
| 17492 | # Flag that enforces no undefined symbols. |
| 17493 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 17494 | |
| 17495 | # Flag to hardcode \$libdir into a binary during linking. |
| 17496 | # This must work even if \$libdir does not exist |
| 17497 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 17498 | |
| 17499 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
| 17500 | # during linking. This must work even if \$libdir does not exist. |
| 17501 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 17502 | |
| 17503 | # Whether we need a single "-rpath" flag with a separated argument. |
| 17504 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 17505 | |
| 17506 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 17507 | # DIR into the resulting binary. |
| 17508 | hardcode_direct=$hardcode_direct_CXX |
| 17509 | |
| 17510 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 17511 | # DIR into the resulting binary and the resulting library dependency is |
| 17512 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 17513 | # library is relocated. |
| 17514 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX |
| 17515 | |
| 17516 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 17517 | # into the resulting binary. |
| 17518 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 17519 | |
| 17520 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 17521 | # into the resulting binary. |
| 17522 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 17523 | |
| 17524 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 17525 | # into the library and all subsequent libraries and executables linked |
| 17526 | # against it. |
| 17527 | hardcode_automatic=$hardcode_automatic_CXX |
| 17528 | |
| 17529 | # Set to yes if linker adds runtime paths of dependent libraries |
| 17530 | # to runtime path list. |
| 17531 | inherit_rpath=$inherit_rpath_CXX |
| 17532 | |
| 17533 | # Whether libtool must link a program against all its dependency libraries. |
| 17534 | link_all_deplibs=$link_all_deplibs_CXX |
| 17535 | |
| 17536 | # Fix the shell variable \$srcfile for the compiler. |
| 17537 | fix_srcfile_path=$lt_fix_srcfile_path_CXX |
| 17538 | |
| 17539 | # Set to "yes" if exported symbols are required. |
| 17540 | always_export_symbols=$always_export_symbols_CXX |
| 17541 | |
| 17542 | # The commands to list exported symbols. |
| 17543 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 17544 | |
| 17545 | # Symbols that should not be listed in the preloaded symbols. |
| 17546 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 17547 | |
| 17548 | # Symbols that must always be exported. |
| 17549 | include_expsyms=$lt_include_expsyms_CXX |
| 17550 | |
| 17551 | # Commands necessary for linking programs (against libraries) with templates. |
| 17552 | prelink_cmds=$lt_prelink_cmds_CXX |
| 17553 | |
| 17554 | # Specify filename containing input files. |
| 17555 | file_list_spec=$lt_file_list_spec_CXX |
| 17556 | |
| 17557 | # How to hardcode a shared library path into an executable. |
| 17558 | hardcode_action=$hardcode_action_CXX |
| 17559 | |
| 17560 | # The directories searched by this compiler when creating a shared library. |
| 17561 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX |
| 17562 | |
| 17563 | # Dependencies to place before and after the objects being linked to |
| 17564 | # create a shared library. |
| 17565 | predep_objects=$lt_predep_objects_CXX |
| 17566 | postdep_objects=$lt_postdep_objects_CXX |
| 17567 | predeps=$lt_predeps_CXX |
| 17568 | postdeps=$lt_postdeps_CXX |
| 17569 | |
| 17570 | # The library search path used internally by the compiler when linking |
| 17571 | # a shared library. |
| 17572 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 17573 | |
| 17574 | # ### END LIBTOOL TAG CONFIG: CXX |
| 17575 | _LT_EOF |
| 17576 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17577 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17578 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17579 | esac |
| 17580 | done # for ac_tag |
| 17581 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17582 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 17583 | as_fn_exit 0 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17584 | _ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17585 | ac_clean_files=$ac_clean_files_save |
| 17586 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 17587 | test $ac_write_fail = 0 || |
| 17588 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 17589 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17590 | |
| 17591 | # configure is writing to config.log, and then calls config.status. |
| 17592 | # config.status does its own redirection, appending to config.log. |
| 17593 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 17594 | # by configure, so config.status won't be able to write to it; its |
| 17595 | # output is simply discarded. So we exec the FD to /dev/null, |
| 17596 | # effectively closing config.log, so it can be properly (re)opened and |
| 17597 | # appended to by config.status. When coming back to configure, we |
| 17598 | # need to make the FD available again. |
| 17599 | if test "$no_create" != yes; then |
| 17600 | ac_cs_success=: |
| 17601 | ac_config_status_args= |
| 17602 | test "$silent" = yes && |
| 17603 | ac_config_status_args="$ac_config_status_args --quiet" |
| 17604 | exec 5>/dev/null |
| 17605 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 17606 | exec 5>>config.log |
| 17607 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 17608 | # would make configure fail if this is the last instruction. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 17609 | $ac_cs_success || as_fn_exit $? |
| 17610 | fi |
| 17611 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 17612 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 17613 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17614 | fi |
| 17615 | |