bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +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, |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, |
| 10 | # Inc. |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 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" |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 322 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 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 | |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 362 | # as_fn_error ERROR [LINENO LOG_FD] |
| 363 | # --------------------------------- |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 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 |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 366 | # script with status $?, using 1 if that was 0. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 367 | as_fn_error () |
| 368 | { |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 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 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 373 | fi |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 374 | $as_echo "$as_me: error: $1" >&2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 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. |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 685 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 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 | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 752 | DISABLE_PROCESSOR_FALSE |
| 753 | DISABLE_PROCESSOR_TRUE |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 754 | LINUX_HOST_FALSE |
| 755 | LINUX_HOST_TRUE |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 756 | PTHREAD_CFLAGS |
| 757 | PTHREAD_LIBS |
| 758 | PTHREAD_CC |
| 759 | ax_pthread_config |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 760 | LIBTOOL_DEPS |
| 761 | CXXCPP |
| 762 | OTOOL64 |
| 763 | OTOOL |
| 764 | LIPO |
| 765 | NMEDIT |
| 766 | DSYMUTIL |
| 767 | lt_ECHO |
| 768 | RANLIB |
| 769 | AR |
| 770 | OBJDUMP |
| 771 | LN_S |
| 772 | NM |
| 773 | ac_ct_DUMPBIN |
| 774 | DUMPBIN |
| 775 | LD |
| 776 | FGREP |
| 777 | EGREP |
| 778 | GREP |
| 779 | SED |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 780 | LIBTOOL |
| 781 | am__fastdepCXX_FALSE |
| 782 | am__fastdepCXX_TRUE |
| 783 | CXXDEPMODE |
| 784 | ac_ct_CXX |
| 785 | CXXFLAGS |
| 786 | CXX |
| 787 | CPP |
| 788 | am__fastdepCC_FALSE |
| 789 | am__fastdepCC_TRUE |
| 790 | CCDEPMODE |
| 791 | AMDEPBACKSLASH |
| 792 | AMDEP_FALSE |
| 793 | AMDEP_TRUE |
| 794 | am__quote |
| 795 | am__include |
| 796 | DEPDIR |
| 797 | OBJEXT |
| 798 | EXEEXT |
| 799 | ac_ct_CC |
| 800 | CPPFLAGS |
| 801 | LDFLAGS |
| 802 | CFLAGS |
| 803 | CC |
| 804 | am__untar |
| 805 | am__tar |
| 806 | AMTAR |
| 807 | am__leading_dot |
| 808 | SET_MAKE |
| 809 | AWK |
| 810 | mkdir_p |
| 811 | MKDIR_P |
| 812 | INSTALL_STRIP_PROGRAM |
| 813 | STRIP |
| 814 | install_sh |
| 815 | MAKEINFO |
| 816 | AUTOHEADER |
| 817 | AUTOMAKE |
| 818 | AUTOCONF |
| 819 | ACLOCAL |
| 820 | VERSION |
| 821 | PACKAGE |
| 822 | CYGPATH_W |
| 823 | am__isrc |
| 824 | INSTALL_DATA |
| 825 | INSTALL_SCRIPT |
| 826 | INSTALL_PROGRAM |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 827 | host_os |
| 828 | host_vendor |
| 829 | host_cpu |
| 830 | host |
| 831 | build_os |
| 832 | build_vendor |
| 833 | build_cpu |
| 834 | build |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 835 | target_alias |
| 836 | host_alias |
| 837 | build_alias |
| 838 | LIBS |
| 839 | ECHO_T |
| 840 | ECHO_N |
| 841 | ECHO_C |
| 842 | DEFS |
| 843 | mandir |
| 844 | localedir |
| 845 | libdir |
| 846 | psdir |
| 847 | pdfdir |
| 848 | dvidir |
| 849 | htmldir |
| 850 | infodir |
| 851 | docdir |
| 852 | oldincludedir |
| 853 | includedir |
| 854 | localstatedir |
| 855 | sharedstatedir |
| 856 | sysconfdir |
| 857 | datadir |
| 858 | datarootdir |
| 859 | libexecdir |
| 860 | sbindir |
| 861 | bindir |
| 862 | program_transform_name |
| 863 | prefix |
| 864 | exec_prefix |
| 865 | PACKAGE_URL |
| 866 | PACKAGE_BUGREPORT |
| 867 | PACKAGE_STRING |
| 868 | PACKAGE_VERSION |
| 869 | PACKAGE_TARNAME |
| 870 | PACKAGE_NAME |
| 871 | PATH_SEPARATOR |
| 872 | SHELL' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 873 | ac_subst_files='' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 874 | ac_user_opts=' |
| 875 | enable_option_checking |
| 876 | enable_dependency_tracking |
| 877 | enable_shared |
| 878 | enable_static |
| 879 | with_pic |
| 880 | enable_fast_install |
| 881 | with_gnu_ld |
| 882 | enable_libtool_lock |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 883 | enable_m32 |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 884 | enable_processor |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 885 | enable_selftest |
| 886 | ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 887 | ac_precious_vars='build_alias |
| 888 | host_alias |
| 889 | target_alias |
| 890 | CC |
| 891 | CFLAGS |
| 892 | LDFLAGS |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 893 | LIBS |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 894 | CPPFLAGS |
| 895 | CPP |
| 896 | CXX |
| 897 | CXXFLAGS |
| 898 | CCC |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 899 | CXXCPP' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 900 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 901 | |
| 902 | # Initialize some variables set by options. |
| 903 | ac_init_help= |
| 904 | ac_init_version=false |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 905 | ac_unrecognized_opts= |
| 906 | ac_unrecognized_sep= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 907 | # The variables have the same names as the options, with |
| 908 | # dashes changed to underlines. |
| 909 | cache_file=/dev/null |
| 910 | exec_prefix=NONE |
| 911 | no_create= |
| 912 | no_recursion= |
| 913 | prefix=NONE |
| 914 | program_prefix=NONE |
| 915 | program_suffix=NONE |
| 916 | program_transform_name=s,x,x, |
| 917 | silent= |
| 918 | site= |
| 919 | srcdir= |
| 920 | verbose= |
| 921 | x_includes=NONE |
| 922 | x_libraries=NONE |
| 923 | |
| 924 | # Installation directory options. |
| 925 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 926 | # and all the variables that are supposed to be based on exec_prefix |
| 927 | # by default will actually change. |
| 928 | # Use braces instead of parens because sh, perl, etc. also accept them. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 929 | # (The list follows the same order as the GNU Coding Standards.) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 930 | bindir='${exec_prefix}/bin' |
| 931 | sbindir='${exec_prefix}/sbin' |
| 932 | libexecdir='${exec_prefix}/libexec' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 933 | datarootdir='${prefix}/share' |
| 934 | datadir='${datarootdir}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 935 | sysconfdir='${prefix}/etc' |
| 936 | sharedstatedir='${prefix}/com' |
| 937 | localstatedir='${prefix}/var' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 938 | includedir='${prefix}/include' |
| 939 | oldincludedir='/usr/include' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 940 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 941 | infodir='${datarootdir}/info' |
| 942 | htmldir='${docdir}' |
| 943 | dvidir='${docdir}' |
| 944 | pdfdir='${docdir}' |
| 945 | psdir='${docdir}' |
| 946 | libdir='${exec_prefix}/lib' |
| 947 | localedir='${datarootdir}/locale' |
| 948 | mandir='${datarootdir}/man' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 949 | |
| 950 | ac_prev= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 951 | ac_dashdash= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 952 | for ac_option |
| 953 | do |
| 954 | # If the previous option needs an argument, assign it. |
| 955 | if test -n "$ac_prev"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 956 | eval $ac_prev=\$ac_option |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 957 | ac_prev= |
| 958 | continue |
| 959 | fi |
| 960 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 961 | case $ac_option in |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 962 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 963 | *) ac_optarg=yes ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 964 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 965 | |
| 966 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 967 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 968 | case $ac_dashdash$ac_option in |
| 969 | --) |
| 970 | ac_dashdash=yes ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 971 | |
| 972 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 973 | ac_prev=bindir ;; |
| 974 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 975 | bindir=$ac_optarg ;; |
| 976 | |
| 977 | -build | --build | --buil | --bui | --bu) |
| 978 | ac_prev=build_alias ;; |
| 979 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 980 | build_alias=$ac_optarg ;; |
| 981 | |
| 982 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 983 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 984 | ac_prev=cache_file ;; |
| 985 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 986 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 987 | cache_file=$ac_optarg ;; |
| 988 | |
| 989 | --config-cache | -C) |
| 990 | cache_file=config.cache ;; |
| 991 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 992 | -datadir | --datadir | --datadi | --datad) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 993 | ac_prev=datadir ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 994 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 995 | datadir=$ac_optarg ;; |
| 996 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 997 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 998 | | --dataroo | --dataro | --datar) |
| 999 | ac_prev=datarootdir ;; |
| 1000 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 1001 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 1002 | datarootdir=$ac_optarg ;; |
| 1003 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1004 | -disable-* | --disable-*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1005 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1006 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1007 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 1008 | as_fn_error "invalid feature name: $ac_useropt" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1009 | ac_useropt_orig=$ac_useropt |
| 1010 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1011 | case $ac_user_opts in |
| 1012 | *" |
| 1013 | "enable_$ac_useropt" |
| 1014 | "*) ;; |
| 1015 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 1016 | ac_unrecognized_sep=', ';; |
| 1017 | esac |
| 1018 | eval enable_$ac_useropt=no ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1019 | |
| 1020 | -docdir | --docdir | --docdi | --doc | --do) |
| 1021 | ac_prev=docdir ;; |
| 1022 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1023 | docdir=$ac_optarg ;; |
| 1024 | |
| 1025 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1026 | ac_prev=dvidir ;; |
| 1027 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1028 | dvidir=$ac_optarg ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1029 | |
| 1030 | -enable-* | --enable-*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1031 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1032 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1033 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 1034 | as_fn_error "invalid feature name: $ac_useropt" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1035 | ac_useropt_orig=$ac_useropt |
| 1036 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1037 | case $ac_user_opts in |
| 1038 | *" |
| 1039 | "enable_$ac_useropt" |
| 1040 | "*) ;; |
| 1041 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1042 | ac_unrecognized_sep=', ';; |
| 1043 | esac |
| 1044 | eval enable_$ac_useropt=\$ac_optarg ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1045 | |
| 1046 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1047 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1048 | | --exec | --exe | --ex) |
| 1049 | ac_prev=exec_prefix ;; |
| 1050 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1051 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1052 | | --exec=* | --exe=* | --ex=*) |
| 1053 | exec_prefix=$ac_optarg ;; |
| 1054 | |
| 1055 | -gas | --gas | --ga | --g) |
| 1056 | # Obsolete; use --with-gas. |
| 1057 | with_gas=yes ;; |
| 1058 | |
| 1059 | -help | --help | --hel | --he | -h) |
| 1060 | ac_init_help=long ;; |
| 1061 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1062 | ac_init_help=recursive ;; |
| 1063 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1064 | ac_init_help=short ;; |
| 1065 | |
| 1066 | -host | --host | --hos | --ho) |
| 1067 | ac_prev=host_alias ;; |
| 1068 | -host=* | --host=* | --hos=* | --ho=*) |
| 1069 | host_alias=$ac_optarg ;; |
| 1070 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1071 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1072 | ac_prev=htmldir ;; |
| 1073 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1074 | | --ht=*) |
| 1075 | htmldir=$ac_optarg ;; |
| 1076 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1077 | -includedir | --includedir | --includedi | --included | --include \ |
| 1078 | | --includ | --inclu | --incl | --inc) |
| 1079 | ac_prev=includedir ;; |
| 1080 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1081 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1082 | includedir=$ac_optarg ;; |
| 1083 | |
| 1084 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1085 | ac_prev=infodir ;; |
| 1086 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1087 | infodir=$ac_optarg ;; |
| 1088 | |
| 1089 | -libdir | --libdir | --libdi | --libd) |
| 1090 | ac_prev=libdir ;; |
| 1091 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1092 | libdir=$ac_optarg ;; |
| 1093 | |
| 1094 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1095 | | --libexe | --libex | --libe) |
| 1096 | ac_prev=libexecdir ;; |
| 1097 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1098 | | --libexe=* | --libex=* | --libe=*) |
| 1099 | libexecdir=$ac_optarg ;; |
| 1100 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1101 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1102 | ac_prev=localedir ;; |
| 1103 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1104 | localedir=$ac_optarg ;; |
| 1105 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 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 | ac_prev=localstatedir ;; |
| 1109 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1110 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1111 | localstatedir=$ac_optarg ;; |
| 1112 | |
| 1113 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1114 | ac_prev=mandir ;; |
| 1115 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1116 | mandir=$ac_optarg ;; |
| 1117 | |
| 1118 | -nfp | --nfp | --nf) |
| 1119 | # Obsolete; use --without-fp. |
| 1120 | with_fp=no ;; |
| 1121 | |
| 1122 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1123 | | --no-cr | --no-c | -n) |
| 1124 | no_create=yes ;; |
| 1125 | |
| 1126 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1127 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1128 | no_recursion=yes ;; |
| 1129 | |
| 1130 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1131 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1132 | | --oldin | --oldi | --old | --ol | --o) |
| 1133 | ac_prev=oldincludedir ;; |
| 1134 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1135 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1136 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1137 | oldincludedir=$ac_optarg ;; |
| 1138 | |
| 1139 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1140 | ac_prev=prefix ;; |
| 1141 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1142 | prefix=$ac_optarg ;; |
| 1143 | |
| 1144 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1145 | | --program-pre | --program-pr | --program-p) |
| 1146 | ac_prev=program_prefix ;; |
| 1147 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1148 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1149 | program_prefix=$ac_optarg ;; |
| 1150 | |
| 1151 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1152 | | --program-suf | --program-su | --program-s) |
| 1153 | ac_prev=program_suffix ;; |
| 1154 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1155 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1156 | program_suffix=$ac_optarg ;; |
| 1157 | |
| 1158 | -program-transform-name | --program-transform-name \ |
| 1159 | | --program-transform-nam | --program-transform-na \ |
| 1160 | | --program-transform-n | --program-transform- \ |
| 1161 | | --program-transform | --program-transfor \ |
| 1162 | | --program-transfo | --program-transf \ |
| 1163 | | --program-trans | --program-tran \ |
| 1164 | | --progr-tra | --program-tr | --program-t) |
| 1165 | ac_prev=program_transform_name ;; |
| 1166 | -program-transform-name=* | --program-transform-name=* \ |
| 1167 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1168 | | --program-transform-n=* | --program-transform-=* \ |
| 1169 | | --program-transform=* | --program-transfor=* \ |
| 1170 | | --program-transfo=* | --program-transf=* \ |
| 1171 | | --program-trans=* | --program-tran=* \ |
| 1172 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1173 | program_transform_name=$ac_optarg ;; |
| 1174 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1175 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1176 | ac_prev=pdfdir ;; |
| 1177 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1178 | pdfdir=$ac_optarg ;; |
| 1179 | |
| 1180 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1181 | ac_prev=psdir ;; |
| 1182 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1183 | psdir=$ac_optarg ;; |
| 1184 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1185 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1186 | | -silent | --silent | --silen | --sile | --sil) |
| 1187 | silent=yes ;; |
| 1188 | |
| 1189 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1190 | ac_prev=sbindir ;; |
| 1191 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1192 | | --sbi=* | --sb=*) |
| 1193 | sbindir=$ac_optarg ;; |
| 1194 | |
| 1195 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1196 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1197 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1198 | | --sha | --sh) |
| 1199 | ac_prev=sharedstatedir ;; |
| 1200 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1201 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1202 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1203 | | --sha=* | --sh=*) |
| 1204 | sharedstatedir=$ac_optarg ;; |
| 1205 | |
| 1206 | -site | --site | --sit) |
| 1207 | ac_prev=site ;; |
| 1208 | -site=* | --site=* | --sit=*) |
| 1209 | site=$ac_optarg ;; |
| 1210 | |
| 1211 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1212 | ac_prev=srcdir ;; |
| 1213 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1214 | srcdir=$ac_optarg ;; |
| 1215 | |
| 1216 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1217 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1218 | ac_prev=sysconfdir ;; |
| 1219 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1220 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1221 | sysconfdir=$ac_optarg ;; |
| 1222 | |
| 1223 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1224 | ac_prev=target_alias ;; |
| 1225 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1226 | target_alias=$ac_optarg ;; |
| 1227 | |
| 1228 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1229 | verbose=yes ;; |
| 1230 | |
| 1231 | -version | --version | --versio | --versi | --vers | -V) |
| 1232 | ac_init_version=: ;; |
| 1233 | |
| 1234 | -with-* | --with-*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1235 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1236 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1237 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 1238 | as_fn_error "invalid package name: $ac_useropt" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1239 | ac_useropt_orig=$ac_useropt |
| 1240 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1241 | case $ac_user_opts in |
| 1242 | *" |
| 1243 | "with_$ac_useropt" |
| 1244 | "*) ;; |
| 1245 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1246 | ac_unrecognized_sep=', ';; |
| 1247 | esac |
| 1248 | eval with_$ac_useropt=\$ac_optarg ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1249 | |
| 1250 | -without-* | --without-*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1251 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1252 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1253 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 1254 | as_fn_error "invalid package name: $ac_useropt" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1255 | ac_useropt_orig=$ac_useropt |
| 1256 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1257 | case $ac_user_opts in |
| 1258 | *" |
| 1259 | "with_$ac_useropt" |
| 1260 | "*) ;; |
| 1261 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1262 | ac_unrecognized_sep=', ';; |
| 1263 | esac |
| 1264 | eval with_$ac_useropt=no ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1265 | |
| 1266 | --x) |
| 1267 | # Obsolete; use --with-x. |
| 1268 | with_x=yes ;; |
| 1269 | |
| 1270 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1271 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1272 | ac_prev=x_includes ;; |
| 1273 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1274 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1275 | x_includes=$ac_optarg ;; |
| 1276 | |
| 1277 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1278 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1279 | ac_prev=x_libraries ;; |
| 1280 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1281 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1282 | x_libraries=$ac_optarg ;; |
| 1283 | |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 1284 | -*) as_fn_error "unrecognized option: \`$ac_option' |
| 1285 | Try \`$0 --help' for more information." |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1286 | ;; |
| 1287 | |
| 1288 | *=*) |
| 1289 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1290 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1291 | case $ac_envvar in #( |
| 1292 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 1293 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1294 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1295 | eval $ac_envvar=\$ac_optarg |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1296 | export $ac_envvar ;; |
| 1297 | |
| 1298 | *) |
| 1299 | # FIXME: should be removed in autoconf 3.0. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1300 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1301 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1302 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1303 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1304 | ;; |
| 1305 | |
| 1306 | esac |
| 1307 | done |
| 1308 | |
| 1309 | if test -n "$ac_prev"; then |
| 1310 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 1311 | as_fn_error "missing argument to $ac_option" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1312 | fi |
| 1313 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1314 | if test -n "$ac_unrecognized_opts"; then |
| 1315 | case $enable_option_checking in |
| 1316 | no) ;; |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 1317 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1318 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1319 | esac |
| 1320 | fi |
| 1321 | |
| 1322 | # Check all directory arguments for consistency. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1323 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1324 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1325 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1326 | libdir localedir mandir |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1327 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1328 | eval ac_val=\$$ac_var |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1329 | # Remove trailing slashes. |
| 1330 | case $ac_val in |
| 1331 | */ ) |
| 1332 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1333 | eval $ac_var=\$ac_val;; |
| 1334 | esac |
| 1335 | # Be sure to have absolute directory names. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1336 | case $ac_val in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1337 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1338 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1339 | esac |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 1340 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1341 | done |
| 1342 | |
| 1343 | # There might be people who depend on the old broken behavior: `$host' |
| 1344 | # used to hold the argument of --host etc. |
| 1345 | # FIXME: To remove some day. |
| 1346 | build=$build_alias |
| 1347 | host=$host_alias |
| 1348 | target=$target_alias |
| 1349 | |
| 1350 | # FIXME: To remove some day. |
| 1351 | if test "x$host_alias" != x; then |
| 1352 | if test "x$build_alias" = x; then |
| 1353 | cross_compiling=maybe |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 1354 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1355 | If a cross compiler is detected then cross compile mode will be used." >&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1356 | elif test "x$build_alias" != "x$host_alias"; then |
| 1357 | cross_compiling=yes |
| 1358 | fi |
| 1359 | fi |
| 1360 | |
| 1361 | ac_tool_prefix= |
| 1362 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1363 | |
| 1364 | test "$silent" = yes && exec 6>/dev/null |
| 1365 | |
| 1366 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1367 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1368 | ac_ls_di=`ls -di .` && |
| 1369 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 1370 | as_fn_error "working directory cannot be determined" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1371 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 1372 | as_fn_error "pwd does not report name of working directory" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1373 | |
| 1374 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1375 | # Find the source files, if location was not specified. |
| 1376 | if test -z "$srcdir"; then |
| 1377 | ac_srcdir_defaulted=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1378 | # Try the directory containing this script, then the parent directory. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1379 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1380 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1381 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1382 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1383 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1384 | $as_echo X"$as_myself" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1385 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1386 | s//\1/ |
| 1387 | q |
| 1388 | } |
| 1389 | /^X\(\/\/\)[^/].*/{ |
| 1390 | s//\1/ |
| 1391 | q |
| 1392 | } |
| 1393 | /^X\(\/\/\)$/{ |
| 1394 | s//\1/ |
| 1395 | q |
| 1396 | } |
| 1397 | /^X\(\/\).*/{ |
| 1398 | s//\1/ |
| 1399 | q |
| 1400 | } |
| 1401 | s/.*/./; q'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1402 | srcdir=$ac_confdir |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1403 | if test ! -r "$srcdir/$ac_unique_file"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1404 | srcdir=.. |
| 1405 | fi |
| 1406 | else |
| 1407 | ac_srcdir_defaulted=no |
| 1408 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1409 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1410 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 1411 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1412 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1413 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1414 | ac_abs_confdir=`( |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 1415 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1416 | pwd)` |
| 1417 | # When building in place, set srcdir=. |
| 1418 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1419 | srcdir=. |
| 1420 | fi |
| 1421 | # Remove unnecessary trailing slashes from srcdir. |
| 1422 | # Double slashes in file names in object file debugging info |
| 1423 | # mess up M-x gdb in Emacs. |
| 1424 | case $srcdir in |
| 1425 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1426 | esac |
| 1427 | for ac_var in $ac_precious_vars; do |
| 1428 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1429 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1430 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1431 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1432 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1433 | |
| 1434 | # |
| 1435 | # Report the --help message. |
| 1436 | # |
| 1437 | if test "$ac_init_help" = "long"; then |
| 1438 | # Omit some internal or obsolete options to make the list less imposing. |
| 1439 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1440 | cat <<_ACEOF |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 1441 | \`configure' configures breakpad 0.1 to adapt to many kinds of systems. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1442 | |
| 1443 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1444 | |
| 1445 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1446 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1447 | |
| 1448 | Defaults for the options are specified in brackets. |
| 1449 | |
| 1450 | Configuration: |
| 1451 | -h, --help display this help and exit |
| 1452 | --help=short display options specific to this package |
| 1453 | --help=recursive display the short help of all the included packages |
| 1454 | -V, --version display version information and exit |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 1455 | -q, --quiet, --silent do not print \`checking...' messages |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1456 | --cache-file=FILE cache test results in FILE [disabled] |
| 1457 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1458 | -n, --no-create do not create output files |
| 1459 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1460 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1461 | Installation directories: |
| 1462 | --prefix=PREFIX install architecture-independent files in PREFIX |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1463 | [$ac_default_prefix] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1464 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1465 | [PREFIX] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1466 | |
| 1467 | By default, \`make install' will install all the files in |
| 1468 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1469 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1470 | for instance \`--prefix=\$HOME'. |
| 1471 | |
| 1472 | For better control, use the options below. |
| 1473 | |
| 1474 | Fine tuning of the installation directories: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1475 | --bindir=DIR user executables [EPREFIX/bin] |
| 1476 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1477 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1478 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1479 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1480 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1481 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1482 | --includedir=DIR C header files [PREFIX/include] |
| 1483 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1484 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1485 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1486 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1487 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1488 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1489 | --docdir=DIR documentation root [DATAROOTDIR/doc/breakpad] |
| 1490 | --htmldir=DIR html documentation [DOCDIR] |
| 1491 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1492 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1493 | --psdir=DIR ps documentation [DOCDIR] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1494 | _ACEOF |
| 1495 | |
| 1496 | cat <<\_ACEOF |
| 1497 | |
| 1498 | Program names: |
| 1499 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1500 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1501 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1502 | |
| 1503 | System types: |
| 1504 | --build=BUILD configure for building on BUILD [guessed] |
| 1505 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1506 | _ACEOF |
| 1507 | fi |
| 1508 | |
| 1509 | if test -n "$ac_init_help"; then |
| 1510 | case $ac_init_help in |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 1511 | short | recursive ) echo "Configuration of breakpad 0.1:";; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1512 | esac |
| 1513 | cat <<\_ACEOF |
| 1514 | |
| 1515 | Optional Features: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1516 | --disable-option-checking ignore unrecognized --enable/--with options |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1517 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1518 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1519 | --disable-dependency-tracking speeds up one-time build |
| 1520 | --enable-dependency-tracking do not reject slow dependency extractors |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1521 | --enable-shared[=PKGS] build shared libraries [default=yes] |
| 1522 | --enable-static[=PKGS] build static libraries [default=yes] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1523 | --enable-fast-install[=PKGS] |
| 1524 | optimize for fast installation [default=yes] |
| 1525 | --disable-libtool-lock avoid locking (might break parallel builds) |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 1526 | --enable-m32 Compile/build with -m32 (default is no) |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 1527 | --disable-processor Don't build processor library (default is no) |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 1528 | --enable-selftest Run extra tests with "make check" (may conflict with |
| 1529 | optimizations) (default is no) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1530 | |
| 1531 | Optional Packages: |
| 1532 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1533 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1534 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1535 | both] |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1536 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1537 | |
| 1538 | Some influential environment variables: |
| 1539 | CC C compiler command |
| 1540 | CFLAGS C compiler flags |
| 1541 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1542 | nonstandard directory <lib dir> |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 1543 | LIBS libraries to pass to the linker, e.g. -l<library> |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 1544 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1545 | you have headers in a nonstandard directory <include dir> |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1546 | CPP C preprocessor |
| 1547 | CXX C++ compiler command |
| 1548 | CXXFLAGS C++ compiler flags |
| 1549 | CXXCPP C++ preprocessor |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1550 | |
| 1551 | Use these variables to override the choices made by `configure' or to help |
| 1552 | it to find libraries and programs with nonstandard names/locations. |
| 1553 | |
| 1554 | Report bugs to <opensource@google.com>. |
| 1555 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1556 | ac_status=$? |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1557 | fi |
| 1558 | |
| 1559 | if test "$ac_init_help" = "recursive"; then |
| 1560 | # If there are subdirs, report their specific --help. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1561 | 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] | 1562 | test -d "$ac_dir" || |
| 1563 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1564 | continue |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1565 | ac_builddir=. |
| 1566 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1567 | case "$ac_dir" in |
| 1568 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1569 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1570 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1571 | # A ".." for each directory in $ac_dir_suffix. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1572 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1573 | case $ac_top_builddir_sub in |
| 1574 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1575 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1576 | esac ;; |
| 1577 | esac |
| 1578 | ac_abs_top_builddir=$ac_pwd |
| 1579 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1580 | # for backward compatibility: |
| 1581 | ac_top_builddir=$ac_top_build_prefix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1582 | |
| 1583 | case $srcdir in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1584 | .) # We are building in place. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1585 | ac_srcdir=. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1586 | ac_top_srcdir=$ac_top_builddir_sub |
| 1587 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1588 | [\\/]* | ?:[\\/]* ) # Absolute name. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1589 | ac_srcdir=$srcdir$ac_dir_suffix; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1590 | ac_top_srcdir=$srcdir |
| 1591 | ac_abs_top_srcdir=$srcdir ;; |
| 1592 | *) # Relative name. |
| 1593 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1594 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1595 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1596 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1597 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1598 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1599 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1600 | # Check for guested configure. |
| 1601 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1602 | echo && |
| 1603 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1604 | elif test -f "$ac_srcdir/configure"; then |
| 1605 | echo && |
| 1606 | $SHELL "$ac_srcdir/configure" --help=recursive |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1607 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1608 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1609 | fi || ac_status=$? |
| 1610 | cd "$ac_pwd" || { ac_status=$?; break; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1611 | done |
| 1612 | fi |
| 1613 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1614 | test -n "$ac_init_help" && exit $ac_status |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1615 | if $ac_init_version; then |
| 1616 | cat <<\_ACEOF |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 1617 | breakpad configure 0.1 |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 1618 | generated by GNU Autoconf 2.65 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1619 | |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 1620 | Copyright (C) 2009 Free Software Foundation, Inc. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1621 | This configure script is free software; the Free Software Foundation |
| 1622 | gives unlimited permission to copy, distribute and modify it. |
| 1623 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1624 | exit |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1625 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1626 | |
| 1627 | ## ------------------------ ## |
| 1628 | ## Autoconf initialization. ## |
| 1629 | ## ------------------------ ## |
| 1630 | |
| 1631 | # ac_fn_c_try_compile LINENO |
| 1632 | # -------------------------- |
| 1633 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1634 | ac_fn_c_try_compile () |
| 1635 | { |
| 1636 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1637 | rm -f conftest.$ac_objext |
| 1638 | if { { ac_try="$ac_compile" |
| 1639 | case "(($ac_try" in |
| 1640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1641 | *) ac_try_echo=$ac_try;; |
| 1642 | esac |
| 1643 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1644 | $as_echo "$ac_try_echo"; } >&5 |
| 1645 | (eval "$ac_compile") 2>conftest.err |
| 1646 | ac_status=$? |
| 1647 | if test -s conftest.err; then |
| 1648 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1649 | cat conftest.er1 >&5 |
| 1650 | mv -f conftest.er1 conftest.err |
| 1651 | fi |
| 1652 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1653 | test $ac_status = 0; } && { |
| 1654 | test -z "$ac_c_werror_flag" || |
| 1655 | test ! -s conftest.err |
| 1656 | } && test -s conftest.$ac_objext; then : |
| 1657 | ac_retval=0 |
| 1658 | else |
| 1659 | $as_echo "$as_me: failed program was:" >&5 |
| 1660 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1661 | |
| 1662 | ac_retval=1 |
| 1663 | fi |
| 1664 | 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] | 1665 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1666 | |
| 1667 | } # ac_fn_c_try_compile |
| 1668 | |
| 1669 | # ac_fn_c_try_cpp LINENO |
| 1670 | # ---------------------- |
| 1671 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1672 | ac_fn_c_try_cpp () |
| 1673 | { |
| 1674 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1675 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1676 | case "(($ac_try" in |
| 1677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1678 | *) ac_try_echo=$ac_try;; |
| 1679 | esac |
| 1680 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1681 | $as_echo "$ac_try_echo"; } >&5 |
| 1682 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1683 | ac_status=$? |
| 1684 | if test -s conftest.err; then |
| 1685 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1686 | cat conftest.er1 >&5 |
| 1687 | mv -f conftest.er1 conftest.err |
| 1688 | fi |
| 1689 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 1690 | test $ac_status = 0; } >/dev/null && { |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1691 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1692 | test ! -s conftest.err |
| 1693 | }; then : |
| 1694 | ac_retval=0 |
| 1695 | else |
| 1696 | $as_echo "$as_me: failed program was:" >&5 |
| 1697 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1698 | |
| 1699 | ac_retval=1 |
| 1700 | fi |
| 1701 | 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] | 1702 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1703 | |
| 1704 | } # ac_fn_c_try_cpp |
| 1705 | |
| 1706 | # ac_fn_cxx_try_compile LINENO |
| 1707 | # ---------------------------- |
| 1708 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1709 | ac_fn_cxx_try_compile () |
| 1710 | { |
| 1711 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1712 | rm -f conftest.$ac_objext |
| 1713 | if { { ac_try="$ac_compile" |
| 1714 | case "(($ac_try" in |
| 1715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1716 | *) ac_try_echo=$ac_try;; |
| 1717 | esac |
| 1718 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1719 | $as_echo "$ac_try_echo"; } >&5 |
| 1720 | (eval "$ac_compile") 2>conftest.err |
| 1721 | ac_status=$? |
| 1722 | if test -s conftest.err; then |
| 1723 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1724 | cat conftest.er1 >&5 |
| 1725 | mv -f conftest.er1 conftest.err |
| 1726 | fi |
| 1727 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1728 | test $ac_status = 0; } && { |
| 1729 | test -z "$ac_cxx_werror_flag" || |
| 1730 | test ! -s conftest.err |
| 1731 | } && test -s conftest.$ac_objext; then : |
| 1732 | ac_retval=0 |
| 1733 | else |
| 1734 | $as_echo "$as_me: failed program was:" >&5 |
| 1735 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1736 | |
| 1737 | ac_retval=1 |
| 1738 | fi |
| 1739 | 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] | 1740 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1741 | |
| 1742 | } # ac_fn_cxx_try_compile |
| 1743 | |
| 1744 | # ac_fn_c_try_link LINENO |
| 1745 | # ----------------------- |
| 1746 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1747 | ac_fn_c_try_link () |
| 1748 | { |
| 1749 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1750 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1751 | if { { ac_try="$ac_link" |
| 1752 | case "(($ac_try" in |
| 1753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1754 | *) ac_try_echo=$ac_try;; |
| 1755 | esac |
| 1756 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1757 | $as_echo "$ac_try_echo"; } >&5 |
| 1758 | (eval "$ac_link") 2>conftest.err |
| 1759 | ac_status=$? |
| 1760 | if test -s conftest.err; then |
| 1761 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1762 | cat conftest.er1 >&5 |
| 1763 | mv -f conftest.er1 conftest.err |
| 1764 | fi |
| 1765 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1766 | test $ac_status = 0; } && { |
| 1767 | test -z "$ac_c_werror_flag" || |
| 1768 | test ! -s conftest.err |
| 1769 | } && test -s conftest$ac_exeext && { |
| 1770 | test "$cross_compiling" = yes || |
| 1771 | $as_test_x conftest$ac_exeext |
| 1772 | }; then : |
| 1773 | ac_retval=0 |
| 1774 | else |
| 1775 | $as_echo "$as_me: failed program was:" >&5 |
| 1776 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1777 | |
| 1778 | ac_retval=1 |
| 1779 | fi |
| 1780 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1781 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1782 | # interfere with the next link command; also delete a directory that is |
| 1783 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1784 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1785 | 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] | 1786 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1787 | |
| 1788 | } # ac_fn_c_try_link |
| 1789 | |
| 1790 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1791 | # ------------------------------------------------------- |
| 1792 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1793 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1794 | ac_fn_c_check_header_compile () |
| 1795 | { |
| 1796 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1798 | $as_echo_n "checking for $2... " >&6; } |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 1799 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1800 | $as_echo_n "(cached) " >&6 |
| 1801 | else |
| 1802 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1803 | /* end confdefs.h. */ |
| 1804 | $4 |
| 1805 | #include <$2> |
| 1806 | _ACEOF |
| 1807 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1808 | eval "$3=yes" |
| 1809 | else |
| 1810 | eval "$3=no" |
| 1811 | fi |
| 1812 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1813 | fi |
| 1814 | eval ac_res=\$$3 |
| 1815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1816 | $as_echo "$ac_res" >&6; } |
| 1817 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1818 | |
| 1819 | } # ac_fn_c_check_header_compile |
| 1820 | |
| 1821 | # ac_fn_c_try_run LINENO |
| 1822 | # ---------------------- |
| 1823 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1824 | # that executables *can* be run. |
| 1825 | ac_fn_c_try_run () |
| 1826 | { |
| 1827 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1828 | if { { ac_try="$ac_link" |
| 1829 | case "(($ac_try" in |
| 1830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1831 | *) ac_try_echo=$ac_try;; |
| 1832 | esac |
| 1833 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1834 | $as_echo "$ac_try_echo"; } >&5 |
| 1835 | (eval "$ac_link") 2>&5 |
| 1836 | ac_status=$? |
| 1837 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1838 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1839 | { { case "(($ac_try" in |
| 1840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1841 | *) ac_try_echo=$ac_try;; |
| 1842 | esac |
| 1843 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1844 | $as_echo "$ac_try_echo"; } >&5 |
| 1845 | (eval "$ac_try") 2>&5 |
| 1846 | ac_status=$? |
| 1847 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1848 | test $ac_status = 0; }; }; then : |
| 1849 | ac_retval=0 |
| 1850 | else |
| 1851 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1852 | $as_echo "$as_me: failed program was:" >&5 |
| 1853 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1854 | |
| 1855 | ac_retval=$ac_status |
| 1856 | fi |
| 1857 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1858 | 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] | 1859 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1860 | |
| 1861 | } # ac_fn_c_try_run |
| 1862 | |
| 1863 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1864 | # ---------------------------------- |
| 1865 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1866 | ac_fn_c_check_func () |
| 1867 | { |
| 1868 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1870 | $as_echo_n "checking for $2... " >&6; } |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 1871 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1872 | $as_echo_n "(cached) " >&6 |
| 1873 | else |
| 1874 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1875 | /* end confdefs.h. */ |
| 1876 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1877 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1878 | #define $2 innocuous_$2 |
| 1879 | |
| 1880 | /* System header to define __stub macros and hopefully few prototypes, |
| 1881 | which can conflict with char $2 (); below. |
| 1882 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1883 | <limits.h> exists even on freestanding compilers. */ |
| 1884 | |
| 1885 | #ifdef __STDC__ |
| 1886 | # include <limits.h> |
| 1887 | #else |
| 1888 | # include <assert.h> |
| 1889 | #endif |
| 1890 | |
| 1891 | #undef $2 |
| 1892 | |
| 1893 | /* Override any GCC internal prototype to avoid an error. |
| 1894 | Use char because int might match the return type of a GCC |
| 1895 | builtin and then its argument prototype would still apply. */ |
| 1896 | #ifdef __cplusplus |
| 1897 | extern "C" |
| 1898 | #endif |
| 1899 | char $2 (); |
| 1900 | /* The GNU C library defines this for functions which it implements |
| 1901 | to always fail with ENOSYS. Some functions are actually named |
| 1902 | something starting with __ and the normal name is an alias. */ |
| 1903 | #if defined __stub_$2 || defined __stub___$2 |
| 1904 | choke me |
| 1905 | #endif |
| 1906 | |
| 1907 | int |
| 1908 | main () |
| 1909 | { |
| 1910 | return $2 (); |
| 1911 | ; |
| 1912 | return 0; |
| 1913 | } |
| 1914 | _ACEOF |
| 1915 | if ac_fn_c_try_link "$LINENO"; then : |
| 1916 | eval "$3=yes" |
| 1917 | else |
| 1918 | eval "$3=no" |
| 1919 | fi |
| 1920 | rm -f core conftest.err conftest.$ac_objext \ |
| 1921 | conftest$ac_exeext conftest.$ac_ext |
| 1922 | fi |
| 1923 | eval ac_res=\$$3 |
| 1924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1925 | $as_echo "$ac_res" >&6; } |
| 1926 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1927 | |
| 1928 | } # ac_fn_c_check_func |
| 1929 | |
| 1930 | # ac_fn_cxx_try_cpp LINENO |
| 1931 | # ------------------------ |
| 1932 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1933 | ac_fn_cxx_try_cpp () |
| 1934 | { |
| 1935 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1936 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1937 | case "(($ac_try" in |
| 1938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1939 | *) ac_try_echo=$ac_try;; |
| 1940 | esac |
| 1941 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1942 | $as_echo "$ac_try_echo"; } >&5 |
| 1943 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1944 | ac_status=$? |
| 1945 | if test -s conftest.err; then |
| 1946 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1947 | cat conftest.er1 >&5 |
| 1948 | mv -f conftest.er1 conftest.err |
| 1949 | fi |
| 1950 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 1951 | test $ac_status = 0; } >/dev/null && { |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1952 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 1953 | test ! -s conftest.err |
| 1954 | }; then : |
| 1955 | ac_retval=0 |
| 1956 | else |
| 1957 | $as_echo "$as_me: failed program was:" >&5 |
| 1958 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1959 | |
| 1960 | ac_retval=1 |
| 1961 | fi |
| 1962 | 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] | 1963 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1964 | |
| 1965 | } # ac_fn_cxx_try_cpp |
| 1966 | |
| 1967 | # ac_fn_cxx_try_link LINENO |
| 1968 | # ------------------------- |
| 1969 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1970 | ac_fn_cxx_try_link () |
| 1971 | { |
| 1972 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1973 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1974 | if { { ac_try="$ac_link" |
| 1975 | case "(($ac_try" in |
| 1976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1977 | *) ac_try_echo=$ac_try;; |
| 1978 | esac |
| 1979 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1980 | $as_echo "$ac_try_echo"; } >&5 |
| 1981 | (eval "$ac_link") 2>conftest.err |
| 1982 | ac_status=$? |
| 1983 | if test -s conftest.err; then |
| 1984 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1985 | cat conftest.er1 >&5 |
| 1986 | mv -f conftest.er1 conftest.err |
| 1987 | fi |
| 1988 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1989 | test $ac_status = 0; } && { |
| 1990 | test -z "$ac_cxx_werror_flag" || |
| 1991 | test ! -s conftest.err |
| 1992 | } && test -s conftest$ac_exeext && { |
| 1993 | test "$cross_compiling" = yes || |
| 1994 | $as_test_x conftest$ac_exeext |
| 1995 | }; then : |
| 1996 | ac_retval=0 |
| 1997 | else |
| 1998 | $as_echo "$as_me: failed program was:" >&5 |
| 1999 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2000 | |
| 2001 | ac_retval=1 |
| 2002 | fi |
| 2003 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 2004 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 2005 | # interfere with the next link command; also delete a directory that is |
| 2006 | # left behind by Apple's compiler. We do this before executing the actions. |
| 2007 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 2008 | 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] | 2009 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2010 | |
| 2011 | } # ac_fn_cxx_try_link |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 2012 | |
| 2013 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2014 | # ---------------------------------------------------- |
| 2015 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 2016 | # INCLUDES, setting cache variable VAR accordingly. |
| 2017 | ac_fn_c_check_member () |
| 2018 | { |
| 2019 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2021 | $as_echo_n "checking for $2.$3... " >&6; } |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 2022 | if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 2023 | $as_echo_n "(cached) " >&6 |
| 2024 | else |
| 2025 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2026 | /* end confdefs.h. */ |
| 2027 | $5 |
| 2028 | int |
| 2029 | main () |
| 2030 | { |
| 2031 | static $2 ac_aggr; |
| 2032 | if (ac_aggr.$3) |
| 2033 | return 0; |
| 2034 | ; |
| 2035 | return 0; |
| 2036 | } |
| 2037 | _ACEOF |
| 2038 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2039 | eval "$4=yes" |
| 2040 | else |
| 2041 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2042 | /* end confdefs.h. */ |
| 2043 | $5 |
| 2044 | int |
| 2045 | main () |
| 2046 | { |
| 2047 | static $2 ac_aggr; |
| 2048 | if (sizeof ac_aggr.$3) |
| 2049 | return 0; |
| 2050 | ; |
| 2051 | return 0; |
| 2052 | } |
| 2053 | _ACEOF |
| 2054 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2055 | eval "$4=yes" |
| 2056 | else |
| 2057 | eval "$4=no" |
| 2058 | fi |
| 2059 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2060 | fi |
| 2061 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2062 | fi |
| 2063 | eval ac_res=\$$4 |
| 2064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2065 | $as_echo "$ac_res" >&6; } |
| 2066 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2067 | |
| 2068 | } # ac_fn_c_check_member |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2069 | cat >config.log <<_ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2070 | This file contains any messages produced by compilers while |
| 2071 | running configure, to aid debugging if configure makes a mistake. |
| 2072 | |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 2073 | It was created by breakpad $as_me 0.1, which was |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 2074 | generated by GNU Autoconf 2.65. Invocation command line was |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2075 | |
| 2076 | $ $0 $@ |
| 2077 | |
| 2078 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2079 | exec 5>>config.log |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2080 | { |
| 2081 | cat <<_ASUNAME |
| 2082 | ## --------- ## |
| 2083 | ## Platform. ## |
| 2084 | ## --------- ## |
| 2085 | |
| 2086 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2087 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2088 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2089 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2090 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2091 | |
| 2092 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2093 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2094 | |
| 2095 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2096 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2097 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2098 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2099 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2100 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2101 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2102 | |
| 2103 | _ASUNAME |
| 2104 | |
| 2105 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2106 | for as_dir in $PATH |
| 2107 | do |
| 2108 | IFS=$as_save_IFS |
| 2109 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2110 | $as_echo "PATH: $as_dir" |
| 2111 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2112 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2113 | |
| 2114 | } >&5 |
| 2115 | |
| 2116 | cat >&5 <<_ACEOF |
| 2117 | |
| 2118 | |
| 2119 | ## ----------- ## |
| 2120 | ## Core tests. ## |
| 2121 | ## ----------- ## |
| 2122 | |
| 2123 | _ACEOF |
| 2124 | |
| 2125 | |
| 2126 | # Keep a trace of the command line. |
| 2127 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 2128 | # Strip out --silent because we don't want to record it for future runs. |
| 2129 | # Also quote any args containing shell meta-characters. |
| 2130 | # Make two passes to allow for proper duplicate-argument suppression. |
| 2131 | ac_configure_args= |
| 2132 | ac_configure_args0= |
| 2133 | ac_configure_args1= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2134 | ac_must_keep_next=false |
| 2135 | for ac_pass in 1 2 |
| 2136 | do |
| 2137 | for ac_arg |
| 2138 | do |
| 2139 | case $ac_arg in |
| 2140 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2141 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2142 | | -silent | --silent | --silen | --sile | --sil) |
| 2143 | continue ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2144 | *\'*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2145 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2146 | esac |
| 2147 | case $ac_pass in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2148 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2149 | 2) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2150 | as_fn_append ac_configure_args1 " '$ac_arg'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2151 | if test $ac_must_keep_next = true; then |
| 2152 | ac_must_keep_next=false # Got value, back to normal. |
| 2153 | else |
| 2154 | case $ac_arg in |
| 2155 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2156 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2157 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2158 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2159 | case "$ac_configure_args0 " in |
| 2160 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2161 | esac |
| 2162 | ;; |
| 2163 | -* ) ac_must_keep_next=true ;; |
| 2164 | esac |
| 2165 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2166 | as_fn_append ac_configure_args " '$ac_arg'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2167 | ;; |
| 2168 | esac |
| 2169 | done |
| 2170 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2171 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2172 | { ac_configure_args1=; unset ac_configure_args1;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2173 | |
| 2174 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2175 | # config.log. We remove comments because anyway the quotes in there |
| 2176 | # would cause problems or look ugly. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2177 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2178 | # 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] | 2179 | trap 'exit_status=$? |
| 2180 | # Save into config.log some information that might help in debugging. |
| 2181 | { |
| 2182 | echo |
| 2183 | |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 2184 | cat <<\_ASBOX |
| 2185 | ## ---------------- ## |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2186 | ## Cache variables. ## |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 2187 | ## ---------------- ## |
| 2188 | _ASBOX |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2189 | echo |
| 2190 | # The following way of writing the cache mishandles newlines in values, |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2191 | ( |
| 2192 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2193 | eval ac_val=\$$ac_var |
| 2194 | case $ac_val in #( |
| 2195 | *${as_nl}*) |
| 2196 | case $ac_var in #( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2197 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2198 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2199 | esac |
| 2200 | case $ac_var in #( |
| 2201 | _ | IFS | as_nl) ;; #( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2202 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2203 | *) { eval $ac_var=; unset $ac_var;} ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2204 | esac ;; |
| 2205 | esac |
| 2206 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2207 | (set) 2>&1 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2208 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2209 | *${as_nl}ac_space=\ *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2210 | sed -n \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2211 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2212 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2213 | ;; #( |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2214 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2215 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2216 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2217 | esac | |
| 2218 | sort |
| 2219 | ) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2220 | echo |
| 2221 | |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 2222 | cat <<\_ASBOX |
| 2223 | ## ----------------- ## |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2224 | ## Output variables. ## |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 2225 | ## ----------------- ## |
| 2226 | _ASBOX |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2227 | echo |
| 2228 | for ac_var in $ac_subst_vars |
| 2229 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2230 | eval ac_val=\$$ac_var |
| 2231 | case $ac_val in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2232 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2233 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2234 | $as_echo "$ac_var='\''$ac_val'\''" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2235 | done | sort |
| 2236 | echo |
| 2237 | |
| 2238 | if test -n "$ac_subst_files"; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 2239 | cat <<\_ASBOX |
| 2240 | ## ------------------- ## |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2241 | ## File substitutions. ## |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 2242 | ## ------------------- ## |
| 2243 | _ASBOX |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2244 | echo |
| 2245 | for ac_var in $ac_subst_files |
| 2246 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2247 | eval ac_val=\$$ac_var |
| 2248 | case $ac_val in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2249 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2250 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2251 | $as_echo "$ac_var='\''$ac_val'\''" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2252 | done | sort |
| 2253 | echo |
| 2254 | fi |
| 2255 | |
| 2256 | if test -s confdefs.h; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 2257 | cat <<\_ASBOX |
| 2258 | ## ----------- ## |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2259 | ## confdefs.h. ## |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 2260 | ## ----------- ## |
| 2261 | _ASBOX |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2262 | echo |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2263 | cat confdefs.h |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2264 | echo |
| 2265 | fi |
| 2266 | test "$ac_signal" != 0 && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2267 | $as_echo "$as_me: caught signal $ac_signal" |
| 2268 | $as_echo "$as_me: exit $exit_status" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2269 | } >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2270 | rm -f core *.core core.conftest.* && |
| 2271 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2272 | exit $exit_status |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2273 | ' 0 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2274 | for ac_signal in 1 2 13 15; do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2275 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2276 | done |
| 2277 | ac_signal=0 |
| 2278 | |
| 2279 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2280 | rm -f -r conftest* confdefs.h |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2281 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2282 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2283 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2284 | # Predefined preprocessor variables. |
| 2285 | |
| 2286 | cat >>confdefs.h <<_ACEOF |
| 2287 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2288 | _ACEOF |
| 2289 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2290 | cat >>confdefs.h <<_ACEOF |
| 2291 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2292 | _ACEOF |
| 2293 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2294 | cat >>confdefs.h <<_ACEOF |
| 2295 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2296 | _ACEOF |
| 2297 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2298 | cat >>confdefs.h <<_ACEOF |
| 2299 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2300 | _ACEOF |
| 2301 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2302 | cat >>confdefs.h <<_ACEOF |
| 2303 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2304 | _ACEOF |
| 2305 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2306 | cat >>confdefs.h <<_ACEOF |
| 2307 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2308 | _ACEOF |
| 2309 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2310 | |
| 2311 | # Let the site file select an alternate cache file if it wants to. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2312 | # Prefer an explicitly selected file to automatically selected ones. |
| 2313 | ac_site_file1=NONE |
| 2314 | ac_site_file2=NONE |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2315 | if test -n "$CONFIG_SITE"; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 2316 | ac_site_file1=$CONFIG_SITE |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2317 | elif test "x$prefix" != xNONE; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2318 | ac_site_file1=$prefix/share/config.site |
| 2319 | ac_site_file2=$prefix/etc/config.site |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2320 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2321 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2322 | ac_site_file2=$ac_default_prefix/etc/config.site |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2323 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2324 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2325 | do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2326 | test "x$ac_site_file" = xNONE && continue |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 2327 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2328 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2329 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2330 | sed 's/^/| /' "$ac_site_file" >&5 |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 2331 | . "$ac_site_file" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2332 | fi |
| 2333 | done |
| 2334 | |
| 2335 | if test -r "$cache_file"; then |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 2336 | # Some versions of bash will fail to source /dev/null (special files |
| 2337 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2338 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2339 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2340 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2341 | case $cache_file in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2342 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2343 | *) . "./$cache_file";; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2344 | esac |
| 2345 | fi |
| 2346 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2347 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2348 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2349 | >$cache_file |
| 2350 | fi |
| 2351 | |
| 2352 | # Check that the precious variables saved in the cache have kept the same |
| 2353 | # value. |
| 2354 | ac_cache_corrupted=false |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2355 | for ac_var in $ac_precious_vars; do |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2356 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2357 | eval ac_new_set=\$ac_env_${ac_var}_set |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2358 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2359 | eval ac_new_val=\$ac_env_${ac_var}_value |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2360 | case $ac_old_set,$ac_new_set in |
| 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 set to \`$ac_old_val' in the previous run" >&5 |
| 2363 | $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] | 2364 | ac_cache_corrupted=: ;; |
| 2365 | ,set) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2366 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2367 | $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] | 2368 | ac_cache_corrupted=: ;; |
| 2369 | ,);; |
| 2370 | *) |
| 2371 | if test "x$ac_old_val" != "x$ac_new_val"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2372 | # differences in whitespace do not lead to failure. |
| 2373 | ac_old_val_w=`echo x $ac_old_val` |
| 2374 | ac_new_val_w=`echo x $ac_new_val` |
| 2375 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2376 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2377 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2378 | ac_cache_corrupted=: |
| 2379 | else |
| 2380 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2381 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2382 | eval $ac_var=\$ac_old_val |
| 2383 | fi |
| 2384 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2385 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2386 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2387 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2388 | fi;; |
| 2389 | esac |
| 2390 | # Pass precious variables to config.status. |
| 2391 | if test "$ac_new_set" = set; then |
| 2392 | case $ac_new_val in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2393 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2394 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2395 | esac |
| 2396 | case " $ac_configure_args " in |
| 2397 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2398 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2399 | esac |
| 2400 | fi |
| 2401 | done |
| 2402 | if $ac_cache_corrupted; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2403 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2404 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2405 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2406 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 2407 | 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] | 2408 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2409 | ## -------------------- ## |
| 2410 | ## Main body of script. ## |
| 2411 | ## -------------------- ## |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2412 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2413 | ac_ext=c |
| 2414 | ac_cpp='$CPP $CPPFLAGS' |
| 2415 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2416 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2417 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2418 | |
| 2419 | |
| 2420 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2421 | ac_aux_dir= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2422 | for ac_dir in autotools "$srcdir"/autotools; do |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 2423 | for ac_t in install-sh install.sh shtool; do |
| 2424 | if test -f "$ac_dir/$ac_t"; then |
| 2425 | ac_aux_dir=$ac_dir |
| 2426 | ac_install_sh="$ac_aux_dir/$ac_t -c" |
| 2427 | break 2 |
| 2428 | fi |
| 2429 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2430 | done |
| 2431 | if test -z "$ac_aux_dir"; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 2432 | 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] | 2433 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2434 | |
| 2435 | # These three variables are undocumented and unsupported, |
| 2436 | # and are intended to be withdrawn in a future Autoconf release. |
| 2437 | # They can cause serious problems if a builder's source tree is in a directory |
| 2438 | # whose full name contains unusual characters. |
| 2439 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2440 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2441 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2442 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2443 | |
mmentovai | 425d256 | 2006-08-30 20:05:05 +0000 | [diff] [blame] | 2444 | |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 2445 | # Make sure we can run config.sub. |
| 2446 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 2447 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 2448 | |
| 2449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 2450 | $as_echo_n "checking build system type... " >&6; } |
| 2451 | if test "${ac_cv_build+set}" = set; then : |
| 2452 | $as_echo_n "(cached) " >&6 |
| 2453 | else |
| 2454 | ac_build_alias=$build_alias |
| 2455 | test "x$ac_build_alias" = x && |
| 2456 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2457 | test "x$ac_build_alias" = x && |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 2458 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 2459 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 2460 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 2461 | |
| 2462 | fi |
| 2463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 2464 | $as_echo "$ac_cv_build" >&6; } |
| 2465 | case $ac_cv_build in |
| 2466 | *-*-*) ;; |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 2467 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 2468 | esac |
| 2469 | build=$ac_cv_build |
| 2470 | ac_save_IFS=$IFS; IFS='-' |
| 2471 | set x $ac_cv_build |
| 2472 | shift |
| 2473 | build_cpu=$1 |
| 2474 | build_vendor=$2 |
| 2475 | shift; shift |
| 2476 | # Remember, the first character of IFS is used to create $*, |
| 2477 | # except with old shells: |
| 2478 | build_os=$* |
| 2479 | IFS=$ac_save_IFS |
| 2480 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 2481 | |
| 2482 | |
| 2483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 2484 | $as_echo_n "checking host system type... " >&6; } |
| 2485 | if test "${ac_cv_host+set}" = set; then : |
| 2486 | $as_echo_n "(cached) " >&6 |
| 2487 | else |
| 2488 | if test "x$host_alias" = x; then |
| 2489 | ac_cv_host=$ac_cv_build |
| 2490 | else |
| 2491 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 2492 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 2493 | fi |
| 2494 | |
| 2495 | fi |
| 2496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 2497 | $as_echo "$ac_cv_host" >&6; } |
| 2498 | case $ac_cv_host in |
| 2499 | *-*-*) ;; |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 2500 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 2501 | esac |
| 2502 | host=$ac_cv_host |
| 2503 | ac_save_IFS=$IFS; IFS='-' |
| 2504 | set x $ac_cv_host |
| 2505 | shift |
| 2506 | host_cpu=$1 |
| 2507 | host_vendor=$2 |
| 2508 | shift; shift |
| 2509 | # Remember, the first character of IFS is used to create $*, |
| 2510 | # except with old shells: |
| 2511 | host_os=$* |
| 2512 | IFS=$ac_save_IFS |
| 2513 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 2514 | |
| 2515 | |
| 2516 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2517 | am__api_version='1.11' |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2518 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2519 | # Find a good install program. We prefer a C program (faster), |
| 2520 | # so one script is as good as another. But avoid the broken or |
| 2521 | # incompatible versions: |
| 2522 | # SysV /etc/install, /usr/sbin/install |
| 2523 | # SunOS /usr/etc/install |
| 2524 | # IRIX /sbin/install |
| 2525 | # AIX /bin/install |
| 2526 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 2527 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 2528 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 2529 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 2530 | # OS/2's system install, which has a completely different semantic |
| 2531 | # ./install, which can be erroneously created by make from ./install.sh. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2532 | # Reject install programs that cannot install multiple files. |
| 2533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 2534 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2535 | if test -z "$INSTALL"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2536 | if test "${ac_cv_path_install+set}" = set; then : |
| 2537 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2538 | else |
| 2539 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2540 | for as_dir in $PATH |
| 2541 | do |
| 2542 | IFS=$as_save_IFS |
| 2543 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2544 | # Account for people who put trailing slashes in PATH elements. |
| 2545 | case $as_dir/ in #(( |
| 2546 | ./ | .// | /[cC]/* | \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2547 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2548 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2549 | /usr/ucb/* ) ;; |
| 2550 | *) |
| 2551 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 2552 | # Don't use installbsd from OSF since it installs stuff as root |
| 2553 | # by default. |
| 2554 | for ac_prog in ginstall scoinst install; do |
| 2555 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2556 | 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] | 2557 | if test $ac_prog = install && |
| 2558 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2559 | # AIX install. It has an incompatible calling convention. |
| 2560 | : |
| 2561 | elif test $ac_prog = install && |
| 2562 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2563 | # program-specific install script used by HP pwplus--don't use. |
| 2564 | : |
| 2565 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2566 | rm -rf conftest.one conftest.two conftest.dir |
| 2567 | echo one > conftest.one |
| 2568 | echo two > conftest.two |
| 2569 | mkdir conftest.dir |
| 2570 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 2571 | test -s conftest.one && test -s conftest.two && |
| 2572 | test -s conftest.dir/conftest.one && |
| 2573 | test -s conftest.dir/conftest.two |
| 2574 | then |
| 2575 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 2576 | break 3 |
| 2577 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2578 | fi |
| 2579 | fi |
| 2580 | done |
| 2581 | done |
| 2582 | ;; |
| 2583 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2584 | |
| 2585 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2586 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2587 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2588 | rm -rf conftest.one conftest.two conftest.dir |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2589 | |
| 2590 | fi |
| 2591 | if test "${ac_cv_path_install+set}" = set; then |
| 2592 | INSTALL=$ac_cv_path_install |
| 2593 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2594 | # As a last resort, use the slow shell script. Don't cache a |
| 2595 | # value for INSTALL within a source directory, because that will |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2596 | # break other packages using the cache if that directory is |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2597 | # removed, or if the value is a relative name. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2598 | INSTALL=$ac_install_sh |
| 2599 | fi |
| 2600 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 2602 | $as_echo "$INSTALL" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2603 | |
| 2604 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2605 | # It thinks the first close brace ends the variable substitution. |
| 2606 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2607 | |
| 2608 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 2609 | |
| 2610 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2611 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
| 2613 | $as_echo_n "checking whether build environment is sane... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2614 | # Just in case |
| 2615 | sleep 1 |
| 2616 | echo timestamp > conftest.file |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2617 | # Reject unsafe characters in $srcdir or the absolute working directory |
| 2618 | # name. Accept space and tab only in the latter. |
| 2619 | am_lf=' |
| 2620 | ' |
| 2621 | case `pwd` in |
| 2622 | *[\\\"\#\$\&\'\`$am_lf]*) |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 2623 | as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2624 | esac |
| 2625 | case $srcdir in |
| 2626 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 2627 | as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2628 | esac |
| 2629 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2630 | # Do `set' in a subshell so we don't clobber the current shell's |
| 2631 | # arguments. Must try -L first in case configure is actually a |
| 2632 | # symlink; some systems play weird games with the mod time of symlinks |
| 2633 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 2634 | # directory). |
| 2635 | if ( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2636 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2637 | if test "$*" = "X"; then |
| 2638 | # -L didn't work. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2639 | set X `ls -t "$srcdir/configure" conftest.file` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2640 | fi |
| 2641 | rm -f conftest.file |
| 2642 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 2643 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 2644 | |
| 2645 | # If neither matched, then we have a broken ls. This can happen |
| 2646 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 2647 | # broken ls alias from the environment. This has actually |
| 2648 | # happened. Such a system could not be considered "sane". |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 2649 | as_fn_error "ls -t appears to fail. Make sure there is not a broken |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2650 | alias in your environment" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2651 | fi |
| 2652 | |
| 2653 | test "$2" = conftest.file |
| 2654 | ) |
| 2655 | then |
| 2656 | # Ok. |
| 2657 | : |
| 2658 | else |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 2659 | as_fn_error "newly created file is older than distributed files! |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2660 | Check your system clock" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2661 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2663 | $as_echo "yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2664 | test "$program_prefix" != NONE && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2665 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2666 | # Use a double $ so make ignores it. |
| 2667 | test "$program_suffix" != NONE && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2668 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2669 | # Double any \ or $. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2670 | # By default was `s,x,x', remove it if useless. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2671 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 2672 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2673 | |
| 2674 | # expand $ac_aux_dir to an absolute path |
| 2675 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 2676 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2677 | if test x"${MISSING+set}" != xset; then |
| 2678 | case $am_aux_dir in |
| 2679 | *\ * | *\ *) |
| 2680 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
| 2681 | *) |
| 2682 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
| 2683 | esac |
| 2684 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2685 | # Use eval to expand $SHELL |
| 2686 | if eval "$MISSING --run true"; then |
| 2687 | am_missing_run="$MISSING --run " |
| 2688 | else |
| 2689 | am_missing_run= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2690 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
| 2691 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2692 | fi |
| 2693 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2694 | if test x"${install_sh}" != xset; then |
| 2695 | case $am_aux_dir in |
| 2696 | *\ * | *\ *) |
| 2697 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 2698 | *) |
| 2699 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 2700 | esac |
| 2701 | fi |
| 2702 | |
| 2703 | # Installed binaries are usually stripped using `strip' when the user |
| 2704 | # run `make install-strip'. However `strip' might not be the right |
| 2705 | # tool to use in cross-compilation environments, therefore Automake |
| 2706 | # will honor the `STRIP' environment variable to overrule this program. |
| 2707 | if test "$cross_compiling" != no; then |
| 2708 | if test -n "$ac_tool_prefix"; then |
| 2709 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 2710 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 2711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2712 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2713 | if test "${ac_cv_prog_STRIP+set}" = set; then : |
| 2714 | $as_echo_n "(cached) " >&6 |
| 2715 | else |
| 2716 | if test -n "$STRIP"; then |
| 2717 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2718 | else |
| 2719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2720 | for as_dir in $PATH |
| 2721 | do |
| 2722 | IFS=$as_save_IFS |
| 2723 | test -z "$as_dir" && as_dir=. |
| 2724 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2725 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2726 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 2727 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2728 | break 2 |
| 2729 | fi |
| 2730 | done |
| 2731 | done |
| 2732 | IFS=$as_save_IFS |
| 2733 | |
| 2734 | fi |
| 2735 | fi |
| 2736 | STRIP=$ac_cv_prog_STRIP |
| 2737 | if test -n "$STRIP"; then |
| 2738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 2739 | $as_echo "$STRIP" >&6; } |
| 2740 | else |
| 2741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2742 | $as_echo "no" >&6; } |
| 2743 | fi |
| 2744 | |
| 2745 | |
| 2746 | fi |
| 2747 | if test -z "$ac_cv_prog_STRIP"; then |
| 2748 | ac_ct_STRIP=$STRIP |
| 2749 | # Extract the first word of "strip", so it can be a program name with args. |
| 2750 | set dummy strip; ac_word=$2 |
| 2751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2752 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2753 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : |
| 2754 | $as_echo_n "(cached) " >&6 |
| 2755 | else |
| 2756 | if test -n "$ac_ct_STRIP"; then |
| 2757 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 2758 | else |
| 2759 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2760 | for as_dir in $PATH |
| 2761 | do |
| 2762 | IFS=$as_save_IFS |
| 2763 | test -z "$as_dir" && as_dir=. |
| 2764 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2765 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2766 | ac_cv_prog_ac_ct_STRIP="strip" |
| 2767 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2768 | break 2 |
| 2769 | fi |
| 2770 | done |
| 2771 | done |
| 2772 | IFS=$as_save_IFS |
| 2773 | |
| 2774 | fi |
| 2775 | fi |
| 2776 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 2777 | if test -n "$ac_ct_STRIP"; then |
| 2778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 2779 | $as_echo "$ac_ct_STRIP" >&6; } |
| 2780 | else |
| 2781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2782 | $as_echo "no" >&6; } |
| 2783 | fi |
| 2784 | |
| 2785 | if test "x$ac_ct_STRIP" = x; then |
| 2786 | STRIP=":" |
| 2787 | else |
| 2788 | case $cross_compiling:$ac_tool_warned in |
| 2789 | yes:) |
| 2790 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2791 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2792 | ac_tool_warned=yes ;; |
| 2793 | esac |
| 2794 | STRIP=$ac_ct_STRIP |
| 2795 | fi |
| 2796 | else |
| 2797 | STRIP="$ac_cv_prog_STRIP" |
| 2798 | fi |
| 2799 | |
| 2800 | fi |
| 2801 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 2802 | |
| 2803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
| 2804 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2805 | if test -z "$MKDIR_P"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2806 | if test "${ac_cv_path_mkdir+set}" = set; then : |
| 2807 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2808 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2809 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2810 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 2811 | do |
| 2812 | IFS=$as_save_IFS |
| 2813 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2814 | for ac_prog in mkdir gmkdir; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2815 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2816 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
| 2817 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 2818 | 'mkdir (GNU coreutils) '* | \ |
| 2819 | 'mkdir (coreutils) '* | \ |
| 2820 | 'mkdir (fileutils) '4.1*) |
| 2821 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 2822 | break 3;; |
| 2823 | esac |
| 2824 | done |
| 2825 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2826 | done |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2827 | IFS=$as_save_IFS |
| 2828 | |
| 2829 | fi |
| 2830 | |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 2831 | test -d ./--version && rmdir ./--version |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2832 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 2833 | MKDIR_P="$ac_cv_path_mkdir -p" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2834 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2835 | # As a last resort, use the slow shell script. Don't cache a |
| 2836 | # value for MKDIR_P within a source directory, because that will |
| 2837 | # break other packages using the cache if that directory is |
| 2838 | # removed, or if the value is a relative name. |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2839 | MKDIR_P="$ac_install_sh -d" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2840 | fi |
| 2841 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 2843 | $as_echo "$MKDIR_P" >&6; } |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2844 | |
| 2845 | mkdir_p="$MKDIR_P" |
| 2846 | case $mkdir_p in |
| 2847 | [\\/$]* | ?:[\\/]*) ;; |
| 2848 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
| 2849 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2850 | |
| 2851 | for ac_prog in gawk mawk nawk awk |
| 2852 | do |
| 2853 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2854 | set dummy $ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2856 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2857 | if test "${ac_cv_prog_AWK+set}" = set; then : |
| 2858 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2859 | else |
| 2860 | if test -n "$AWK"; then |
| 2861 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 2862 | else |
| 2863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2864 | for as_dir in $PATH |
| 2865 | do |
| 2866 | IFS=$as_save_IFS |
| 2867 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2868 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2869 | 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] | 2870 | ac_cv_prog_AWK="$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2871 | $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] | 2872 | break 2 |
| 2873 | fi |
| 2874 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2875 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2876 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2877 | |
| 2878 | fi |
| 2879 | fi |
| 2880 | AWK=$ac_cv_prog_AWK |
| 2881 | if test -n "$AWK"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 2883 | $as_echo "$AWK" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2884 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2886 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2887 | fi |
| 2888 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2889 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2890 | test -n "$AWK" && break |
| 2891 | done |
| 2892 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 2894 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 2895 | set x ${MAKE-make} |
| 2896 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 2897 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2898 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2899 | else |
| 2900 | cat >conftest.make <<\_ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2901 | SHELL = /bin/sh |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2902 | all: |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2903 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2904 | _ACEOF |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 2905 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2906 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 2907 | *@@@%%%=?*=@@@%%%*) |
| 2908 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 2909 | *) |
| 2910 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 2911 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2912 | rm -f conftest.make |
| 2913 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2914 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2916 | $as_echo "yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2917 | SET_MAKE= |
| 2918 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2920 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2921 | SET_MAKE="MAKE=${MAKE-make}" |
| 2922 | fi |
| 2923 | |
| 2924 | rm -rf .tst 2>/dev/null |
| 2925 | mkdir .tst 2>/dev/null |
| 2926 | if test -d .tst; then |
| 2927 | am__leading_dot=. |
| 2928 | else |
| 2929 | am__leading_dot=_ |
| 2930 | fi |
| 2931 | rmdir .tst 2>/dev/null |
| 2932 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2933 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 2934 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 2935 | # is not polluted with repeated "-I." |
| 2936 | am__isrc=' -I$(srcdir)' |
| 2937 | # test to see if srcdir already configured |
| 2938 | if test -f $srcdir/config.status; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 2939 | 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] | 2940 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2941 | fi |
| 2942 | |
| 2943 | # test whether we have cygpath |
| 2944 | if test -z "$CYGPATH_W"; then |
| 2945 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 2946 | CYGPATH_W='cygpath -w' |
| 2947 | else |
| 2948 | CYGPATH_W=echo |
| 2949 | fi |
| 2950 | fi |
| 2951 | |
| 2952 | |
| 2953 | # Define the identity of the package. |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 2954 | PACKAGE='breakpad' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2955 | VERSION='0.1' |
| 2956 | |
| 2957 | |
| 2958 | cat >>confdefs.h <<_ACEOF |
| 2959 | #define PACKAGE "$PACKAGE" |
| 2960 | _ACEOF |
| 2961 | |
| 2962 | |
| 2963 | cat >>confdefs.h <<_ACEOF |
| 2964 | #define VERSION "$VERSION" |
| 2965 | _ACEOF |
| 2966 | |
| 2967 | # Some tools Automake needs. |
| 2968 | |
| 2969 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 2970 | |
| 2971 | |
| 2972 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 2973 | |
| 2974 | |
| 2975 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 2976 | |
| 2977 | |
| 2978 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 2979 | |
| 2980 | |
| 2981 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 2982 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2983 | # We need awk for the "check" target. The system "awk" is bad on |
| 2984 | # some platforms. |
| 2985 | # Always define AMTAR for backward compatibility. |
| 2986 | |
| 2987 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 2988 | |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 2989 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 |
| 2991 | $as_echo_n "checking how to create a ustar tar archive... " >&6; } |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 2992 | # Loop over all known methods to create a tar archive until one works. |
| 2993 | _am_tools='gnutar plaintar pax cpio none' |
| 2994 | _am_tools=${am_cv_prog_tar_ustar-$_am_tools} |
| 2995 | # Do not fold the above two line into one, because Tru64 sh and |
| 2996 | # Solaris sh will not grok spaces in the rhs of `-'. |
| 2997 | for _am_tool in $_am_tools |
| 2998 | do |
| 2999 | case $_am_tool in |
| 3000 | gnutar) |
| 3001 | for _am_tar in tar gnutar gtar; |
| 3002 | do |
| 3003 | { echo "$as_me:$LINENO: $_am_tar --version" >&5 |
| 3004 | ($_am_tar --version) >&5 2>&5 |
| 3005 | ac_status=$? |
| 3006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3007 | (exit $ac_status); } && break |
| 3008 | done |
| 3009 | am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' |
| 3010 | am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' |
| 3011 | am__untar="$_am_tar -xf -" |
| 3012 | ;; |
| 3013 | plaintar) |
| 3014 | # Must skip GNU tar: if it does not support --format= it doesn't create |
| 3015 | # ustar tarball either. |
| 3016 | (tar --version) >/dev/null 2>&1 && continue |
| 3017 | am__tar='tar chf - "$$tardir"' |
| 3018 | am__tar_='tar chf - "$tardir"' |
| 3019 | am__untar='tar xf -' |
| 3020 | ;; |
| 3021 | pax) |
| 3022 | am__tar='pax -L -x ustar -w "$$tardir"' |
| 3023 | am__tar_='pax -L -x ustar -w "$tardir"' |
| 3024 | am__untar='pax -r' |
| 3025 | ;; |
| 3026 | cpio) |
| 3027 | am__tar='find "$$tardir" -print | cpio -o -H ustar -L' |
| 3028 | am__tar_='find "$tardir" -print | cpio -o -H ustar -L' |
| 3029 | am__untar='cpio -i -H ustar -d' |
| 3030 | ;; |
| 3031 | none) |
| 3032 | am__tar=false |
| 3033 | am__tar_=false |
| 3034 | am__untar=false |
| 3035 | ;; |
| 3036 | esac |
| 3037 | |
| 3038 | # If the value was cached, stop now. We just wanted to have am__tar |
| 3039 | # and am__untar set. |
| 3040 | test -n "${am_cv_prog_tar_ustar}" && break |
| 3041 | |
| 3042 | # tar/untar a dummy directory, and stop if the command works |
| 3043 | rm -rf conftest.dir |
| 3044 | mkdir conftest.dir |
| 3045 | echo GrepMe > conftest.dir/file |
| 3046 | { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 |
| 3047 | (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 |
| 3048 | ac_status=$? |
| 3049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3050 | (exit $ac_status); } |
| 3051 | rm -rf conftest.dir |
| 3052 | if test -s conftest.tar; then |
| 3053 | { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 |
| 3054 | ($am__untar <conftest.tar) >&5 2>&5 |
| 3055 | ac_status=$? |
| 3056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3057 | (exit $ac_status); } |
| 3058 | grep GrepMe conftest.dir/file >/dev/null 2>&1 && break |
| 3059 | fi |
| 3060 | done |
| 3061 | rm -rf conftest.dir |
| 3062 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3063 | if test "${am_cv_prog_tar_ustar+set}" = set; then : |
| 3064 | $as_echo_n "(cached) " >&6 |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 3065 | else |
| 3066 | am_cv_prog_tar_ustar=$_am_tool |
| 3067 | fi |
| 3068 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 |
| 3070 | $as_echo "$am_cv_prog_tar_ustar" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3071 | |
| 3072 | |
| 3073 | |
| 3074 | |
| 3075 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3076 | ac_config_headers="$ac_config_headers src/config.h" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3077 | |
| 3078 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3079 | ac_ext=c |
| 3080 | ac_cpp='$CPP $CPPFLAGS' |
| 3081 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3082 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3083 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3084 | if test -n "$ac_tool_prefix"; then |
| 3085 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3086 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3088 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3089 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 3090 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3091 | else |
| 3092 | if test -n "$CC"; then |
| 3093 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3094 | else |
| 3095 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3096 | for as_dir in $PATH |
| 3097 | do |
| 3098 | IFS=$as_save_IFS |
| 3099 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3100 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3101 | 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] | 3102 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3103 | $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] | 3104 | break 2 |
| 3105 | fi |
| 3106 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3107 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3108 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3109 | |
| 3110 | fi |
| 3111 | fi |
| 3112 | CC=$ac_cv_prog_CC |
| 3113 | if test -n "$CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3115 | $as_echo "$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3116 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3118 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3119 | fi |
| 3120 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3121 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3122 | fi |
| 3123 | if test -z "$ac_cv_prog_CC"; then |
| 3124 | ac_ct_CC=$CC |
| 3125 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3126 | set dummy gcc; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3128 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3129 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 3130 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3131 | else |
| 3132 | if test -n "$ac_ct_CC"; then |
| 3133 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3134 | else |
| 3135 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3136 | for as_dir in $PATH |
| 3137 | do |
| 3138 | IFS=$as_save_IFS |
| 3139 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3140 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3141 | 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] | 3142 | ac_cv_prog_ac_ct_CC="gcc" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3143 | $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] | 3144 | break 2 |
| 3145 | fi |
| 3146 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3147 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3148 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3149 | |
| 3150 | fi |
| 3151 | fi |
| 3152 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3153 | if test -n "$ac_ct_CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3155 | $as_echo "$ac_ct_CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3156 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3158 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3159 | fi |
| 3160 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3161 | if test "x$ac_ct_CC" = x; then |
| 3162 | CC="" |
| 3163 | else |
| 3164 | case $cross_compiling:$ac_tool_warned in |
| 3165 | yes:) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3166 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3167 | $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] | 3168 | ac_tool_warned=yes ;; |
| 3169 | esac |
| 3170 | CC=$ac_ct_CC |
| 3171 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3172 | else |
| 3173 | CC="$ac_cv_prog_CC" |
| 3174 | fi |
| 3175 | |
| 3176 | if test -z "$CC"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3177 | if test -n "$ac_tool_prefix"; then |
| 3178 | # 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] | 3179 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3181 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3182 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 3183 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3184 | else |
| 3185 | if test -n "$CC"; then |
| 3186 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3187 | else |
| 3188 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3189 | for as_dir in $PATH |
| 3190 | do |
| 3191 | IFS=$as_save_IFS |
| 3192 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3193 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3194 | 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] | 3195 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3196 | $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] | 3197 | break 2 |
| 3198 | fi |
| 3199 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3200 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3201 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3202 | |
| 3203 | fi |
| 3204 | fi |
| 3205 | CC=$ac_cv_prog_CC |
| 3206 | if test -n "$CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3208 | $as_echo "$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3209 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3211 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3212 | fi |
| 3213 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3214 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3215 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3216 | fi |
| 3217 | if test -z "$CC"; then |
| 3218 | # Extract the first word of "cc", so it can be a program name with args. |
| 3219 | set dummy cc; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3221 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3222 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 3223 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3224 | else |
| 3225 | if test -n "$CC"; then |
| 3226 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3227 | else |
| 3228 | ac_prog_rejected=no |
| 3229 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3230 | for as_dir in $PATH |
| 3231 | do |
| 3232 | IFS=$as_save_IFS |
| 3233 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3234 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3235 | 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] | 3236 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3237 | ac_prog_rejected=yes |
| 3238 | continue |
| 3239 | fi |
| 3240 | ac_cv_prog_CC="cc" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3241 | $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] | 3242 | break 2 |
| 3243 | fi |
| 3244 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3245 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3246 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3247 | |
| 3248 | if test $ac_prog_rejected = yes; then |
| 3249 | # We found a bogon in the path, so make sure we never use it. |
| 3250 | set dummy $ac_cv_prog_CC |
| 3251 | shift |
| 3252 | if test $# != 0; then |
| 3253 | # We chose a different compiler from the bogus one. |
| 3254 | # However, it has the same basename, so the bogon will be chosen |
| 3255 | # first if we set CC to just the basename; use the full file name. |
| 3256 | shift |
| 3257 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 3258 | fi |
| 3259 | fi |
| 3260 | fi |
| 3261 | fi |
| 3262 | CC=$ac_cv_prog_CC |
| 3263 | if test -n "$CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3265 | $as_echo "$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3266 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3268 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3269 | fi |
| 3270 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3271 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3272 | fi |
| 3273 | if test -z "$CC"; then |
| 3274 | if test -n "$ac_tool_prefix"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3275 | for ac_prog in cl.exe |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3276 | do |
| 3277 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3278 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3280 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3281 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 3282 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3283 | else |
| 3284 | if test -n "$CC"; then |
| 3285 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3286 | else |
| 3287 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3288 | for as_dir in $PATH |
| 3289 | do |
| 3290 | IFS=$as_save_IFS |
| 3291 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3292 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3293 | 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] | 3294 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3295 | $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] | 3296 | break 2 |
| 3297 | fi |
| 3298 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3299 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3300 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3301 | |
| 3302 | fi |
| 3303 | fi |
| 3304 | CC=$ac_cv_prog_CC |
| 3305 | if test -n "$CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3307 | $as_echo "$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3308 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3310 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3311 | fi |
| 3312 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3313 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3314 | test -n "$CC" && break |
| 3315 | done |
| 3316 | fi |
| 3317 | if test -z "$CC"; then |
| 3318 | ac_ct_CC=$CC |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3319 | for ac_prog in cl.exe |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3320 | do |
| 3321 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3322 | set dummy $ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3324 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3325 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 3326 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3327 | else |
| 3328 | if test -n "$ac_ct_CC"; then |
| 3329 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3330 | else |
| 3331 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3332 | for as_dir in $PATH |
| 3333 | do |
| 3334 | IFS=$as_save_IFS |
| 3335 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3336 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3337 | 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] | 3338 | ac_cv_prog_ac_ct_CC="$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3339 | $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] | 3340 | break 2 |
| 3341 | fi |
| 3342 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3343 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3344 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3345 | |
| 3346 | fi |
| 3347 | fi |
| 3348 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3349 | if test -n "$ac_ct_CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3351 | $as_echo "$ac_ct_CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3352 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3354 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3355 | fi |
| 3356 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3357 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3358 | test -n "$ac_ct_CC" && break |
| 3359 | done |
| 3360 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3361 | if test "x$ac_ct_CC" = x; then |
| 3362 | CC="" |
| 3363 | else |
| 3364 | case $cross_compiling:$ac_tool_warned in |
| 3365 | yes:) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3366 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3367 | $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] | 3368 | ac_tool_warned=yes ;; |
| 3369 | esac |
| 3370 | CC=$ac_ct_CC |
| 3371 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3372 | fi |
| 3373 | |
| 3374 | fi |
| 3375 | |
| 3376 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3377 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3378 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 3379 | as_fn_error "no acceptable C compiler found in \$PATH |
| 3380 | See \`config.log' for more details." "$LINENO" 5; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3381 | |
| 3382 | # Provide some information about the compiler. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3383 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 3384 | set X $ac_compile |
| 3385 | ac_compiler=$2 |
| 3386 | for ac_option in --version -v -V -qversion; do |
| 3387 | { { ac_try="$ac_compiler $ac_option >&5" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3388 | case "(($ac_try" in |
| 3389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3390 | *) ac_try_echo=$ac_try;; |
| 3391 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3392 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3393 | $as_echo "$ac_try_echo"; } >&5 |
| 3394 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3395 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3396 | if test -s conftest.err; then |
| 3397 | sed '10a\ |
| 3398 | ... rest of stderr output deleted ... |
| 3399 | 10q' conftest.err >conftest.er1 |
| 3400 | cat conftest.er1 >&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3401 | fi |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3402 | rm -f conftest.er1 conftest.err |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3403 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3404 | test $ac_status = 0; } |
| 3405 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3406 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3407 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3408 | /* end confdefs.h. */ |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3409 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3410 | int |
| 3411 | main () |
| 3412 | { |
| 3413 | |
| 3414 | ; |
| 3415 | return 0; |
| 3416 | } |
| 3417 | _ACEOF |
| 3418 | ac_clean_files_save=$ac_clean_files |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3419 | 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] | 3420 | # Try to create an executable without -o first, disregard a.out. |
| 3421 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3422 | # of exeext. |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3424 | $as_echo_n "checking whether the C compiler works... " >&6; } |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3425 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3426 | |
| 3427 | # The possible output files: |
| 3428 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3429 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3430 | ac_rmfiles= |
| 3431 | for ac_file in $ac_files |
| 3432 | do |
| 3433 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3434 | *.$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] | 3435 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3436 | esac |
| 3437 | done |
| 3438 | rm -f $ac_rmfiles |
| 3439 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3440 | if { { ac_try="$ac_link_default" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3441 | case "(($ac_try" in |
| 3442 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3443 | *) ac_try_echo=$ac_try;; |
| 3444 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3445 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3446 | $as_echo "$ac_try_echo"; } >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3447 | (eval "$ac_link_default") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3448 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3449 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3450 | test $ac_status = 0; }; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3451 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3452 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3453 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3454 | # so that the user can short-circuit this test for compilers unknown to |
| 3455 | # Autoconf. |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3456 | for ac_file in $ac_files '' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3457 | do |
| 3458 | test -f "$ac_file" || continue |
| 3459 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3460 | *.$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] | 3461 | ;; |
| 3462 | [ab].out ) |
| 3463 | # We found the default executable, but exeext='' is most |
| 3464 | # certainly right. |
| 3465 | break;; |
| 3466 | *.* ) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3467 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3468 | then :; else |
| 3469 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3470 | fi |
| 3471 | # We set ac_cv_exeext here because the later test for it is not |
| 3472 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3473 | # argument, so we may need to know it at that point already. |
| 3474 | # Even if this section looks crufty: it has the advantage of |
| 3475 | # actually working. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3476 | break;; |
| 3477 | * ) |
| 3478 | break;; |
| 3479 | esac |
| 3480 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3481 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3482 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3483 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3484 | ac_file='' |
| 3485 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3486 | if test -z "$ac_file"; then : |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3488 | $as_echo "no" >&6; } |
| 3489 | $as_echo "$as_me: failed program was:" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3490 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3491 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3492 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3493 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 3494 | { as_fn_set_status 77 |
| 3495 | as_fn_error "C compiler cannot create executables |
| 3496 | See \`config.log' for more details." "$LINENO" 5; }; } |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3497 | else |
| 3498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3499 | $as_echo "yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3500 | fi |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3502 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3504 | $as_echo "$ac_file" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3505 | ac_exeext=$ac_cv_exeext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3506 | |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3507 | 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] | 3508 | ac_clean_files=$ac_clean_files_save |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 3510 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 3511 | if { { ac_try="$ac_link" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3512 | case "(($ac_try" in |
| 3513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3514 | *) ac_try_echo=$ac_try;; |
| 3515 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3516 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3517 | $as_echo "$ac_try_echo"; } >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3518 | (eval "$ac_link") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3519 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3520 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3521 | test $ac_status = 0; }; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3522 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3523 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3524 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3525 | # `rm'. |
| 3526 | for ac_file in conftest.exe conftest conftest.*; do |
| 3527 | test -f "$ac_file" || continue |
| 3528 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3529 | *.$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] | 3530 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3531 | break;; |
| 3532 | * ) break;; |
| 3533 | esac |
| 3534 | done |
| 3535 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3536 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3537 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 3538 | as_fn_error "cannot compute suffix of executables: cannot compile and link |
| 3539 | See \`config.log' for more details." "$LINENO" 5; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3540 | fi |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3541 | rm -f conftest conftest$ac_cv_exeext |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 3543 | $as_echo "$ac_cv_exeext" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3544 | |
| 3545 | rm -f conftest.$ac_ext |
| 3546 | EXEEXT=$ac_cv_exeext |
| 3547 | ac_exeext=$EXEEXT |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3548 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3549 | /* end confdefs.h. */ |
| 3550 | #include <stdio.h> |
| 3551 | int |
| 3552 | main () |
| 3553 | { |
| 3554 | FILE *f = fopen ("conftest.out", "w"); |
| 3555 | return ferror (f) || fclose (f) != 0; |
| 3556 | |
| 3557 | ; |
| 3558 | return 0; |
| 3559 | } |
| 3560 | _ACEOF |
| 3561 | ac_clean_files="$ac_clean_files conftest.out" |
| 3562 | # Check that the compiler produces executables we can run. If not, either |
| 3563 | # the compiler is broken, or we cross compile. |
| 3564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3565 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3566 | if test "$cross_compiling" != yes; then |
| 3567 | { { ac_try="$ac_link" |
| 3568 | case "(($ac_try" in |
| 3569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3570 | *) ac_try_echo=$ac_try;; |
| 3571 | esac |
| 3572 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3573 | $as_echo "$ac_try_echo"; } >&5 |
| 3574 | (eval "$ac_link") 2>&5 |
| 3575 | ac_status=$? |
| 3576 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3577 | test $ac_status = 0; } |
| 3578 | if { ac_try='./conftest$ac_cv_exeext' |
| 3579 | { { case "(($ac_try" in |
| 3580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3581 | *) ac_try_echo=$ac_try;; |
| 3582 | esac |
| 3583 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3584 | $as_echo "$ac_try_echo"; } >&5 |
| 3585 | (eval "$ac_try") 2>&5 |
| 3586 | ac_status=$? |
| 3587 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3588 | test $ac_status = 0; }; }; then |
| 3589 | cross_compiling=no |
| 3590 | else |
| 3591 | if test "$cross_compiling" = maybe; then |
| 3592 | cross_compiling=yes |
| 3593 | else |
| 3594 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3595 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 3596 | as_fn_error "cannot run C compiled programs. |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3597 | If you meant to cross compile, use \`--host'. |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 3598 | See \`config.log' for more details." "$LINENO" 5; } |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3599 | fi |
| 3600 | fi |
| 3601 | fi |
| 3602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3603 | $as_echo "$cross_compiling" >&6; } |
| 3604 | |
| 3605 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3606 | ac_clean_files=$ac_clean_files_save |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 3608 | $as_echo_n "checking for suffix of object files... " >&6; } |
| 3609 | if test "${ac_cv_objext+set}" = set; then : |
| 3610 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3611 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3612 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3613 | /* end confdefs.h. */ |
| 3614 | |
| 3615 | int |
| 3616 | main () |
| 3617 | { |
| 3618 | |
| 3619 | ; |
| 3620 | return 0; |
| 3621 | } |
| 3622 | _ACEOF |
| 3623 | rm -f conftest.o conftest.obj |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3624 | if { { ac_try="$ac_compile" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3625 | case "(($ac_try" in |
| 3626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3627 | *) ac_try_echo=$ac_try;; |
| 3628 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3629 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3630 | $as_echo "$ac_try_echo"; } >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3631 | (eval "$ac_compile") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3632 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3633 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3634 | test $ac_status = 0; }; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3635 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3636 | test -f "$ac_file" || continue; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3637 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3638 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3639 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3640 | break;; |
| 3641 | esac |
| 3642 | done |
| 3643 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3644 | $as_echo "$as_me: failed program was:" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3645 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3646 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3647 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3648 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 3649 | as_fn_error "cannot compute suffix of object files: cannot compile |
| 3650 | See \`config.log' for more details." "$LINENO" 5; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3651 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3652 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3653 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 3655 | $as_echo "$ac_cv_objext" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3656 | OBJEXT=$ac_cv_objext |
| 3657 | ac_objext=$OBJEXT |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 3659 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 3660 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
| 3661 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3662 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3663 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3664 | /* end confdefs.h. */ |
| 3665 | |
| 3666 | int |
| 3667 | main () |
| 3668 | { |
| 3669 | #ifndef __GNUC__ |
| 3670 | choke me |
| 3671 | #endif |
| 3672 | |
| 3673 | ; |
| 3674 | return 0; |
| 3675 | } |
| 3676 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3677 | if ac_fn_c_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3678 | ac_compiler_gnu=yes |
| 3679 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3680 | ac_compiler_gnu=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3681 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3682 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3683 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3684 | |
| 3685 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3687 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3688 | if test $ac_compiler_gnu = yes; then |
| 3689 | GCC=yes |
| 3690 | else |
| 3691 | GCC= |
| 3692 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3693 | ac_test_CFLAGS=${CFLAGS+set} |
| 3694 | ac_save_CFLAGS=$CFLAGS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 3696 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 3697 | if test "${ac_cv_prog_cc_g+set}" = set; then : |
| 3698 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3699 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3700 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3701 | ac_c_werror_flag=yes |
| 3702 | ac_cv_prog_cc_g=no |
| 3703 | CFLAGS="-g" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3704 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3705 | /* end confdefs.h. */ |
| 3706 | |
| 3707 | int |
| 3708 | main () |
| 3709 | { |
| 3710 | |
| 3711 | ; |
| 3712 | return 0; |
| 3713 | } |
| 3714 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3715 | if ac_fn_c_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3716 | ac_cv_prog_cc_g=yes |
| 3717 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3718 | CFLAGS="" |
| 3719 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3720 | /* end confdefs.h. */ |
| 3721 | |
| 3722 | int |
| 3723 | main () |
| 3724 | { |
| 3725 | |
| 3726 | ; |
| 3727 | return 0; |
| 3728 | } |
| 3729 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3730 | if ac_fn_c_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3731 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3732 | else |
| 3733 | ac_c_werror_flag=$ac_save_c_werror_flag |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3734 | CFLAGS="-g" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3735 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3736 | /* end confdefs.h. */ |
| 3737 | |
| 3738 | int |
| 3739 | main () |
| 3740 | { |
| 3741 | |
| 3742 | ; |
| 3743 | return 0; |
| 3744 | } |
| 3745 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3746 | if ac_fn_c_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3747 | ac_cv_prog_cc_g=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 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 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3750 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3751 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3752 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3753 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3754 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3755 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 3757 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3758 | if test "$ac_test_CFLAGS" = set; then |
| 3759 | CFLAGS=$ac_save_CFLAGS |
| 3760 | elif test $ac_cv_prog_cc_g = yes; then |
| 3761 | if test "$GCC" = yes; then |
| 3762 | CFLAGS="-g -O2" |
| 3763 | else |
| 3764 | CFLAGS="-g" |
| 3765 | fi |
| 3766 | else |
| 3767 | if test "$GCC" = yes; then |
| 3768 | CFLAGS="-O2" |
| 3769 | else |
| 3770 | CFLAGS= |
| 3771 | fi |
| 3772 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 3774 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 3775 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
| 3776 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3777 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3778 | ac_cv_prog_cc_c89=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3779 | ac_save_CC=$CC |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3781 | /* end confdefs.h. */ |
| 3782 | #include <stdarg.h> |
| 3783 | #include <stdio.h> |
| 3784 | #include <sys/types.h> |
| 3785 | #include <sys/stat.h> |
| 3786 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3787 | struct buf { int x; }; |
| 3788 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3789 | static char *e (p, i) |
| 3790 | char **p; |
| 3791 | int i; |
| 3792 | { |
| 3793 | return p[i]; |
| 3794 | } |
| 3795 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3796 | { |
| 3797 | char *s; |
| 3798 | va_list v; |
| 3799 | va_start (v,p); |
| 3800 | s = g (p, va_arg (v,int)); |
| 3801 | va_end (v); |
| 3802 | return s; |
| 3803 | } |
| 3804 | |
| 3805 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3806 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3807 | These don't provoke an error unfortunately, instead are silently treated |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3808 | as 'x'. The following induces an error, until -std is added to get |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3809 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3810 | 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] | 3811 | that's true only with -std. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3812 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3813 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3814 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3815 | inside strings and character constants. */ |
| 3816 | #define FOO(x) 'x' |
| 3817 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3818 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3819 | int test (int i, double x); |
| 3820 | struct s1 {int (*f) (int a);}; |
| 3821 | struct s2 {int (*f) (double a);}; |
| 3822 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3823 | int argc; |
| 3824 | char **argv; |
| 3825 | int |
| 3826 | main () |
| 3827 | { |
| 3828 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3829 | ; |
| 3830 | return 0; |
| 3831 | } |
| 3832 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3833 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3834 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3835 | do |
| 3836 | CC="$ac_save_CC $ac_arg" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3837 | if ac_fn_c_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3838 | ac_cv_prog_cc_c89=$ac_arg |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3839 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3840 | rm -f core conftest.err conftest.$ac_objext |
| 3841 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3842 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3843 | rm -f conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3844 | CC=$ac_save_CC |
| 3845 | |
| 3846 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3847 | # AC_CACHE_VAL |
| 3848 | case "x$ac_cv_prog_cc_c89" in |
| 3849 | x) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3851 | $as_echo "none needed" >&6; } ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3852 | xno) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3854 | $as_echo "unsupported" >&6; } ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3855 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3856 | CC="$CC $ac_cv_prog_cc_c89" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 3858 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3859 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3860 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3861 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3862 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3863 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3864 | ac_ext=c |
| 3865 | ac_cpp='$CPP $CPPFLAGS' |
| 3866 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3867 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3868 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3869 | DEPDIR="${am__leading_dot}deps" |
| 3870 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3871 | ac_config_commands="$ac_config_commands depfiles" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3872 | |
| 3873 | |
| 3874 | am_make=${MAKE-make} |
| 3875 | cat > confinc << 'END' |
| 3876 | am__doit: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3877 | @echo this is the am__doit target |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3878 | .PHONY: am__doit |
| 3879 | END |
| 3880 | # If we don't find an include directive, just comment out the code. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
| 3882 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3883 | am__include="#" |
| 3884 | am__quote= |
| 3885 | _am_result=none |
| 3886 | # First try GNU make style include. |
| 3887 | echo "include confinc" > confmf |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3888 | # Ignore all kinds of additional output from `make'. |
| 3889 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 3890 | *the\ am__doit\ target*) |
| 3891 | am__include=include |
| 3892 | am__quote= |
| 3893 | _am_result=GNU |
| 3894 | ;; |
| 3895 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3896 | # Now try BSD make style include. |
| 3897 | if test "$am__include" = "#"; then |
| 3898 | echo '.include "confinc"' > confmf |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3899 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 3900 | *the\ am__doit\ target*) |
| 3901 | am__include=.include |
| 3902 | am__quote="\"" |
| 3903 | _am_result=BSD |
| 3904 | ;; |
| 3905 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3906 | fi |
| 3907 | |
| 3908 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
| 3910 | $as_echo "$_am_result" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3911 | rm -f confinc confmf |
| 3912 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3913 | # Check whether --enable-dependency-tracking was given. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3914 | if test "${enable_dependency_tracking+set}" = set; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3915 | enableval=$enable_dependency_tracking; |
| 3916 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3917 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3918 | if test "x$enable_dependency_tracking" != xno; then |
| 3919 | am_depcomp="$ac_aux_dir/depcomp" |
| 3920 | AMDEPBACKSLASH='\' |
| 3921 | fi |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3922 | if test "x$enable_dependency_tracking" != xno; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3923 | AMDEP_TRUE= |
| 3924 | AMDEP_FALSE='#' |
| 3925 | else |
| 3926 | AMDEP_TRUE='#' |
| 3927 | AMDEP_FALSE= |
| 3928 | fi |
| 3929 | |
| 3930 | |
| 3931 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3932 | depcc="$CC" am_compiler_list= |
| 3933 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 3935 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 3936 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : |
| 3937 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3938 | else |
| 3939 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 3940 | # We make a subdir and do the tests there. Otherwise we can end up |
| 3941 | # making bogus files that we don't know about and never remove. For |
| 3942 | # instance it was reported that on HP-UX the gcc test will end up |
| 3943 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 3944 | # in D'. |
| 3945 | mkdir conftest.dir |
| 3946 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 3947 | # using a relative directory. |
| 3948 | cp "$am_depcomp" conftest.dir |
| 3949 | cd conftest.dir |
| 3950 | # We will build objects and dependencies in a subdirectory because |
| 3951 | # it helps to detect inapplicable dependency modes. For instance |
| 3952 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 3953 | # side effect of compilation, but ICC will put the dependencies in |
| 3954 | # the current directory while Tru64 will put them in the object |
| 3955 | # directory. |
| 3956 | mkdir sub |
| 3957 | |
| 3958 | am_cv_CC_dependencies_compiler_type=none |
| 3959 | if test "$am_compiler_list" = ""; then |
| 3960 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 3961 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3962 | am__universal=false |
| 3963 | case " $depcc " in #( |
| 3964 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 3965 | esac |
| 3966 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3967 | for depmode in $am_compiler_list; do |
| 3968 | # Setup a source with many dependencies, because some compilers |
| 3969 | # like to wrap large dependency lists on column 80 (with \), and |
| 3970 | # we should not choose a depcomp mode which is confused by this. |
| 3971 | # |
| 3972 | # We need to recreate these files for each test, as the compiler may |
| 3973 | # overwrite some of them when testing with obscure command lines. |
| 3974 | # This happens at least with the AIX C compiler. |
| 3975 | : > sub/conftest.c |
| 3976 | for i in 1 2 3 4 5 6; do |
| 3977 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 3978 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 3979 | # Solaris 8's {/usr,}/bin/sh. |
| 3980 | touch sub/conftst$i.h |
| 3981 | done |
| 3982 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 3983 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3984 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 3985 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 3986 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 3987 | # versions had trouble with output in subdirs |
| 3988 | am__obj=sub/conftest.${OBJEXT-o} |
| 3989 | am__minus_obj="-o $am__obj" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3990 | case $depmode in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3991 | gcc) |
| 3992 | # This depmode causes a compiler race in universal mode. |
| 3993 | test "$am__universal" = false || continue |
| 3994 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3995 | nosideeffect) |
| 3996 | # after this tag, mechanisms are not by side-effect, so they'll |
| 3997 | # only be used when explicitly requested |
| 3998 | if test "x$enable_dependency_tracking" = xyes; then |
| 3999 | continue |
| 4000 | else |
| 4001 | break |
| 4002 | fi |
| 4003 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4004 | msvisualcpp | msvcmsys) |
| 4005 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 4006 | # not run yet. These depmodes are late enough in the game, and |
| 4007 | # so weak that their functioning should not be impacted. |
| 4008 | am__obj=conftest.${OBJEXT-o} |
| 4009 | am__minus_obj= |
| 4010 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4011 | none) break ;; |
| 4012 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4013 | if depmode=$depmode \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4014 | source=sub/conftest.c object=$am__obj \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4015 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4016 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4017 | >/dev/null 2>conftest.err && |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 4018 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4019 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4020 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4021 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 4022 | # icc doesn't choke on unknown options, it will just issue warnings |
| 4023 | # or remarks (even with -Werror). So we grep stderr for any message |
| 4024 | # that says an option was ignored or not supported. |
| 4025 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 4026 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 4027 | # The diagnosis changed in icc 8.0: |
| 4028 | # icc: Command line remark: option '-MP' not supported |
| 4029 | if (grep 'ignoring option' conftest.err || |
| 4030 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 4031 | am_cv_CC_dependencies_compiler_type=$depmode |
| 4032 | break |
| 4033 | fi |
| 4034 | fi |
| 4035 | done |
| 4036 | |
| 4037 | cd .. |
| 4038 | rm -rf conftest.dir |
| 4039 | else |
| 4040 | am_cv_CC_dependencies_compiler_type=none |
| 4041 | fi |
| 4042 | |
| 4043 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 4045 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4046 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 4047 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 4048 | if |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4049 | test "x$enable_dependency_tracking" != xno \ |
| 4050 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 4051 | am__fastdepCC_TRUE= |
| 4052 | am__fastdepCC_FALSE='#' |
| 4053 | else |
| 4054 | am__fastdepCC_TRUE='#' |
| 4055 | am__fastdepCC_FALSE= |
| 4056 | fi |
| 4057 | |
| 4058 | |
| 4059 | ac_ext=c |
| 4060 | ac_cpp='$CPP $CPPFLAGS' |
| 4061 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4062 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4063 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 4065 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4066 | # On Suns, sometimes $CPP names a directory. |
| 4067 | if test -n "$CPP" && test -d "$CPP"; then |
| 4068 | CPP= |
| 4069 | fi |
| 4070 | if test -z "$CPP"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4071 | if test "${ac_cv_prog_CPP+set}" = set; then : |
| 4072 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4073 | else |
| 4074 | # Double quotes because CPP needs to be expanded |
| 4075 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4076 | do |
| 4077 | ac_preproc_ok=false |
| 4078 | for ac_c_preproc_warn_flag in '' yes |
| 4079 | do |
| 4080 | # Use a header file that comes with gcc, so configuring glibc |
| 4081 | # with a fresh cross-compiler works. |
| 4082 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4083 | # <limits.h> exists even on freestanding compilers. |
| 4084 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4085 | # not just through cpp. "Syntax error" is here to catch this case. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4087 | /* end confdefs.h. */ |
| 4088 | #ifdef __STDC__ |
| 4089 | # include <limits.h> |
| 4090 | #else |
| 4091 | # include <assert.h> |
| 4092 | #endif |
| 4093 | Syntax error |
| 4094 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4095 | if ac_fn_c_try_cpp "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4096 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4097 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4098 | # Broken: fails on valid input. |
| 4099 | continue |
| 4100 | fi |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 4101 | rm -f conftest.err conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4102 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4103 | # OK, works on sane cases. Now check whether nonexistent headers |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4104 | # can be detected and how. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4105 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4106 | /* end confdefs.h. */ |
| 4107 | #include <ac_nonexistent.h> |
| 4108 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4109 | if ac_fn_c_try_cpp "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4110 | # Broken: success on invalid input. |
| 4111 | continue |
| 4112 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4113 | # Passes both tests. |
| 4114 | ac_preproc_ok=: |
| 4115 | break |
| 4116 | fi |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 4117 | rm -f conftest.err conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4118 | |
| 4119 | done |
| 4120 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 4121 | rm -f conftest.err conftest.$ac_ext |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4122 | if $ac_preproc_ok; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4123 | break |
| 4124 | fi |
| 4125 | |
| 4126 | done |
| 4127 | ac_cv_prog_CPP=$CPP |
| 4128 | |
| 4129 | fi |
| 4130 | CPP=$ac_cv_prog_CPP |
| 4131 | else |
| 4132 | ac_cv_prog_CPP=$CPP |
| 4133 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 4135 | $as_echo "$CPP" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4136 | ac_preproc_ok=false |
| 4137 | for ac_c_preproc_warn_flag in '' yes |
| 4138 | do |
| 4139 | # Use a header file that comes with gcc, so configuring glibc |
| 4140 | # with a fresh cross-compiler works. |
| 4141 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4142 | # <limits.h> exists even on freestanding compilers. |
| 4143 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4144 | # not just through cpp. "Syntax error" is here to catch this case. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4145 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4146 | /* end confdefs.h. */ |
| 4147 | #ifdef __STDC__ |
| 4148 | # include <limits.h> |
| 4149 | #else |
| 4150 | # include <assert.h> |
| 4151 | #endif |
| 4152 | Syntax error |
| 4153 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4154 | if ac_fn_c_try_cpp "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4155 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4156 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4157 | # Broken: fails on valid input. |
| 4158 | continue |
| 4159 | fi |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 4160 | rm -f conftest.err conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4161 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4162 | # OK, works on sane cases. Now check whether nonexistent headers |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4163 | # can be detected and how. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4164 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4165 | /* end confdefs.h. */ |
| 4166 | #include <ac_nonexistent.h> |
| 4167 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4168 | if ac_fn_c_try_cpp "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4169 | # Broken: success on invalid input. |
| 4170 | continue |
| 4171 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4172 | # Passes both tests. |
| 4173 | ac_preproc_ok=: |
| 4174 | break |
| 4175 | fi |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 4176 | rm -f conftest.err conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4177 | |
| 4178 | done |
| 4179 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 4180 | rm -f conftest.err conftest.$ac_ext |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4181 | if $ac_preproc_ok; then : |
| 4182 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4183 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4184 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4185 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 4186 | as_fn_error "C preprocessor \"$CPP\" fails sanity check |
| 4187 | See \`config.log' for more details." "$LINENO" 5; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4188 | fi |
| 4189 | |
| 4190 | ac_ext=c |
| 4191 | ac_cpp='$CPP $CPPFLAGS' |
| 4192 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4193 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4194 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4195 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4196 | ac_ext=cpp |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4197 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 4198 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4199 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4200 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4201 | if test -z "$CXX"; then |
| 4202 | if test -n "$CCC"; then |
| 4203 | CXX=$CCC |
| 4204 | else |
| 4205 | if test -n "$ac_tool_prefix"; then |
| 4206 | 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] | 4207 | do |
| 4208 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4209 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4211 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4212 | if test "${ac_cv_prog_CXX+set}" = set; then : |
| 4213 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4214 | else |
| 4215 | if test -n "$CXX"; then |
| 4216 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 4217 | else |
| 4218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4219 | for as_dir in $PATH |
| 4220 | do |
| 4221 | IFS=$as_save_IFS |
| 4222 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4223 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 4224 | 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] | 4225 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4226 | $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] | 4227 | break 2 |
| 4228 | fi |
| 4229 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4230 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4231 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4232 | |
| 4233 | fi |
| 4234 | fi |
| 4235 | CXX=$ac_cv_prog_CXX |
| 4236 | if test -n "$CXX"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 4238 | $as_echo "$CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4239 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4241 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4242 | fi |
| 4243 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4244 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4245 | test -n "$CXX" && break |
| 4246 | done |
| 4247 | fi |
| 4248 | if test -z "$CXX"; then |
| 4249 | ac_ct_CXX=$CXX |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4250 | 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] | 4251 | do |
| 4252 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4253 | set dummy $ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4255 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4256 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : |
| 4257 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4258 | else |
| 4259 | if test -n "$ac_ct_CXX"; then |
| 4260 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 4261 | else |
| 4262 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4263 | for as_dir in $PATH |
| 4264 | do |
| 4265 | IFS=$as_save_IFS |
| 4266 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4267 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 4268 | 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] | 4269 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4270 | $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] | 4271 | break 2 |
| 4272 | fi |
| 4273 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4274 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4275 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4276 | |
| 4277 | fi |
| 4278 | fi |
| 4279 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 4280 | if test -n "$ac_ct_CXX"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 4282 | $as_echo "$ac_ct_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4283 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4285 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4286 | fi |
| 4287 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4288 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4289 | test -n "$ac_ct_CXX" && break |
| 4290 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4291 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4292 | if test "x$ac_ct_CXX" = x; then |
| 4293 | CXX="g++" |
| 4294 | else |
| 4295 | case $cross_compiling:$ac_tool_warned in |
| 4296 | yes:) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4297 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4298 | $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] | 4299 | ac_tool_warned=yes ;; |
| 4300 | esac |
| 4301 | CXX=$ac_ct_CXX |
| 4302 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4303 | fi |
| 4304 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4305 | fi |
| 4306 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4307 | # Provide some information about the compiler. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4308 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 4309 | set X $ac_compile |
| 4310 | ac_compiler=$2 |
| 4311 | for ac_option in --version -v -V -qversion; do |
| 4312 | { { ac_try="$ac_compiler $ac_option >&5" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4313 | case "(($ac_try" in |
| 4314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4315 | *) ac_try_echo=$ac_try;; |
| 4316 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4317 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4318 | $as_echo "$ac_try_echo"; } >&5 |
| 4319 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4320 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4321 | if test -s conftest.err; then |
| 4322 | sed '10a\ |
| 4323 | ... rest of stderr output deleted ... |
| 4324 | 10q' conftest.err >conftest.er1 |
| 4325 | cat conftest.er1 >&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4326 | fi |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 4327 | rm -f conftest.er1 conftest.err |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4328 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4329 | test $ac_status = 0; } |
| 4330 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4331 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
| 4333 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| 4334 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : |
| 4335 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4336 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4337 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4338 | /* end confdefs.h. */ |
| 4339 | |
| 4340 | int |
| 4341 | main () |
| 4342 | { |
| 4343 | #ifndef __GNUC__ |
| 4344 | choke me |
| 4345 | #endif |
| 4346 | |
| 4347 | ; |
| 4348 | return 0; |
| 4349 | } |
| 4350 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4351 | if ac_fn_cxx_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4352 | ac_compiler_gnu=yes |
| 4353 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4354 | ac_compiler_gnu=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4355 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4356 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4357 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 4358 | |
| 4359 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 4361 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 4362 | if test $ac_compiler_gnu = yes; then |
| 4363 | GXX=yes |
| 4364 | else |
| 4365 | GXX= |
| 4366 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4367 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 4368 | ac_save_CXXFLAGS=$CXXFLAGS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 4370 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| 4371 | if test "${ac_cv_prog_cxx_g+set}" = set; then : |
| 4372 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4373 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4374 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 4375 | ac_cxx_werror_flag=yes |
| 4376 | ac_cv_prog_cxx_g=no |
| 4377 | CXXFLAGS="-g" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4378 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4379 | /* end confdefs.h. */ |
| 4380 | |
| 4381 | int |
| 4382 | main () |
| 4383 | { |
| 4384 | |
| 4385 | ; |
| 4386 | return 0; |
| 4387 | } |
| 4388 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4389 | if ac_fn_cxx_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4390 | ac_cv_prog_cxx_g=yes |
| 4391 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4392 | CXXFLAGS="" |
| 4393 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4394 | /* end confdefs.h. */ |
| 4395 | |
| 4396 | int |
| 4397 | main () |
| 4398 | { |
| 4399 | |
| 4400 | ; |
| 4401 | return 0; |
| 4402 | } |
| 4403 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4404 | if ac_fn_cxx_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4405 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4406 | else |
| 4407 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4408 | CXXFLAGS="-g" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4409 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4410 | /* end confdefs.h. */ |
| 4411 | |
| 4412 | int |
| 4413 | main () |
| 4414 | { |
| 4415 | |
| 4416 | ; |
| 4417 | return 0; |
| 4418 | } |
| 4419 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4420 | if ac_fn_cxx_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4421 | ac_cv_prog_cxx_g=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 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 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4424 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4425 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4426 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4427 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4428 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 4429 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 4431 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4432 | if test "$ac_test_CXXFLAGS" = set; then |
| 4433 | CXXFLAGS=$ac_save_CXXFLAGS |
| 4434 | elif test $ac_cv_prog_cxx_g = yes; then |
| 4435 | if test "$GXX" = yes; then |
| 4436 | CXXFLAGS="-g -O2" |
| 4437 | else |
| 4438 | CXXFLAGS="-g" |
| 4439 | fi |
| 4440 | else |
| 4441 | if test "$GXX" = yes; then |
| 4442 | CXXFLAGS="-O2" |
| 4443 | else |
| 4444 | CXXFLAGS= |
| 4445 | fi |
| 4446 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4447 | ac_ext=c |
| 4448 | ac_cpp='$CPP $CPPFLAGS' |
| 4449 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4450 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4451 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4452 | |
| 4453 | depcc="$CXX" am_compiler_list= |
| 4454 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 4456 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 4457 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : |
| 4458 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4459 | else |
| 4460 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 4461 | # We make a subdir and do the tests there. Otherwise we can end up |
| 4462 | # making bogus files that we don't know about and never remove. For |
| 4463 | # instance it was reported that on HP-UX the gcc test will end up |
| 4464 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 4465 | # in D'. |
| 4466 | mkdir conftest.dir |
| 4467 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 4468 | # using a relative directory. |
| 4469 | cp "$am_depcomp" conftest.dir |
| 4470 | cd conftest.dir |
| 4471 | # We will build objects and dependencies in a subdirectory because |
| 4472 | # it helps to detect inapplicable dependency modes. For instance |
| 4473 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 4474 | # side effect of compilation, but ICC will put the dependencies in |
| 4475 | # the current directory while Tru64 will put them in the object |
| 4476 | # directory. |
| 4477 | mkdir sub |
| 4478 | |
| 4479 | am_cv_CXX_dependencies_compiler_type=none |
| 4480 | if test "$am_compiler_list" = ""; then |
| 4481 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 4482 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4483 | am__universal=false |
| 4484 | case " $depcc " in #( |
| 4485 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 4486 | esac |
| 4487 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4488 | for depmode in $am_compiler_list; do |
| 4489 | # Setup a source with many dependencies, because some compilers |
| 4490 | # like to wrap large dependency lists on column 80 (with \), and |
| 4491 | # we should not choose a depcomp mode which is confused by this. |
| 4492 | # |
| 4493 | # We need to recreate these files for each test, as the compiler may |
| 4494 | # overwrite some of them when testing with obscure command lines. |
| 4495 | # This happens at least with the AIX C compiler. |
| 4496 | : > sub/conftest.c |
| 4497 | for i in 1 2 3 4 5 6; do |
| 4498 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 4499 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 4500 | # Solaris 8's {/usr,}/bin/sh. |
| 4501 | touch sub/conftst$i.h |
| 4502 | done |
| 4503 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 4504 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4505 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 4506 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 4507 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 4508 | # versions had trouble with output in subdirs |
| 4509 | am__obj=sub/conftest.${OBJEXT-o} |
| 4510 | am__minus_obj="-o $am__obj" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4511 | case $depmode in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4512 | gcc) |
| 4513 | # This depmode causes a compiler race in universal mode. |
| 4514 | test "$am__universal" = false || continue |
| 4515 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4516 | nosideeffect) |
| 4517 | # after this tag, mechanisms are not by side-effect, so they'll |
| 4518 | # only be used when explicitly requested |
| 4519 | if test "x$enable_dependency_tracking" = xyes; then |
| 4520 | continue |
| 4521 | else |
| 4522 | break |
| 4523 | fi |
| 4524 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4525 | msvisualcpp | msvcmsys) |
| 4526 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 4527 | # not run yet. These depmodes are late enough in the game, and |
| 4528 | # so weak that their functioning should not be impacted. |
| 4529 | am__obj=conftest.${OBJEXT-o} |
| 4530 | am__minus_obj= |
| 4531 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4532 | none) break ;; |
| 4533 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4534 | if depmode=$depmode \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4535 | source=sub/conftest.c object=$am__obj \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4536 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4537 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4538 | >/dev/null 2>conftest.err && |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 4539 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4540 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4541 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4542 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 4543 | # icc doesn't choke on unknown options, it will just issue warnings |
| 4544 | # or remarks (even with -Werror). So we grep stderr for any message |
| 4545 | # that says an option was ignored or not supported. |
| 4546 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 4547 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 4548 | # The diagnosis changed in icc 8.0: |
| 4549 | # icc: Command line remark: option '-MP' not supported |
| 4550 | if (grep 'ignoring option' conftest.err || |
| 4551 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 4552 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 4553 | break |
| 4554 | fi |
| 4555 | fi |
| 4556 | done |
| 4557 | |
| 4558 | cd .. |
| 4559 | rm -rf conftest.dir |
| 4560 | else |
| 4561 | am_cv_CXX_dependencies_compiler_type=none |
| 4562 | fi |
| 4563 | |
| 4564 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 4566 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4567 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 4568 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 4569 | if |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4570 | test "x$enable_dependency_tracking" != xno \ |
| 4571 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 4572 | am__fastdepCXX_TRUE= |
| 4573 | am__fastdepCXX_FALSE='#' |
| 4574 | else |
| 4575 | am__fastdepCXX_TRUE='#' |
| 4576 | am__fastdepCXX_FALSE= |
| 4577 | fi |
| 4578 | |
| 4579 | |
| 4580 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4581 | case `pwd` in |
| 4582 | *\ * | *\ *) |
| 4583 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
| 4584 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
| 4585 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4586 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4587 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4588 | |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 4589 | macro_version='2.2.6b' |
| 4590 | macro_revision='1.3017' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4591 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4592 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4593 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4594 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4595 | |
| 4596 | |
| 4597 | |
| 4598 | |
| 4599 | |
| 4600 | |
| 4601 | |
| 4602 | |
| 4603 | |
| 4604 | ltmain="$ac_aux_dir/ltmain.sh" |
| 4605 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
| 4607 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
| 4608 | if test "${ac_cv_path_SED+set}" = set; then : |
| 4609 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4610 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4611 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 4612 | for ac_i in 1 2 3 4 5 6 7; do |
| 4613 | ac_script="$ac_script$as_nl$ac_script" |
| 4614 | done |
| 4615 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
| 4616 | { ac_script=; unset ac_script;} |
| 4617 | if test -z "$SED"; then |
| 4618 | ac_path_SED_found=false |
| 4619 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4620 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4621 | for as_dir in $PATH |
| 4622 | do |
| 4623 | IFS=$as_save_IFS |
| 4624 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4625 | for ac_prog in sed gsed; do |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4626 | for ac_exec_ext in '' $ac_executable_extensions; do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4627 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
| 4628 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue |
| 4629 | # Check for GNU ac_path_SED and select it if it is found. |
| 4630 | # Check for GNU $ac_path_SED |
| 4631 | case `"$ac_path_SED" --version 2>&1` in |
| 4632 | *GNU*) |
| 4633 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 4634 | *) |
| 4635 | ac_count=0 |
| 4636 | $as_echo_n 0123456789 >"conftest.in" |
| 4637 | while : |
| 4638 | do |
| 4639 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4640 | mv "conftest.tmp" "conftest.in" |
| 4641 | cp "conftest.in" "conftest.nl" |
| 4642 | $as_echo '' >> "conftest.nl" |
| 4643 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4644 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4645 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4646 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 4647 | # Best one so far, save it but keep looking for a better one |
| 4648 | ac_cv_path_SED="$ac_path_SED" |
| 4649 | ac_path_SED_max=$ac_count |
| 4650 | fi |
| 4651 | # 10*(2^10) chars as input seems more than enough |
| 4652 | test $ac_count -gt 10 && break |
| 4653 | done |
| 4654 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4655 | esac |
| 4656 | |
| 4657 | $ac_path_SED_found && break 3 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4658 | done |
| 4659 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4660 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4661 | IFS=$as_save_IFS |
| 4662 | if test -z "$ac_cv_path_SED"; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 4663 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4664 | fi |
| 4665 | else |
| 4666 | ac_cv_path_SED=$SED |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4667 | fi |
| 4668 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4669 | fi |
| 4670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| 4671 | $as_echo "$ac_cv_path_SED" >&6; } |
| 4672 | SED="$ac_cv_path_SED" |
| 4673 | rm -f conftest.sed |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 4674 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4675 | test -z "$SED" && SED=sed |
| 4676 | Xsed="$SED -e 1s/^X//" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4677 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4678 | |
| 4679 | |
| 4680 | |
| 4681 | |
| 4682 | |
| 4683 | |
| 4684 | |
| 4685 | |
| 4686 | |
| 4687 | |
| 4688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 4689 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 4690 | if test "${ac_cv_path_GREP+set}" = set; then : |
| 4691 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4692 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4693 | if test -z "$GREP"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4694 | ac_path_GREP_found=false |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4695 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4696 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4697 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4698 | do |
| 4699 | IFS=$as_save_IFS |
| 4700 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4701 | for ac_prog in grep ggrep; do |
| 4702 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4703 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4704 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 4705 | # Check for GNU ac_path_GREP and select it if it is found. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4706 | # Check for GNU $ac_path_GREP |
| 4707 | case `"$ac_path_GREP" --version 2>&1` in |
| 4708 | *GNU*) |
| 4709 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4710 | *) |
| 4711 | ac_count=0 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4712 | $as_echo_n 0123456789 >"conftest.in" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4713 | while : |
| 4714 | do |
| 4715 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4716 | mv "conftest.tmp" "conftest.in" |
| 4717 | cp "conftest.in" "conftest.nl" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4718 | $as_echo 'GREP' >> "conftest.nl" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4719 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4720 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4721 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4722 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4723 | # Best one so far, save it but keep looking for a better one |
| 4724 | ac_cv_path_GREP="$ac_path_GREP" |
| 4725 | ac_path_GREP_max=$ac_count |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4726 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4727 | # 10*(2^10) chars as input seems more than enough |
| 4728 | test $ac_count -gt 10 && break |
| 4729 | done |
| 4730 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4731 | esac |
| 4732 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4733 | $ac_path_GREP_found && break 3 |
| 4734 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4735 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4736 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4737 | IFS=$as_save_IFS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4738 | if test -z "$ac_cv_path_GREP"; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 4739 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4740 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4741 | else |
| 4742 | ac_cv_path_GREP=$GREP |
| 4743 | fi |
| 4744 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4745 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 4747 | $as_echo "$ac_cv_path_GREP" >&6; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4748 | GREP="$ac_cv_path_GREP" |
| 4749 | |
| 4750 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 4752 | $as_echo_n "checking for egrep... " >&6; } |
| 4753 | if test "${ac_cv_path_EGREP+set}" = set; then : |
| 4754 | $as_echo_n "(cached) " >&6 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4755 | else |
| 4756 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4757 | then ac_cv_path_EGREP="$GREP -E" |
| 4758 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4759 | if test -z "$EGREP"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4760 | ac_path_EGREP_found=false |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4761 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4762 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4763 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4764 | do |
| 4765 | IFS=$as_save_IFS |
| 4766 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4767 | for ac_prog in egrep; do |
| 4768 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4769 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4770 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 4771 | # Check for GNU ac_path_EGREP and select it if it is found. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4772 | # Check for GNU $ac_path_EGREP |
| 4773 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4774 | *GNU*) |
| 4775 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4776 | *) |
| 4777 | ac_count=0 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4778 | $as_echo_n 0123456789 >"conftest.in" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4779 | while : |
| 4780 | do |
| 4781 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4782 | mv "conftest.tmp" "conftest.in" |
| 4783 | cp "conftest.in" "conftest.nl" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4784 | $as_echo 'EGREP' >> "conftest.nl" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4785 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4786 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4787 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4788 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4789 | # Best one so far, save it but keep looking for a better one |
| 4790 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4791 | ac_path_EGREP_max=$ac_count |
| 4792 | fi |
| 4793 | # 10*(2^10) chars as input seems more than enough |
| 4794 | test $ac_count -gt 10 && break |
| 4795 | done |
| 4796 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4797 | esac |
| 4798 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4799 | $ac_path_EGREP_found && break 3 |
| 4800 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4801 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4802 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4803 | IFS=$as_save_IFS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4804 | if test -z "$ac_cv_path_EGREP"; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 4805 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4806 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4807 | else |
| 4808 | ac_cv_path_EGREP=$EGREP |
| 4809 | fi |
| 4810 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4811 | fi |
| 4812 | fi |
| 4813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 4814 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 4815 | EGREP="$ac_cv_path_EGREP" |
| 4816 | |
| 4817 | |
| 4818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
| 4819 | $as_echo_n "checking for fgrep... " >&6; } |
| 4820 | if test "${ac_cv_path_FGREP+set}" = set; then : |
| 4821 | $as_echo_n "(cached) " >&6 |
| 4822 | else |
| 4823 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
| 4824 | then ac_cv_path_FGREP="$GREP -F" |
| 4825 | else |
| 4826 | if test -z "$FGREP"; then |
| 4827 | ac_path_FGREP_found=false |
| 4828 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4829 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4830 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4831 | do |
| 4832 | IFS=$as_save_IFS |
| 4833 | test -z "$as_dir" && as_dir=. |
| 4834 | for ac_prog in fgrep; do |
| 4835 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4836 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4837 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue |
| 4838 | # Check for GNU ac_path_FGREP and select it if it is found. |
| 4839 | # Check for GNU $ac_path_FGREP |
| 4840 | case `"$ac_path_FGREP" --version 2>&1` in |
| 4841 | *GNU*) |
| 4842 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
| 4843 | *) |
| 4844 | ac_count=0 |
| 4845 | $as_echo_n 0123456789 >"conftest.in" |
| 4846 | while : |
| 4847 | do |
| 4848 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4849 | mv "conftest.tmp" "conftest.in" |
| 4850 | cp "conftest.in" "conftest.nl" |
| 4851 | $as_echo 'FGREP' >> "conftest.nl" |
| 4852 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4853 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4854 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4855 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
| 4856 | # Best one so far, save it but keep looking for a better one |
| 4857 | ac_cv_path_FGREP="$ac_path_FGREP" |
| 4858 | ac_path_FGREP_max=$ac_count |
| 4859 | fi |
| 4860 | # 10*(2^10) chars as input seems more than enough |
| 4861 | test $ac_count -gt 10 && break |
| 4862 | done |
| 4863 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4864 | esac |
| 4865 | |
| 4866 | $ac_path_FGREP_found && break 3 |
| 4867 | done |
| 4868 | done |
| 4869 | done |
| 4870 | IFS=$as_save_IFS |
| 4871 | if test -z "$ac_cv_path_FGREP"; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 4872 | as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4873 | fi |
| 4874 | else |
| 4875 | ac_cv_path_FGREP=$FGREP |
| 4876 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4877 | |
| 4878 | fi |
| 4879 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
| 4881 | $as_echo "$ac_cv_path_FGREP" >&6; } |
| 4882 | FGREP="$ac_cv_path_FGREP" |
| 4883 | |
| 4884 | |
| 4885 | test -z "$GREP" && GREP=grep |
| 4886 | |
| 4887 | |
| 4888 | |
| 4889 | |
| 4890 | |
| 4891 | |
| 4892 | |
| 4893 | |
| 4894 | |
| 4895 | |
| 4896 | |
| 4897 | |
| 4898 | |
| 4899 | |
| 4900 | |
| 4901 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4902 | |
| 4903 | |
| 4904 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4905 | # Check whether --with-gnu-ld was given. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4906 | if test "${with_gnu_ld+set}" = set; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4907 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4908 | else |
| 4909 | with_gnu_ld=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4910 | fi |
| 4911 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4912 | ac_prog=ld |
| 4913 | if test "$GCC" = yes; then |
| 4914 | # Check if gcc -print-prog-name=ld gives a path. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 4916 | $as_echo_n "checking for ld used by $CC... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4917 | case $host in |
| 4918 | *-*-mingw*) |
| 4919 | # gcc leaves a trailing carriage return which upsets mingw |
| 4920 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 4921 | *) |
| 4922 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 4923 | esac |
| 4924 | case $ac_prog in |
| 4925 | # Accept absolute paths. |
| 4926 | [\\/]* | ?:[\\/]*) |
| 4927 | re_direlt='/[^/][^/]*/\.\./' |
| 4928 | # Canonicalize the pathname of ld |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4929 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 4930 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 4931 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4932 | done |
| 4933 | test -z "$LD" && LD="$ac_prog" |
| 4934 | ;; |
| 4935 | "") |
| 4936 | # If it fails, then pretend we aren't using GCC. |
| 4937 | ac_prog=ld |
| 4938 | ;; |
| 4939 | *) |
| 4940 | # If it is relative, then search for the first ld in PATH. |
| 4941 | with_gnu_ld=unknown |
| 4942 | ;; |
| 4943 | esac |
| 4944 | elif test "$with_gnu_ld" = yes; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 4946 | $as_echo_n "checking for GNU ld... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4947 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 4949 | $as_echo_n "checking for non-GNU ld... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4950 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4951 | if test "${lt_cv_path_LD+set}" = set; then : |
| 4952 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4953 | else |
| 4954 | if test -z "$LD"; then |
| 4955 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 4956 | for ac_dir in $PATH; do |
| 4957 | IFS="$lt_save_ifs" |
| 4958 | test -z "$ac_dir" && ac_dir=. |
| 4959 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 4960 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 4961 | # 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] | 4962 | # but apparently some variants of GNU ld only accept -v. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4963 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 4964 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 4965 | *GNU* | *'with BFD'*) |
| 4966 | test "$with_gnu_ld" != no && break |
| 4967 | ;; |
| 4968 | *) |
| 4969 | test "$with_gnu_ld" != yes && break |
| 4970 | ;; |
| 4971 | esac |
| 4972 | fi |
| 4973 | done |
| 4974 | IFS="$lt_save_ifs" |
| 4975 | else |
| 4976 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 4977 | fi |
| 4978 | fi |
| 4979 | |
| 4980 | LD="$lt_cv_path_LD" |
| 4981 | if test -n "$LD"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 4983 | $as_echo "$LD" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4984 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4986 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4987 | fi |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 4988 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 4990 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
| 4991 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : |
| 4992 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4993 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4994 | # 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] | 4995 | case `$LD -v 2>&1 </dev/null` in |
| 4996 | *GNU* | *'with BFD'*) |
| 4997 | lt_cv_prog_gnu_ld=yes |
| 4998 | ;; |
| 4999 | *) |
| 5000 | lt_cv_prog_gnu_ld=no |
| 5001 | ;; |
| 5002 | esac |
| 5003 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 5005 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5006 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 5007 | |
| 5008 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5009 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5010 | |
| 5011 | |
| 5012 | |
| 5013 | |
| 5014 | |
| 5015 | |
| 5016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
| 5017 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
| 5018 | if test "${lt_cv_path_NM+set}" = set; then : |
| 5019 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5020 | else |
| 5021 | if test -n "$NM"; then |
| 5022 | # Let the user override the test. |
| 5023 | lt_cv_path_NM="$NM" |
| 5024 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5025 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 5026 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 5027 | lt_nm_to_check="$lt_nm_to_check nm" |
| 5028 | fi |
| 5029 | for lt_tmp_nm in $lt_nm_to_check; do |
| 5030 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5031 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 5032 | IFS="$lt_save_ifs" |
| 5033 | test -z "$ac_dir" && ac_dir=. |
| 5034 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 5035 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 5036 | # Check to see if the nm accepts a BSD-compat flag. |
| 5037 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 5038 | # nm: unknown option "B" ignored |
| 5039 | # Tru64's nm complains that /dev/null is an invalid object file |
| 5040 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 5041 | */dev/null* | *'Invalid file or object type'*) |
| 5042 | lt_cv_path_NM="$tmp_nm -B" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5043 | break |
| 5044 | ;; |
| 5045 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5046 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 5047 | */dev/null*) |
| 5048 | lt_cv_path_NM="$tmp_nm -p" |
| 5049 | break |
| 5050 | ;; |
| 5051 | *) |
| 5052 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 5053 | continue # so that we can try to find one that supports BSD flags |
| 5054 | ;; |
| 5055 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5056 | ;; |
| 5057 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5058 | fi |
| 5059 | done |
| 5060 | IFS="$lt_save_ifs" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5061 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5062 | : ${lt_cv_path_NM=no} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5063 | fi |
| 5064 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
| 5066 | $as_echo "$lt_cv_path_NM" >&6; } |
| 5067 | if test "$lt_cv_path_NM" != "no"; then |
| 5068 | NM="$lt_cv_path_NM" |
| 5069 | else |
| 5070 | # Didn't find any BSD compatible name lister, look for dumpbin. |
| 5071 | if test -n "$ac_tool_prefix"; then |
| 5072 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" |
| 5073 | do |
| 5074 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5075 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5077 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5078 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : |
| 5079 | $as_echo_n "(cached) " >&6 |
| 5080 | else |
| 5081 | if test -n "$DUMPBIN"; then |
| 5082 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
| 5083 | else |
| 5084 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5085 | for as_dir in $PATH |
| 5086 | do |
| 5087 | IFS=$as_save_IFS |
| 5088 | test -z "$as_dir" && as_dir=. |
| 5089 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5090 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5091 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
| 5092 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5093 | break 2 |
| 5094 | fi |
| 5095 | done |
| 5096 | done |
| 5097 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5098 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5099 | fi |
| 5100 | fi |
| 5101 | DUMPBIN=$ac_cv_prog_DUMPBIN |
| 5102 | if test -n "$DUMPBIN"; then |
| 5103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
| 5104 | $as_echo "$DUMPBIN" >&6; } |
| 5105 | else |
| 5106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5107 | $as_echo "no" >&6; } |
| 5108 | fi |
| 5109 | |
| 5110 | |
| 5111 | test -n "$DUMPBIN" && break |
| 5112 | done |
| 5113 | fi |
| 5114 | if test -z "$DUMPBIN"; then |
| 5115 | ac_ct_DUMPBIN=$DUMPBIN |
| 5116 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" |
| 5117 | do |
| 5118 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5119 | set dummy $ac_prog; ac_word=$2 |
| 5120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5121 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5122 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : |
| 5123 | $as_echo_n "(cached) " >&6 |
| 5124 | else |
| 5125 | if test -n "$ac_ct_DUMPBIN"; then |
| 5126 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
| 5127 | else |
| 5128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5129 | for as_dir in $PATH |
| 5130 | do |
| 5131 | IFS=$as_save_IFS |
| 5132 | test -z "$as_dir" && as_dir=. |
| 5133 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5134 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5135 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
| 5136 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5137 | break 2 |
| 5138 | fi |
| 5139 | done |
| 5140 | done |
| 5141 | IFS=$as_save_IFS |
| 5142 | |
| 5143 | fi |
| 5144 | fi |
| 5145 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
| 5146 | if test -n "$ac_ct_DUMPBIN"; then |
| 5147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
| 5148 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
| 5149 | else |
| 5150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5151 | $as_echo "no" >&6; } |
| 5152 | fi |
| 5153 | |
| 5154 | |
| 5155 | test -n "$ac_ct_DUMPBIN" && break |
| 5156 | done |
| 5157 | |
| 5158 | if test "x$ac_ct_DUMPBIN" = x; then |
| 5159 | DUMPBIN=":" |
| 5160 | else |
| 5161 | case $cross_compiling:$ac_tool_warned in |
| 5162 | yes:) |
| 5163 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5164 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5165 | ac_tool_warned=yes ;; |
| 5166 | esac |
| 5167 | DUMPBIN=$ac_ct_DUMPBIN |
| 5168 | fi |
| 5169 | fi |
| 5170 | |
| 5171 | |
| 5172 | if test "$DUMPBIN" != ":"; then |
| 5173 | NM="$DUMPBIN" |
| 5174 | fi |
| 5175 | fi |
| 5176 | test -z "$NM" && NM=nm |
| 5177 | |
| 5178 | |
| 5179 | |
| 5180 | |
| 5181 | |
| 5182 | |
| 5183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
| 5184 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
| 5185 | if test "${lt_cv_nm_interface+set}" = set; then : |
| 5186 | $as_echo_n "(cached) " >&6 |
| 5187 | else |
| 5188 | lt_cv_nm_interface="BSD nm" |
| 5189 | echo "int some_variable = 0;" > conftest.$ac_ext |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 5190 | (eval echo "\"\$as_me:5190: $ac_compile\"" >&5) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5191 | (eval "$ac_compile" 2>conftest.err) |
| 5192 | cat conftest.err >&5 |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 5193 | (eval echo "\"\$as_me:5193: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5194 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 5195 | cat conftest.err >&5 |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 5196 | (eval echo "\"\$as_me:5196: output\"" >&5) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5197 | cat conftest.out >&5 |
| 5198 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 5199 | lt_cv_nm_interface="MS dumpbin" |
| 5200 | fi |
| 5201 | rm -f conftest* |
| 5202 | fi |
| 5203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
| 5204 | $as_echo "$lt_cv_nm_interface" >&6; } |
| 5205 | |
| 5206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
| 5207 | $as_echo_n "checking whether ln -s works... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5208 | LN_S=$as_ln_s |
| 5209 | if test "$LN_S" = "ln -s"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5211 | $as_echo "yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5212 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
| 5214 | $as_echo "no, using $LN_S" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5215 | fi |
| 5216 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5217 | # find the maximum length of command line arguments |
| 5218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
| 5219 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
| 5220 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : |
| 5221 | $as_echo_n "(cached) " >&6 |
| 5222 | else |
| 5223 | i=0 |
| 5224 | teststring="ABCD" |
| 5225 | |
| 5226 | case $build_os in |
| 5227 | msdosdjgpp*) |
| 5228 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 5229 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 5230 | # during glob expansion). Even if it were fixed, the result of this |
| 5231 | # check would be larger than it should be. |
| 5232 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 5233 | ;; |
| 5234 | |
| 5235 | gnu*) |
| 5236 | # Under GNU Hurd, this test is not required because there is |
| 5237 | # no limit to the length of command line arguments. |
| 5238 | # Libtool will interpret -1 as no limit whatsoever |
| 5239 | lt_cv_sys_max_cmd_len=-1; |
| 5240 | ;; |
| 5241 | |
| 5242 | cygwin* | mingw* | cegcc*) |
| 5243 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 5244 | # about 5 minutes as the teststring grows exponentially. |
| 5245 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 5246 | # you end up with a "frozen" computer, even though with patience |
| 5247 | # the test eventually succeeds (with a max line length of 256k). |
| 5248 | # Instead, let's just punt: use the minimum linelength reported by |
| 5249 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 5250 | lt_cv_sys_max_cmd_len=8192; |
| 5251 | ;; |
| 5252 | |
| 5253 | amigaos*) |
| 5254 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 5255 | # So we just punt and use a minimum line length of 8192. |
| 5256 | lt_cv_sys_max_cmd_len=8192; |
| 5257 | ;; |
| 5258 | |
| 5259 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 5260 | # This has been around since 386BSD, at least. Likely further. |
| 5261 | if test -x /sbin/sysctl; then |
| 5262 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 5263 | elif test -x /usr/sbin/sysctl; then |
| 5264 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 5265 | else |
| 5266 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 5267 | fi |
| 5268 | # And add a safety zone |
| 5269 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 5270 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 5271 | ;; |
| 5272 | |
| 5273 | interix*) |
| 5274 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 5275 | lt_cv_sys_max_cmd_len=196608 |
| 5276 | ;; |
| 5277 | |
| 5278 | osf*) |
| 5279 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 5280 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 5281 | # nice to cause kernel panics so lets avoid the loop below. |
| 5282 | # First set a reasonable default. |
| 5283 | lt_cv_sys_max_cmd_len=16384 |
| 5284 | # |
| 5285 | if test -x /sbin/sysconfig; then |
| 5286 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 5287 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 5288 | esac |
| 5289 | fi |
| 5290 | ;; |
| 5291 | sco3.2v5*) |
| 5292 | lt_cv_sys_max_cmd_len=102400 |
| 5293 | ;; |
| 5294 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 5295 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 5296 | if test -n "$kargmax"; then |
| 5297 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 5298 | else |
| 5299 | lt_cv_sys_max_cmd_len=32768 |
| 5300 | fi |
| 5301 | ;; |
| 5302 | *) |
| 5303 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 5304 | if test -n "$lt_cv_sys_max_cmd_len"; then |
| 5305 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 5306 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 5307 | else |
| 5308 | # Make teststring a little bigger before we do anything with it. |
| 5309 | # a 1K string should be a reasonable start. |
| 5310 | for i in 1 2 3 4 5 6 7 8 ; do |
| 5311 | teststring=$teststring$teststring |
| 5312 | done |
| 5313 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 5314 | # If test is not a shell built-in, we'll probably end up computing a |
| 5315 | # maximum length that is only half of the actual maximum length, but |
| 5316 | # we can't tell. |
| 5317 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ |
| 5318 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && |
| 5319 | test $i != 17 # 1/2 MB should be enough |
| 5320 | do |
| 5321 | i=`expr $i + 1` |
| 5322 | teststring=$teststring$teststring |
| 5323 | done |
| 5324 | # Only check the string length outside the loop. |
| 5325 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 5326 | teststring= |
| 5327 | # Add a significant safety factor because C++ compilers can tack on |
| 5328 | # massive amounts of additional arguments before passing them to the |
| 5329 | # linker. It appears as though 1/2 is a usable value. |
| 5330 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 5331 | fi |
| 5332 | ;; |
| 5333 | esac |
| 5334 | |
| 5335 | fi |
| 5336 | |
| 5337 | if test -n $lt_cv_sys_max_cmd_len ; then |
| 5338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
| 5339 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
| 5340 | else |
| 5341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 5342 | $as_echo "none" >&6; } |
| 5343 | fi |
| 5344 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 5345 | |
| 5346 | |
| 5347 | |
| 5348 | |
| 5349 | |
| 5350 | |
| 5351 | : ${CP="cp -f"} |
| 5352 | : ${MV="mv -f"} |
| 5353 | : ${RM="rm -f"} |
| 5354 | |
| 5355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
| 5356 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } |
| 5357 | # Try some XSI features |
| 5358 | xsi_shell=no |
| 5359 | ( _lt_dummy="a/b/c" |
| 5360 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ |
| 5361 | = c,a/b,, \ |
| 5362 | && eval 'test $(( 1 + 1 )) -eq 2 \ |
| 5363 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
| 5364 | && xsi_shell=yes |
| 5365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
| 5366 | $as_echo "$xsi_shell" >&6; } |
| 5367 | |
| 5368 | |
| 5369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
| 5370 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } |
| 5371 | lt_shell_append=no |
| 5372 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ |
| 5373 | >/dev/null 2>&1 \ |
| 5374 | && lt_shell_append=yes |
| 5375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
| 5376 | $as_echo "$lt_shell_append" >&6; } |
| 5377 | |
| 5378 | |
| 5379 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 5380 | lt_unset=unset |
| 5381 | else |
| 5382 | lt_unset=false |
| 5383 | fi |
| 5384 | |
| 5385 | |
| 5386 | |
| 5387 | |
| 5388 | |
| 5389 | # test EBCDIC or ASCII |
| 5390 | case `echo X|tr X '\101'` in |
| 5391 | A) # ASCII based system |
| 5392 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 5393 | lt_SP2NL='tr \040 \012' |
| 5394 | lt_NL2SP='tr \015\012 \040\040' |
| 5395 | ;; |
| 5396 | *) # EBCDIC based system |
| 5397 | lt_SP2NL='tr \100 \n' |
| 5398 | lt_NL2SP='tr \r\n \100\100' |
| 5399 | ;; |
| 5400 | esac |
| 5401 | |
| 5402 | |
| 5403 | |
| 5404 | |
| 5405 | |
| 5406 | |
| 5407 | |
| 5408 | |
| 5409 | |
| 5410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
| 5411 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
| 5412 | if test "${lt_cv_ld_reload_flag+set}" = set; then : |
| 5413 | $as_echo_n "(cached) " >&6 |
| 5414 | else |
| 5415 | lt_cv_ld_reload_flag='-r' |
| 5416 | fi |
| 5417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
| 5418 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
| 5419 | reload_flag=$lt_cv_ld_reload_flag |
| 5420 | case $reload_flag in |
| 5421 | "" | " "*) ;; |
| 5422 | *) reload_flag=" $reload_flag" ;; |
| 5423 | esac |
| 5424 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 5425 | case $host_os in |
| 5426 | darwin*) |
| 5427 | if test "$GCC" = yes; then |
| 5428 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 5429 | else |
| 5430 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 5431 | fi |
| 5432 | ;; |
| 5433 | esac |
| 5434 | |
| 5435 | |
| 5436 | |
| 5437 | |
| 5438 | |
| 5439 | |
| 5440 | |
| 5441 | |
| 5442 | |
| 5443 | if test -n "$ac_tool_prefix"; then |
| 5444 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 5445 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| 5446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5447 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5448 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : |
| 5449 | $as_echo_n "(cached) " >&6 |
| 5450 | else |
| 5451 | if test -n "$OBJDUMP"; then |
| 5452 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 5453 | else |
| 5454 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5455 | for as_dir in $PATH |
| 5456 | do |
| 5457 | IFS=$as_save_IFS |
| 5458 | test -z "$as_dir" && as_dir=. |
| 5459 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5460 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5461 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| 5462 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5463 | break 2 |
| 5464 | fi |
| 5465 | done |
| 5466 | done |
| 5467 | IFS=$as_save_IFS |
| 5468 | |
| 5469 | fi |
| 5470 | fi |
| 5471 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 5472 | if test -n "$OBJDUMP"; then |
| 5473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
| 5474 | $as_echo "$OBJDUMP" >&6; } |
| 5475 | else |
| 5476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5477 | $as_echo "no" >&6; } |
| 5478 | fi |
| 5479 | |
| 5480 | |
| 5481 | fi |
| 5482 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 5483 | ac_ct_OBJDUMP=$OBJDUMP |
| 5484 | # Extract the first word of "objdump", so it can be a program name with args. |
| 5485 | set dummy objdump; ac_word=$2 |
| 5486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5487 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5488 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : |
| 5489 | $as_echo_n "(cached) " >&6 |
| 5490 | else |
| 5491 | if test -n "$ac_ct_OBJDUMP"; then |
| 5492 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 5493 | else |
| 5494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5495 | for as_dir in $PATH |
| 5496 | do |
| 5497 | IFS=$as_save_IFS |
| 5498 | test -z "$as_dir" && as_dir=. |
| 5499 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5500 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5501 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| 5502 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5503 | break 2 |
| 5504 | fi |
| 5505 | done |
| 5506 | done |
| 5507 | IFS=$as_save_IFS |
| 5508 | |
| 5509 | fi |
| 5510 | fi |
| 5511 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 5512 | if test -n "$ac_ct_OBJDUMP"; then |
| 5513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
| 5514 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
| 5515 | else |
| 5516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5517 | $as_echo "no" >&6; } |
| 5518 | fi |
| 5519 | |
| 5520 | if test "x$ac_ct_OBJDUMP" = x; then |
| 5521 | OBJDUMP="false" |
| 5522 | else |
| 5523 | case $cross_compiling:$ac_tool_warned in |
| 5524 | yes:) |
| 5525 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5526 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5527 | ac_tool_warned=yes ;; |
| 5528 | esac |
| 5529 | OBJDUMP=$ac_ct_OBJDUMP |
| 5530 | fi |
| 5531 | else |
| 5532 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 5533 | fi |
| 5534 | |
| 5535 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 5536 | |
| 5537 | |
| 5538 | |
| 5539 | |
| 5540 | |
| 5541 | |
| 5542 | |
| 5543 | |
| 5544 | |
| 5545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
| 5546 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
| 5547 | if test "${lt_cv_deplibs_check_method+set}" = set; then : |
| 5548 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5549 | else |
| 5550 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 5551 | lt_cv_file_magic_test_file= |
| 5552 | lt_cv_deplibs_check_method='unknown' |
| 5553 | # Need to set the preceding variable on all platforms that support |
| 5554 | # interlibrary dependencies. |
| 5555 | # 'none' -- dependencies not supported. |
| 5556 | # `unknown' -- same as none, but documents that we really don't know. |
| 5557 | # 'pass_all' -- all dependencies passed with no checks. |
| 5558 | # 'test_compile' -- check by making test program. |
| 5559 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 5560 | # which responds to the $file_magic_cmd with a given extended regex. |
| 5561 | # If you have `file' or equivalent on your system and you're not sure |
| 5562 | # whether `pass_all' will *always* work, you probably want this one. |
| 5563 | |
| 5564 | case $host_os in |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 5565 | aix[4-9]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5566 | lt_cv_deplibs_check_method=pass_all |
| 5567 | ;; |
| 5568 | |
| 5569 | beos*) |
| 5570 | lt_cv_deplibs_check_method=pass_all |
| 5571 | ;; |
| 5572 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5573 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5574 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 5575 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 5576 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 5577 | ;; |
| 5578 | |
| 5579 | cygwin*) |
| 5580 | # func_win32_libid is a shell function defined in ltmain.sh |
| 5581 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 5582 | lt_cv_file_magic_cmd='func_win32_libid' |
| 5583 | ;; |
| 5584 | |
| 5585 | mingw* | pw32*) |
| 5586 | # Base MSYS/MinGW do not provide the 'file' command needed by |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 5587 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 5588 | # unless we find 'file', for example because we are cross-compiling. |
| 5589 | if ( file / ) >/dev/null 2>&1; then |
| 5590 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 5591 | lt_cv_file_magic_cmd='func_win32_libid' |
| 5592 | else |
| 5593 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 5594 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 5595 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5596 | ;; |
| 5597 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5598 | cegcc) |
| 5599 | # use the weaker test based on 'objdump'. See mingw*. |
| 5600 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
| 5601 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 5602 | ;; |
| 5603 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5604 | darwin* | rhapsody*) |
| 5605 | lt_cv_deplibs_check_method=pass_all |
| 5606 | ;; |
| 5607 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 5608 | freebsd* | dragonfly*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5609 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5610 | case $host_cpu in |
| 5611 | i*86 ) |
| 5612 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 5613 | # Let's accept both of them until this is cleared up. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5614 | 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] | 5615 | lt_cv_file_magic_cmd=/usr/bin/file |
| 5616 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 5617 | ;; |
| 5618 | esac |
| 5619 | else |
| 5620 | lt_cv_deplibs_check_method=pass_all |
| 5621 | fi |
| 5622 | ;; |
| 5623 | |
| 5624 | gnu*) |
| 5625 | lt_cv_deplibs_check_method=pass_all |
| 5626 | ;; |
| 5627 | |
| 5628 | hpux10.20* | hpux11*) |
| 5629 | lt_cv_file_magic_cmd=/usr/bin/file |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5630 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5631 | ia64*) |
| 5632 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 5633 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 5634 | ;; |
| 5635 | hppa*64*) |
| 5636 | 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]' |
| 5637 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 5638 | ;; |
| 5639 | *) |
| 5640 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 5641 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 5642 | ;; |
| 5643 | esac |
| 5644 | ;; |
| 5645 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 5646 | interix[3-9]*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5647 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 5648 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 5649 | ;; |
| 5650 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5651 | irix5* | irix6* | nonstopux*) |
| 5652 | case $LD in |
| 5653 | *-32|*"-32 ") libmagic=32-bit;; |
| 5654 | *-n32|*"-n32 ") libmagic=N32;; |
| 5655 | *-64|*"-64 ") libmagic=64-bit;; |
| 5656 | *) libmagic=never-match;; |
| 5657 | esac |
| 5658 | lt_cv_deplibs_check_method=pass_all |
| 5659 | ;; |
| 5660 | |
| 5661 | # This must be Linux ELF. |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 5662 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5663 | lt_cv_deplibs_check_method=pass_all |
| 5664 | ;; |
| 5665 | |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 5666 | netbsd* | netbsdelf*-gnu) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5667 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5668 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 5669 | else |
| 5670 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 5671 | fi |
| 5672 | ;; |
| 5673 | |
| 5674 | newos6*) |
| 5675 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 5676 | lt_cv_file_magic_cmd=/usr/bin/file |
| 5677 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 5678 | ;; |
| 5679 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5680 | *nto* | *qnx*) |
| 5681 | lt_cv_deplibs_check_method=pass_all |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5682 | ;; |
| 5683 | |
| 5684 | openbsd*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5685 | 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] | 5686 | 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] | 5687 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5688 | 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] | 5689 | fi |
| 5690 | ;; |
| 5691 | |
| 5692 | osf3* | osf4* | osf5*) |
| 5693 | lt_cv_deplibs_check_method=pass_all |
| 5694 | ;; |
| 5695 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 5696 | rdos*) |
| 5697 | lt_cv_deplibs_check_method=pass_all |
| 5698 | ;; |
| 5699 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5700 | solaris*) |
| 5701 | lt_cv_deplibs_check_method=pass_all |
| 5702 | ;; |
| 5703 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5704 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 5705 | lt_cv_deplibs_check_method=pass_all |
| 5706 | ;; |
| 5707 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5708 | sysv4 | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5709 | case $host_vendor in |
| 5710 | motorola) |
| 5711 | 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]' |
| 5712 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 5713 | ;; |
| 5714 | ncr) |
| 5715 | lt_cv_deplibs_check_method=pass_all |
| 5716 | ;; |
| 5717 | sequent) |
| 5718 | lt_cv_file_magic_cmd='/bin/file' |
| 5719 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 5720 | ;; |
| 5721 | sni) |
| 5722 | lt_cv_file_magic_cmd='/bin/file' |
| 5723 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 5724 | lt_cv_file_magic_test_file=/lib/libc.so |
| 5725 | ;; |
| 5726 | siemens) |
| 5727 | lt_cv_deplibs_check_method=pass_all |
| 5728 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5729 | pc) |
| 5730 | lt_cv_deplibs_check_method=pass_all |
| 5731 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5732 | esac |
| 5733 | ;; |
| 5734 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5735 | tpf*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5736 | lt_cv_deplibs_check_method=pass_all |
| 5737 | ;; |
| 5738 | esac |
| 5739 | |
| 5740 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
| 5742 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5743 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 5744 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 5745 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 5746 | |
| 5747 | |
| 5748 | |
| 5749 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5750 | |
| 5751 | |
| 5752 | |
| 5753 | |
| 5754 | |
| 5755 | |
| 5756 | |
| 5757 | |
| 5758 | if test -n "$ac_tool_prefix"; then |
| 5759 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 5760 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 5761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5762 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5763 | if test "${ac_cv_prog_AR+set}" = set; then : |
| 5764 | $as_echo_n "(cached) " >&6 |
| 5765 | else |
| 5766 | if test -n "$AR"; then |
| 5767 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 5768 | else |
| 5769 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5770 | for as_dir in $PATH |
| 5771 | do |
| 5772 | IFS=$as_save_IFS |
| 5773 | test -z "$as_dir" && as_dir=. |
| 5774 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5775 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5776 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 5777 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5778 | break 2 |
| 5779 | fi |
| 5780 | done |
| 5781 | done |
| 5782 | IFS=$as_save_IFS |
| 5783 | |
| 5784 | fi |
| 5785 | fi |
| 5786 | AR=$ac_cv_prog_AR |
| 5787 | if test -n "$AR"; then |
| 5788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 5789 | $as_echo "$AR" >&6; } |
| 5790 | else |
| 5791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5792 | $as_echo "no" >&6; } |
| 5793 | fi |
| 5794 | |
| 5795 | |
| 5796 | fi |
| 5797 | if test -z "$ac_cv_prog_AR"; then |
| 5798 | ac_ct_AR=$AR |
| 5799 | # Extract the first word of "ar", so it can be a program name with args. |
| 5800 | set dummy ar; ac_word=$2 |
| 5801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5802 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5803 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : |
| 5804 | $as_echo_n "(cached) " >&6 |
| 5805 | else |
| 5806 | if test -n "$ac_ct_AR"; then |
| 5807 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 5808 | else |
| 5809 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5810 | for as_dir in $PATH |
| 5811 | do |
| 5812 | IFS=$as_save_IFS |
| 5813 | test -z "$as_dir" && as_dir=. |
| 5814 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5815 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5816 | ac_cv_prog_ac_ct_AR="ar" |
| 5817 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5818 | break 2 |
| 5819 | fi |
| 5820 | done |
| 5821 | done |
| 5822 | IFS=$as_save_IFS |
| 5823 | |
| 5824 | fi |
| 5825 | fi |
| 5826 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 5827 | if test -n "$ac_ct_AR"; then |
| 5828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 5829 | $as_echo "$ac_ct_AR" >&6; } |
| 5830 | else |
| 5831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5832 | $as_echo "no" >&6; } |
| 5833 | fi |
| 5834 | |
| 5835 | if test "x$ac_ct_AR" = x; then |
| 5836 | AR="false" |
| 5837 | else |
| 5838 | case $cross_compiling:$ac_tool_warned in |
| 5839 | yes:) |
| 5840 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5841 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5842 | ac_tool_warned=yes ;; |
| 5843 | esac |
| 5844 | AR=$ac_ct_AR |
| 5845 | fi |
| 5846 | else |
| 5847 | AR="$ac_cv_prog_AR" |
| 5848 | fi |
| 5849 | |
| 5850 | test -z "$AR" && AR=ar |
| 5851 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 5852 | |
| 5853 | |
| 5854 | |
| 5855 | |
| 5856 | |
| 5857 | |
| 5858 | |
| 5859 | |
| 5860 | |
| 5861 | |
| 5862 | |
| 5863 | if test -n "$ac_tool_prefix"; then |
| 5864 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 5865 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 5866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5867 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5868 | if test "${ac_cv_prog_STRIP+set}" = set; then : |
| 5869 | $as_echo_n "(cached) " >&6 |
| 5870 | else |
| 5871 | if test -n "$STRIP"; then |
| 5872 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 5873 | else |
| 5874 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5875 | for as_dir in $PATH |
| 5876 | do |
| 5877 | IFS=$as_save_IFS |
| 5878 | test -z "$as_dir" && as_dir=. |
| 5879 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5880 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5881 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 5882 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5883 | break 2 |
| 5884 | fi |
| 5885 | done |
| 5886 | done |
| 5887 | IFS=$as_save_IFS |
| 5888 | |
| 5889 | fi |
| 5890 | fi |
| 5891 | STRIP=$ac_cv_prog_STRIP |
| 5892 | if test -n "$STRIP"; then |
| 5893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 5894 | $as_echo "$STRIP" >&6; } |
| 5895 | else |
| 5896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5897 | $as_echo "no" >&6; } |
| 5898 | fi |
| 5899 | |
| 5900 | |
| 5901 | fi |
| 5902 | if test -z "$ac_cv_prog_STRIP"; then |
| 5903 | ac_ct_STRIP=$STRIP |
| 5904 | # Extract the first word of "strip", so it can be a program name with args. |
| 5905 | set dummy strip; ac_word=$2 |
| 5906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5907 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5908 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : |
| 5909 | $as_echo_n "(cached) " >&6 |
| 5910 | else |
| 5911 | if test -n "$ac_ct_STRIP"; then |
| 5912 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 5913 | else |
| 5914 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5915 | for as_dir in $PATH |
| 5916 | do |
| 5917 | IFS=$as_save_IFS |
| 5918 | test -z "$as_dir" && as_dir=. |
| 5919 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5920 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5921 | ac_cv_prog_ac_ct_STRIP="strip" |
| 5922 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5923 | break 2 |
| 5924 | fi |
| 5925 | done |
| 5926 | done |
| 5927 | IFS=$as_save_IFS |
| 5928 | |
| 5929 | fi |
| 5930 | fi |
| 5931 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 5932 | if test -n "$ac_ct_STRIP"; then |
| 5933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 5934 | $as_echo "$ac_ct_STRIP" >&6; } |
| 5935 | else |
| 5936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5937 | $as_echo "no" >&6; } |
| 5938 | fi |
| 5939 | |
| 5940 | if test "x$ac_ct_STRIP" = x; then |
| 5941 | STRIP=":" |
| 5942 | else |
| 5943 | case $cross_compiling:$ac_tool_warned in |
| 5944 | yes:) |
| 5945 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5946 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5947 | ac_tool_warned=yes ;; |
| 5948 | esac |
| 5949 | STRIP=$ac_ct_STRIP |
| 5950 | fi |
| 5951 | else |
| 5952 | STRIP="$ac_cv_prog_STRIP" |
| 5953 | fi |
| 5954 | |
| 5955 | test -z "$STRIP" && STRIP=: |
| 5956 | |
| 5957 | |
| 5958 | |
| 5959 | |
| 5960 | |
| 5961 | |
| 5962 | if test -n "$ac_tool_prefix"; then |
| 5963 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5964 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 5965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5966 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5967 | if test "${ac_cv_prog_RANLIB+set}" = set; then : |
| 5968 | $as_echo_n "(cached) " >&6 |
| 5969 | else |
| 5970 | if test -n "$RANLIB"; then |
| 5971 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5972 | else |
| 5973 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5974 | for as_dir in $PATH |
| 5975 | do |
| 5976 | IFS=$as_save_IFS |
| 5977 | test -z "$as_dir" && as_dir=. |
| 5978 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5979 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5980 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 5981 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5982 | break 2 |
| 5983 | fi |
| 5984 | done |
| 5985 | done |
| 5986 | IFS=$as_save_IFS |
| 5987 | |
| 5988 | fi |
| 5989 | fi |
| 5990 | RANLIB=$ac_cv_prog_RANLIB |
| 5991 | if test -n "$RANLIB"; then |
| 5992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 5993 | $as_echo "$RANLIB" >&6; } |
| 5994 | else |
| 5995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5996 | $as_echo "no" >&6; } |
| 5997 | fi |
| 5998 | |
| 5999 | |
| 6000 | fi |
| 6001 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6002 | ac_ct_RANLIB=$RANLIB |
| 6003 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6004 | set dummy ranlib; ac_word=$2 |
| 6005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6006 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6007 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : |
| 6008 | $as_echo_n "(cached) " >&6 |
| 6009 | else |
| 6010 | if test -n "$ac_ct_RANLIB"; then |
| 6011 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6012 | else |
| 6013 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6014 | for as_dir in $PATH |
| 6015 | do |
| 6016 | IFS=$as_save_IFS |
| 6017 | test -z "$as_dir" && as_dir=. |
| 6018 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6019 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6020 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 6021 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6022 | break 2 |
| 6023 | fi |
| 6024 | done |
| 6025 | done |
| 6026 | IFS=$as_save_IFS |
| 6027 | |
| 6028 | fi |
| 6029 | fi |
| 6030 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6031 | if test -n "$ac_ct_RANLIB"; then |
| 6032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 6033 | $as_echo "$ac_ct_RANLIB" >&6; } |
| 6034 | else |
| 6035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6036 | $as_echo "no" >&6; } |
| 6037 | fi |
| 6038 | |
| 6039 | if test "x$ac_ct_RANLIB" = x; then |
| 6040 | RANLIB=":" |
| 6041 | else |
| 6042 | case $cross_compiling:$ac_tool_warned in |
| 6043 | yes:) |
| 6044 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6045 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6046 | ac_tool_warned=yes ;; |
| 6047 | esac |
| 6048 | RANLIB=$ac_ct_RANLIB |
| 6049 | fi |
| 6050 | else |
| 6051 | RANLIB="$ac_cv_prog_RANLIB" |
| 6052 | fi |
| 6053 | |
| 6054 | test -z "$RANLIB" && RANLIB=: |
| 6055 | |
| 6056 | |
| 6057 | |
| 6058 | |
| 6059 | |
| 6060 | |
| 6061 | # Determine commands to create old-style static archives. |
| 6062 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
| 6063 | old_postinstall_cmds='chmod 644 $oldlib' |
| 6064 | old_postuninstall_cmds= |
| 6065 | |
| 6066 | if test -n "$RANLIB"; then |
| 6067 | case $host_os in |
| 6068 | openbsd*) |
| 6069 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
| 6070 | ;; |
| 6071 | *) |
| 6072 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
| 6073 | ;; |
| 6074 | esac |
| 6075 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 6076 | fi |
| 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 | |
| 6107 | |
| 6108 | |
| 6109 | |
| 6110 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6111 | # If no C compiler was specified, use CC. |
| 6112 | LTCC=${LTCC-"$CC"} |
| 6113 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6114 | # If no C compiler flags were specified, use CFLAGS. |
| 6115 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 6116 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6117 | # Allow CC to be a program name with arguments. |
| 6118 | compiler=$CC |
| 6119 | |
| 6120 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6121 | # 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] | 6122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
| 6123 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
| 6124 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : |
| 6125 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6126 | else |
| 6127 | |
| 6128 | # These are sane defaults that work on at least a few old systems. |
| 6129 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 6130 | |
| 6131 | # Character class describing NM global symbol codes. |
| 6132 | symcode='[BCDEGRST]' |
| 6133 | |
| 6134 | # Regexp to match symbols that can be accessed directly from C. |
| 6135 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 6136 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6137 | # Define system-specific variables. |
| 6138 | case $host_os in |
| 6139 | aix*) |
| 6140 | symcode='[BCDT]' |
| 6141 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6142 | cygwin* | mingw* | pw32* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6143 | symcode='[ABCDGISTW]' |
| 6144 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6145 | hpux*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6146 | if test "$host_cpu" = ia64; then |
| 6147 | symcode='[ABCDEGRST]' |
| 6148 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6149 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6150 | irix* | nonstopux*) |
| 6151 | symcode='[BCDEGRST]' |
| 6152 | ;; |
| 6153 | osf*) |
| 6154 | symcode='[BCDEGQRST]' |
| 6155 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6156 | solaris*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6157 | symcode='[BDRT]' |
| 6158 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6159 | sco3.2v5*) |
| 6160 | symcode='[DT]' |
| 6161 | ;; |
| 6162 | sysv4.2uw2*) |
| 6163 | symcode='[DT]' |
| 6164 | ;; |
| 6165 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 6166 | symcode='[ABDT]' |
| 6167 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6168 | sysv4) |
| 6169 | symcode='[DFNSTU]' |
| 6170 | ;; |
| 6171 | esac |
| 6172 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6173 | # If we're using GNU nm, then use its standard symbol codes. |
| 6174 | case `$NM -V 2>&1` in |
| 6175 | *GNU* | *'with BFD'*) |
| 6176 | symcode='[ABCDGIRSTW]' ;; |
| 6177 | esac |
| 6178 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6179 | # Transform an extracted symbol line into a proper C declaration. |
| 6180 | # Some systems (esp. on ia64) link data and code symbols differently, |
| 6181 | # so use this general approach. |
| 6182 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 6183 | |
| 6184 | # Transform an extracted symbol line into symbol name and symbol address |
| 6185 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
| 6186 | 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'" |
| 6187 | |
| 6188 | # Handle CRLF in mingw tool chain |
| 6189 | opt_cr= |
| 6190 | case $build_os in |
| 6191 | mingw*) |
| 6192 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 6193 | ;; |
| 6194 | esac |
| 6195 | |
| 6196 | # Try without a prefix underscore, then with it. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6197 | for ac_symprfx in "" "_"; do |
| 6198 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6199 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 6200 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 6201 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6202 | # Write the raw and C identifiers. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6203 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 6204 | # Fake it for dumpbin and say T for any non-static function |
| 6205 | # and D for any global variable. |
| 6206 | # Also find C++ and __fastcall symbols from MSVC++, |
| 6207 | # which start with @ or ?. |
| 6208 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
| 6209 | " {last_section=section; section=\$ 3};"\ |
| 6210 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 6211 | " \$ 0!~/External *\|/{next};"\ |
| 6212 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 6213 | " {if(hide[section]) next};"\ |
| 6214 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
| 6215 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
| 6216 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
| 6217 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
| 6218 | " ' prfx=^$ac_symprfx" |
| 6219 | else |
| 6220 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 6221 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6222 | |
| 6223 | # Check to see that the pipe works correctly. |
| 6224 | pipe_works=no |
| 6225 | |
| 6226 | rm -f conftest* |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6227 | cat > conftest.$ac_ext <<_LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6228 | #ifdef __cplusplus |
| 6229 | extern "C" { |
| 6230 | #endif |
| 6231 | char nm_test_var; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6232 | void nm_test_func(void); |
| 6233 | void nm_test_func(void){} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6234 | #ifdef __cplusplus |
| 6235 | } |
| 6236 | #endif |
| 6237 | int main(){nm_test_var='a';nm_test_func();return(0);} |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6238 | _LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6239 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6240 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6241 | (eval $ac_compile) 2>&5 |
| 6242 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6243 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6244 | test $ac_status = 0; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6245 | # Now try to grab the symbols. |
| 6246 | nlist=conftest.nm |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6247 | 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] | 6248 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 6249 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6250 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6251 | test $ac_status = 0; } && test -s "$nlist"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6252 | # Try sorting and uniquifying the output. |
| 6253 | if sort "$nlist" | uniq > "$nlist"T; then |
| 6254 | mv -f "$nlist"T "$nlist" |
| 6255 | else |
| 6256 | rm -f "$nlist"T |
| 6257 | fi |
| 6258 | |
| 6259 | # Make sure that we snagged all the symbols we need. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6260 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 6261 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 6262 | cat <<_LT_EOF > conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6263 | #ifdef __cplusplus |
| 6264 | extern "C" { |
| 6265 | #endif |
| 6266 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6267 | _LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6268 | # Now generate the symbol file. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6269 | 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] | 6270 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6271 | cat <<_LT_EOF >> conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6272 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6273 | /* The mapping between symbol names and symbols. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6274 | const struct { |
| 6275 | const char *name; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6276 | void *address; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6277 | } |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6278 | lt__PROGRAM__LTX_preloaded_symbols[] = |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6279 | { |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6280 | { "@PROGRAM@", (void *) 0 }, |
| 6281 | _LT_EOF |
| 6282 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 6283 | cat <<\_LT_EOF >> conftest.$ac_ext |
| 6284 | {0, (void *) 0} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6285 | }; |
| 6286 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6287 | /* This works around a problem in FreeBSD linker */ |
| 6288 | #ifdef FREEBSD_WORKAROUND |
| 6289 | static const void *lt_preloaded_setup() { |
| 6290 | return lt__PROGRAM__LTX_preloaded_symbols; |
| 6291 | } |
| 6292 | #endif |
| 6293 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6294 | #ifdef __cplusplus |
| 6295 | } |
| 6296 | #endif |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6297 | _LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6298 | # Now try linking the two files. |
| 6299 | mv conftest.$ac_objext conftstm.$ac_objext |
| 6300 | lt_save_LIBS="$LIBS" |
| 6301 | lt_save_CFLAGS="$CFLAGS" |
| 6302 | LIBS="conftstm.$ac_objext" |
| 6303 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6304 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6305 | (eval $ac_link) 2>&5 |
| 6306 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6307 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6308 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6309 | pipe_works=yes |
| 6310 | fi |
| 6311 | LIBS="$lt_save_LIBS" |
| 6312 | CFLAGS="$lt_save_CFLAGS" |
| 6313 | else |
| 6314 | echo "cannot find nm_test_func in $nlist" >&5 |
| 6315 | fi |
| 6316 | else |
| 6317 | echo "cannot find nm_test_var in $nlist" >&5 |
| 6318 | fi |
| 6319 | else |
| 6320 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 6321 | fi |
| 6322 | else |
| 6323 | echo "$progname: failed program was:" >&5 |
| 6324 | cat conftest.$ac_ext >&5 |
| 6325 | fi |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 6326 | rm -rf conftest* conftst* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6327 | |
| 6328 | # Do not use the global_symbol_pipe unless it works. |
| 6329 | if test "$pipe_works" = yes; then |
| 6330 | break |
| 6331 | else |
| 6332 | lt_cv_sys_global_symbol_pipe= |
| 6333 | fi |
| 6334 | done |
| 6335 | |
| 6336 | fi |
| 6337 | |
| 6338 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 6339 | lt_cv_sys_global_symbol_to_cdecl= |
| 6340 | fi |
| 6341 | 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] | 6342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
| 6343 | $as_echo "failed" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6344 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| 6346 | $as_echo "ok" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6347 | fi |
| 6348 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6349 | |
| 6350 | |
| 6351 | |
| 6352 | |
| 6353 | |
| 6354 | |
| 6355 | |
| 6356 | |
| 6357 | |
| 6358 | |
| 6359 | |
| 6360 | |
| 6361 | |
| 6362 | |
| 6363 | |
| 6364 | |
| 6365 | |
| 6366 | |
| 6367 | |
| 6368 | |
| 6369 | |
| 6370 | |
| 6371 | # Check whether --enable-libtool-lock was given. |
| 6372 | if test "${enable_libtool_lock+set}" = set; then : |
| 6373 | enableval=$enable_libtool_lock; |
| 6374 | fi |
| 6375 | |
| 6376 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 6377 | |
| 6378 | # Some flags need to be propagated to the compiler or linker for good |
| 6379 | # libtool support. |
| 6380 | case $host in |
| 6381 | ia64-*-hpux*) |
| 6382 | # Find out which ABI we are using. |
| 6383 | echo 'int i;' > conftest.$ac_ext |
| 6384 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6385 | (eval $ac_compile) 2>&5 |
| 6386 | ac_status=$? |
| 6387 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6388 | test $ac_status = 0; }; then |
| 6389 | case `/usr/bin/file conftest.$ac_objext` in |
| 6390 | *ELF-32*) |
| 6391 | HPUX_IA64_MODE="32" |
| 6392 | ;; |
| 6393 | *ELF-64*) |
| 6394 | HPUX_IA64_MODE="64" |
| 6395 | ;; |
| 6396 | esac |
| 6397 | fi |
| 6398 | rm -rf conftest* |
| 6399 | ;; |
| 6400 | *-*-irix6*) |
| 6401 | # Find out which ABI we are using. |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 6402 | echo '#line 6402 "configure"' > conftest.$ac_ext |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6403 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6404 | (eval $ac_compile) 2>&5 |
| 6405 | ac_status=$? |
| 6406 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6407 | test $ac_status = 0; }; then |
| 6408 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 6409 | case `/usr/bin/file conftest.$ac_objext` in |
| 6410 | *32-bit*) |
| 6411 | LD="${LD-ld} -melf32bsmip" |
| 6412 | ;; |
| 6413 | *N32*) |
| 6414 | LD="${LD-ld} -melf32bmipn32" |
| 6415 | ;; |
| 6416 | *64-bit*) |
| 6417 | LD="${LD-ld} -melf64bmip" |
| 6418 | ;; |
| 6419 | esac |
| 6420 | else |
| 6421 | case `/usr/bin/file conftest.$ac_objext` in |
| 6422 | *32-bit*) |
| 6423 | LD="${LD-ld} -32" |
| 6424 | ;; |
| 6425 | *N32*) |
| 6426 | LD="${LD-ld} -n32" |
| 6427 | ;; |
| 6428 | *64-bit*) |
| 6429 | LD="${LD-ld} -64" |
| 6430 | ;; |
| 6431 | esac |
| 6432 | fi |
| 6433 | fi |
| 6434 | rm -rf conftest* |
| 6435 | ;; |
| 6436 | |
| 6437 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
| 6438 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
| 6439 | # Find out which ABI we are using. |
| 6440 | echo 'int i;' > conftest.$ac_ext |
| 6441 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6442 | (eval $ac_compile) 2>&5 |
| 6443 | ac_status=$? |
| 6444 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6445 | test $ac_status = 0; }; then |
| 6446 | case `/usr/bin/file conftest.o` in |
| 6447 | *32-bit*) |
| 6448 | case $host in |
| 6449 | x86_64-*kfreebsd*-gnu) |
| 6450 | LD="${LD-ld} -m elf_i386_fbsd" |
| 6451 | ;; |
| 6452 | x86_64-*linux*) |
| 6453 | LD="${LD-ld} -m elf_i386" |
| 6454 | ;; |
| 6455 | ppc64-*linux*|powerpc64-*linux*) |
| 6456 | LD="${LD-ld} -m elf32ppclinux" |
| 6457 | ;; |
| 6458 | s390x-*linux*) |
| 6459 | LD="${LD-ld} -m elf_s390" |
| 6460 | ;; |
| 6461 | sparc64-*linux*) |
| 6462 | LD="${LD-ld} -m elf32_sparc" |
| 6463 | ;; |
| 6464 | esac |
| 6465 | ;; |
| 6466 | *64-bit*) |
| 6467 | case $host in |
| 6468 | x86_64-*kfreebsd*-gnu) |
| 6469 | LD="${LD-ld} -m elf_x86_64_fbsd" |
| 6470 | ;; |
| 6471 | x86_64-*linux*) |
| 6472 | LD="${LD-ld} -m elf_x86_64" |
| 6473 | ;; |
| 6474 | ppc*-*linux*|powerpc*-*linux*) |
| 6475 | LD="${LD-ld} -m elf64ppc" |
| 6476 | ;; |
| 6477 | s390*-*linux*|s390*-*tpf*) |
| 6478 | LD="${LD-ld} -m elf64_s390" |
| 6479 | ;; |
| 6480 | sparc*-*linux*) |
| 6481 | LD="${LD-ld} -m elf64_sparc" |
| 6482 | ;; |
| 6483 | esac |
| 6484 | ;; |
| 6485 | esac |
| 6486 | fi |
| 6487 | rm -rf conftest* |
| 6488 | ;; |
| 6489 | |
| 6490 | *-*-sco3.2v5*) |
| 6491 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 6492 | SAVE_CFLAGS="$CFLAGS" |
| 6493 | CFLAGS="$CFLAGS -belf" |
| 6494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
| 6495 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
| 6496 | if test "${lt_cv_cc_needs_belf+set}" = set; then : |
| 6497 | $as_echo_n "(cached) " >&6 |
| 6498 | else |
| 6499 | ac_ext=c |
| 6500 | ac_cpp='$CPP $CPPFLAGS' |
| 6501 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6502 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6503 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6504 | |
| 6505 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6506 | /* end confdefs.h. */ |
| 6507 | |
| 6508 | int |
| 6509 | main () |
| 6510 | { |
| 6511 | |
| 6512 | ; |
| 6513 | return 0; |
| 6514 | } |
| 6515 | _ACEOF |
| 6516 | if ac_fn_c_try_link "$LINENO"; then : |
| 6517 | lt_cv_cc_needs_belf=yes |
| 6518 | else |
| 6519 | lt_cv_cc_needs_belf=no |
| 6520 | fi |
| 6521 | rm -f core conftest.err conftest.$ac_objext \ |
| 6522 | conftest$ac_exeext conftest.$ac_ext |
| 6523 | ac_ext=c |
| 6524 | ac_cpp='$CPP $CPPFLAGS' |
| 6525 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6526 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6527 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6528 | |
| 6529 | fi |
| 6530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
| 6531 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
| 6532 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 6533 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 6534 | CFLAGS="$SAVE_CFLAGS" |
| 6535 | fi |
| 6536 | ;; |
| 6537 | sparc*-*solaris*) |
| 6538 | # Find out which ABI we are using. |
| 6539 | echo 'int i;' > conftest.$ac_ext |
| 6540 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6541 | (eval $ac_compile) 2>&5 |
| 6542 | ac_status=$? |
| 6543 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6544 | test $ac_status = 0; }; then |
| 6545 | case `/usr/bin/file conftest.o` in |
| 6546 | *64-bit*) |
| 6547 | case $lt_cv_prog_gnu_ld in |
| 6548 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 6549 | *) |
| 6550 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 6551 | LD="${LD-ld} -64" |
| 6552 | fi |
| 6553 | ;; |
| 6554 | esac |
| 6555 | ;; |
| 6556 | esac |
| 6557 | fi |
| 6558 | rm -rf conftest* |
| 6559 | ;; |
| 6560 | esac |
| 6561 | |
| 6562 | need_locks="$enable_libtool_lock" |
| 6563 | |
| 6564 | |
| 6565 | case $host_os in |
| 6566 | rhapsody* | darwin*) |
| 6567 | if test -n "$ac_tool_prefix"; then |
| 6568 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
| 6569 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
| 6570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6571 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6572 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : |
| 6573 | $as_echo_n "(cached) " >&6 |
| 6574 | else |
| 6575 | if test -n "$DSYMUTIL"; then |
| 6576 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
| 6577 | else |
| 6578 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6579 | for as_dir in $PATH |
| 6580 | do |
| 6581 | IFS=$as_save_IFS |
| 6582 | test -z "$as_dir" && as_dir=. |
| 6583 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6584 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6585 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
| 6586 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6587 | break 2 |
| 6588 | fi |
| 6589 | done |
| 6590 | done |
| 6591 | IFS=$as_save_IFS |
| 6592 | |
| 6593 | fi |
| 6594 | fi |
| 6595 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
| 6596 | if test -n "$DSYMUTIL"; then |
| 6597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
| 6598 | $as_echo "$DSYMUTIL" >&6; } |
| 6599 | else |
| 6600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6601 | $as_echo "no" >&6; } |
| 6602 | fi |
| 6603 | |
| 6604 | |
| 6605 | fi |
| 6606 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
| 6607 | ac_ct_DSYMUTIL=$DSYMUTIL |
| 6608 | # Extract the first word of "dsymutil", so it can be a program name with args. |
| 6609 | set dummy dsymutil; ac_word=$2 |
| 6610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6611 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6612 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : |
| 6613 | $as_echo_n "(cached) " >&6 |
| 6614 | else |
| 6615 | if test -n "$ac_ct_DSYMUTIL"; then |
| 6616 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
| 6617 | else |
| 6618 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6619 | for as_dir in $PATH |
| 6620 | do |
| 6621 | IFS=$as_save_IFS |
| 6622 | test -z "$as_dir" && as_dir=. |
| 6623 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6624 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6625 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
| 6626 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6627 | break 2 |
| 6628 | fi |
| 6629 | done |
| 6630 | done |
| 6631 | IFS=$as_save_IFS |
| 6632 | |
| 6633 | fi |
| 6634 | fi |
| 6635 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
| 6636 | if test -n "$ac_ct_DSYMUTIL"; then |
| 6637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
| 6638 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
| 6639 | else |
| 6640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6641 | $as_echo "no" >&6; } |
| 6642 | fi |
| 6643 | |
| 6644 | if test "x$ac_ct_DSYMUTIL" = x; then |
| 6645 | DSYMUTIL=":" |
| 6646 | else |
| 6647 | case $cross_compiling:$ac_tool_warned in |
| 6648 | yes:) |
| 6649 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6650 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6651 | ac_tool_warned=yes ;; |
| 6652 | esac |
| 6653 | DSYMUTIL=$ac_ct_DSYMUTIL |
| 6654 | fi |
| 6655 | else |
| 6656 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
| 6657 | fi |
| 6658 | |
| 6659 | if test -n "$ac_tool_prefix"; then |
| 6660 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
| 6661 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
| 6662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6663 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6664 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : |
| 6665 | $as_echo_n "(cached) " >&6 |
| 6666 | else |
| 6667 | if test -n "$NMEDIT"; then |
| 6668 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
| 6669 | else |
| 6670 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6671 | for as_dir in $PATH |
| 6672 | do |
| 6673 | IFS=$as_save_IFS |
| 6674 | test -z "$as_dir" && as_dir=. |
| 6675 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6676 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6677 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
| 6678 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6679 | break 2 |
| 6680 | fi |
| 6681 | done |
| 6682 | done |
| 6683 | IFS=$as_save_IFS |
| 6684 | |
| 6685 | fi |
| 6686 | fi |
| 6687 | NMEDIT=$ac_cv_prog_NMEDIT |
| 6688 | if test -n "$NMEDIT"; then |
| 6689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
| 6690 | $as_echo "$NMEDIT" >&6; } |
| 6691 | else |
| 6692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6693 | $as_echo "no" >&6; } |
| 6694 | fi |
| 6695 | |
| 6696 | |
| 6697 | fi |
| 6698 | if test -z "$ac_cv_prog_NMEDIT"; then |
| 6699 | ac_ct_NMEDIT=$NMEDIT |
| 6700 | # Extract the first word of "nmedit", so it can be a program name with args. |
| 6701 | set dummy nmedit; ac_word=$2 |
| 6702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6703 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6704 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : |
| 6705 | $as_echo_n "(cached) " >&6 |
| 6706 | else |
| 6707 | if test -n "$ac_ct_NMEDIT"; then |
| 6708 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
| 6709 | else |
| 6710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6711 | for as_dir in $PATH |
| 6712 | do |
| 6713 | IFS=$as_save_IFS |
| 6714 | test -z "$as_dir" && as_dir=. |
| 6715 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6716 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6717 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
| 6718 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6719 | break 2 |
| 6720 | fi |
| 6721 | done |
| 6722 | done |
| 6723 | IFS=$as_save_IFS |
| 6724 | |
| 6725 | fi |
| 6726 | fi |
| 6727 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
| 6728 | if test -n "$ac_ct_NMEDIT"; then |
| 6729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
| 6730 | $as_echo "$ac_ct_NMEDIT" >&6; } |
| 6731 | else |
| 6732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6733 | $as_echo "no" >&6; } |
| 6734 | fi |
| 6735 | |
| 6736 | if test "x$ac_ct_NMEDIT" = x; then |
| 6737 | NMEDIT=":" |
| 6738 | else |
| 6739 | case $cross_compiling:$ac_tool_warned in |
| 6740 | yes:) |
| 6741 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6742 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6743 | ac_tool_warned=yes ;; |
| 6744 | esac |
| 6745 | NMEDIT=$ac_ct_NMEDIT |
| 6746 | fi |
| 6747 | else |
| 6748 | NMEDIT="$ac_cv_prog_NMEDIT" |
| 6749 | fi |
| 6750 | |
| 6751 | if test -n "$ac_tool_prefix"; then |
| 6752 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
| 6753 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
| 6754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6755 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6756 | if test "${ac_cv_prog_LIPO+set}" = set; then : |
| 6757 | $as_echo_n "(cached) " >&6 |
| 6758 | else |
| 6759 | if test -n "$LIPO"; then |
| 6760 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
| 6761 | else |
| 6762 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6763 | for as_dir in $PATH |
| 6764 | do |
| 6765 | IFS=$as_save_IFS |
| 6766 | test -z "$as_dir" && as_dir=. |
| 6767 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6768 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6769 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
| 6770 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6771 | break 2 |
| 6772 | fi |
| 6773 | done |
| 6774 | done |
| 6775 | IFS=$as_save_IFS |
| 6776 | |
| 6777 | fi |
| 6778 | fi |
| 6779 | LIPO=$ac_cv_prog_LIPO |
| 6780 | if test -n "$LIPO"; then |
| 6781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
| 6782 | $as_echo "$LIPO" >&6; } |
| 6783 | else |
| 6784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6785 | $as_echo "no" >&6; } |
| 6786 | fi |
| 6787 | |
| 6788 | |
| 6789 | fi |
| 6790 | if test -z "$ac_cv_prog_LIPO"; then |
| 6791 | ac_ct_LIPO=$LIPO |
| 6792 | # Extract the first word of "lipo", so it can be a program name with args. |
| 6793 | set dummy lipo; ac_word=$2 |
| 6794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6795 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6796 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : |
| 6797 | $as_echo_n "(cached) " >&6 |
| 6798 | else |
| 6799 | if test -n "$ac_ct_LIPO"; then |
| 6800 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
| 6801 | else |
| 6802 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6803 | for as_dir in $PATH |
| 6804 | do |
| 6805 | IFS=$as_save_IFS |
| 6806 | test -z "$as_dir" && as_dir=. |
| 6807 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6808 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6809 | ac_cv_prog_ac_ct_LIPO="lipo" |
| 6810 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6811 | break 2 |
| 6812 | fi |
| 6813 | done |
| 6814 | done |
| 6815 | IFS=$as_save_IFS |
| 6816 | |
| 6817 | fi |
| 6818 | fi |
| 6819 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
| 6820 | if test -n "$ac_ct_LIPO"; then |
| 6821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
| 6822 | $as_echo "$ac_ct_LIPO" >&6; } |
| 6823 | else |
| 6824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6825 | $as_echo "no" >&6; } |
| 6826 | fi |
| 6827 | |
| 6828 | if test "x$ac_ct_LIPO" = x; then |
| 6829 | LIPO=":" |
| 6830 | else |
| 6831 | case $cross_compiling:$ac_tool_warned in |
| 6832 | yes:) |
| 6833 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6834 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6835 | ac_tool_warned=yes ;; |
| 6836 | esac |
| 6837 | LIPO=$ac_ct_LIPO |
| 6838 | fi |
| 6839 | else |
| 6840 | LIPO="$ac_cv_prog_LIPO" |
| 6841 | fi |
| 6842 | |
| 6843 | if test -n "$ac_tool_prefix"; then |
| 6844 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
| 6845 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
| 6846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6847 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6848 | if test "${ac_cv_prog_OTOOL+set}" = set; then : |
| 6849 | $as_echo_n "(cached) " >&6 |
| 6850 | else |
| 6851 | if test -n "$OTOOL"; then |
| 6852 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
| 6853 | else |
| 6854 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6855 | for as_dir in $PATH |
| 6856 | do |
| 6857 | IFS=$as_save_IFS |
| 6858 | test -z "$as_dir" && as_dir=. |
| 6859 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6860 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6861 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
| 6862 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6863 | break 2 |
| 6864 | fi |
| 6865 | done |
| 6866 | done |
| 6867 | IFS=$as_save_IFS |
| 6868 | |
| 6869 | fi |
| 6870 | fi |
| 6871 | OTOOL=$ac_cv_prog_OTOOL |
| 6872 | if test -n "$OTOOL"; then |
| 6873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
| 6874 | $as_echo "$OTOOL" >&6; } |
| 6875 | else |
| 6876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6877 | $as_echo "no" >&6; } |
| 6878 | fi |
| 6879 | |
| 6880 | |
| 6881 | fi |
| 6882 | if test -z "$ac_cv_prog_OTOOL"; then |
| 6883 | ac_ct_OTOOL=$OTOOL |
| 6884 | # Extract the first word of "otool", so it can be a program name with args. |
| 6885 | set dummy otool; ac_word=$2 |
| 6886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6887 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6888 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : |
| 6889 | $as_echo_n "(cached) " >&6 |
| 6890 | else |
| 6891 | if test -n "$ac_ct_OTOOL"; then |
| 6892 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
| 6893 | else |
| 6894 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6895 | for as_dir in $PATH |
| 6896 | do |
| 6897 | IFS=$as_save_IFS |
| 6898 | test -z "$as_dir" && as_dir=. |
| 6899 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6900 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6901 | ac_cv_prog_ac_ct_OTOOL="otool" |
| 6902 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6903 | break 2 |
| 6904 | fi |
| 6905 | done |
| 6906 | done |
| 6907 | IFS=$as_save_IFS |
| 6908 | |
| 6909 | fi |
| 6910 | fi |
| 6911 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
| 6912 | if test -n "$ac_ct_OTOOL"; then |
| 6913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
| 6914 | $as_echo "$ac_ct_OTOOL" >&6; } |
| 6915 | else |
| 6916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6917 | $as_echo "no" >&6; } |
| 6918 | fi |
| 6919 | |
| 6920 | if test "x$ac_ct_OTOOL" = x; then |
| 6921 | OTOOL=":" |
| 6922 | else |
| 6923 | case $cross_compiling:$ac_tool_warned in |
| 6924 | yes:) |
| 6925 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6926 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6927 | ac_tool_warned=yes ;; |
| 6928 | esac |
| 6929 | OTOOL=$ac_ct_OTOOL |
| 6930 | fi |
| 6931 | else |
| 6932 | OTOOL="$ac_cv_prog_OTOOL" |
| 6933 | fi |
| 6934 | |
| 6935 | if test -n "$ac_tool_prefix"; then |
| 6936 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
| 6937 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
| 6938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6939 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6940 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : |
| 6941 | $as_echo_n "(cached) " >&6 |
| 6942 | else |
| 6943 | if test -n "$OTOOL64"; then |
| 6944 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
| 6945 | else |
| 6946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6947 | for as_dir in $PATH |
| 6948 | do |
| 6949 | IFS=$as_save_IFS |
| 6950 | test -z "$as_dir" && as_dir=. |
| 6951 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6952 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6953 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
| 6954 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6955 | break 2 |
| 6956 | fi |
| 6957 | done |
| 6958 | done |
| 6959 | IFS=$as_save_IFS |
| 6960 | |
| 6961 | fi |
| 6962 | fi |
| 6963 | OTOOL64=$ac_cv_prog_OTOOL64 |
| 6964 | if test -n "$OTOOL64"; then |
| 6965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
| 6966 | $as_echo "$OTOOL64" >&6; } |
| 6967 | else |
| 6968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6969 | $as_echo "no" >&6; } |
| 6970 | fi |
| 6971 | |
| 6972 | |
| 6973 | fi |
| 6974 | if test -z "$ac_cv_prog_OTOOL64"; then |
| 6975 | ac_ct_OTOOL64=$OTOOL64 |
| 6976 | # Extract the first word of "otool64", so it can be a program name with args. |
| 6977 | set dummy otool64; ac_word=$2 |
| 6978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6979 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6980 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : |
| 6981 | $as_echo_n "(cached) " >&6 |
| 6982 | else |
| 6983 | if test -n "$ac_ct_OTOOL64"; then |
| 6984 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
| 6985 | else |
| 6986 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6987 | for as_dir in $PATH |
| 6988 | do |
| 6989 | IFS=$as_save_IFS |
| 6990 | test -z "$as_dir" && as_dir=. |
| 6991 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6992 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6993 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
| 6994 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6995 | break 2 |
| 6996 | fi |
| 6997 | done |
| 6998 | done |
| 6999 | IFS=$as_save_IFS |
| 7000 | |
| 7001 | fi |
| 7002 | fi |
| 7003 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
| 7004 | if test -n "$ac_ct_OTOOL64"; then |
| 7005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
| 7006 | $as_echo "$ac_ct_OTOOL64" >&6; } |
| 7007 | else |
| 7008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7009 | $as_echo "no" >&6; } |
| 7010 | fi |
| 7011 | |
| 7012 | if test "x$ac_ct_OTOOL64" = x; then |
| 7013 | OTOOL64=":" |
| 7014 | else |
| 7015 | case $cross_compiling:$ac_tool_warned in |
| 7016 | yes:) |
| 7017 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7018 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7019 | ac_tool_warned=yes ;; |
| 7020 | esac |
| 7021 | OTOOL64=$ac_ct_OTOOL64 |
| 7022 | fi |
| 7023 | else |
| 7024 | OTOOL64="$ac_cv_prog_OTOOL64" |
| 7025 | fi |
| 7026 | |
| 7027 | |
| 7028 | |
| 7029 | |
| 7030 | |
| 7031 | |
| 7032 | |
| 7033 | |
| 7034 | |
| 7035 | |
| 7036 | |
| 7037 | |
| 7038 | |
| 7039 | |
| 7040 | |
| 7041 | |
| 7042 | |
| 7043 | |
| 7044 | |
| 7045 | |
| 7046 | |
| 7047 | |
| 7048 | |
| 7049 | |
| 7050 | |
| 7051 | |
| 7052 | |
| 7053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
| 7054 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
| 7055 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : |
| 7056 | $as_echo_n "(cached) " >&6 |
| 7057 | else |
| 7058 | lt_cv_apple_cc_single_mod=no |
| 7059 | if test -z "${LT_MULTI_MODULE}"; then |
| 7060 | # By default we will add the -single_module flag. You can override |
| 7061 | # by either setting the environment variable LT_MULTI_MODULE |
| 7062 | # non-empty at configure time, or by adding -multi_module to the |
| 7063 | # link flags. |
| 7064 | rm -rf libconftest.dylib* |
| 7065 | echo "int foo(void){return 1;}" > conftest.c |
| 7066 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 7067 | -dynamiclib -Wl,-single_module conftest.c" >&5 |
| 7068 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 7069 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
| 7070 | _lt_result=$? |
| 7071 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then |
| 7072 | lt_cv_apple_cc_single_mod=yes |
| 7073 | else |
| 7074 | cat conftest.err >&5 |
| 7075 | fi |
| 7076 | rm -rf libconftest.dylib* |
| 7077 | rm -f conftest.* |
| 7078 | fi |
| 7079 | fi |
| 7080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
| 7081 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
| 7082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
| 7083 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
| 7084 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : |
| 7085 | $as_echo_n "(cached) " >&6 |
| 7086 | else |
| 7087 | lt_cv_ld_exported_symbols_list=no |
| 7088 | save_LDFLAGS=$LDFLAGS |
| 7089 | echo "_main" > conftest.sym |
| 7090 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
| 7091 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7092 | /* end confdefs.h. */ |
| 7093 | |
| 7094 | int |
| 7095 | main () |
| 7096 | { |
| 7097 | |
| 7098 | ; |
| 7099 | return 0; |
| 7100 | } |
| 7101 | _ACEOF |
| 7102 | if ac_fn_c_try_link "$LINENO"; then : |
| 7103 | lt_cv_ld_exported_symbols_list=yes |
| 7104 | else |
| 7105 | lt_cv_ld_exported_symbols_list=no |
| 7106 | fi |
| 7107 | rm -f core conftest.err conftest.$ac_objext \ |
| 7108 | conftest$ac_exeext conftest.$ac_ext |
| 7109 | LDFLAGS="$save_LDFLAGS" |
| 7110 | |
| 7111 | fi |
| 7112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
| 7113 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
| 7114 | case $host_os in |
| 7115 | rhapsody* | darwin1.[012]) |
| 7116 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
| 7117 | darwin1.*) |
| 7118 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 7119 | darwin*) # darwin 5.x on |
| 7120 | # if running on 10.5 or later, the deployment target defaults |
| 7121 | # to the OS version, if on x86, and 10.4, the deployment |
| 7122 | # target defaults to 10.4. Don't you love it? |
| 7123 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
| 7124 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
| 7125 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 7126 | 10.[012]*) |
| 7127 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 7128 | 10.*) |
| 7129 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 7130 | esac |
| 7131 | ;; |
| 7132 | esac |
| 7133 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
| 7134 | _lt_dar_single_mod='$single_module' |
| 7135 | fi |
| 7136 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
| 7137 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
| 7138 | else |
| 7139 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 7140 | fi |
| 7141 | if test "$DSYMUTIL" != ":"; then |
| 7142 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
| 7143 | else |
| 7144 | _lt_dsymutil= |
| 7145 | fi |
| 7146 | ;; |
| 7147 | esac |
| 7148 | |
| 7149 | |
| 7150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 7151 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 7152 | if test "${ac_cv_header_stdc+set}" = set; then : |
| 7153 | $as_echo_n "(cached) " >&6 |
| 7154 | else |
| 7155 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7156 | /* end confdefs.h. */ |
| 7157 | #include <stdlib.h> |
| 7158 | #include <stdarg.h> |
| 7159 | #include <string.h> |
| 7160 | #include <float.h> |
| 7161 | |
| 7162 | int |
| 7163 | main () |
| 7164 | { |
| 7165 | |
| 7166 | ; |
| 7167 | return 0; |
| 7168 | } |
| 7169 | _ACEOF |
| 7170 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7171 | ac_cv_header_stdc=yes |
| 7172 | else |
| 7173 | ac_cv_header_stdc=no |
| 7174 | fi |
| 7175 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7176 | |
| 7177 | if test $ac_cv_header_stdc = yes; then |
| 7178 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 7179 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7180 | /* end confdefs.h. */ |
| 7181 | #include <string.h> |
| 7182 | |
| 7183 | _ACEOF |
| 7184 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7185 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 7186 | |
| 7187 | else |
| 7188 | ac_cv_header_stdc=no |
| 7189 | fi |
| 7190 | rm -f conftest* |
| 7191 | |
| 7192 | fi |
| 7193 | |
| 7194 | if test $ac_cv_header_stdc = yes; then |
| 7195 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 7196 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7197 | /* end confdefs.h. */ |
| 7198 | #include <stdlib.h> |
| 7199 | |
| 7200 | _ACEOF |
| 7201 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7202 | $EGREP "free" >/dev/null 2>&1; then : |
| 7203 | |
| 7204 | else |
| 7205 | ac_cv_header_stdc=no |
| 7206 | fi |
| 7207 | rm -f conftest* |
| 7208 | |
| 7209 | fi |
| 7210 | |
| 7211 | if test $ac_cv_header_stdc = yes; then |
| 7212 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 7213 | if test "$cross_compiling" = yes; then : |
| 7214 | : |
| 7215 | else |
| 7216 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7217 | /* end confdefs.h. */ |
| 7218 | #include <ctype.h> |
| 7219 | #include <stdlib.h> |
| 7220 | #if ((' ' & 0x0FF) == 0x020) |
| 7221 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 7222 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 7223 | #else |
| 7224 | # define ISLOWER(c) \ |
| 7225 | (('a' <= (c) && (c) <= 'i') \ |
| 7226 | || ('j' <= (c) && (c) <= 'r') \ |
| 7227 | || ('s' <= (c) && (c) <= 'z')) |
| 7228 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 7229 | #endif |
| 7230 | |
| 7231 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 7232 | int |
| 7233 | main () |
| 7234 | { |
| 7235 | int i; |
| 7236 | for (i = 0; i < 256; i++) |
| 7237 | if (XOR (islower (i), ISLOWER (i)) |
| 7238 | || toupper (i) != TOUPPER (i)) |
| 7239 | return 2; |
| 7240 | return 0; |
| 7241 | } |
| 7242 | _ACEOF |
| 7243 | if ac_fn_c_try_run "$LINENO"; then : |
| 7244 | |
| 7245 | else |
| 7246 | ac_cv_header_stdc=no |
| 7247 | fi |
| 7248 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7249 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7250 | fi |
| 7251 | |
| 7252 | fi |
| 7253 | fi |
| 7254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 7255 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 7256 | if test $ac_cv_header_stdc = yes; then |
| 7257 | |
| 7258 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 7259 | |
| 7260 | fi |
| 7261 | |
| 7262 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 7263 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 7264 | inttypes.h stdint.h unistd.h |
| 7265 | do : |
| 7266 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7267 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 7268 | " |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 7269 | eval as_val=\$$as_ac_Header |
| 7270 | if test "x$as_val" = x""yes; then : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7271 | cat >>confdefs.h <<_ACEOF |
| 7272 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7273 | _ACEOF |
| 7274 | |
| 7275 | fi |
| 7276 | |
| 7277 | done |
| 7278 | |
| 7279 | |
| 7280 | for ac_header in dlfcn.h |
| 7281 | do : |
| 7282 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
| 7283 | " |
| 7284 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : |
| 7285 | cat >>confdefs.h <<_ACEOF |
| 7286 | #define HAVE_DLFCN_H 1 |
| 7287 | _ACEOF |
| 7288 | |
| 7289 | fi |
| 7290 | |
| 7291 | done |
| 7292 | |
| 7293 | |
| 7294 | |
| 7295 | ac_ext=cpp |
| 7296 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 7297 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7298 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7299 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 7300 | if test -z "$CXX"; then |
| 7301 | if test -n "$CCC"; then |
| 7302 | CXX=$CCC |
| 7303 | else |
| 7304 | if test -n "$ac_tool_prefix"; then |
| 7305 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 7306 | do |
| 7307 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 7308 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 7309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7310 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7311 | if test "${ac_cv_prog_CXX+set}" = set; then : |
| 7312 | $as_echo_n "(cached) " >&6 |
| 7313 | else |
| 7314 | if test -n "$CXX"; then |
| 7315 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 7316 | else |
| 7317 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7318 | for as_dir in $PATH |
| 7319 | do |
| 7320 | IFS=$as_save_IFS |
| 7321 | test -z "$as_dir" && as_dir=. |
| 7322 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7323 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7324 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 7325 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7326 | break 2 |
| 7327 | fi |
| 7328 | done |
| 7329 | done |
| 7330 | IFS=$as_save_IFS |
| 7331 | |
| 7332 | fi |
| 7333 | fi |
| 7334 | CXX=$ac_cv_prog_CXX |
| 7335 | if test -n "$CXX"; then |
| 7336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 7337 | $as_echo "$CXX" >&6; } |
| 7338 | else |
| 7339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7340 | $as_echo "no" >&6; } |
| 7341 | fi |
| 7342 | |
| 7343 | |
| 7344 | test -n "$CXX" && break |
| 7345 | done |
| 7346 | fi |
| 7347 | if test -z "$CXX"; then |
| 7348 | ac_ct_CXX=$CXX |
| 7349 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 7350 | do |
| 7351 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7352 | set dummy $ac_prog; ac_word=$2 |
| 7353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7354 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7355 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : |
| 7356 | $as_echo_n "(cached) " >&6 |
| 7357 | else |
| 7358 | if test -n "$ac_ct_CXX"; then |
| 7359 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 7360 | else |
| 7361 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7362 | for as_dir in $PATH |
| 7363 | do |
| 7364 | IFS=$as_save_IFS |
| 7365 | test -z "$as_dir" && as_dir=. |
| 7366 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7367 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7368 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 7369 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7370 | break 2 |
| 7371 | fi |
| 7372 | done |
| 7373 | done |
| 7374 | IFS=$as_save_IFS |
| 7375 | |
| 7376 | fi |
| 7377 | fi |
| 7378 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 7379 | if test -n "$ac_ct_CXX"; then |
| 7380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 7381 | $as_echo "$ac_ct_CXX" >&6; } |
| 7382 | else |
| 7383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7384 | $as_echo "no" >&6; } |
| 7385 | fi |
| 7386 | |
| 7387 | |
| 7388 | test -n "$ac_ct_CXX" && break |
| 7389 | done |
| 7390 | |
| 7391 | if test "x$ac_ct_CXX" = x; then |
| 7392 | CXX="g++" |
| 7393 | else |
| 7394 | case $cross_compiling:$ac_tool_warned in |
| 7395 | yes:) |
| 7396 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7397 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7398 | ac_tool_warned=yes ;; |
| 7399 | esac |
| 7400 | CXX=$ac_ct_CXX |
| 7401 | fi |
| 7402 | fi |
| 7403 | |
| 7404 | fi |
| 7405 | fi |
| 7406 | # Provide some information about the compiler. |
| 7407 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 7408 | set X $ac_compile |
| 7409 | ac_compiler=$2 |
| 7410 | for ac_option in --version -v -V -qversion; do |
| 7411 | { { ac_try="$ac_compiler $ac_option >&5" |
| 7412 | case "(($ac_try" in |
| 7413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7414 | *) ac_try_echo=$ac_try;; |
| 7415 | esac |
| 7416 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 7417 | $as_echo "$ac_try_echo"; } >&5 |
| 7418 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 7419 | ac_status=$? |
| 7420 | if test -s conftest.err; then |
| 7421 | sed '10a\ |
| 7422 | ... rest of stderr output deleted ... |
| 7423 | 10q' conftest.err >conftest.er1 |
| 7424 | cat conftest.er1 >&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7425 | fi |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 7426 | rm -f conftest.er1 conftest.err |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7427 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7428 | test $ac_status = 0; } |
| 7429 | done |
| 7430 | |
| 7431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
| 7432 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| 7433 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : |
| 7434 | $as_echo_n "(cached) " >&6 |
| 7435 | else |
| 7436 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7437 | /* end confdefs.h. */ |
| 7438 | |
| 7439 | int |
| 7440 | main () |
| 7441 | { |
| 7442 | #ifndef __GNUC__ |
| 7443 | choke me |
| 7444 | #endif |
| 7445 | |
| 7446 | ; |
| 7447 | return 0; |
| 7448 | } |
| 7449 | _ACEOF |
| 7450 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 7451 | ac_compiler_gnu=yes |
| 7452 | else |
| 7453 | ac_compiler_gnu=no |
| 7454 | fi |
| 7455 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7456 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 7457 | |
| 7458 | fi |
| 7459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 7460 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 7461 | if test $ac_compiler_gnu = yes; then |
| 7462 | GXX=yes |
| 7463 | else |
| 7464 | GXX= |
| 7465 | fi |
| 7466 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 7467 | ac_save_CXXFLAGS=$CXXFLAGS |
| 7468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 7469 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| 7470 | if test "${ac_cv_prog_cxx_g+set}" = set; then : |
| 7471 | $as_echo_n "(cached) " >&6 |
| 7472 | else |
| 7473 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 7474 | ac_cxx_werror_flag=yes |
| 7475 | ac_cv_prog_cxx_g=no |
| 7476 | CXXFLAGS="-g" |
| 7477 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7478 | /* end confdefs.h. */ |
| 7479 | |
| 7480 | int |
| 7481 | main () |
| 7482 | { |
| 7483 | |
| 7484 | ; |
| 7485 | return 0; |
| 7486 | } |
| 7487 | _ACEOF |
| 7488 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 7489 | ac_cv_prog_cxx_g=yes |
| 7490 | else |
| 7491 | CXXFLAGS="" |
| 7492 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7493 | /* end confdefs.h. */ |
| 7494 | |
| 7495 | int |
| 7496 | main () |
| 7497 | { |
| 7498 | |
| 7499 | ; |
| 7500 | return 0; |
| 7501 | } |
| 7502 | _ACEOF |
| 7503 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 7504 | |
| 7505 | else |
| 7506 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 7507 | CXXFLAGS="-g" |
| 7508 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7509 | /* end confdefs.h. */ |
| 7510 | |
| 7511 | int |
| 7512 | main () |
| 7513 | { |
| 7514 | |
| 7515 | ; |
| 7516 | return 0; |
| 7517 | } |
| 7518 | _ACEOF |
| 7519 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 7520 | ac_cv_prog_cxx_g=yes |
| 7521 | fi |
| 7522 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7523 | fi |
| 7524 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7525 | fi |
| 7526 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7527 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 7528 | fi |
| 7529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 7530 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
| 7531 | if test "$ac_test_CXXFLAGS" = set; then |
| 7532 | CXXFLAGS=$ac_save_CXXFLAGS |
| 7533 | elif test $ac_cv_prog_cxx_g = yes; then |
| 7534 | if test "$GXX" = yes; then |
| 7535 | CXXFLAGS="-g -O2" |
| 7536 | else |
| 7537 | CXXFLAGS="-g" |
| 7538 | fi |
| 7539 | else |
| 7540 | if test "$GXX" = yes; then |
| 7541 | CXXFLAGS="-O2" |
| 7542 | else |
| 7543 | CXXFLAGS= |
| 7544 | fi |
| 7545 | fi |
| 7546 | ac_ext=c |
| 7547 | ac_cpp='$CPP $CPPFLAGS' |
| 7548 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7549 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7550 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7551 | |
| 7552 | depcc="$CXX" am_compiler_list= |
| 7553 | |
| 7554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 7555 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 7556 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : |
| 7557 | $as_echo_n "(cached) " >&6 |
| 7558 | else |
| 7559 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 7560 | # We make a subdir and do the tests there. Otherwise we can end up |
| 7561 | # making bogus files that we don't know about and never remove. For |
| 7562 | # instance it was reported that on HP-UX the gcc test will end up |
| 7563 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 7564 | # in D'. |
| 7565 | mkdir conftest.dir |
| 7566 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 7567 | # using a relative directory. |
| 7568 | cp "$am_depcomp" conftest.dir |
| 7569 | cd conftest.dir |
| 7570 | # We will build objects and dependencies in a subdirectory because |
| 7571 | # it helps to detect inapplicable dependency modes. For instance |
| 7572 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 7573 | # side effect of compilation, but ICC will put the dependencies in |
| 7574 | # the current directory while Tru64 will put them in the object |
| 7575 | # directory. |
| 7576 | mkdir sub |
| 7577 | |
| 7578 | am_cv_CXX_dependencies_compiler_type=none |
| 7579 | if test "$am_compiler_list" = ""; then |
| 7580 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 7581 | fi |
| 7582 | am__universal=false |
| 7583 | case " $depcc " in #( |
| 7584 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 7585 | esac |
| 7586 | |
| 7587 | for depmode in $am_compiler_list; do |
| 7588 | # Setup a source with many dependencies, because some compilers |
| 7589 | # like to wrap large dependency lists on column 80 (with \), and |
| 7590 | # we should not choose a depcomp mode which is confused by this. |
| 7591 | # |
| 7592 | # We need to recreate these files for each test, as the compiler may |
| 7593 | # overwrite some of them when testing with obscure command lines. |
| 7594 | # This happens at least with the AIX C compiler. |
| 7595 | : > sub/conftest.c |
| 7596 | for i in 1 2 3 4 5 6; do |
| 7597 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 7598 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 7599 | # Solaris 8's {/usr,}/bin/sh. |
| 7600 | touch sub/conftst$i.h |
| 7601 | done |
| 7602 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 7603 | |
| 7604 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 7605 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 7606 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 7607 | # versions had trouble with output in subdirs |
| 7608 | am__obj=sub/conftest.${OBJEXT-o} |
| 7609 | am__minus_obj="-o $am__obj" |
| 7610 | case $depmode in |
| 7611 | gcc) |
| 7612 | # This depmode causes a compiler race in universal mode. |
| 7613 | test "$am__universal" = false || continue |
| 7614 | ;; |
| 7615 | nosideeffect) |
| 7616 | # after this tag, mechanisms are not by side-effect, so they'll |
| 7617 | # only be used when explicitly requested |
| 7618 | if test "x$enable_dependency_tracking" = xyes; then |
| 7619 | continue |
| 7620 | else |
| 7621 | break |
| 7622 | fi |
| 7623 | ;; |
| 7624 | msvisualcpp | msvcmsys) |
| 7625 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 7626 | # not run yet. These depmodes are late enough in the game, and |
| 7627 | # so weak that their functioning should not be impacted. |
| 7628 | am__obj=conftest.${OBJEXT-o} |
| 7629 | am__minus_obj= |
| 7630 | ;; |
| 7631 | none) break ;; |
| 7632 | esac |
| 7633 | if depmode=$depmode \ |
| 7634 | source=sub/conftest.c object=$am__obj \ |
| 7635 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 7636 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 7637 | >/dev/null 2>conftest.err && |
| 7638 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 7639 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 7640 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 7641 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 7642 | # icc doesn't choke on unknown options, it will just issue warnings |
| 7643 | # or remarks (even with -Werror). So we grep stderr for any message |
| 7644 | # that says an option was ignored or not supported. |
| 7645 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 7646 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 7647 | # The diagnosis changed in icc 8.0: |
| 7648 | # icc: Command line remark: option '-MP' not supported |
| 7649 | if (grep 'ignoring option' conftest.err || |
| 7650 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 7651 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 7652 | break |
| 7653 | fi |
| 7654 | fi |
| 7655 | done |
| 7656 | |
| 7657 | cd .. |
| 7658 | rm -rf conftest.dir |
| 7659 | else |
| 7660 | am_cv_CXX_dependencies_compiler_type=none |
| 7661 | fi |
| 7662 | |
| 7663 | fi |
| 7664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 7665 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
| 7666 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 7667 | |
| 7668 | if |
| 7669 | test "x$enable_dependency_tracking" != xno \ |
| 7670 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 7671 | am__fastdepCXX_TRUE= |
| 7672 | am__fastdepCXX_FALSE='#' |
| 7673 | else |
| 7674 | am__fastdepCXX_TRUE='#' |
| 7675 | am__fastdepCXX_FALSE= |
| 7676 | fi |
| 7677 | |
| 7678 | |
| 7679 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 7680 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 7681 | (test "X$CXX" != "Xg++"))) ; then |
| 7682 | ac_ext=cpp |
| 7683 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 7684 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7685 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7686 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 7687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 |
| 7688 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } |
| 7689 | if test -z "$CXXCPP"; then |
| 7690 | if test "${ac_cv_prog_CXXCPP+set}" = set; then : |
| 7691 | $as_echo_n "(cached) " >&6 |
| 7692 | else |
| 7693 | # Double quotes because CXXCPP needs to be expanded |
| 7694 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 7695 | do |
| 7696 | ac_preproc_ok=false |
| 7697 | for ac_cxx_preproc_warn_flag in '' yes |
| 7698 | do |
| 7699 | # Use a header file that comes with gcc, so configuring glibc |
| 7700 | # with a fresh cross-compiler works. |
| 7701 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7702 | # <limits.h> exists even on freestanding compilers. |
| 7703 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 7704 | # not just through cpp. "Syntax error" is here to catch this case. |
| 7705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7706 | /* end confdefs.h. */ |
| 7707 | #ifdef __STDC__ |
| 7708 | # include <limits.h> |
| 7709 | #else |
| 7710 | # include <assert.h> |
| 7711 | #endif |
| 7712 | Syntax error |
| 7713 | _ACEOF |
| 7714 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 7715 | |
| 7716 | else |
| 7717 | # Broken: fails on valid input. |
| 7718 | continue |
| 7719 | fi |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 7720 | rm -f conftest.err conftest.$ac_ext |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7721 | |
| 7722 | # OK, works on sane cases. Now check whether nonexistent headers |
| 7723 | # can be detected and how. |
| 7724 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7725 | /* end confdefs.h. */ |
| 7726 | #include <ac_nonexistent.h> |
| 7727 | _ACEOF |
| 7728 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 7729 | # Broken: success on invalid input. |
| 7730 | continue |
| 7731 | else |
| 7732 | # Passes both tests. |
| 7733 | ac_preproc_ok=: |
| 7734 | break |
| 7735 | fi |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 7736 | rm -f conftest.err conftest.$ac_ext |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7737 | |
| 7738 | done |
| 7739 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 7740 | rm -f conftest.err conftest.$ac_ext |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7741 | if $ac_preproc_ok; then : |
| 7742 | break |
| 7743 | fi |
| 7744 | |
| 7745 | done |
| 7746 | ac_cv_prog_CXXCPP=$CXXCPP |
| 7747 | |
| 7748 | fi |
| 7749 | CXXCPP=$ac_cv_prog_CXXCPP |
| 7750 | else |
| 7751 | ac_cv_prog_CXXCPP=$CXXCPP |
| 7752 | fi |
| 7753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 |
| 7754 | $as_echo "$CXXCPP" >&6; } |
| 7755 | ac_preproc_ok=false |
| 7756 | for ac_cxx_preproc_warn_flag in '' yes |
| 7757 | do |
| 7758 | # Use a header file that comes with gcc, so configuring glibc |
| 7759 | # with a fresh cross-compiler works. |
| 7760 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7761 | # <limits.h> exists even on freestanding compilers. |
| 7762 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 7763 | # not just through cpp. "Syntax error" is here to catch this case. |
| 7764 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7765 | /* end confdefs.h. */ |
| 7766 | #ifdef __STDC__ |
| 7767 | # include <limits.h> |
| 7768 | #else |
| 7769 | # include <assert.h> |
| 7770 | #endif |
| 7771 | Syntax error |
| 7772 | _ACEOF |
| 7773 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 7774 | |
| 7775 | else |
| 7776 | # Broken: fails on valid input. |
| 7777 | continue |
| 7778 | fi |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 7779 | rm -f conftest.err conftest.$ac_ext |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7780 | |
| 7781 | # OK, works on sane cases. Now check whether nonexistent headers |
| 7782 | # can be detected and how. |
| 7783 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7784 | /* end confdefs.h. */ |
| 7785 | #include <ac_nonexistent.h> |
| 7786 | _ACEOF |
| 7787 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 7788 | # Broken: success on invalid input. |
| 7789 | continue |
| 7790 | else |
| 7791 | # Passes both tests. |
| 7792 | ac_preproc_ok=: |
| 7793 | break |
| 7794 | fi |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 7795 | rm -f conftest.err conftest.$ac_ext |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7796 | |
| 7797 | done |
| 7798 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 7799 | rm -f conftest.err conftest.$ac_ext |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7800 | if $ac_preproc_ok; then : |
| 7801 | |
| 7802 | else |
| 7803 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7804 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 7805 | _lt_caught_CXX_error=yes; } |
| 7806 | fi |
| 7807 | |
| 7808 | ac_ext=c |
| 7809 | ac_cpp='$CPP $CPPFLAGS' |
| 7810 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7811 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7812 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7813 | |
| 7814 | else |
| 7815 | _lt_caught_CXX_error=yes |
| 7816 | fi |
| 7817 | |
| 7818 | |
| 7819 | |
| 7820 | |
| 7821 | |
| 7822 | # Set options |
| 7823 | |
| 7824 | |
| 7825 | |
| 7826 | enable_dlopen=no |
| 7827 | |
| 7828 | |
| 7829 | enable_win32_dll=no |
| 7830 | |
| 7831 | |
| 7832 | # Check whether --enable-shared was given. |
| 7833 | if test "${enable_shared+set}" = set; then : |
| 7834 | enableval=$enable_shared; p=${PACKAGE-default} |
| 7835 | case $enableval in |
| 7836 | yes) enable_shared=yes ;; |
| 7837 | no) enable_shared=no ;; |
| 7838 | *) |
| 7839 | enable_shared=no |
| 7840 | # Look at the argument we got. We use all the common list separators. |
| 7841 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 7842 | for pkg in $enableval; do |
| 7843 | IFS="$lt_save_ifs" |
| 7844 | if test "X$pkg" = "X$p"; then |
| 7845 | enable_shared=yes |
| 7846 | fi |
| 7847 | done |
| 7848 | IFS="$lt_save_ifs" |
| 7849 | ;; |
| 7850 | esac |
| 7851 | else |
| 7852 | enable_shared=yes |
| 7853 | fi |
| 7854 | |
| 7855 | |
| 7856 | |
| 7857 | |
| 7858 | |
| 7859 | |
| 7860 | |
| 7861 | |
| 7862 | |
| 7863 | # Check whether --enable-static was given. |
| 7864 | if test "${enable_static+set}" = set; then : |
| 7865 | enableval=$enable_static; p=${PACKAGE-default} |
| 7866 | case $enableval in |
| 7867 | yes) enable_static=yes ;; |
| 7868 | no) enable_static=no ;; |
| 7869 | *) |
| 7870 | enable_static=no |
| 7871 | # Look at the argument we got. We use all the common list separators. |
| 7872 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 7873 | for pkg in $enableval; do |
| 7874 | IFS="$lt_save_ifs" |
| 7875 | if test "X$pkg" = "X$p"; then |
| 7876 | enable_static=yes |
| 7877 | fi |
| 7878 | done |
| 7879 | IFS="$lt_save_ifs" |
| 7880 | ;; |
| 7881 | esac |
| 7882 | else |
| 7883 | enable_static=yes |
| 7884 | fi |
| 7885 | |
| 7886 | |
| 7887 | |
| 7888 | |
| 7889 | |
| 7890 | |
| 7891 | |
| 7892 | |
| 7893 | |
| 7894 | |
| 7895 | # Check whether --with-pic was given. |
| 7896 | if test "${with_pic+set}" = set; then : |
| 7897 | withval=$with_pic; pic_mode="$withval" |
| 7898 | else |
| 7899 | pic_mode=default |
| 7900 | fi |
| 7901 | |
| 7902 | |
| 7903 | test -z "$pic_mode" && pic_mode=default |
| 7904 | |
| 7905 | |
| 7906 | |
| 7907 | |
| 7908 | |
| 7909 | |
| 7910 | |
| 7911 | # Check whether --enable-fast-install was given. |
| 7912 | if test "${enable_fast_install+set}" = set; then : |
| 7913 | enableval=$enable_fast_install; p=${PACKAGE-default} |
| 7914 | case $enableval in |
| 7915 | yes) enable_fast_install=yes ;; |
| 7916 | no) enable_fast_install=no ;; |
| 7917 | *) |
| 7918 | enable_fast_install=no |
| 7919 | # Look at the argument we got. We use all the common list separators. |
| 7920 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 7921 | for pkg in $enableval; do |
| 7922 | IFS="$lt_save_ifs" |
| 7923 | if test "X$pkg" = "X$p"; then |
| 7924 | enable_fast_install=yes |
| 7925 | fi |
| 7926 | done |
| 7927 | IFS="$lt_save_ifs" |
| 7928 | ;; |
| 7929 | esac |
| 7930 | else |
| 7931 | enable_fast_install=yes |
| 7932 | fi |
| 7933 | |
| 7934 | |
| 7935 | |
| 7936 | |
| 7937 | |
| 7938 | |
| 7939 | |
| 7940 | |
| 7941 | |
| 7942 | |
| 7943 | |
| 7944 | # This can be used to rebuild libtool when needed |
| 7945 | LIBTOOL_DEPS="$ltmain" |
| 7946 | |
| 7947 | # Always use our own libtool. |
| 7948 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 7949 | |
| 7950 | |
| 7951 | |
| 7952 | |
| 7953 | |
| 7954 | |
| 7955 | |
| 7956 | |
| 7957 | |
| 7958 | |
| 7959 | |
| 7960 | |
| 7961 | |
| 7962 | |
| 7963 | |
| 7964 | |
| 7965 | |
| 7966 | |
| 7967 | |
| 7968 | |
| 7969 | |
| 7970 | |
| 7971 | |
| 7972 | |
| 7973 | |
| 7974 | test -z "$LN_S" && LN_S="ln -s" |
| 7975 | |
| 7976 | |
| 7977 | |
| 7978 | |
| 7979 | |
| 7980 | |
| 7981 | |
| 7982 | |
| 7983 | |
| 7984 | |
| 7985 | |
| 7986 | |
| 7987 | |
| 7988 | |
| 7989 | if test -n "${ZSH_VERSION+set}" ; then |
| 7990 | setopt NO_GLOB_SUBST |
| 7991 | fi |
| 7992 | |
| 7993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
| 7994 | $as_echo_n "checking for objdir... " >&6; } |
| 7995 | if test "${lt_cv_objdir+set}" = set; then : |
| 7996 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7997 | else |
| 7998 | rm -f .libs 2>/dev/null |
| 7999 | mkdir .libs 2>/dev/null |
| 8000 | if test -d .libs; then |
| 8001 | lt_cv_objdir=.libs |
| 8002 | else |
| 8003 | # MS-DOS does not allow filenames that begin with a dot. |
| 8004 | lt_cv_objdir=_libs |
| 8005 | fi |
| 8006 | rmdir .libs 2>/dev/null |
| 8007 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
| 8009 | $as_echo "$lt_cv_objdir" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8010 | objdir=$lt_cv_objdir |
| 8011 | |
| 8012 | |
| 8013 | |
| 8014 | |
| 8015 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8016 | cat >>confdefs.h <<_ACEOF |
| 8017 | #define LT_OBJDIR "$lt_cv_objdir/" |
| 8018 | _ACEOF |
| 8019 | |
| 8020 | |
| 8021 | |
| 8022 | |
| 8023 | |
| 8024 | |
| 8025 | |
| 8026 | |
| 8027 | |
| 8028 | |
| 8029 | |
| 8030 | |
| 8031 | |
| 8032 | |
| 8033 | |
| 8034 | |
| 8035 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8036 | case $host_os in |
| 8037 | aix3*) |
| 8038 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 8039 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 8040 | # vanish in a puff of smoke. |
| 8041 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 8042 | COLLECT_NAMES= |
| 8043 | export COLLECT_NAMES |
| 8044 | fi |
| 8045 | ;; |
| 8046 | esac |
| 8047 | |
| 8048 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 8049 | # metacharacters that are still active within double-quoted strings. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8050 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8051 | |
| 8052 | # Same as above, but do not quote variable references. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8053 | double_quote_subst='s/\(["`\\]\)/\\\1/g' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8054 | |
| 8055 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 8056 | # double_quote_subst'ed string. |
| 8057 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 8058 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8059 | # Sed substitution to delay expansion of an escaped single quote. |
| 8060 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
| 8061 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8062 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 8063 | no_glob_subst='s/\*/\\\*/g' |
| 8064 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8065 | # Global variables: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8066 | ofile=libtool |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8067 | can_build_shared=yes |
| 8068 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8069 | # All known linkers require a `.a' archive for static linking (except MSVC, |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8070 | # which needs '.lib'). |
| 8071 | libext=a |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8072 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8073 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 8074 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8075 | old_CC="$CC" |
| 8076 | old_CFLAGS="$CFLAGS" |
| 8077 | |
| 8078 | # Set sane defaults for various variables |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8079 | test -z "$CC" && CC=cc |
| 8080 | test -z "$LTCC" && LTCC=$CC |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8081 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8082 | test -z "$LD" && LD=ld |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8083 | test -z "$ac_objext" && ac_objext=o |
| 8084 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8085 | for cc_temp in $compiler""; do |
| 8086 | case $cc_temp in |
| 8087 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 8088 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 8089 | \-*) ;; |
| 8090 | *) break;; |
| 8091 | esac |
| 8092 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8093 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8094 | |
| 8095 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8096 | # Only perform the check for file, if the check method requires it |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8097 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8098 | case $deplibs_check_method in |
| 8099 | file_magic*) |
| 8100 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
| 8102 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
| 8103 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : |
| 8104 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8105 | else |
| 8106 | case $MAGIC_CMD in |
| 8107 | [\\/*] | ?:[\\/]*) |
| 8108 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 8109 | ;; |
| 8110 | *) |
| 8111 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 8112 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 8113 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 8114 | for ac_dir in $ac_dummy; do |
| 8115 | IFS="$lt_save_ifs" |
| 8116 | test -z "$ac_dir" && ac_dir=. |
| 8117 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 8118 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 8119 | if test -n "$file_magic_test_file"; then |
| 8120 | case $deplibs_check_method in |
| 8121 | "file_magic "*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8122 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8123 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8124 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 8125 | $EGREP "$file_magic_regex" > /dev/null; then |
| 8126 | : |
| 8127 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8128 | cat <<_LT_EOF 1>&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8129 | |
| 8130 | *** Warning: the command libtool uses to detect shared libraries, |
| 8131 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 8132 | *** The result is that libtool may fail to recognize shared libraries |
| 8133 | *** as such. This will affect the creation of libtool libraries that |
| 8134 | *** depend on shared libraries, but programs linked with such libtool |
| 8135 | *** libraries will work regardless of this problem. Nevertheless, you |
| 8136 | *** may want to report the problem to your system manager and/or to |
| 8137 | *** bug-libtool@gnu.org |
| 8138 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8139 | _LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8140 | fi ;; |
| 8141 | esac |
| 8142 | fi |
| 8143 | break |
| 8144 | fi |
| 8145 | done |
| 8146 | IFS="$lt_save_ifs" |
| 8147 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 8148 | ;; |
| 8149 | esac |
| 8150 | fi |
| 8151 | |
| 8152 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8153 | if test -n "$MAGIC_CMD"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 8155 | $as_echo "$MAGIC_CMD" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8156 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8158 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8159 | fi |
| 8160 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8161 | |
| 8162 | |
| 8163 | |
| 8164 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8165 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 8166 | if test -n "$ac_tool_prefix"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
| 8168 | $as_echo_n "checking for file... " >&6; } |
| 8169 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : |
| 8170 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8171 | else |
| 8172 | case $MAGIC_CMD in |
| 8173 | [\\/*] | ?:[\\/]*) |
| 8174 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 8175 | ;; |
| 8176 | *) |
| 8177 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 8178 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 8179 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 8180 | for ac_dir in $ac_dummy; do |
| 8181 | IFS="$lt_save_ifs" |
| 8182 | test -z "$ac_dir" && ac_dir=. |
| 8183 | if test -f $ac_dir/file; then |
| 8184 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 8185 | if test -n "$file_magic_test_file"; then |
| 8186 | case $deplibs_check_method in |
| 8187 | "file_magic "*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8188 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8189 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8190 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 8191 | $EGREP "$file_magic_regex" > /dev/null; then |
| 8192 | : |
| 8193 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8194 | cat <<_LT_EOF 1>&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8195 | |
| 8196 | *** Warning: the command libtool uses to detect shared libraries, |
| 8197 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 8198 | *** The result is that libtool may fail to recognize shared libraries |
| 8199 | *** as such. This will affect the creation of libtool libraries that |
| 8200 | *** depend on shared libraries, but programs linked with such libtool |
| 8201 | *** libraries will work regardless of this problem. Nevertheless, you |
| 8202 | *** may want to report the problem to your system manager and/or to |
| 8203 | *** bug-libtool@gnu.org |
| 8204 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8205 | _LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8206 | fi ;; |
| 8207 | esac |
| 8208 | fi |
| 8209 | break |
| 8210 | fi |
| 8211 | done |
| 8212 | IFS="$lt_save_ifs" |
| 8213 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 8214 | ;; |
| 8215 | esac |
| 8216 | fi |
| 8217 | |
| 8218 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8219 | if test -n "$MAGIC_CMD"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 8221 | $as_echo "$MAGIC_CMD" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8222 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8224 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8225 | fi |
| 8226 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8227 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8228 | else |
| 8229 | MAGIC_CMD=: |
| 8230 | fi |
| 8231 | fi |
| 8232 | |
| 8233 | fi |
| 8234 | ;; |
| 8235 | esac |
| 8236 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8237 | # Use C for the default configuration in the libtool script |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8238 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8239 | lt_save_CC="$CC" |
| 8240 | ac_ext=c |
| 8241 | ac_cpp='$CPP $CPPFLAGS' |
| 8242 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8243 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8244 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8245 | |
| 8246 | |
| 8247 | # Source file extension for C test sources. |
| 8248 | ac_ext=c |
| 8249 | |
| 8250 | # Object file extension for compiled C test sources. |
| 8251 | objext=o |
| 8252 | objext=$objext |
| 8253 | |
| 8254 | # Code to be used in simple compile tests |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8255 | lt_simple_compile_test_code="int some_variable = 0;" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8256 | |
| 8257 | # Code to be used in simple link tests |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8258 | lt_simple_link_test_code='int main(){return(0);}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8259 | |
| 8260 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8261 | |
| 8262 | |
| 8263 | |
| 8264 | |
| 8265 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8266 | # If no C compiler was specified, use CC. |
| 8267 | LTCC=${LTCC-"$CC"} |
| 8268 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8269 | # If no C compiler flags were specified, use CFLAGS. |
| 8270 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 8271 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8272 | # Allow CC to be a program name with arguments. |
| 8273 | compiler=$CC |
| 8274 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8275 | # Save the default compiler, since it gets overwritten when the other |
| 8276 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
| 8277 | compiler_DEFAULT=$CC |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8278 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8279 | # save warnings/boilerplate of simple test code |
| 8280 | ac_outfile=conftest.$ac_objext |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8281 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8282 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 8283 | _lt_compiler_boilerplate=`cat conftest.err` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8284 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8285 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8286 | ac_outfile=conftest.$ac_objext |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8287 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8288 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 8289 | _lt_linker_boilerplate=`cat conftest.err` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8290 | $RM -r conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8291 | |
| 8292 | |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 8293 | ## CAVEAT EMPTOR: |
| 8294 | ## There is no encapsulation within the following macros, do not change |
| 8295 | ## the running order or otherwise move them around unless you know exactly |
| 8296 | ## what you are doing... |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8297 | if test -n "$compiler"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8298 | |
| 8299 | lt_prog_compiler_no_builtin_flag= |
| 8300 | |
| 8301 | if test "$GCC" = yes; then |
| 8302 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 8303 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 8305 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
| 8306 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : |
| 8307 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8308 | else |
| 8309 | lt_cv_prog_compiler_rtti_exceptions=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8310 | ac_outfile=conftest.$ac_objext |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8311 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8312 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 8313 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8314 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8315 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8316 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8317 | # The option is referenced via a variable to avoid confusing sed. |
| 8318 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8319 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8320 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8321 | -e 's:$: $lt_compiler_flag:'` |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 8322 | (eval echo "\"\$as_me:8322: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8323 | (eval "$lt_compile" 2>conftest.err) |
| 8324 | ac_status=$? |
| 8325 | cat conftest.err >&5 |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 8326 | echo "$as_me:8326: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8327 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 8328 | # The compiler can only warn and ignore the option if not recognized |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8329 | # So say no if there are warnings other than the usual output. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8330 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8331 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8332 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8333 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 8334 | fi |
| 8335 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8336 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8337 | |
| 8338 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 8340 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8341 | |
| 8342 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 8343 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 8344 | else |
| 8345 | : |
| 8346 | fi |
| 8347 | |
| 8348 | fi |
| 8349 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8350 | |
| 8351 | |
| 8352 | |
| 8353 | |
| 8354 | |
| 8355 | lt_prog_compiler_wl= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8356 | lt_prog_compiler_pic= |
| 8357 | lt_prog_compiler_static= |
| 8358 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 8360 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8361 | |
| 8362 | if test "$GCC" = yes; then |
| 8363 | lt_prog_compiler_wl='-Wl,' |
| 8364 | lt_prog_compiler_static='-static' |
| 8365 | |
| 8366 | case $host_os in |
| 8367 | aix*) |
| 8368 | # All AIX code is PIC. |
| 8369 | if test "$host_cpu" = ia64; then |
| 8370 | # AIX 5 now supports IA64 processor |
| 8371 | lt_prog_compiler_static='-Bstatic' |
| 8372 | fi |
| 8373 | ;; |
| 8374 | |
| 8375 | amigaos*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8376 | case $host_cpu in |
| 8377 | powerpc) |
| 8378 | # see comment about AmigaOS4 .so support |
| 8379 | lt_prog_compiler_pic='-fPIC' |
| 8380 | ;; |
| 8381 | m68k) |
| 8382 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 8383 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 8384 | # like `-m68040'. |
| 8385 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 8386 | ;; |
| 8387 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8388 | ;; |
| 8389 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8390 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8391 | # PIC is the default for these OSes. |
| 8392 | ;; |
| 8393 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8394 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8395 | # This hack is so that the source file can tell whether it is being |
| 8396 | # built for inclusion in a dll (and should export symbols for example). |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8397 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 8398 | # (--disable-auto-import) libraries |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8399 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 8400 | ;; |
| 8401 | |
| 8402 | darwin* | rhapsody*) |
| 8403 | # PIC is the default on this platform |
| 8404 | # Common symbols not allowed in MH_DYLIB files |
| 8405 | lt_prog_compiler_pic='-fno-common' |
| 8406 | ;; |
| 8407 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8408 | hpux*) |
| 8409 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 8410 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 8411 | # sets the default TLS model and affects inlining. |
| 8412 | case $host_cpu in |
| 8413 | hppa*64*) |
| 8414 | # +Z the default |
| 8415 | ;; |
| 8416 | *) |
| 8417 | lt_prog_compiler_pic='-fPIC' |
| 8418 | ;; |
| 8419 | esac |
| 8420 | ;; |
| 8421 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8422 | interix[3-9]*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8423 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 8424 | # Instead, we relocate shared libraries at runtime. |
| 8425 | ;; |
| 8426 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8427 | msdosdjgpp*) |
| 8428 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 8429 | # on systems that don't support them. |
| 8430 | lt_prog_compiler_can_build_shared=no |
| 8431 | enable_shared=no |
| 8432 | ;; |
| 8433 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8434 | *nto* | *qnx*) |
| 8435 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 8436 | # it will coredump. |
| 8437 | lt_prog_compiler_pic='-fPIC -shared' |
| 8438 | ;; |
| 8439 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8440 | sysv4*MP*) |
| 8441 | if test -d /usr/nec; then |
| 8442 | lt_prog_compiler_pic=-Kconform_pic |
| 8443 | fi |
| 8444 | ;; |
| 8445 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8446 | *) |
| 8447 | lt_prog_compiler_pic='-fPIC' |
| 8448 | ;; |
| 8449 | esac |
| 8450 | else |
| 8451 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 8452 | case $host_os in |
| 8453 | aix*) |
| 8454 | lt_prog_compiler_wl='-Wl,' |
| 8455 | if test "$host_cpu" = ia64; then |
| 8456 | # AIX 5 now supports IA64 processor |
| 8457 | lt_prog_compiler_static='-Bstatic' |
| 8458 | else |
| 8459 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 8460 | fi |
| 8461 | ;; |
| 8462 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8463 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8464 | # This hack is so that the source file can tell whether it is being |
| 8465 | # built for inclusion in a dll (and should export symbols for example). |
| 8466 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 8467 | ;; |
| 8468 | |
| 8469 | hpux9* | hpux10* | hpux11*) |
| 8470 | lt_prog_compiler_wl='-Wl,' |
| 8471 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 8472 | # not for PA HP-UX. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8473 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8474 | hppa*64*|ia64*) |
| 8475 | # +Z the default |
| 8476 | ;; |
| 8477 | *) |
| 8478 | lt_prog_compiler_pic='+Z' |
| 8479 | ;; |
| 8480 | esac |
| 8481 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 8482 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
| 8483 | ;; |
| 8484 | |
| 8485 | irix5* | irix6* | nonstopux*) |
| 8486 | lt_prog_compiler_wl='-Wl,' |
| 8487 | # PIC (with -KPIC) is the default. |
| 8488 | lt_prog_compiler_static='-non_shared' |
| 8489 | ;; |
| 8490 | |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 8491 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8492 | case $cc_basename in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8493 | # old Intel for x86_64 which still supported -KPIC. |
| 8494 | ecc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8495 | lt_prog_compiler_wl='-Wl,' |
| 8496 | lt_prog_compiler_pic='-KPIC' |
| 8497 | lt_prog_compiler_static='-static' |
| 8498 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8499 | # icc used to be incompatible with GCC. |
| 8500 | # ICC 10 doesn't accept -KPIC any more. |
| 8501 | icc* | ifort*) |
| 8502 | lt_prog_compiler_wl='-Wl,' |
| 8503 | lt_prog_compiler_pic='-fPIC' |
| 8504 | lt_prog_compiler_static='-static' |
| 8505 | ;; |
| 8506 | # Lahey Fortran 8.1. |
| 8507 | lf95*) |
| 8508 | lt_prog_compiler_wl='-Wl,' |
| 8509 | lt_prog_compiler_pic='--shared' |
| 8510 | lt_prog_compiler_static='--static' |
| 8511 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8512 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 8513 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 8514 | # which looks to be a dead project) |
| 8515 | lt_prog_compiler_wl='-Wl,' |
| 8516 | lt_prog_compiler_pic='-fpic' |
| 8517 | lt_prog_compiler_static='-Bstatic' |
| 8518 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8519 | ccc*) |
| 8520 | lt_prog_compiler_wl='-Wl,' |
| 8521 | # All Alpha code is PIC. |
| 8522 | lt_prog_compiler_static='-non_shared' |
| 8523 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8524 | xl*) |
| 8525 | # IBM XL C 8.0/Fortran 10.1 on PPC |
| 8526 | lt_prog_compiler_wl='-Wl,' |
| 8527 | lt_prog_compiler_pic='-qpic' |
| 8528 | lt_prog_compiler_static='-qstaticlink' |
| 8529 | ;; |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8530 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8531 | case `$CC -V 2>&1 | sed 5q` in |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8532 | *Sun\ C*) |
| 8533 | # Sun C 5.9 |
| 8534 | lt_prog_compiler_pic='-KPIC' |
| 8535 | lt_prog_compiler_static='-Bstatic' |
| 8536 | lt_prog_compiler_wl='-Wl,' |
| 8537 | ;; |
| 8538 | *Sun\ F*) |
| 8539 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 8540 | lt_prog_compiler_pic='-KPIC' |
| 8541 | lt_prog_compiler_static='-Bstatic' |
| 8542 | lt_prog_compiler_wl='' |
| 8543 | ;; |
| 8544 | esac |
| 8545 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8546 | esac |
| 8547 | ;; |
| 8548 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8549 | newsos6) |
| 8550 | lt_prog_compiler_pic='-KPIC' |
| 8551 | lt_prog_compiler_static='-Bstatic' |
| 8552 | ;; |
| 8553 | |
| 8554 | *nto* | *qnx*) |
| 8555 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 8556 | # it will coredump. |
| 8557 | lt_prog_compiler_pic='-fPIC -shared' |
| 8558 | ;; |
| 8559 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8560 | osf3* | osf4* | osf5*) |
| 8561 | lt_prog_compiler_wl='-Wl,' |
| 8562 | # All OSF/1 code is PIC. |
| 8563 | lt_prog_compiler_static='-non_shared' |
| 8564 | ;; |
| 8565 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8566 | rdos*) |
| 8567 | lt_prog_compiler_static='-non_shared' |
| 8568 | ;; |
| 8569 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8570 | solaris*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8571 | lt_prog_compiler_pic='-KPIC' |
| 8572 | lt_prog_compiler_static='-Bstatic' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8573 | case $cc_basename in |
| 8574 | f77* | f90* | f95*) |
| 8575 | lt_prog_compiler_wl='-Qoption ld ';; |
| 8576 | *) |
| 8577 | lt_prog_compiler_wl='-Wl,';; |
| 8578 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8579 | ;; |
| 8580 | |
| 8581 | sunos4*) |
| 8582 | lt_prog_compiler_wl='-Qoption ld ' |
| 8583 | lt_prog_compiler_pic='-PIC' |
| 8584 | lt_prog_compiler_static='-Bstatic' |
| 8585 | ;; |
| 8586 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8587 | sysv4 | sysv4.2uw2* | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8588 | lt_prog_compiler_wl='-Wl,' |
| 8589 | lt_prog_compiler_pic='-KPIC' |
| 8590 | lt_prog_compiler_static='-Bstatic' |
| 8591 | ;; |
| 8592 | |
| 8593 | sysv4*MP*) |
| 8594 | if test -d /usr/nec ;then |
| 8595 | lt_prog_compiler_pic='-Kconform_pic' |
| 8596 | lt_prog_compiler_static='-Bstatic' |
| 8597 | fi |
| 8598 | ;; |
| 8599 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8600 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 8601 | lt_prog_compiler_wl='-Wl,' |
| 8602 | lt_prog_compiler_pic='-KPIC' |
| 8603 | lt_prog_compiler_static='-Bstatic' |
| 8604 | ;; |
| 8605 | |
| 8606 | unicos*) |
| 8607 | lt_prog_compiler_wl='-Wl,' |
| 8608 | lt_prog_compiler_can_build_shared=no |
| 8609 | ;; |
| 8610 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8611 | uts4*) |
| 8612 | lt_prog_compiler_pic='-pic' |
| 8613 | lt_prog_compiler_static='-Bstatic' |
| 8614 | ;; |
| 8615 | |
| 8616 | *) |
| 8617 | lt_prog_compiler_can_build_shared=no |
| 8618 | ;; |
| 8619 | esac |
| 8620 | fi |
| 8621 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8622 | case $host_os in |
| 8623 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 8624 | *djgpp*) |
| 8625 | lt_prog_compiler_pic= |
| 8626 | ;; |
| 8627 | *) |
| 8628 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 8629 | ;; |
| 8630 | esac |
| 8631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
| 8632 | $as_echo "$lt_prog_compiler_pic" >&6; } |
| 8633 | |
| 8634 | |
| 8635 | |
| 8636 | |
| 8637 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8638 | |
| 8639 | # |
| 8640 | # Check to make sure the PIC flag actually works. |
| 8641 | # |
| 8642 | if test -n "$lt_prog_compiler_pic"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 8644 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
| 8645 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : |
| 8646 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8647 | else |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8648 | lt_cv_prog_compiler_pic_works=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8649 | ac_outfile=conftest.$ac_objext |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8650 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8651 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 8652 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8653 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8654 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8655 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8656 | # The option is referenced via a variable to avoid confusing sed. |
| 8657 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8658 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8659 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8660 | -e 's:$: $lt_compiler_flag:'` |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 8661 | (eval echo "\"\$as_me:8661: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8662 | (eval "$lt_compile" 2>conftest.err) |
| 8663 | ac_status=$? |
| 8664 | cat conftest.err >&5 |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 8665 | echo "$as_me:8665: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8666 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 8667 | # The compiler can only warn and ignore the option if not recognized |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8668 | # So say no if there are warnings other than the usual output. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8669 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8670 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8671 | 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] | 8672 | lt_cv_prog_compiler_pic_works=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8673 | fi |
| 8674 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8675 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8676 | |
| 8677 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
| 8679 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8680 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8681 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8682 | case $lt_prog_compiler_pic in |
| 8683 | "" | " "*) ;; |
| 8684 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 8685 | esac |
| 8686 | else |
| 8687 | lt_prog_compiler_pic= |
| 8688 | lt_prog_compiler_can_build_shared=no |
| 8689 | fi |
| 8690 | |
| 8691 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8692 | |
| 8693 | |
| 8694 | |
| 8695 | |
| 8696 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8697 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8698 | # |
| 8699 | # Check to make sure the static flag actually works. |
| 8700 | # |
| 8701 | 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] | 8702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 8703 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| 8704 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : |
| 8705 | $as_echo_n "(cached) " >&6 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8706 | else |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8707 | lt_cv_prog_compiler_static_works=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8708 | save_LDFLAGS="$LDFLAGS" |
| 8709 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8710 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8711 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 8712 | # The linker can only warn and ignore the option if not recognized |
| 8713 | # So say no if there are warnings |
| 8714 | if test -s conftest.err; then |
| 8715 | # Append any errors to the config.log. |
| 8716 | cat conftest.err 1>&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8717 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8718 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8719 | if diff conftest.exp conftest.er2 >/dev/null; then |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8720 | lt_cv_prog_compiler_static_works=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8721 | fi |
| 8722 | else |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8723 | lt_cv_prog_compiler_static_works=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8724 | fi |
| 8725 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8726 | $RM -r conftest* |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8727 | LDFLAGS="$save_LDFLAGS" |
| 8728 | |
| 8729 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
| 8731 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8732 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8733 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8734 | : |
| 8735 | else |
| 8736 | lt_prog_compiler_static= |
| 8737 | fi |
| 8738 | |
| 8739 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8740 | |
| 8741 | |
| 8742 | |
| 8743 | |
| 8744 | |
| 8745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 8746 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 8747 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : |
| 8748 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8749 | else |
| 8750 | lt_cv_prog_compiler_c_o=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8751 | $RM -r conftest 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8752 | mkdir conftest |
| 8753 | cd conftest |
| 8754 | mkdir out |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8755 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8756 | |
| 8757 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 8758 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8759 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8760 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8761 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8762 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8763 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8764 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8765 | -e 's:$: $lt_compiler_flag:'` |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 8766 | (eval echo "\"\$as_me:8766: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8767 | (eval "$lt_compile" 2>out/conftest.err) |
| 8768 | ac_status=$? |
| 8769 | cat out/conftest.err >&5 |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 8770 | echo "$as_me:8770: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8771 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 8772 | then |
| 8773 | # The compiler can only warn and ignore the option if not recognized |
| 8774 | # So say no if there are warnings |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8775 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8776 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 8777 | 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] | 8778 | lt_cv_prog_compiler_c_o=yes |
| 8779 | fi |
| 8780 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8781 | chmod u+w . 2>&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8782 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8783 | # SGI C++ compiler will create directory out/ii_files/ for |
| 8784 | # template instantiation |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8785 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 8786 | $RM out/* && rmdir out |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8787 | cd .. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8788 | $RM -r conftest |
| 8789 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8790 | |
| 8791 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 8793 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 8794 | |
| 8795 | |
| 8796 | |
| 8797 | |
| 8798 | |
| 8799 | |
| 8800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 8801 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 8802 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : |
| 8803 | $as_echo_n "(cached) " >&6 |
| 8804 | else |
| 8805 | lt_cv_prog_compiler_c_o=no |
| 8806 | $RM -r conftest 2>/dev/null |
| 8807 | mkdir conftest |
| 8808 | cd conftest |
| 8809 | mkdir out |
| 8810 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8811 | |
| 8812 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 8813 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8814 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8815 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8816 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8817 | lt_compile=`echo "$ac_compile" | $SED \ |
| 8818 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8819 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8820 | -e 's:$: $lt_compiler_flag:'` |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 8821 | (eval echo "\"\$as_me:8821: $lt_compile\"" >&5) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8822 | (eval "$lt_compile" 2>out/conftest.err) |
| 8823 | ac_status=$? |
| 8824 | cat out/conftest.err >&5 |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 8825 | echo "$as_me:8825: \$? = $ac_status" >&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8826 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 8827 | then |
| 8828 | # The compiler can only warn and ignore the option if not recognized |
| 8829 | # So say no if there are warnings |
| 8830 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 8831 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 8832 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 8833 | lt_cv_prog_compiler_c_o=yes |
| 8834 | fi |
| 8835 | fi |
| 8836 | chmod u+w . 2>&5 |
| 8837 | $RM conftest* |
| 8838 | # SGI C++ compiler will create directory out/ii_files/ for |
| 8839 | # template instantiation |
| 8840 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 8841 | $RM out/* && rmdir out |
| 8842 | cd .. |
| 8843 | $RM -r conftest |
| 8844 | $RM conftest* |
| 8845 | |
| 8846 | fi |
| 8847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 8848 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 8849 | |
| 8850 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8851 | |
| 8852 | |
| 8853 | hard_links="nottested" |
| 8854 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
| 8855 | # do not overwrite the value of need_locks provided by the user |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| 8857 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8858 | hard_links=yes |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8859 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8860 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 8861 | touch conftest.a |
| 8862 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 8863 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 8865 | $as_echo "$hard_links" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8866 | if test "$hard_links" = no; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8867 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 8868 | $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] | 8869 | need_locks=warn |
| 8870 | fi |
| 8871 | else |
| 8872 | need_locks=no |
| 8873 | fi |
| 8874 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8875 | |
| 8876 | |
| 8877 | |
| 8878 | |
| 8879 | |
| 8880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 8881 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8882 | |
| 8883 | runpath_var= |
| 8884 | allow_undefined_flag= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8885 | always_export_symbols=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8886 | archive_cmds= |
| 8887 | archive_expsym_cmds= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8888 | compiler_needs_object=no |
| 8889 | enable_shared_with_static_runtimes=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8890 | export_dynamic_flag_spec= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8891 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 8892 | hardcode_automatic=no |
| 8893 | hardcode_direct=no |
| 8894 | hardcode_direct_absolute=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8895 | hardcode_libdir_flag_spec= |
| 8896 | hardcode_libdir_flag_spec_ld= |
| 8897 | hardcode_libdir_separator= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8898 | hardcode_minus_L=no |
| 8899 | hardcode_shlibpath_var=unsupported |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8900 | inherit_rpath=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8901 | link_all_deplibs=unknown |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8902 | module_cmds= |
| 8903 | module_expsym_cmds= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8904 | old_archive_from_new_cmds= |
| 8905 | old_archive_from_expsyms_cmds= |
| 8906 | thread_safe_flag_spec= |
| 8907 | whole_archive_flag_spec= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8908 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 8909 | # included in the symbol list |
| 8910 | include_expsyms= |
| 8911 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 8912 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 8913 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 8914 | # as well as any symbol that contains `d'. |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8915 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8916 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 8917 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 8918 | # the symbol is explicitly referenced. Since portable code cannot |
| 8919 | # rely on this symbol name, it's probably fine to never include it in |
| 8920 | # preloaded symbol tables. |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8921 | # Exclude shared library initialization/finalization symbols. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8922 | extract_expsyms_cmds= |
| 8923 | |
| 8924 | case $host_os in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8925 | cygwin* | mingw* | pw32* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8926 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 8927 | # When not using gcc, we currently assume that we are using |
| 8928 | # Microsoft Visual C++. |
| 8929 | if test "$GCC" != yes; then |
| 8930 | with_gnu_ld=no |
| 8931 | fi |
| 8932 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8933 | interix*) |
| 8934 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 8935 | with_gnu_ld=yes |
| 8936 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8937 | openbsd*) |
| 8938 | with_gnu_ld=no |
| 8939 | ;; |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 8940 | linux* | k*bsd*-gnu) |
| 8941 | link_all_deplibs=no |
| 8942 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8943 | esac |
| 8944 | |
| 8945 | ld_shlibs=yes |
| 8946 | if test "$with_gnu_ld" = yes; then |
| 8947 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 8948 | wlarc='${wl}' |
| 8949 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8950 | # Set some defaults for GNU ld with shared library support. These |
| 8951 | # are reset later if shared libraries are not supported. Putting them |
| 8952 | # here allows them to be overridden if necessary. |
| 8953 | runpath_var=LD_RUN_PATH |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8954 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8955 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 8956 | # ancient GNU ld didn't support --whole-archive et. al. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8957 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 8958 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 8959 | else |
| 8960 | whole_archive_flag_spec= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8961 | fi |
| 8962 | supports_anon_versioning=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8963 | case `$LD -v 2>&1` in |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 8964 | *GNU\ gold*) supports_anon_versioning=yes ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8965 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 8966 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 8967 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 8968 | *\ 2.11.*) ;; # other 2.11 versions |
| 8969 | *) supports_anon_versioning=yes ;; |
| 8970 | esac |
| 8971 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8972 | # See if GNU ld supports shared libraries. |
| 8973 | case $host_os in |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8974 | aix[3-9]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8975 | # On AIX/PPC, the GNU linker is very broken |
| 8976 | if test "$host_cpu" != ia64; then |
| 8977 | ld_shlibs=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8978 | cat <<_LT_EOF 1>&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8979 | |
| 8980 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 8981 | *** to be unable to reliably create shared libraries on AIX. |
| 8982 | *** Therefore, libtool is disabling shared libraries support. If you |
| 8983 | *** really care for shared libraries, you may want to modify your PATH |
| 8984 | *** so that a non-GNU linker is found, and then restart. |
| 8985 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8986 | _LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8987 | fi |
| 8988 | ;; |
| 8989 | |
| 8990 | amigaos*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8991 | case $host_cpu in |
| 8992 | powerpc) |
| 8993 | # see comment about AmigaOS4 .so support |
| 8994 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8995 | archive_expsym_cmds='' |
| 8996 | ;; |
| 8997 | m68k) |
| 8998 | 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)' |
| 8999 | hardcode_libdir_flag_spec='-L$libdir' |
| 9000 | hardcode_minus_L=yes |
| 9001 | ;; |
| 9002 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9003 | ;; |
| 9004 | |
| 9005 | beos*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9006 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9007 | allow_undefined_flag=unsupported |
| 9008 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 9009 | # support --undefined. This deserves some investigation. FIXME |
| 9010 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9011 | else |
| 9012 | ld_shlibs=no |
| 9013 | fi |
| 9014 | ;; |
| 9015 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9016 | cygwin* | mingw* | pw32* | cegcc*) |
| 9017 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9018 | # as there is no search path for DLLs. |
| 9019 | hardcode_libdir_flag_spec='-L$libdir' |
| 9020 | allow_undefined_flag=unsupported |
| 9021 | always_export_symbols=no |
| 9022 | enable_shared_with_static_runtimes=yes |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9023 | 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] | 9024 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9025 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9026 | 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] | 9027 | # If the export-symbols file already is a .def file (1st line |
| 9028 | # is EXPORTS), use it as is; otherwise, prepend... |
| 9029 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 9030 | cp $export_symbols $output_objdir/$soname.def; |
| 9031 | else |
| 9032 | echo EXPORTS > $output_objdir/$soname.def; |
| 9033 | cat $export_symbols >> $output_objdir/$soname.def; |
| 9034 | fi~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9035 | $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] | 9036 | else |
| 9037 | ld_shlibs=no |
| 9038 | fi |
| 9039 | ;; |
| 9040 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9041 | interix[3-9]*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9042 | hardcode_direct=no |
| 9043 | hardcode_shlibpath_var=no |
| 9044 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 9045 | export_dynamic_flag_spec='${wl}-E' |
| 9046 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 9047 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 9048 | # default) and relocated if they conflict, which is a slow very memory |
| 9049 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 9050 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 9051 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 9052 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 9053 | 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' |
| 9054 | ;; |
| 9055 | |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 9056 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9057 | tmp_diet=no |
| 9058 | if test "$host_os" = linux-dietlibc; then |
| 9059 | case $cc_basename in |
| 9060 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
| 9061 | esac |
| 9062 | fi |
| 9063 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 9064 | && test "$tmp_diet" = no |
| 9065 | then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9066 | tmp_addflag= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9067 | tmp_sharedflag='-shared' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9068 | case $cc_basename,$host_cpu in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9069 | pgcc*) # Portland Group C compiler |
| 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' |
| 9072 | ;; |
| 9073 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9074 | 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] | 9075 | tmp_addflag=' $pic_flag -Mnomain' ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9076 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9077 | tmp_addflag=' -i_dynamic' ;; |
| 9078 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 9079 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 9080 | ifc* | ifort*) # Intel Fortran compiler |
| 9081 | tmp_addflag=' -nofor_main' ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9082 | lf95*) # Lahey Fortran 8.1 |
| 9083 | whole_archive_flag_spec= |
| 9084 | tmp_sharedflag='--shared' ;; |
| 9085 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
| 9086 | tmp_sharedflag='-qmkshrobj' |
| 9087 | tmp_addflag= ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9088 | esac |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9089 | case `$CC -V 2>&1 | sed 5q` in |
| 9090 | *Sun\ C*) # Sun C 5.9 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9091 | 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' |
| 9092 | compiler_needs_object=yes |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9093 | tmp_sharedflag='-G' ;; |
| 9094 | *Sun\ F*) # Sun Fortran 8.3 |
| 9095 | tmp_sharedflag='-G' ;; |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9096 | esac |
| 9097 | 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] | 9098 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9099 | if test "x$supports_anon_versioning" = xyes; then |
| 9100 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 9101 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 9102 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 9103 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 9104 | fi |
| 9105 | |
| 9106 | case $cc_basename in |
| 9107 | xlf*) |
| 9108 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 9109 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
| 9110 | hardcode_libdir_flag_spec= |
| 9111 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 9112 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' |
| 9113 | if test "x$supports_anon_versioning" = xyes; then |
| 9114 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 9115 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 9116 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 9117 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
| 9118 | fi |
| 9119 | ;; |
| 9120 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9121 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9122 | ld_shlibs=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9123 | fi |
| 9124 | ;; |
| 9125 | |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 9126 | netbsd* | netbsdelf*-gnu) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9127 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9128 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 9129 | wlarc= |
| 9130 | else |
| 9131 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9132 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9133 | fi |
| 9134 | ;; |
| 9135 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9136 | solaris*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9137 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9138 | ld_shlibs=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9139 | cat <<_LT_EOF 1>&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9140 | |
| 9141 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 9142 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 9143 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 9144 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 9145 | *** your PATH or compiler configuration so that the native linker is |
| 9146 | *** used, and then restart. |
| 9147 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9148 | _LT_EOF |
| 9149 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9150 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9151 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9152 | else |
| 9153 | ld_shlibs=no |
| 9154 | fi |
| 9155 | ;; |
| 9156 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9157 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 9158 | case `$LD -v 2>&1` in |
| 9159 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 9160 | ld_shlibs=no |
| 9161 | cat <<_LT_EOF 1>&2 |
| 9162 | |
| 9163 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 9164 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 9165 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 9166 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 9167 | *** your PATH or compiler configuration so that the native linker is |
| 9168 | *** used, and then restart. |
| 9169 | |
| 9170 | _LT_EOF |
| 9171 | ;; |
| 9172 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9173 | # For security reasons, it is highly recommended that you always |
| 9174 | # use absolute paths for naming shared libraries, and exclude the |
| 9175 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 9176 | # requires that you compile everything twice, which is a pain. |
| 9177 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 9178 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9179 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9180 | 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] | 9181 | else |
| 9182 | ld_shlibs=no |
| 9183 | fi |
| 9184 | ;; |
| 9185 | esac |
| 9186 | ;; |
| 9187 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9188 | sunos4*) |
| 9189 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 9190 | wlarc= |
| 9191 | hardcode_direct=yes |
| 9192 | hardcode_shlibpath_var=no |
| 9193 | ;; |
| 9194 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9195 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9196 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9197 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9198 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9199 | else |
| 9200 | ld_shlibs=no |
| 9201 | fi |
| 9202 | ;; |
| 9203 | esac |
| 9204 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9205 | if test "$ld_shlibs" = no; then |
| 9206 | runpath_var= |
| 9207 | hardcode_libdir_flag_spec= |
| 9208 | export_dynamic_flag_spec= |
| 9209 | whole_archive_flag_spec= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9210 | fi |
| 9211 | else |
| 9212 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 9213 | case $host_os in |
| 9214 | aix3*) |
| 9215 | allow_undefined_flag=unsupported |
| 9216 | always_export_symbols=yes |
| 9217 | 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' |
| 9218 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 9219 | # are no directories specified by -L. |
| 9220 | hardcode_minus_L=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9221 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9222 | # Neither direct hardcoding nor static linking is supported with a |
| 9223 | # broken collect2. |
| 9224 | hardcode_direct=unsupported |
| 9225 | fi |
| 9226 | ;; |
| 9227 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9228 | aix[4-9]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9229 | if test "$host_cpu" = ia64; then |
| 9230 | # On IA64, the linker does run time linking by default, so we don't |
| 9231 | # have to do anything special. |
| 9232 | aix_use_runtimelinking=no |
| 9233 | exp_sym_flag='-Bexport' |
| 9234 | no_entry_flag="" |
| 9235 | else |
| 9236 | # If we're using GNU nm, then we don't want the "-C" option. |
| 9237 | # -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] | 9238 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 9239 | 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] | 9240 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9241 | 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] | 9242 | fi |
| 9243 | aix_use_runtimelinking=no |
| 9244 | |
| 9245 | # Test if we are trying to use run time linking or normal |
| 9246 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 9247 | # need to do runtime linking. |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9248 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9249 | for ld_flag in $LDFLAGS; do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9250 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 9251 | aix_use_runtimelinking=yes |
| 9252 | break |
| 9253 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9254 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9255 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9256 | esac |
| 9257 | |
| 9258 | exp_sym_flag='-bexport' |
| 9259 | no_entry_flag='-bnoentry' |
| 9260 | fi |
| 9261 | |
| 9262 | # When large executables or shared objects are built, AIX ld can |
| 9263 | # have problems creating the table of contents. If linking a library |
| 9264 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 9265 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 9266 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 9267 | |
| 9268 | archive_cmds='' |
| 9269 | hardcode_direct=yes |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9270 | hardcode_direct_absolute=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9271 | hardcode_libdir_separator=':' |
| 9272 | link_all_deplibs=yes |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9273 | file_list_spec='${wl}-f,' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9274 | |
| 9275 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9276 | case $host_os in aix4.[012]|aix4.[012].*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9277 | # We only want to do this on AIX 4.2 and lower, the check |
| 9278 | # below for broken collect2 doesn't work under 4.3+ |
| 9279 | collect2name=`${CC} -print-prog-name=collect2` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9280 | if test -f "$collect2name" && |
| 9281 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9282 | then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9283 | # We have reworked collect2 |
| 9284 | : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9285 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9286 | # We have old collect2 |
| 9287 | hardcode_direct=unsupported |
| 9288 | # It fails to find uninstalled libraries when the uninstalled |
| 9289 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 9290 | # to unsupported forces relinking |
| 9291 | hardcode_minus_L=yes |
| 9292 | hardcode_libdir_flag_spec='-L$libdir' |
| 9293 | hardcode_libdir_separator= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9294 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9295 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9296 | esac |
| 9297 | shared_flag='-shared' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9298 | if test "$aix_use_runtimelinking" = yes; then |
| 9299 | shared_flag="$shared_flag "'${wl}-G' |
| 9300 | fi |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 9301 | link_all_deplibs=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9302 | else |
| 9303 | # not using gcc |
| 9304 | if test "$host_cpu" = ia64; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9305 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 9306 | # chokes on -Wl,-G. The following line is correct: |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9307 | shared_flag='-G' |
| 9308 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9309 | if test "$aix_use_runtimelinking" = yes; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9310 | shared_flag='${wl}-G' |
| 9311 | else |
| 9312 | shared_flag='${wl}-bM:SRE' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9313 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9314 | fi |
| 9315 | fi |
| 9316 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9317 | export_dynamic_flag_spec='${wl}-bexpall' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9318 | # It seems that -bexpall does not export symbols beginning with |
| 9319 | # underscore (_), so it is better to generate a list of symbols to export. |
| 9320 | always_export_symbols=yes |
| 9321 | if test "$aix_use_runtimelinking" = yes; then |
| 9322 | # Warning - without using the other runtime loading flags (-brtl), |
| 9323 | # -berok will link without error, but may produce a broken library. |
| 9324 | allow_undefined_flag='-berok' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9325 | # Determine the default libpath from the value encoded in an |
| 9326 | # empty executable. |
| 9327 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9328 | /* end confdefs.h. */ |
| 9329 | |
| 9330 | int |
| 9331 | main () |
| 9332 | { |
| 9333 | |
| 9334 | ; |
| 9335 | return 0; |
| 9336 | } |
| 9337 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9338 | if ac_fn_c_try_link "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9339 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9340 | lt_aix_libpath_sed=' |
| 9341 | /Import File Strings/,/^$/ { |
| 9342 | /^0/ { |
| 9343 | s/^0 *\(.*\)$/\1/ |
| 9344 | p |
| 9345 | } |
| 9346 | }' |
| 9347 | 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] | 9348 | # Check for a 64-bit object if we didn't find anything. |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9349 | if test -z "$aix_libpath"; then |
| 9350 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9351 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9352 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9353 | rm -f core conftest.err conftest.$ac_objext \ |
| 9354 | conftest$ac_exeext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9355 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 9356 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9357 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9358 | 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" |
| 9359 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9360 | if test "$host_cpu" = ia64; then |
| 9361 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 9362 | allow_undefined_flag="-z nodefs" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9363 | 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] | 9364 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9365 | # Determine the default libpath from the value encoded in an |
| 9366 | # empty executable. |
| 9367 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9368 | /* end confdefs.h. */ |
| 9369 | |
| 9370 | int |
| 9371 | main () |
| 9372 | { |
| 9373 | |
| 9374 | ; |
| 9375 | return 0; |
| 9376 | } |
| 9377 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9378 | if ac_fn_c_try_link "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9379 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9380 | lt_aix_libpath_sed=' |
| 9381 | /Import File Strings/,/^$/ { |
| 9382 | /^0/ { |
| 9383 | s/^0 *\(.*\)$/\1/ |
| 9384 | p |
| 9385 | } |
| 9386 | }' |
| 9387 | 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] | 9388 | # Check for a 64-bit object if we didn't find anything. |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9389 | if test -z "$aix_libpath"; then |
| 9390 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9391 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9392 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9393 | rm -f core conftest.err conftest.$ac_objext \ |
| 9394 | conftest$ac_exeext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9395 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 9396 | |
| 9397 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9398 | # Warning - without using the other run time loading flags, |
| 9399 | # -berok will link without error, but may produce a broken library. |
| 9400 | no_undefined_flag=' ${wl}-bernotok' |
| 9401 | allow_undefined_flag=' ${wl}-berok' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9402 | # Exported symbols can be pulled into shared objects from archives |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9403 | whole_archive_flag_spec='$convenience' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9404 | archive_cmds_need_lc=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9405 | # This is similar to how AIX traditionally builds its shared libraries. |
| 9406 | 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] | 9407 | fi |
| 9408 | fi |
| 9409 | ;; |
| 9410 | |
| 9411 | amigaos*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9412 | case $host_cpu in |
| 9413 | powerpc) |
| 9414 | # see comment about AmigaOS4 .so support |
| 9415 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9416 | archive_expsym_cmds='' |
| 9417 | ;; |
| 9418 | m68k) |
| 9419 | 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)' |
| 9420 | hardcode_libdir_flag_spec='-L$libdir' |
| 9421 | hardcode_minus_L=yes |
| 9422 | ;; |
| 9423 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9424 | ;; |
| 9425 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9426 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9427 | export_dynamic_flag_spec=-rdynamic |
| 9428 | ;; |
| 9429 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9430 | cygwin* | mingw* | pw32* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9431 | # When not using gcc, we currently assume that we are using |
| 9432 | # Microsoft Visual C++. |
| 9433 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 9434 | # no search path for DLLs. |
| 9435 | hardcode_libdir_flag_spec=' ' |
| 9436 | allow_undefined_flag=unsupported |
| 9437 | # Tell ltmain to make .lib files, not .a files. |
| 9438 | libext=lib |
| 9439 | # Tell ltmain to make .dll files, not .so files. |
| 9440 | shrext_cmds=".dll" |
| 9441 | # FIXME: Setting linknames here is a bad hack. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9442 | 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] | 9443 | # The linker will automatically build a .lib file if we build a DLL. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9444 | old_archive_from_new_cmds='true' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9445 | # FIXME: Should let the user specify the lib program. |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9446 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9447 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 9448 | enable_shared_with_static_runtimes=yes |
| 9449 | ;; |
| 9450 | |
| 9451 | darwin* | rhapsody*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9452 | |
| 9453 | |
| 9454 | archive_cmds_need_lc=no |
| 9455 | hardcode_direct=no |
| 9456 | hardcode_automatic=yes |
| 9457 | hardcode_shlibpath_var=unsupported |
| 9458 | whole_archive_flag_spec='' |
| 9459 | link_all_deplibs=yes |
| 9460 | allow_undefined_flag="$_lt_dar_allow_undefined" |
| 9461 | case $cc_basename in |
| 9462 | ifort*) _lt_dar_can_shared=yes ;; |
| 9463 | *) _lt_dar_can_shared=$GCC ;; |
| 9464 | esac |
| 9465 | if test "$_lt_dar_can_shared" = "yes"; then |
| 9466 | output_verbose_link_cmd=echo |
| 9467 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
| 9468 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 9469 | 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}" |
| 9470 | 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}" |
| 9471 | |
| 9472 | else |
| 9473 | ld_shlibs=no |
| 9474 | fi |
| 9475 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9476 | ;; |
| 9477 | |
| 9478 | dgux*) |
| 9479 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9480 | hardcode_libdir_flag_spec='-L$libdir' |
| 9481 | hardcode_shlibpath_var=no |
| 9482 | ;; |
| 9483 | |
| 9484 | freebsd1*) |
| 9485 | ld_shlibs=no |
| 9486 | ;; |
| 9487 | |
| 9488 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 9489 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 9490 | # does not break anything, and helps significantly (at the cost of a little |
| 9491 | # extra space). |
| 9492 | freebsd2.2*) |
| 9493 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 9494 | hardcode_libdir_flag_spec='-R$libdir' |
| 9495 | hardcode_direct=yes |
| 9496 | hardcode_shlibpath_var=no |
| 9497 | ;; |
| 9498 | |
| 9499 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 9500 | freebsd2*) |
| 9501 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 9502 | hardcode_direct=yes |
| 9503 | hardcode_minus_L=yes |
| 9504 | hardcode_shlibpath_var=no |
| 9505 | ;; |
| 9506 | |
| 9507 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9508 | freebsd* | dragonfly*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9509 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 9510 | hardcode_libdir_flag_spec='-R$libdir' |
| 9511 | hardcode_direct=yes |
| 9512 | hardcode_shlibpath_var=no |
| 9513 | ;; |
| 9514 | |
| 9515 | hpux9*) |
| 9516 | if test "$GCC" = yes; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9517 | 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] | 9518 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9519 | 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] | 9520 | fi |
| 9521 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 9522 | hardcode_libdir_separator=: |
| 9523 | hardcode_direct=yes |
| 9524 | |
| 9525 | # hardcode_minus_L: Not really in the search PATH, |
| 9526 | # but as the default location of the library. |
| 9527 | hardcode_minus_L=yes |
| 9528 | export_dynamic_flag_spec='${wl}-E' |
| 9529 | ;; |
| 9530 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9531 | hpux10*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9532 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9533 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 9534 | else |
| 9535 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 9536 | fi |
| 9537 | if test "$with_gnu_ld" = no; then |
| 9538 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9539 | hardcode_libdir_flag_spec_ld='+b $libdir' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9540 | hardcode_libdir_separator=: |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9541 | hardcode_direct=yes |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9542 | hardcode_direct_absolute=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9543 | export_dynamic_flag_spec='${wl}-E' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9544 | # hardcode_minus_L: Not really in the search PATH, |
| 9545 | # but as the default location of the library. |
| 9546 | hardcode_minus_L=yes |
| 9547 | fi |
| 9548 | ;; |
| 9549 | |
| 9550 | hpux11*) |
| 9551 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 9552 | case $host_cpu in |
| 9553 | hppa*64*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9554 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9555 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9556 | ia64*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9557 | 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] | 9558 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9559 | *) |
| 9560 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 9561 | ;; |
| 9562 | esac |
| 9563 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9564 | case $host_cpu in |
| 9565 | hppa*64*) |
| 9566 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9567 | ;; |
| 9568 | ia64*) |
| 9569 | 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] | 9570 | ;; |
| 9571 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9572 | 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] | 9573 | ;; |
| 9574 | esac |
| 9575 | fi |
| 9576 | if test "$with_gnu_ld" = no; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9577 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 9578 | hardcode_libdir_separator=: |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 9579 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9580 | case $host_cpu in |
| 9581 | hppa*64*|ia64*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9582 | hardcode_direct=no |
| 9583 | hardcode_shlibpath_var=no |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 9584 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9585 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9586 | hardcode_direct=yes |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9587 | hardcode_direct_absolute=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9588 | export_dynamic_flag_spec='${wl}-E' |
| 9589 | |
| 9590 | # hardcode_minus_L: Not really in the search PATH, |
| 9591 | # but as the default location of the library. |
| 9592 | hardcode_minus_L=yes |
| 9593 | ;; |
| 9594 | esac |
| 9595 | fi |
| 9596 | ;; |
| 9597 | |
| 9598 | irix5* | irix6* | nonstopux*) |
| 9599 | if test "$GCC" = yes; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9600 | 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' |
| 9601 | # Try to use the -exported_symbol ld option, if it does not |
| 9602 | # work, assume that -exports_file does not work either and |
| 9603 | # implicitly export all symbols. |
| 9604 | save_LDFLAGS="$LDFLAGS" |
| 9605 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
| 9606 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9607 | /* end confdefs.h. */ |
| 9608 | int foo(void) {} |
| 9609 | _ACEOF |
| 9610 | if ac_fn_c_try_link "$LINENO"; then : |
| 9611 | 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' |
| 9612 | |
| 9613 | fi |
| 9614 | rm -f core conftest.err conftest.$ac_objext \ |
| 9615 | conftest$ac_exeext conftest.$ac_ext |
| 9616 | LDFLAGS="$save_LDFLAGS" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9617 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9618 | 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' |
| 9619 | 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] | 9620 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9621 | archive_cmds_need_lc='no' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9622 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9623 | hardcode_libdir_separator=: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9624 | inherit_rpath=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9625 | link_all_deplibs=yes |
| 9626 | ;; |
| 9627 | |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 9628 | netbsd* | netbsdelf*-gnu) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9629 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9630 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 9631 | else |
| 9632 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 9633 | fi |
| 9634 | hardcode_libdir_flag_spec='-R$libdir' |
| 9635 | hardcode_direct=yes |
| 9636 | hardcode_shlibpath_var=no |
| 9637 | ;; |
| 9638 | |
| 9639 | newsos6) |
| 9640 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9641 | hardcode_direct=yes |
| 9642 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9643 | hardcode_libdir_separator=: |
| 9644 | hardcode_shlibpath_var=no |
| 9645 | ;; |
| 9646 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9647 | *nto* | *qnx*) |
| 9648 | ;; |
| 9649 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9650 | openbsd*) |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9651 | if test -f /usr/libexec/ld.so; then |
| 9652 | hardcode_direct=yes |
| 9653 | hardcode_shlibpath_var=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9654 | hardcode_direct_absolute=yes |
| 9655 | 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] | 9656 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 9657 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 9658 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 9659 | export_dynamic_flag_spec='${wl}-E' |
| 9660 | else |
| 9661 | case $host_os in |
| 9662 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 9663 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 9664 | hardcode_libdir_flag_spec='-R$libdir' |
| 9665 | ;; |
| 9666 | *) |
| 9667 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 9668 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 9669 | ;; |
| 9670 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9671 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9672 | else |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9673 | ld_shlibs=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9674 | fi |
| 9675 | ;; |
| 9676 | |
| 9677 | os2*) |
| 9678 | hardcode_libdir_flag_spec='-L$libdir' |
| 9679 | hardcode_minus_L=yes |
| 9680 | allow_undefined_flag=unsupported |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9681 | 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' |
| 9682 | 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] | 9683 | ;; |
| 9684 | |
| 9685 | osf3*) |
| 9686 | if test "$GCC" = yes; then |
| 9687 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9688 | 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] | 9689 | else |
| 9690 | allow_undefined_flag=' -expect_unresolved \*' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9691 | 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] | 9692 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9693 | archive_cmds_need_lc='no' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9694 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9695 | hardcode_libdir_separator=: |
| 9696 | ;; |
| 9697 | |
| 9698 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 9699 | if test "$GCC" = yes; then |
| 9700 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9701 | 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] | 9702 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9703 | else |
| 9704 | allow_undefined_flag=' -expect_unresolved \*' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9705 | 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' |
| 9706 | 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~ |
| 9707 | $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] | 9708 | |
| 9709 | # Both c and cxx compiler support -rpath directly |
| 9710 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 9711 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9712 | archive_cmds_need_lc='no' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9713 | hardcode_libdir_separator=: |
| 9714 | ;; |
| 9715 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9716 | solaris*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9717 | no_undefined_flag=' -z defs' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9718 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9719 | wlarc='${wl}' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9720 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9721 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 9722 | $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] | 9723 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9724 | case `$CC -V 2>&1` in |
| 9725 | *"Compilers 5.0"*) |
| 9726 | wlarc='' |
| 9727 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9728 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 9729 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
| 9730 | ;; |
| 9731 | *) |
| 9732 | wlarc='${wl}' |
| 9733 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9734 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 9735 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 9736 | ;; |
| 9737 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9738 | fi |
| 9739 | hardcode_libdir_flag_spec='-R$libdir' |
| 9740 | hardcode_shlibpath_var=no |
| 9741 | case $host_os in |
| 9742 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9743 | *) |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9744 | # The compiler driver will combine and reorder linker options, |
| 9745 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
| 9746 | # but is careful enough not to reorder. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9747 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9748 | if test "$GCC" = yes; then |
| 9749 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 9750 | else |
| 9751 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
| 9752 | fi |
| 9753 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9754 | esac |
| 9755 | link_all_deplibs=yes |
| 9756 | ;; |
| 9757 | |
| 9758 | sunos4*) |
| 9759 | if test "x$host_vendor" = xsequent; then |
| 9760 | # Use $CC to link under sequent, because it throws in some extra .o |
| 9761 | # files that make .init and .fini sections work. |
| 9762 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9763 | else |
| 9764 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 9765 | fi |
| 9766 | hardcode_libdir_flag_spec='-L$libdir' |
| 9767 | hardcode_direct=yes |
| 9768 | hardcode_minus_L=yes |
| 9769 | hardcode_shlibpath_var=no |
| 9770 | ;; |
| 9771 | |
| 9772 | sysv4) |
| 9773 | case $host_vendor in |
| 9774 | sni) |
| 9775 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9776 | hardcode_direct=yes # is this really true??? |
| 9777 | ;; |
| 9778 | siemens) |
| 9779 | ## LD is ld it makes a PLAMLIB |
| 9780 | ## CC just makes a GrossModule. |
| 9781 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 9782 | reload_cmds='$CC -r -o $output$reload_objs' |
| 9783 | hardcode_direct=no |
| 9784 | ;; |
| 9785 | motorola) |
| 9786 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9787 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 9788 | ;; |
| 9789 | esac |
| 9790 | runpath_var='LD_RUN_PATH' |
| 9791 | hardcode_shlibpath_var=no |
| 9792 | ;; |
| 9793 | |
| 9794 | sysv4.3*) |
| 9795 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9796 | hardcode_shlibpath_var=no |
| 9797 | export_dynamic_flag_spec='-Bexport' |
| 9798 | ;; |
| 9799 | |
| 9800 | sysv4*MP*) |
| 9801 | if test -d /usr/nec; then |
| 9802 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9803 | hardcode_shlibpath_var=no |
| 9804 | runpath_var=LD_RUN_PATH |
| 9805 | hardcode_runpath_var=yes |
| 9806 | ld_shlibs=yes |
| 9807 | fi |
| 9808 | ;; |
| 9809 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9810 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9811 | no_undefined_flag='${wl}-z,text' |
| 9812 | archive_cmds_need_lc=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9813 | hardcode_shlibpath_var=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9814 | runpath_var='LD_RUN_PATH' |
bryner | 07f8ef5 | 2006-09-05 19:42:57 +0000 | [diff] [blame] | 9815 | |
mmentovai | 3261e8b | 2006-09-06 02:56:44 +0000 | [diff] [blame] | 9816 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9817 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9818 | 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] | 9819 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9820 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9821 | 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] | 9822 | fi |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 9823 | ;; |
| 9824 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9825 | sysv5* | sco3.2v5* | sco5v6*) |
| 9826 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 9827 | # link with -lc, and that would cause any symbols used from libc to |
| 9828 | # always be unresolved, which means just about no library would |
| 9829 | # ever link correctly. If we're not using GNU ld we use -z text |
| 9830 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 9831 | # as -z defs. |
| 9832 | no_undefined_flag='${wl}-z,text' |
| 9833 | allow_undefined_flag='${wl}-z,nodefs' |
| 9834 | archive_cmds_need_lc=no |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 9835 | hardcode_shlibpath_var=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9836 | hardcode_libdir_flag_spec='${wl}-R,$libdir' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9837 | hardcode_libdir_separator=':' |
| 9838 | link_all_deplibs=yes |
| 9839 | export_dynamic_flag_spec='${wl}-Bexport' |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 9840 | runpath_var='LD_RUN_PATH' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9841 | |
| 9842 | if test "$GCC" = yes; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9843 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9844 | 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] | 9845 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9846 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9847 | 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] | 9848 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9849 | ;; |
| 9850 | |
| 9851 | uts4*) |
| 9852 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9853 | hardcode_libdir_flag_spec='-L$libdir' |
| 9854 | hardcode_shlibpath_var=no |
| 9855 | ;; |
| 9856 | |
| 9857 | *) |
| 9858 | ld_shlibs=no |
| 9859 | ;; |
| 9860 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9861 | |
| 9862 | if test x$host_vendor = xsni; then |
| 9863 | case $host in |
| 9864 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 9865 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 9866 | ;; |
| 9867 | esac |
| 9868 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9869 | fi |
| 9870 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
| 9872 | $as_echo "$ld_shlibs" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9873 | test "$ld_shlibs" = no && can_build_shared=no |
| 9874 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9875 | with_gnu_ld=$with_gnu_ld |
| 9876 | |
| 9877 | |
| 9878 | |
| 9879 | |
| 9880 | |
| 9881 | |
| 9882 | |
| 9883 | |
| 9884 | |
| 9885 | |
| 9886 | |
| 9887 | |
| 9888 | |
| 9889 | |
| 9890 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9891 | # |
| 9892 | # Do we need to explicitly link libc? |
| 9893 | # |
| 9894 | case "x$archive_cmds_need_lc" in |
| 9895 | x|xyes) |
| 9896 | # Assume -lc should be added |
| 9897 | archive_cmds_need_lc=yes |
| 9898 | |
| 9899 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 9900 | case $archive_cmds in |
| 9901 | *'~'*) |
| 9902 | # FIXME: we may have to deal with multi-command sequences. |
| 9903 | ;; |
| 9904 | '$CC '*) |
| 9905 | # Test whether the compiler implicitly links with -lc since on some |
| 9906 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 9907 | # to ld, don't add -lc before -lgcc. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
| 9909 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
| 9910 | $RM conftest* |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9911 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9912 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9913 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9914 | (eval $ac_compile) 2>&5 |
| 9915 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9916 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9917 | test $ac_status = 0; } 2>conftest.err; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9918 | soname=conftest |
| 9919 | lib=conftest |
| 9920 | libobjs=conftest.$ac_objext |
| 9921 | deplibs= |
| 9922 | wl=$lt_prog_compiler_wl |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9923 | pic_flag=$lt_prog_compiler_pic |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9924 | compiler_flags=-v |
| 9925 | linker_flags=-v |
| 9926 | verstring= |
| 9927 | output_objdir=. |
| 9928 | libname=conftest |
| 9929 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 9930 | allow_undefined_flag= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9931 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
| 9932 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9933 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9934 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9935 | test $ac_status = 0; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9936 | then |
| 9937 | archive_cmds_need_lc=no |
| 9938 | else |
| 9939 | archive_cmds_need_lc=yes |
| 9940 | fi |
| 9941 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 9942 | else |
| 9943 | cat conftest.err 1>&5 |
| 9944 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9945 | $RM conftest* |
| 9946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 |
| 9947 | $as_echo "$archive_cmds_need_lc" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9948 | ;; |
| 9949 | esac |
| 9950 | fi |
| 9951 | ;; |
| 9952 | esac |
| 9953 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 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 | |
| 10107 | |
| 10108 | |
| 10109 | |
| 10110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| 10111 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 10112 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10113 | if test "$GCC" = yes; then |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 10114 | case $host_os in |
| 10115 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
| 10116 | *) lt_awk_arg="/^libraries:/" ;; |
| 10117 | esac |
| 10118 | 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] | 10119 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10120 | # if the path contains ";" then we assume it to be the separator |
| 10121 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 10122 | # assumed that no part of a normal pathname contains ";" but that should |
| 10123 | # okay in the real world where ";" in dirpaths is itself problematic. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10124 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10125 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10126 | 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] | 10127 | fi |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 10128 | # Ok, now we have the path, separated by spaces, we can step through it |
| 10129 | # and add multilib dir if necessary. |
| 10130 | lt_tmp_lt_search_path_spec= |
| 10131 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| 10132 | for lt_sys_path in $lt_search_path_spec; do |
| 10133 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
| 10134 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
| 10135 | else |
| 10136 | test -d "$lt_sys_path" && \ |
| 10137 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 10138 | fi |
| 10139 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10140 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 10141 | BEGIN {RS=" "; FS="/|\n";} { |
| 10142 | lt_foo=""; |
| 10143 | lt_count=0; |
| 10144 | for (lt_i = NF; lt_i > 0; lt_i--) { |
| 10145 | if ($lt_i != "" && $lt_i != ".") { |
| 10146 | if ($lt_i == "..") { |
| 10147 | lt_count++; |
| 10148 | } else { |
| 10149 | if (lt_count == 0) { |
| 10150 | lt_foo="/" $lt_i lt_foo; |
| 10151 | } else { |
| 10152 | lt_count--; |
| 10153 | } |
| 10154 | } |
| 10155 | } |
| 10156 | } |
| 10157 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
| 10158 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
| 10159 | }'` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10160 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10161 | else |
| 10162 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 10163 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10164 | library_names_spec= |
| 10165 | libname_spec='lib$name' |
| 10166 | soname_spec= |
| 10167 | shrext_cmds=".so" |
| 10168 | postinstall_cmds= |
| 10169 | postuninstall_cmds= |
| 10170 | finish_cmds= |
| 10171 | finish_eval= |
| 10172 | shlibpath_var= |
| 10173 | shlibpath_overrides_runpath=unknown |
| 10174 | version_type=none |
| 10175 | dynamic_linker="$host_os ld.so" |
| 10176 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10177 | need_lib_prefix=unknown |
| 10178 | hardcode_into_libs=no |
| 10179 | |
| 10180 | # when you set need_version to no, make sure it does not cause -set_version |
| 10181 | # flags to be left without arguments |
| 10182 | need_version=unknown |
| 10183 | |
| 10184 | case $host_os in |
| 10185 | aix3*) |
| 10186 | version_type=linux |
| 10187 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 10188 | shlibpath_var=LIBPATH |
| 10189 | |
| 10190 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 10191 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10192 | ;; |
| 10193 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 10194 | aix[4-9]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10195 | version_type=linux |
| 10196 | need_lib_prefix=no |
| 10197 | need_version=no |
| 10198 | hardcode_into_libs=yes |
| 10199 | if test "$host_cpu" = ia64; then |
| 10200 | # AIX 5 supports IA64 |
| 10201 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 10202 | shlibpath_var=LD_LIBRARY_PATH |
| 10203 | else |
| 10204 | # With GCC up to 2.95.x, collect2 would create an import file |
| 10205 | # for dependence libraries. The import file would start with |
| 10206 | # the line `#! .'. This would cause the generated library to |
| 10207 | # depend on `.', always an invalid library. This was fixed in |
| 10208 | # development snapshots of GCC prior to 3.0. |
| 10209 | case $host_os in |
| 10210 | aix4 | aix4.[01] | aix4.[01].*) |
| 10211 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 10212 | echo ' yes ' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10213 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10214 | : |
| 10215 | else |
| 10216 | can_build_shared=no |
| 10217 | fi |
| 10218 | ;; |
| 10219 | esac |
| 10220 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 10221 | # soname into executable. Probably we can add versioning support to |
| 10222 | # collect2, so additional links can be useful in future. |
| 10223 | if test "$aix_use_runtimelinking" = yes; then |
| 10224 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 10225 | # instead of lib<name>.a to let people know that these are not |
| 10226 | # typical AIX shared libraries. |
| 10227 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10228 | else |
| 10229 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 10230 | # and later when we are not doing run time linking. |
| 10231 | library_names_spec='${libname}${release}.a $libname.a' |
| 10232 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10233 | fi |
| 10234 | shlibpath_var=LIBPATH |
| 10235 | fi |
| 10236 | ;; |
| 10237 | |
| 10238 | amigaos*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10239 | case $host_cpu in |
| 10240 | powerpc) |
| 10241 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 10242 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 10243 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10244 | ;; |
| 10245 | m68k) |
| 10246 | library_names_spec='$libname.ixlibrary $libname.a' |
| 10247 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 10248 | 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' |
| 10249 | ;; |
| 10250 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10251 | ;; |
| 10252 | |
| 10253 | beos*) |
| 10254 | library_names_spec='${libname}${shared_ext}' |
| 10255 | dynamic_linker="$host_os ld.so" |
| 10256 | shlibpath_var=LIBRARY_PATH |
| 10257 | ;; |
| 10258 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10259 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10260 | version_type=linux |
| 10261 | need_version=no |
| 10262 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10263 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10264 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 10265 | shlibpath_var=LD_LIBRARY_PATH |
| 10266 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 10267 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 10268 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 10269 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 10270 | # libtool to hard-code these into programs |
| 10271 | ;; |
| 10272 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10273 | cygwin* | mingw* | pw32* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10274 | version_type=windows |
| 10275 | shrext_cmds=".dll" |
| 10276 | need_version=no |
| 10277 | need_lib_prefix=no |
| 10278 | |
| 10279 | case $GCC,$host_os in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10280 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10281 | library_names_spec='$libname.dll.a' |
| 10282 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 10283 | postinstall_cmds='base_file=`basename \${file}`~ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10284 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10285 | dldir=$destdir/`dirname \$dlpath`~ |
| 10286 | test -d \$dldir || mkdir -p \$dldir~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10287 | $install_prog $dir/$dlname \$dldir/$dlname~ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10288 | chmod a+x \$dldir/$dlname~ |
| 10289 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 10290 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 10291 | fi' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10292 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 10293 | dlpath=$dir/\$dldll~ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10294 | $RM \$dlpath' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10295 | shlibpath_overrides_runpath=yes |
| 10296 | |
| 10297 | case $host_os in |
| 10298 | cygwin*) |
| 10299 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 10300 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 10301 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 10302 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10303 | mingw* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10304 | # MinGW DLLs use traditional 'lib' prefix |
| 10305 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10306 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 10307 | 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] | 10308 | # It is most probably a Windows format PATH printed by |
| 10309 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 10310 | # path with ; separators, and with drive letters. We can handle the |
| 10311 | # drive letters (cygwin fileutils understands them), so leave them, |
| 10312 | # especially as we might pass files found there to a mingw objdump, |
| 10313 | # which wouldn't understand a cygwinified path. Ahh. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10314 | 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] | 10315 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10316 | 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] | 10317 | fi |
| 10318 | ;; |
| 10319 | pw32*) |
| 10320 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10321 | 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] | 10322 | ;; |
| 10323 | esac |
| 10324 | ;; |
| 10325 | |
| 10326 | *) |
| 10327 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 10328 | ;; |
| 10329 | esac |
| 10330 | dynamic_linker='Win32 ld.exe' |
| 10331 | # FIXME: first we should search . and the directory the executable is in |
| 10332 | shlibpath_var=PATH |
| 10333 | ;; |
| 10334 | |
| 10335 | darwin* | rhapsody*) |
| 10336 | dynamic_linker="$host_os dyld" |
| 10337 | version_type=darwin |
| 10338 | need_lib_prefix=no |
| 10339 | need_version=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10340 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10341 | soname_spec='${libname}${release}${major}$shared_ext' |
| 10342 | shlibpath_overrides_runpath=yes |
| 10343 | shlibpath_var=DYLD_LIBRARY_PATH |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10344 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 10345 | |
| 10346 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10347 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 10348 | ;; |
| 10349 | |
| 10350 | dgux*) |
| 10351 | version_type=linux |
| 10352 | need_lib_prefix=no |
| 10353 | need_version=no |
| 10354 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 10355 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10356 | shlibpath_var=LD_LIBRARY_PATH |
| 10357 | ;; |
| 10358 | |
| 10359 | freebsd1*) |
| 10360 | dynamic_linker=no |
| 10361 | ;; |
| 10362 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10363 | freebsd* | dragonfly*) |
| 10364 | # DragonFly does not have aout. When/if they implement a new |
| 10365 | # versioning mechanism, adjust this. |
| 10366 | if test -x /usr/bin/objformat; then |
| 10367 | objformat=`/usr/bin/objformat` |
| 10368 | else |
| 10369 | case $host_os in |
| 10370 | freebsd[123]*) objformat=aout ;; |
| 10371 | *) objformat=elf ;; |
| 10372 | esac |
| 10373 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10374 | version_type=freebsd-$objformat |
| 10375 | case $version_type in |
| 10376 | freebsd-elf*) |
| 10377 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10378 | need_version=no |
| 10379 | need_lib_prefix=no |
| 10380 | ;; |
| 10381 | freebsd-*) |
| 10382 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 10383 | need_version=yes |
| 10384 | ;; |
| 10385 | esac |
| 10386 | shlibpath_var=LD_LIBRARY_PATH |
| 10387 | case $host_os in |
| 10388 | freebsd2*) |
| 10389 | shlibpath_overrides_runpath=yes |
| 10390 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10391 | freebsd3.[01]* | freebsdelf3.[01]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10392 | shlibpath_overrides_runpath=yes |
| 10393 | hardcode_into_libs=yes |
| 10394 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10395 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 10396 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10397 | shlibpath_overrides_runpath=no |
| 10398 | hardcode_into_libs=yes |
| 10399 | ;; |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 10400 | *) # from 4.6 on, and DragonFly |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10401 | shlibpath_overrides_runpath=yes |
| 10402 | hardcode_into_libs=yes |
| 10403 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10404 | esac |
| 10405 | ;; |
| 10406 | |
| 10407 | gnu*) |
| 10408 | version_type=linux |
| 10409 | need_lib_prefix=no |
| 10410 | need_version=no |
| 10411 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 10412 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10413 | shlibpath_var=LD_LIBRARY_PATH |
| 10414 | hardcode_into_libs=yes |
| 10415 | ;; |
| 10416 | |
| 10417 | hpux9* | hpux10* | hpux11*) |
| 10418 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 10419 | # link against other versions. |
| 10420 | version_type=sunos |
| 10421 | need_lib_prefix=no |
| 10422 | need_version=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10423 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10424 | ia64*) |
| 10425 | shrext_cmds='.so' |
| 10426 | hardcode_into_libs=yes |
| 10427 | dynamic_linker="$host_os dld.so" |
| 10428 | shlibpath_var=LD_LIBRARY_PATH |
| 10429 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 10430 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10431 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10432 | if test "X$HPUX_IA64_MODE" = X32; then |
| 10433 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 10434 | else |
| 10435 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 10436 | fi |
| 10437 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 10438 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10439 | hppa*64*) |
| 10440 | shrext_cmds='.sl' |
| 10441 | hardcode_into_libs=yes |
| 10442 | dynamic_linker="$host_os dld.sl" |
| 10443 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 10444 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 10445 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10446 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10447 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 10448 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 10449 | ;; |
| 10450 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10451 | shrext_cmds='.sl' |
| 10452 | dynamic_linker="$host_os dld.sl" |
| 10453 | shlibpath_var=SHLIB_PATH |
| 10454 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 10455 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10456 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10457 | ;; |
| 10458 | esac |
| 10459 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 10460 | postinstall_cmds='chmod 555 $lib' |
| 10461 | ;; |
| 10462 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 10463 | interix[3-9]*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10464 | version_type=linux |
| 10465 | need_lib_prefix=no |
| 10466 | need_version=no |
| 10467 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10468 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10469 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 10470 | shlibpath_var=LD_LIBRARY_PATH |
| 10471 | shlibpath_overrides_runpath=no |
| 10472 | hardcode_into_libs=yes |
| 10473 | ;; |
| 10474 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10475 | irix5* | irix6* | nonstopux*) |
| 10476 | case $host_os in |
| 10477 | nonstopux*) version_type=nonstopux ;; |
| 10478 | *) |
| 10479 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 10480 | version_type=linux |
| 10481 | else |
| 10482 | version_type=irix |
| 10483 | fi ;; |
| 10484 | esac |
| 10485 | need_lib_prefix=no |
| 10486 | need_version=no |
| 10487 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10488 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10489 | case $host_os in |
| 10490 | irix5* | nonstopux*) |
| 10491 | libsuff= shlibsuff= |
| 10492 | ;; |
| 10493 | *) |
| 10494 | case $LD in # libtool.m4 will add one of these switches to LD |
| 10495 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 10496 | libsuff= shlibsuff= libmagic=32-bit;; |
| 10497 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 10498 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 10499 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 10500 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 10501 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 10502 | esac |
| 10503 | ;; |
| 10504 | esac |
| 10505 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 10506 | shlibpath_overrides_runpath=no |
| 10507 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 10508 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 10509 | hardcode_into_libs=yes |
| 10510 | ;; |
| 10511 | |
| 10512 | # No shared lib support for Linux oldld, aout, or coff. |
| 10513 | linux*oldld* | linux*aout* | linux*coff*) |
| 10514 | dynamic_linker=no |
| 10515 | ;; |
| 10516 | |
| 10517 | # This must be Linux ELF. |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 10518 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10519 | version_type=linux |
| 10520 | need_lib_prefix=no |
| 10521 | need_version=no |
| 10522 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10523 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10524 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 10525 | shlibpath_var=LD_LIBRARY_PATH |
| 10526 | shlibpath_overrides_runpath=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10527 | # Some binutils ld are patched to set DT_RUNPATH |
| 10528 | save_LDFLAGS=$LDFLAGS |
| 10529 | save_libdir=$libdir |
| 10530 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
| 10531 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
| 10532 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10533 | /* end confdefs.h. */ |
| 10534 | |
| 10535 | int |
| 10536 | main () |
| 10537 | { |
| 10538 | |
| 10539 | ; |
| 10540 | return 0; |
| 10541 | } |
| 10542 | _ACEOF |
| 10543 | if ac_fn_c_try_link "$LINENO"; then : |
| 10544 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
| 10545 | shlibpath_overrides_runpath=yes |
| 10546 | fi |
| 10547 | fi |
| 10548 | rm -f core conftest.err conftest.$ac_objext \ |
| 10549 | conftest$ac_exeext conftest.$ac_ext |
| 10550 | LDFLAGS=$save_LDFLAGS |
| 10551 | libdir=$save_libdir |
| 10552 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10553 | # This implies no fast_install, which is unacceptable. |
| 10554 | # Some rework will be needed to allow for fast_install |
| 10555 | # before this can be enabled. |
| 10556 | hardcode_into_libs=yes |
| 10557 | |
| 10558 | # Append ld.so.conf contents to the search path |
| 10559 | if test -f /etc/ld.so.conf; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10560 | 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] | 10561 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 10562 | fi |
| 10563 | |
| 10564 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 10565 | # powerpc, because MkLinux only supported shared libraries with the |
| 10566 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 10567 | # most powerpc-linux boxes support dynamic linking these days and |
| 10568 | # people can always --disable-shared, the test was removed, and we |
| 10569 | # assume the GNU/Linux dynamic linker is in use. |
| 10570 | dynamic_linker='GNU/Linux ld.so' |
| 10571 | ;; |
| 10572 | |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 10573 | netbsdelf*-gnu) |
| 10574 | version_type=linux |
| 10575 | need_lib_prefix=no |
| 10576 | need_version=no |
| 10577 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10578 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10579 | shlibpath_var=LD_LIBRARY_PATH |
| 10580 | shlibpath_overrides_runpath=no |
| 10581 | hardcode_into_libs=yes |
| 10582 | dynamic_linker='NetBSD ld.elf_so' |
| 10583 | ;; |
| 10584 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10585 | netbsd*) |
| 10586 | version_type=sunos |
| 10587 | need_lib_prefix=no |
| 10588 | need_version=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10589 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10590 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10591 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 10592 | dynamic_linker='NetBSD (a.out) ld.so' |
| 10593 | else |
| 10594 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10595 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10596 | dynamic_linker='NetBSD ld.elf_so' |
| 10597 | fi |
| 10598 | shlibpath_var=LD_LIBRARY_PATH |
| 10599 | shlibpath_overrides_runpath=yes |
| 10600 | hardcode_into_libs=yes |
| 10601 | ;; |
| 10602 | |
| 10603 | newsos6) |
| 10604 | version_type=linux |
| 10605 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10606 | shlibpath_var=LD_LIBRARY_PATH |
| 10607 | shlibpath_overrides_runpath=yes |
| 10608 | ;; |
| 10609 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10610 | *nto* | *qnx*) |
| 10611 | version_type=qnx |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10612 | need_lib_prefix=no |
| 10613 | need_version=no |
| 10614 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10615 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10616 | shlibpath_var=LD_LIBRARY_PATH |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10617 | shlibpath_overrides_runpath=no |
| 10618 | hardcode_into_libs=yes |
| 10619 | dynamic_linker='ldqnx.so' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10620 | ;; |
| 10621 | |
| 10622 | openbsd*) |
| 10623 | version_type=sunos |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10624 | sys_lib_dlsearch_path_spec="/usr/lib" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10625 | need_lib_prefix=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10626 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 10627 | case $host_os in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10628 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 10629 | *) need_version=no ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10630 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10631 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10632 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 10633 | shlibpath_var=LD_LIBRARY_PATH |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10634 | 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] | 10635 | case $host_os in |
| 10636 | openbsd2.[89] | openbsd2.[89].*) |
| 10637 | shlibpath_overrides_runpath=no |
| 10638 | ;; |
| 10639 | *) |
| 10640 | shlibpath_overrides_runpath=yes |
| 10641 | ;; |
| 10642 | esac |
| 10643 | else |
| 10644 | shlibpath_overrides_runpath=yes |
| 10645 | fi |
| 10646 | ;; |
| 10647 | |
| 10648 | os2*) |
| 10649 | libname_spec='$name' |
| 10650 | shrext_cmds=".dll" |
| 10651 | need_lib_prefix=no |
| 10652 | library_names_spec='$libname${shared_ext} $libname.a' |
| 10653 | dynamic_linker='OS/2 ld.exe' |
| 10654 | shlibpath_var=LIBPATH |
| 10655 | ;; |
| 10656 | |
| 10657 | osf3* | osf4* | osf5*) |
| 10658 | version_type=osf |
| 10659 | need_lib_prefix=no |
| 10660 | need_version=no |
| 10661 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10662 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10663 | shlibpath_var=LD_LIBRARY_PATH |
| 10664 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 10665 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 10666 | ;; |
| 10667 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 10668 | rdos*) |
| 10669 | dynamic_linker=no |
| 10670 | ;; |
| 10671 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10672 | solaris*) |
| 10673 | version_type=linux |
| 10674 | need_lib_prefix=no |
| 10675 | need_version=no |
| 10676 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10677 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10678 | shlibpath_var=LD_LIBRARY_PATH |
| 10679 | shlibpath_overrides_runpath=yes |
| 10680 | hardcode_into_libs=yes |
| 10681 | # ldd complains unless libraries are executable |
| 10682 | postinstall_cmds='chmod +x $lib' |
| 10683 | ;; |
| 10684 | |
| 10685 | sunos4*) |
| 10686 | version_type=sunos |
| 10687 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10688 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 10689 | shlibpath_var=LD_LIBRARY_PATH |
| 10690 | shlibpath_overrides_runpath=yes |
| 10691 | if test "$with_gnu_ld" = yes; then |
| 10692 | need_lib_prefix=no |
| 10693 | fi |
| 10694 | need_version=yes |
| 10695 | ;; |
| 10696 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10697 | sysv4 | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10698 | version_type=linux |
| 10699 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10700 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10701 | shlibpath_var=LD_LIBRARY_PATH |
| 10702 | case $host_vendor in |
| 10703 | sni) |
| 10704 | shlibpath_overrides_runpath=no |
| 10705 | need_lib_prefix=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10706 | runpath_var=LD_RUN_PATH |
| 10707 | ;; |
| 10708 | siemens) |
| 10709 | need_lib_prefix=no |
| 10710 | ;; |
| 10711 | motorola) |
| 10712 | need_lib_prefix=no |
| 10713 | need_version=no |
| 10714 | shlibpath_overrides_runpath=no |
| 10715 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 10716 | ;; |
| 10717 | esac |
| 10718 | ;; |
| 10719 | |
| 10720 | sysv4*MP*) |
| 10721 | if test -d /usr/nec ;then |
| 10722 | version_type=linux |
| 10723 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 10724 | soname_spec='$libname${shared_ext}.$major' |
| 10725 | shlibpath_var=LD_LIBRARY_PATH |
| 10726 | fi |
| 10727 | ;; |
| 10728 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10729 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 10730 | version_type=freebsd-elf |
| 10731 | need_lib_prefix=no |
| 10732 | need_version=no |
| 10733 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10734 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10735 | shlibpath_var=LD_LIBRARY_PATH |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10736 | shlibpath_overrides_runpath=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10737 | hardcode_into_libs=yes |
| 10738 | if test "$with_gnu_ld" = yes; then |
| 10739 | 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] | 10740 | else |
| 10741 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10742 | case $host_os in |
| 10743 | sco3.2v5*) |
| 10744 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 10745 | ;; |
| 10746 | esac |
| 10747 | fi |
| 10748 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 10749 | ;; |
| 10750 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10751 | tpf*) |
| 10752 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 10753 | version_type=linux |
| 10754 | need_lib_prefix=no |
| 10755 | need_version=no |
| 10756 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10757 | shlibpath_var=LD_LIBRARY_PATH |
| 10758 | shlibpath_overrides_runpath=no |
| 10759 | hardcode_into_libs=yes |
| 10760 | ;; |
| 10761 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10762 | uts4*) |
| 10763 | version_type=linux |
| 10764 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10765 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10766 | shlibpath_var=LD_LIBRARY_PATH |
| 10767 | ;; |
| 10768 | |
| 10769 | *) |
| 10770 | dynamic_linker=no |
| 10771 | ;; |
| 10772 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| 10774 | $as_echo "$dynamic_linker" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10775 | test "$dynamic_linker" = no && can_build_shared=no |
| 10776 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10777 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 10778 | if test "$GCC" = yes; then |
| 10779 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 10780 | fi |
| 10781 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10782 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 10783 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 10784 | fi |
| 10785 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 10786 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 10787 | fi |
| 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 | |
| 10872 | |
| 10873 | |
| 10874 | |
| 10875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
| 10876 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10877 | hardcode_action= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10878 | if test -n "$hardcode_libdir_flag_spec" || |
| 10879 | test -n "$runpath_var" || |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10880 | test "X$hardcode_automatic" = "Xyes" ; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10881 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10882 | # We can hardcode non-existent directories. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10883 | if test "$hardcode_direct" != no && |
| 10884 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 10885 | # have to relink, otherwise we might link with an installed library |
| 10886 | # when we should be linking with a yet-to-be-installed one |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10887 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10888 | test "$hardcode_minus_L" != no; then |
| 10889 | # Linking always hardcodes the temporary library directory. |
| 10890 | hardcode_action=relink |
| 10891 | else |
| 10892 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 10893 | hardcode_action=immediate |
| 10894 | fi |
| 10895 | else |
| 10896 | # We cannot hardcode anything, or else we can only hardcode existing |
| 10897 | # directories. |
| 10898 | hardcode_action=unsupported |
| 10899 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
| 10901 | $as_echo "$hardcode_action" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10902 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10903 | if test "$hardcode_action" = relink || |
| 10904 | test "$inherit_rpath" = yes; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10905 | # Fast installation is not supported |
| 10906 | enable_fast_install=no |
| 10907 | elif test "$shlibpath_overrides_runpath" = yes || |
| 10908 | test "$enable_shared" = no; then |
| 10909 | # Fast installation is not necessary |
| 10910 | enable_fast_install=needless |
| 10911 | fi |
| 10912 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10913 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10914 | |
| 10915 | |
| 10916 | |
| 10917 | |
| 10918 | if test "x$enable_dlopen" != xyes; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10919 | enable_dlopen=unknown |
| 10920 | enable_dlopen_self=unknown |
| 10921 | enable_dlopen_self_static=unknown |
| 10922 | else |
| 10923 | lt_cv_dlopen=no |
| 10924 | lt_cv_dlopen_libs= |
| 10925 | |
| 10926 | case $host_os in |
| 10927 | beos*) |
| 10928 | lt_cv_dlopen="load_add_on" |
| 10929 | lt_cv_dlopen_libs= |
| 10930 | lt_cv_dlopen_self=yes |
| 10931 | ;; |
| 10932 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10933 | mingw* | pw32* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10934 | lt_cv_dlopen="LoadLibrary" |
| 10935 | lt_cv_dlopen_libs= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10936 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10937 | |
| 10938 | cygwin*) |
| 10939 | lt_cv_dlopen="dlopen" |
| 10940 | lt_cv_dlopen_libs= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10941 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10942 | |
| 10943 | darwin*) |
| 10944 | # if libdl is installed we need to link against it |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 10946 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 10947 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : |
| 10948 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10949 | else |
| 10950 | ac_check_lib_save_LIBS=$LIBS |
| 10951 | LIBS="-ldl $LIBS" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10953 | /* end confdefs.h. */ |
| 10954 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10955 | /* Override any GCC internal prototype to avoid an error. |
| 10956 | Use char because int might match the return type of a GCC |
| 10957 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10958 | #ifdef __cplusplus |
| 10959 | extern "C" |
| 10960 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10961 | char dlopen (); |
| 10962 | int |
| 10963 | main () |
| 10964 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10965 | return dlopen (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10966 | ; |
| 10967 | return 0; |
| 10968 | } |
| 10969 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10970 | if ac_fn_c_try_link "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10971 | ac_cv_lib_dl_dlopen=yes |
| 10972 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10973 | ac_cv_lib_dl_dlopen=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10974 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10975 | rm -f core conftest.err conftest.$ac_objext \ |
| 10976 | conftest$ac_exeext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10977 | LIBS=$ac_check_lib_save_LIBS |
| 10978 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10980 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 10981 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10982 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 10983 | else |
| 10984 | |
| 10985 | lt_cv_dlopen="dyld" |
| 10986 | lt_cv_dlopen_libs= |
| 10987 | lt_cv_dlopen_self=yes |
| 10988 | |
| 10989 | fi |
| 10990 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10991 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10992 | |
| 10993 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10994 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
| 10995 | if test "x$ac_cv_func_shl_load" = x""yes; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10996 | lt_cv_dlopen="shl_load" |
| 10997 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| 10999 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
| 11000 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : |
| 11001 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11002 | else |
| 11003 | ac_check_lib_save_LIBS=$LIBS |
| 11004 | LIBS="-ldld $LIBS" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11005 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11006 | /* end confdefs.h. */ |
| 11007 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11008 | /* Override any GCC internal prototype to avoid an error. |
| 11009 | Use char because int might match the return type of a GCC |
| 11010 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11011 | #ifdef __cplusplus |
| 11012 | extern "C" |
| 11013 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11014 | char shl_load (); |
| 11015 | int |
| 11016 | main () |
| 11017 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11018 | return shl_load (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11019 | ; |
| 11020 | return 0; |
| 11021 | } |
| 11022 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11023 | if ac_fn_c_try_link "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11024 | ac_cv_lib_dld_shl_load=yes |
| 11025 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11026 | ac_cv_lib_dld_shl_load=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11027 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11028 | rm -f core conftest.err conftest.$ac_objext \ |
| 11029 | conftest$ac_exeext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11030 | LIBS=$ac_check_lib_save_LIBS |
| 11031 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| 11033 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
| 11034 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 11035 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11036 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11037 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
| 11038 | if test "x$ac_cv_func_dlopen" = x""yes; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11039 | lt_cv_dlopen="dlopen" |
| 11040 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 11042 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 11043 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : |
| 11044 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11045 | else |
| 11046 | ac_check_lib_save_LIBS=$LIBS |
| 11047 | LIBS="-ldl $LIBS" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11048 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11049 | /* end confdefs.h. */ |
| 11050 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11051 | /* Override any GCC internal prototype to avoid an error. |
| 11052 | Use char because int might match the return type of a GCC |
| 11053 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11054 | #ifdef __cplusplus |
| 11055 | extern "C" |
| 11056 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11057 | char dlopen (); |
| 11058 | int |
| 11059 | main () |
| 11060 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11061 | return dlopen (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11062 | ; |
| 11063 | return 0; |
| 11064 | } |
| 11065 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11066 | if ac_fn_c_try_link "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11067 | ac_cv_lib_dl_dlopen=yes |
| 11068 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11069 | ac_cv_lib_dl_dlopen=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11070 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11071 | rm -f core conftest.err conftest.$ac_objext \ |
| 11072 | conftest$ac_exeext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11073 | LIBS=$ac_check_lib_save_LIBS |
| 11074 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 11076 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 11077 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11078 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 11079 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
| 11081 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
| 11082 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : |
| 11083 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11084 | else |
| 11085 | ac_check_lib_save_LIBS=$LIBS |
| 11086 | LIBS="-lsvld $LIBS" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11087 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11088 | /* end confdefs.h. */ |
| 11089 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11090 | /* Override any GCC internal prototype to avoid an error. |
| 11091 | Use char because int might match the return type of a GCC |
| 11092 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11093 | #ifdef __cplusplus |
| 11094 | extern "C" |
| 11095 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11096 | char dlopen (); |
| 11097 | int |
| 11098 | main () |
| 11099 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11100 | return dlopen (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11101 | ; |
| 11102 | return 0; |
| 11103 | } |
| 11104 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11105 | if ac_fn_c_try_link "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11106 | ac_cv_lib_svld_dlopen=yes |
| 11107 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11108 | ac_cv_lib_svld_dlopen=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11109 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11110 | rm -f core conftest.err conftest.$ac_objext \ |
| 11111 | conftest$ac_exeext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11112 | LIBS=$ac_check_lib_save_LIBS |
| 11113 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
| 11115 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
| 11116 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11117 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 11118 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
| 11120 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
| 11121 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : |
| 11122 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11123 | else |
| 11124 | ac_check_lib_save_LIBS=$LIBS |
| 11125 | LIBS="-ldld $LIBS" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11127 | /* end confdefs.h. */ |
| 11128 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11129 | /* Override any GCC internal prototype to avoid an error. |
| 11130 | Use char because int might match the return type of a GCC |
| 11131 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11132 | #ifdef __cplusplus |
| 11133 | extern "C" |
| 11134 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11135 | char dld_link (); |
| 11136 | int |
| 11137 | main () |
| 11138 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11139 | return dld_link (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11140 | ; |
| 11141 | return 0; |
| 11142 | } |
| 11143 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11144 | if ac_fn_c_try_link "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11145 | ac_cv_lib_dld_dld_link=yes |
| 11146 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11147 | ac_cv_lib_dld_dld_link=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11148 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11149 | rm -f core conftest.err conftest.$ac_objext \ |
| 11150 | conftest$ac_exeext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11151 | LIBS=$ac_check_lib_save_LIBS |
| 11152 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
| 11154 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
| 11155 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 11156 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11157 | fi |
| 11158 | |
| 11159 | |
| 11160 | fi |
| 11161 | |
| 11162 | |
| 11163 | fi |
| 11164 | |
| 11165 | |
| 11166 | fi |
| 11167 | |
| 11168 | |
| 11169 | fi |
| 11170 | |
| 11171 | |
| 11172 | fi |
| 11173 | |
| 11174 | ;; |
| 11175 | esac |
| 11176 | |
| 11177 | if test "x$lt_cv_dlopen" != xno; then |
| 11178 | enable_dlopen=yes |
| 11179 | else |
| 11180 | enable_dlopen=no |
| 11181 | fi |
| 11182 | |
| 11183 | case $lt_cv_dlopen in |
| 11184 | dlopen) |
| 11185 | save_CPPFLAGS="$CPPFLAGS" |
| 11186 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 11187 | |
| 11188 | save_LDFLAGS="$LDFLAGS" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11189 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11190 | |
| 11191 | save_LIBS="$LIBS" |
| 11192 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 11193 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
| 11195 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } |
| 11196 | if test "${lt_cv_dlopen_self+set}" = set; then : |
| 11197 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11198 | else |
| 11199 | if test "$cross_compiling" = yes; then : |
| 11200 | lt_cv_dlopen_self=cross |
| 11201 | else |
| 11202 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11203 | lt_status=$lt_dlunknown |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11204 | cat > conftest.$ac_ext <<_LT_EOF |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 11205 | #line 11205 "configure" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11206 | #include "confdefs.h" |
| 11207 | |
| 11208 | #if HAVE_DLFCN_H |
| 11209 | #include <dlfcn.h> |
| 11210 | #endif |
| 11211 | |
| 11212 | #include <stdio.h> |
| 11213 | |
| 11214 | #ifdef RTLD_GLOBAL |
| 11215 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11216 | #else |
| 11217 | # ifdef DL_GLOBAL |
| 11218 | # define LT_DLGLOBAL DL_GLOBAL |
| 11219 | # else |
| 11220 | # define LT_DLGLOBAL 0 |
| 11221 | # endif |
| 11222 | #endif |
| 11223 | |
| 11224 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11225 | find out it does not work in some platform. */ |
| 11226 | #ifndef LT_DLLAZY_OR_NOW |
| 11227 | # ifdef RTLD_LAZY |
| 11228 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11229 | # else |
| 11230 | # ifdef DL_LAZY |
| 11231 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11232 | # else |
| 11233 | # ifdef RTLD_NOW |
| 11234 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11235 | # else |
| 11236 | # ifdef DL_NOW |
| 11237 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11238 | # else |
| 11239 | # define LT_DLLAZY_OR_NOW 0 |
| 11240 | # endif |
| 11241 | # endif |
| 11242 | # endif |
| 11243 | # endif |
| 11244 | #endif |
| 11245 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11246 | void fnord() { int i=42;} |
| 11247 | int main () |
| 11248 | { |
| 11249 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11250 | int status = $lt_dlunknown; |
| 11251 | |
| 11252 | if (self) |
| 11253 | { |
| 11254 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11255 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11256 | /* dlclose (self); */ |
| 11257 | } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11258 | else |
| 11259 | puts (dlerror ()); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11260 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11261 | return status; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11262 | } |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11263 | _LT_EOF |
| 11264 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11265 | (eval $ac_link) 2>&5 |
| 11266 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11267 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11268 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11269 | (./conftest; exit; ) >&5 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11270 | lt_status=$? |
| 11271 | case x$lt_status in |
| 11272 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 11273 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11274 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11275 | esac |
| 11276 | else : |
| 11277 | # compilation failed |
| 11278 | lt_cv_dlopen_self=no |
| 11279 | fi |
| 11280 | fi |
| 11281 | rm -fr conftest* |
| 11282 | |
| 11283 | |
| 11284 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
| 11286 | $as_echo "$lt_cv_dlopen_self" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11287 | |
| 11288 | if test "x$lt_cv_dlopen_self" = xyes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11289 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
| 11291 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
| 11292 | if test "${lt_cv_dlopen_self_static+set}" = set; then : |
| 11293 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11294 | else |
| 11295 | if test "$cross_compiling" = yes; then : |
| 11296 | lt_cv_dlopen_self_static=cross |
| 11297 | else |
| 11298 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11299 | lt_status=$lt_dlunknown |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11300 | cat > conftest.$ac_ext <<_LT_EOF |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 11301 | #line 11301 "configure" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11302 | #include "confdefs.h" |
| 11303 | |
| 11304 | #if HAVE_DLFCN_H |
| 11305 | #include <dlfcn.h> |
| 11306 | #endif |
| 11307 | |
| 11308 | #include <stdio.h> |
| 11309 | |
| 11310 | #ifdef RTLD_GLOBAL |
| 11311 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11312 | #else |
| 11313 | # ifdef DL_GLOBAL |
| 11314 | # define LT_DLGLOBAL DL_GLOBAL |
| 11315 | # else |
| 11316 | # define LT_DLGLOBAL 0 |
| 11317 | # endif |
| 11318 | #endif |
| 11319 | |
| 11320 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11321 | find out it does not work in some platform. */ |
| 11322 | #ifndef LT_DLLAZY_OR_NOW |
| 11323 | # ifdef RTLD_LAZY |
| 11324 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11325 | # else |
| 11326 | # ifdef DL_LAZY |
| 11327 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11328 | # else |
| 11329 | # ifdef RTLD_NOW |
| 11330 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11331 | # else |
| 11332 | # ifdef DL_NOW |
| 11333 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11334 | # else |
| 11335 | # define LT_DLLAZY_OR_NOW 0 |
| 11336 | # endif |
| 11337 | # endif |
| 11338 | # endif |
| 11339 | # endif |
| 11340 | #endif |
| 11341 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11342 | void fnord() { int i=42;} |
| 11343 | int main () |
| 11344 | { |
| 11345 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11346 | int status = $lt_dlunknown; |
| 11347 | |
| 11348 | if (self) |
| 11349 | { |
| 11350 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11351 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11352 | /* dlclose (self); */ |
| 11353 | } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11354 | else |
| 11355 | puts (dlerror ()); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11356 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11357 | return status; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11358 | } |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11359 | _LT_EOF |
| 11360 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11361 | (eval $ac_link) 2>&5 |
| 11362 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11363 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11364 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11365 | (./conftest; exit; ) >&5 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11366 | lt_status=$? |
| 11367 | case x$lt_status in |
| 11368 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 11369 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11370 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11371 | esac |
| 11372 | else : |
| 11373 | # compilation failed |
| 11374 | lt_cv_dlopen_self_static=no |
| 11375 | fi |
| 11376 | fi |
| 11377 | rm -fr conftest* |
| 11378 | |
| 11379 | |
| 11380 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
| 11382 | $as_echo "$lt_cv_dlopen_self_static" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11383 | fi |
| 11384 | |
| 11385 | CPPFLAGS="$save_CPPFLAGS" |
| 11386 | LDFLAGS="$save_LDFLAGS" |
| 11387 | LIBS="$save_LIBS" |
| 11388 | ;; |
| 11389 | esac |
| 11390 | |
| 11391 | case $lt_cv_dlopen_self in |
| 11392 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 11393 | *) enable_dlopen_self=unknown ;; |
| 11394 | esac |
| 11395 | |
| 11396 | case $lt_cv_dlopen_self_static in |
| 11397 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 11398 | *) enable_dlopen_self_static=unknown ;; |
| 11399 | esac |
| 11400 | fi |
| 11401 | |
| 11402 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11403 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11404 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11405 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11406 | |
| 11407 | |
| 11408 | |
| 11409 | |
| 11410 | |
| 11411 | |
| 11412 | |
| 11413 | |
| 11414 | |
| 11415 | |
| 11416 | |
| 11417 | |
| 11418 | striplib= |
| 11419 | old_striplib= |
| 11420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
| 11421 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } |
| 11422 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
| 11423 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 11424 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 11425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11426 | $as_echo "yes" >&6; } |
| 11427 | else |
| 11428 | # FIXME - insert some real tests, host_os isn't really good enough |
| 11429 | case $host_os in |
| 11430 | darwin*) |
| 11431 | if test -n "$STRIP" ; then |
| 11432 | striplib="$STRIP -x" |
| 11433 | old_striplib="$STRIP -S" |
| 11434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11435 | $as_echo "yes" >&6; } |
| 11436 | else |
| 11437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11438 | $as_echo "no" >&6; } |
| 11439 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11440 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11441 | *) |
| 11442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11443 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11444 | ;; |
| 11445 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11446 | fi |
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 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11455 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11456 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11457 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11458 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11459 | # Report which library types will actually be built |
| 11460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
| 11461 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } |
| 11462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
| 11463 | $as_echo "$can_build_shared" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11464 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
| 11466 | $as_echo_n "checking whether to build shared libraries... " >&6; } |
| 11467 | test "$can_build_shared" = "no" && enable_shared=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11468 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11469 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 11470 | # are all built from PIC. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11471 | case $host_os in |
| 11472 | aix3*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11473 | test "$enable_shared" = yes && enable_static=no |
| 11474 | if test -n "$RANLIB"; then |
| 11475 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 11476 | postinstall_cmds='$RANLIB $lib' |
| 11477 | fi |
| 11478 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11479 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11480 | aix[4-9]*) |
| 11481 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 11482 | test "$enable_shared" = yes && enable_static=no |
| 11483 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11484 | ;; |
| 11485 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
| 11487 | $as_echo "$enable_shared" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11488 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
| 11490 | $as_echo_n "checking whether to build static libraries... " >&6; } |
| 11491 | # Make sure either enable_shared or enable_static is yes. |
| 11492 | test "$enable_shared" = yes || enable_static=yes |
| 11493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
| 11494 | $as_echo "$enable_static" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11495 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11496 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11497 | |
| 11498 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11499 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11500 | ac_ext=c |
| 11501 | ac_cpp='$CPP $CPPFLAGS' |
| 11502 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11503 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11504 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11505 | |
| 11506 | CC="$lt_save_CC" |
| 11507 | |
| 11508 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11509 | ac_ext=cpp |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11510 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 11511 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11512 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11513 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 11514 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11515 | archive_cmds_need_lc_CXX=no |
| 11516 | allow_undefined_flag_CXX= |
| 11517 | always_export_symbols_CXX=no |
| 11518 | archive_expsym_cmds_CXX= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11519 | compiler_needs_object_CXX=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11520 | export_dynamic_flag_spec_CXX= |
| 11521 | hardcode_direct_CXX=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11522 | hardcode_direct_absolute_CXX=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11523 | hardcode_libdir_flag_spec_CXX= |
| 11524 | hardcode_libdir_flag_spec_ld_CXX= |
| 11525 | hardcode_libdir_separator_CXX= |
| 11526 | hardcode_minus_L_CXX=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11527 | hardcode_shlibpath_var_CXX=unsupported |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11528 | hardcode_automatic_CXX=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11529 | inherit_rpath_CXX=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11530 | module_cmds_CXX= |
| 11531 | module_expsym_cmds_CXX= |
| 11532 | link_all_deplibs_CXX=unknown |
| 11533 | old_archive_cmds_CXX=$old_archive_cmds |
| 11534 | no_undefined_flag_CXX= |
| 11535 | whole_archive_flag_spec_CXX= |
| 11536 | enable_shared_with_static_runtimes_CXX=no |
| 11537 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11538 | # Source file extension for C++ test sources. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11539 | ac_ext=cpp |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11540 | |
| 11541 | # Object file extension for compiled C++ test sources. |
| 11542 | objext=o |
| 11543 | objext_CXX=$objext |
| 11544 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11545 | # No sense in running all these tests if we already determined that |
| 11546 | # the CXX compiler isn't working. Some variables (like enable_shared) |
| 11547 | # are currently assumed to apply to all compilers on this platform, |
| 11548 | # and will be corrupted by setting them based on a non-working compiler. |
| 11549 | if test "$_lt_caught_CXX_error" != yes; then |
| 11550 | # Code to be used in simple compile tests |
| 11551 | lt_simple_compile_test_code="int some_variable = 0;" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11552 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11553 | # Code to be used in simple link tests |
| 11554 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11555 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11556 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 11557 | |
| 11558 | |
| 11559 | |
| 11560 | |
| 11561 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11562 | |
| 11563 | # If no C compiler was specified, use CC. |
| 11564 | LTCC=${LTCC-"$CC"} |
| 11565 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11566 | # If no C compiler flags were specified, use CFLAGS. |
| 11567 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 11568 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11569 | # Allow CC to be a program name with arguments. |
| 11570 | compiler=$CC |
| 11571 | |
| 11572 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11573 | # save warnings/boilerplate of simple test code |
| 11574 | ac_outfile=conftest.$ac_objext |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 11575 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11576 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 11577 | _lt_compiler_boilerplate=`cat conftest.err` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11578 | $RM conftest* |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11579 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11580 | ac_outfile=conftest.$ac_objext |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 11581 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11582 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 11583 | _lt_linker_boilerplate=`cat conftest.err` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11584 | $RM -r conftest* |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11585 | |
| 11586 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11587 | # Allow CC to be a program name with arguments. |
| 11588 | lt_save_CC=$CC |
| 11589 | lt_save_LD=$LD |
| 11590 | lt_save_GCC=$GCC |
| 11591 | GCC=$GXX |
| 11592 | lt_save_with_gnu_ld=$with_gnu_ld |
| 11593 | lt_save_path_LD=$lt_cv_path_LD |
| 11594 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 11595 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 11596 | else |
| 11597 | $as_unset lt_cv_prog_gnu_ld |
| 11598 | fi |
| 11599 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 11600 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 11601 | else |
| 11602 | $as_unset lt_cv_path_LD |
| 11603 | fi |
| 11604 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 11605 | CC=${CXX-"c++"} |
| 11606 | compiler=$CC |
| 11607 | compiler_CXX=$CC |
| 11608 | for cc_temp in $compiler""; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11609 | case $cc_temp in |
| 11610 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 11611 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 11612 | \-*) ;; |
| 11613 | *) break;; |
| 11614 | esac |
| 11615 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11616 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11617 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11618 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11619 | if test -n "$compiler"; then |
| 11620 | # We don't want -fno-exception when compiling C++ code, so set the |
| 11621 | # no_builtin_flag separately |
| 11622 | if test "$GXX" = yes; then |
| 11623 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 11624 | else |
| 11625 | lt_prog_compiler_no_builtin_flag_CXX= |
| 11626 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11627 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11628 | if test "$GXX" = yes; then |
| 11629 | # Set up default GNU C++ configuration |
| 11630 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11631 | |
| 11632 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11633 | # Check whether --with-gnu-ld was given. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11634 | if test "${with_gnu_ld+set}" = set; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11635 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11636 | else |
| 11637 | with_gnu_ld=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11638 | fi |
| 11639 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11640 | ac_prog=ld |
| 11641 | if test "$GCC" = yes; then |
| 11642 | # Check if gcc -print-prog-name=ld gives a path. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 11644 | $as_echo_n "checking for ld used by $CC... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11645 | case $host in |
| 11646 | *-*-mingw*) |
| 11647 | # gcc leaves a trailing carriage return which upsets mingw |
| 11648 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 11649 | *) |
| 11650 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 11651 | esac |
| 11652 | case $ac_prog in |
| 11653 | # Accept absolute paths. |
| 11654 | [\\/]* | ?:[\\/]*) |
| 11655 | re_direlt='/[^/][^/]*/\.\./' |
| 11656 | # Canonicalize the pathname of ld |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11657 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 11658 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 11659 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11660 | done |
| 11661 | test -z "$LD" && LD="$ac_prog" |
| 11662 | ;; |
| 11663 | "") |
| 11664 | # If it fails, then pretend we aren't using GCC. |
| 11665 | ac_prog=ld |
| 11666 | ;; |
| 11667 | *) |
| 11668 | # If it is relative, then search for the first ld in PATH. |
| 11669 | with_gnu_ld=unknown |
| 11670 | ;; |
| 11671 | esac |
| 11672 | elif test "$with_gnu_ld" = yes; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 11674 | $as_echo_n "checking for GNU ld... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11675 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 11677 | $as_echo_n "checking for non-GNU ld... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11678 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11679 | if test "${lt_cv_path_LD+set}" = set; then : |
| 11680 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11681 | else |
| 11682 | if test -z "$LD"; then |
| 11683 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 11684 | for ac_dir in $PATH; do |
| 11685 | IFS="$lt_save_ifs" |
| 11686 | test -z "$ac_dir" && ac_dir=. |
| 11687 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 11688 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 11689 | # 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] | 11690 | # but apparently some variants of GNU ld only accept -v. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11691 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 11692 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 11693 | *GNU* | *'with BFD'*) |
| 11694 | test "$with_gnu_ld" != no && break |
| 11695 | ;; |
| 11696 | *) |
| 11697 | test "$with_gnu_ld" != yes && break |
| 11698 | ;; |
| 11699 | esac |
| 11700 | fi |
| 11701 | done |
| 11702 | IFS="$lt_save_ifs" |
| 11703 | else |
| 11704 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 11705 | fi |
| 11706 | fi |
| 11707 | |
| 11708 | LD="$lt_cv_path_LD" |
| 11709 | if test -n "$LD"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 11711 | $as_echo "$LD" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11712 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11714 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11715 | fi |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 11716 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 11718 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
| 11719 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : |
| 11720 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11721 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11722 | # 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] | 11723 | case `$LD -v 2>&1 </dev/null` in |
| 11724 | *GNU* | *'with BFD'*) |
| 11725 | lt_cv_prog_gnu_ld=yes |
| 11726 | ;; |
| 11727 | *) |
| 11728 | lt_cv_prog_gnu_ld=no |
| 11729 | ;; |
| 11730 | esac |
| 11731 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 11733 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11734 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 11735 | |
| 11736 | |
| 11737 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11738 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11739 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11740 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11741 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11742 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 11743 | # archiving commands below assume that GNU ld is being used. |
| 11744 | if test "$with_gnu_ld" = yes; then |
| 11745 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11746 | 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] | 11747 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11748 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 11749 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11750 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11751 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 11752 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 11753 | # investigate it a little bit more. (MM) |
| 11754 | wlarc='${wl}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11755 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11756 | # ancient GNU ld didn't support --whole-archive et. al. |
| 11757 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | |
| 11758 | $GREP 'no-whole-archive' > /dev/null; then |
| 11759 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 11760 | else |
| 11761 | whole_archive_flag_spec_CXX= |
| 11762 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11763 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11764 | with_gnu_ld=no |
| 11765 | wlarc= |
| 11766 | |
| 11767 | # A generic and very simple default shared library creation |
| 11768 | # command for GNU C++ for the case where it uses the native |
| 11769 | # linker, instead of GNU ld. If possible, this setting should |
| 11770 | # overridden to take advantage of the native linker features on |
| 11771 | # the platform it is being used on. |
| 11772 | 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] | 11773 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11774 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11775 | # Commands to make compiler produce verbose output that lists |
| 11776 | # what "hidden" libraries, object files and flags are used when |
| 11777 | # linking a shared library. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11778 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
| 11779 | |
| 11780 | else |
| 11781 | GXX=no |
| 11782 | with_gnu_ld=no |
| 11783 | wlarc= |
| 11784 | fi |
| 11785 | |
| 11786 | # PORTME: fill in a description of your system's C++ link characteristics |
| 11787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 11788 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 11789 | ld_shlibs_CXX=yes |
| 11790 | case $host_os in |
| 11791 | aix3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11792 | # FIXME: insert proper C++ library support |
| 11793 | ld_shlibs_CXX=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11794 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11795 | aix[4-9]*) |
| 11796 | if test "$host_cpu" = ia64; then |
| 11797 | # On IA64, the linker does run time linking by default, so we don't |
| 11798 | # have to do anything special. |
| 11799 | aix_use_runtimelinking=no |
| 11800 | exp_sym_flag='-Bexport' |
| 11801 | no_entry_flag="" |
| 11802 | else |
| 11803 | aix_use_runtimelinking=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11804 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11805 | # Test if we are trying to use run time linking or normal |
| 11806 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 11807 | # need to do runtime linking. |
| 11808 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 11809 | for ld_flag in $LDFLAGS; do |
| 11810 | case $ld_flag in |
| 11811 | *-brtl*) |
| 11812 | aix_use_runtimelinking=yes |
| 11813 | break |
| 11814 | ;; |
| 11815 | esac |
| 11816 | done |
| 11817 | ;; |
| 11818 | esac |
| 11819 | |
| 11820 | exp_sym_flag='-bexport' |
| 11821 | no_entry_flag='-bnoentry' |
| 11822 | fi |
| 11823 | |
| 11824 | # When large executables or shared objects are built, AIX ld can |
| 11825 | # have problems creating the table of contents. If linking a library |
| 11826 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 11827 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 11828 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 11829 | |
| 11830 | archive_cmds_CXX='' |
| 11831 | hardcode_direct_CXX=yes |
| 11832 | hardcode_direct_absolute_CXX=yes |
| 11833 | hardcode_libdir_separator_CXX=':' |
| 11834 | link_all_deplibs_CXX=yes |
| 11835 | file_list_spec_CXX='${wl}-f,' |
| 11836 | |
| 11837 | if test "$GXX" = yes; then |
| 11838 | case $host_os in aix4.[012]|aix4.[012].*) |
| 11839 | # We only want to do this on AIX 4.2 and lower, the check |
| 11840 | # below for broken collect2 doesn't work under 4.3+ |
| 11841 | collect2name=`${CC} -print-prog-name=collect2` |
| 11842 | if test -f "$collect2name" && |
| 11843 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 11844 | then |
| 11845 | # We have reworked collect2 |
| 11846 | : |
| 11847 | else |
| 11848 | # We have old collect2 |
| 11849 | hardcode_direct_CXX=unsupported |
| 11850 | # It fails to find uninstalled libraries when the uninstalled |
| 11851 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 11852 | # to unsupported forces relinking |
| 11853 | hardcode_minus_L_CXX=yes |
| 11854 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 11855 | hardcode_libdir_separator_CXX= |
| 11856 | fi |
| 11857 | esac |
| 11858 | shared_flag='-shared' |
| 11859 | if test "$aix_use_runtimelinking" = yes; then |
| 11860 | shared_flag="$shared_flag "'${wl}-G' |
| 11861 | fi |
| 11862 | else |
| 11863 | # not using gcc |
| 11864 | if test "$host_cpu" = ia64; then |
| 11865 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 11866 | # chokes on -Wl,-G. The following line is correct: |
| 11867 | shared_flag='-G' |
| 11868 | else |
| 11869 | if test "$aix_use_runtimelinking" = yes; then |
| 11870 | shared_flag='${wl}-G' |
| 11871 | else |
| 11872 | shared_flag='${wl}-bM:SRE' |
| 11873 | fi |
| 11874 | fi |
| 11875 | fi |
| 11876 | |
| 11877 | export_dynamic_flag_spec_CXX='${wl}-bexpall' |
| 11878 | # It seems that -bexpall does not export symbols beginning with |
| 11879 | # underscore (_), so it is better to generate a list of symbols to |
| 11880 | # export. |
| 11881 | always_export_symbols_CXX=yes |
| 11882 | if test "$aix_use_runtimelinking" = yes; then |
| 11883 | # Warning - without using the other runtime loading flags (-brtl), |
| 11884 | # -berok will link without error, but may produce a broken library. |
| 11885 | allow_undefined_flag_CXX='-berok' |
| 11886 | # Determine the default libpath from the value encoded in an empty |
| 11887 | # executable. |
| 11888 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11889 | /* end confdefs.h. */ |
| 11890 | |
| 11891 | int |
| 11892 | main () |
| 11893 | { |
| 11894 | |
| 11895 | ; |
| 11896 | return 0; |
| 11897 | } |
| 11898 | _ACEOF |
| 11899 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 11900 | |
| 11901 | lt_aix_libpath_sed=' |
| 11902 | /Import File Strings/,/^$/ { |
| 11903 | /^0/ { |
| 11904 | s/^0 *\(.*\)$/\1/ |
| 11905 | p |
| 11906 | } |
| 11907 | }' |
| 11908 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 11909 | # Check for a 64-bit object if we didn't find anything. |
| 11910 | if test -z "$aix_libpath"; then |
| 11911 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 11912 | fi |
| 11913 | fi |
| 11914 | rm -f core conftest.err conftest.$ac_objext \ |
| 11915 | conftest$ac_exeext conftest.$ac_ext |
| 11916 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 11917 | |
| 11918 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 11919 | |
| 11920 | 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" |
| 11921 | else |
| 11922 | if test "$host_cpu" = ia64; then |
| 11923 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 11924 | allow_undefined_flag_CXX="-z nodefs" |
| 11925 | 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" |
| 11926 | else |
| 11927 | # Determine the default libpath from the value encoded in an |
| 11928 | # empty executable. |
| 11929 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11930 | /* end confdefs.h. */ |
| 11931 | |
| 11932 | int |
| 11933 | main () |
| 11934 | { |
| 11935 | |
| 11936 | ; |
| 11937 | return 0; |
| 11938 | } |
| 11939 | _ACEOF |
| 11940 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 11941 | |
| 11942 | lt_aix_libpath_sed=' |
| 11943 | /Import File Strings/,/^$/ { |
| 11944 | /^0/ { |
| 11945 | s/^0 *\(.*\)$/\1/ |
| 11946 | p |
| 11947 | } |
| 11948 | }' |
| 11949 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 11950 | # Check for a 64-bit object if we didn't find anything. |
| 11951 | if test -z "$aix_libpath"; then |
| 11952 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 11953 | fi |
| 11954 | fi |
| 11955 | rm -f core conftest.err conftest.$ac_objext \ |
| 11956 | conftest$ac_exeext conftest.$ac_ext |
| 11957 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 11958 | |
| 11959 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 11960 | # Warning - without using the other run time loading flags, |
| 11961 | # -berok will link without error, but may produce a broken library. |
| 11962 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 11963 | allow_undefined_flag_CXX=' ${wl}-berok' |
| 11964 | # Exported symbols can be pulled into shared objects from archives |
| 11965 | whole_archive_flag_spec_CXX='$convenience' |
| 11966 | archive_cmds_need_lc_CXX=yes |
| 11967 | # This is similar to how AIX traditionally builds its shared |
| 11968 | # libraries. |
| 11969 | 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' |
| 11970 | fi |
| 11971 | fi |
| 11972 | ;; |
| 11973 | |
| 11974 | beos*) |
| 11975 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 11976 | allow_undefined_flag_CXX=unsupported |
| 11977 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 11978 | # support --undefined. This deserves some investigation. FIXME |
| 11979 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11980 | else |
| 11981 | ld_shlibs_CXX=no |
| 11982 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11983 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11984 | |
| 11985 | chorus*) |
| 11986 | case $cc_basename in |
| 11987 | *) |
| 11988 | # FIXME: insert proper C++ library support |
| 11989 | ld_shlibs_CXX=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11990 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11991 | esac |
| 11992 | ;; |
| 11993 | |
| 11994 | cygwin* | mingw* | pw32* | cegcc*) |
| 11995 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 11996 | # as there is no search path for DLLs. |
| 11997 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 11998 | allow_undefined_flag_CXX=unsupported |
| 11999 | always_export_symbols_CXX=no |
| 12000 | enable_shared_with_static_runtimes_CXX=yes |
| 12001 | |
| 12002 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 12003 | 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' |
| 12004 | # If the export-symbols file already is a .def file (1st line |
| 12005 | # is EXPORTS), use it as is; otherwise, prepend... |
| 12006 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 12007 | cp $export_symbols $output_objdir/$soname.def; |
| 12008 | else |
| 12009 | echo EXPORTS > $output_objdir/$soname.def; |
| 12010 | cat $export_symbols >> $output_objdir/$soname.def; |
| 12011 | fi~ |
| 12012 | $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' |
| 12013 | else |
| 12014 | ld_shlibs_CXX=no |
| 12015 | fi |
| 12016 | ;; |
| 12017 | darwin* | rhapsody*) |
| 12018 | |
| 12019 | |
| 12020 | archive_cmds_need_lc_CXX=no |
| 12021 | hardcode_direct_CXX=no |
| 12022 | hardcode_automatic_CXX=yes |
| 12023 | hardcode_shlibpath_var_CXX=unsupported |
| 12024 | whole_archive_flag_spec_CXX='' |
| 12025 | link_all_deplibs_CXX=yes |
| 12026 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" |
| 12027 | case $cc_basename in |
| 12028 | ifort*) _lt_dar_can_shared=yes ;; |
| 12029 | *) _lt_dar_can_shared=$GCC ;; |
| 12030 | esac |
| 12031 | if test "$_lt_dar_can_shared" = "yes"; then |
| 12032 | output_verbose_link_cmd=echo |
| 12033 | 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}" |
| 12034 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 12035 | 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}" |
| 12036 | 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}" |
| 12037 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then |
| 12038 | 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}" |
| 12039 | 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}" |
| 12040 | fi |
| 12041 | |
| 12042 | else |
| 12043 | ld_shlibs_CXX=no |
| 12044 | fi |
| 12045 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12046 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12047 | |
| 12048 | dgux*) |
| 12049 | case $cc_basename in |
| 12050 | ec++*) |
| 12051 | # FIXME: insert proper C++ library support |
| 12052 | ld_shlibs_CXX=no |
| 12053 | ;; |
| 12054 | ghcx*) |
| 12055 | # Green Hills C++ Compiler |
| 12056 | # FIXME: insert proper C++ library support |
| 12057 | ld_shlibs_CXX=no |
| 12058 | ;; |
| 12059 | *) |
| 12060 | # FIXME: insert proper C++ library support |
| 12061 | ld_shlibs_CXX=no |
| 12062 | ;; |
| 12063 | esac |
| 12064 | ;; |
| 12065 | |
| 12066 | freebsd[12]*) |
| 12067 | # C++ shared libraries reported to be fairly broken before |
| 12068 | # switch to ELF |
| 12069 | ld_shlibs_CXX=no |
| 12070 | ;; |
| 12071 | |
| 12072 | freebsd-elf*) |
| 12073 | archive_cmds_need_lc_CXX=no |
| 12074 | ;; |
| 12075 | |
| 12076 | freebsd* | dragonfly*) |
| 12077 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 12078 | # conventions |
| 12079 | ld_shlibs_CXX=yes |
| 12080 | ;; |
| 12081 | |
| 12082 | gnu*) |
| 12083 | ;; |
| 12084 | |
| 12085 | hpux9*) |
| 12086 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 12087 | hardcode_libdir_separator_CXX=: |
| 12088 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 12089 | hardcode_direct_CXX=yes |
| 12090 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 12091 | # but as the default |
| 12092 | # location of the library. |
| 12093 | |
| 12094 | case $cc_basename in |
| 12095 | CC*) |
| 12096 | # FIXME: insert proper C++ library support |
| 12097 | ld_shlibs_CXX=no |
| 12098 | ;; |
| 12099 | aCC*) |
| 12100 | 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' |
| 12101 | # Commands to make compiler produce verbose output that lists |
| 12102 | # what "hidden" libraries, object files and flags are used when |
| 12103 | # linking a shared library. |
| 12104 | # |
| 12105 | # There doesn't appear to be a way to prevent this compiler from |
| 12106 | # explicitly linking system object files so we need to strip them |
| 12107 | # from the output so that they don't get included in the library |
| 12108 | # dependencies. |
| 12109 | 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' |
| 12110 | ;; |
| 12111 | *) |
| 12112 | if test "$GXX" = yes; then |
| 12113 | 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' |
| 12114 | else |
| 12115 | # FIXME: insert proper C++ library support |
| 12116 | ld_shlibs_CXX=no |
| 12117 | fi |
| 12118 | ;; |
| 12119 | esac |
| 12120 | ;; |
| 12121 | |
| 12122 | hpux10*|hpux11*) |
| 12123 | if test $with_gnu_ld = no; then |
| 12124 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 12125 | hardcode_libdir_separator_CXX=: |
| 12126 | |
| 12127 | case $host_cpu in |
| 12128 | hppa*64*|ia64*) |
| 12129 | ;; |
| 12130 | *) |
| 12131 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 12132 | ;; |
| 12133 | esac |
| 12134 | fi |
| 12135 | case $host_cpu in |
| 12136 | hppa*64*|ia64*) |
| 12137 | hardcode_direct_CXX=no |
| 12138 | hardcode_shlibpath_var_CXX=no |
| 12139 | ;; |
| 12140 | *) |
| 12141 | hardcode_direct_CXX=yes |
| 12142 | hardcode_direct_absolute_CXX=yes |
| 12143 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 12144 | # but as the default |
| 12145 | # location of the library. |
| 12146 | ;; |
| 12147 | esac |
| 12148 | |
| 12149 | case $cc_basename in |
| 12150 | CC*) |
| 12151 | # FIXME: insert proper C++ library support |
| 12152 | ld_shlibs_CXX=no |
| 12153 | ;; |
| 12154 | aCC*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12155 | case $host_cpu in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12156 | hppa*64*) |
| 12157 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12158 | ;; |
| 12159 | ia64*) |
| 12160 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12161 | ;; |
| 12162 | *) |
| 12163 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12164 | ;; |
| 12165 | esac |
| 12166 | # Commands to make compiler produce verbose output that lists |
| 12167 | # what "hidden" libraries, object files and flags are used when |
| 12168 | # linking a shared library. |
| 12169 | # |
| 12170 | # There doesn't appear to be a way to prevent this compiler from |
| 12171 | # explicitly linking system object files so we need to strip them |
| 12172 | # from the output so that they don't get included in the library |
| 12173 | # dependencies. |
| 12174 | 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' |
| 12175 | ;; |
| 12176 | *) |
| 12177 | if test "$GXX" = yes; then |
| 12178 | if test $with_gnu_ld = no; then |
| 12179 | case $host_cpu in |
| 12180 | hppa*64*) |
| 12181 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12182 | ;; |
| 12183 | ia64*) |
| 12184 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12185 | ;; |
| 12186 | *) |
| 12187 | 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' |
| 12188 | ;; |
| 12189 | esac |
| 12190 | fi |
| 12191 | else |
| 12192 | # FIXME: insert proper C++ library support |
| 12193 | ld_shlibs_CXX=no |
| 12194 | fi |
| 12195 | ;; |
| 12196 | esac |
| 12197 | ;; |
| 12198 | |
| 12199 | interix[3-9]*) |
| 12200 | hardcode_direct_CXX=no |
| 12201 | hardcode_shlibpath_var_CXX=no |
| 12202 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 12203 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 12204 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 12205 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 12206 | # default) and relocated if they conflict, which is a slow very memory |
| 12207 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 12208 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 12209 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 12210 | 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' |
| 12211 | 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' |
| 12212 | ;; |
| 12213 | irix5* | irix6*) |
| 12214 | case $cc_basename in |
| 12215 | CC*) |
| 12216 | # SGI C++ |
| 12217 | 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' |
| 12218 | |
| 12219 | # Archives containing C++ object files must be created using |
| 12220 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 12221 | # necessary to make sure instantiated templates are included |
| 12222 | # in the archive. |
| 12223 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 12224 | ;; |
| 12225 | *) |
| 12226 | if test "$GXX" = yes; then |
| 12227 | if test "$with_gnu_ld" = no; then |
| 12228 | 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' |
| 12229 | else |
| 12230 | 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' |
| 12231 | fi |
| 12232 | fi |
| 12233 | link_all_deplibs_CXX=yes |
| 12234 | ;; |
| 12235 | esac |
| 12236 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 12237 | hardcode_libdir_separator_CXX=: |
| 12238 | inherit_rpath_CXX=yes |
| 12239 | ;; |
| 12240 | |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 12241 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12242 | case $cc_basename in |
| 12243 | KCC*) |
| 12244 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 12245 | |
| 12246 | # KCC will only create a shared library if the output file |
| 12247 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 12248 | # to its proper name (with version) after linking. |
| 12249 | 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' |
| 12250 | 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' |
| 12251 | # Commands to make compiler produce verbose output that lists |
| 12252 | # what "hidden" libraries, object files and flags are used when |
| 12253 | # linking a shared library. |
| 12254 | # |
| 12255 | # There doesn't appear to be a way to prevent this compiler from |
| 12256 | # explicitly linking system object files so we need to strip them |
| 12257 | # from the output so that they don't get included in the library |
| 12258 | # dependencies. |
| 12259 | 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' |
| 12260 | |
| 12261 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 12262 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 12263 | |
| 12264 | # Archives containing C++ object files must be created using |
| 12265 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 12266 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 12267 | ;; |
| 12268 | icpc* | ecpc* ) |
| 12269 | # Intel C++ |
| 12270 | with_gnu_ld=yes |
| 12271 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 12272 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 12273 | # earlier do not add the objects themselves. |
| 12274 | case `$CC -V 2>&1` in |
| 12275 | *"Version 7."*) |
| 12276 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12277 | 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' |
| 12278 | ;; |
| 12279 | *) # Version 8.0 or newer |
| 12280 | tmp_idyn= |
| 12281 | case $host_cpu in |
| 12282 | ia64*) tmp_idyn=' -i_dynamic';; |
| 12283 | esac |
| 12284 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12285 | 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' |
| 12286 | ;; |
| 12287 | esac |
| 12288 | archive_cmds_need_lc_CXX=no |
| 12289 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 12290 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 12291 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 12292 | ;; |
| 12293 | pgCC* | pgcpp*) |
| 12294 | # Portland Group C++ compiler |
| 12295 | case `$CC -V` in |
| 12296 | *pgCC\ [1-5]* | *pgcpp\ [1-5]*) |
| 12297 | prelink_cmds_CXX='tpldir=Template.dir~ |
| 12298 | rm -rf $tpldir~ |
| 12299 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ |
| 12300 | compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' |
| 12301 | old_archive_cmds_CXX='tpldir=Template.dir~ |
| 12302 | rm -rf $tpldir~ |
| 12303 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ |
| 12304 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ |
| 12305 | $RANLIB $oldlib' |
| 12306 | archive_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 -o $lib' |
| 12310 | archive_expsym_cmds_CXX='tpldir=Template.dir~ |
| 12311 | rm -rf $tpldir~ |
| 12312 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
| 12313 | $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] | 12314 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12315 | *) # Version 6 will use weak symbols |
| 12316 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 12317 | 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] | 12318 | ;; |
| 12319 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12320 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12321 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 12322 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 12323 | 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' |
| 12324 | ;; |
| 12325 | cxx*) |
| 12326 | # Compaq C++ |
| 12327 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12328 | 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] | 12329 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12330 | runpath_var=LD_RUN_PATH |
| 12331 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 12332 | hardcode_libdir_separator_CXX=: |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12333 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12334 | # Commands to make compiler produce verbose output that lists |
| 12335 | # what "hidden" libraries, object files and flags are used when |
| 12336 | # linking a shared library. |
| 12337 | # |
| 12338 | # There doesn't appear to be a way to prevent this compiler from |
| 12339 | # explicitly linking system object files so we need to strip them |
| 12340 | # from the output so that they don't get included in the library |
| 12341 | # dependencies. |
| 12342 | 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' |
| 12343 | ;; |
| 12344 | xl*) |
| 12345 | # IBM XL 8.0 on PPC, with GNU ld |
| 12346 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 12347 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 12348 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12349 | if test "x$supports_anon_versioning" = xyes; then |
| 12350 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ |
| 12351 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 12352 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 12353 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 12354 | fi |
| 12355 | ;; |
| 12356 | *) |
| 12357 | case `$CC -V 2>&1 | sed 5q` in |
| 12358 | *Sun\ C*) |
| 12359 | # Sun C++ 5.9 |
| 12360 | no_undefined_flag_CXX=' -zdefs' |
| 12361 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12362 | 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' |
| 12363 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 12364 | 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' |
| 12365 | compiler_needs_object_CXX=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12366 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12367 | # Not sure whether something based on |
| 12368 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
| 12369 | # would be better. |
| 12370 | output_verbose_link_cmd='echo' |
| 12371 | |
| 12372 | # Archives containing C++ object files must be created using |
| 12373 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 12374 | # necessary to make sure instantiated templates are included |
| 12375 | # in the archive. |
| 12376 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 12377 | ;; |
| 12378 | esac |
| 12379 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12380 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12381 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12382 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12383 | lynxos*) |
| 12384 | # FIXME: insert proper C++ library support |
| 12385 | ld_shlibs_CXX=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12386 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12387 | |
| 12388 | m88k*) |
| 12389 | # FIXME: insert proper C++ library support |
| 12390 | ld_shlibs_CXX=no |
| 12391 | ;; |
| 12392 | |
| 12393 | mvs*) |
| 12394 | case $cc_basename in |
| 12395 | cxx*) |
| 12396 | # FIXME: insert proper C++ library support |
| 12397 | ld_shlibs_CXX=no |
| 12398 | ;; |
| 12399 | *) |
| 12400 | # FIXME: insert proper C++ library support |
| 12401 | ld_shlibs_CXX=no |
| 12402 | ;; |
| 12403 | esac |
| 12404 | ;; |
| 12405 | |
| 12406 | netbsd*) |
| 12407 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 12408 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 12409 | wlarc= |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12410 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12411 | hardcode_direct_CXX=yes |
| 12412 | hardcode_shlibpath_var_CXX=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12413 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12414 | # Workaround some broken pre-1.5 toolchains |
| 12415 | 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] | 12416 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12417 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12418 | *nto* | *qnx*) |
| 12419 | ld_shlibs_CXX=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12420 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12421 | |
| 12422 | openbsd2*) |
| 12423 | # C++ shared libraries are fairly broken |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12424 | ld_shlibs_CXX=no |
| 12425 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12426 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12427 | openbsd*) |
| 12428 | if test -f /usr/libexec/ld.so; then |
| 12429 | hardcode_direct_CXX=yes |
| 12430 | hardcode_shlibpath_var_CXX=no |
| 12431 | hardcode_direct_absolute_CXX=yes |
| 12432 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 12433 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 12434 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 12435 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| 12436 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 12437 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12438 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12439 | output_verbose_link_cmd=echo |
| 12440 | else |
| 12441 | ld_shlibs_CXX=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12442 | fi |
| 12443 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12444 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12445 | osf3* | osf4* | osf5*) |
| 12446 | case $cc_basename in |
| 12447 | KCC*) |
| 12448 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 12449 | |
| 12450 | # KCC will only create a shared library if the output file |
| 12451 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 12452 | # to its proper name (with version) after linking. |
| 12453 | 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' |
| 12454 | |
| 12455 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 12456 | hardcode_libdir_separator_CXX=: |
| 12457 | |
| 12458 | # Archives containing C++ object files must be created using |
| 12459 | # the KAI C++ compiler. |
| 12460 | case $host in |
| 12461 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; |
| 12462 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; |
| 12463 | esac |
| 12464 | ;; |
| 12465 | RCC*) |
| 12466 | # Rational C++ 2.4.1 |
| 12467 | # FIXME: insert proper C++ library support |
| 12468 | ld_shlibs_CXX=no |
| 12469 | ;; |
| 12470 | cxx*) |
| 12471 | case $host in |
| 12472 | osf3*) |
| 12473 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 12474 | 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' |
| 12475 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 12476 | ;; |
| 12477 | *) |
| 12478 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
| 12479 | 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' |
| 12480 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 12481 | echo "-hidden">> $lib.exp~ |
| 12482 | $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~ |
| 12483 | $RM $lib.exp' |
| 12484 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 12485 | ;; |
| 12486 | esac |
| 12487 | |
| 12488 | hardcode_libdir_separator_CXX=: |
| 12489 | |
| 12490 | # Commands to make compiler produce verbose output that lists |
| 12491 | # what "hidden" libraries, object files and flags are used when |
| 12492 | # linking a shared library. |
| 12493 | # |
| 12494 | # There doesn't appear to be a way to prevent this compiler from |
| 12495 | # explicitly linking system object files so we need to strip them |
| 12496 | # from the output so that they don't get included in the library |
| 12497 | # dependencies. |
| 12498 | 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' |
| 12499 | ;; |
| 12500 | *) |
| 12501 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 12502 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 12503 | case $host in |
| 12504 | osf3*) |
| 12505 | 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' |
| 12506 | ;; |
| 12507 | *) |
| 12508 | 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' |
| 12509 | ;; |
| 12510 | esac |
| 12511 | |
| 12512 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 12513 | hardcode_libdir_separator_CXX=: |
| 12514 | |
| 12515 | # Commands to make compiler produce verbose output that lists |
| 12516 | # what "hidden" libraries, object files and flags are used when |
| 12517 | # linking a shared library. |
| 12518 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
| 12519 | |
| 12520 | else |
| 12521 | # FIXME: insert proper C++ library support |
| 12522 | ld_shlibs_CXX=no |
| 12523 | fi |
| 12524 | ;; |
| 12525 | esac |
| 12526 | ;; |
| 12527 | |
| 12528 | psos*) |
| 12529 | # FIXME: insert proper C++ library support |
| 12530 | ld_shlibs_CXX=no |
| 12531 | ;; |
| 12532 | |
| 12533 | sunos4*) |
| 12534 | case $cc_basename in |
| 12535 | CC*) |
| 12536 | # Sun C++ 4.x |
| 12537 | # FIXME: insert proper C++ library support |
| 12538 | ld_shlibs_CXX=no |
| 12539 | ;; |
| 12540 | lcc*) |
| 12541 | # Lucid |
| 12542 | # FIXME: insert proper C++ library support |
| 12543 | ld_shlibs_CXX=no |
| 12544 | ;; |
| 12545 | *) |
| 12546 | # FIXME: insert proper C++ library support |
| 12547 | ld_shlibs_CXX=no |
| 12548 | ;; |
| 12549 | esac |
| 12550 | ;; |
| 12551 | |
| 12552 | solaris*) |
| 12553 | case $cc_basename in |
| 12554 | CC*) |
| 12555 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 12556 | archive_cmds_need_lc_CXX=yes |
| 12557 | no_undefined_flag_CXX=' -zdefs' |
| 12558 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12559 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 12560 | $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' |
| 12561 | |
| 12562 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 12563 | hardcode_shlibpath_var_CXX=no |
| 12564 | case $host_os in |
| 12565 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 12566 | *) |
| 12567 | # The compiler driver will combine and reorder linker options, |
| 12568 | # but understands `-z linker_flag'. |
| 12569 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 12570 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' |
| 12571 | ;; |
| 12572 | esac |
| 12573 | link_all_deplibs_CXX=yes |
| 12574 | |
| 12575 | output_verbose_link_cmd='echo' |
| 12576 | |
| 12577 | # Archives containing C++ object files must be created using |
| 12578 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 12579 | # necessary to make sure instantiated templates are included |
| 12580 | # in the archive. |
| 12581 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 12582 | ;; |
| 12583 | gcx*) |
| 12584 | # Green Hills C++ Compiler |
| 12585 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 12586 | |
| 12587 | # The C++ compiler must be used to create the archive. |
| 12588 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 12589 | ;; |
| 12590 | *) |
| 12591 | # GNU C++ compiler with Solaris linker |
| 12592 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 12593 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 12594 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then |
| 12595 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 12596 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 12597 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 12598 | |
| 12599 | # Commands to make compiler produce verbose output that lists |
| 12600 | # what "hidden" libraries, object files and flags are used when |
| 12601 | # linking a shared library. |
| 12602 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
| 12603 | else |
| 12604 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 12605 | # platform. |
| 12606 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 12607 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 12608 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 12609 | |
| 12610 | # Commands to make compiler produce verbose output that lists |
| 12611 | # what "hidden" libraries, object files and flags are used when |
| 12612 | # linking a shared library. |
| 12613 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
| 12614 | fi |
| 12615 | |
| 12616 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 12617 | case $host_os in |
| 12618 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 12619 | *) |
| 12620 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 12621 | ;; |
| 12622 | esac |
| 12623 | fi |
| 12624 | ;; |
| 12625 | esac |
| 12626 | ;; |
| 12627 | |
| 12628 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 12629 | no_undefined_flag_CXX='${wl}-z,text' |
| 12630 | archive_cmds_need_lc_CXX=no |
| 12631 | hardcode_shlibpath_var_CXX=no |
| 12632 | runpath_var='LD_RUN_PATH' |
| 12633 | |
| 12634 | case $cc_basename in |
| 12635 | CC*) |
| 12636 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12637 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12638 | ;; |
| 12639 | *) |
| 12640 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12641 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12642 | ;; |
| 12643 | esac |
| 12644 | ;; |
| 12645 | |
| 12646 | sysv5* | sco3.2v5* | sco5v6*) |
| 12647 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 12648 | # link with -lc, and that would cause any symbols used from libc to |
| 12649 | # always be unresolved, which means just about no library would |
| 12650 | # ever link correctly. If we're not using GNU ld we use -z text |
| 12651 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 12652 | # as -z defs. |
| 12653 | no_undefined_flag_CXX='${wl}-z,text' |
| 12654 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
| 12655 | archive_cmds_need_lc_CXX=no |
| 12656 | hardcode_shlibpath_var_CXX=no |
| 12657 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' |
| 12658 | hardcode_libdir_separator_CXX=':' |
| 12659 | link_all_deplibs_CXX=yes |
| 12660 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
| 12661 | runpath_var='LD_RUN_PATH' |
| 12662 | |
| 12663 | case $cc_basename in |
| 12664 | CC*) |
| 12665 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12666 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12667 | ;; |
| 12668 | *) |
| 12669 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12670 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12671 | ;; |
| 12672 | esac |
| 12673 | ;; |
| 12674 | |
| 12675 | tandem*) |
| 12676 | case $cc_basename in |
| 12677 | NCC*) |
| 12678 | # NonStop-UX NCC 3.20 |
| 12679 | # FIXME: insert proper C++ library support |
| 12680 | ld_shlibs_CXX=no |
| 12681 | ;; |
| 12682 | *) |
| 12683 | # FIXME: insert proper C++ library support |
| 12684 | ld_shlibs_CXX=no |
| 12685 | ;; |
| 12686 | esac |
| 12687 | ;; |
| 12688 | |
| 12689 | vxworks*) |
| 12690 | # FIXME: insert proper C++ library support |
| 12691 | ld_shlibs_CXX=no |
| 12692 | ;; |
| 12693 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12694 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12695 | # FIXME: insert proper C++ library support |
| 12696 | ld_shlibs_CXX=no |
| 12697 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12698 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12699 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
| 12701 | $as_echo "$ld_shlibs_CXX" >&6; } |
| 12702 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12703 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12704 | GCC_CXX="$GXX" |
| 12705 | LD_CXX="$LD" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12706 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12707 | ## CAVEAT EMPTOR: |
| 12708 | ## There is no encapsulation within the following macros, do not change |
| 12709 | ## the running order or otherwise move them around unless you know exactly |
| 12710 | ## what you are doing... |
| 12711 | # Dependencies to place before and after the object being linked: |
| 12712 | predep_objects_CXX= |
| 12713 | postdep_objects_CXX= |
| 12714 | predeps_CXX= |
| 12715 | postdeps_CXX= |
| 12716 | compiler_lib_search_path_CXX= |
| 12717 | |
| 12718 | cat > conftest.$ac_ext <<_LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12719 | class Foo |
| 12720 | { |
| 12721 | public: |
| 12722 | Foo (void) { a = 0; } |
| 12723 | private: |
| 12724 | int a; |
| 12725 | }; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12726 | _LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12727 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12728 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12729 | (eval $ac_compile) 2>&5 |
| 12730 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12731 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 12732 | test $ac_status = 0; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12733 | # Parse the compiler output and extract the necessary |
| 12734 | # objects, libraries and library flags. |
| 12735 | |
| 12736 | # Sentinel used to keep track of whether or not we are before |
| 12737 | # the conftest object file. |
| 12738 | pre_test_object_deps_done=no |
| 12739 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12740 | for p in `eval "$output_verbose_link_cmd"`; do |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12741 | case $p in |
| 12742 | |
| 12743 | -L* | -R* | -l*) |
| 12744 | # Some compilers place space between "-{L,R}" and the path. |
| 12745 | # Remove the space. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12746 | if test $p = "-L" || |
| 12747 | test $p = "-R"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12748 | prev=$p |
| 12749 | continue |
| 12750 | else |
| 12751 | prev= |
| 12752 | fi |
| 12753 | |
| 12754 | if test "$pre_test_object_deps_done" = no; then |
| 12755 | case $p in |
| 12756 | -L* | -R*) |
| 12757 | # Internal compiler library paths should come after those |
| 12758 | # provided the user. The postdeps already come after the |
| 12759 | # user supplied libs so there is no need to process them. |
| 12760 | if test -z "$compiler_lib_search_path_CXX"; then |
| 12761 | compiler_lib_search_path_CXX="${prev}${p}" |
| 12762 | else |
| 12763 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 12764 | fi |
| 12765 | ;; |
| 12766 | # The "-l" case would never come before the object being |
| 12767 | # linked, so don't bother handling this case. |
| 12768 | esac |
| 12769 | else |
| 12770 | if test -z "$postdeps_CXX"; then |
| 12771 | postdeps_CXX="${prev}${p}" |
| 12772 | else |
| 12773 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 12774 | fi |
| 12775 | fi |
| 12776 | ;; |
| 12777 | |
| 12778 | *.$objext) |
| 12779 | # This assumes that the test object file only shows up |
| 12780 | # once in the compiler output. |
| 12781 | if test "$p" = "conftest.$objext"; then |
| 12782 | pre_test_object_deps_done=yes |
| 12783 | continue |
| 12784 | fi |
| 12785 | |
| 12786 | if test "$pre_test_object_deps_done" = no; then |
| 12787 | if test -z "$predep_objects_CXX"; then |
| 12788 | predep_objects_CXX="$p" |
| 12789 | else |
| 12790 | predep_objects_CXX="$predep_objects_CXX $p" |
| 12791 | fi |
| 12792 | else |
| 12793 | if test -z "$postdep_objects_CXX"; then |
| 12794 | postdep_objects_CXX="$p" |
| 12795 | else |
| 12796 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 12797 | fi |
| 12798 | fi |
| 12799 | ;; |
| 12800 | |
| 12801 | *) ;; # Ignore the rest. |
| 12802 | |
| 12803 | esac |
| 12804 | done |
| 12805 | |
| 12806 | # Clean up. |
| 12807 | rm -f a.out a.exe |
| 12808 | else |
| 12809 | echo "libtool.m4: error: problem compiling CXX test program" |
| 12810 | fi |
| 12811 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12812 | $RM -f confest.$objext |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12813 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12814 | # PORTME: override above test on systems where it is broken |
| 12815 | case $host_os in |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12816 | interix[3-9]*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12817 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 12818 | # hack all around it, let's just trust "g++" to DTRT. |
| 12819 | predep_objects_CXX= |
| 12820 | postdep_objects_CXX= |
| 12821 | postdeps_CXX= |
| 12822 | ;; |
| 12823 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12824 | linux*) |
| 12825 | case `$CC -V 2>&1 | sed 5q` in |
| 12826 | *Sun\ C*) |
| 12827 | # Sun C++ 5.9 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12828 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12829 | # The more standards-conforming stlport4 library is |
| 12830 | # incompatible with the Cstd library. Avoid specifying |
| 12831 | # it if it's in CXXFLAGS. Ignore libCrun as |
| 12832 | # -library=stlport4 depends on it. |
| 12833 | case " $CXX $CXXFLAGS " in |
| 12834 | *" -library=stlport4 "*) |
| 12835 | solaris_use_stlport4=yes |
| 12836 | ;; |
| 12837 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12838 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12839 | if test "$solaris_use_stlport4" != yes; then |
| 12840 | postdeps_CXX='-library=Cstd -library=Crun' |
| 12841 | fi |
| 12842 | ;; |
| 12843 | esac |
| 12844 | ;; |
| 12845 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12846 | solaris*) |
| 12847 | case $cc_basename in |
| 12848 | CC*) |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12849 | # The more standards-conforming stlport4 library is |
| 12850 | # incompatible with the Cstd library. Avoid specifying |
| 12851 | # it if it's in CXXFLAGS. Ignore libCrun as |
| 12852 | # -library=stlport4 depends on it. |
| 12853 | case " $CXX $CXXFLAGS " in |
| 12854 | *" -library=stlport4 "*) |
| 12855 | solaris_use_stlport4=yes |
| 12856 | ;; |
| 12857 | esac |
| 12858 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12859 | # Adding this requires a known-good setup of shared libraries for |
| 12860 | # Sun compiler versions before 5.6, else PIC objects from an old |
| 12861 | # archive will be linked into the output, leading to subtle bugs. |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12862 | if test "$solaris_use_stlport4" != yes; then |
| 12863 | postdeps_CXX='-library=Cstd -library=Crun' |
| 12864 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12865 | ;; |
| 12866 | esac |
| 12867 | ;; |
| 12868 | esac |
| 12869 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12870 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12871 | case " $postdeps_CXX " in |
| 12872 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 12873 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12874 | compiler_lib_search_dirs_CXX= |
| 12875 | if test -n "${compiler_lib_search_path_CXX}"; then |
| 12876 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` |
| 12877 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12878 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 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 | |
| 12906 | |
| 12907 | |
| 12908 | |
| 12909 | lt_prog_compiler_wl_CXX= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12910 | lt_prog_compiler_pic_CXX= |
| 12911 | lt_prog_compiler_static_CXX= |
| 12912 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 12914 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12915 | |
| 12916 | # C++ specific cases for pic, static, wl, etc. |
| 12917 | if test "$GXX" = yes; then |
| 12918 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12919 | lt_prog_compiler_static_CXX='-static' |
| 12920 | |
| 12921 | case $host_os in |
| 12922 | aix*) |
| 12923 | # All AIX code is PIC. |
| 12924 | if test "$host_cpu" = ia64; then |
| 12925 | # AIX 5 now supports IA64 processor |
| 12926 | lt_prog_compiler_static_CXX='-Bstatic' |
| 12927 | fi |
| 12928 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12929 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12930 | amigaos*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12931 | case $host_cpu in |
| 12932 | powerpc) |
| 12933 | # see comment about AmigaOS4 .so support |
| 12934 | lt_prog_compiler_pic_CXX='-fPIC' |
| 12935 | ;; |
| 12936 | m68k) |
| 12937 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 12938 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 12939 | # like `-m68040'. |
| 12940 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 12941 | ;; |
| 12942 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12943 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12944 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12945 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12946 | # PIC is the default for these OSes. |
| 12947 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12948 | mingw* | cygwin* | os2* | pw32* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12949 | # This hack is so that the source file can tell whether it is being |
| 12950 | # built for inclusion in a dll (and should export symbols for example). |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12951 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 12952 | # (--disable-auto-import) libraries |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12953 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 12954 | ;; |
| 12955 | darwin* | rhapsody*) |
| 12956 | # PIC is the default on this platform |
| 12957 | # Common symbols not allowed in MH_DYLIB files |
| 12958 | lt_prog_compiler_pic_CXX='-fno-common' |
| 12959 | ;; |
| 12960 | *djgpp*) |
| 12961 | # DJGPP does not support shared libraries at all |
| 12962 | lt_prog_compiler_pic_CXX= |
| 12963 | ;; |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12964 | interix[3-9]*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12965 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 12966 | # Instead, we relocate shared libraries at runtime. |
| 12967 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12968 | sysv4*MP*) |
| 12969 | if test -d /usr/nec; then |
| 12970 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 12971 | fi |
| 12972 | ;; |
| 12973 | hpux*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12974 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 12975 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 12976 | # sets the default TLS model and affects inlining. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12977 | case $host_cpu in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12978 | hppa*64*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12979 | ;; |
| 12980 | *) |
| 12981 | lt_prog_compiler_pic_CXX='-fPIC' |
| 12982 | ;; |
| 12983 | esac |
| 12984 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12985 | *qnx* | *nto*) |
| 12986 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 12987 | # it will coredump. |
| 12988 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 12989 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12990 | *) |
| 12991 | lt_prog_compiler_pic_CXX='-fPIC' |
| 12992 | ;; |
| 12993 | esac |
| 12994 | else |
| 12995 | case $host_os in |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12996 | aix[4-9]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12997 | # All AIX code is PIC. |
| 12998 | if test "$host_cpu" = ia64; then |
| 12999 | # AIX 5 now supports IA64 processor |
| 13000 | lt_prog_compiler_static_CXX='-Bstatic' |
| 13001 | else |
| 13002 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 13003 | fi |
| 13004 | ;; |
| 13005 | chorus*) |
| 13006 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13007 | cxch68*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13008 | # Green Hills C++ Compiler |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13009 | # _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] | 13010 | ;; |
| 13011 | esac |
| 13012 | ;; |
| 13013 | dgux*) |
| 13014 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13015 | ec++*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13016 | lt_prog_compiler_pic_CXX='-KPIC' |
| 13017 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13018 | ghcx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13019 | # Green Hills C++ Compiler |
| 13020 | lt_prog_compiler_pic_CXX='-pic' |
| 13021 | ;; |
| 13022 | *) |
| 13023 | ;; |
| 13024 | esac |
| 13025 | ;; |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13026 | freebsd* | dragonfly*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13027 | # FreeBSD uses GNU C++ |
| 13028 | ;; |
| 13029 | hpux9* | hpux10* | hpux11*) |
| 13030 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13031 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13032 | lt_prog_compiler_wl_CXX='-Wl,' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13033 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13034 | if test "$host_cpu" != ia64; then |
| 13035 | lt_prog_compiler_pic_CXX='+Z' |
| 13036 | fi |
| 13037 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13038 | aCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13039 | lt_prog_compiler_wl_CXX='-Wl,' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13040 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 13041 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13042 | hppa*64*|ia64*) |
| 13043 | # +Z the default |
| 13044 | ;; |
| 13045 | *) |
| 13046 | lt_prog_compiler_pic_CXX='+Z' |
| 13047 | ;; |
| 13048 | esac |
| 13049 | ;; |
| 13050 | *) |
| 13051 | ;; |
| 13052 | esac |
| 13053 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13054 | interix*) |
| 13055 | # This is c89, which is MS Visual C++ (no shared libs) |
| 13056 | # Anyone wants to do a port? |
| 13057 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13058 | irix5* | irix6* | nonstopux*) |
| 13059 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13060 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13061 | lt_prog_compiler_wl_CXX='-Wl,' |
| 13062 | lt_prog_compiler_static_CXX='-non_shared' |
| 13063 | # CC pic flag -KPIC is the default. |
| 13064 | ;; |
| 13065 | *) |
| 13066 | ;; |
| 13067 | esac |
| 13068 | ;; |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 13069 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13070 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13071 | KCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13072 | # KAI C++ Compiler |
| 13073 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 13074 | lt_prog_compiler_pic_CXX='-fPIC' |
| 13075 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13076 | ecpc* ) |
| 13077 | # old Intel C++ for x86_64 which still supported -KPIC. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13078 | lt_prog_compiler_wl_CXX='-Wl,' |
| 13079 | lt_prog_compiler_pic_CXX='-KPIC' |
| 13080 | lt_prog_compiler_static_CXX='-static' |
| 13081 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13082 | icpc* ) |
| 13083 | # Intel C++, used to be incompatible with GCC. |
| 13084 | # ICC 10 doesn't accept -KPIC any more. |
| 13085 | lt_prog_compiler_wl_CXX='-Wl,' |
| 13086 | lt_prog_compiler_pic_CXX='-fPIC' |
| 13087 | lt_prog_compiler_static_CXX='-static' |
| 13088 | ;; |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13089 | pgCC* | pgcpp*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13090 | # Portland Group C++ compiler |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13091 | lt_prog_compiler_wl_CXX='-Wl,' |
| 13092 | lt_prog_compiler_pic_CXX='-fpic' |
| 13093 | lt_prog_compiler_static_CXX='-Bstatic' |
| 13094 | ;; |
| 13095 | cxx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13096 | # Compaq C++ |
| 13097 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 13098 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 13099 | lt_prog_compiler_pic_CXX= |
| 13100 | lt_prog_compiler_static_CXX='-non_shared' |
| 13101 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13102 | xlc* | xlC*) |
| 13103 | # IBM XL 8.0 on PPC |
| 13104 | lt_prog_compiler_wl_CXX='-Wl,' |
| 13105 | lt_prog_compiler_pic_CXX='-qpic' |
| 13106 | lt_prog_compiler_static_CXX='-qstaticlink' |
| 13107 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13108 | *) |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13109 | case `$CC -V 2>&1 | sed 5q` in |
| 13110 | *Sun\ C*) |
| 13111 | # Sun C++ 5.9 |
| 13112 | lt_prog_compiler_pic_CXX='-KPIC' |
| 13113 | lt_prog_compiler_static_CXX='-Bstatic' |
| 13114 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 13115 | ;; |
| 13116 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13117 | ;; |
| 13118 | esac |
| 13119 | ;; |
| 13120 | lynxos*) |
| 13121 | ;; |
| 13122 | m88k*) |
| 13123 | ;; |
| 13124 | mvs*) |
| 13125 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13126 | cxx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13127 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 13128 | ;; |
| 13129 | *) |
| 13130 | ;; |
| 13131 | esac |
| 13132 | ;; |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 13133 | netbsd* | netbsdelf*-gnu) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13134 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13135 | *qnx* | *nto*) |
| 13136 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 13137 | # it will coredump. |
| 13138 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 13139 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13140 | osf3* | osf4* | osf5*) |
| 13141 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13142 | KCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13143 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 13144 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13145 | RCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13146 | # Rational C++ 2.4.1 |
| 13147 | lt_prog_compiler_pic_CXX='-pic' |
| 13148 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13149 | cxx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13150 | # Digital/Compaq C++ |
| 13151 | lt_prog_compiler_wl_CXX='-Wl,' |
| 13152 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 13153 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 13154 | lt_prog_compiler_pic_CXX= |
| 13155 | lt_prog_compiler_static_CXX='-non_shared' |
| 13156 | ;; |
| 13157 | *) |
| 13158 | ;; |
| 13159 | esac |
| 13160 | ;; |
| 13161 | psos*) |
| 13162 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13163 | solaris*) |
| 13164 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13165 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13166 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 13167 | lt_prog_compiler_pic_CXX='-KPIC' |
| 13168 | lt_prog_compiler_static_CXX='-Bstatic' |
| 13169 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 13170 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13171 | gcx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13172 | # Green Hills C++ Compiler |
| 13173 | lt_prog_compiler_pic_CXX='-PIC' |
| 13174 | ;; |
| 13175 | *) |
| 13176 | ;; |
| 13177 | esac |
| 13178 | ;; |
| 13179 | sunos4*) |
| 13180 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13181 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13182 | # Sun C++ 4.x |
| 13183 | lt_prog_compiler_pic_CXX='-pic' |
| 13184 | lt_prog_compiler_static_CXX='-Bstatic' |
| 13185 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13186 | lcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13187 | # Lucid |
| 13188 | lt_prog_compiler_pic_CXX='-pic' |
| 13189 | ;; |
| 13190 | *) |
| 13191 | ;; |
| 13192 | esac |
| 13193 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13194 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 13195 | case $cc_basename in |
| 13196 | CC*) |
| 13197 | lt_prog_compiler_wl_CXX='-Wl,' |
| 13198 | lt_prog_compiler_pic_CXX='-KPIC' |
| 13199 | lt_prog_compiler_static_CXX='-Bstatic' |
| 13200 | ;; |
| 13201 | esac |
| 13202 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13203 | tandem*) |
| 13204 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13205 | NCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13206 | # NonStop-UX NCC 3.20 |
| 13207 | lt_prog_compiler_pic_CXX='-KPIC' |
| 13208 | ;; |
| 13209 | *) |
| 13210 | ;; |
| 13211 | esac |
| 13212 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13213 | vxworks*) |
| 13214 | ;; |
| 13215 | *) |
| 13216 | lt_prog_compiler_can_build_shared_CXX=no |
| 13217 | ;; |
| 13218 | esac |
| 13219 | fi |
| 13220 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13221 | case $host_os in |
| 13222 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 13223 | *djgpp*) |
| 13224 | lt_prog_compiler_pic_CXX= |
| 13225 | ;; |
| 13226 | *) |
| 13227 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 13228 | ;; |
| 13229 | esac |
| 13230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 |
| 13231 | $as_echo "$lt_prog_compiler_pic_CXX" >&6; } |
| 13232 | |
| 13233 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13234 | |
| 13235 | # |
| 13236 | # Check to make sure the PIC flag actually works. |
| 13237 | # |
| 13238 | if test -n "$lt_prog_compiler_pic_CXX"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 13240 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } |
| 13241 | if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : |
| 13242 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13243 | else |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13244 | lt_cv_prog_compiler_pic_works_CXX=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13245 | ac_outfile=conftest.$ac_objext |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13246 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13247 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 13248 | # Insert the option either (1) after the last *FLAGS variable, or |
| 13249 | # (2) before a word containing "conftest.", or (3) at the end. |
| 13250 | # Note that $ac_compile itself does not contain backslashes and begins |
| 13251 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 13252 | # The option is referenced via a variable to avoid confusing sed. |
| 13253 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13254 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13255 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 13256 | -e 's:$: $lt_compiler_flag:'` |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 13257 | (eval echo "\"\$as_me:13257: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13258 | (eval "$lt_compile" 2>conftest.err) |
| 13259 | ac_status=$? |
| 13260 | cat conftest.err >&5 |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 13261 | echo "$as_me:13261: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13262 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 13263 | # The compiler can only warn and ignore the option if not recognized |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13264 | # So say no if there are warnings other than the usual output. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13265 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13266 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 13267 | 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] | 13268 | lt_cv_prog_compiler_pic_works_CXX=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13269 | fi |
| 13270 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13271 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13272 | |
| 13273 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 |
| 13275 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13276 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13277 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13278 | case $lt_prog_compiler_pic_CXX in |
| 13279 | "" | " "*) ;; |
| 13280 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 13281 | esac |
| 13282 | else |
| 13283 | lt_prog_compiler_pic_CXX= |
| 13284 | lt_prog_compiler_can_build_shared_CXX=no |
| 13285 | fi |
| 13286 | |
| 13287 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13288 | |
| 13289 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13290 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13291 | # |
| 13292 | # Check to make sure the static flag actually works. |
| 13293 | # |
| 13294 | 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] | 13295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 13296 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| 13297 | if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : |
| 13298 | $as_echo_n "(cached) " >&6 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13299 | else |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13300 | lt_cv_prog_compiler_static_works_CXX=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13301 | save_LDFLAGS="$LDFLAGS" |
| 13302 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13303 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13304 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 13305 | # The linker can only warn and ignore the option if not recognized |
| 13306 | # So say no if there are warnings |
| 13307 | if test -s conftest.err; then |
| 13308 | # Append any errors to the config.log. |
| 13309 | cat conftest.err 1>&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13310 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13311 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 13312 | if diff conftest.exp conftest.er2 >/dev/null; then |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13313 | lt_cv_prog_compiler_static_works_CXX=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13314 | fi |
| 13315 | else |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13316 | lt_cv_prog_compiler_static_works_CXX=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13317 | fi |
| 13318 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13319 | $RM -r conftest* |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13320 | LDFLAGS="$save_LDFLAGS" |
| 13321 | |
| 13322 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 |
| 13324 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13325 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13326 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13327 | : |
| 13328 | else |
| 13329 | lt_prog_compiler_static_CXX= |
| 13330 | fi |
| 13331 | |
| 13332 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13333 | |
| 13334 | |
| 13335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 13336 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 13337 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : |
| 13338 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13339 | else |
| 13340 | lt_cv_prog_compiler_c_o_CXX=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13341 | $RM -r conftest 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13342 | mkdir conftest |
| 13343 | cd conftest |
| 13344 | mkdir out |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13345 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13346 | |
| 13347 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 13348 | # Insert the option either (1) after the last *FLAGS variable, or |
| 13349 | # (2) before a word containing "conftest.", or (3) at the end. |
| 13350 | # Note that $ac_compile itself does not contain backslashes and begins |
| 13351 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 13352 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13353 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13354 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 13355 | -e 's:$: $lt_compiler_flag:'` |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 13356 | (eval echo "\"\$as_me:13356: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13357 | (eval "$lt_compile" 2>out/conftest.err) |
| 13358 | ac_status=$? |
| 13359 | cat out/conftest.err >&5 |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 13360 | echo "$as_me:13360: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13361 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 13362 | then |
| 13363 | # The compiler can only warn and ignore the option if not recognized |
| 13364 | # So say no if there are warnings |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13365 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13366 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 13367 | 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] | 13368 | lt_cv_prog_compiler_c_o_CXX=yes |
| 13369 | fi |
| 13370 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13371 | chmod u+w . 2>&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13372 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13373 | # SGI C++ compiler will create directory out/ii_files/ for |
| 13374 | # template instantiation |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13375 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 13376 | $RM out/* && rmdir out |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13377 | cd .. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13378 | $RM -r conftest |
| 13379 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13380 | |
| 13381 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 13383 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
| 13384 | |
| 13385 | |
| 13386 | |
| 13387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 13388 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 13389 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : |
| 13390 | $as_echo_n "(cached) " >&6 |
| 13391 | else |
| 13392 | lt_cv_prog_compiler_c_o_CXX=no |
| 13393 | $RM -r conftest 2>/dev/null |
| 13394 | mkdir conftest |
| 13395 | cd conftest |
| 13396 | mkdir out |
| 13397 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 13398 | |
| 13399 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 13400 | # Insert the option either (1) after the last *FLAGS variable, or |
| 13401 | # (2) before a word containing "conftest.", or (3) at the end. |
| 13402 | # Note that $ac_compile itself does not contain backslashes and begins |
| 13403 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 13404 | lt_compile=`echo "$ac_compile" | $SED \ |
| 13405 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 13406 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 13407 | -e 's:$: $lt_compiler_flag:'` |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 13408 | (eval echo "\"\$as_me:13408: $lt_compile\"" >&5) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13409 | (eval "$lt_compile" 2>out/conftest.err) |
| 13410 | ac_status=$? |
| 13411 | cat out/conftest.err >&5 |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 13412 | echo "$as_me:13412: \$? = $ac_status" >&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13413 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 13414 | then |
| 13415 | # The compiler can only warn and ignore the option if not recognized |
| 13416 | # So say no if there are warnings |
| 13417 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 13418 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 13419 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 13420 | lt_cv_prog_compiler_c_o_CXX=yes |
| 13421 | fi |
| 13422 | fi |
| 13423 | chmod u+w . 2>&5 |
| 13424 | $RM conftest* |
| 13425 | # SGI C++ compiler will create directory out/ii_files/ for |
| 13426 | # template instantiation |
| 13427 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 13428 | $RM out/* && rmdir out |
| 13429 | cd .. |
| 13430 | $RM -r conftest |
| 13431 | $RM conftest* |
| 13432 | |
| 13433 | fi |
| 13434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 13435 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
| 13436 | |
| 13437 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13438 | |
| 13439 | |
| 13440 | hard_links="nottested" |
| 13441 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 13442 | # do not overwrite the value of need_locks provided by the user |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| 13444 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13445 | hard_links=yes |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13446 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13447 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 13448 | touch conftest.a |
| 13449 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 13450 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 13452 | $as_echo "$hard_links" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13453 | if test "$hard_links" = no; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13454 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 13455 | $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] | 13456 | need_locks=warn |
| 13457 | fi |
| 13458 | else |
| 13459 | need_locks=no |
| 13460 | fi |
| 13461 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13462 | |
| 13463 | |
| 13464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 13465 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13466 | |
| 13467 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 13468 | case $host_os in |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13469 | aix[4-9]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13470 | # If we're using GNU nm, then we don't want the "-C" option. |
| 13471 | # -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] | 13472 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 13473 | 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] | 13474 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13475 | 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] | 13476 | fi |
| 13477 | ;; |
| 13478 | pw32*) |
| 13479 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 13480 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13481 | cygwin* | mingw* | cegcc*) |
| 13482 | 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' |
| 13483 | ;; |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 13484 | linux* | k*bsd*-gnu) |
| 13485 | link_all_deplibs_CXX=no |
| 13486 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13487 | *) |
| 13488 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 13489 | ;; |
| 13490 | esac |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13491 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13492 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
| 13494 | $as_echo "$ld_shlibs_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13495 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 13496 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13497 | with_gnu_ld_CXX=$with_gnu_ld |
| 13498 | |
| 13499 | |
| 13500 | |
| 13501 | |
| 13502 | |
| 13503 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13504 | # |
| 13505 | # Do we need to explicitly link libc? |
| 13506 | # |
| 13507 | case "x$archive_cmds_need_lc_CXX" in |
| 13508 | x|xyes) |
| 13509 | # Assume -lc should be added |
| 13510 | archive_cmds_need_lc_CXX=yes |
| 13511 | |
| 13512 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 13513 | case $archive_cmds_CXX in |
| 13514 | *'~'*) |
| 13515 | # FIXME: we may have to deal with multi-command sequences. |
| 13516 | ;; |
| 13517 | '$CC '*) |
| 13518 | # Test whether the compiler implicitly links with -lc since on some |
| 13519 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 13520 | # to ld, don't add -lc before -lgcc. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
| 13522 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
| 13523 | $RM conftest* |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13524 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13525 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13526 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13527 | (eval $ac_compile) 2>&5 |
| 13528 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13529 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 13530 | test $ac_status = 0; } 2>conftest.err; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13531 | soname=conftest |
| 13532 | lib=conftest |
| 13533 | libobjs=conftest.$ac_objext |
| 13534 | deplibs= |
| 13535 | wl=$lt_prog_compiler_wl_CXX |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13536 | pic_flag=$lt_prog_compiler_pic_CXX |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13537 | compiler_flags=-v |
| 13538 | linker_flags=-v |
| 13539 | verstring= |
| 13540 | output_objdir=. |
| 13541 | libname=conftest |
| 13542 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 13543 | allow_undefined_flag_CXX= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13544 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
| 13545 | (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] | 13546 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13547 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 13548 | test $ac_status = 0; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13549 | then |
| 13550 | archive_cmds_need_lc_CXX=no |
| 13551 | else |
| 13552 | archive_cmds_need_lc_CXX=yes |
| 13553 | fi |
| 13554 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 13555 | else |
| 13556 | cat conftest.err 1>&5 |
| 13557 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13558 | $RM conftest* |
| 13559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5 |
| 13560 | $as_echo "$archive_cmds_need_lc_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13561 | ;; |
| 13562 | esac |
| 13563 | fi |
| 13564 | ;; |
| 13565 | esac |
| 13566 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 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 | |
| 13627 | |
| 13628 | |
| 13629 | |
| 13630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| 13631 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
| 13632 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13633 | library_names_spec= |
| 13634 | libname_spec='lib$name' |
| 13635 | soname_spec= |
| 13636 | shrext_cmds=".so" |
| 13637 | postinstall_cmds= |
| 13638 | postuninstall_cmds= |
| 13639 | finish_cmds= |
| 13640 | finish_eval= |
| 13641 | shlibpath_var= |
| 13642 | shlibpath_overrides_runpath=unknown |
| 13643 | version_type=none |
| 13644 | dynamic_linker="$host_os ld.so" |
| 13645 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13646 | need_lib_prefix=unknown |
| 13647 | hardcode_into_libs=no |
| 13648 | |
| 13649 | # when you set need_version to no, make sure it does not cause -set_version |
| 13650 | # flags to be left without arguments |
| 13651 | need_version=unknown |
| 13652 | |
| 13653 | case $host_os in |
| 13654 | aix3*) |
| 13655 | version_type=linux |
| 13656 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 13657 | shlibpath_var=LIBPATH |
| 13658 | |
| 13659 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 13660 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13661 | ;; |
| 13662 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13663 | aix[4-9]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13664 | version_type=linux |
| 13665 | need_lib_prefix=no |
| 13666 | need_version=no |
| 13667 | hardcode_into_libs=yes |
| 13668 | if test "$host_cpu" = ia64; then |
| 13669 | # AIX 5 supports IA64 |
| 13670 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 13671 | shlibpath_var=LD_LIBRARY_PATH |
| 13672 | else |
| 13673 | # With GCC up to 2.95.x, collect2 would create an import file |
| 13674 | # for dependence libraries. The import file would start with |
| 13675 | # the line `#! .'. This would cause the generated library to |
| 13676 | # depend on `.', always an invalid library. This was fixed in |
| 13677 | # development snapshots of GCC prior to 3.0. |
| 13678 | case $host_os in |
| 13679 | aix4 | aix4.[01] | aix4.[01].*) |
| 13680 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 13681 | echo ' yes ' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13682 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13683 | : |
| 13684 | else |
| 13685 | can_build_shared=no |
| 13686 | fi |
| 13687 | ;; |
| 13688 | esac |
| 13689 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 13690 | # soname into executable. Probably we can add versioning support to |
| 13691 | # collect2, so additional links can be useful in future. |
| 13692 | if test "$aix_use_runtimelinking" = yes; then |
| 13693 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 13694 | # instead of lib<name>.a to let people know that these are not |
| 13695 | # typical AIX shared libraries. |
| 13696 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13697 | else |
| 13698 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 13699 | # and later when we are not doing run time linking. |
| 13700 | library_names_spec='${libname}${release}.a $libname.a' |
| 13701 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13702 | fi |
| 13703 | shlibpath_var=LIBPATH |
| 13704 | fi |
| 13705 | ;; |
| 13706 | |
| 13707 | amigaos*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13708 | case $host_cpu in |
| 13709 | powerpc) |
| 13710 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 13711 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 13712 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13713 | ;; |
| 13714 | m68k) |
| 13715 | library_names_spec='$libname.ixlibrary $libname.a' |
| 13716 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 13717 | 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' |
| 13718 | ;; |
| 13719 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13720 | ;; |
| 13721 | |
| 13722 | beos*) |
| 13723 | library_names_spec='${libname}${shared_ext}' |
| 13724 | dynamic_linker="$host_os ld.so" |
| 13725 | shlibpath_var=LIBRARY_PATH |
| 13726 | ;; |
| 13727 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13728 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13729 | version_type=linux |
| 13730 | need_version=no |
| 13731 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13732 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13733 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 13734 | shlibpath_var=LD_LIBRARY_PATH |
| 13735 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 13736 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 13737 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 13738 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 13739 | # libtool to hard-code these into programs |
| 13740 | ;; |
| 13741 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13742 | cygwin* | mingw* | pw32* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13743 | version_type=windows |
| 13744 | shrext_cmds=".dll" |
| 13745 | need_version=no |
| 13746 | need_lib_prefix=no |
| 13747 | |
| 13748 | case $GCC,$host_os in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13749 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13750 | library_names_spec='$libname.dll.a' |
| 13751 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 13752 | postinstall_cmds='base_file=`basename \${file}`~ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13753 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13754 | dldir=$destdir/`dirname \$dlpath`~ |
| 13755 | test -d \$dldir || mkdir -p \$dldir~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13756 | $install_prog $dir/$dlname \$dldir/$dlname~ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13757 | chmod a+x \$dldir/$dlname~ |
| 13758 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 13759 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 13760 | fi' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13761 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 13762 | dlpath=$dir/\$dldll~ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13763 | $RM \$dlpath' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13764 | shlibpath_overrides_runpath=yes |
| 13765 | |
| 13766 | case $host_os in |
| 13767 | cygwin*) |
| 13768 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 13769 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 13770 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 13771 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13772 | mingw* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13773 | # MinGW DLLs use traditional 'lib' prefix |
| 13774 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13775 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 13776 | 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] | 13777 | # It is most probably a Windows format PATH printed by |
| 13778 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 13779 | # path with ; separators, and with drive letters. We can handle the |
| 13780 | # drive letters (cygwin fileutils understands them), so leave them, |
| 13781 | # especially as we might pass files found there to a mingw objdump, |
| 13782 | # which wouldn't understand a cygwinified path. Ahh. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13783 | 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] | 13784 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13785 | 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] | 13786 | fi |
| 13787 | ;; |
| 13788 | pw32*) |
| 13789 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13790 | 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] | 13791 | ;; |
| 13792 | esac |
| 13793 | ;; |
| 13794 | |
| 13795 | *) |
| 13796 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 13797 | ;; |
| 13798 | esac |
| 13799 | dynamic_linker='Win32 ld.exe' |
| 13800 | # FIXME: first we should search . and the directory the executable is in |
| 13801 | shlibpath_var=PATH |
| 13802 | ;; |
| 13803 | |
| 13804 | darwin* | rhapsody*) |
| 13805 | dynamic_linker="$host_os dyld" |
| 13806 | version_type=darwin |
| 13807 | need_lib_prefix=no |
| 13808 | need_version=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13809 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13810 | soname_spec='${libname}${release}${major}$shared_ext' |
| 13811 | shlibpath_overrides_runpath=yes |
| 13812 | shlibpath_var=DYLD_LIBRARY_PATH |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13813 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13814 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13815 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 13816 | ;; |
| 13817 | |
| 13818 | dgux*) |
| 13819 | version_type=linux |
| 13820 | need_lib_prefix=no |
| 13821 | need_version=no |
| 13822 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 13823 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13824 | shlibpath_var=LD_LIBRARY_PATH |
| 13825 | ;; |
| 13826 | |
| 13827 | freebsd1*) |
| 13828 | dynamic_linker=no |
| 13829 | ;; |
| 13830 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13831 | freebsd* | dragonfly*) |
| 13832 | # DragonFly does not have aout. When/if they implement a new |
| 13833 | # versioning mechanism, adjust this. |
| 13834 | if test -x /usr/bin/objformat; then |
| 13835 | objformat=`/usr/bin/objformat` |
| 13836 | else |
| 13837 | case $host_os in |
| 13838 | freebsd[123]*) objformat=aout ;; |
| 13839 | *) objformat=elf ;; |
| 13840 | esac |
| 13841 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13842 | version_type=freebsd-$objformat |
| 13843 | case $version_type in |
| 13844 | freebsd-elf*) |
| 13845 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 13846 | need_version=no |
| 13847 | need_lib_prefix=no |
| 13848 | ;; |
| 13849 | freebsd-*) |
| 13850 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 13851 | need_version=yes |
| 13852 | ;; |
| 13853 | esac |
| 13854 | shlibpath_var=LD_LIBRARY_PATH |
| 13855 | case $host_os in |
| 13856 | freebsd2*) |
| 13857 | shlibpath_overrides_runpath=yes |
| 13858 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13859 | freebsd3.[01]* | freebsdelf3.[01]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13860 | shlibpath_overrides_runpath=yes |
| 13861 | hardcode_into_libs=yes |
| 13862 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13863 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 13864 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13865 | shlibpath_overrides_runpath=no |
| 13866 | hardcode_into_libs=yes |
| 13867 | ;; |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13868 | *) # from 4.6 on, and DragonFly |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13869 | shlibpath_overrides_runpath=yes |
| 13870 | hardcode_into_libs=yes |
| 13871 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13872 | esac |
| 13873 | ;; |
| 13874 | |
| 13875 | gnu*) |
| 13876 | version_type=linux |
| 13877 | need_lib_prefix=no |
| 13878 | need_version=no |
| 13879 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 13880 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13881 | shlibpath_var=LD_LIBRARY_PATH |
| 13882 | hardcode_into_libs=yes |
| 13883 | ;; |
| 13884 | |
| 13885 | hpux9* | hpux10* | hpux11*) |
| 13886 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 13887 | # link against other versions. |
| 13888 | version_type=sunos |
| 13889 | need_lib_prefix=no |
| 13890 | need_version=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13891 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13892 | ia64*) |
| 13893 | shrext_cmds='.so' |
| 13894 | hardcode_into_libs=yes |
| 13895 | dynamic_linker="$host_os dld.so" |
| 13896 | shlibpath_var=LD_LIBRARY_PATH |
| 13897 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13898 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13899 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13900 | if test "X$HPUX_IA64_MODE" = X32; then |
| 13901 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 13902 | else |
| 13903 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 13904 | fi |
| 13905 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13906 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13907 | hppa*64*) |
| 13908 | shrext_cmds='.sl' |
| 13909 | hardcode_into_libs=yes |
| 13910 | dynamic_linker="$host_os dld.sl" |
| 13911 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 13912 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13913 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13914 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13915 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 13916 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13917 | ;; |
| 13918 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13919 | shrext_cmds='.sl' |
| 13920 | dynamic_linker="$host_os dld.sl" |
| 13921 | shlibpath_var=SHLIB_PATH |
| 13922 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 13923 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13924 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13925 | ;; |
| 13926 | esac |
| 13927 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 13928 | postinstall_cmds='chmod 555 $lib' |
| 13929 | ;; |
| 13930 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13931 | interix[3-9]*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13932 | version_type=linux |
| 13933 | need_lib_prefix=no |
| 13934 | need_version=no |
| 13935 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 13936 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13937 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 13938 | shlibpath_var=LD_LIBRARY_PATH |
| 13939 | shlibpath_overrides_runpath=no |
| 13940 | hardcode_into_libs=yes |
| 13941 | ;; |
| 13942 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13943 | irix5* | irix6* | nonstopux*) |
| 13944 | case $host_os in |
| 13945 | nonstopux*) version_type=nonstopux ;; |
| 13946 | *) |
| 13947 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 13948 | version_type=linux |
| 13949 | else |
| 13950 | version_type=irix |
| 13951 | fi ;; |
| 13952 | esac |
| 13953 | need_lib_prefix=no |
| 13954 | need_version=no |
| 13955 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13956 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 13957 | case $host_os in |
| 13958 | irix5* | nonstopux*) |
| 13959 | libsuff= shlibsuff= |
| 13960 | ;; |
| 13961 | *) |
| 13962 | case $LD in # libtool.m4 will add one of these switches to LD |
| 13963 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 13964 | libsuff= shlibsuff= libmagic=32-bit;; |
| 13965 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 13966 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 13967 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 13968 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 13969 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 13970 | esac |
| 13971 | ;; |
| 13972 | esac |
| 13973 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 13974 | shlibpath_overrides_runpath=no |
| 13975 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 13976 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 13977 | hardcode_into_libs=yes |
| 13978 | ;; |
| 13979 | |
| 13980 | # No shared lib support for Linux oldld, aout, or coff. |
| 13981 | linux*oldld* | linux*aout* | linux*coff*) |
| 13982 | dynamic_linker=no |
| 13983 | ;; |
| 13984 | |
| 13985 | # This must be Linux ELF. |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 13986 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13987 | version_type=linux |
| 13988 | need_lib_prefix=no |
| 13989 | need_version=no |
| 13990 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13991 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13992 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 13993 | shlibpath_var=LD_LIBRARY_PATH |
| 13994 | shlibpath_overrides_runpath=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13995 | # Some binutils ld are patched to set DT_RUNPATH |
| 13996 | save_LDFLAGS=$LDFLAGS |
| 13997 | save_libdir=$libdir |
| 13998 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ |
| 13999 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" |
| 14000 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14001 | /* end confdefs.h. */ |
| 14002 | |
| 14003 | int |
| 14004 | main () |
| 14005 | { |
| 14006 | |
| 14007 | ; |
| 14008 | return 0; |
| 14009 | } |
| 14010 | _ACEOF |
| 14011 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 14012 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
| 14013 | shlibpath_overrides_runpath=yes |
| 14014 | fi |
| 14015 | fi |
| 14016 | rm -f core conftest.err conftest.$ac_objext \ |
| 14017 | conftest$ac_exeext conftest.$ac_ext |
| 14018 | LDFLAGS=$save_LDFLAGS |
| 14019 | libdir=$save_libdir |
| 14020 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14021 | # This implies no fast_install, which is unacceptable. |
| 14022 | # Some rework will be needed to allow for fast_install |
| 14023 | # before this can be enabled. |
| 14024 | hardcode_into_libs=yes |
| 14025 | |
| 14026 | # Append ld.so.conf contents to the search path |
| 14027 | if test -f /etc/ld.so.conf; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14028 | 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] | 14029 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 14030 | fi |
| 14031 | |
| 14032 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 14033 | # powerpc, because MkLinux only supported shared libraries with the |
| 14034 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 14035 | # most powerpc-linux boxes support dynamic linking these days and |
| 14036 | # people can always --disable-shared, the test was removed, and we |
| 14037 | # assume the GNU/Linux dynamic linker is in use. |
| 14038 | dynamic_linker='GNU/Linux ld.so' |
| 14039 | ;; |
| 14040 | |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 14041 | netbsdelf*-gnu) |
| 14042 | version_type=linux |
| 14043 | need_lib_prefix=no |
| 14044 | need_version=no |
| 14045 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 14046 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14047 | shlibpath_var=LD_LIBRARY_PATH |
| 14048 | shlibpath_overrides_runpath=no |
| 14049 | hardcode_into_libs=yes |
| 14050 | dynamic_linker='NetBSD ld.elf_so' |
| 14051 | ;; |
| 14052 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14053 | netbsd*) |
| 14054 | version_type=sunos |
| 14055 | need_lib_prefix=no |
| 14056 | need_version=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14057 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14058 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 14059 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 14060 | dynamic_linker='NetBSD (a.out) ld.so' |
| 14061 | else |
| 14062 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 14063 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14064 | dynamic_linker='NetBSD ld.elf_so' |
| 14065 | fi |
| 14066 | shlibpath_var=LD_LIBRARY_PATH |
| 14067 | shlibpath_overrides_runpath=yes |
| 14068 | hardcode_into_libs=yes |
| 14069 | ;; |
| 14070 | |
| 14071 | newsos6) |
| 14072 | version_type=linux |
| 14073 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14074 | shlibpath_var=LD_LIBRARY_PATH |
| 14075 | shlibpath_overrides_runpath=yes |
| 14076 | ;; |
| 14077 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14078 | *nto* | *qnx*) |
| 14079 | version_type=qnx |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14080 | need_lib_prefix=no |
| 14081 | need_version=no |
| 14082 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14083 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14084 | shlibpath_var=LD_LIBRARY_PATH |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14085 | shlibpath_overrides_runpath=no |
| 14086 | hardcode_into_libs=yes |
| 14087 | dynamic_linker='ldqnx.so' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14088 | ;; |
| 14089 | |
| 14090 | openbsd*) |
| 14091 | version_type=sunos |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14092 | sys_lib_dlsearch_path_spec="/usr/lib" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14093 | need_lib_prefix=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14094 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 14095 | case $host_os in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14096 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 14097 | *) need_version=no ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14098 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14099 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 14100 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 14101 | shlibpath_var=LD_LIBRARY_PATH |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14102 | 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] | 14103 | case $host_os in |
| 14104 | openbsd2.[89] | openbsd2.[89].*) |
| 14105 | shlibpath_overrides_runpath=no |
| 14106 | ;; |
| 14107 | *) |
| 14108 | shlibpath_overrides_runpath=yes |
| 14109 | ;; |
| 14110 | esac |
| 14111 | else |
| 14112 | shlibpath_overrides_runpath=yes |
| 14113 | fi |
| 14114 | ;; |
| 14115 | |
| 14116 | os2*) |
| 14117 | libname_spec='$name' |
| 14118 | shrext_cmds=".dll" |
| 14119 | need_lib_prefix=no |
| 14120 | library_names_spec='$libname${shared_ext} $libname.a' |
| 14121 | dynamic_linker='OS/2 ld.exe' |
| 14122 | shlibpath_var=LIBPATH |
| 14123 | ;; |
| 14124 | |
| 14125 | osf3* | osf4* | osf5*) |
| 14126 | version_type=osf |
| 14127 | need_lib_prefix=no |
| 14128 | need_version=no |
| 14129 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14130 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14131 | shlibpath_var=LD_LIBRARY_PATH |
| 14132 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 14133 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 14134 | ;; |
| 14135 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 14136 | rdos*) |
| 14137 | dynamic_linker=no |
| 14138 | ;; |
| 14139 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14140 | solaris*) |
| 14141 | version_type=linux |
| 14142 | need_lib_prefix=no |
| 14143 | need_version=no |
| 14144 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14145 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14146 | shlibpath_var=LD_LIBRARY_PATH |
| 14147 | shlibpath_overrides_runpath=yes |
| 14148 | hardcode_into_libs=yes |
| 14149 | # ldd complains unless libraries are executable |
| 14150 | postinstall_cmds='chmod +x $lib' |
| 14151 | ;; |
| 14152 | |
| 14153 | sunos4*) |
| 14154 | version_type=sunos |
| 14155 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 14156 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 14157 | shlibpath_var=LD_LIBRARY_PATH |
| 14158 | shlibpath_overrides_runpath=yes |
| 14159 | if test "$with_gnu_ld" = yes; then |
| 14160 | need_lib_prefix=no |
| 14161 | fi |
| 14162 | need_version=yes |
| 14163 | ;; |
| 14164 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14165 | sysv4 | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14166 | version_type=linux |
| 14167 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14168 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14169 | shlibpath_var=LD_LIBRARY_PATH |
| 14170 | case $host_vendor in |
| 14171 | sni) |
| 14172 | shlibpath_overrides_runpath=no |
| 14173 | need_lib_prefix=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14174 | runpath_var=LD_RUN_PATH |
| 14175 | ;; |
| 14176 | siemens) |
| 14177 | need_lib_prefix=no |
| 14178 | ;; |
| 14179 | motorola) |
| 14180 | need_lib_prefix=no |
| 14181 | need_version=no |
| 14182 | shlibpath_overrides_runpath=no |
| 14183 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 14184 | ;; |
| 14185 | esac |
| 14186 | ;; |
| 14187 | |
| 14188 | sysv4*MP*) |
| 14189 | if test -d /usr/nec ;then |
| 14190 | version_type=linux |
| 14191 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 14192 | soname_spec='$libname${shared_ext}.$major' |
| 14193 | shlibpath_var=LD_LIBRARY_PATH |
| 14194 | fi |
| 14195 | ;; |
| 14196 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14197 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 14198 | version_type=freebsd-elf |
| 14199 | need_lib_prefix=no |
| 14200 | need_version=no |
| 14201 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 14202 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14203 | shlibpath_var=LD_LIBRARY_PATH |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14204 | shlibpath_overrides_runpath=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14205 | hardcode_into_libs=yes |
| 14206 | if test "$with_gnu_ld" = yes; then |
| 14207 | 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] | 14208 | else |
| 14209 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14210 | case $host_os in |
| 14211 | sco3.2v5*) |
| 14212 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 14213 | ;; |
| 14214 | esac |
| 14215 | fi |
| 14216 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 14217 | ;; |
| 14218 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14219 | tpf*) |
| 14220 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 14221 | version_type=linux |
| 14222 | need_lib_prefix=no |
| 14223 | need_version=no |
| 14224 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14225 | shlibpath_var=LD_LIBRARY_PATH |
| 14226 | shlibpath_overrides_runpath=no |
| 14227 | hardcode_into_libs=yes |
| 14228 | ;; |
| 14229 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14230 | uts4*) |
| 14231 | version_type=linux |
| 14232 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14233 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14234 | shlibpath_var=LD_LIBRARY_PATH |
| 14235 | ;; |
| 14236 | |
| 14237 | *) |
| 14238 | dynamic_linker=no |
| 14239 | ;; |
| 14240 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| 14242 | $as_echo "$dynamic_linker" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14243 | test "$dynamic_linker" = no && can_build_shared=no |
| 14244 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14245 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 14246 | if test "$GCC" = yes; then |
| 14247 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 14248 | fi |
| 14249 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14250 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 14251 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 14252 | fi |
| 14253 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 14254 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 14255 | fi |
| 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 | |
| 14289 | |
| 14290 | |
| 14291 | |
| 14292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
| 14293 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14294 | hardcode_action_CXX= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14295 | if test -n "$hardcode_libdir_flag_spec_CXX" || |
| 14296 | test -n "$runpath_var_CXX" || |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14297 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14298 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14299 | # We can hardcode non-existent directories. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14300 | if test "$hardcode_direct_CXX" != no && |
| 14301 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 14302 | # have to relink, otherwise we might link with an installed library |
| 14303 | # when we should be linking with a yet-to-be-installed one |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14304 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14305 | test "$hardcode_minus_L_CXX" != no; then |
| 14306 | # Linking always hardcodes the temporary library directory. |
| 14307 | hardcode_action_CXX=relink |
| 14308 | else |
| 14309 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 14310 | hardcode_action_CXX=immediate |
| 14311 | fi |
| 14312 | else |
| 14313 | # We cannot hardcode anything, or else we can only hardcode existing |
| 14314 | # directories. |
| 14315 | hardcode_action_CXX=unsupported |
| 14316 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 |
| 14318 | $as_echo "$hardcode_action_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14319 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14320 | if test "$hardcode_action_CXX" = relink || |
| 14321 | test "$inherit_rpath_CXX" = yes; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14322 | # Fast installation is not supported |
| 14323 | enable_fast_install=no |
| 14324 | elif test "$shlibpath_overrides_runpath" = yes || |
| 14325 | test "$enable_shared" = no; then |
| 14326 | # Fast installation is not necessary |
| 14327 | enable_fast_install=needless |
| 14328 | fi |
| 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 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14332 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14333 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14334 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14335 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14336 | fi # test -n "$compiler" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14337 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14338 | CC=$lt_save_CC |
| 14339 | LDCXX=$LD |
| 14340 | LD=$lt_save_LD |
| 14341 | GCC=$lt_save_GCC |
| 14342 | with_gnu_ld=$lt_save_with_gnu_ld |
| 14343 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 14344 | lt_cv_path_LD=$lt_save_path_LD |
| 14345 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 14346 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 14347 | fi # test "$_lt_caught_CXX_error" != yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14348 | |
| 14349 | ac_ext=c |
| 14350 | ac_cpp='$CPP $CPPFLAGS' |
| 14351 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14352 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14353 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14354 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14355 | |
| 14356 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14357 | |
| 14358 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14359 | |
| 14360 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14361 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14362 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14363 | |
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 | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 14366 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14367 | ac_config_commands="$ac_config_commands libtool" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14368 | |
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 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14372 | # Only expand once: |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14373 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14374 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14375 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14376 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 14378 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 14379 | if test "${ac_cv_header_stdc+set}" = set; then : |
| 14380 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14381 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14382 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14383 | /* end confdefs.h. */ |
| 14384 | #include <stdlib.h> |
| 14385 | #include <stdarg.h> |
| 14386 | #include <string.h> |
| 14387 | #include <float.h> |
| 14388 | |
| 14389 | int |
| 14390 | main () |
| 14391 | { |
| 14392 | |
| 14393 | ; |
| 14394 | return 0; |
| 14395 | } |
| 14396 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14397 | if ac_fn_c_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14398 | ac_cv_header_stdc=yes |
| 14399 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14400 | ac_cv_header_stdc=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14401 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14402 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14403 | |
| 14404 | if test $ac_cv_header_stdc = yes; then |
| 14405 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14406 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14407 | /* end confdefs.h. */ |
| 14408 | #include <string.h> |
| 14409 | |
| 14410 | _ACEOF |
| 14411 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14412 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 14413 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14414 | else |
| 14415 | ac_cv_header_stdc=no |
| 14416 | fi |
| 14417 | rm -f conftest* |
| 14418 | |
| 14419 | fi |
| 14420 | |
| 14421 | if test $ac_cv_header_stdc = yes; then |
| 14422 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14423 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14424 | /* end confdefs.h. */ |
| 14425 | #include <stdlib.h> |
| 14426 | |
| 14427 | _ACEOF |
| 14428 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14429 | $EGREP "free" >/dev/null 2>&1; then : |
| 14430 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14431 | else |
| 14432 | ac_cv_header_stdc=no |
| 14433 | fi |
| 14434 | rm -f conftest* |
| 14435 | |
| 14436 | fi |
| 14437 | |
| 14438 | if test $ac_cv_header_stdc = yes; then |
| 14439 | # /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] | 14440 | if test "$cross_compiling" = yes; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14441 | : |
| 14442 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14443 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14444 | /* end confdefs.h. */ |
| 14445 | #include <ctype.h> |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14446 | #include <stdlib.h> |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14447 | #if ((' ' & 0x0FF) == 0x020) |
| 14448 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 14449 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 14450 | #else |
| 14451 | # define ISLOWER(c) \ |
| 14452 | (('a' <= (c) && (c) <= 'i') \ |
| 14453 | || ('j' <= (c) && (c) <= 'r') \ |
| 14454 | || ('s' <= (c) && (c) <= 'z')) |
| 14455 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 14456 | #endif |
| 14457 | |
| 14458 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 14459 | int |
| 14460 | main () |
| 14461 | { |
| 14462 | int i; |
| 14463 | for (i = 0; i < 256; i++) |
| 14464 | if (XOR (islower (i), ISLOWER (i)) |
| 14465 | || toupper (i) != TOUPPER (i)) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14466 | return 2; |
| 14467 | return 0; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14468 | } |
| 14469 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14470 | if ac_fn_c_try_run "$LINENO"; then : |
| 14471 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14472 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14473 | ac_cv_header_stdc=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14474 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14475 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14476 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14477 | fi |
| 14478 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14479 | fi |
| 14480 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 14482 | $as_echo "$ac_cv_header_stdc" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14483 | if test $ac_cv_header_stdc = yes; then |
| 14484 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14485 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14486 | |
| 14487 | fi |
| 14488 | |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 14489 | # =========================================================================== |
| 14490 | # http://www.nongnu.org/autoconf-archive/ax_pthread.html |
| 14491 | # =========================================================================== |
| 14492 | # |
| 14493 | # SYNOPSIS |
| 14494 | # |
| 14495 | # AX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) |
| 14496 | # |
| 14497 | # DESCRIPTION |
| 14498 | # |
| 14499 | # This macro figures out how to build C programs using POSIX threads. It |
| 14500 | # sets the PTHREAD_LIBS output variable to the threads library and linker |
| 14501 | # flags, and the PTHREAD_CFLAGS output variable to any special C compiler |
| 14502 | # flags that are needed. (The user can also force certain compiler |
| 14503 | # flags/libs to be tested by setting these environment variables.) |
| 14504 | # |
| 14505 | # Also sets PTHREAD_CC to any special C compiler that is needed for |
| 14506 | # multi-threaded programs (defaults to the value of CC otherwise). (This |
| 14507 | # is necessary on AIX to use the special cc_r compiler alias.) |
| 14508 | # |
| 14509 | # NOTE: You are assumed to not only compile your program with these flags, |
| 14510 | # but also link it with them as well. e.g. you should link with |
| 14511 | # $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS |
| 14512 | # |
| 14513 | # If you are only building threads programs, you may wish to use these |
| 14514 | # variables in your default LIBS, CFLAGS, and CC: |
| 14515 | # |
| 14516 | # LIBS="$PTHREAD_LIBS $LIBS" |
| 14517 | # CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 14518 | # CC="$PTHREAD_CC" |
| 14519 | # |
| 14520 | # In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant |
| 14521 | # has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to that name |
| 14522 | # (e.g. PTHREAD_CREATE_UNDETACHED on AIX). |
| 14523 | # |
| 14524 | # ACTION-IF-FOUND is a list of shell commands to run if a threads library |
| 14525 | # is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it |
| 14526 | # is not found. If ACTION-IF-FOUND is not specified, the default action |
| 14527 | # will define HAVE_PTHREAD. |
| 14528 | # |
| 14529 | # Please let the authors know if this macro fails on any platform, or if |
| 14530 | # you have any other suggestions or comments. This macro was based on work |
| 14531 | # by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help |
| 14532 | # from M. Frigo), as well as ac_pthread and hb_pthread macros posted by |
| 14533 | # Alejandro Forero Cuervo to the autoconf macro repository. We are also |
| 14534 | # grateful for the helpful feedback of numerous users. |
| 14535 | # |
| 14536 | # LICENSE |
| 14537 | # |
| 14538 | # Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu> |
| 14539 | # |
| 14540 | # This program is free software: you can redistribute it and/or modify it |
| 14541 | # under the terms of the GNU General Public License as published by the |
| 14542 | # Free Software Foundation, either version 3 of the License, or (at your |
| 14543 | # option) any later version. |
| 14544 | # |
| 14545 | # This program is distributed in the hope that it will be useful, but |
| 14546 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14547 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General |
| 14548 | # Public License for more details. |
| 14549 | # |
| 14550 | # You should have received a copy of the GNU General Public License along |
| 14551 | # with this program. If not, see <http://www.gnu.org/licenses/>. |
| 14552 | # |
| 14553 | # As a special exception, the respective Autoconf Macro's copyright owner |
| 14554 | # gives unlimited permission to copy, distribute and modify the configure |
| 14555 | # scripts that are the output of Autoconf when processing the Macro. You |
| 14556 | # need not follow the terms of the GNU General Public License when using |
| 14557 | # or distributing such scripts, even though portions of the text of the |
| 14558 | # Macro appear in them. The GNU General Public License (GPL) does govern |
| 14559 | # all other use of the material that constitutes the Autoconf Macro. |
| 14560 | # |
| 14561 | # This special exception to the GPL applies to versions of the Autoconf |
| 14562 | # Macro released by the Autoconf Archive. When you make and distribute a |
| 14563 | # modified version of the Autoconf Macro, you may extend this special |
| 14564 | # exception to the GPL to apply to your modified version as well. |
| 14565 | |
| 14566 | #serial 6 |
| 14567 | |
| 14568 | # This is what autoupdate's m4 run will expand. It fires |
| 14569 | # the warning (with _au_warn_XXX), outputs it into the |
| 14570 | # updated configure.ac (with AC_DIAGNOSE), and then outputs |
| 14571 | # the replacement expansion. |
| 14572 | |
| 14573 | |
| 14574 | # This is an auxiliary macro that is also run when |
| 14575 | # autoupdate runs m4. It simply calls m4_warning, but |
| 14576 | # we need a wrapper so that each warning is emitted only |
| 14577 | # once. We break the quoting in m4_warning's argument in |
| 14578 | # order to expand this macro's arguments, not AU_DEFUN's. |
| 14579 | |
| 14580 | |
| 14581 | # Finally, this is the expansion that is picked up by |
| 14582 | # autoconf. It tells the user to run autoupdate, and |
| 14583 | # then outputs the replacement expansion. We do not care |
| 14584 | # about autoupdate's warning because that contains |
| 14585 | # information on what to do *after* running autoupdate. |
| 14586 | |
| 14587 | |
| 14588 | |
| 14589 | |
| 14590 | ac_ext=c |
| 14591 | ac_cpp='$CPP $CPPFLAGS' |
| 14592 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14593 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14594 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14595 | |
| 14596 | ax_pthread_ok=no |
| 14597 | |
| 14598 | # We used to check for pthread.h first, but this fails if pthread.h |
| 14599 | # requires special compiler flags (e.g. on True64 or Sequent). |
| 14600 | # It gets checked for in the link test anyway. |
| 14601 | |
| 14602 | # First of all, check if the user has set any of the PTHREAD_LIBS, |
| 14603 | # etcetera environment variables, and if threads linking works using |
| 14604 | # them: |
| 14605 | if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then |
| 14606 | save_CFLAGS="$CFLAGS" |
| 14607 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 14608 | save_LIBS="$LIBS" |
| 14609 | LIBS="$PTHREAD_LIBS $LIBS" |
| 14610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 |
| 14611 | $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } |
| 14612 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14613 | /* end confdefs.h. */ |
| 14614 | |
| 14615 | /* Override any GCC internal prototype to avoid an error. |
| 14616 | Use char because int might match the return type of a GCC |
| 14617 | builtin and then its argument prototype would still apply. */ |
| 14618 | #ifdef __cplusplus |
| 14619 | extern "C" |
| 14620 | #endif |
| 14621 | char pthread_join (); |
| 14622 | int |
| 14623 | main () |
| 14624 | { |
| 14625 | return pthread_join (); |
| 14626 | ; |
| 14627 | return 0; |
| 14628 | } |
| 14629 | _ACEOF |
| 14630 | if ac_fn_c_try_link "$LINENO"; then : |
| 14631 | ax_pthread_ok=yes |
| 14632 | fi |
| 14633 | rm -f core conftest.err conftest.$ac_objext \ |
| 14634 | conftest$ac_exeext conftest.$ac_ext |
| 14635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 |
| 14636 | $as_echo "$ax_pthread_ok" >&6; } |
| 14637 | if test x"$ax_pthread_ok" = xno; then |
| 14638 | PTHREAD_LIBS="" |
| 14639 | PTHREAD_CFLAGS="" |
| 14640 | fi |
| 14641 | LIBS="$save_LIBS" |
| 14642 | CFLAGS="$save_CFLAGS" |
| 14643 | fi |
| 14644 | |
| 14645 | # We must check for the threads library under a number of different |
| 14646 | # names; the ordering is very important because some systems |
| 14647 | # (e.g. DEC) have both -lpthread and -lpthreads, where one of the |
| 14648 | # libraries is broken (non-POSIX). |
| 14649 | |
| 14650 | # Create a list of thread flags to try. Items starting with a "-" are |
| 14651 | # C compiler flags, and other items are library names, except for "none" |
| 14652 | # which indicates that we try without any flags at all, and "pthread-config" |
| 14653 | # which is a program returning the flags for the Pth emulation library. |
| 14654 | |
| 14655 | ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" |
| 14656 | |
| 14657 | # The ordering *is* (sometimes) important. Some notes on the |
| 14658 | # individual items follow: |
| 14659 | |
| 14660 | # pthreads: AIX (must check this before -lpthread) |
| 14661 | # none: in case threads are in libc; should be tried before -Kthread and |
| 14662 | # other compiler flags to prevent continual compiler warnings |
| 14663 | # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) |
| 14664 | # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) |
| 14665 | # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) |
| 14666 | # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) |
| 14667 | # -pthreads: Solaris/gcc |
| 14668 | # -mthreads: Mingw32/gcc, Lynx/gcc |
| 14669 | # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it |
| 14670 | # doesn't hurt to check since this sometimes defines pthreads too; |
| 14671 | # also defines -D_REENTRANT) |
| 14672 | # ... -mt is also the pthreads flag for HP/aCC |
| 14673 | # pthread: Linux, etcetera |
| 14674 | # --thread-safe: KAI C++ |
| 14675 | # pthread-config: use pthread-config program (for GNU Pth library) |
| 14676 | |
| 14677 | case "${host_cpu}-${host_os}" in |
| 14678 | *solaris*) |
| 14679 | |
| 14680 | # On Solaris (at least, for some versions), libc contains stubbed |
| 14681 | # (non-functional) versions of the pthreads routines, so link-based |
| 14682 | # tests will erroneously succeed. (We need to link with -pthreads/-mt/ |
| 14683 | # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather |
| 14684 | # a function called by this macro, so we could check for that, but |
| 14685 | # who knows whether they'll stub that too in a future libc.) So, |
| 14686 | # we'll just look for -pthreads and -lpthread first: |
| 14687 | |
| 14688 | ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" |
| 14689 | ;; |
| 14690 | |
| 14691 | *-darwin*) |
| 14692 | acx_pthread_flags="-pthread $acx_pthread_flags" |
| 14693 | ;; |
| 14694 | esac |
| 14695 | |
| 14696 | if test x"$ax_pthread_ok" = xno; then |
| 14697 | for flag in $ax_pthread_flags; do |
| 14698 | |
| 14699 | case $flag in |
| 14700 | none) |
| 14701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 |
| 14702 | $as_echo_n "checking whether pthreads work without any flags... " >&6; } |
| 14703 | ;; |
| 14704 | |
| 14705 | -*) |
| 14706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 |
| 14707 | $as_echo_n "checking whether pthreads work with $flag... " >&6; } |
| 14708 | PTHREAD_CFLAGS="$flag" |
| 14709 | ;; |
| 14710 | |
| 14711 | pthread-config) |
| 14712 | # Extract the first word of "pthread-config", so it can be a program name with args. |
| 14713 | set dummy pthread-config; ac_word=$2 |
| 14714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 14715 | $as_echo_n "checking for $ac_word... " >&6; } |
| 14716 | if test "${ac_cv_prog_ax_pthread_config+set}" = set; then : |
| 14717 | $as_echo_n "(cached) " >&6 |
| 14718 | else |
| 14719 | if test -n "$ax_pthread_config"; then |
| 14720 | ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. |
| 14721 | else |
| 14722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14723 | for as_dir in $PATH |
| 14724 | do |
| 14725 | IFS=$as_save_IFS |
| 14726 | test -z "$as_dir" && as_dir=. |
| 14727 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14728 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 14729 | ac_cv_prog_ax_pthread_config="yes" |
| 14730 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14731 | break 2 |
| 14732 | fi |
| 14733 | done |
| 14734 | done |
| 14735 | IFS=$as_save_IFS |
| 14736 | |
| 14737 | test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" |
| 14738 | fi |
| 14739 | fi |
| 14740 | ax_pthread_config=$ac_cv_prog_ax_pthread_config |
| 14741 | if test -n "$ax_pthread_config"; then |
| 14742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 |
| 14743 | $as_echo "$ax_pthread_config" >&6; } |
| 14744 | else |
| 14745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14746 | $as_echo "no" >&6; } |
| 14747 | fi |
| 14748 | |
| 14749 | |
| 14750 | if test x"$ax_pthread_config" = xno; then continue; fi |
| 14751 | PTHREAD_CFLAGS="`pthread-config --cflags`" |
| 14752 | PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" |
| 14753 | ;; |
| 14754 | |
| 14755 | *) |
| 14756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 |
| 14757 | $as_echo_n "checking for the pthreads library -l$flag... " >&6; } |
| 14758 | PTHREAD_LIBS="-l$flag" |
| 14759 | ;; |
| 14760 | esac |
| 14761 | |
| 14762 | save_LIBS="$LIBS" |
| 14763 | save_CFLAGS="$CFLAGS" |
| 14764 | LIBS="$PTHREAD_LIBS $LIBS" |
| 14765 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 14766 | |
| 14767 | # Check for various functions. We must include pthread.h, |
| 14768 | # since some functions may be macros. (On the Sequent, we |
| 14769 | # need a special flag -Kthread to make this header compile.) |
| 14770 | # We check for pthread_join because it is in -lpthread on IRIX |
| 14771 | # while pthread_create is in libc. We check for pthread_attr_init |
| 14772 | # due to DEC craziness with -lpthreads. We check for |
| 14773 | # pthread_cleanup_push because it is one of the few pthread |
| 14774 | # functions on Solaris that doesn't have a non-functional libc stub. |
| 14775 | # We try pthread_create on general principles. |
| 14776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14777 | /* end confdefs.h. */ |
| 14778 | #include <pthread.h> |
| 14779 | static void routine(void* a) {a=0;} |
| 14780 | static void* start_routine(void* a) {return a;} |
| 14781 | int |
| 14782 | main () |
| 14783 | { |
| 14784 | pthread_t th; pthread_attr_t attr; |
| 14785 | pthread_join(th, 0); |
| 14786 | pthread_attr_init(&attr); |
| 14787 | pthread_cleanup_push(routine, 0); |
| 14788 | pthread_create(&th,0,start_routine,0); |
| 14789 | pthread_cleanup_pop(0); |
| 14790 | ; |
| 14791 | return 0; |
| 14792 | } |
| 14793 | _ACEOF |
| 14794 | if ac_fn_c_try_link "$LINENO"; then : |
| 14795 | ax_pthread_ok=yes |
| 14796 | fi |
| 14797 | rm -f core conftest.err conftest.$ac_objext \ |
| 14798 | conftest$ac_exeext conftest.$ac_ext |
| 14799 | |
| 14800 | LIBS="$save_LIBS" |
| 14801 | CFLAGS="$save_CFLAGS" |
| 14802 | |
| 14803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 |
| 14804 | $as_echo "$ax_pthread_ok" >&6; } |
| 14805 | if test "x$ax_pthread_ok" = xyes; then |
| 14806 | break; |
| 14807 | fi |
| 14808 | |
| 14809 | PTHREAD_LIBS="" |
| 14810 | PTHREAD_CFLAGS="" |
| 14811 | done |
| 14812 | fi |
| 14813 | |
| 14814 | # Various other checks: |
| 14815 | if test "x$ax_pthread_ok" = xyes; then |
| 14816 | save_LIBS="$LIBS" |
| 14817 | LIBS="$PTHREAD_LIBS $LIBS" |
| 14818 | save_CFLAGS="$CFLAGS" |
| 14819 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 14820 | |
| 14821 | # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. |
| 14822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 |
| 14823 | $as_echo_n "checking for joinable pthread attribute... " >&6; } |
| 14824 | attr_name=unknown |
| 14825 | for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do |
| 14826 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14827 | /* end confdefs.h. */ |
| 14828 | #include <pthread.h> |
| 14829 | int |
| 14830 | main () |
| 14831 | { |
| 14832 | int attr=$attr; return attr; |
| 14833 | ; |
| 14834 | return 0; |
| 14835 | } |
| 14836 | _ACEOF |
| 14837 | if ac_fn_c_try_link "$LINENO"; then : |
| 14838 | attr_name=$attr; break |
| 14839 | fi |
| 14840 | rm -f core conftest.err conftest.$ac_objext \ |
| 14841 | conftest$ac_exeext conftest.$ac_ext |
| 14842 | done |
| 14843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 |
| 14844 | $as_echo "$attr_name" >&6; } |
| 14845 | if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then |
| 14846 | |
| 14847 | cat >>confdefs.h <<_ACEOF |
| 14848 | #define PTHREAD_CREATE_JOINABLE $attr_name |
| 14849 | _ACEOF |
| 14850 | |
| 14851 | fi |
| 14852 | |
| 14853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 |
| 14854 | $as_echo_n "checking if more special flags are required for pthreads... " >&6; } |
| 14855 | flag=no |
| 14856 | case "${host_cpu}-${host_os}" in |
| 14857 | *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; |
| 14858 | *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; |
| 14859 | esac |
| 14860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 |
| 14861 | $as_echo "${flag}" >&6; } |
| 14862 | if test "x$flag" != xno; then |
| 14863 | PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" |
| 14864 | fi |
| 14865 | |
| 14866 | LIBS="$save_LIBS" |
| 14867 | CFLAGS="$save_CFLAGS" |
| 14868 | |
| 14869 | # More AIX lossage: must compile with xlc_r or cc_r |
| 14870 | if test x"$GCC" != xyes; then |
| 14871 | for ac_prog in xlc_r cc_r |
| 14872 | do |
| 14873 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 14874 | set dummy $ac_prog; ac_word=$2 |
| 14875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 14876 | $as_echo_n "checking for $ac_word... " >&6; } |
| 14877 | if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then : |
| 14878 | $as_echo_n "(cached) " >&6 |
| 14879 | else |
| 14880 | if test -n "$PTHREAD_CC"; then |
| 14881 | ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. |
| 14882 | else |
| 14883 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14884 | for as_dir in $PATH |
| 14885 | do |
| 14886 | IFS=$as_save_IFS |
| 14887 | test -z "$as_dir" && as_dir=. |
| 14888 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14889 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 14890 | ac_cv_prog_PTHREAD_CC="$ac_prog" |
| 14891 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14892 | break 2 |
| 14893 | fi |
| 14894 | done |
| 14895 | done |
| 14896 | IFS=$as_save_IFS |
| 14897 | |
| 14898 | fi |
| 14899 | fi |
| 14900 | PTHREAD_CC=$ac_cv_prog_PTHREAD_CC |
| 14901 | if test -n "$PTHREAD_CC"; then |
| 14902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 |
| 14903 | $as_echo "$PTHREAD_CC" >&6; } |
| 14904 | else |
| 14905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14906 | $as_echo "no" >&6; } |
| 14907 | fi |
| 14908 | |
| 14909 | |
| 14910 | test -n "$PTHREAD_CC" && break |
| 14911 | done |
| 14912 | test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" |
| 14913 | |
| 14914 | else |
| 14915 | PTHREAD_CC=$CC |
| 14916 | fi |
| 14917 | else |
| 14918 | PTHREAD_CC="$CC" |
| 14919 | fi |
| 14920 | |
| 14921 | |
| 14922 | |
| 14923 | |
| 14924 | |
| 14925 | # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
| 14926 | if test x"$ax_pthread_ok" = xyes; then |
| 14927 | |
| 14928 | $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h |
| 14929 | |
| 14930 | : |
| 14931 | else |
| 14932 | ax_pthread_ok=no |
| 14933 | |
| 14934 | fi |
| 14935 | ac_ext=c |
| 14936 | ac_cpp='$CPP $CPPFLAGS' |
| 14937 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14938 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14939 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14940 | |
| 14941 | |
| 14942 | |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 14943 | # Only build Linux client libs when compiling for Linux |
| 14944 | case $host in |
| 14945 | *-*-linux*) |
| 14946 | LINUX_HOST=true |
| 14947 | ;; |
| 14948 | esac |
| 14949 | if test x$LINUX_HOST = xtrue; then |
| 14950 | LINUX_HOST_TRUE= |
| 14951 | LINUX_HOST_FALSE='#' |
| 14952 | else |
| 14953 | LINUX_HOST_TRUE='#' |
| 14954 | LINUX_HOST_FALSE= |
| 14955 | fi |
| 14956 | |
| 14957 | |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 14958 | # Check whether --enable-m32 was given. |
| 14959 | if test "${enable_m32+set}" = set; then : |
| 14960 | enableval=$enable_m32; case "${enableval}" in |
| 14961 | yes) |
ted.mielczarek | efa30c1 | 2010-09-17 13:36:11 +0000 | [diff] [blame] | 14962 | CFLAGS="${CFLAGS} -m32" |
| 14963 | CXXFLAGS="${CXXFLAGS} -m32" |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 14964 | usem32=true |
| 14965 | ;; |
| 14966 | no) |
| 14967 | usem32=false |
| 14968 | ;; |
| 14969 | *) |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 14970 | as_fn_error "bad value ${enableval} for --enable-m32" "$LINENO" 5 |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 14971 | ;; |
| 14972 | esac |
| 14973 | else |
| 14974 | usem32=false |
| 14975 | fi |
| 14976 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14977 | |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 14978 | # Check whether --enable-processor was given. |
| 14979 | if test "${enable_processor+set}" = set; then : |
| 14980 | enableval=$enable_processor; case "${enableval}" in |
| 14981 | yes) |
| 14982 | disable_processor=false |
| 14983 | ;; |
| 14984 | no) |
| 14985 | disable_processor=true |
| 14986 | ;; |
| 14987 | *) |
| 14988 | as_fn_error "bad value ${enableval} for --disable-processor" "$LINENO" 5 |
| 14989 | ;; |
| 14990 | esac |
| 14991 | else |
| 14992 | disable_processor=false |
| 14993 | fi |
| 14994 | |
| 14995 | if test x$disable_processor = xtrue; then |
| 14996 | DISABLE_PROCESSOR_TRUE= |
| 14997 | DISABLE_PROCESSOR_FALSE='#' |
| 14998 | else |
| 14999 | DISABLE_PROCESSOR_TRUE='#' |
| 15000 | DISABLE_PROCESSOR_FALSE= |
| 15001 | fi |
| 15002 | |
| 15003 | |
| 15004 | if test x$LINUX_HOST = xfalse -a x$disable_processor = xtrue; then |
| 15005 | as_fn_error "--disable-processor was specified, and not building for Linux. Nothing to build!" "$LINENO" 5 |
| 15006 | fi |
| 15007 | |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 15008 | ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h> |
| 15009 | " |
| 15010 | if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then : |
| 15011 | |
| 15012 | $as_echo "#define GET_SA_LEN(X) (((struct sockaddr*)&(X))->sa_len)" >>confdefs.h |
| 15013 | |
| 15014 | else |
| 15015 | |
| 15016 | $as_echo "#define GET_SA_LEN(X) (((struct sockaddr*)&(X))->sa_family == AF_INET ? sizeof(struct sockaddr_in) : \\ |
| 15017 | ((struct sockaddr*)&(X))->sa_family == AF_INET6 ? sizeof(struct sockaddr_in6) : sizeof(struct sockaddr))" >>confdefs.h |
| 15018 | |
| 15019 | fi |
| 15020 | |
| 15021 | |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 15022 | # Check whether --enable-selftest was given. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15023 | if test "${enable_selftest+set}" = set; then : |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 15024 | enableval=$enable_selftest; case "${enableval}" in |
| 15025 | yes) |
| 15026 | selftest=true |
| 15027 | ;; |
| 15028 | no) |
| 15029 | selftest=false |
| 15030 | ;; |
| 15031 | *) |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 15032 | as_fn_error "bad value ${enableval} for --enable-selftest" "$LINENO" 5 |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 15033 | ;; |
| 15034 | esac |
| 15035 | else |
| 15036 | selftest=false |
| 15037 | fi |
| 15038 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 15039 | if test x$selftest = xtrue; then |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 15040 | SELFTEST_TRUE= |
| 15041 | SELFTEST_FALSE='#' |
| 15042 | else |
| 15043 | SELFTEST_TRUE='#' |
| 15044 | SELFTEST_FALSE= |
| 15045 | fi |
| 15046 | |
| 15047 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15048 | ac_config_files="$ac_config_files Makefile" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15049 | |
| 15050 | cat >confcache <<\_ACEOF |
| 15051 | # This file is a shell script that caches the results of configure |
| 15052 | # tests run on this system so they can be shared between configure |
| 15053 | # scripts and configure runs, see configure's option --config-cache. |
| 15054 | # It is not useful on other systems. If it contains results you don't |
| 15055 | # want to keep, you may remove or edit it. |
| 15056 | # |
| 15057 | # config.status only pays attention to the cache file if you give it |
| 15058 | # the --recheck option to rerun configure. |
| 15059 | # |
| 15060 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 15061 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 15062 | # following values. |
| 15063 | |
| 15064 | _ACEOF |
| 15065 | |
| 15066 | # The following way of writing the cache mishandles newlines in values, |
| 15067 | # but we know of no workaround that is simple, portable, and efficient. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15068 | # So, we kill variables containing newlines. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15069 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 15070 | # 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] | 15071 | ( |
| 15072 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 15073 | eval ac_val=\$$ac_var |
| 15074 | case $ac_val in #( |
| 15075 | *${as_nl}*) |
| 15076 | case $ac_var in #( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15077 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 15078 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15079 | esac |
| 15080 | case $ac_var in #( |
| 15081 | _ | IFS | as_nl) ;; #( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15082 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 15083 | *) { eval $ac_var=; unset $ac_var;} ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15084 | esac ;; |
| 15085 | esac |
| 15086 | done |
| 15087 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15088 | (set) 2>&1 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15089 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 15090 | *${as_nl}ac_space=\ *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15091 | # `set' does not quote correctly, so add quotes: double-quote |
| 15092 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15093 | sed -n \ |
| 15094 | "s/'/'\\\\''/g; |
| 15095 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15096 | ;; #( |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15097 | *) |
| 15098 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15099 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15100 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15101 | esac | |
| 15102 | sort |
| 15103 | ) | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15104 | sed ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15105 | /^ac_cv_env_/b end |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15106 | t clear |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15107 | :clear |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15108 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 15109 | t end |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15110 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 15111 | :end' >>confcache |
| 15112 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 15113 | if test -w "$cache_file"; then |
| 15114 | test "x$cache_file" != "x/dev/null" && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15115 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 15116 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15117 | cat confcache >$cache_file |
| 15118 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15119 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 15120 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15121 | fi |
| 15122 | fi |
| 15123 | rm -f confcache |
| 15124 | |
| 15125 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 15126 | # Let make expand exec_prefix. |
| 15127 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 15128 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15129 | DEFS=-DHAVE_CONFIG_H |
| 15130 | |
| 15131 | ac_libobjs= |
| 15132 | ac_ltlibobjs= |
| 15133 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 15134 | # 1. Remove the extension, and $U if already installed. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15135 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15136 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15137 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 15138 | # will be set to the directory where LIBOBJS objects are built. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15139 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 15140 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15141 | done |
| 15142 | LIBOBJS=$ac_libobjs |
| 15143 | |
| 15144 | LTLIBOBJS=$ac_ltlibobjs |
| 15145 | |
| 15146 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15147 | if test -n "$EXEEXT"; then |
| 15148 | am__EXEEXT_TRUE= |
| 15149 | am__EXEEXT_FALSE='#' |
| 15150 | else |
| 15151 | am__EXEEXT_TRUE='#' |
| 15152 | am__EXEEXT_FALSE= |
| 15153 | fi |
| 15154 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15155 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 15156 | as_fn_error "conditional \"AMDEP\" was never defined. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15157 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15158 | fi |
| 15159 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 15160 | as_fn_error "conditional \"am__fastdepCC\" was never defined. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15161 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15162 | fi |
| 15163 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 15164 | as_fn_error "conditional \"am__fastdepCXX\" was never defined. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15165 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 15166 | fi |
| 15167 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 15168 | as_fn_error "conditional \"am__fastdepCXX\" was never defined. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15169 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15170 | fi |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 15171 | if test -z "${LINUX_HOST_TRUE}" && test -z "${LINUX_HOST_FALSE}"; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 15172 | as_fn_error "conditional \"LINUX_HOST\" was never defined. |
| 15173 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 15174 | fi |
| 15175 | if test -z "${DISABLE_PROCESSOR_TRUE}" && test -z "${DISABLE_PROCESSOR_FALSE}"; then |
| 15176 | as_fn_error "conditional \"DISABLE_PROCESSOR\" was never defined. |
ted.mielczarek | 53a8b1a | 2010-08-31 15:09:01 +0000 | [diff] [blame] | 15177 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 15178 | fi |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 15179 | if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 15180 | as_fn_error "conditional \"SELFTEST\" was never defined. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15181 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 15182 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15183 | |
| 15184 | : ${CONFIG_STATUS=./config.status} |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15185 | ac_write_fail=0 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15186 | ac_clean_files_save=$ac_clean_files |
| 15187 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15188 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 15189 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 15190 | as_write_fail=0 |
| 15191 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15192 | #! $SHELL |
| 15193 | # Generated by $as_me. |
| 15194 | # Run this file to recreate the current configuration. |
| 15195 | # Compiler output produced by configure, useful for debugging |
| 15196 | # configure, is in config.log if it exists. |
| 15197 | |
| 15198 | debug=false |
| 15199 | ac_cs_recheck=false |
| 15200 | ac_cs_silent=false |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15201 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15202 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 15203 | export SHELL |
| 15204 | _ASEOF |
| 15205 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 15206 | ## -------------------- ## |
| 15207 | ## M4sh Initialization. ## |
| 15208 | ## -------------------- ## |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15209 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 15210 | # Be more Bourne compatible |
| 15211 | DUALCASE=1; export DUALCASE # for MKS sh |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15212 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15213 | emulate sh |
| 15214 | NULLCMD=: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15215 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15216 | # is contrary to our usage. Disable this feature. |
| 15217 | alias -g '${1+"$@"}'='"$@"' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15218 | setopt NO_GLOB_SUBST |
| 15219 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15220 | case `(set -o) 2>/dev/null` in #( |
| 15221 | *posix*) : |
| 15222 | set -o posix ;; #( |
| 15223 | *) : |
| 15224 | ;; |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 15225 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15226 | fi |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 15227 | |
| 15228 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15229 | as_nl=' |
| 15230 | ' |
| 15231 | export as_nl |
| 15232 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 15233 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 15234 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 15235 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 15236 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 15237 | # but without wasting forks for bash or zsh. |
| 15238 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 15239 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 15240 | as_echo='print -r --' |
| 15241 | as_echo_n='print -rn --' |
| 15242 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 15243 | as_echo='printf %s\n' |
| 15244 | as_echo_n='printf %s' |
| 15245 | else |
| 15246 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 15247 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 15248 | as_echo_n='/usr/ucb/echo -n' |
| 15249 | else |
| 15250 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 15251 | as_echo_n_body='eval |
| 15252 | arg=$1; |
| 15253 | case $arg in #( |
| 15254 | *"$as_nl"*) |
| 15255 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 15256 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 15257 | esac; |
| 15258 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 15259 | ' |
| 15260 | export as_echo_n_body |
| 15261 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 15262 | fi |
| 15263 | export as_echo_body |
| 15264 | as_echo='sh -c $as_echo_body as_echo' |
| 15265 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15266 | |
| 15267 | # The user is always right. |
| 15268 | if test "${PATH_SEPARATOR+set}" != set; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15269 | PATH_SEPARATOR=: |
| 15270 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 15271 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 15272 | PATH_SEPARATOR=';' |
| 15273 | } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15274 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15275 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15276 | |
| 15277 | # IFS |
| 15278 | # We need space, tab and new line, in precisely that order. Quoting is |
| 15279 | # there to prevent editors from complaining about space-tab. |
| 15280 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 15281 | # splitting by setting IFS to empty value.) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15282 | IFS=" "" $as_nl" |
| 15283 | |
| 15284 | # 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] | 15285 | case $0 in #(( |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15286 | *[\\/]* ) as_myself=$0 ;; |
| 15287 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15288 | for as_dir in $PATH |
| 15289 | do |
| 15290 | IFS=$as_save_IFS |
| 15291 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15292 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 15293 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15294 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15295 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15296 | ;; |
| 15297 | esac |
| 15298 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 15299 | # in which case we are not to be found in the path. |
| 15300 | if test "x$as_myself" = x; then |
| 15301 | as_myself=$0 |
| 15302 | fi |
| 15303 | if test ! -f "$as_myself"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15304 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 15305 | exit 1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15306 | fi |
| 15307 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15308 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 15309 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 15310 | # suppresses any "Segmentation fault" message there. '((' could |
| 15311 | # trigger a bug in pdksh 5.2.14. |
| 15312 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 15313 | do eval test x\${$as_var+set} = xset \ |
| 15314 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15315 | done |
| 15316 | PS1='$ ' |
| 15317 | PS2='> ' |
| 15318 | PS4='+ ' |
| 15319 | |
| 15320 | # NLS nuisances. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15321 | LC_ALL=C |
| 15322 | export LC_ALL |
| 15323 | LANGUAGE=C |
| 15324 | export LANGUAGE |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15325 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15326 | # CDPATH. |
| 15327 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 15328 | |
| 15329 | |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 15330 | # as_fn_error ERROR [LINENO LOG_FD] |
| 15331 | # --------------------------------- |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15332 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 15333 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 15334 | # script with status $?, using 1 if that was 0. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15335 | as_fn_error () |
| 15336 | { |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 15337 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 15338 | if test "$3"; then |
| 15339 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 15340 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15341 | fi |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 15342 | $as_echo "$as_me: error: $1" >&2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15343 | as_fn_exit $as_status |
| 15344 | } # as_fn_error |
| 15345 | |
| 15346 | |
| 15347 | # as_fn_set_status STATUS |
| 15348 | # ----------------------- |
| 15349 | # Set $? to STATUS, without forking. |
| 15350 | as_fn_set_status () |
| 15351 | { |
| 15352 | return $1 |
| 15353 | } # as_fn_set_status |
| 15354 | |
| 15355 | # as_fn_exit STATUS |
| 15356 | # ----------------- |
| 15357 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 15358 | as_fn_exit () |
| 15359 | { |
| 15360 | set +e |
| 15361 | as_fn_set_status $1 |
| 15362 | exit $1 |
| 15363 | } # as_fn_exit |
| 15364 | |
| 15365 | # as_fn_unset VAR |
| 15366 | # --------------- |
| 15367 | # Portably unset VAR. |
| 15368 | as_fn_unset () |
| 15369 | { |
| 15370 | { eval $1=; unset $1;} |
| 15371 | } |
| 15372 | as_unset=as_fn_unset |
| 15373 | # as_fn_append VAR VALUE |
| 15374 | # ---------------------- |
| 15375 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 15376 | # advantage of any shell optimizations that allow amortized linear growth over |
| 15377 | # repeated appends, instead of the typical quadratic growth present in naive |
| 15378 | # implementations. |
| 15379 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 15380 | eval 'as_fn_append () |
| 15381 | { |
| 15382 | eval $1+=\$2 |
| 15383 | }' |
| 15384 | else |
| 15385 | as_fn_append () |
| 15386 | { |
| 15387 | eval $1=\$$1\$2 |
| 15388 | } |
| 15389 | fi # as_fn_append |
| 15390 | |
| 15391 | # as_fn_arith ARG... |
| 15392 | # ------------------ |
| 15393 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 15394 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 15395 | # must be portable across $(()) and expr. |
| 15396 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 15397 | eval 'as_fn_arith () |
| 15398 | { |
| 15399 | as_val=$(( $* )) |
| 15400 | }' |
| 15401 | else |
| 15402 | as_fn_arith () |
| 15403 | { |
| 15404 | as_val=`expr "$@" || test $? -eq 1` |
| 15405 | } |
| 15406 | fi # as_fn_arith |
| 15407 | |
| 15408 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15409 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 15410 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 15411 | as_expr=expr |
| 15412 | else |
| 15413 | as_expr=false |
| 15414 | fi |
| 15415 | |
| 15416 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 15417 | as_basename=basename |
| 15418 | else |
| 15419 | as_basename=false |
| 15420 | fi |
| 15421 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15422 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 15423 | as_dirname=dirname |
| 15424 | else |
| 15425 | as_dirname=false |
| 15426 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15427 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15428 | as_me=`$as_basename -- "$0" || |
| 15429 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 15430 | X"$0" : 'X\(//\)$' \| \ |
| 15431 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15432 | $as_echo X/"$0" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15433 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 15434 | s//\1/ |
| 15435 | q |
| 15436 | } |
| 15437 | /^X\/\(\/\/\)$/{ |
| 15438 | s//\1/ |
| 15439 | q |
| 15440 | } |
| 15441 | /^X\/\(\/\).*/{ |
| 15442 | s//\1/ |
| 15443 | q |
| 15444 | } |
| 15445 | s/.*/./; q'` |
| 15446 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15447 | # Avoid depending upon Character Ranges. |
| 15448 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 15449 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 15450 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 15451 | as_cr_digits='0123456789' |
| 15452 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15453 | |
| 15454 | ECHO_C= ECHO_N= ECHO_T= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15455 | case `echo -n x` in #((((( |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15456 | -n*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15457 | case `echo 'xy\c'` in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15458 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15459 | xy) ECHO_C='\c';; |
| 15460 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 15461 | ECHO_T=' ';; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15462 | esac;; |
| 15463 | *) |
| 15464 | ECHO_N='-n';; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15465 | esac |
| 15466 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15467 | rm -f conf$$ conf$$.exe conf$$.file |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15468 | if test -d conf$$.dir; then |
| 15469 | rm -f conf$$.dir/conf$$.file |
| 15470 | else |
| 15471 | rm -f conf$$.dir |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15472 | mkdir conf$$.dir 2>/dev/null |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15473 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15474 | if (echo >conf$$.file) 2>/dev/null; then |
| 15475 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 15476 | as_ln_s='ln -s' |
| 15477 | # ... but there are two gotchas: |
| 15478 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 15479 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 15480 | # In both cases, we have to default to `cp -p'. |
| 15481 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 15482 | as_ln_s='cp -p' |
| 15483 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 15484 | as_ln_s=ln |
| 15485 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15486 | as_ln_s='cp -p' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15487 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15488 | else |
| 15489 | as_ln_s='cp -p' |
| 15490 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15491 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 15492 | rmdir conf$$.dir 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15493 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15494 | |
| 15495 | # as_fn_mkdir_p |
| 15496 | # ------------- |
| 15497 | # Create "$as_dir" as a directory, including parents if necessary. |
| 15498 | as_fn_mkdir_p () |
| 15499 | { |
| 15500 | |
| 15501 | case $as_dir in #( |
| 15502 | -*) as_dir=./$as_dir;; |
| 15503 | esac |
| 15504 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 15505 | as_dirs= |
| 15506 | while :; do |
| 15507 | case $as_dir in #( |
| 15508 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 15509 | *) as_qdir=$as_dir;; |
| 15510 | esac |
| 15511 | as_dirs="'$as_qdir' $as_dirs" |
| 15512 | as_dir=`$as_dirname -- "$as_dir" || |
| 15513 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 15514 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 15515 | X"$as_dir" : 'X\(//\)$' \| \ |
| 15516 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 15517 | $as_echo X"$as_dir" | |
| 15518 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 15519 | s//\1/ |
| 15520 | q |
| 15521 | } |
| 15522 | /^X\(\/\/\)[^/].*/{ |
| 15523 | s//\1/ |
| 15524 | q |
| 15525 | } |
| 15526 | /^X\(\/\/\)$/{ |
| 15527 | s//\1/ |
| 15528 | q |
| 15529 | } |
| 15530 | /^X\(\/\).*/{ |
| 15531 | s//\1/ |
| 15532 | q |
| 15533 | } |
| 15534 | s/.*/./; q'` |
| 15535 | test -d "$as_dir" && break |
| 15536 | done |
| 15537 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 15538 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15539 | |
| 15540 | |
| 15541 | } # as_fn_mkdir_p |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15542 | if mkdir -p . 2>/dev/null; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15543 | as_mkdir_p='mkdir -p "$as_dir"' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15544 | else |
| 15545 | test -d ./-p && rmdir ./-p |
| 15546 | as_mkdir_p=false |
| 15547 | fi |
| 15548 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 15549 | if test -x / >/dev/null 2>&1; then |
| 15550 | as_test_x='test -x' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15551 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 15552 | if ls -dL / >/dev/null 2>&1; then |
| 15553 | as_ls_L_option=L |
| 15554 | else |
| 15555 | as_ls_L_option= |
| 15556 | fi |
| 15557 | as_test_x=' |
| 15558 | eval sh -c '\'' |
| 15559 | if test -d "$1"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15560 | test -d "$1/."; |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 15561 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15562 | case $1 in #( |
| 15563 | -*)set "./$1";; |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 15564 | esac; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15565 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 15566 | ???[sx]*):;;*)false;;esac;fi |
| 15567 | '\'' sh |
| 15568 | ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15569 | fi |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 15570 | as_executable_p=$as_test_x |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15571 | |
| 15572 | # Sed expression to map a string onto a valid CPP name. |
| 15573 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 15574 | |
| 15575 | # Sed expression to map a string onto a valid variable name. |
| 15576 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 15577 | |
| 15578 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15579 | exec 6>&1 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15580 | ## ----------------------------------- ## |
| 15581 | ## Main body of $CONFIG_STATUS script. ## |
| 15582 | ## ----------------------------------- ## |
| 15583 | _ASEOF |
| 15584 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15585 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15586 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 15587 | # Save the log message, to keep $0 and so on meaningful, and to |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15588 | # report actual input values of CONFIG_FILES etc. instead of their |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15589 | # values after options handling. |
| 15590 | ac_log=" |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 15591 | This file was extended by breakpad $as_me 0.1, which was |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 15592 | generated by GNU Autoconf 2.65. Invocation command line was |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15593 | |
| 15594 | CONFIG_FILES = $CONFIG_FILES |
| 15595 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 15596 | CONFIG_LINKS = $CONFIG_LINKS |
| 15597 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 15598 | $ $0 $@ |
| 15599 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15600 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 15601 | " |
| 15602 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15603 | _ACEOF |
| 15604 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15605 | case $ac_config_files in *" |
| 15606 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 15607 | esac |
| 15608 | |
| 15609 | case $ac_config_headers in *" |
| 15610 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 15611 | esac |
| 15612 | |
| 15613 | |
| 15614 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15615 | # Files that config.status was made for. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15616 | config_files="$ac_config_files" |
| 15617 | config_headers="$ac_config_headers" |
| 15618 | config_commands="$ac_config_commands" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15619 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15620 | _ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15621 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15622 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15623 | ac_cs_usage="\ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15624 | \`$as_me' instantiates files and other configuration actions |
| 15625 | from templates according to the current configuration. Unless the files |
| 15626 | and actions are specified as TAGs, all are instantiated by default. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15627 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15628 | Usage: $0 [OPTION]... [TAG]... |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15629 | |
| 15630 | -h, --help print this help, then exit |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 15631 | -V, --version print version number and configuration settings, then exit |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 15632 | --config print configuration, then exit |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15633 | -q, --quiet, --silent |
| 15634 | do not print progress messages |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15635 | -d, --debug don't remove temporary files |
| 15636 | --recheck update $as_me by reconfiguring in the same conditions |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15637 | --file=FILE[:TEMPLATE] |
| 15638 | instantiate the configuration file FILE |
| 15639 | --header=FILE[:TEMPLATE] |
| 15640 | instantiate the configuration header FILE |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15641 | |
| 15642 | Configuration files: |
| 15643 | $config_files |
| 15644 | |
| 15645 | Configuration headers: |
| 15646 | $config_headers |
| 15647 | |
| 15648 | Configuration commands: |
| 15649 | $config_commands |
| 15650 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15651 | Report bugs to <opensource@google.com>." |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15652 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15653 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15654 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 15655 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15656 | ac_cs_version="\\ |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 15657 | breakpad config.status 0.1 |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 15658 | configured by $0, generated by GNU Autoconf 2.65, |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 15659 | with options \\"\$ac_cs_config\\" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15660 | |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 15661 | Copyright (C) 2009 Free Software Foundation, Inc. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15662 | This config.status script is free software; the Free Software Foundation |
| 15663 | gives unlimited permission to copy, distribute and modify it." |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15664 | |
| 15665 | ac_pwd='$ac_pwd' |
| 15666 | srcdir='$srcdir' |
| 15667 | INSTALL='$INSTALL' |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 15668 | MKDIR_P='$MKDIR_P' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15669 | AWK='$AWK' |
| 15670 | test -n "\$AWK" || AWK=awk |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15671 | _ACEOF |
| 15672 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15673 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 15674 | # The default lists apply if the user does not specify any file. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15675 | ac_need_defaults=: |
| 15676 | while test $# != 0 |
| 15677 | do |
| 15678 | case $1 in |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 15679 | --*=*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15680 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 15681 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15682 | ac_shift=: |
| 15683 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15684 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15685 | ac_option=$1 |
| 15686 | ac_optarg=$2 |
| 15687 | ac_shift=shift |
| 15688 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15689 | esac |
| 15690 | |
| 15691 | case $ac_option in |
| 15692 | # Handling of the options. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15693 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 15694 | ac_cs_recheck=: ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15695 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15696 | $as_echo "$ac_cs_version"; exit ;; |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 15697 | --config | --confi | --conf | --con | --co | --c ) |
| 15698 | $as_echo "$ac_cs_config"; exit ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15699 | --debug | --debu | --deb | --de | --d | -d ) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15700 | debug=: ;; |
| 15701 | --file | --fil | --fi | --f ) |
| 15702 | $ac_shift |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15703 | case $ac_optarg in |
| 15704 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 15705 | esac |
| 15706 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15707 | ac_need_defaults=false;; |
| 15708 | --header | --heade | --head | --hea ) |
| 15709 | $ac_shift |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15710 | case $ac_optarg in |
| 15711 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 15712 | esac |
| 15713 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15714 | ac_need_defaults=false;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15715 | --he | --h) |
| 15716 | # Conflict between --help and --header |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 15717 | as_fn_error "ambiguous option: \`$1' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15718 | Try \`$0 --help' for more information.";; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15719 | --help | --hel | -h ) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15720 | $as_echo "$ac_cs_usage"; exit ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15721 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 15722 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 15723 | ac_cs_silent=: ;; |
| 15724 | |
| 15725 | # This is an error. |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 15726 | -*) as_fn_error "unrecognized option: \`$1' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15727 | Try \`$0 --help' for more information." ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15728 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15729 | *) as_fn_append ac_config_targets " $1" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15730 | ac_need_defaults=false ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15731 | |
| 15732 | esac |
| 15733 | shift |
| 15734 | done |
| 15735 | |
| 15736 | ac_configure_extra_args= |
| 15737 | |
| 15738 | if $ac_cs_silent; then |
| 15739 | exec 6>/dev/null |
| 15740 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 15741 | fi |
| 15742 | |
| 15743 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15744 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15745 | if \$ac_cs_recheck; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15746 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 15747 | shift |
| 15748 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 15749 | CONFIG_SHELL='$SHELL' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15750 | export CONFIG_SHELL |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15751 | exec "\$@" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15752 | fi |
| 15753 | |
| 15754 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15755 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15756 | exec 5>>config.log |
| 15757 | { |
| 15758 | echo |
| 15759 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 15760 | ## Running $as_me. ## |
| 15761 | _ASBOX |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15762 | $as_echo "$ac_log" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15763 | } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15764 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15765 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15766 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15767 | # |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15768 | # INIT-COMMANDS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15769 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15770 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 15771 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15772 | |
| 15773 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 15774 | # if CDPATH is set. |
| 15775 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 15776 | |
| 15777 | sed_quote_subst='$sed_quote_subst' |
| 15778 | double_quote_subst='$double_quote_subst' |
| 15779 | delay_variable_subst='$delay_variable_subst' |
| 15780 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' |
| 15781 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' |
| 15782 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' |
| 15783 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 15784 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' |
| 15785 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' |
| 15786 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' |
| 15787 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' |
| 15788 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' |
| 15789 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' |
| 15790 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' |
| 15791 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' |
| 15792 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' |
| 15793 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' |
| 15794 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 15795 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 15796 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 15797 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' |
| 15798 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' |
| 15799 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' |
| 15800 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' |
| 15801 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' |
| 15802 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' |
| 15803 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' |
| 15804 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' |
| 15805 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' |
| 15806 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 15807 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15808 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' |
| 15809 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' |
| 15810 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' |
| 15811 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' |
| 15812 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' |
| 15813 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' |
| 15814 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' |
| 15815 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15816 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15817 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15818 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' |
| 15819 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' |
| 15820 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' |
| 15821 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' |
| 15822 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' |
| 15823 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' |
| 15824 | 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"`' |
| 15825 | 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"`' |
| 15826 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' |
| 15827 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' |
| 15828 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' |
| 15829 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' |
| 15830 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 15831 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' |
| 15832 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' |
| 15833 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 15834 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' |
| 15835 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' |
| 15836 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' |
| 15837 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' |
| 15838 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' |
| 15839 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' |
| 15840 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' |
| 15841 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' |
| 15842 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15843 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15844 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' |
| 15845 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' |
| 15846 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15847 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15848 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' |
| 15849 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15850 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15851 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15852 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15853 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15854 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15855 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' |
| 15856 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 15857 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 15858 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15859 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' |
| 15860 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' |
| 15861 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' |
| 15862 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' |
| 15863 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' |
| 15864 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 15865 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' |
| 15866 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' |
| 15867 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' |
| 15868 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' |
| 15869 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' |
| 15870 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15871 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' |
| 15872 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' |
| 15873 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15874 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15875 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' |
| 15876 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' |
| 15877 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' |
| 15878 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' |
| 15879 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 15880 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 15881 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' |
| 15882 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15883 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15884 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15885 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15886 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15887 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15888 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' |
| 15889 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' |
| 15890 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15891 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15892 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' |
| 15893 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' |
| 15894 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' |
| 15895 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 15896 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' |
| 15897 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' |
| 15898 | compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' |
| 15899 | predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' |
| 15900 | postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' |
| 15901 | predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' |
| 15902 | postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' |
| 15903 | compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' |
| 15904 | LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15905 | old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15906 | compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15907 | GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15908 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15909 | lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15910 | lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15911 | lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15912 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15913 | archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15914 | enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15915 | export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15916 | whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15917 | compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15918 | old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15919 | old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15920 | archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15921 | archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15922 | module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15923 | module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15924 | with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15925 | allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15926 | no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15927 | hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15928 | hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15929 | hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15930 | hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15931 | hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15932 | hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15933 | hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15934 | hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15935 | inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15936 | link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15937 | fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15938 | always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15939 | export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15940 | exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15941 | include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15942 | prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15943 | file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15944 | hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15945 | compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15946 | predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15947 | postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15948 | predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15949 | postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15950 | compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15951 | |
| 15952 | LTCC='$LTCC' |
| 15953 | LTCFLAGS='$LTCFLAGS' |
| 15954 | compiler='$compiler_DEFAULT' |
| 15955 | |
| 15956 | # Quote evaled strings. |
| 15957 | for var in SED \ |
| 15958 | GREP \ |
| 15959 | EGREP \ |
| 15960 | FGREP \ |
| 15961 | LD \ |
| 15962 | NM \ |
| 15963 | LN_S \ |
| 15964 | lt_SP2NL \ |
| 15965 | lt_NL2SP \ |
| 15966 | reload_flag \ |
| 15967 | OBJDUMP \ |
| 15968 | deplibs_check_method \ |
| 15969 | file_magic_cmd \ |
| 15970 | AR \ |
| 15971 | AR_FLAGS \ |
| 15972 | STRIP \ |
| 15973 | RANLIB \ |
| 15974 | CC \ |
| 15975 | CFLAGS \ |
| 15976 | compiler \ |
| 15977 | lt_cv_sys_global_symbol_pipe \ |
| 15978 | lt_cv_sys_global_symbol_to_cdecl \ |
| 15979 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 15980 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
| 15981 | SHELL \ |
| 15982 | ECHO \ |
| 15983 | lt_prog_compiler_no_builtin_flag \ |
| 15984 | lt_prog_compiler_wl \ |
| 15985 | lt_prog_compiler_pic \ |
| 15986 | lt_prog_compiler_static \ |
| 15987 | lt_cv_prog_compiler_c_o \ |
| 15988 | need_locks \ |
| 15989 | DSYMUTIL \ |
| 15990 | NMEDIT \ |
| 15991 | LIPO \ |
| 15992 | OTOOL \ |
| 15993 | OTOOL64 \ |
| 15994 | shrext_cmds \ |
| 15995 | export_dynamic_flag_spec \ |
| 15996 | whole_archive_flag_spec \ |
| 15997 | compiler_needs_object \ |
| 15998 | with_gnu_ld \ |
| 15999 | allow_undefined_flag \ |
| 16000 | no_undefined_flag \ |
| 16001 | hardcode_libdir_flag_spec \ |
| 16002 | hardcode_libdir_flag_spec_ld \ |
| 16003 | hardcode_libdir_separator \ |
| 16004 | fix_srcfile_path \ |
| 16005 | exclude_expsyms \ |
| 16006 | include_expsyms \ |
| 16007 | file_list_spec \ |
| 16008 | variables_saved_for_relink \ |
| 16009 | libname_spec \ |
| 16010 | library_names_spec \ |
| 16011 | soname_spec \ |
| 16012 | finish_eval \ |
| 16013 | old_striplib \ |
| 16014 | striplib \ |
| 16015 | compiler_lib_search_dirs \ |
| 16016 | predep_objects \ |
| 16017 | postdep_objects \ |
| 16018 | predeps \ |
| 16019 | postdeps \ |
| 16020 | compiler_lib_search_path \ |
| 16021 | LD_CXX \ |
| 16022 | compiler_CXX \ |
| 16023 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 16024 | lt_prog_compiler_wl_CXX \ |
| 16025 | lt_prog_compiler_pic_CXX \ |
| 16026 | lt_prog_compiler_static_CXX \ |
| 16027 | lt_cv_prog_compiler_c_o_CXX \ |
| 16028 | export_dynamic_flag_spec_CXX \ |
| 16029 | whole_archive_flag_spec_CXX \ |
| 16030 | compiler_needs_object_CXX \ |
| 16031 | with_gnu_ld_CXX \ |
| 16032 | allow_undefined_flag_CXX \ |
| 16033 | no_undefined_flag_CXX \ |
| 16034 | hardcode_libdir_flag_spec_CXX \ |
| 16035 | hardcode_libdir_flag_spec_ld_CXX \ |
| 16036 | hardcode_libdir_separator_CXX \ |
| 16037 | fix_srcfile_path_CXX \ |
| 16038 | exclude_expsyms_CXX \ |
| 16039 | include_expsyms_CXX \ |
| 16040 | file_list_spec_CXX \ |
| 16041 | compiler_lib_search_dirs_CXX \ |
| 16042 | predep_objects_CXX \ |
| 16043 | postdep_objects_CXX \ |
| 16044 | predeps_CXX \ |
| 16045 | postdeps_CXX \ |
| 16046 | compiler_lib_search_path_CXX; do |
| 16047 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
| 16048 | *[\\\\\\\`\\"\\\$]*) |
| 16049 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
| 16050 | ;; |
| 16051 | *) |
| 16052 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 16053 | ;; |
| 16054 | esac |
| 16055 | done |
| 16056 | |
| 16057 | # Double-quote double-evaled strings. |
| 16058 | for var in reload_cmds \ |
| 16059 | old_postinstall_cmds \ |
| 16060 | old_postuninstall_cmds \ |
| 16061 | old_archive_cmds \ |
| 16062 | extract_expsyms_cmds \ |
| 16063 | old_archive_from_new_cmds \ |
| 16064 | old_archive_from_expsyms_cmds \ |
| 16065 | archive_cmds \ |
| 16066 | archive_expsym_cmds \ |
| 16067 | module_cmds \ |
| 16068 | module_expsym_cmds \ |
| 16069 | export_symbols_cmds \ |
| 16070 | prelink_cmds \ |
| 16071 | postinstall_cmds \ |
| 16072 | postuninstall_cmds \ |
| 16073 | finish_cmds \ |
| 16074 | sys_lib_search_path_spec \ |
| 16075 | sys_lib_dlsearch_path_spec \ |
| 16076 | old_archive_cmds_CXX \ |
| 16077 | old_archive_from_new_cmds_CXX \ |
| 16078 | old_archive_from_expsyms_cmds_CXX \ |
| 16079 | archive_cmds_CXX \ |
| 16080 | archive_expsym_cmds_CXX \ |
| 16081 | module_cmds_CXX \ |
| 16082 | module_expsym_cmds_CXX \ |
| 16083 | export_symbols_cmds_CXX \ |
| 16084 | prelink_cmds_CXX; do |
| 16085 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
| 16086 | *[\\\\\\\`\\"\\\$]*) |
| 16087 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
| 16088 | ;; |
| 16089 | *) |
| 16090 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 16091 | ;; |
| 16092 | esac |
| 16093 | done |
| 16094 | |
| 16095 | # Fix-up fallback echo if it was mangled by the above quoting rules. |
| 16096 | case \$lt_ECHO in |
| 16097 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` |
| 16098 | ;; |
| 16099 | esac |
| 16100 | |
| 16101 | ac_aux_dir='$ac_aux_dir' |
| 16102 | xsi_shell='$xsi_shell' |
| 16103 | lt_shell_append='$lt_shell_append' |
| 16104 | |
| 16105 | # See if we are running on zsh, and set the options which allow our |
| 16106 | # commands through without removal of \ escapes INIT. |
| 16107 | if test -n "\${ZSH_VERSION+set}" ; then |
| 16108 | setopt NO_GLOB_SUBST |
| 16109 | fi |
| 16110 | |
| 16111 | |
| 16112 | PACKAGE='$PACKAGE' |
| 16113 | VERSION='$VERSION' |
| 16114 | TIMESTAMP='$TIMESTAMP' |
| 16115 | RM='$RM' |
| 16116 | ofile='$ofile' |
| 16117 | |
| 16118 | |
| 16119 | |
| 16120 | |
| 16121 | |
| 16122 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16123 | _ACEOF |
| 16124 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16125 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16126 | |
| 16127 | # Handling of arguments. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16128 | for ac_config_target in $ac_config_targets |
| 16129 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16130 | case $ac_config_target in |
| 16131 | "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; |
| 16132 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16133 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16134 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 16135 | |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 16136 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16137 | esac |
| 16138 | done |
| 16139 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16140 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16141 | # If the user did not use the arguments to specify the items to instantiate, |
| 16142 | # then the envvar interface is used. Set only those that are not. |
| 16143 | # We use the long form for the default assignment because of an extremely |
| 16144 | # bizarre bug on SunOS 4.1.3. |
| 16145 | if $ac_need_defaults; then |
| 16146 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 16147 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 16148 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 16149 | fi |
| 16150 | |
| 16151 | # Have a temporary directory for convenience. Make it in the build tree |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16152 | # simply because there is no reason against having it here, and in addition, |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16153 | # creating and moving files from /tmp can sometimes cause problems. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16154 | # Hook for its removal unless debugging. |
| 16155 | # Note that there is a small window in which the directory will not be cleaned: |
| 16156 | # after its creation but before its name has been assigned to `$tmp'. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16157 | $debug || |
| 16158 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16159 | tmp= |
| 16160 | trap 'exit_status=$? |
| 16161 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 16162 | ' 0 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16163 | trap 'as_fn_exit 1' 1 2 13 15 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16164 | } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16165 | # Create a (secure) tmp directory for tmp files. |
| 16166 | |
| 16167 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16168 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16169 | test -n "$tmp" && test -d "$tmp" |
| 16170 | } || |
| 16171 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16172 | tmp=./conf$$-$RANDOM |
| 16173 | (umask 077 && mkdir "$tmp") |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 16174 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16175 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16176 | # Set up the scripts for CONFIG_FILES section. |
| 16177 | # No need to generate them if there are no CONFIG_FILES. |
| 16178 | # This happens for instance with `./config.status config.h'. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16179 | if test -n "$CONFIG_FILES"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16180 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16181 | |
| 16182 | ac_cr=`echo X | tr X '\015'` |
| 16183 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 16184 | # But we know of no other shell where ac_cr would be empty at this |
| 16185 | # point, so we can use a bashism as a fallback. |
| 16186 | if test "x$ac_cr" = x; then |
| 16187 | eval ac_cr=\$\'\\r\' |
| 16188 | fi |
| 16189 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 16190 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 16191 | ac_cs_awk_cr='\r' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16192 | else |
| 16193 | ac_cs_awk_cr=$ac_cr |
| 16194 | fi |
| 16195 | |
| 16196 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16197 | _ACEOF |
| 16198 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16199 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16200 | { |
| 16201 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 16202 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 16203 | echo "_ACEOF" |
| 16204 | } >conf$$subs.sh || |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 16205 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 16206 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16207 | ac_delim='%!_!# ' |
| 16208 | for ac_last_try in false false false false false :; do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16209 | . ./conf$$subs.sh || |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 16210 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16211 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16212 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 16213 | if test $ac_delim_n = $ac_delim_num; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16214 | break |
| 16215 | elif $ac_last_try; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 16216 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16217 | else |
| 16218 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16219 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16220 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16221 | rm -f conf$$subs.sh |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16222 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16223 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16224 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16225 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16226 | sed -n ' |
| 16227 | h |
| 16228 | s/^/S["/; s/!.*/"]=/ |
| 16229 | p |
| 16230 | g |
| 16231 | s/^[^!]*!// |
| 16232 | :repl |
| 16233 | t repl |
| 16234 | s/'"$ac_delim"'$// |
| 16235 | t delim |
| 16236 | :nl |
| 16237 | h |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 16238 | s/\(.\{148\}\)..*/\1/ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16239 | t more1 |
| 16240 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 16241 | p |
| 16242 | n |
| 16243 | b repl |
| 16244 | :more1 |
| 16245 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 16246 | p |
| 16247 | g |
| 16248 | s/.\{148\}// |
| 16249 | t nl |
| 16250 | :delim |
| 16251 | h |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 16252 | s/\(.\{148\}\)..*/\1/ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16253 | t more2 |
| 16254 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 16255 | p |
| 16256 | b |
| 16257 | :more2 |
| 16258 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 16259 | p |
| 16260 | g |
| 16261 | s/.\{148\}// |
| 16262 | t delim |
| 16263 | ' <conf$$subs.awk | sed ' |
| 16264 | /^[^""]/{ |
| 16265 | N |
| 16266 | s/\n// |
| 16267 | } |
| 16268 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 16269 | rm -f conf$$subs.awk |
| 16270 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16271 | _ACAWK |
| 16272 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
| 16273 | for (key in S) S_is_set[key] = 1 |
| 16274 | FS = "" |
| 16275 | |
| 16276 | } |
| 16277 | { |
| 16278 | line = $ 0 |
| 16279 | nfields = split(line, field, "@") |
| 16280 | substed = 0 |
| 16281 | len = length(field[1]) |
| 16282 | for (i = 2; i < nfields; i++) { |
| 16283 | key = field[i] |
| 16284 | keylen = length(key) |
| 16285 | if (S_is_set[key]) { |
| 16286 | value = S[key] |
| 16287 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 16288 | len += length(value) + length(field[++i]) |
| 16289 | substed = 1 |
| 16290 | } else |
| 16291 | len += 1 + keylen |
| 16292 | } |
| 16293 | |
| 16294 | print line |
| 16295 | } |
| 16296 | |
| 16297 | _ACAWK |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16298 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16299 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 16300 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 16301 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 16302 | else |
| 16303 | cat |
| 16304 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 16305 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16306 | _ACEOF |
| 16307 | |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 16308 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 16309 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16310 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 16311 | # (actually we leave an empty line to preserve line numbers). |
| 16312 | if test "x$srcdir" = x.; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 16313 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 16314 | s/:*\$(srcdir):*/:/ |
| 16315 | s/:*\${srcdir}:*/:/ |
| 16316 | s/:*@srcdir@:*/:/ |
| 16317 | s/^\([^=]*=[ ]*\):*/\1/ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16318 | s/:*$// |
| 16319 | s/^[^=]*=[ ]*$// |
| 16320 | }' |
| 16321 | fi |
| 16322 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16323 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16324 | fi # test -n "$CONFIG_FILES" |
| 16325 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16326 | # Set up the scripts for CONFIG_HEADERS section. |
| 16327 | # No need to generate them if there are no CONFIG_HEADERS. |
| 16328 | # This happens for instance with `./config.status Makefile'. |
| 16329 | if test -n "$CONFIG_HEADERS"; then |
| 16330 | cat >"$tmp/defines.awk" <<\_ACAWK || |
| 16331 | BEGIN { |
| 16332 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16333 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16334 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 16335 | # here-document in config.status, that substitutes the proper values into |
| 16336 | # config.h.in to produce config.h. |
| 16337 | |
| 16338 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 16339 | # handling of long lines. |
| 16340 | ac_delim='%!_!# ' |
| 16341 | for ac_last_try in false false :; do |
| 16342 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
| 16343 | if test -z "$ac_t"; then |
| 16344 | break |
| 16345 | elif $ac_last_try; then |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 16346 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16347 | else |
| 16348 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 16349 | fi |
| 16350 | done |
| 16351 | |
| 16352 | # For the awk script, D is an array of macro values keyed by name, |
| 16353 | # likewise P contains macro parameters if any. Preserve backslash |
| 16354 | # newline sequences. |
| 16355 | |
| 16356 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 16357 | sed -n ' |
| 16358 | s/.\{148\}/&'"$ac_delim"'/g |
| 16359 | t rset |
| 16360 | :rset |
| 16361 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 16362 | t def |
| 16363 | d |
| 16364 | :def |
| 16365 | s/\\$// |
| 16366 | t bsnl |
| 16367 | s/["\\]/\\&/g |
| 16368 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 16369 | D["\1"]=" \3"/p |
| 16370 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 16371 | d |
| 16372 | :bsnl |
| 16373 | s/["\\]/\\&/g |
| 16374 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 16375 | D["\1"]=" \3\\\\\\n"\\/p |
| 16376 | t cont |
| 16377 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 16378 | t cont |
| 16379 | d |
| 16380 | :cont |
| 16381 | n |
| 16382 | s/.\{148\}/&'"$ac_delim"'/g |
| 16383 | t clear |
| 16384 | :clear |
| 16385 | s/\\$// |
| 16386 | t bsnlc |
| 16387 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 16388 | d |
| 16389 | :bsnlc |
| 16390 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 16391 | b cont |
| 16392 | ' <confdefs.h | sed ' |
| 16393 | s/'"$ac_delim"'/"\\\ |
| 16394 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 16395 | |
| 16396 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16397 | for (key in D) D_is_set[key] = 1 |
| 16398 | FS = "" |
| 16399 | } |
| 16400 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 16401 | line = \$ 0 |
| 16402 | split(line, arg, " ") |
| 16403 | if (arg[1] == "#") { |
| 16404 | defundef = arg[2] |
| 16405 | mac1 = arg[3] |
| 16406 | } else { |
| 16407 | defundef = substr(arg[1], 2) |
| 16408 | mac1 = arg[2] |
| 16409 | } |
| 16410 | split(mac1, mac2, "(") #) |
| 16411 | macro = mac2[1] |
| 16412 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 16413 | if (D_is_set[macro]) { |
| 16414 | # Preserve the white space surrounding the "#". |
| 16415 | print prefix "define", macro P[macro] D[macro] |
| 16416 | next |
| 16417 | } else { |
| 16418 | # Replace #undef with comments. This is necessary, for example, |
| 16419 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 16420 | # on some systems where configure will not decide to define it. |
| 16421 | if (defundef == "undef") { |
| 16422 | print "/*", prefix defundef, macro, "*/" |
| 16423 | next |
| 16424 | } |
| 16425 | } |
| 16426 | } |
| 16427 | { print } |
| 16428 | _ACAWK |
| 16429 | _ACEOF |
| 16430 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 16431 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16432 | fi # test -n "$CONFIG_HEADERS" |
| 16433 | |
| 16434 | |
| 16435 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 16436 | shift |
| 16437 | for ac_tag |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16438 | do |
| 16439 | case $ac_tag in |
| 16440 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 16441 | esac |
| 16442 | case $ac_mode$ac_tag in |
| 16443 | :[FHL]*:*);; |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 16444 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16445 | :[FH]-) ac_tag=-:-;; |
| 16446 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 16447 | esac |
| 16448 | ac_save_IFS=$IFS |
| 16449 | IFS=: |
| 16450 | set x $ac_tag |
| 16451 | IFS=$ac_save_IFS |
| 16452 | shift |
| 16453 | ac_file=$1 |
| 16454 | shift |
| 16455 | |
| 16456 | case $ac_mode in |
| 16457 | :L) ac_source=$1;; |
| 16458 | :[FH]) |
| 16459 | ac_file_inputs= |
| 16460 | for ac_f |
| 16461 | do |
| 16462 | case $ac_f in |
| 16463 | -) ac_f="$tmp/stdin";; |
| 16464 | *) # Look for the file first in the build tree, then in the source tree |
| 16465 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 16466 | # because $ac_f cannot contain `:'. |
| 16467 | test -f "$ac_f" || |
| 16468 | case $ac_f in |
| 16469 | [\\/$]*) false;; |
| 16470 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 16471 | esac || |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 16472 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16473 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16474 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 16475 | as_fn_append ac_file_inputs " '$ac_f'" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16476 | done |
| 16477 | |
| 16478 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16479 | # use $as_me), people would be surprised to read: |
| 16480 | # /* config.h. Generated by config.status. */ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16481 | configure_input='Generated from '` |
| 16482 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 16483 | `' by configure.' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16484 | if test x"$ac_file" != x-; then |
| 16485 | configure_input="$ac_file. $configure_input" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16486 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 16487 | $as_echo "$as_me: creating $ac_file" >&6;} |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16488 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16489 | # Neutralize special characters interpreted by sed in replacement strings. |
| 16490 | case $configure_input in #( |
| 16491 | *\&* | *\|* | *\\* ) |
| 16492 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 16493 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 16494 | *) ac_sed_conf_input=$configure_input;; |
| 16495 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16496 | |
| 16497 | case $ac_tag in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16498 | *:-:* | *:-) cat >"$tmp/stdin" \ |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 16499 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16500 | esac |
| 16501 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16502 | esac |
| 16503 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16504 | ac_dir=`$as_dirname -- "$ac_file" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16505 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16506 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16507 | X"$ac_file" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16508 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16509 | $as_echo X"$ac_file" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16510 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16511 | s//\1/ |
| 16512 | q |
| 16513 | } |
| 16514 | /^X\(\/\/\)[^/].*/{ |
| 16515 | s//\1/ |
| 16516 | q |
| 16517 | } |
| 16518 | /^X\(\/\/\)$/{ |
| 16519 | s//\1/ |
| 16520 | q |
| 16521 | } |
| 16522 | /^X\(\/\).*/{ |
| 16523 | s//\1/ |
| 16524 | q |
| 16525 | } |
| 16526 | s/.*/./; q'` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16527 | as_dir="$ac_dir"; as_fn_mkdir_p |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16528 | ac_builddir=. |
| 16529 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16530 | case "$ac_dir" in |
| 16531 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 16532 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16533 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16534 | # A ".." for each directory in $ac_dir_suffix. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16535 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16536 | case $ac_top_builddir_sub in |
| 16537 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 16538 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 16539 | esac ;; |
| 16540 | esac |
| 16541 | ac_abs_top_builddir=$ac_pwd |
| 16542 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 16543 | # for backward compatibility: |
| 16544 | ac_top_builddir=$ac_top_build_prefix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16545 | |
| 16546 | case $srcdir in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16547 | .) # We are building in place. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16548 | ac_srcdir=. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16549 | ac_top_srcdir=$ac_top_builddir_sub |
| 16550 | ac_abs_top_srcdir=$ac_pwd ;; |
| 16551 | [\\/]* | ?:[\\/]* ) # Absolute name. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16552 | ac_srcdir=$srcdir$ac_dir_suffix; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16553 | ac_top_srcdir=$srcdir |
| 16554 | ac_abs_top_srcdir=$srcdir ;; |
| 16555 | *) # Relative name. |
| 16556 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 16557 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 16558 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16559 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16560 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16561 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16562 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16563 | case $ac_mode in |
| 16564 | :F) |
| 16565 | # |
| 16566 | # CONFIG_FILE |
| 16567 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16568 | |
| 16569 | case $INSTALL in |
| 16570 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16571 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16572 | esac |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 16573 | ac_MKDIR_P=$MKDIR_P |
| 16574 | case $MKDIR_P in |
| 16575 | [\\/$]* | ?:[\\/]* ) ;; |
| 16576 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 16577 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16578 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16579 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16580 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16581 | # If the template does not know about datarootdir, expand it. |
| 16582 | # FIXME: This hack should be removed a few years after 2.60. |
| 16583 | ac_datarootdir_hack=; ac_datarootdir_seen= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16584 | ac_sed_dataroot=' |
| 16585 | /datarootdir/ { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16586 | p |
| 16587 | q |
| 16588 | } |
| 16589 | /@datadir@/p |
| 16590 | /@docdir@/p |
| 16591 | /@infodir@/p |
| 16592 | /@localedir@/p |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16593 | /@mandir@/p' |
| 16594 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16595 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 16596 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16597 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 16598 | $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] | 16599 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16600 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16601 | ac_datarootdir_hack=' |
| 16602 | s&@datadir@&$datadir&g |
| 16603 | s&@docdir@&$docdir&g |
| 16604 | s&@infodir@&$infodir&g |
| 16605 | s&@localedir@&$localedir&g |
| 16606 | s&@mandir@&$mandir&g |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16607 | s&\\\${datarootdir}&$datarootdir&g' ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16608 | esac |
| 16609 | _ACEOF |
| 16610 | |
| 16611 | # Neutralize VPATH when `$srcdir' = `.'. |
| 16612 | # Shell code in configure.ac might set extrasub. |
| 16613 | # FIXME: do we really want to maintain this feature? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16614 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16615 | ac_sed_extra="$ac_vpsub |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16616 | $extrasub |
| 16617 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16618 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16619 | :t |
| 16620 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16621 | s|@configure_input@|$ac_sed_conf_input|;t t |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16622 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16623 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16624 | s&@srcdir@&$ac_srcdir&;t t |
| 16625 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 16626 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 16627 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 16628 | s&@builddir@&$ac_builddir&;t t |
| 16629 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 16630 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 16631 | s&@INSTALL@&$ac_INSTALL&;t t |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 16632 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16633 | $ac_datarootdir_hack |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16634 | " |
| 16635 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 16636 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16637 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16638 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 16639 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 16640 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16641 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 16642 | which seems to be undefined. Please make sure it is defined." >&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16643 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 16644 | which seems to be undefined. Please make sure it is defined." >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16645 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16646 | rm -f "$tmp/stdin" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16647 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16648 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 16649 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 16650 | esac \ |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 16651 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16652 | ;; |
| 16653 | :H) |
| 16654 | # |
| 16655 | # CONFIG_HEADER |
| 16656 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16657 | if test x"$ac_file" != x-; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16658 | { |
| 16659 | $as_echo "/* $configure_input */" \ |
| 16660 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
| 16661 | } >"$tmp/config.h" \ |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 16662 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16663 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
| 16664 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 16665 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16666 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16667 | rm -f "$ac_file" |
| 16668 | mv "$tmp/config.h" "$ac_file" \ |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 16669 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16670 | fi |
| 16671 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16672 | $as_echo "/* $configure_input */" \ |
| 16673 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 16674 | || as_fn_error "could not create -" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16675 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16676 | # Compute "$ac_file"'s index in $config_headers. |
| 16677 | _am_arg="$ac_file" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16678 | _am_stamp_count=1 |
| 16679 | for _am_header in $config_headers :; do |
| 16680 | case $_am_header in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16681 | $_am_arg | $_am_arg:* ) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16682 | break ;; |
| 16683 | * ) |
| 16684 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 16685 | esac |
| 16686 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16687 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 16688 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16689 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 16690 | X"$_am_arg" : 'X\(//\)$' \| \ |
| 16691 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 16692 | $as_echo X"$_am_arg" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16693 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16694 | s//\1/ |
| 16695 | q |
| 16696 | } |
| 16697 | /^X\(\/\/\)[^/].*/{ |
| 16698 | s//\1/ |
| 16699 | q |
| 16700 | } |
| 16701 | /^X\(\/\/\)$/{ |
| 16702 | s//\1/ |
| 16703 | q |
| 16704 | } |
| 16705 | /^X\(\/\).*/{ |
| 16706 | s//\1/ |
| 16707 | q |
| 16708 | } |
| 16709 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 16710 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16711 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16712 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| 16713 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16714 | ;; |
| 16715 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16716 | |
| 16717 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16718 | case $ac_file$ac_mode in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16719 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
| 16720 | # Autoconf 2.62 quotes --file arguments for eval, but not when files |
| 16721 | # are listed without --file. Let's play safe and only enable the eval |
| 16722 | # if we detect the quoting. |
| 16723 | case $CONFIG_FILES in |
| 16724 | *\'*) eval set x "$CONFIG_FILES" ;; |
| 16725 | *) set x $CONFIG_FILES ;; |
| 16726 | esac |
| 16727 | shift |
| 16728 | for mf |
| 16729 | do |
| 16730 | # Strip MF so we end up with the name of the file. |
| 16731 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 16732 | # Check whether this is an Automake generated Makefile or not. |
| 16733 | # We used to match only the files named `Makefile.in', but |
| 16734 | # some people rename them; so instead we look at the file content. |
| 16735 | # Grep'ing the first line is not enough: some people post-process |
| 16736 | # each Makefile.in and add a new line on top of each file to say so. |
| 16737 | # Grep'ing the whole file is not good either: AIX grep has a line |
| 16738 | # limit of 2048, but all sed's we know have understand at least 4000. |
| 16739 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
| 16740 | dirpart=`$as_dirname -- "$mf" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16741 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16742 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 16743 | X"$mf" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16744 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16745 | $as_echo X"$mf" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16746 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16747 | s//\1/ |
| 16748 | q |
| 16749 | } |
| 16750 | /^X\(\/\/\)[^/].*/{ |
| 16751 | s//\1/ |
| 16752 | q |
| 16753 | } |
| 16754 | /^X\(\/\/\)$/{ |
| 16755 | s//\1/ |
| 16756 | q |
| 16757 | } |
| 16758 | /^X\(\/\).*/{ |
| 16759 | s//\1/ |
| 16760 | q |
| 16761 | } |
| 16762 | s/.*/./; q'` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16763 | else |
| 16764 | continue |
| 16765 | fi |
| 16766 | # Extract the definition of DEPDIR, am__include, and am__quote |
| 16767 | # from the Makefile without running `make'. |
| 16768 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 16769 | test -z "$DEPDIR" && continue |
| 16770 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 16771 | test -z "am__include" && continue |
| 16772 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 16773 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 16774 | U=`sed -n 's/^U = //p' < "$mf"` |
| 16775 | # Find all dependency output files, they are included files with |
| 16776 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 16777 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 16778 | # expansion. |
| 16779 | for file in `sed -n " |
| 16780 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 16781 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 16782 | # Make sure the directory exists. |
| 16783 | test -f "$dirpart/$file" && continue |
| 16784 | fdir=`$as_dirname -- "$file" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16785 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16786 | X"$file" : 'X\(//\)[^/]' \| \ |
| 16787 | X"$file" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16788 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16789 | $as_echo X"$file" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16790 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16791 | s//\1/ |
| 16792 | q |
| 16793 | } |
| 16794 | /^X\(\/\/\)[^/].*/{ |
| 16795 | s//\1/ |
| 16796 | q |
| 16797 | } |
| 16798 | /^X\(\/\/\)$/{ |
| 16799 | s//\1/ |
| 16800 | q |
| 16801 | } |
| 16802 | /^X\(\/\).*/{ |
| 16803 | s//\1/ |
| 16804 | q |
| 16805 | } |
| 16806 | s/.*/./; q'` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16807 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
| 16808 | # echo "creating $dirpart/$file" |
| 16809 | echo '# dummy' > "$dirpart/$file" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16810 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16811 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16812 | } |
| 16813 | ;; |
| 16814 | "libtool":C) |
| 16815 | |
| 16816 | # See if we are running on zsh, and set the options which allow our |
| 16817 | # commands through without removal of \ escapes. |
| 16818 | if test -n "${ZSH_VERSION+set}" ; then |
| 16819 | setopt NO_GLOB_SUBST |
| 16820 | fi |
| 16821 | |
| 16822 | cfgfile="${ofile}T" |
| 16823 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 16824 | $RM "$cfgfile" |
| 16825 | |
| 16826 | cat <<_LT_EOF >> "$cfgfile" |
| 16827 | #! $SHELL |
| 16828 | |
| 16829 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 16830 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
| 16831 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 16832 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 16833 | # |
| 16834 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
| 16835 | # 2006, 2007, 2008 Free Software Foundation, Inc. |
| 16836 | # Written by Gordon Matzigkeit, 1996 |
| 16837 | # |
| 16838 | # This file is part of GNU Libtool. |
| 16839 | # |
| 16840 | # GNU Libtool is free software; you can redistribute it and/or |
| 16841 | # modify it under the terms of the GNU General Public License as |
| 16842 | # published by the Free Software Foundation; either version 2 of |
| 16843 | # the License, or (at your option) any later version. |
| 16844 | # |
| 16845 | # As a special exception to the GNU General Public License, |
| 16846 | # if you distribute this file as part of a program or library that |
| 16847 | # is built using GNU Libtool, you may include this file under the |
| 16848 | # same distribution terms that you use for the rest of that program. |
| 16849 | # |
| 16850 | # GNU Libtool is distributed in the hope that it will be useful, |
| 16851 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16852 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16853 | # GNU General Public License for more details. |
| 16854 | # |
| 16855 | # You should have received a copy of the GNU General Public License |
| 16856 | # along with GNU Libtool; see the file COPYING. If not, a copy |
| 16857 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
| 16858 | # obtained by writing to the Free Software Foundation, Inc., |
| 16859 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 16860 | |
| 16861 | |
| 16862 | # The names of the tagged configurations supported by this script. |
| 16863 | available_tags="CXX " |
| 16864 | |
| 16865 | # ### BEGIN LIBTOOL CONFIG |
| 16866 | |
| 16867 | # Which release of libtool.m4 was used? |
| 16868 | macro_version=$macro_version |
| 16869 | macro_revision=$macro_revision |
| 16870 | |
| 16871 | # Whether or not to build shared libraries. |
| 16872 | build_libtool_libs=$enable_shared |
| 16873 | |
| 16874 | # Whether or not to build static libraries. |
| 16875 | build_old_libs=$enable_static |
| 16876 | |
| 16877 | # What type of objects to build. |
| 16878 | pic_mode=$pic_mode |
| 16879 | |
| 16880 | # Whether or not to optimize for fast installation. |
| 16881 | fast_install=$enable_fast_install |
| 16882 | |
| 16883 | # The host system. |
| 16884 | host_alias=$host_alias |
| 16885 | host=$host |
| 16886 | host_os=$host_os |
| 16887 | |
| 16888 | # The build system. |
| 16889 | build_alias=$build_alias |
| 16890 | build=$build |
| 16891 | build_os=$build_os |
| 16892 | |
| 16893 | # A sed program that does not truncate output. |
| 16894 | SED=$lt_SED |
| 16895 | |
| 16896 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 16897 | Xsed="\$SED -e 1s/^X//" |
| 16898 | |
| 16899 | # A grep program that handles long lines. |
| 16900 | GREP=$lt_GREP |
| 16901 | |
| 16902 | # An ERE matcher. |
| 16903 | EGREP=$lt_EGREP |
| 16904 | |
| 16905 | # A literal string matcher. |
| 16906 | FGREP=$lt_FGREP |
| 16907 | |
| 16908 | # A BSD- or MS-compatible name lister. |
| 16909 | NM=$lt_NM |
| 16910 | |
| 16911 | # Whether we need soft or hard links. |
| 16912 | LN_S=$lt_LN_S |
| 16913 | |
| 16914 | # What is the maximum length of a command? |
| 16915 | max_cmd_len=$max_cmd_len |
| 16916 | |
| 16917 | # Object file suffix (normally "o"). |
| 16918 | objext=$ac_objext |
| 16919 | |
| 16920 | # Executable file suffix (normally ""). |
| 16921 | exeext=$exeext |
| 16922 | |
| 16923 | # whether the shell understands "unset". |
| 16924 | lt_unset=$lt_unset |
| 16925 | |
| 16926 | # turn spaces into newlines. |
| 16927 | SP2NL=$lt_lt_SP2NL |
| 16928 | |
| 16929 | # turn newlines into spaces. |
| 16930 | NL2SP=$lt_lt_NL2SP |
| 16931 | |
| 16932 | # How to create reloadable object files. |
| 16933 | reload_flag=$lt_reload_flag |
| 16934 | reload_cmds=$lt_reload_cmds |
| 16935 | |
| 16936 | # An object symbol dumper. |
| 16937 | OBJDUMP=$lt_OBJDUMP |
| 16938 | |
| 16939 | # Method to check whether dependent libraries are shared objects. |
| 16940 | deplibs_check_method=$lt_deplibs_check_method |
| 16941 | |
| 16942 | # Command to use when deplibs_check_method == "file_magic". |
| 16943 | file_magic_cmd=$lt_file_magic_cmd |
| 16944 | |
| 16945 | # The archiver. |
| 16946 | AR=$lt_AR |
| 16947 | AR_FLAGS=$lt_AR_FLAGS |
| 16948 | |
| 16949 | # A symbol stripping program. |
| 16950 | STRIP=$lt_STRIP |
| 16951 | |
| 16952 | # Commands used to install an old-style archive. |
| 16953 | RANLIB=$lt_RANLIB |
| 16954 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 16955 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 16956 | |
| 16957 | # A C compiler. |
| 16958 | LTCC=$lt_CC |
| 16959 | |
| 16960 | # LTCC compiler flags. |
| 16961 | LTCFLAGS=$lt_CFLAGS |
| 16962 | |
| 16963 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 16964 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 16965 | |
| 16966 | # Transform the output of nm in a proper C declaration. |
| 16967 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 16968 | |
| 16969 | # Transform the output of nm in a C name address pair. |
| 16970 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 16971 | |
| 16972 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
| 16973 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
| 16974 | |
| 16975 | # The name of the directory that contains temporary libtool files. |
| 16976 | objdir=$objdir |
| 16977 | |
| 16978 | # Shell to use when invoking shell scripts. |
| 16979 | SHELL=$lt_SHELL |
| 16980 | |
| 16981 | # An echo program that does not interpret backslashes. |
| 16982 | ECHO=$lt_ECHO |
| 16983 | |
| 16984 | # Used to examine libraries when file_magic_cmd begins with "file". |
| 16985 | MAGIC_CMD=$MAGIC_CMD |
| 16986 | |
| 16987 | # Must we lock files when doing compilation? |
| 16988 | need_locks=$lt_need_locks |
| 16989 | |
| 16990 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
| 16991 | DSYMUTIL=$lt_DSYMUTIL |
| 16992 | |
| 16993 | # Tool to change global to local symbols on Mac OS X. |
| 16994 | NMEDIT=$lt_NMEDIT |
| 16995 | |
| 16996 | # Tool to manipulate fat objects and archives on Mac OS X. |
| 16997 | LIPO=$lt_LIPO |
| 16998 | |
| 16999 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
| 17000 | OTOOL=$lt_OTOOL |
| 17001 | |
| 17002 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
| 17003 | OTOOL64=$lt_OTOOL64 |
| 17004 | |
| 17005 | # Old archive suffix (normally "a"). |
| 17006 | libext=$libext |
| 17007 | |
| 17008 | # Shared library suffix (normally ".so"). |
| 17009 | shrext_cmds=$lt_shrext_cmds |
| 17010 | |
| 17011 | # The commands to extract the exported symbol list from a shared archive. |
| 17012 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 17013 | |
| 17014 | # Variables whose values should be saved in libtool wrapper scripts and |
| 17015 | # restored at link time. |
| 17016 | variables_saved_for_relink=$lt_variables_saved_for_relink |
| 17017 | |
| 17018 | # Do we need the "lib" prefix for modules? |
| 17019 | need_lib_prefix=$need_lib_prefix |
| 17020 | |
| 17021 | # Do we need a version for libraries? |
| 17022 | need_version=$need_version |
| 17023 | |
| 17024 | # Library versioning type. |
| 17025 | version_type=$version_type |
| 17026 | |
| 17027 | # Shared library runtime path variable. |
| 17028 | runpath_var=$runpath_var |
| 17029 | |
| 17030 | # Shared library path variable. |
| 17031 | shlibpath_var=$shlibpath_var |
| 17032 | |
| 17033 | # Is shlibpath searched before the hard-coded library search path? |
| 17034 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 17035 | |
| 17036 | # Format of library name prefix. |
| 17037 | libname_spec=$lt_libname_spec |
| 17038 | |
| 17039 | # List of archive names. First name is the real one, the rest are links. |
| 17040 | # The last name is the one that the linker finds with -lNAME |
| 17041 | library_names_spec=$lt_library_names_spec |
| 17042 | |
| 17043 | # The coded name of the library, if different from the real name. |
| 17044 | soname_spec=$lt_soname_spec |
| 17045 | |
| 17046 | # Command to use after installation of a shared archive. |
| 17047 | postinstall_cmds=$lt_postinstall_cmds |
| 17048 | |
| 17049 | # Command to use after uninstallation of a shared archive. |
| 17050 | postuninstall_cmds=$lt_postuninstall_cmds |
| 17051 | |
| 17052 | # Commands used to finish a libtool library installation in a directory. |
| 17053 | finish_cmds=$lt_finish_cmds |
| 17054 | |
| 17055 | # As "finish_cmds", except a single script fragment to be evaled but |
| 17056 | # not shown. |
| 17057 | finish_eval=$lt_finish_eval |
| 17058 | |
| 17059 | # Whether we should hardcode library paths into libraries. |
| 17060 | hardcode_into_libs=$hardcode_into_libs |
| 17061 | |
| 17062 | # Compile-time system search path for libraries. |
| 17063 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 17064 | |
| 17065 | # Run-time system search path for libraries. |
| 17066 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 17067 | |
| 17068 | # Whether dlopen is supported. |
| 17069 | dlopen_support=$enable_dlopen |
| 17070 | |
| 17071 | # Whether dlopen of programs is supported. |
| 17072 | dlopen_self=$enable_dlopen_self |
| 17073 | |
| 17074 | # Whether dlopen of statically linked programs is supported. |
| 17075 | dlopen_self_static=$enable_dlopen_self_static |
| 17076 | |
| 17077 | # Commands to strip libraries. |
| 17078 | old_striplib=$lt_old_striplib |
| 17079 | striplib=$lt_striplib |
| 17080 | |
| 17081 | |
| 17082 | # The linker used to build libraries. |
| 17083 | LD=$lt_LD |
| 17084 | |
| 17085 | # Commands used to build an old-style archive. |
| 17086 | old_archive_cmds=$lt_old_archive_cmds |
| 17087 | |
| 17088 | # A language specific compiler. |
| 17089 | CC=$lt_compiler |
| 17090 | |
| 17091 | # Is the compiler the GNU compiler? |
| 17092 | with_gcc=$GCC |
| 17093 | |
| 17094 | # Compiler flag to turn off builtin functions. |
| 17095 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 17096 | |
| 17097 | # How to pass a linker flag through the compiler. |
| 17098 | wl=$lt_lt_prog_compiler_wl |
| 17099 | |
| 17100 | # Additional compiler flags for building library objects. |
| 17101 | pic_flag=$lt_lt_prog_compiler_pic |
| 17102 | |
| 17103 | # Compiler flag to prevent dynamic linking. |
| 17104 | link_static_flag=$lt_lt_prog_compiler_static |
| 17105 | |
| 17106 | # Does compiler simultaneously support -c and -o options? |
| 17107 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 17108 | |
| 17109 | # Whether or not to add -lc for building shared libraries. |
| 17110 | build_libtool_need_lc=$archive_cmds_need_lc |
| 17111 | |
| 17112 | # Whether or not to disallow shared libs when runtime libs are static. |
| 17113 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 17114 | |
| 17115 | # Compiler flag to allow reflexive dlopens. |
| 17116 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 17117 | |
| 17118 | # Compiler flag to generate shared objects directly from archives. |
| 17119 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 17120 | |
| 17121 | # Whether the compiler copes with passing no objects directly. |
| 17122 | compiler_needs_object=$lt_compiler_needs_object |
| 17123 | |
| 17124 | # Create an old-style archive from a shared archive. |
| 17125 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 17126 | |
| 17127 | # Create a temporary old-style archive to link instead of a shared archive. |
| 17128 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 17129 | |
| 17130 | # Commands used to build a shared archive. |
| 17131 | archive_cmds=$lt_archive_cmds |
| 17132 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 17133 | |
| 17134 | # Commands used to build a loadable module if different from building |
| 17135 | # a shared archive. |
| 17136 | module_cmds=$lt_module_cmds |
| 17137 | module_expsym_cmds=$lt_module_expsym_cmds |
| 17138 | |
| 17139 | # Whether we are building with GNU ld or not. |
| 17140 | with_gnu_ld=$lt_with_gnu_ld |
| 17141 | |
| 17142 | # Flag that allows shared libraries with undefined symbols to be built. |
| 17143 | allow_undefined_flag=$lt_allow_undefined_flag |
| 17144 | |
| 17145 | # Flag that enforces no undefined symbols. |
| 17146 | no_undefined_flag=$lt_no_undefined_flag |
| 17147 | |
| 17148 | # Flag to hardcode \$libdir into a binary during linking. |
| 17149 | # This must work even if \$libdir does not exist |
| 17150 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 17151 | |
| 17152 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
| 17153 | # during linking. This must work even if \$libdir does not exist. |
| 17154 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 17155 | |
| 17156 | # Whether we need a single "-rpath" flag with a separated argument. |
| 17157 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 17158 | |
| 17159 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 17160 | # DIR into the resulting binary. |
| 17161 | hardcode_direct=$hardcode_direct |
| 17162 | |
| 17163 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 17164 | # DIR into the resulting binary and the resulting library dependency is |
| 17165 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 17166 | # library is relocated. |
| 17167 | hardcode_direct_absolute=$hardcode_direct_absolute |
| 17168 | |
| 17169 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 17170 | # into the resulting binary. |
| 17171 | hardcode_minus_L=$hardcode_minus_L |
| 17172 | |
| 17173 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 17174 | # into the resulting binary. |
| 17175 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 17176 | |
| 17177 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 17178 | # into the library and all subsequent libraries and executables linked |
| 17179 | # against it. |
| 17180 | hardcode_automatic=$hardcode_automatic |
| 17181 | |
| 17182 | # Set to yes if linker adds runtime paths of dependent libraries |
| 17183 | # to runtime path list. |
| 17184 | inherit_rpath=$inherit_rpath |
| 17185 | |
| 17186 | # Whether libtool must link a program against all its dependency libraries. |
| 17187 | link_all_deplibs=$link_all_deplibs |
| 17188 | |
| 17189 | # Fix the shell variable \$srcfile for the compiler. |
| 17190 | fix_srcfile_path=$lt_fix_srcfile_path |
| 17191 | |
| 17192 | # Set to "yes" if exported symbols are required. |
| 17193 | always_export_symbols=$always_export_symbols |
| 17194 | |
| 17195 | # The commands to list exported symbols. |
| 17196 | export_symbols_cmds=$lt_export_symbols_cmds |
| 17197 | |
| 17198 | # Symbols that should not be listed in the preloaded symbols. |
| 17199 | exclude_expsyms=$lt_exclude_expsyms |
| 17200 | |
| 17201 | # Symbols that must always be exported. |
| 17202 | include_expsyms=$lt_include_expsyms |
| 17203 | |
| 17204 | # Commands necessary for linking programs (against libraries) with templates. |
| 17205 | prelink_cmds=$lt_prelink_cmds |
| 17206 | |
| 17207 | # Specify filename containing input files. |
| 17208 | file_list_spec=$lt_file_list_spec |
| 17209 | |
| 17210 | # How to hardcode a shared library path into an executable. |
| 17211 | hardcode_action=$hardcode_action |
| 17212 | |
| 17213 | # The directories searched by this compiler when creating a shared library. |
| 17214 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs |
| 17215 | |
| 17216 | # Dependencies to place before and after the objects being linked to |
| 17217 | # create a shared library. |
| 17218 | predep_objects=$lt_predep_objects |
| 17219 | postdep_objects=$lt_postdep_objects |
| 17220 | predeps=$lt_predeps |
| 17221 | postdeps=$lt_postdeps |
| 17222 | |
| 17223 | # The library search path used internally by the compiler when linking |
| 17224 | # a shared library. |
| 17225 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 17226 | |
| 17227 | # ### END LIBTOOL CONFIG |
| 17228 | |
| 17229 | _LT_EOF |
| 17230 | |
| 17231 | case $host_os in |
| 17232 | aix3*) |
| 17233 | cat <<\_LT_EOF >> "$cfgfile" |
| 17234 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 17235 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 17236 | # vanish in a puff of smoke. |
| 17237 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 17238 | COLLECT_NAMES= |
| 17239 | export COLLECT_NAMES |
| 17240 | fi |
| 17241 | _LT_EOF |
| 17242 | ;; |
| 17243 | esac |
| 17244 | |
| 17245 | |
| 17246 | ltmain="$ac_aux_dir/ltmain.sh" |
| 17247 | |
| 17248 | |
| 17249 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 17250 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 17251 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 17252 | # is reportedly fixed, but why not run on old versions too? |
| 17253 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ |
| 17254 | || (rm -f "$cfgfile"; exit 1) |
| 17255 | |
| 17256 | case $xsi_shell in |
| 17257 | yes) |
| 17258 | cat << \_LT_EOF >> "$cfgfile" |
| 17259 | |
| 17260 | # func_dirname file append nondir_replacement |
| 17261 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, |
| 17262 | # otherwise set result to NONDIR_REPLACEMENT. |
| 17263 | func_dirname () |
| 17264 | { |
| 17265 | case ${1} in |
| 17266 | */*) func_dirname_result="${1%/*}${2}" ;; |
| 17267 | * ) func_dirname_result="${3}" ;; |
| 17268 | esac |
| 17269 | } |
| 17270 | |
| 17271 | # func_basename file |
| 17272 | func_basename () |
| 17273 | { |
| 17274 | func_basename_result="${1##*/}" |
| 17275 | } |
| 17276 | |
| 17277 | # func_dirname_and_basename file append nondir_replacement |
| 17278 | # perform func_basename and func_dirname in a single function |
| 17279 | # call: |
| 17280 | # dirname: Compute the dirname of FILE. If nonempty, |
| 17281 | # add APPEND to the result, otherwise set result |
| 17282 | # to NONDIR_REPLACEMENT. |
| 17283 | # value returned in "$func_dirname_result" |
| 17284 | # basename: Compute filename of FILE. |
| 17285 | # value retuned in "$func_basename_result" |
| 17286 | # Implementation must be kept synchronized with func_dirname |
| 17287 | # and func_basename. For efficiency, we do not delegate to |
| 17288 | # those functions but instead duplicate the functionality here. |
| 17289 | func_dirname_and_basename () |
| 17290 | { |
| 17291 | case ${1} in |
| 17292 | */*) func_dirname_result="${1%/*}${2}" ;; |
| 17293 | * ) func_dirname_result="${3}" ;; |
| 17294 | esac |
| 17295 | func_basename_result="${1##*/}" |
| 17296 | } |
| 17297 | |
| 17298 | # func_stripname prefix suffix name |
| 17299 | # strip PREFIX and SUFFIX off of NAME. |
| 17300 | # PREFIX and SUFFIX must not contain globbing or regex special |
| 17301 | # characters, hashes, percent signs, but SUFFIX may contain a leading |
| 17302 | # dot (in which case that matches only a dot). |
| 17303 | func_stripname () |
| 17304 | { |
| 17305 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are |
| 17306 | # positional parameters, so assign one to ordinary parameter first. |
| 17307 | func_stripname_result=${3} |
| 17308 | func_stripname_result=${func_stripname_result#"${1}"} |
| 17309 | func_stripname_result=${func_stripname_result%"${2}"} |
| 17310 | } |
| 17311 | |
| 17312 | # func_opt_split |
| 17313 | func_opt_split () |
| 17314 | { |
| 17315 | func_opt_split_opt=${1%%=*} |
| 17316 | func_opt_split_arg=${1#*=} |
| 17317 | } |
| 17318 | |
| 17319 | # func_lo2o object |
| 17320 | func_lo2o () |
| 17321 | { |
| 17322 | case ${1} in |
| 17323 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; |
| 17324 | *) func_lo2o_result=${1} ;; |
| 17325 | esac |
| 17326 | } |
| 17327 | |
| 17328 | # func_xform libobj-or-source |
| 17329 | func_xform () |
| 17330 | { |
| 17331 | func_xform_result=${1%.*}.lo |
| 17332 | } |
| 17333 | |
| 17334 | # func_arith arithmetic-term... |
| 17335 | func_arith () |
| 17336 | { |
| 17337 | func_arith_result=$(( $* )) |
| 17338 | } |
| 17339 | |
| 17340 | # func_len string |
| 17341 | # STRING may not start with a hyphen. |
| 17342 | func_len () |
| 17343 | { |
| 17344 | func_len_result=${#1} |
| 17345 | } |
| 17346 | |
| 17347 | _LT_EOF |
| 17348 | ;; |
| 17349 | *) # Bourne compatible functions. |
| 17350 | cat << \_LT_EOF >> "$cfgfile" |
| 17351 | |
| 17352 | # func_dirname file append nondir_replacement |
| 17353 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, |
| 17354 | # otherwise set result to NONDIR_REPLACEMENT. |
| 17355 | func_dirname () |
| 17356 | { |
| 17357 | # Extract subdirectory from the argument. |
| 17358 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` |
| 17359 | if test "X$func_dirname_result" = "X${1}"; then |
| 17360 | func_dirname_result="${3}" |
| 17361 | else |
| 17362 | func_dirname_result="$func_dirname_result${2}" |
| 17363 | fi |
| 17364 | } |
| 17365 | |
| 17366 | # func_basename file |
| 17367 | func_basename () |
| 17368 | { |
| 17369 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` |
| 17370 | } |
| 17371 | |
| 17372 | |
| 17373 | # func_stripname prefix suffix name |
| 17374 | # strip PREFIX and SUFFIX off of NAME. |
| 17375 | # PREFIX and SUFFIX must not contain globbing or regex special |
| 17376 | # characters, hashes, percent signs, but SUFFIX may contain a leading |
| 17377 | # dot (in which case that matches only a dot). |
| 17378 | # func_strip_suffix prefix name |
| 17379 | func_stripname () |
| 17380 | { |
| 17381 | case ${2} in |
| 17382 | .*) func_stripname_result=`$ECHO "X${3}" \ |
| 17383 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; |
| 17384 | *) func_stripname_result=`$ECHO "X${3}" \ |
| 17385 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; |
| 17386 | esac |
| 17387 | } |
| 17388 | |
| 17389 | # sed scripts: |
| 17390 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' |
| 17391 | my_sed_long_arg='1s/^-[^=]*=//' |
| 17392 | |
| 17393 | # func_opt_split |
| 17394 | func_opt_split () |
| 17395 | { |
| 17396 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` |
| 17397 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` |
| 17398 | } |
| 17399 | |
| 17400 | # func_lo2o object |
| 17401 | func_lo2o () |
| 17402 | { |
| 17403 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` |
| 17404 | } |
| 17405 | |
| 17406 | # func_xform libobj-or-source |
| 17407 | func_xform () |
| 17408 | { |
| 17409 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` |
| 17410 | } |
| 17411 | |
| 17412 | # func_arith arithmetic-term... |
| 17413 | func_arith () |
| 17414 | { |
| 17415 | func_arith_result=`expr "$@"` |
| 17416 | } |
| 17417 | |
| 17418 | # func_len string |
| 17419 | # STRING may not start with a hyphen. |
| 17420 | func_len () |
| 17421 | { |
| 17422 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` |
| 17423 | } |
| 17424 | |
| 17425 | _LT_EOF |
| 17426 | esac |
| 17427 | |
| 17428 | case $lt_shell_append in |
| 17429 | yes) |
| 17430 | cat << \_LT_EOF >> "$cfgfile" |
| 17431 | |
| 17432 | # func_append var value |
| 17433 | # Append VALUE to the end of shell variable VAR. |
| 17434 | func_append () |
| 17435 | { |
| 17436 | eval "$1+=\$2" |
| 17437 | } |
| 17438 | _LT_EOF |
| 17439 | ;; |
| 17440 | *) |
| 17441 | cat << \_LT_EOF >> "$cfgfile" |
| 17442 | |
| 17443 | # func_append var value |
| 17444 | # Append VALUE to the end of shell variable VAR. |
| 17445 | func_append () |
| 17446 | { |
| 17447 | eval "$1=\$$1\$2" |
| 17448 | } |
| 17449 | |
| 17450 | _LT_EOF |
| 17451 | ;; |
| 17452 | esac |
| 17453 | |
| 17454 | |
| 17455 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ |
| 17456 | || (rm -f "$cfgfile"; exit 1) |
| 17457 | |
| 17458 | mv -f "$cfgfile" "$ofile" || |
| 17459 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 17460 | chmod +x "$ofile" |
| 17461 | |
| 17462 | |
| 17463 | cat <<_LT_EOF >> "$ofile" |
| 17464 | |
| 17465 | # ### BEGIN LIBTOOL TAG CONFIG: CXX |
| 17466 | |
| 17467 | # The linker used to build libraries. |
| 17468 | LD=$lt_LD_CXX |
| 17469 | |
| 17470 | # Commands used to build an old-style archive. |
| 17471 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 17472 | |
| 17473 | # A language specific compiler. |
| 17474 | CC=$lt_compiler_CXX |
| 17475 | |
| 17476 | # Is the compiler the GNU compiler? |
| 17477 | with_gcc=$GCC_CXX |
| 17478 | |
| 17479 | # Compiler flag to turn off builtin functions. |
| 17480 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 17481 | |
| 17482 | # How to pass a linker flag through the compiler. |
| 17483 | wl=$lt_lt_prog_compiler_wl_CXX |
| 17484 | |
| 17485 | # Additional compiler flags for building library objects. |
| 17486 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 17487 | |
| 17488 | # Compiler flag to prevent dynamic linking. |
| 17489 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 17490 | |
| 17491 | # Does compiler simultaneously support -c and -o options? |
| 17492 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 17493 | |
| 17494 | # Whether or not to add -lc for building shared libraries. |
| 17495 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 17496 | |
| 17497 | # Whether or not to disallow shared libs when runtime libs are static. |
| 17498 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 17499 | |
| 17500 | # Compiler flag to allow reflexive dlopens. |
| 17501 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 17502 | |
| 17503 | # Compiler flag to generate shared objects directly from archives. |
| 17504 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 17505 | |
| 17506 | # Whether the compiler copes with passing no objects directly. |
| 17507 | compiler_needs_object=$lt_compiler_needs_object_CXX |
| 17508 | |
| 17509 | # Create an old-style archive from a shared archive. |
| 17510 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 17511 | |
| 17512 | # Create a temporary old-style archive to link instead of a shared archive. |
| 17513 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 17514 | |
| 17515 | # Commands used to build a shared archive. |
| 17516 | archive_cmds=$lt_archive_cmds_CXX |
| 17517 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 17518 | |
| 17519 | # Commands used to build a loadable module if different from building |
| 17520 | # a shared archive. |
| 17521 | module_cmds=$lt_module_cmds_CXX |
| 17522 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 17523 | |
| 17524 | # Whether we are building with GNU ld or not. |
| 17525 | with_gnu_ld=$lt_with_gnu_ld_CXX |
| 17526 | |
| 17527 | # Flag that allows shared libraries with undefined symbols to be built. |
| 17528 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 17529 | |
| 17530 | # Flag that enforces no undefined symbols. |
| 17531 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 17532 | |
| 17533 | # Flag to hardcode \$libdir into a binary during linking. |
| 17534 | # This must work even if \$libdir does not exist |
| 17535 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 17536 | |
| 17537 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
| 17538 | # during linking. This must work even if \$libdir does not exist. |
| 17539 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 17540 | |
| 17541 | # Whether we need a single "-rpath" flag with a separated argument. |
| 17542 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 17543 | |
| 17544 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 17545 | # DIR into the resulting binary. |
| 17546 | hardcode_direct=$hardcode_direct_CXX |
| 17547 | |
| 17548 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 17549 | # DIR into the resulting binary and the resulting library dependency is |
| 17550 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 17551 | # library is relocated. |
| 17552 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX |
| 17553 | |
| 17554 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 17555 | # into the resulting binary. |
| 17556 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 17557 | |
| 17558 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 17559 | # into the resulting binary. |
| 17560 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 17561 | |
| 17562 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 17563 | # into the library and all subsequent libraries and executables linked |
| 17564 | # against it. |
| 17565 | hardcode_automatic=$hardcode_automatic_CXX |
| 17566 | |
| 17567 | # Set to yes if linker adds runtime paths of dependent libraries |
| 17568 | # to runtime path list. |
| 17569 | inherit_rpath=$inherit_rpath_CXX |
| 17570 | |
| 17571 | # Whether libtool must link a program against all its dependency libraries. |
| 17572 | link_all_deplibs=$link_all_deplibs_CXX |
| 17573 | |
| 17574 | # Fix the shell variable \$srcfile for the compiler. |
| 17575 | fix_srcfile_path=$lt_fix_srcfile_path_CXX |
| 17576 | |
| 17577 | # Set to "yes" if exported symbols are required. |
| 17578 | always_export_symbols=$always_export_symbols_CXX |
| 17579 | |
| 17580 | # The commands to list exported symbols. |
| 17581 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 17582 | |
| 17583 | # Symbols that should not be listed in the preloaded symbols. |
| 17584 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 17585 | |
| 17586 | # Symbols that must always be exported. |
| 17587 | include_expsyms=$lt_include_expsyms_CXX |
| 17588 | |
| 17589 | # Commands necessary for linking programs (against libraries) with templates. |
| 17590 | prelink_cmds=$lt_prelink_cmds_CXX |
| 17591 | |
| 17592 | # Specify filename containing input files. |
| 17593 | file_list_spec=$lt_file_list_spec_CXX |
| 17594 | |
| 17595 | # How to hardcode a shared library path into an executable. |
| 17596 | hardcode_action=$hardcode_action_CXX |
| 17597 | |
| 17598 | # The directories searched by this compiler when creating a shared library. |
| 17599 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX |
| 17600 | |
| 17601 | # Dependencies to place before and after the objects being linked to |
| 17602 | # create a shared library. |
| 17603 | predep_objects=$lt_predep_objects_CXX |
| 17604 | postdep_objects=$lt_postdep_objects_CXX |
| 17605 | predeps=$lt_predeps_CXX |
| 17606 | postdeps=$lt_postdeps_CXX |
| 17607 | |
| 17608 | # The library search path used internally by the compiler when linking |
| 17609 | # a shared library. |
| 17610 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 17611 | |
| 17612 | # ### END LIBTOOL TAG CONFIG: CXX |
| 17613 | _LT_EOF |
| 17614 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17615 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17616 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17617 | esac |
| 17618 | done # for ac_tag |
| 17619 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17620 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 17621 | as_fn_exit 0 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17622 | _ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17623 | ac_clean_files=$ac_clean_files_save |
| 17624 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 17625 | test $ac_write_fail = 0 || |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 17626 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 17627 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17628 | |
| 17629 | # configure is writing to config.log, and then calls config.status. |
| 17630 | # config.status does its own redirection, appending to config.log. |
| 17631 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 17632 | # by configure, so config.status won't be able to write to it; its |
| 17633 | # output is simply discarded. So we exec the FD to /dev/null, |
| 17634 | # effectively closing config.log, so it can be properly (re)opened and |
| 17635 | # appended to by config.status. When coming back to configure, we |
| 17636 | # need to make the FD available again. |
| 17637 | if test "$no_create" != yes; then |
| 17638 | ac_cs_success=: |
| 17639 | ac_config_status_args= |
| 17640 | test "$silent" = yes && |
| 17641 | ac_config_status_args="$ac_config_status_args --quiet" |
| 17642 | exec 5>/dev/null |
| 17643 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 17644 | exec 5>>config.log |
| 17645 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 17646 | # would make configure fail if this is the last instruction. |
ted.mielczarek | e574a2a | 2010-10-05 19:38:22 +0000 | [diff] [blame^] | 17647 | $ac_cs_success || as_fn_exit $? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 17648 | fi |
| 17649 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 17650 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 17651 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17652 | fi |
| 17653 | |