annotate src/libogg-1.3.0/configure @ 169:223a55898ab9 tip default

Add null config files
author Chris Cannam <cannam@all-day-breakfast.com>
date Mon, 02 Mar 2020 14:03:47 +0000
parents 98c1576536ae
children
rev   line source
cannam@86 1 #! /bin/sh
cannam@86 2 # Guess values for system-dependent variables and create Makefiles.
cannam@86 3 # Generated by GNU Autoconf 2.68.
cannam@86 4 #
cannam@86 5 #
cannam@86 6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
cannam@86 7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
cannam@86 8 # Foundation, Inc.
cannam@86 9 #
cannam@86 10 #
cannam@86 11 # This configure script is free software; the Free Software Foundation
cannam@86 12 # gives unlimited permission to copy, distribute and modify it.
cannam@86 13 ## -------------------- ##
cannam@86 14 ## M4sh Initialization. ##
cannam@86 15 ## -------------------- ##
cannam@86 16
cannam@86 17 # Be more Bourne compatible
cannam@86 18 DUALCASE=1; export DUALCASE # for MKS sh
cannam@86 19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cannam@86 20 emulate sh
cannam@86 21 NULLCMD=:
cannam@86 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
cannam@86 23 # is contrary to our usage. Disable this feature.
cannam@86 24 alias -g '${1+"$@"}'='"$@"'
cannam@86 25 setopt NO_GLOB_SUBST
cannam@86 26 else
cannam@86 27 case `(set -o) 2>/dev/null` in #(
cannam@86 28 *posix*) :
cannam@86 29 set -o posix ;; #(
cannam@86 30 *) :
cannam@86 31 ;;
cannam@86 32 esac
cannam@86 33 fi
cannam@86 34
cannam@86 35
cannam@86 36 as_nl='
cannam@86 37 '
cannam@86 38 export as_nl
cannam@86 39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
cannam@86 40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
cannam@86 41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
cannam@86 42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cannam@86 43 # Prefer a ksh shell builtin over an external printf program on Solaris,
cannam@86 44 # but without wasting forks for bash or zsh.
cannam@86 45 if test -z "$BASH_VERSION$ZSH_VERSION" \
cannam@86 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
cannam@86 47 as_echo='print -r --'
cannam@86 48 as_echo_n='print -rn --'
cannam@86 49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cannam@86 50 as_echo='printf %s\n'
cannam@86 51 as_echo_n='printf %s'
cannam@86 52 else
cannam@86 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
cannam@86 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
cannam@86 55 as_echo_n='/usr/ucb/echo -n'
cannam@86 56 else
cannam@86 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
cannam@86 58 as_echo_n_body='eval
cannam@86 59 arg=$1;
cannam@86 60 case $arg in #(
cannam@86 61 *"$as_nl"*)
cannam@86 62 expr "X$arg" : "X\\(.*\\)$as_nl";
cannam@86 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
cannam@86 64 esac;
cannam@86 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
cannam@86 66 '
cannam@86 67 export as_echo_n_body
cannam@86 68 as_echo_n='sh -c $as_echo_n_body as_echo'
cannam@86 69 fi
cannam@86 70 export as_echo_body
cannam@86 71 as_echo='sh -c $as_echo_body as_echo'
cannam@86 72 fi
cannam@86 73
cannam@86 74 # The user is always right.
cannam@86 75 if test "${PATH_SEPARATOR+set}" != set; then
cannam@86 76 PATH_SEPARATOR=:
cannam@86 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
cannam@86 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
cannam@86 79 PATH_SEPARATOR=';'
cannam@86 80 }
cannam@86 81 fi
cannam@86 82
cannam@86 83
cannam@86 84 # IFS
cannam@86 85 # We need space, tab and new line, in precisely that order. Quoting is
cannam@86 86 # there to prevent editors from complaining about space-tab.
cannam@86 87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
cannam@86 88 # splitting by setting IFS to empty value.)
cannam@86 89 IFS=" "" $as_nl"
cannam@86 90
cannam@86 91 # Find who we are. Look in the path if we contain no directory separator.
cannam@86 92 as_myself=
cannam@86 93 case $0 in #((
cannam@86 94 *[\\/]* ) as_myself=$0 ;;
cannam@86 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 96 for as_dir in $PATH
cannam@86 97 do
cannam@86 98 IFS=$as_save_IFS
cannam@86 99 test -z "$as_dir" && as_dir=.
cannam@86 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
cannam@86 101 done
cannam@86 102 IFS=$as_save_IFS
cannam@86 103
cannam@86 104 ;;
cannam@86 105 esac
cannam@86 106 # We did not find ourselves, most probably we were run as `sh COMMAND'
cannam@86 107 # in which case we are not to be found in the path.
cannam@86 108 if test "x$as_myself" = x; then
cannam@86 109 as_myself=$0
cannam@86 110 fi
cannam@86 111 if test ! -f "$as_myself"; then
cannam@86 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cannam@86 113 exit 1
cannam@86 114 fi
cannam@86 115
cannam@86 116 # Unset variables that we do not need and which cause bugs (e.g. in
cannam@86 117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
cannam@86 118 # suppresses any "Segmentation fault" message there. '((' could
cannam@86 119 # trigger a bug in pdksh 5.2.14.
cannam@86 120 for as_var in BASH_ENV ENV MAIL MAILPATH
cannam@86 121 do eval test x\${$as_var+set} = xset \
cannam@86 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cannam@86 123 done
cannam@86 124 PS1='$ '
cannam@86 125 PS2='> '
cannam@86 126 PS4='+ '
cannam@86 127
cannam@86 128 # NLS nuisances.
cannam@86 129 LC_ALL=C
cannam@86 130 export LC_ALL
cannam@86 131 LANGUAGE=C
cannam@86 132 export LANGUAGE
cannam@86 133
cannam@86 134 # CDPATH.
cannam@86 135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
cannam@86 136
cannam@86 137 if test "x$CONFIG_SHELL" = x; then
cannam@86 138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
cannam@86 139 emulate sh
cannam@86 140 NULLCMD=:
cannam@86 141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
cannam@86 142 # is contrary to our usage. Disable this feature.
cannam@86 143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
cannam@86 144 setopt NO_GLOB_SUBST
cannam@86 145 else
cannam@86 146 case \`(set -o) 2>/dev/null\` in #(
cannam@86 147 *posix*) :
cannam@86 148 set -o posix ;; #(
cannam@86 149 *) :
cannam@86 150 ;;
cannam@86 151 esac
cannam@86 152 fi
cannam@86 153 "
cannam@86 154 as_required="as_fn_return () { (exit \$1); }
cannam@86 155 as_fn_success () { as_fn_return 0; }
cannam@86 156 as_fn_failure () { as_fn_return 1; }
cannam@86 157 as_fn_ret_success () { return 0; }
cannam@86 158 as_fn_ret_failure () { return 1; }
cannam@86 159
cannam@86 160 exitcode=0
cannam@86 161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
cannam@86 162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
cannam@86 163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
cannam@86 164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
cannam@86 165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
cannam@86 166
cannam@86 167 else
cannam@86 168 exitcode=1; echo positional parameters were not saved.
cannam@86 169 fi
cannam@86 170 test x\$exitcode = x0 || exit 1"
cannam@86 171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
cannam@86 172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
cannam@86 173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
cannam@86 174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cannam@86 175
cannam@86 176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
cannam@86 177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
cannam@86 178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
cannam@86 179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
cannam@86 180 PATH=/empty FPATH=/empty; export PATH FPATH
cannam@86 181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
cannam@86 182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
cannam@86 183 test \$(( 1 + 1 )) = 2 || exit 1"
cannam@86 184 if (eval "$as_required") 2>/dev/null; then :
cannam@86 185 as_have_required=yes
cannam@86 186 else
cannam@86 187 as_have_required=no
cannam@86 188 fi
cannam@86 189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
cannam@86 190
cannam@86 191 else
cannam@86 192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 193 as_found=false
cannam@86 194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
cannam@86 195 do
cannam@86 196 IFS=$as_save_IFS
cannam@86 197 test -z "$as_dir" && as_dir=.
cannam@86 198 as_found=:
cannam@86 199 case $as_dir in #(
cannam@86 200 /*)
cannam@86 201 for as_base in sh bash ksh sh5; do
cannam@86 202 # Try only shells that exist, to save several forks.
cannam@86 203 as_shell=$as_dir/$as_base
cannam@86 204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
cannam@86 205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
cannam@86 206 CONFIG_SHELL=$as_shell as_have_required=yes
cannam@86 207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
cannam@86 208 break 2
cannam@86 209 fi
cannam@86 210 fi
cannam@86 211 done;;
cannam@86 212 esac
cannam@86 213 as_found=false
cannam@86 214 done
cannam@86 215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
cannam@86 216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
cannam@86 217 CONFIG_SHELL=$SHELL as_have_required=yes
cannam@86 218 fi; }
cannam@86 219 IFS=$as_save_IFS
cannam@86 220
cannam@86 221
cannam@86 222 if test "x$CONFIG_SHELL" != x; then :
cannam@86 223 # We cannot yet assume a decent shell, so we have to provide a
cannam@86 224 # neutralization value for shells without unset; and this also
cannam@86 225 # works around shells that cannot unset nonexistent variables.
cannam@86 226 # Preserve -v and -x to the replacement shell.
cannam@86 227 BASH_ENV=/dev/null
cannam@86 228 ENV=/dev/null
cannam@86 229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
cannam@86 230 export CONFIG_SHELL
cannam@86 231 case $- in # ((((
cannam@86 232 *v*x* | *x*v* ) as_opts=-vx ;;
cannam@86 233 *v* ) as_opts=-v ;;
cannam@86 234 *x* ) as_opts=-x ;;
cannam@86 235 * ) as_opts= ;;
cannam@86 236 esac
cannam@86 237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
cannam@86 238 fi
cannam@86 239
cannam@86 240 if test x$as_have_required = xno; then :
cannam@86 241 $as_echo "$0: This script requires a shell more modern than all"
cannam@86 242 $as_echo "$0: the shells that I found on your system."
cannam@86 243 if test x${ZSH_VERSION+set} = xset ; then
cannam@86 244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
cannam@86 245 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
cannam@86 246 else
cannam@86 247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
cannam@86 248 $0: including any error possibly output before this
cannam@86 249 $0: message. Then install a modern shell, or manually run
cannam@86 250 $0: the script under such a shell if you do have one."
cannam@86 251 fi
cannam@86 252 exit 1
cannam@86 253 fi
cannam@86 254 fi
cannam@86 255 fi
cannam@86 256 SHELL=${CONFIG_SHELL-/bin/sh}
cannam@86 257 export SHELL
cannam@86 258 # Unset more variables known to interfere with behavior of common tools.
cannam@86 259 CLICOLOR_FORCE= GREP_OPTIONS=
cannam@86 260 unset CLICOLOR_FORCE GREP_OPTIONS
cannam@86 261
cannam@86 262 ## --------------------- ##
cannam@86 263 ## M4sh Shell Functions. ##
cannam@86 264 ## --------------------- ##
cannam@86 265 # as_fn_unset VAR
cannam@86 266 # ---------------
cannam@86 267 # Portably unset VAR.
cannam@86 268 as_fn_unset ()
cannam@86 269 {
cannam@86 270 { eval $1=; unset $1;}
cannam@86 271 }
cannam@86 272 as_unset=as_fn_unset
cannam@86 273
cannam@86 274 # as_fn_set_status STATUS
cannam@86 275 # -----------------------
cannam@86 276 # Set $? to STATUS, without forking.
cannam@86 277 as_fn_set_status ()
cannam@86 278 {
cannam@86 279 return $1
cannam@86 280 } # as_fn_set_status
cannam@86 281
cannam@86 282 # as_fn_exit STATUS
cannam@86 283 # -----------------
cannam@86 284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
cannam@86 285 as_fn_exit ()
cannam@86 286 {
cannam@86 287 set +e
cannam@86 288 as_fn_set_status $1
cannam@86 289 exit $1
cannam@86 290 } # as_fn_exit
cannam@86 291
cannam@86 292 # as_fn_mkdir_p
cannam@86 293 # -------------
cannam@86 294 # Create "$as_dir" as a directory, including parents if necessary.
cannam@86 295 as_fn_mkdir_p ()
cannam@86 296 {
cannam@86 297
cannam@86 298 case $as_dir in #(
cannam@86 299 -*) as_dir=./$as_dir;;
cannam@86 300 esac
cannam@86 301 test -d "$as_dir" || eval $as_mkdir_p || {
cannam@86 302 as_dirs=
cannam@86 303 while :; do
cannam@86 304 case $as_dir in #(
cannam@86 305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
cannam@86 306 *) as_qdir=$as_dir;;
cannam@86 307 esac
cannam@86 308 as_dirs="'$as_qdir' $as_dirs"
cannam@86 309 as_dir=`$as_dirname -- "$as_dir" ||
cannam@86 310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@86 311 X"$as_dir" : 'X\(//\)[^/]' \| \
cannam@86 312 X"$as_dir" : 'X\(//\)$' \| \
cannam@86 313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
cannam@86 314 $as_echo X"$as_dir" |
cannam@86 315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@86 316 s//\1/
cannam@86 317 q
cannam@86 318 }
cannam@86 319 /^X\(\/\/\)[^/].*/{
cannam@86 320 s//\1/
cannam@86 321 q
cannam@86 322 }
cannam@86 323 /^X\(\/\/\)$/{
cannam@86 324 s//\1/
cannam@86 325 q
cannam@86 326 }
cannam@86 327 /^X\(\/\).*/{
cannam@86 328 s//\1/
cannam@86 329 q
cannam@86 330 }
cannam@86 331 s/.*/./; q'`
cannam@86 332 test -d "$as_dir" && break
cannam@86 333 done
cannam@86 334 test -z "$as_dirs" || eval "mkdir $as_dirs"
cannam@86 335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cannam@86 336
cannam@86 337
cannam@86 338 } # as_fn_mkdir_p
cannam@86 339 # as_fn_append VAR VALUE
cannam@86 340 # ----------------------
cannam@86 341 # Append the text in VALUE to the end of the definition contained in VAR. Take
cannam@86 342 # advantage of any shell optimizations that allow amortized linear growth over
cannam@86 343 # repeated appends, instead of the typical quadratic growth present in naive
cannam@86 344 # implementations.
cannam@86 345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
cannam@86 346 eval 'as_fn_append ()
cannam@86 347 {
cannam@86 348 eval $1+=\$2
cannam@86 349 }'
cannam@86 350 else
cannam@86 351 as_fn_append ()
cannam@86 352 {
cannam@86 353 eval $1=\$$1\$2
cannam@86 354 }
cannam@86 355 fi # as_fn_append
cannam@86 356
cannam@86 357 # as_fn_arith ARG...
cannam@86 358 # ------------------
cannam@86 359 # Perform arithmetic evaluation on the ARGs, and store the result in the
cannam@86 360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
cannam@86 361 # must be portable across $(()) and expr.
cannam@86 362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
cannam@86 363 eval 'as_fn_arith ()
cannam@86 364 {
cannam@86 365 as_val=$(( $* ))
cannam@86 366 }'
cannam@86 367 else
cannam@86 368 as_fn_arith ()
cannam@86 369 {
cannam@86 370 as_val=`expr "$@" || test $? -eq 1`
cannam@86 371 }
cannam@86 372 fi # as_fn_arith
cannam@86 373
cannam@86 374
cannam@86 375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
cannam@86 376 # ----------------------------------------
cannam@86 377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
cannam@86 378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cannam@86 379 # script with STATUS, using 1 if that was 0.
cannam@86 380 as_fn_error ()
cannam@86 381 {
cannam@86 382 as_status=$1; test $as_status -eq 0 && as_status=1
cannam@86 383 if test "$4"; then
cannam@86 384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@86 385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cannam@86 386 fi
cannam@86 387 $as_echo "$as_me: error: $2" >&2
cannam@86 388 as_fn_exit $as_status
cannam@86 389 } # as_fn_error
cannam@86 390
cannam@86 391 if expr a : '\(a\)' >/dev/null 2>&1 &&
cannam@86 392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
cannam@86 393 as_expr=expr
cannam@86 394 else
cannam@86 395 as_expr=false
cannam@86 396 fi
cannam@86 397
cannam@86 398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
cannam@86 399 as_basename=basename
cannam@86 400 else
cannam@86 401 as_basename=false
cannam@86 402 fi
cannam@86 403
cannam@86 404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
cannam@86 405 as_dirname=dirname
cannam@86 406 else
cannam@86 407 as_dirname=false
cannam@86 408 fi
cannam@86 409
cannam@86 410 as_me=`$as_basename -- "$0" ||
cannam@86 411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
cannam@86 412 X"$0" : 'X\(//\)$' \| \
cannam@86 413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
cannam@86 414 $as_echo X/"$0" |
cannam@86 415 sed '/^.*\/\([^/][^/]*\)\/*$/{
cannam@86 416 s//\1/
cannam@86 417 q
cannam@86 418 }
cannam@86 419 /^X\/\(\/\/\)$/{
cannam@86 420 s//\1/
cannam@86 421 q
cannam@86 422 }
cannam@86 423 /^X\/\(\/\).*/{
cannam@86 424 s//\1/
cannam@86 425 q
cannam@86 426 }
cannam@86 427 s/.*/./; q'`
cannam@86 428
cannam@86 429 # Avoid depending upon Character Ranges.
cannam@86 430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
cannam@86 431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
cannam@86 432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
cannam@86 433 as_cr_digits='0123456789'
cannam@86 434 as_cr_alnum=$as_cr_Letters$as_cr_digits
cannam@86 435
cannam@86 436
cannam@86 437 as_lineno_1=$LINENO as_lineno_1a=$LINENO
cannam@86 438 as_lineno_2=$LINENO as_lineno_2a=$LINENO
cannam@86 439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
cannam@86 440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
cannam@86 441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cannam@86 442 sed -n '
cannam@86 443 p
cannam@86 444 /[$]LINENO/=
cannam@86 445 ' <$as_myself |
cannam@86 446 sed '
cannam@86 447 s/[$]LINENO.*/&-/
cannam@86 448 t lineno
cannam@86 449 b
cannam@86 450 :lineno
cannam@86 451 N
cannam@86 452 :loop
cannam@86 453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
cannam@86 454 t loop
cannam@86 455 s/-\n.*//
cannam@86 456 ' >$as_me.lineno &&
cannam@86 457 chmod +x "$as_me.lineno" ||
cannam@86 458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cannam@86 459
cannam@86 460 # Don't try to exec as it changes $[0], causing all sort of problems
cannam@86 461 # (the dirname of $[0] is not the place where we might find the
cannam@86 462 # original and so on. Autoconf is especially sensitive to this).
cannam@86 463 . "./$as_me.lineno"
cannam@86 464 # Exit status is that of the last command.
cannam@86 465 exit
cannam@86 466 }
cannam@86 467
cannam@86 468 ECHO_C= ECHO_N= ECHO_T=
cannam@86 469 case `echo -n x` in #(((((
cannam@86 470 -n*)
cannam@86 471 case `echo 'xy\c'` in
cannam@86 472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cannam@86 473 xy) ECHO_C='\c';;
cannam@86 474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
cannam@86 475 ECHO_T=' ';;
cannam@86 476 esac;;
cannam@86 477 *)
cannam@86 478 ECHO_N='-n';;
cannam@86 479 esac
cannam@86 480
cannam@86 481 rm -f conf$$ conf$$.exe conf$$.file
cannam@86 482 if test -d conf$$.dir; then
cannam@86 483 rm -f conf$$.dir/conf$$.file
cannam@86 484 else
cannam@86 485 rm -f conf$$.dir
cannam@86 486 mkdir conf$$.dir 2>/dev/null
cannam@86 487 fi
cannam@86 488 if (echo >conf$$.file) 2>/dev/null; then
cannam@86 489 if ln -s conf$$.file conf$$ 2>/dev/null; then
cannam@86 490 as_ln_s='ln -s'
cannam@86 491 # ... but there are two gotchas:
cannam@86 492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
cannam@86 493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cannam@86 494 # In both cases, we have to default to `cp -p'.
cannam@86 495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cannam@86 496 as_ln_s='cp -p'
cannam@86 497 elif ln conf$$.file conf$$ 2>/dev/null; then
cannam@86 498 as_ln_s=ln
cannam@86 499 else
cannam@86 500 as_ln_s='cp -p'
cannam@86 501 fi
cannam@86 502 else
cannam@86 503 as_ln_s='cp -p'
cannam@86 504 fi
cannam@86 505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
cannam@86 506 rmdir conf$$.dir 2>/dev/null
cannam@86 507
cannam@86 508 if mkdir -p . 2>/dev/null; then
cannam@86 509 as_mkdir_p='mkdir -p "$as_dir"'
cannam@86 510 else
cannam@86 511 test -d ./-p && rmdir ./-p
cannam@86 512 as_mkdir_p=false
cannam@86 513 fi
cannam@86 514
cannam@86 515 if test -x / >/dev/null 2>&1; then
cannam@86 516 as_test_x='test -x'
cannam@86 517 else
cannam@86 518 if ls -dL / >/dev/null 2>&1; then
cannam@86 519 as_ls_L_option=L
cannam@86 520 else
cannam@86 521 as_ls_L_option=
cannam@86 522 fi
cannam@86 523 as_test_x='
cannam@86 524 eval sh -c '\''
cannam@86 525 if test -d "$1"; then
cannam@86 526 test -d "$1/.";
cannam@86 527 else
cannam@86 528 case $1 in #(
cannam@86 529 -*)set "./$1";;
cannam@86 530 esac;
cannam@86 531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cannam@86 532 ???[sx]*):;;*)false;;esac;fi
cannam@86 533 '\'' sh
cannam@86 534 '
cannam@86 535 fi
cannam@86 536 as_executable_p=$as_test_x
cannam@86 537
cannam@86 538 # Sed expression to map a string onto a valid CPP name.
cannam@86 539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
cannam@86 540
cannam@86 541 # Sed expression to map a string onto a valid variable name.
cannam@86 542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
cannam@86 543
cannam@86 544 SHELL=${CONFIG_SHELL-/bin/sh}
cannam@86 545
cannam@86 546
cannam@86 547 test -n "$DJDIR" || exec 7<&0 </dev/null
cannam@86 548 exec 6>&1
cannam@86 549
cannam@86 550 # Name of the host.
cannam@86 551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cannam@86 552 # so uname gets run too.
cannam@86 553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
cannam@86 554
cannam@86 555 #
cannam@86 556 # Initializations.
cannam@86 557 #
cannam@86 558 ac_default_prefix=/usr/local
cannam@86 559 ac_clean_files=
cannam@86 560 ac_config_libobj_dir=.
cannam@86 561 LIBOBJS=
cannam@86 562 cross_compiling=no
cannam@86 563 subdirs=
cannam@86 564 MFLAGS=
cannam@86 565 MAKEFLAGS=
cannam@86 566
cannam@86 567 # Identity of this package.
cannam@86 568 PACKAGE_NAME=
cannam@86 569 PACKAGE_TARNAME=
cannam@86 570 PACKAGE_VERSION=
cannam@86 571 PACKAGE_STRING=
cannam@86 572 PACKAGE_BUGREPORT=
cannam@86 573 PACKAGE_URL=
cannam@86 574
cannam@86 575 ac_unique_file="src/framing.c"
cannam@86 576 # Factoring default headers for most tests.
cannam@86 577 ac_includes_default="\
cannam@86 578 #include <stdio.h>
cannam@86 579 #ifdef HAVE_SYS_TYPES_H
cannam@86 580 # include <sys/types.h>
cannam@86 581 #endif
cannam@86 582 #ifdef HAVE_SYS_STAT_H
cannam@86 583 # include <sys/stat.h>
cannam@86 584 #endif
cannam@86 585 #ifdef STDC_HEADERS
cannam@86 586 # include <stdlib.h>
cannam@86 587 # include <stddef.h>
cannam@86 588 #else
cannam@86 589 # ifdef HAVE_STDLIB_H
cannam@86 590 # include <stdlib.h>
cannam@86 591 # endif
cannam@86 592 #endif
cannam@86 593 #ifdef HAVE_STRING_H
cannam@86 594 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
cannam@86 595 # include <memory.h>
cannam@86 596 # endif
cannam@86 597 # include <string.h>
cannam@86 598 #endif
cannam@86 599 #ifdef HAVE_STRINGS_H
cannam@86 600 # include <strings.h>
cannam@86 601 #endif
cannam@86 602 #ifdef HAVE_INTTYPES_H
cannam@86 603 # include <inttypes.h>
cannam@86 604 #endif
cannam@86 605 #ifdef HAVE_STDINT_H
cannam@86 606 # include <stdint.h>
cannam@86 607 #endif
cannam@86 608 #ifdef HAVE_UNISTD_H
cannam@86 609 # include <unistd.h>
cannam@86 610 #endif"
cannam@86 611
cannam@86 612 ac_subst_vars='am__EXEEXT_FALSE
cannam@86 613 am__EXEEXT_TRUE
cannam@86 614 LTLIBOBJS
cannam@86 615 PROFILE
cannam@86 616 DEBUG
cannam@86 617 OPT
cannam@86 618 SIZE64
cannam@86 619 USIZE32
cannam@86 620 SIZE32
cannam@86 621 USIZE16
cannam@86 622 SIZE16
cannam@86 623 INCLUDE_SYS_TYPES_H
cannam@86 624 INCLUDE_STDINT_H
cannam@86 625 INCLUDE_INTTYPES_H
cannam@86 626 LIBTOOL_DEPS
cannam@86 627 LIBOBJS
cannam@86 628 CPP
cannam@86 629 OTOOL64
cannam@86 630 OTOOL
cannam@86 631 LIPO
cannam@86 632 NMEDIT
cannam@86 633 DSYMUTIL
cannam@86 634 MANIFEST_TOOL
cannam@86 635 RANLIB
cannam@86 636 ac_ct_AR
cannam@86 637 AR
cannam@86 638 DLLTOOL
cannam@86 639 OBJDUMP
cannam@86 640 LN_S
cannam@86 641 NM
cannam@86 642 ac_ct_DUMPBIN
cannam@86 643 DUMPBIN
cannam@86 644 LD
cannam@86 645 FGREP
cannam@86 646 EGREP
cannam@86 647 GREP
cannam@86 648 SED
cannam@86 649 host_os
cannam@86 650 host_vendor
cannam@86 651 host_cpu
cannam@86 652 host
cannam@86 653 build_os
cannam@86 654 build_vendor
cannam@86 655 build_cpu
cannam@86 656 build
cannam@86 657 LIBTOOL
cannam@86 658 am__fastdepCC_FALSE
cannam@86 659 am__fastdepCC_TRUE
cannam@86 660 CCDEPMODE
cannam@86 661 AMDEPBACKSLASH
cannam@86 662 AMDEP_FALSE
cannam@86 663 AMDEP_TRUE
cannam@86 664 am__quote
cannam@86 665 am__include
cannam@86 666 DEPDIR
cannam@86 667 OBJEXT
cannam@86 668 EXEEXT
cannam@86 669 ac_ct_CC
cannam@86 670 CPPFLAGS
cannam@86 671 LDFLAGS
cannam@86 672 CFLAGS
cannam@86 673 CC
cannam@86 674 LIB_AGE
cannam@86 675 LIB_REVISION
cannam@86 676 LIB_CURRENT
cannam@86 677 MAINT
cannam@86 678 MAINTAINER_MODE_FALSE
cannam@86 679 MAINTAINER_MODE_TRUE
cannam@86 680 am__untar
cannam@86 681 am__tar
cannam@86 682 AMTAR
cannam@86 683 am__leading_dot
cannam@86 684 SET_MAKE
cannam@86 685 AWK
cannam@86 686 mkdir_p
cannam@86 687 MKDIR_P
cannam@86 688 INSTALL_STRIP_PROGRAM
cannam@86 689 STRIP
cannam@86 690 install_sh
cannam@86 691 MAKEINFO
cannam@86 692 AUTOHEADER
cannam@86 693 AUTOMAKE
cannam@86 694 AUTOCONF
cannam@86 695 ACLOCAL
cannam@86 696 VERSION
cannam@86 697 PACKAGE
cannam@86 698 CYGPATH_W
cannam@86 699 am__isrc
cannam@86 700 INSTALL_DATA
cannam@86 701 INSTALL_SCRIPT
cannam@86 702 INSTALL_PROGRAM
cannam@86 703 target_alias
cannam@86 704 host_alias
cannam@86 705 build_alias
cannam@86 706 LIBS
cannam@86 707 ECHO_T
cannam@86 708 ECHO_N
cannam@86 709 ECHO_C
cannam@86 710 DEFS
cannam@86 711 mandir
cannam@86 712 localedir
cannam@86 713 libdir
cannam@86 714 psdir
cannam@86 715 pdfdir
cannam@86 716 dvidir
cannam@86 717 htmldir
cannam@86 718 infodir
cannam@86 719 docdir
cannam@86 720 oldincludedir
cannam@86 721 includedir
cannam@86 722 localstatedir
cannam@86 723 sharedstatedir
cannam@86 724 sysconfdir
cannam@86 725 datadir
cannam@86 726 datarootdir
cannam@86 727 libexecdir
cannam@86 728 sbindir
cannam@86 729 bindir
cannam@86 730 program_transform_name
cannam@86 731 prefix
cannam@86 732 exec_prefix
cannam@86 733 PACKAGE_URL
cannam@86 734 PACKAGE_BUGREPORT
cannam@86 735 PACKAGE_STRING
cannam@86 736 PACKAGE_VERSION
cannam@86 737 PACKAGE_TARNAME
cannam@86 738 PACKAGE_NAME
cannam@86 739 PATH_SEPARATOR
cannam@86 740 SHELL'
cannam@86 741 ac_subst_files=''
cannam@86 742 ac_user_opts='
cannam@86 743 enable_option_checking
cannam@86 744 enable_maintainer_mode
cannam@86 745 enable_dependency_tracking
cannam@86 746 enable_shared
cannam@86 747 enable_static
cannam@86 748 with_pic
cannam@86 749 enable_fast_install
cannam@86 750 with_gnu_ld
cannam@86 751 with_sysroot
cannam@86 752 enable_libtool_lock
cannam@86 753 '
cannam@86 754 ac_precious_vars='build_alias
cannam@86 755 host_alias
cannam@86 756 target_alias
cannam@86 757 CC
cannam@86 758 CFLAGS
cannam@86 759 LDFLAGS
cannam@86 760 LIBS
cannam@86 761 CPPFLAGS
cannam@86 762 CPP'
cannam@86 763
cannam@86 764
cannam@86 765 # Initialize some variables set by options.
cannam@86 766 ac_init_help=
cannam@86 767 ac_init_version=false
cannam@86 768 ac_unrecognized_opts=
cannam@86 769 ac_unrecognized_sep=
cannam@86 770 # The variables have the same names as the options, with
cannam@86 771 # dashes changed to underlines.
cannam@86 772 cache_file=/dev/null
cannam@86 773 exec_prefix=NONE
cannam@86 774 no_create=
cannam@86 775 no_recursion=
cannam@86 776 prefix=NONE
cannam@86 777 program_prefix=NONE
cannam@86 778 program_suffix=NONE
cannam@86 779 program_transform_name=s,x,x,
cannam@86 780 silent=
cannam@86 781 site=
cannam@86 782 srcdir=
cannam@86 783 verbose=
cannam@86 784 x_includes=NONE
cannam@86 785 x_libraries=NONE
cannam@86 786
cannam@86 787 # Installation directory options.
cannam@86 788 # These are left unexpanded so users can "make install exec_prefix=/foo"
cannam@86 789 # and all the variables that are supposed to be based on exec_prefix
cannam@86 790 # by default will actually change.
cannam@86 791 # Use braces instead of parens because sh, perl, etc. also accept them.
cannam@86 792 # (The list follows the same order as the GNU Coding Standards.)
cannam@86 793 bindir='${exec_prefix}/bin'
cannam@86 794 sbindir='${exec_prefix}/sbin'
cannam@86 795 libexecdir='${exec_prefix}/libexec'
cannam@86 796 datarootdir='${prefix}/share'
cannam@86 797 datadir='${datarootdir}'
cannam@86 798 sysconfdir='${prefix}/etc'
cannam@86 799 sharedstatedir='${prefix}/com'
cannam@86 800 localstatedir='${prefix}/var'
cannam@86 801 includedir='${prefix}/include'
cannam@86 802 oldincludedir='/usr/include'
cannam@86 803 docdir='${datarootdir}/doc/${PACKAGE}'
cannam@86 804 infodir='${datarootdir}/info'
cannam@86 805 htmldir='${docdir}'
cannam@86 806 dvidir='${docdir}'
cannam@86 807 pdfdir='${docdir}'
cannam@86 808 psdir='${docdir}'
cannam@86 809 libdir='${exec_prefix}/lib'
cannam@86 810 localedir='${datarootdir}/locale'
cannam@86 811 mandir='${datarootdir}/man'
cannam@86 812
cannam@86 813 ac_prev=
cannam@86 814 ac_dashdash=
cannam@86 815 for ac_option
cannam@86 816 do
cannam@86 817 # If the previous option needs an argument, assign it.
cannam@86 818 if test -n "$ac_prev"; then
cannam@86 819 eval $ac_prev=\$ac_option
cannam@86 820 ac_prev=
cannam@86 821 continue
cannam@86 822 fi
cannam@86 823
cannam@86 824 case $ac_option in
cannam@86 825 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
cannam@86 826 *=) ac_optarg= ;;
cannam@86 827 *) ac_optarg=yes ;;
cannam@86 828 esac
cannam@86 829
cannam@86 830 # Accept the important Cygnus configure options, so we can diagnose typos.
cannam@86 831
cannam@86 832 case $ac_dashdash$ac_option in
cannam@86 833 --)
cannam@86 834 ac_dashdash=yes ;;
cannam@86 835
cannam@86 836 -bindir | --bindir | --bindi | --bind | --bin | --bi)
cannam@86 837 ac_prev=bindir ;;
cannam@86 838 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
cannam@86 839 bindir=$ac_optarg ;;
cannam@86 840
cannam@86 841 -build | --build | --buil | --bui | --bu)
cannam@86 842 ac_prev=build_alias ;;
cannam@86 843 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
cannam@86 844 build_alias=$ac_optarg ;;
cannam@86 845
cannam@86 846 -cache-file | --cache-file | --cache-fil | --cache-fi \
cannam@86 847 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
cannam@86 848 ac_prev=cache_file ;;
cannam@86 849 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
cannam@86 850 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
cannam@86 851 cache_file=$ac_optarg ;;
cannam@86 852
cannam@86 853 --config-cache | -C)
cannam@86 854 cache_file=config.cache ;;
cannam@86 855
cannam@86 856 -datadir | --datadir | --datadi | --datad)
cannam@86 857 ac_prev=datadir ;;
cannam@86 858 -datadir=* | --datadir=* | --datadi=* | --datad=*)
cannam@86 859 datadir=$ac_optarg ;;
cannam@86 860
cannam@86 861 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
cannam@86 862 | --dataroo | --dataro | --datar)
cannam@86 863 ac_prev=datarootdir ;;
cannam@86 864 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
cannam@86 865 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
cannam@86 866 datarootdir=$ac_optarg ;;
cannam@86 867
cannam@86 868 -disable-* | --disable-*)
cannam@86 869 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
cannam@86 870 # Reject names that are not valid shell variable names.
cannam@86 871 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cannam@86 872 as_fn_error $? "invalid feature name: $ac_useropt"
cannam@86 873 ac_useropt_orig=$ac_useropt
cannam@86 874 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
cannam@86 875 case $ac_user_opts in
cannam@86 876 *"
cannam@86 877 "enable_$ac_useropt"
cannam@86 878 "*) ;;
cannam@86 879 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
cannam@86 880 ac_unrecognized_sep=', ';;
cannam@86 881 esac
cannam@86 882 eval enable_$ac_useropt=no ;;
cannam@86 883
cannam@86 884 -docdir | --docdir | --docdi | --doc | --do)
cannam@86 885 ac_prev=docdir ;;
cannam@86 886 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
cannam@86 887 docdir=$ac_optarg ;;
cannam@86 888
cannam@86 889 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
cannam@86 890 ac_prev=dvidir ;;
cannam@86 891 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
cannam@86 892 dvidir=$ac_optarg ;;
cannam@86 893
cannam@86 894 -enable-* | --enable-*)
cannam@86 895 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
cannam@86 896 # Reject names that are not valid shell variable names.
cannam@86 897 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cannam@86 898 as_fn_error $? "invalid feature name: $ac_useropt"
cannam@86 899 ac_useropt_orig=$ac_useropt
cannam@86 900 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
cannam@86 901 case $ac_user_opts in
cannam@86 902 *"
cannam@86 903 "enable_$ac_useropt"
cannam@86 904 "*) ;;
cannam@86 905 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
cannam@86 906 ac_unrecognized_sep=', ';;
cannam@86 907 esac
cannam@86 908 eval enable_$ac_useropt=\$ac_optarg ;;
cannam@86 909
cannam@86 910 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
cannam@86 911 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
cannam@86 912 | --exec | --exe | --ex)
cannam@86 913 ac_prev=exec_prefix ;;
cannam@86 914 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
cannam@86 915 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
cannam@86 916 | --exec=* | --exe=* | --ex=*)
cannam@86 917 exec_prefix=$ac_optarg ;;
cannam@86 918
cannam@86 919 -gas | --gas | --ga | --g)
cannam@86 920 # Obsolete; use --with-gas.
cannam@86 921 with_gas=yes ;;
cannam@86 922
cannam@86 923 -help | --help | --hel | --he | -h)
cannam@86 924 ac_init_help=long ;;
cannam@86 925 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
cannam@86 926 ac_init_help=recursive ;;
cannam@86 927 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
cannam@86 928 ac_init_help=short ;;
cannam@86 929
cannam@86 930 -host | --host | --hos | --ho)
cannam@86 931 ac_prev=host_alias ;;
cannam@86 932 -host=* | --host=* | --hos=* | --ho=*)
cannam@86 933 host_alias=$ac_optarg ;;
cannam@86 934
cannam@86 935 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
cannam@86 936 ac_prev=htmldir ;;
cannam@86 937 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
cannam@86 938 | --ht=*)
cannam@86 939 htmldir=$ac_optarg ;;
cannam@86 940
cannam@86 941 -includedir | --includedir | --includedi | --included | --include \
cannam@86 942 | --includ | --inclu | --incl | --inc)
cannam@86 943 ac_prev=includedir ;;
cannam@86 944 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
cannam@86 945 | --includ=* | --inclu=* | --incl=* | --inc=*)
cannam@86 946 includedir=$ac_optarg ;;
cannam@86 947
cannam@86 948 -infodir | --infodir | --infodi | --infod | --info | --inf)
cannam@86 949 ac_prev=infodir ;;
cannam@86 950 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
cannam@86 951 infodir=$ac_optarg ;;
cannam@86 952
cannam@86 953 -libdir | --libdir | --libdi | --libd)
cannam@86 954 ac_prev=libdir ;;
cannam@86 955 -libdir=* | --libdir=* | --libdi=* | --libd=*)
cannam@86 956 libdir=$ac_optarg ;;
cannam@86 957
cannam@86 958 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
cannam@86 959 | --libexe | --libex | --libe)
cannam@86 960 ac_prev=libexecdir ;;
cannam@86 961 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
cannam@86 962 | --libexe=* | --libex=* | --libe=*)
cannam@86 963 libexecdir=$ac_optarg ;;
cannam@86 964
cannam@86 965 -localedir | --localedir | --localedi | --localed | --locale)
cannam@86 966 ac_prev=localedir ;;
cannam@86 967 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
cannam@86 968 localedir=$ac_optarg ;;
cannam@86 969
cannam@86 970 -localstatedir | --localstatedir | --localstatedi | --localstated \
cannam@86 971 | --localstate | --localstat | --localsta | --localst | --locals)
cannam@86 972 ac_prev=localstatedir ;;
cannam@86 973 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
cannam@86 974 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
cannam@86 975 localstatedir=$ac_optarg ;;
cannam@86 976
cannam@86 977 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
cannam@86 978 ac_prev=mandir ;;
cannam@86 979 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
cannam@86 980 mandir=$ac_optarg ;;
cannam@86 981
cannam@86 982 -nfp | --nfp | --nf)
cannam@86 983 # Obsolete; use --without-fp.
cannam@86 984 with_fp=no ;;
cannam@86 985
cannam@86 986 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
cannam@86 987 | --no-cr | --no-c | -n)
cannam@86 988 no_create=yes ;;
cannam@86 989
cannam@86 990 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
cannam@86 991 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
cannam@86 992 no_recursion=yes ;;
cannam@86 993
cannam@86 994 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
cannam@86 995 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
cannam@86 996 | --oldin | --oldi | --old | --ol | --o)
cannam@86 997 ac_prev=oldincludedir ;;
cannam@86 998 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
cannam@86 999 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
cannam@86 1000 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
cannam@86 1001 oldincludedir=$ac_optarg ;;
cannam@86 1002
cannam@86 1003 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
cannam@86 1004 ac_prev=prefix ;;
cannam@86 1005 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
cannam@86 1006 prefix=$ac_optarg ;;
cannam@86 1007
cannam@86 1008 -program-prefix | --program-prefix | --program-prefi | --program-pref \
cannam@86 1009 | --program-pre | --program-pr | --program-p)
cannam@86 1010 ac_prev=program_prefix ;;
cannam@86 1011 -program-prefix=* | --program-prefix=* | --program-prefi=* \
cannam@86 1012 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
cannam@86 1013 program_prefix=$ac_optarg ;;
cannam@86 1014
cannam@86 1015 -program-suffix | --program-suffix | --program-suffi | --program-suff \
cannam@86 1016 | --program-suf | --program-su | --program-s)
cannam@86 1017 ac_prev=program_suffix ;;
cannam@86 1018 -program-suffix=* | --program-suffix=* | --program-suffi=* \
cannam@86 1019 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
cannam@86 1020 program_suffix=$ac_optarg ;;
cannam@86 1021
cannam@86 1022 -program-transform-name | --program-transform-name \
cannam@86 1023 | --program-transform-nam | --program-transform-na \
cannam@86 1024 | --program-transform-n | --program-transform- \
cannam@86 1025 | --program-transform | --program-transfor \
cannam@86 1026 | --program-transfo | --program-transf \
cannam@86 1027 | --program-trans | --program-tran \
cannam@86 1028 | --progr-tra | --program-tr | --program-t)
cannam@86 1029 ac_prev=program_transform_name ;;
cannam@86 1030 -program-transform-name=* | --program-transform-name=* \
cannam@86 1031 | --program-transform-nam=* | --program-transform-na=* \
cannam@86 1032 | --program-transform-n=* | --program-transform-=* \
cannam@86 1033 | --program-transform=* | --program-transfor=* \
cannam@86 1034 | --program-transfo=* | --program-transf=* \
cannam@86 1035 | --program-trans=* | --program-tran=* \
cannam@86 1036 | --progr-tra=* | --program-tr=* | --program-t=*)
cannam@86 1037 program_transform_name=$ac_optarg ;;
cannam@86 1038
cannam@86 1039 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
cannam@86 1040 ac_prev=pdfdir ;;
cannam@86 1041 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
cannam@86 1042 pdfdir=$ac_optarg ;;
cannam@86 1043
cannam@86 1044 -psdir | --psdir | --psdi | --psd | --ps)
cannam@86 1045 ac_prev=psdir ;;
cannam@86 1046 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
cannam@86 1047 psdir=$ac_optarg ;;
cannam@86 1048
cannam@86 1049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
cannam@86 1050 | -silent | --silent | --silen | --sile | --sil)
cannam@86 1051 silent=yes ;;
cannam@86 1052
cannam@86 1053 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
cannam@86 1054 ac_prev=sbindir ;;
cannam@86 1055 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
cannam@86 1056 | --sbi=* | --sb=*)
cannam@86 1057 sbindir=$ac_optarg ;;
cannam@86 1058
cannam@86 1059 -sharedstatedir | --sharedstatedir | --sharedstatedi \
cannam@86 1060 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
cannam@86 1061 | --sharedst | --shareds | --shared | --share | --shar \
cannam@86 1062 | --sha | --sh)
cannam@86 1063 ac_prev=sharedstatedir ;;
cannam@86 1064 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
cannam@86 1065 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
cannam@86 1066 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
cannam@86 1067 | --sha=* | --sh=*)
cannam@86 1068 sharedstatedir=$ac_optarg ;;
cannam@86 1069
cannam@86 1070 -site | --site | --sit)
cannam@86 1071 ac_prev=site ;;
cannam@86 1072 -site=* | --site=* | --sit=*)
cannam@86 1073 site=$ac_optarg ;;
cannam@86 1074
cannam@86 1075 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
cannam@86 1076 ac_prev=srcdir ;;
cannam@86 1077 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
cannam@86 1078 srcdir=$ac_optarg ;;
cannam@86 1079
cannam@86 1080 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
cannam@86 1081 | --syscon | --sysco | --sysc | --sys | --sy)
cannam@86 1082 ac_prev=sysconfdir ;;
cannam@86 1083 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
cannam@86 1084 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
cannam@86 1085 sysconfdir=$ac_optarg ;;
cannam@86 1086
cannam@86 1087 -target | --target | --targe | --targ | --tar | --ta | --t)
cannam@86 1088 ac_prev=target_alias ;;
cannam@86 1089 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
cannam@86 1090 target_alias=$ac_optarg ;;
cannam@86 1091
cannam@86 1092 -v | -verbose | --verbose | --verbos | --verbo | --verb)
cannam@86 1093 verbose=yes ;;
cannam@86 1094
cannam@86 1095 -version | --version | --versio | --versi | --vers | -V)
cannam@86 1096 ac_init_version=: ;;
cannam@86 1097
cannam@86 1098 -with-* | --with-*)
cannam@86 1099 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
cannam@86 1100 # Reject names that are not valid shell variable names.
cannam@86 1101 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cannam@86 1102 as_fn_error $? "invalid package name: $ac_useropt"
cannam@86 1103 ac_useropt_orig=$ac_useropt
cannam@86 1104 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
cannam@86 1105 case $ac_user_opts in
cannam@86 1106 *"
cannam@86 1107 "with_$ac_useropt"
cannam@86 1108 "*) ;;
cannam@86 1109 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
cannam@86 1110 ac_unrecognized_sep=', ';;
cannam@86 1111 esac
cannam@86 1112 eval with_$ac_useropt=\$ac_optarg ;;
cannam@86 1113
cannam@86 1114 -without-* | --without-*)
cannam@86 1115 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
cannam@86 1116 # Reject names that are not valid shell variable names.
cannam@86 1117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cannam@86 1118 as_fn_error $? "invalid package name: $ac_useropt"
cannam@86 1119 ac_useropt_orig=$ac_useropt
cannam@86 1120 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
cannam@86 1121 case $ac_user_opts in
cannam@86 1122 *"
cannam@86 1123 "with_$ac_useropt"
cannam@86 1124 "*) ;;
cannam@86 1125 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
cannam@86 1126 ac_unrecognized_sep=', ';;
cannam@86 1127 esac
cannam@86 1128 eval with_$ac_useropt=no ;;
cannam@86 1129
cannam@86 1130 --x)
cannam@86 1131 # Obsolete; use --with-x.
cannam@86 1132 with_x=yes ;;
cannam@86 1133
cannam@86 1134 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
cannam@86 1135 | --x-incl | --x-inc | --x-in | --x-i)
cannam@86 1136 ac_prev=x_includes ;;
cannam@86 1137 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
cannam@86 1138 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
cannam@86 1139 x_includes=$ac_optarg ;;
cannam@86 1140
cannam@86 1141 -x-libraries | --x-libraries | --x-librarie | --x-librari \
cannam@86 1142 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
cannam@86 1143 ac_prev=x_libraries ;;
cannam@86 1144 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
cannam@86 1145 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
cannam@86 1146 x_libraries=$ac_optarg ;;
cannam@86 1147
cannam@86 1148 -*) as_fn_error $? "unrecognized option: \`$ac_option'
cannam@86 1149 Try \`$0 --help' for more information"
cannam@86 1150 ;;
cannam@86 1151
cannam@86 1152 *=*)
cannam@86 1153 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
cannam@86 1154 # Reject names that are not valid shell variable names.
cannam@86 1155 case $ac_envvar in #(
cannam@86 1156 '' | [0-9]* | *[!_$as_cr_alnum]* )
cannam@86 1157 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cannam@86 1158 esac
cannam@86 1159 eval $ac_envvar=\$ac_optarg
cannam@86 1160 export $ac_envvar ;;
cannam@86 1161
cannam@86 1162 *)
cannam@86 1163 # FIXME: should be removed in autoconf 3.0.
cannam@86 1164 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
cannam@86 1165 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
cannam@86 1166 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cannam@86 1167 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cannam@86 1168 ;;
cannam@86 1169
cannam@86 1170 esac
cannam@86 1171 done
cannam@86 1172
cannam@86 1173 if test -n "$ac_prev"; then
cannam@86 1174 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cannam@86 1175 as_fn_error $? "missing argument to $ac_option"
cannam@86 1176 fi
cannam@86 1177
cannam@86 1178 if test -n "$ac_unrecognized_opts"; then
cannam@86 1179 case $enable_option_checking in
cannam@86 1180 no) ;;
cannam@86 1181 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cannam@86 1182 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
cannam@86 1183 esac
cannam@86 1184 fi
cannam@86 1185
cannam@86 1186 # Check all directory arguments for consistency.
cannam@86 1187 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
cannam@86 1188 datadir sysconfdir sharedstatedir localstatedir includedir \
cannam@86 1189 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
cannam@86 1190 libdir localedir mandir
cannam@86 1191 do
cannam@86 1192 eval ac_val=\$$ac_var
cannam@86 1193 # Remove trailing slashes.
cannam@86 1194 case $ac_val in
cannam@86 1195 */ )
cannam@86 1196 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
cannam@86 1197 eval $ac_var=\$ac_val;;
cannam@86 1198 esac
cannam@86 1199 # Be sure to have absolute directory names.
cannam@86 1200 case $ac_val in
cannam@86 1201 [\\/$]* | ?:[\\/]* ) continue;;
cannam@86 1202 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
cannam@86 1203 esac
cannam@86 1204 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cannam@86 1205 done
cannam@86 1206
cannam@86 1207 # There might be people who depend on the old broken behavior: `$host'
cannam@86 1208 # used to hold the argument of --host etc.
cannam@86 1209 # FIXME: To remove some day.
cannam@86 1210 build=$build_alias
cannam@86 1211 host=$host_alias
cannam@86 1212 target=$target_alias
cannam@86 1213
cannam@86 1214 # FIXME: To remove some day.
cannam@86 1215 if test "x$host_alias" != x; then
cannam@86 1216 if test "x$build_alias" = x; then
cannam@86 1217 cross_compiling=maybe
cannam@86 1218 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
cannam@86 1219 If a cross compiler is detected then cross compile mode will be used" >&2
cannam@86 1220 elif test "x$build_alias" != "x$host_alias"; then
cannam@86 1221 cross_compiling=yes
cannam@86 1222 fi
cannam@86 1223 fi
cannam@86 1224
cannam@86 1225 ac_tool_prefix=
cannam@86 1226 test -n "$host_alias" && ac_tool_prefix=$host_alias-
cannam@86 1227
cannam@86 1228 test "$silent" = yes && exec 6>/dev/null
cannam@86 1229
cannam@86 1230
cannam@86 1231 ac_pwd=`pwd` && test -n "$ac_pwd" &&
cannam@86 1232 ac_ls_di=`ls -di .` &&
cannam@86 1233 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cannam@86 1234 as_fn_error $? "working directory cannot be determined"
cannam@86 1235 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cannam@86 1236 as_fn_error $? "pwd does not report name of working directory"
cannam@86 1237
cannam@86 1238
cannam@86 1239 # Find the source files, if location was not specified.
cannam@86 1240 if test -z "$srcdir"; then
cannam@86 1241 ac_srcdir_defaulted=yes
cannam@86 1242 # Try the directory containing this script, then the parent directory.
cannam@86 1243 ac_confdir=`$as_dirname -- "$as_myself" ||
cannam@86 1244 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@86 1245 X"$as_myself" : 'X\(//\)[^/]' \| \
cannam@86 1246 X"$as_myself" : 'X\(//\)$' \| \
cannam@86 1247 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
cannam@86 1248 $as_echo X"$as_myself" |
cannam@86 1249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@86 1250 s//\1/
cannam@86 1251 q
cannam@86 1252 }
cannam@86 1253 /^X\(\/\/\)[^/].*/{
cannam@86 1254 s//\1/
cannam@86 1255 q
cannam@86 1256 }
cannam@86 1257 /^X\(\/\/\)$/{
cannam@86 1258 s//\1/
cannam@86 1259 q
cannam@86 1260 }
cannam@86 1261 /^X\(\/\).*/{
cannam@86 1262 s//\1/
cannam@86 1263 q
cannam@86 1264 }
cannam@86 1265 s/.*/./; q'`
cannam@86 1266 srcdir=$ac_confdir
cannam@86 1267 if test ! -r "$srcdir/$ac_unique_file"; then
cannam@86 1268 srcdir=..
cannam@86 1269 fi
cannam@86 1270 else
cannam@86 1271 ac_srcdir_defaulted=no
cannam@86 1272 fi
cannam@86 1273 if test ! -r "$srcdir/$ac_unique_file"; then
cannam@86 1274 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cannam@86 1275 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cannam@86 1276 fi
cannam@86 1277 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
cannam@86 1278 ac_abs_confdir=`(
cannam@86 1279 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cannam@86 1280 pwd)`
cannam@86 1281 # When building in place, set srcdir=.
cannam@86 1282 if test "$ac_abs_confdir" = "$ac_pwd"; then
cannam@86 1283 srcdir=.
cannam@86 1284 fi
cannam@86 1285 # Remove unnecessary trailing slashes from srcdir.
cannam@86 1286 # Double slashes in file names in object file debugging info
cannam@86 1287 # mess up M-x gdb in Emacs.
cannam@86 1288 case $srcdir in
cannam@86 1289 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
cannam@86 1290 esac
cannam@86 1291 for ac_var in $ac_precious_vars; do
cannam@86 1292 eval ac_env_${ac_var}_set=\${${ac_var}+set}
cannam@86 1293 eval ac_env_${ac_var}_value=\$${ac_var}
cannam@86 1294 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
cannam@86 1295 eval ac_cv_env_${ac_var}_value=\$${ac_var}
cannam@86 1296 done
cannam@86 1297
cannam@86 1298 #
cannam@86 1299 # Report the --help message.
cannam@86 1300 #
cannam@86 1301 if test "$ac_init_help" = "long"; then
cannam@86 1302 # Omit some internal or obsolete options to make the list less imposing.
cannam@86 1303 # This message is too long to be a string in the A/UX 3.1 sh.
cannam@86 1304 cat <<_ACEOF
cannam@86 1305 \`configure' configures this package to adapt to many kinds of systems.
cannam@86 1306
cannam@86 1307 Usage: $0 [OPTION]... [VAR=VALUE]...
cannam@86 1308
cannam@86 1309 To assign environment variables (e.g., CC, CFLAGS...), specify them as
cannam@86 1310 VAR=VALUE. See below for descriptions of some of the useful variables.
cannam@86 1311
cannam@86 1312 Defaults for the options are specified in brackets.
cannam@86 1313
cannam@86 1314 Configuration:
cannam@86 1315 -h, --help display this help and exit
cannam@86 1316 --help=short display options specific to this package
cannam@86 1317 --help=recursive display the short help of all the included packages
cannam@86 1318 -V, --version display version information and exit
cannam@86 1319 -q, --quiet, --silent do not print \`checking ...' messages
cannam@86 1320 --cache-file=FILE cache test results in FILE [disabled]
cannam@86 1321 -C, --config-cache alias for \`--cache-file=config.cache'
cannam@86 1322 -n, --no-create do not create output files
cannam@86 1323 --srcdir=DIR find the sources in DIR [configure dir or \`..']
cannam@86 1324
cannam@86 1325 Installation directories:
cannam@86 1326 --prefix=PREFIX install architecture-independent files in PREFIX
cannam@86 1327 [$ac_default_prefix]
cannam@86 1328 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
cannam@86 1329 [PREFIX]
cannam@86 1330
cannam@86 1331 By default, \`make install' will install all the files in
cannam@86 1332 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
cannam@86 1333 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
cannam@86 1334 for instance \`--prefix=\$HOME'.
cannam@86 1335
cannam@86 1336 For better control, use the options below.
cannam@86 1337
cannam@86 1338 Fine tuning of the installation directories:
cannam@86 1339 --bindir=DIR user executables [EPREFIX/bin]
cannam@86 1340 --sbindir=DIR system admin executables [EPREFIX/sbin]
cannam@86 1341 --libexecdir=DIR program executables [EPREFIX/libexec]
cannam@86 1342 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
cannam@86 1343 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
cannam@86 1344 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
cannam@86 1345 --libdir=DIR object code libraries [EPREFIX/lib]
cannam@86 1346 --includedir=DIR C header files [PREFIX/include]
cannam@86 1347 --oldincludedir=DIR C header files for non-gcc [/usr/include]
cannam@86 1348 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
cannam@86 1349 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
cannam@86 1350 --infodir=DIR info documentation [DATAROOTDIR/info]
cannam@86 1351 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
cannam@86 1352 --mandir=DIR man documentation [DATAROOTDIR/man]
cannam@86 1353 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
cannam@86 1354 --htmldir=DIR html documentation [DOCDIR]
cannam@86 1355 --dvidir=DIR dvi documentation [DOCDIR]
cannam@86 1356 --pdfdir=DIR pdf documentation [DOCDIR]
cannam@86 1357 --psdir=DIR ps documentation [DOCDIR]
cannam@86 1358 _ACEOF
cannam@86 1359
cannam@86 1360 cat <<\_ACEOF
cannam@86 1361
cannam@86 1362 Program names:
cannam@86 1363 --program-prefix=PREFIX prepend PREFIX to installed program names
cannam@86 1364 --program-suffix=SUFFIX append SUFFIX to installed program names
cannam@86 1365 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
cannam@86 1366
cannam@86 1367 System types:
cannam@86 1368 --build=BUILD configure for building on BUILD [guessed]
cannam@86 1369 --host=HOST cross-compile to build programs to run on HOST [BUILD]
cannam@86 1370 _ACEOF
cannam@86 1371 fi
cannam@86 1372
cannam@86 1373 if test -n "$ac_init_help"; then
cannam@86 1374
cannam@86 1375 cat <<\_ACEOF
cannam@86 1376
cannam@86 1377 Optional Features:
cannam@86 1378 --disable-option-checking ignore unrecognized --enable/--with options
cannam@86 1379 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
cannam@86 1380 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cannam@86 1381 --enable-maintainer-mode enable make rules and dependencies not useful
cannam@86 1382 (and sometimes confusing) to the casual installer
cannam@86 1383 --disable-dependency-tracking speeds up one-time build
cannam@86 1384 --enable-dependency-tracking do not reject slow dependency extractors
cannam@86 1385 --enable-shared[=PKGS] build shared libraries [default=yes]
cannam@86 1386 --enable-static[=PKGS] build static libraries [default=yes]
cannam@86 1387 --enable-fast-install[=PKGS]
cannam@86 1388 optimize for fast installation [default=yes]
cannam@86 1389 --disable-libtool-lock avoid locking (might break parallel builds)
cannam@86 1390
cannam@86 1391 Optional Packages:
cannam@86 1392 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
cannam@86 1393 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cannam@86 1394 --with-pic try to use only PIC/non-PIC objects [default=use
cannam@86 1395 both]
cannam@86 1396 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cannam@86 1397 --with-sysroot=DIR Search for dependent libraries within DIR
cannam@86 1398 (or the compiler's sysroot if not specified).
cannam@86 1399
cannam@86 1400 Some influential environment variables:
cannam@86 1401 CC C compiler command
cannam@86 1402 CFLAGS C compiler flags
cannam@86 1403 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
cannam@86 1404 nonstandard directory <lib dir>
cannam@86 1405 LIBS libraries to pass to the linker, e.g. -l<library>
cannam@86 1406 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cannam@86 1407 you have headers in a nonstandard directory <include dir>
cannam@86 1408 CPP C preprocessor
cannam@86 1409
cannam@86 1410 Use these variables to override the choices made by `configure' or to help
cannam@86 1411 it to find libraries and programs with nonstandard names/locations.
cannam@86 1412
cannam@86 1413 Report bugs to the package provider.
cannam@86 1414 _ACEOF
cannam@86 1415 ac_status=$?
cannam@86 1416 fi
cannam@86 1417
cannam@86 1418 if test "$ac_init_help" = "recursive"; then
cannam@86 1419 # If there are subdirs, report their specific --help.
cannam@86 1420 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
cannam@86 1421 test -d "$ac_dir" ||
cannam@86 1422 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
cannam@86 1423 continue
cannam@86 1424 ac_builddir=.
cannam@86 1425
cannam@86 1426 case "$ac_dir" in
cannam@86 1427 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
cannam@86 1428 *)
cannam@86 1429 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
cannam@86 1430 # A ".." for each directory in $ac_dir_suffix.
cannam@86 1431 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
cannam@86 1432 case $ac_top_builddir_sub in
cannam@86 1433 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
cannam@86 1434 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
cannam@86 1435 esac ;;
cannam@86 1436 esac
cannam@86 1437 ac_abs_top_builddir=$ac_pwd
cannam@86 1438 ac_abs_builddir=$ac_pwd$ac_dir_suffix
cannam@86 1439 # for backward compatibility:
cannam@86 1440 ac_top_builddir=$ac_top_build_prefix
cannam@86 1441
cannam@86 1442 case $srcdir in
cannam@86 1443 .) # We are building in place.
cannam@86 1444 ac_srcdir=.
cannam@86 1445 ac_top_srcdir=$ac_top_builddir_sub
cannam@86 1446 ac_abs_top_srcdir=$ac_pwd ;;
cannam@86 1447 [\\/]* | ?:[\\/]* ) # Absolute name.
cannam@86 1448 ac_srcdir=$srcdir$ac_dir_suffix;
cannam@86 1449 ac_top_srcdir=$srcdir
cannam@86 1450 ac_abs_top_srcdir=$srcdir ;;
cannam@86 1451 *) # Relative name.
cannam@86 1452 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
cannam@86 1453 ac_top_srcdir=$ac_top_build_prefix$srcdir
cannam@86 1454 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
cannam@86 1455 esac
cannam@86 1456 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
cannam@86 1457
cannam@86 1458 cd "$ac_dir" || { ac_status=$?; continue; }
cannam@86 1459 # Check for guested configure.
cannam@86 1460 if test -f "$ac_srcdir/configure.gnu"; then
cannam@86 1461 echo &&
cannam@86 1462 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
cannam@86 1463 elif test -f "$ac_srcdir/configure"; then
cannam@86 1464 echo &&
cannam@86 1465 $SHELL "$ac_srcdir/configure" --help=recursive
cannam@86 1466 else
cannam@86 1467 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
cannam@86 1468 fi || ac_status=$?
cannam@86 1469 cd "$ac_pwd" || { ac_status=$?; break; }
cannam@86 1470 done
cannam@86 1471 fi
cannam@86 1472
cannam@86 1473 test -n "$ac_init_help" && exit $ac_status
cannam@86 1474 if $ac_init_version; then
cannam@86 1475 cat <<\_ACEOF
cannam@86 1476 configure
cannam@86 1477 generated by GNU Autoconf 2.68
cannam@86 1478
cannam@86 1479 Copyright (C) 2010 Free Software Foundation, Inc.
cannam@86 1480 This configure script is free software; the Free Software Foundation
cannam@86 1481 gives unlimited permission to copy, distribute and modify it.
cannam@86 1482 _ACEOF
cannam@86 1483 exit
cannam@86 1484 fi
cannam@86 1485
cannam@86 1486 ## ------------------------ ##
cannam@86 1487 ## Autoconf initialization. ##
cannam@86 1488 ## ------------------------ ##
cannam@86 1489
cannam@86 1490 # ac_fn_c_try_compile LINENO
cannam@86 1491 # --------------------------
cannam@86 1492 # Try to compile conftest.$ac_ext, and return whether this succeeded.
cannam@86 1493 ac_fn_c_try_compile ()
cannam@86 1494 {
cannam@86 1495 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@86 1496 rm -f conftest.$ac_objext
cannam@86 1497 if { { ac_try="$ac_compile"
cannam@86 1498 case "(($ac_try" in
cannam@86 1499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@86 1500 *) ac_try_echo=$ac_try;;
cannam@86 1501 esac
cannam@86 1502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@86 1503 $as_echo "$ac_try_echo"; } >&5
cannam@86 1504 (eval "$ac_compile") 2>conftest.err
cannam@86 1505 ac_status=$?
cannam@86 1506 if test -s conftest.err; then
cannam@86 1507 grep -v '^ *+' conftest.err >conftest.er1
cannam@86 1508 cat conftest.er1 >&5
cannam@86 1509 mv -f conftest.er1 conftest.err
cannam@86 1510 fi
cannam@86 1511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 1512 test $ac_status = 0; } && {
cannam@86 1513 test -z "$ac_c_werror_flag" ||
cannam@86 1514 test ! -s conftest.err
cannam@86 1515 } && test -s conftest.$ac_objext; then :
cannam@86 1516 ac_retval=0
cannam@86 1517 else
cannam@86 1518 $as_echo "$as_me: failed program was:" >&5
cannam@86 1519 sed 's/^/| /' conftest.$ac_ext >&5
cannam@86 1520
cannam@86 1521 ac_retval=1
cannam@86 1522 fi
cannam@86 1523 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@86 1524 as_fn_set_status $ac_retval
cannam@86 1525
cannam@86 1526 } # ac_fn_c_try_compile
cannam@86 1527
cannam@86 1528 # ac_fn_c_try_link LINENO
cannam@86 1529 # -----------------------
cannam@86 1530 # Try to link conftest.$ac_ext, and return whether this succeeded.
cannam@86 1531 ac_fn_c_try_link ()
cannam@86 1532 {
cannam@86 1533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@86 1534 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@86 1535 if { { ac_try="$ac_link"
cannam@86 1536 case "(($ac_try" in
cannam@86 1537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@86 1538 *) ac_try_echo=$ac_try;;
cannam@86 1539 esac
cannam@86 1540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@86 1541 $as_echo "$ac_try_echo"; } >&5
cannam@86 1542 (eval "$ac_link") 2>conftest.err
cannam@86 1543 ac_status=$?
cannam@86 1544 if test -s conftest.err; then
cannam@86 1545 grep -v '^ *+' conftest.err >conftest.er1
cannam@86 1546 cat conftest.er1 >&5
cannam@86 1547 mv -f conftest.er1 conftest.err
cannam@86 1548 fi
cannam@86 1549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 1550 test $ac_status = 0; } && {
cannam@86 1551 test -z "$ac_c_werror_flag" ||
cannam@86 1552 test ! -s conftest.err
cannam@86 1553 } && test -s conftest$ac_exeext && {
cannam@86 1554 test "$cross_compiling" = yes ||
cannam@86 1555 $as_test_x conftest$ac_exeext
cannam@86 1556 }; then :
cannam@86 1557 ac_retval=0
cannam@86 1558 else
cannam@86 1559 $as_echo "$as_me: failed program was:" >&5
cannam@86 1560 sed 's/^/| /' conftest.$ac_ext >&5
cannam@86 1561
cannam@86 1562 ac_retval=1
cannam@86 1563 fi
cannam@86 1564 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
cannam@86 1565 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
cannam@86 1566 # interfere with the next link command; also delete a directory that is
cannam@86 1567 # left behind by Apple's compiler. We do this before executing the actions.
cannam@86 1568 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cannam@86 1569 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@86 1570 as_fn_set_status $ac_retval
cannam@86 1571
cannam@86 1572 } # ac_fn_c_try_link
cannam@86 1573
cannam@86 1574 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
cannam@86 1575 # -------------------------------------------------------
cannam@86 1576 # Tests whether HEADER exists and can be compiled using the include files in
cannam@86 1577 # INCLUDES, setting the cache variable VAR accordingly.
cannam@86 1578 ac_fn_c_check_header_compile ()
cannam@86 1579 {
cannam@86 1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@86 1581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
cannam@86 1582 $as_echo_n "checking for $2... " >&6; }
cannam@86 1583 if eval \${$3+:} false; then :
cannam@86 1584 $as_echo_n "(cached) " >&6
cannam@86 1585 else
cannam@86 1586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 1587 /* end confdefs.h. */
cannam@86 1588 $4
cannam@86 1589 #include <$2>
cannam@86 1590 _ACEOF
cannam@86 1591 if ac_fn_c_try_compile "$LINENO"; then :
cannam@86 1592 eval "$3=yes"
cannam@86 1593 else
cannam@86 1594 eval "$3=no"
cannam@86 1595 fi
cannam@86 1596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@86 1597 fi
cannam@86 1598 eval ac_res=\$$3
cannam@86 1599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cannam@86 1600 $as_echo "$ac_res" >&6; }
cannam@86 1601 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@86 1602
cannam@86 1603 } # ac_fn_c_check_header_compile
cannam@86 1604
cannam@86 1605 # ac_fn_c_try_cpp LINENO
cannam@86 1606 # ----------------------
cannam@86 1607 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
cannam@86 1608 ac_fn_c_try_cpp ()
cannam@86 1609 {
cannam@86 1610 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@86 1611 if { { ac_try="$ac_cpp conftest.$ac_ext"
cannam@86 1612 case "(($ac_try" in
cannam@86 1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@86 1614 *) ac_try_echo=$ac_try;;
cannam@86 1615 esac
cannam@86 1616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@86 1617 $as_echo "$ac_try_echo"; } >&5
cannam@86 1618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
cannam@86 1619 ac_status=$?
cannam@86 1620 if test -s conftest.err; then
cannam@86 1621 grep -v '^ *+' conftest.err >conftest.er1
cannam@86 1622 cat conftest.er1 >&5
cannam@86 1623 mv -f conftest.er1 conftest.err
cannam@86 1624 fi
cannam@86 1625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 1626 test $ac_status = 0; } > conftest.i && {
cannam@86 1627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
cannam@86 1628 test ! -s conftest.err
cannam@86 1629 }; then :
cannam@86 1630 ac_retval=0
cannam@86 1631 else
cannam@86 1632 $as_echo "$as_me: failed program was:" >&5
cannam@86 1633 sed 's/^/| /' conftest.$ac_ext >&5
cannam@86 1634
cannam@86 1635 ac_retval=1
cannam@86 1636 fi
cannam@86 1637 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@86 1638 as_fn_set_status $ac_retval
cannam@86 1639
cannam@86 1640 } # ac_fn_c_try_cpp
cannam@86 1641
cannam@86 1642 # ac_fn_c_try_run LINENO
cannam@86 1643 # ----------------------
cannam@86 1644 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
cannam@86 1645 # that executables *can* be run.
cannam@86 1646 ac_fn_c_try_run ()
cannam@86 1647 {
cannam@86 1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@86 1649 if { { ac_try="$ac_link"
cannam@86 1650 case "(($ac_try" in
cannam@86 1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@86 1652 *) ac_try_echo=$ac_try;;
cannam@86 1653 esac
cannam@86 1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@86 1655 $as_echo "$ac_try_echo"; } >&5
cannam@86 1656 (eval "$ac_link") 2>&5
cannam@86 1657 ac_status=$?
cannam@86 1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 1659 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
cannam@86 1660 { { case "(($ac_try" in
cannam@86 1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@86 1662 *) ac_try_echo=$ac_try;;
cannam@86 1663 esac
cannam@86 1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@86 1665 $as_echo "$ac_try_echo"; } >&5
cannam@86 1666 (eval "$ac_try") 2>&5
cannam@86 1667 ac_status=$?
cannam@86 1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 1669 test $ac_status = 0; }; }; then :
cannam@86 1670 ac_retval=0
cannam@86 1671 else
cannam@86 1672 $as_echo "$as_me: program exited with status $ac_status" >&5
cannam@86 1673 $as_echo "$as_me: failed program was:" >&5
cannam@86 1674 sed 's/^/| /' conftest.$ac_ext >&5
cannam@86 1675
cannam@86 1676 ac_retval=$ac_status
cannam@86 1677 fi
cannam@86 1678 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cannam@86 1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@86 1680 as_fn_set_status $ac_retval
cannam@86 1681
cannam@86 1682 } # ac_fn_c_try_run
cannam@86 1683
cannam@86 1684 # ac_fn_c_check_func LINENO FUNC VAR
cannam@86 1685 # ----------------------------------
cannam@86 1686 # Tests whether FUNC exists, setting the cache variable VAR accordingly
cannam@86 1687 ac_fn_c_check_func ()
cannam@86 1688 {
cannam@86 1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@86 1690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
cannam@86 1691 $as_echo_n "checking for $2... " >&6; }
cannam@86 1692 if eval \${$3+:} false; then :
cannam@86 1693 $as_echo_n "(cached) " >&6
cannam@86 1694 else
cannam@86 1695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 1696 /* end confdefs.h. */
cannam@86 1697 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
cannam@86 1698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
cannam@86 1699 #define $2 innocuous_$2
cannam@86 1700
cannam@86 1701 /* System header to define __stub macros and hopefully few prototypes,
cannam@86 1702 which can conflict with char $2 (); below.
cannam@86 1703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@86 1704 <limits.h> exists even on freestanding compilers. */
cannam@86 1705
cannam@86 1706 #ifdef __STDC__
cannam@86 1707 # include <limits.h>
cannam@86 1708 #else
cannam@86 1709 # include <assert.h>
cannam@86 1710 #endif
cannam@86 1711
cannam@86 1712 #undef $2
cannam@86 1713
cannam@86 1714 /* Override any GCC internal prototype to avoid an error.
cannam@86 1715 Use char because int might match the return type of a GCC
cannam@86 1716 builtin and then its argument prototype would still apply. */
cannam@86 1717 #ifdef __cplusplus
cannam@86 1718 extern "C"
cannam@86 1719 #endif
cannam@86 1720 char $2 ();
cannam@86 1721 /* The GNU C library defines this for functions which it implements
cannam@86 1722 to always fail with ENOSYS. Some functions are actually named
cannam@86 1723 something starting with __ and the normal name is an alias. */
cannam@86 1724 #if defined __stub_$2 || defined __stub___$2
cannam@86 1725 choke me
cannam@86 1726 #endif
cannam@86 1727
cannam@86 1728 int
cannam@86 1729 main ()
cannam@86 1730 {
cannam@86 1731 return $2 ();
cannam@86 1732 ;
cannam@86 1733 return 0;
cannam@86 1734 }
cannam@86 1735 _ACEOF
cannam@86 1736 if ac_fn_c_try_link "$LINENO"; then :
cannam@86 1737 eval "$3=yes"
cannam@86 1738 else
cannam@86 1739 eval "$3=no"
cannam@86 1740 fi
cannam@86 1741 rm -f core conftest.err conftest.$ac_objext \
cannam@86 1742 conftest$ac_exeext conftest.$ac_ext
cannam@86 1743 fi
cannam@86 1744 eval ac_res=\$$3
cannam@86 1745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cannam@86 1746 $as_echo "$ac_res" >&6; }
cannam@86 1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@86 1748
cannam@86 1749 } # ac_fn_c_check_func
cannam@86 1750
cannam@86 1751 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
cannam@86 1752 # -------------------------------------------------------
cannam@86 1753 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
cannam@86 1754 # the include files in INCLUDES and setting the cache variable VAR
cannam@86 1755 # accordingly.
cannam@86 1756 ac_fn_c_check_header_mongrel ()
cannam@86 1757 {
cannam@86 1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@86 1759 if eval \${$3+:} false; then :
cannam@86 1760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
cannam@86 1761 $as_echo_n "checking for $2... " >&6; }
cannam@86 1762 if eval \${$3+:} false; then :
cannam@86 1763 $as_echo_n "(cached) " >&6
cannam@86 1764 fi
cannam@86 1765 eval ac_res=\$$3
cannam@86 1766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cannam@86 1767 $as_echo "$ac_res" >&6; }
cannam@86 1768 else
cannam@86 1769 # Is the header compilable?
cannam@86 1770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
cannam@86 1771 $as_echo_n "checking $2 usability... " >&6; }
cannam@86 1772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 1773 /* end confdefs.h. */
cannam@86 1774 $4
cannam@86 1775 #include <$2>
cannam@86 1776 _ACEOF
cannam@86 1777 if ac_fn_c_try_compile "$LINENO"; then :
cannam@86 1778 ac_header_compiler=yes
cannam@86 1779 else
cannam@86 1780 ac_header_compiler=no
cannam@86 1781 fi
cannam@86 1782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@86 1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
cannam@86 1784 $as_echo "$ac_header_compiler" >&6; }
cannam@86 1785
cannam@86 1786 # Is the header present?
cannam@86 1787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
cannam@86 1788 $as_echo_n "checking $2 presence... " >&6; }
cannam@86 1789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 1790 /* end confdefs.h. */
cannam@86 1791 #include <$2>
cannam@86 1792 _ACEOF
cannam@86 1793 if ac_fn_c_try_cpp "$LINENO"; then :
cannam@86 1794 ac_header_preproc=yes
cannam@86 1795 else
cannam@86 1796 ac_header_preproc=no
cannam@86 1797 fi
cannam@86 1798 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@86 1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
cannam@86 1800 $as_echo "$ac_header_preproc" >&6; }
cannam@86 1801
cannam@86 1802 # So? What about this header?
cannam@86 1803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
cannam@86 1804 yes:no: )
cannam@86 1805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
cannam@86 1806 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
cannam@86 1807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
cannam@86 1808 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cannam@86 1809 ;;
cannam@86 1810 no:yes:* )
cannam@86 1811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
cannam@86 1812 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
cannam@86 1813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
cannam@86 1814 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
cannam@86 1815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
cannam@86 1816 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
cannam@86 1817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
cannam@86 1818 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
cannam@86 1819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
cannam@86 1820 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cannam@86 1821 ;;
cannam@86 1822 esac
cannam@86 1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
cannam@86 1824 $as_echo_n "checking for $2... " >&6; }
cannam@86 1825 if eval \${$3+:} false; then :
cannam@86 1826 $as_echo_n "(cached) " >&6
cannam@86 1827 else
cannam@86 1828 eval "$3=\$ac_header_compiler"
cannam@86 1829 fi
cannam@86 1830 eval ac_res=\$$3
cannam@86 1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cannam@86 1832 $as_echo "$ac_res" >&6; }
cannam@86 1833 fi
cannam@86 1834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@86 1835
cannam@86 1836 } # ac_fn_c_check_header_mongrel
cannam@86 1837
cannam@86 1838 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
cannam@86 1839 # --------------------------------------------
cannam@86 1840 # Tries to find the compile-time value of EXPR in a program that includes
cannam@86 1841 # INCLUDES, setting VAR accordingly. Returns whether the value could be
cannam@86 1842 # computed
cannam@86 1843 ac_fn_c_compute_int ()
cannam@86 1844 {
cannam@86 1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@86 1846 if test "$cross_compiling" = yes; then
cannam@86 1847 # Depending upon the size, compute the lo and hi bounds.
cannam@86 1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 1849 /* end confdefs.h. */
cannam@86 1850 $4
cannam@86 1851 int
cannam@86 1852 main ()
cannam@86 1853 {
cannam@86 1854 static int test_array [1 - 2 * !(($2) >= 0)];
cannam@86 1855 test_array [0] = 0
cannam@86 1856
cannam@86 1857 ;
cannam@86 1858 return 0;
cannam@86 1859 }
cannam@86 1860 _ACEOF
cannam@86 1861 if ac_fn_c_try_compile "$LINENO"; then :
cannam@86 1862 ac_lo=0 ac_mid=0
cannam@86 1863 while :; do
cannam@86 1864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 1865 /* end confdefs.h. */
cannam@86 1866 $4
cannam@86 1867 int
cannam@86 1868 main ()
cannam@86 1869 {
cannam@86 1870 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cannam@86 1871 test_array [0] = 0
cannam@86 1872
cannam@86 1873 ;
cannam@86 1874 return 0;
cannam@86 1875 }
cannam@86 1876 _ACEOF
cannam@86 1877 if ac_fn_c_try_compile "$LINENO"; then :
cannam@86 1878 ac_hi=$ac_mid; break
cannam@86 1879 else
cannam@86 1880 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
cannam@86 1881 if test $ac_lo -le $ac_mid; then
cannam@86 1882 ac_lo= ac_hi=
cannam@86 1883 break
cannam@86 1884 fi
cannam@86 1885 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
cannam@86 1886 fi
cannam@86 1887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@86 1888 done
cannam@86 1889 else
cannam@86 1890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 1891 /* end confdefs.h. */
cannam@86 1892 $4
cannam@86 1893 int
cannam@86 1894 main ()
cannam@86 1895 {
cannam@86 1896 static int test_array [1 - 2 * !(($2) < 0)];
cannam@86 1897 test_array [0] = 0
cannam@86 1898
cannam@86 1899 ;
cannam@86 1900 return 0;
cannam@86 1901 }
cannam@86 1902 _ACEOF
cannam@86 1903 if ac_fn_c_try_compile "$LINENO"; then :
cannam@86 1904 ac_hi=-1 ac_mid=-1
cannam@86 1905 while :; do
cannam@86 1906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 1907 /* end confdefs.h. */
cannam@86 1908 $4
cannam@86 1909 int
cannam@86 1910 main ()
cannam@86 1911 {
cannam@86 1912 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
cannam@86 1913 test_array [0] = 0
cannam@86 1914
cannam@86 1915 ;
cannam@86 1916 return 0;
cannam@86 1917 }
cannam@86 1918 _ACEOF
cannam@86 1919 if ac_fn_c_try_compile "$LINENO"; then :
cannam@86 1920 ac_lo=$ac_mid; break
cannam@86 1921 else
cannam@86 1922 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
cannam@86 1923 if test $ac_mid -le $ac_hi; then
cannam@86 1924 ac_lo= ac_hi=
cannam@86 1925 break
cannam@86 1926 fi
cannam@86 1927 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
cannam@86 1928 fi
cannam@86 1929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@86 1930 done
cannam@86 1931 else
cannam@86 1932 ac_lo= ac_hi=
cannam@86 1933 fi
cannam@86 1934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@86 1935 fi
cannam@86 1936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@86 1937 # Binary search between lo and hi bounds.
cannam@86 1938 while test "x$ac_lo" != "x$ac_hi"; do
cannam@86 1939 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
cannam@86 1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 1941 /* end confdefs.h. */
cannam@86 1942 $4
cannam@86 1943 int
cannam@86 1944 main ()
cannam@86 1945 {
cannam@86 1946 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cannam@86 1947 test_array [0] = 0
cannam@86 1948
cannam@86 1949 ;
cannam@86 1950 return 0;
cannam@86 1951 }
cannam@86 1952 _ACEOF
cannam@86 1953 if ac_fn_c_try_compile "$LINENO"; then :
cannam@86 1954 ac_hi=$ac_mid
cannam@86 1955 else
cannam@86 1956 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
cannam@86 1957 fi
cannam@86 1958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@86 1959 done
cannam@86 1960 case $ac_lo in #((
cannam@86 1961 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
cannam@86 1962 '') ac_retval=1 ;;
cannam@86 1963 esac
cannam@86 1964 else
cannam@86 1965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 1966 /* end confdefs.h. */
cannam@86 1967 $4
cannam@86 1968 static long int longval () { return $2; }
cannam@86 1969 static unsigned long int ulongval () { return $2; }
cannam@86 1970 #include <stdio.h>
cannam@86 1971 #include <stdlib.h>
cannam@86 1972 int
cannam@86 1973 main ()
cannam@86 1974 {
cannam@86 1975
cannam@86 1976 FILE *f = fopen ("conftest.val", "w");
cannam@86 1977 if (! f)
cannam@86 1978 return 1;
cannam@86 1979 if (($2) < 0)
cannam@86 1980 {
cannam@86 1981 long int i = longval ();
cannam@86 1982 if (i != ($2))
cannam@86 1983 return 1;
cannam@86 1984 fprintf (f, "%ld", i);
cannam@86 1985 }
cannam@86 1986 else
cannam@86 1987 {
cannam@86 1988 unsigned long int i = ulongval ();
cannam@86 1989 if (i != ($2))
cannam@86 1990 return 1;
cannam@86 1991 fprintf (f, "%lu", i);
cannam@86 1992 }
cannam@86 1993 /* Do not output a trailing newline, as this causes \r\n confusion
cannam@86 1994 on some platforms. */
cannam@86 1995 return ferror (f) || fclose (f) != 0;
cannam@86 1996
cannam@86 1997 ;
cannam@86 1998 return 0;
cannam@86 1999 }
cannam@86 2000 _ACEOF
cannam@86 2001 if ac_fn_c_try_run "$LINENO"; then :
cannam@86 2002 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
cannam@86 2003 else
cannam@86 2004 ac_retval=1
cannam@86 2005 fi
cannam@86 2006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
cannam@86 2007 conftest.$ac_objext conftest.beam conftest.$ac_ext
cannam@86 2008 rm -f conftest.val
cannam@86 2009
cannam@86 2010 fi
cannam@86 2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cannam@86 2012 as_fn_set_status $ac_retval
cannam@86 2013
cannam@86 2014 } # ac_fn_c_compute_int
cannam@86 2015 cat >config.log <<_ACEOF
cannam@86 2016 This file contains any messages produced by compilers while
cannam@86 2017 running configure, to aid debugging if configure makes a mistake.
cannam@86 2018
cannam@86 2019 It was created by $as_me, which was
cannam@86 2020 generated by GNU Autoconf 2.68. Invocation command line was
cannam@86 2021
cannam@86 2022 $ $0 $@
cannam@86 2023
cannam@86 2024 _ACEOF
cannam@86 2025 exec 5>>config.log
cannam@86 2026 {
cannam@86 2027 cat <<_ASUNAME
cannam@86 2028 ## --------- ##
cannam@86 2029 ## Platform. ##
cannam@86 2030 ## --------- ##
cannam@86 2031
cannam@86 2032 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
cannam@86 2033 uname -m = `(uname -m) 2>/dev/null || echo unknown`
cannam@86 2034 uname -r = `(uname -r) 2>/dev/null || echo unknown`
cannam@86 2035 uname -s = `(uname -s) 2>/dev/null || echo unknown`
cannam@86 2036 uname -v = `(uname -v) 2>/dev/null || echo unknown`
cannam@86 2037
cannam@86 2038 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
cannam@86 2039 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
cannam@86 2040
cannam@86 2041 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
cannam@86 2042 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
cannam@86 2043 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
cannam@86 2044 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
cannam@86 2045 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
cannam@86 2046 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
cannam@86 2047 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
cannam@86 2048
cannam@86 2049 _ASUNAME
cannam@86 2050
cannam@86 2051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 2052 for as_dir in $PATH
cannam@86 2053 do
cannam@86 2054 IFS=$as_save_IFS
cannam@86 2055 test -z "$as_dir" && as_dir=.
cannam@86 2056 $as_echo "PATH: $as_dir"
cannam@86 2057 done
cannam@86 2058 IFS=$as_save_IFS
cannam@86 2059
cannam@86 2060 } >&5
cannam@86 2061
cannam@86 2062 cat >&5 <<_ACEOF
cannam@86 2063
cannam@86 2064
cannam@86 2065 ## ----------- ##
cannam@86 2066 ## Core tests. ##
cannam@86 2067 ## ----------- ##
cannam@86 2068
cannam@86 2069 _ACEOF
cannam@86 2070
cannam@86 2071
cannam@86 2072 # Keep a trace of the command line.
cannam@86 2073 # Strip out --no-create and --no-recursion so they do not pile up.
cannam@86 2074 # Strip out --silent because we don't want to record it for future runs.
cannam@86 2075 # Also quote any args containing shell meta-characters.
cannam@86 2076 # Make two passes to allow for proper duplicate-argument suppression.
cannam@86 2077 ac_configure_args=
cannam@86 2078 ac_configure_args0=
cannam@86 2079 ac_configure_args1=
cannam@86 2080 ac_must_keep_next=false
cannam@86 2081 for ac_pass in 1 2
cannam@86 2082 do
cannam@86 2083 for ac_arg
cannam@86 2084 do
cannam@86 2085 case $ac_arg in
cannam@86 2086 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
cannam@86 2087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
cannam@86 2088 | -silent | --silent | --silen | --sile | --sil)
cannam@86 2089 continue ;;
cannam@86 2090 *\'*)
cannam@86 2091 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
cannam@86 2092 esac
cannam@86 2093 case $ac_pass in
cannam@86 2094 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cannam@86 2095 2)
cannam@86 2096 as_fn_append ac_configure_args1 " '$ac_arg'"
cannam@86 2097 if test $ac_must_keep_next = true; then
cannam@86 2098 ac_must_keep_next=false # Got value, back to normal.
cannam@86 2099 else
cannam@86 2100 case $ac_arg in
cannam@86 2101 *=* | --config-cache | -C | -disable-* | --disable-* \
cannam@86 2102 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
cannam@86 2103 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
cannam@86 2104 | -with-* | --with-* | -without-* | --without-* | --x)
cannam@86 2105 case "$ac_configure_args0 " in
cannam@86 2106 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
cannam@86 2107 esac
cannam@86 2108 ;;
cannam@86 2109 -* ) ac_must_keep_next=true ;;
cannam@86 2110 esac
cannam@86 2111 fi
cannam@86 2112 as_fn_append ac_configure_args " '$ac_arg'"
cannam@86 2113 ;;
cannam@86 2114 esac
cannam@86 2115 done
cannam@86 2116 done
cannam@86 2117 { ac_configure_args0=; unset ac_configure_args0;}
cannam@86 2118 { ac_configure_args1=; unset ac_configure_args1;}
cannam@86 2119
cannam@86 2120 # When interrupted or exit'd, cleanup temporary files, and complete
cannam@86 2121 # config.log. We remove comments because anyway the quotes in there
cannam@86 2122 # would cause problems or look ugly.
cannam@86 2123 # WARNING: Use '\'' to represent an apostrophe within the trap.
cannam@86 2124 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
cannam@86 2125 trap 'exit_status=$?
cannam@86 2126 # Save into config.log some information that might help in debugging.
cannam@86 2127 {
cannam@86 2128 echo
cannam@86 2129
cannam@86 2130 $as_echo "## ---------------- ##
cannam@86 2131 ## Cache variables. ##
cannam@86 2132 ## ---------------- ##"
cannam@86 2133 echo
cannam@86 2134 # The following way of writing the cache mishandles newlines in values,
cannam@86 2135 (
cannam@86 2136 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
cannam@86 2137 eval ac_val=\$$ac_var
cannam@86 2138 case $ac_val in #(
cannam@86 2139 *${as_nl}*)
cannam@86 2140 case $ac_var in #(
cannam@86 2141 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cannam@86 2142 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
cannam@86 2143 esac
cannam@86 2144 case $ac_var in #(
cannam@86 2145 _ | IFS | as_nl) ;; #(
cannam@86 2146 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cannam@86 2147 *) { eval $ac_var=; unset $ac_var;} ;;
cannam@86 2148 esac ;;
cannam@86 2149 esac
cannam@86 2150 done
cannam@86 2151 (set) 2>&1 |
cannam@86 2152 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
cannam@86 2153 *${as_nl}ac_space=\ *)
cannam@86 2154 sed -n \
cannam@86 2155 "s/'\''/'\''\\\\'\'''\''/g;
cannam@86 2156 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
cannam@86 2157 ;; #(
cannam@86 2158 *)
cannam@86 2159 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
cannam@86 2160 ;;
cannam@86 2161 esac |
cannam@86 2162 sort
cannam@86 2163 )
cannam@86 2164 echo
cannam@86 2165
cannam@86 2166 $as_echo "## ----------------- ##
cannam@86 2167 ## Output variables. ##
cannam@86 2168 ## ----------------- ##"
cannam@86 2169 echo
cannam@86 2170 for ac_var in $ac_subst_vars
cannam@86 2171 do
cannam@86 2172 eval ac_val=\$$ac_var
cannam@86 2173 case $ac_val in
cannam@86 2174 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
cannam@86 2175 esac
cannam@86 2176 $as_echo "$ac_var='\''$ac_val'\''"
cannam@86 2177 done | sort
cannam@86 2178 echo
cannam@86 2179
cannam@86 2180 if test -n "$ac_subst_files"; then
cannam@86 2181 $as_echo "## ------------------- ##
cannam@86 2182 ## File substitutions. ##
cannam@86 2183 ## ------------------- ##"
cannam@86 2184 echo
cannam@86 2185 for ac_var in $ac_subst_files
cannam@86 2186 do
cannam@86 2187 eval ac_val=\$$ac_var
cannam@86 2188 case $ac_val in
cannam@86 2189 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
cannam@86 2190 esac
cannam@86 2191 $as_echo "$ac_var='\''$ac_val'\''"
cannam@86 2192 done | sort
cannam@86 2193 echo
cannam@86 2194 fi
cannam@86 2195
cannam@86 2196 if test -s confdefs.h; then
cannam@86 2197 $as_echo "## ----------- ##
cannam@86 2198 ## confdefs.h. ##
cannam@86 2199 ## ----------- ##"
cannam@86 2200 echo
cannam@86 2201 cat confdefs.h
cannam@86 2202 echo
cannam@86 2203 fi
cannam@86 2204 test "$ac_signal" != 0 &&
cannam@86 2205 $as_echo "$as_me: caught signal $ac_signal"
cannam@86 2206 $as_echo "$as_me: exit $exit_status"
cannam@86 2207 } >&5
cannam@86 2208 rm -f core *.core core.conftest.* &&
cannam@86 2209 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
cannam@86 2210 exit $exit_status
cannam@86 2211 ' 0
cannam@86 2212 for ac_signal in 1 2 13 15; do
cannam@86 2213 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cannam@86 2214 done
cannam@86 2215 ac_signal=0
cannam@86 2216
cannam@86 2217 # confdefs.h avoids OS command line length limits that DEFS can exceed.
cannam@86 2218 rm -f -r conftest* confdefs.h
cannam@86 2219
cannam@86 2220 $as_echo "/* confdefs.h */" > confdefs.h
cannam@86 2221
cannam@86 2222 # Predefined preprocessor variables.
cannam@86 2223
cannam@86 2224 cat >>confdefs.h <<_ACEOF
cannam@86 2225 #define PACKAGE_NAME "$PACKAGE_NAME"
cannam@86 2226 _ACEOF
cannam@86 2227
cannam@86 2228 cat >>confdefs.h <<_ACEOF
cannam@86 2229 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
cannam@86 2230 _ACEOF
cannam@86 2231
cannam@86 2232 cat >>confdefs.h <<_ACEOF
cannam@86 2233 #define PACKAGE_VERSION "$PACKAGE_VERSION"
cannam@86 2234 _ACEOF
cannam@86 2235
cannam@86 2236 cat >>confdefs.h <<_ACEOF
cannam@86 2237 #define PACKAGE_STRING "$PACKAGE_STRING"
cannam@86 2238 _ACEOF
cannam@86 2239
cannam@86 2240 cat >>confdefs.h <<_ACEOF
cannam@86 2241 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
cannam@86 2242 _ACEOF
cannam@86 2243
cannam@86 2244 cat >>confdefs.h <<_ACEOF
cannam@86 2245 #define PACKAGE_URL "$PACKAGE_URL"
cannam@86 2246 _ACEOF
cannam@86 2247
cannam@86 2248
cannam@86 2249 # Let the site file select an alternate cache file if it wants to.
cannam@86 2250 # Prefer an explicitly selected file to automatically selected ones.
cannam@86 2251 ac_site_file1=NONE
cannam@86 2252 ac_site_file2=NONE
cannam@86 2253 if test -n "$CONFIG_SITE"; then
cannam@86 2254 # We do not want a PATH search for config.site.
cannam@86 2255 case $CONFIG_SITE in #((
cannam@86 2256 -*) ac_site_file1=./$CONFIG_SITE;;
cannam@86 2257 */*) ac_site_file1=$CONFIG_SITE;;
cannam@86 2258 *) ac_site_file1=./$CONFIG_SITE;;
cannam@86 2259 esac
cannam@86 2260 elif test "x$prefix" != xNONE; then
cannam@86 2261 ac_site_file1=$prefix/share/config.site
cannam@86 2262 ac_site_file2=$prefix/etc/config.site
cannam@86 2263 else
cannam@86 2264 ac_site_file1=$ac_default_prefix/share/config.site
cannam@86 2265 ac_site_file2=$ac_default_prefix/etc/config.site
cannam@86 2266 fi
cannam@86 2267 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
cannam@86 2268 do
cannam@86 2269 test "x$ac_site_file" = xNONE && continue
cannam@86 2270 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cannam@86 2271 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cannam@86 2272 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
cannam@86 2273 sed 's/^/| /' "$ac_site_file" >&5
cannam@86 2274 . "$ac_site_file" \
cannam@86 2275 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@86 2276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@86 2277 as_fn_error $? "failed to load site script $ac_site_file
cannam@86 2278 See \`config.log' for more details" "$LINENO" 5; }
cannam@86 2279 fi
cannam@86 2280 done
cannam@86 2281
cannam@86 2282 if test -r "$cache_file"; then
cannam@86 2283 # Some versions of bash will fail to source /dev/null (special files
cannam@86 2284 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
cannam@86 2285 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cannam@86 2286 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cannam@86 2287 $as_echo "$as_me: loading cache $cache_file" >&6;}
cannam@86 2288 case $cache_file in
cannam@86 2289 [\\/]* | ?:[\\/]* ) . "$cache_file";;
cannam@86 2290 *) . "./$cache_file";;
cannam@86 2291 esac
cannam@86 2292 fi
cannam@86 2293 else
cannam@86 2294 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cannam@86 2295 $as_echo "$as_me: creating cache $cache_file" >&6;}
cannam@86 2296 >$cache_file
cannam@86 2297 fi
cannam@86 2298
cannam@86 2299 # Check that the precious variables saved in the cache have kept the same
cannam@86 2300 # value.
cannam@86 2301 ac_cache_corrupted=false
cannam@86 2302 for ac_var in $ac_precious_vars; do
cannam@86 2303 eval ac_old_set=\$ac_cv_env_${ac_var}_set
cannam@86 2304 eval ac_new_set=\$ac_env_${ac_var}_set
cannam@86 2305 eval ac_old_val=\$ac_cv_env_${ac_var}_value
cannam@86 2306 eval ac_new_val=\$ac_env_${ac_var}_value
cannam@86 2307 case $ac_old_set,$ac_new_set in
cannam@86 2308 set,)
cannam@86 2309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
cannam@86 2310 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
cannam@86 2311 ac_cache_corrupted=: ;;
cannam@86 2312 ,set)
cannam@86 2313 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cannam@86 2314 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
cannam@86 2315 ac_cache_corrupted=: ;;
cannam@86 2316 ,);;
cannam@86 2317 *)
cannam@86 2318 if test "x$ac_old_val" != "x$ac_new_val"; then
cannam@86 2319 # differences in whitespace do not lead to failure.
cannam@86 2320 ac_old_val_w=`echo x $ac_old_val`
cannam@86 2321 ac_new_val_w=`echo x $ac_new_val`
cannam@86 2322 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cannam@86 2323 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cannam@86 2324 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
cannam@86 2325 ac_cache_corrupted=:
cannam@86 2326 else
cannam@86 2327 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
cannam@86 2328 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
cannam@86 2329 eval $ac_var=\$ac_old_val
cannam@86 2330 fi
cannam@86 2331 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cannam@86 2332 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cannam@86 2333 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cannam@86 2334 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
cannam@86 2335 fi;;
cannam@86 2336 esac
cannam@86 2337 # Pass precious variables to config.status.
cannam@86 2338 if test "$ac_new_set" = set; then
cannam@86 2339 case $ac_new_val in
cannam@86 2340 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
cannam@86 2341 *) ac_arg=$ac_var=$ac_new_val ;;
cannam@86 2342 esac
cannam@86 2343 case " $ac_configure_args " in
cannam@86 2344 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cannam@86 2345 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cannam@86 2346 esac
cannam@86 2347 fi
cannam@86 2348 done
cannam@86 2349 if $ac_cache_corrupted; then
cannam@86 2350 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@86 2351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@86 2352 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cannam@86 2353 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cannam@86 2354 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cannam@86 2355 fi
cannam@86 2356 ## -------------------- ##
cannam@86 2357 ## Main body of script. ##
cannam@86 2358 ## -------------------- ##
cannam@86 2359
cannam@86 2360 ac_ext=c
cannam@86 2361 ac_cpp='$CPP $CPPFLAGS'
cannam@86 2362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@86 2363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@86 2364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@86 2365
cannam@86 2366
cannam@86 2367
cannam@86 2368 am__api_version='1.11'
cannam@86 2369
cannam@86 2370 ac_aux_dir=
cannam@86 2371 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
cannam@86 2372 if test -f "$ac_dir/install-sh"; then
cannam@86 2373 ac_aux_dir=$ac_dir
cannam@86 2374 ac_install_sh="$ac_aux_dir/install-sh -c"
cannam@86 2375 break
cannam@86 2376 elif test -f "$ac_dir/install.sh"; then
cannam@86 2377 ac_aux_dir=$ac_dir
cannam@86 2378 ac_install_sh="$ac_aux_dir/install.sh -c"
cannam@86 2379 break
cannam@86 2380 elif test -f "$ac_dir/shtool"; then
cannam@86 2381 ac_aux_dir=$ac_dir
cannam@86 2382 ac_install_sh="$ac_aux_dir/shtool install -c"
cannam@86 2383 break
cannam@86 2384 fi
cannam@86 2385 done
cannam@86 2386 if test -z "$ac_aux_dir"; then
cannam@86 2387 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
cannam@86 2388 fi
cannam@86 2389
cannam@86 2390 # These three variables are undocumented and unsupported,
cannam@86 2391 # and are intended to be withdrawn in a future Autoconf release.
cannam@86 2392 # They can cause serious problems if a builder's source tree is in a directory
cannam@86 2393 # whose full name contains unusual characters.
cannam@86 2394 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
cannam@86 2395 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
cannam@86 2396 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
cannam@86 2397
cannam@86 2398
cannam@86 2399 # Find a good install program. We prefer a C program (faster),
cannam@86 2400 # so one script is as good as another. But avoid the broken or
cannam@86 2401 # incompatible versions:
cannam@86 2402 # SysV /etc/install, /usr/sbin/install
cannam@86 2403 # SunOS /usr/etc/install
cannam@86 2404 # IRIX /sbin/install
cannam@86 2405 # AIX /bin/install
cannam@86 2406 # AmigaOS /C/install, which installs bootblocks on floppy discs
cannam@86 2407 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
cannam@86 2408 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
cannam@86 2409 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
cannam@86 2410 # OS/2's system install, which has a completely different semantic
cannam@86 2411 # ./install, which can be erroneously created by make from ./install.sh.
cannam@86 2412 # Reject install programs that cannot install multiple files.
cannam@86 2413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
cannam@86 2414 $as_echo_n "checking for a BSD-compatible install... " >&6; }
cannam@86 2415 if test -z "$INSTALL"; then
cannam@86 2416 if ${ac_cv_path_install+:} false; then :
cannam@86 2417 $as_echo_n "(cached) " >&6
cannam@86 2418 else
cannam@86 2419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 2420 for as_dir in $PATH
cannam@86 2421 do
cannam@86 2422 IFS=$as_save_IFS
cannam@86 2423 test -z "$as_dir" && as_dir=.
cannam@86 2424 # Account for people who put trailing slashes in PATH elements.
cannam@86 2425 case $as_dir/ in #((
cannam@86 2426 ./ | .// | /[cC]/* | \
cannam@86 2427 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cannam@86 2428 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
cannam@86 2429 /usr/ucb/* ) ;;
cannam@86 2430 *)
cannam@86 2431 # OSF1 and SCO ODT 3.0 have their own names for install.
cannam@86 2432 # Don't use installbsd from OSF since it installs stuff as root
cannam@86 2433 # by default.
cannam@86 2434 for ac_prog in ginstall scoinst install; do
cannam@86 2435 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 2436 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
cannam@86 2437 if test $ac_prog = install &&
cannam@86 2438 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
cannam@86 2439 # AIX install. It has an incompatible calling convention.
cannam@86 2440 :
cannam@86 2441 elif test $ac_prog = install &&
cannam@86 2442 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
cannam@86 2443 # program-specific install script used by HP pwplus--don't use.
cannam@86 2444 :
cannam@86 2445 else
cannam@86 2446 rm -rf conftest.one conftest.two conftest.dir
cannam@86 2447 echo one > conftest.one
cannam@86 2448 echo two > conftest.two
cannam@86 2449 mkdir conftest.dir
cannam@86 2450 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
cannam@86 2451 test -s conftest.one && test -s conftest.two &&
cannam@86 2452 test -s conftest.dir/conftest.one &&
cannam@86 2453 test -s conftest.dir/conftest.two
cannam@86 2454 then
cannam@86 2455 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
cannam@86 2456 break 3
cannam@86 2457 fi
cannam@86 2458 fi
cannam@86 2459 fi
cannam@86 2460 done
cannam@86 2461 done
cannam@86 2462 ;;
cannam@86 2463 esac
cannam@86 2464
cannam@86 2465 done
cannam@86 2466 IFS=$as_save_IFS
cannam@86 2467
cannam@86 2468 rm -rf conftest.one conftest.two conftest.dir
cannam@86 2469
cannam@86 2470 fi
cannam@86 2471 if test "${ac_cv_path_install+set}" = set; then
cannam@86 2472 INSTALL=$ac_cv_path_install
cannam@86 2473 else
cannam@86 2474 # As a last resort, use the slow shell script. Don't cache a
cannam@86 2475 # value for INSTALL within a source directory, because that will
cannam@86 2476 # break other packages using the cache if that directory is
cannam@86 2477 # removed, or if the value is a relative name.
cannam@86 2478 INSTALL=$ac_install_sh
cannam@86 2479 fi
cannam@86 2480 fi
cannam@86 2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
cannam@86 2482 $as_echo "$INSTALL" >&6; }
cannam@86 2483
cannam@86 2484 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
cannam@86 2485 # It thinks the first close brace ends the variable substitution.
cannam@86 2486 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
cannam@86 2487
cannam@86 2488 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
cannam@86 2489
cannam@86 2490 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
cannam@86 2491
cannam@86 2492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
cannam@86 2493 $as_echo_n "checking whether build environment is sane... " >&6; }
cannam@86 2494 # Just in case
cannam@86 2495 sleep 1
cannam@86 2496 echo timestamp > conftest.file
cannam@86 2497 # Reject unsafe characters in $srcdir or the absolute working directory
cannam@86 2498 # name. Accept space and tab only in the latter.
cannam@86 2499 am_lf='
cannam@86 2500 '
cannam@86 2501 case `pwd` in
cannam@86 2502 *[\\\"\#\$\&\'\`$am_lf]*)
cannam@86 2503 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cannam@86 2504 esac
cannam@86 2505 case $srcdir in
cannam@86 2506 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cannam@86 2507 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cannam@86 2508 esac
cannam@86 2509
cannam@86 2510 # Do `set' in a subshell so we don't clobber the current shell's
cannam@86 2511 # arguments. Must try -L first in case configure is actually a
cannam@86 2512 # symlink; some systems play weird games with the mod time of symlinks
cannam@86 2513 # (eg FreeBSD returns the mod time of the symlink's containing
cannam@86 2514 # directory).
cannam@86 2515 if (
cannam@86 2516 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
cannam@86 2517 if test "$*" = "X"; then
cannam@86 2518 # -L didn't work.
cannam@86 2519 set X `ls -t "$srcdir/configure" conftest.file`
cannam@86 2520 fi
cannam@86 2521 rm -f conftest.file
cannam@86 2522 if test "$*" != "X $srcdir/configure conftest.file" \
cannam@86 2523 && test "$*" != "X conftest.file $srcdir/configure"; then
cannam@86 2524
cannam@86 2525 # If neither matched, then we have a broken ls. This can happen
cannam@86 2526 # if, for instance, CONFIG_SHELL is bash and it inherits a
cannam@86 2527 # broken ls alias from the environment. This has actually
cannam@86 2528 # happened. Such a system could not be considered "sane".
cannam@86 2529 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cannam@86 2530 alias in your environment" "$LINENO" 5
cannam@86 2531 fi
cannam@86 2532
cannam@86 2533 test "$2" = conftest.file
cannam@86 2534 )
cannam@86 2535 then
cannam@86 2536 # Ok.
cannam@86 2537 :
cannam@86 2538 else
cannam@86 2539 as_fn_error $? "newly created file is older than distributed files!
cannam@86 2540 Check your system clock" "$LINENO" 5
cannam@86 2541 fi
cannam@86 2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@86 2543 $as_echo "yes" >&6; }
cannam@86 2544 test "$program_prefix" != NONE &&
cannam@86 2545 program_transform_name="s&^&$program_prefix&;$program_transform_name"
cannam@86 2546 # Use a double $ so make ignores it.
cannam@86 2547 test "$program_suffix" != NONE &&
cannam@86 2548 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
cannam@86 2549 # Double any \ or $.
cannam@86 2550 # By default was `s,x,x', remove it if useless.
cannam@86 2551 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
cannam@86 2552 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cannam@86 2553
cannam@86 2554 # expand $ac_aux_dir to an absolute path
cannam@86 2555 am_aux_dir=`cd $ac_aux_dir && pwd`
cannam@86 2556
cannam@86 2557 if test x"${MISSING+set}" != xset; then
cannam@86 2558 case $am_aux_dir in
cannam@86 2559 *\ * | *\ *)
cannam@86 2560 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
cannam@86 2561 *)
cannam@86 2562 MISSING="\${SHELL} $am_aux_dir/missing" ;;
cannam@86 2563 esac
cannam@86 2564 fi
cannam@86 2565 # Use eval to expand $SHELL
cannam@86 2566 if eval "$MISSING --run true"; then
cannam@86 2567 am_missing_run="$MISSING --run "
cannam@86 2568 else
cannam@86 2569 am_missing_run=
cannam@86 2570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
cannam@86 2571 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
cannam@86 2572 fi
cannam@86 2573
cannam@86 2574 if test x"${install_sh}" != xset; then
cannam@86 2575 case $am_aux_dir in
cannam@86 2576 *\ * | *\ *)
cannam@86 2577 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
cannam@86 2578 *)
cannam@86 2579 install_sh="\${SHELL} $am_aux_dir/install-sh"
cannam@86 2580 esac
cannam@86 2581 fi
cannam@86 2582
cannam@86 2583 # Installed binaries are usually stripped using `strip' when the user
cannam@86 2584 # run `make install-strip'. However `strip' might not be the right
cannam@86 2585 # tool to use in cross-compilation environments, therefore Automake
cannam@86 2586 # will honor the `STRIP' environment variable to overrule this program.
cannam@86 2587 if test "$cross_compiling" != no; then
cannam@86 2588 if test -n "$ac_tool_prefix"; then
cannam@86 2589 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
cannam@86 2590 set dummy ${ac_tool_prefix}strip; ac_word=$2
cannam@86 2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 2592 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 2593 if ${ac_cv_prog_STRIP+:} false; then :
cannam@86 2594 $as_echo_n "(cached) " >&6
cannam@86 2595 else
cannam@86 2596 if test -n "$STRIP"; then
cannam@86 2597 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
cannam@86 2598 else
cannam@86 2599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 2600 for as_dir in $PATH
cannam@86 2601 do
cannam@86 2602 IFS=$as_save_IFS
cannam@86 2603 test -z "$as_dir" && as_dir=.
cannam@86 2604 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 2605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 2606 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cannam@86 2607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 2608 break 2
cannam@86 2609 fi
cannam@86 2610 done
cannam@86 2611 done
cannam@86 2612 IFS=$as_save_IFS
cannam@86 2613
cannam@86 2614 fi
cannam@86 2615 fi
cannam@86 2616 STRIP=$ac_cv_prog_STRIP
cannam@86 2617 if test -n "$STRIP"; then
cannam@86 2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cannam@86 2619 $as_echo "$STRIP" >&6; }
cannam@86 2620 else
cannam@86 2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 2622 $as_echo "no" >&6; }
cannam@86 2623 fi
cannam@86 2624
cannam@86 2625
cannam@86 2626 fi
cannam@86 2627 if test -z "$ac_cv_prog_STRIP"; then
cannam@86 2628 ac_ct_STRIP=$STRIP
cannam@86 2629 # Extract the first word of "strip", so it can be a program name with args.
cannam@86 2630 set dummy strip; ac_word=$2
cannam@86 2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 2632 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 2633 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cannam@86 2634 $as_echo_n "(cached) " >&6
cannam@86 2635 else
cannam@86 2636 if test -n "$ac_ct_STRIP"; then
cannam@86 2637 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
cannam@86 2638 else
cannam@86 2639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 2640 for as_dir in $PATH
cannam@86 2641 do
cannam@86 2642 IFS=$as_save_IFS
cannam@86 2643 test -z "$as_dir" && as_dir=.
cannam@86 2644 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 2645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 2646 ac_cv_prog_ac_ct_STRIP="strip"
cannam@86 2647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 2648 break 2
cannam@86 2649 fi
cannam@86 2650 done
cannam@86 2651 done
cannam@86 2652 IFS=$as_save_IFS
cannam@86 2653
cannam@86 2654 fi
cannam@86 2655 fi
cannam@86 2656 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
cannam@86 2657 if test -n "$ac_ct_STRIP"; then
cannam@86 2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cannam@86 2659 $as_echo "$ac_ct_STRIP" >&6; }
cannam@86 2660 else
cannam@86 2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 2662 $as_echo "no" >&6; }
cannam@86 2663 fi
cannam@86 2664
cannam@86 2665 if test "x$ac_ct_STRIP" = x; then
cannam@86 2666 STRIP=":"
cannam@86 2667 else
cannam@86 2668 case $cross_compiling:$ac_tool_warned in
cannam@86 2669 yes:)
cannam@86 2670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@86 2671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@86 2672 ac_tool_warned=yes ;;
cannam@86 2673 esac
cannam@86 2674 STRIP=$ac_ct_STRIP
cannam@86 2675 fi
cannam@86 2676 else
cannam@86 2677 STRIP="$ac_cv_prog_STRIP"
cannam@86 2678 fi
cannam@86 2679
cannam@86 2680 fi
cannam@86 2681 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
cannam@86 2682
cannam@86 2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
cannam@86 2684 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
cannam@86 2685 if test -z "$MKDIR_P"; then
cannam@86 2686 if ${ac_cv_path_mkdir+:} false; then :
cannam@86 2687 $as_echo_n "(cached) " >&6
cannam@86 2688 else
cannam@86 2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 2690 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
cannam@86 2691 do
cannam@86 2692 IFS=$as_save_IFS
cannam@86 2693 test -z "$as_dir" && as_dir=.
cannam@86 2694 for ac_prog in mkdir gmkdir; do
cannam@86 2695 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 2696 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
cannam@86 2697 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
cannam@86 2698 'mkdir (GNU coreutils) '* | \
cannam@86 2699 'mkdir (coreutils) '* | \
cannam@86 2700 'mkdir (fileutils) '4.1*)
cannam@86 2701 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
cannam@86 2702 break 3;;
cannam@86 2703 esac
cannam@86 2704 done
cannam@86 2705 done
cannam@86 2706 done
cannam@86 2707 IFS=$as_save_IFS
cannam@86 2708
cannam@86 2709 fi
cannam@86 2710
cannam@86 2711 test -d ./--version && rmdir ./--version
cannam@86 2712 if test "${ac_cv_path_mkdir+set}" = set; then
cannam@86 2713 MKDIR_P="$ac_cv_path_mkdir -p"
cannam@86 2714 else
cannam@86 2715 # As a last resort, use the slow shell script. Don't cache a
cannam@86 2716 # value for MKDIR_P within a source directory, because that will
cannam@86 2717 # break other packages using the cache if that directory is
cannam@86 2718 # removed, or if the value is a relative name.
cannam@86 2719 MKDIR_P="$ac_install_sh -d"
cannam@86 2720 fi
cannam@86 2721 fi
cannam@86 2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
cannam@86 2723 $as_echo "$MKDIR_P" >&6; }
cannam@86 2724
cannam@86 2725 mkdir_p="$MKDIR_P"
cannam@86 2726 case $mkdir_p in
cannam@86 2727 [\\/$]* | ?:[\\/]*) ;;
cannam@86 2728 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
cannam@86 2729 esac
cannam@86 2730
cannam@86 2731 for ac_prog in gawk mawk nawk awk
cannam@86 2732 do
cannam@86 2733 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@86 2734 set dummy $ac_prog; ac_word=$2
cannam@86 2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 2736 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 2737 if ${ac_cv_prog_AWK+:} false; then :
cannam@86 2738 $as_echo_n "(cached) " >&6
cannam@86 2739 else
cannam@86 2740 if test -n "$AWK"; then
cannam@86 2741 ac_cv_prog_AWK="$AWK" # Let the user override the test.
cannam@86 2742 else
cannam@86 2743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 2744 for as_dir in $PATH
cannam@86 2745 do
cannam@86 2746 IFS=$as_save_IFS
cannam@86 2747 test -z "$as_dir" && as_dir=.
cannam@86 2748 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 2749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 2750 ac_cv_prog_AWK="$ac_prog"
cannam@86 2751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 2752 break 2
cannam@86 2753 fi
cannam@86 2754 done
cannam@86 2755 done
cannam@86 2756 IFS=$as_save_IFS
cannam@86 2757
cannam@86 2758 fi
cannam@86 2759 fi
cannam@86 2760 AWK=$ac_cv_prog_AWK
cannam@86 2761 if test -n "$AWK"; then
cannam@86 2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
cannam@86 2763 $as_echo "$AWK" >&6; }
cannam@86 2764 else
cannam@86 2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 2766 $as_echo "no" >&6; }
cannam@86 2767 fi
cannam@86 2768
cannam@86 2769
cannam@86 2770 test -n "$AWK" && break
cannam@86 2771 done
cannam@86 2772
cannam@86 2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cannam@86 2774 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
cannam@86 2775 set x ${MAKE-make}
cannam@86 2776 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cannam@86 2777 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cannam@86 2778 $as_echo_n "(cached) " >&6
cannam@86 2779 else
cannam@86 2780 cat >conftest.make <<\_ACEOF
cannam@86 2781 SHELL = /bin/sh
cannam@86 2782 all:
cannam@86 2783 @echo '@@@%%%=$(MAKE)=@@@%%%'
cannam@86 2784 _ACEOF
cannam@86 2785 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cannam@86 2786 case `${MAKE-make} -f conftest.make 2>/dev/null` in
cannam@86 2787 *@@@%%%=?*=@@@%%%*)
cannam@86 2788 eval ac_cv_prog_make_${ac_make}_set=yes;;
cannam@86 2789 *)
cannam@86 2790 eval ac_cv_prog_make_${ac_make}_set=no;;
cannam@86 2791 esac
cannam@86 2792 rm -f conftest.make
cannam@86 2793 fi
cannam@86 2794 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cannam@86 2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@86 2796 $as_echo "yes" >&6; }
cannam@86 2797 SET_MAKE=
cannam@86 2798 else
cannam@86 2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 2800 $as_echo "no" >&6; }
cannam@86 2801 SET_MAKE="MAKE=${MAKE-make}"
cannam@86 2802 fi
cannam@86 2803
cannam@86 2804 rm -rf .tst 2>/dev/null
cannam@86 2805 mkdir .tst 2>/dev/null
cannam@86 2806 if test -d .tst; then
cannam@86 2807 am__leading_dot=.
cannam@86 2808 else
cannam@86 2809 am__leading_dot=_
cannam@86 2810 fi
cannam@86 2811 rmdir .tst 2>/dev/null
cannam@86 2812
cannam@86 2813 if test "`cd $srcdir && pwd`" != "`pwd`"; then
cannam@86 2814 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
cannam@86 2815 # is not polluted with repeated "-I."
cannam@86 2816 am__isrc=' -I$(srcdir)'
cannam@86 2817 # test to see if srcdir already configured
cannam@86 2818 if test -f $srcdir/config.status; then
cannam@86 2819 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cannam@86 2820 fi
cannam@86 2821 fi
cannam@86 2822
cannam@86 2823 # test whether we have cygpath
cannam@86 2824 if test -z "$CYGPATH_W"; then
cannam@86 2825 if (cygpath --version) >/dev/null 2>/dev/null; then
cannam@86 2826 CYGPATH_W='cygpath -w'
cannam@86 2827 else
cannam@86 2828 CYGPATH_W=echo
cannam@86 2829 fi
cannam@86 2830 fi
cannam@86 2831
cannam@86 2832
cannam@86 2833 # Define the identity of the package.
cannam@86 2834 PACKAGE=libogg
cannam@86 2835 VERSION=1.3.0
cannam@86 2836
cannam@86 2837
cannam@86 2838 cat >>confdefs.h <<_ACEOF
cannam@86 2839 #define PACKAGE "$PACKAGE"
cannam@86 2840 _ACEOF
cannam@86 2841
cannam@86 2842
cannam@86 2843 cat >>confdefs.h <<_ACEOF
cannam@86 2844 #define VERSION "$VERSION"
cannam@86 2845 _ACEOF
cannam@86 2846
cannam@86 2847 # Some tools Automake needs.
cannam@86 2848
cannam@86 2849 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
cannam@86 2850
cannam@86 2851
cannam@86 2852 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
cannam@86 2853
cannam@86 2854
cannam@86 2855 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
cannam@86 2856
cannam@86 2857
cannam@86 2858 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
cannam@86 2859
cannam@86 2860
cannam@86 2861 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
cannam@86 2862
cannam@86 2863 # We need awk for the "check" target. The system "awk" is bad on
cannam@86 2864 # some platforms.
cannam@86 2865 # Always define AMTAR for backward compatibility.
cannam@86 2866
cannam@86 2867 AMTAR=${AMTAR-"${am_missing_run}tar"}
cannam@86 2868
cannam@86 2869 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
cannam@86 2870
cannam@86 2871
cannam@86 2872
cannam@86 2873
cannam@86 2874
cannam@86 2875
cannam@86 2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
cannam@86 2877 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
cannam@86 2878 # Check whether --enable-maintainer-mode was given.
cannam@86 2879 if test "${enable_maintainer_mode+set}" = set; then :
cannam@86 2880 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
cannam@86 2881 else
cannam@86 2882 USE_MAINTAINER_MODE=no
cannam@86 2883 fi
cannam@86 2884
cannam@86 2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
cannam@86 2886 $as_echo "$USE_MAINTAINER_MODE" >&6; }
cannam@86 2887 if test $USE_MAINTAINER_MODE = yes; then
cannam@86 2888 MAINTAINER_MODE_TRUE=
cannam@86 2889 MAINTAINER_MODE_FALSE='#'
cannam@86 2890 else
cannam@86 2891 MAINTAINER_MODE_TRUE='#'
cannam@86 2892 MAINTAINER_MODE_FALSE=
cannam@86 2893 fi
cannam@86 2894
cannam@86 2895 MAINT=$MAINTAINER_MODE_TRUE
cannam@86 2896
cannam@86 2897
cannam@86 2898
cannam@86 2899
cannam@86 2900 LIB_CURRENT=8
cannam@86 2901 LIB_REVISION=0
cannam@86 2902 LIB_AGE=8
cannam@86 2903
cannam@86 2904
cannam@86 2905
cannam@86 2906
cannam@86 2907 ac_ext=c
cannam@86 2908 ac_cpp='$CPP $CPPFLAGS'
cannam@86 2909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@86 2910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@86 2911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@86 2912 if test -n "$ac_tool_prefix"; then
cannam@86 2913 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
cannam@86 2914 set dummy ${ac_tool_prefix}gcc; ac_word=$2
cannam@86 2915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 2916 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 2917 if ${ac_cv_prog_CC+:} false; then :
cannam@86 2918 $as_echo_n "(cached) " >&6
cannam@86 2919 else
cannam@86 2920 if test -n "$CC"; then
cannam@86 2921 ac_cv_prog_CC="$CC" # Let the user override the test.
cannam@86 2922 else
cannam@86 2923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 2924 for as_dir in $PATH
cannam@86 2925 do
cannam@86 2926 IFS=$as_save_IFS
cannam@86 2927 test -z "$as_dir" && as_dir=.
cannam@86 2928 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 2929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 2930 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cannam@86 2931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 2932 break 2
cannam@86 2933 fi
cannam@86 2934 done
cannam@86 2935 done
cannam@86 2936 IFS=$as_save_IFS
cannam@86 2937
cannam@86 2938 fi
cannam@86 2939 fi
cannam@86 2940 CC=$ac_cv_prog_CC
cannam@86 2941 if test -n "$CC"; then
cannam@86 2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cannam@86 2943 $as_echo "$CC" >&6; }
cannam@86 2944 else
cannam@86 2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 2946 $as_echo "no" >&6; }
cannam@86 2947 fi
cannam@86 2948
cannam@86 2949
cannam@86 2950 fi
cannam@86 2951 if test -z "$ac_cv_prog_CC"; then
cannam@86 2952 ac_ct_CC=$CC
cannam@86 2953 # Extract the first word of "gcc", so it can be a program name with args.
cannam@86 2954 set dummy gcc; ac_word=$2
cannam@86 2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 2956 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 2957 if ${ac_cv_prog_ac_ct_CC+:} false; then :
cannam@86 2958 $as_echo_n "(cached) " >&6
cannam@86 2959 else
cannam@86 2960 if test -n "$ac_ct_CC"; then
cannam@86 2961 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
cannam@86 2962 else
cannam@86 2963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 2964 for as_dir in $PATH
cannam@86 2965 do
cannam@86 2966 IFS=$as_save_IFS
cannam@86 2967 test -z "$as_dir" && as_dir=.
cannam@86 2968 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 2969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 2970 ac_cv_prog_ac_ct_CC="gcc"
cannam@86 2971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 2972 break 2
cannam@86 2973 fi
cannam@86 2974 done
cannam@86 2975 done
cannam@86 2976 IFS=$as_save_IFS
cannam@86 2977
cannam@86 2978 fi
cannam@86 2979 fi
cannam@86 2980 ac_ct_CC=$ac_cv_prog_ac_ct_CC
cannam@86 2981 if test -n "$ac_ct_CC"; then
cannam@86 2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cannam@86 2983 $as_echo "$ac_ct_CC" >&6; }
cannam@86 2984 else
cannam@86 2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 2986 $as_echo "no" >&6; }
cannam@86 2987 fi
cannam@86 2988
cannam@86 2989 if test "x$ac_ct_CC" = x; then
cannam@86 2990 CC=""
cannam@86 2991 else
cannam@86 2992 case $cross_compiling:$ac_tool_warned in
cannam@86 2993 yes:)
cannam@86 2994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@86 2995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@86 2996 ac_tool_warned=yes ;;
cannam@86 2997 esac
cannam@86 2998 CC=$ac_ct_CC
cannam@86 2999 fi
cannam@86 3000 else
cannam@86 3001 CC="$ac_cv_prog_CC"
cannam@86 3002 fi
cannam@86 3003
cannam@86 3004 if test -z "$CC"; then
cannam@86 3005 if test -n "$ac_tool_prefix"; then
cannam@86 3006 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
cannam@86 3007 set dummy ${ac_tool_prefix}cc; ac_word=$2
cannam@86 3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 3009 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 3010 if ${ac_cv_prog_CC+:} false; then :
cannam@86 3011 $as_echo_n "(cached) " >&6
cannam@86 3012 else
cannam@86 3013 if test -n "$CC"; then
cannam@86 3014 ac_cv_prog_CC="$CC" # Let the user override the test.
cannam@86 3015 else
cannam@86 3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 3017 for as_dir in $PATH
cannam@86 3018 do
cannam@86 3019 IFS=$as_save_IFS
cannam@86 3020 test -z "$as_dir" && as_dir=.
cannam@86 3021 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 3022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 3023 ac_cv_prog_CC="${ac_tool_prefix}cc"
cannam@86 3024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 3025 break 2
cannam@86 3026 fi
cannam@86 3027 done
cannam@86 3028 done
cannam@86 3029 IFS=$as_save_IFS
cannam@86 3030
cannam@86 3031 fi
cannam@86 3032 fi
cannam@86 3033 CC=$ac_cv_prog_CC
cannam@86 3034 if test -n "$CC"; then
cannam@86 3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cannam@86 3036 $as_echo "$CC" >&6; }
cannam@86 3037 else
cannam@86 3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 3039 $as_echo "no" >&6; }
cannam@86 3040 fi
cannam@86 3041
cannam@86 3042
cannam@86 3043 fi
cannam@86 3044 fi
cannam@86 3045 if test -z "$CC"; then
cannam@86 3046 # Extract the first word of "cc", so it can be a program name with args.
cannam@86 3047 set dummy cc; ac_word=$2
cannam@86 3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 3049 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 3050 if ${ac_cv_prog_CC+:} false; then :
cannam@86 3051 $as_echo_n "(cached) " >&6
cannam@86 3052 else
cannam@86 3053 if test -n "$CC"; then
cannam@86 3054 ac_cv_prog_CC="$CC" # Let the user override the test.
cannam@86 3055 else
cannam@86 3056 ac_prog_rejected=no
cannam@86 3057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 3058 for as_dir in $PATH
cannam@86 3059 do
cannam@86 3060 IFS=$as_save_IFS
cannam@86 3061 test -z "$as_dir" && as_dir=.
cannam@86 3062 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 3063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 3064 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
cannam@86 3065 ac_prog_rejected=yes
cannam@86 3066 continue
cannam@86 3067 fi
cannam@86 3068 ac_cv_prog_CC="cc"
cannam@86 3069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 3070 break 2
cannam@86 3071 fi
cannam@86 3072 done
cannam@86 3073 done
cannam@86 3074 IFS=$as_save_IFS
cannam@86 3075
cannam@86 3076 if test $ac_prog_rejected = yes; then
cannam@86 3077 # We found a bogon in the path, so make sure we never use it.
cannam@86 3078 set dummy $ac_cv_prog_CC
cannam@86 3079 shift
cannam@86 3080 if test $# != 0; then
cannam@86 3081 # We chose a different compiler from the bogus one.
cannam@86 3082 # However, it has the same basename, so the bogon will be chosen
cannam@86 3083 # first if we set CC to just the basename; use the full file name.
cannam@86 3084 shift
cannam@86 3085 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
cannam@86 3086 fi
cannam@86 3087 fi
cannam@86 3088 fi
cannam@86 3089 fi
cannam@86 3090 CC=$ac_cv_prog_CC
cannam@86 3091 if test -n "$CC"; then
cannam@86 3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cannam@86 3093 $as_echo "$CC" >&6; }
cannam@86 3094 else
cannam@86 3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 3096 $as_echo "no" >&6; }
cannam@86 3097 fi
cannam@86 3098
cannam@86 3099
cannam@86 3100 fi
cannam@86 3101 if test -z "$CC"; then
cannam@86 3102 if test -n "$ac_tool_prefix"; then
cannam@86 3103 for ac_prog in cl.exe
cannam@86 3104 do
cannam@86 3105 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
cannam@86 3106 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cannam@86 3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 3108 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 3109 if ${ac_cv_prog_CC+:} false; then :
cannam@86 3110 $as_echo_n "(cached) " >&6
cannam@86 3111 else
cannam@86 3112 if test -n "$CC"; then
cannam@86 3113 ac_cv_prog_CC="$CC" # Let the user override the test.
cannam@86 3114 else
cannam@86 3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 3116 for as_dir in $PATH
cannam@86 3117 do
cannam@86 3118 IFS=$as_save_IFS
cannam@86 3119 test -z "$as_dir" && as_dir=.
cannam@86 3120 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 3121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 3122 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cannam@86 3123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 3124 break 2
cannam@86 3125 fi
cannam@86 3126 done
cannam@86 3127 done
cannam@86 3128 IFS=$as_save_IFS
cannam@86 3129
cannam@86 3130 fi
cannam@86 3131 fi
cannam@86 3132 CC=$ac_cv_prog_CC
cannam@86 3133 if test -n "$CC"; then
cannam@86 3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cannam@86 3135 $as_echo "$CC" >&6; }
cannam@86 3136 else
cannam@86 3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 3138 $as_echo "no" >&6; }
cannam@86 3139 fi
cannam@86 3140
cannam@86 3141
cannam@86 3142 test -n "$CC" && break
cannam@86 3143 done
cannam@86 3144 fi
cannam@86 3145 if test -z "$CC"; then
cannam@86 3146 ac_ct_CC=$CC
cannam@86 3147 for ac_prog in cl.exe
cannam@86 3148 do
cannam@86 3149 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@86 3150 set dummy $ac_prog; ac_word=$2
cannam@86 3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 3152 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 3153 if ${ac_cv_prog_ac_ct_CC+:} false; then :
cannam@86 3154 $as_echo_n "(cached) " >&6
cannam@86 3155 else
cannam@86 3156 if test -n "$ac_ct_CC"; then
cannam@86 3157 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
cannam@86 3158 else
cannam@86 3159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 3160 for as_dir in $PATH
cannam@86 3161 do
cannam@86 3162 IFS=$as_save_IFS
cannam@86 3163 test -z "$as_dir" && as_dir=.
cannam@86 3164 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 3165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 3166 ac_cv_prog_ac_ct_CC="$ac_prog"
cannam@86 3167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 3168 break 2
cannam@86 3169 fi
cannam@86 3170 done
cannam@86 3171 done
cannam@86 3172 IFS=$as_save_IFS
cannam@86 3173
cannam@86 3174 fi
cannam@86 3175 fi
cannam@86 3176 ac_ct_CC=$ac_cv_prog_ac_ct_CC
cannam@86 3177 if test -n "$ac_ct_CC"; then
cannam@86 3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cannam@86 3179 $as_echo "$ac_ct_CC" >&6; }
cannam@86 3180 else
cannam@86 3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 3182 $as_echo "no" >&6; }
cannam@86 3183 fi
cannam@86 3184
cannam@86 3185
cannam@86 3186 test -n "$ac_ct_CC" && break
cannam@86 3187 done
cannam@86 3188
cannam@86 3189 if test "x$ac_ct_CC" = x; then
cannam@86 3190 CC=""
cannam@86 3191 else
cannam@86 3192 case $cross_compiling:$ac_tool_warned in
cannam@86 3193 yes:)
cannam@86 3194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@86 3195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@86 3196 ac_tool_warned=yes ;;
cannam@86 3197 esac
cannam@86 3198 CC=$ac_ct_CC
cannam@86 3199 fi
cannam@86 3200 fi
cannam@86 3201
cannam@86 3202 fi
cannam@86 3203
cannam@86 3204
cannam@86 3205 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@86 3206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@86 3207 as_fn_error $? "no acceptable C compiler found in \$PATH
cannam@86 3208 See \`config.log' for more details" "$LINENO" 5; }
cannam@86 3209
cannam@86 3210 # Provide some information about the compiler.
cannam@86 3211 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cannam@86 3212 set X $ac_compile
cannam@86 3213 ac_compiler=$2
cannam@86 3214 for ac_option in --version -v -V -qversion; do
cannam@86 3215 { { ac_try="$ac_compiler $ac_option >&5"
cannam@86 3216 case "(($ac_try" in
cannam@86 3217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@86 3218 *) ac_try_echo=$ac_try;;
cannam@86 3219 esac
cannam@86 3220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@86 3221 $as_echo "$ac_try_echo"; } >&5
cannam@86 3222 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cannam@86 3223 ac_status=$?
cannam@86 3224 if test -s conftest.err; then
cannam@86 3225 sed '10a\
cannam@86 3226 ... rest of stderr output deleted ...
cannam@86 3227 10q' conftest.err >conftest.er1
cannam@86 3228 cat conftest.er1 >&5
cannam@86 3229 fi
cannam@86 3230 rm -f conftest.er1 conftest.err
cannam@86 3231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 3232 test $ac_status = 0; }
cannam@86 3233 done
cannam@86 3234
cannam@86 3235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 3236 /* end confdefs.h. */
cannam@86 3237
cannam@86 3238 int
cannam@86 3239 main ()
cannam@86 3240 {
cannam@86 3241
cannam@86 3242 ;
cannam@86 3243 return 0;
cannam@86 3244 }
cannam@86 3245 _ACEOF
cannam@86 3246 ac_clean_files_save=$ac_clean_files
cannam@86 3247 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cannam@86 3248 # Try to create an executable without -o first, disregard a.out.
cannam@86 3249 # It will help us diagnose broken compilers, and finding out an intuition
cannam@86 3250 # of exeext.
cannam@86 3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
cannam@86 3252 $as_echo_n "checking whether the C compiler works... " >&6; }
cannam@86 3253 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
cannam@86 3254
cannam@86 3255 # The possible output files:
cannam@86 3256 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
cannam@86 3257
cannam@86 3258 ac_rmfiles=
cannam@86 3259 for ac_file in $ac_files
cannam@86 3260 do
cannam@86 3261 case $ac_file in
cannam@86 3262 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
cannam@86 3263 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
cannam@86 3264 esac
cannam@86 3265 done
cannam@86 3266 rm -f $ac_rmfiles
cannam@86 3267
cannam@86 3268 if { { ac_try="$ac_link_default"
cannam@86 3269 case "(($ac_try" in
cannam@86 3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@86 3271 *) ac_try_echo=$ac_try;;
cannam@86 3272 esac
cannam@86 3273 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@86 3274 $as_echo "$ac_try_echo"; } >&5
cannam@86 3275 (eval "$ac_link_default") 2>&5
cannam@86 3276 ac_status=$?
cannam@86 3277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 3278 test $ac_status = 0; }; then :
cannam@86 3279 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
cannam@86 3280 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
cannam@86 3281 # in a Makefile. We should not override ac_cv_exeext if it was cached,
cannam@86 3282 # so that the user can short-circuit this test for compilers unknown to
cannam@86 3283 # Autoconf.
cannam@86 3284 for ac_file in $ac_files ''
cannam@86 3285 do
cannam@86 3286 test -f "$ac_file" || continue
cannam@86 3287 case $ac_file in
cannam@86 3288 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
cannam@86 3289 ;;
cannam@86 3290 [ab].out )
cannam@86 3291 # We found the default executable, but exeext='' is most
cannam@86 3292 # certainly right.
cannam@86 3293 break;;
cannam@86 3294 *.* )
cannam@86 3295 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cannam@86 3296 then :; else
cannam@86 3297 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
cannam@86 3298 fi
cannam@86 3299 # We set ac_cv_exeext here because the later test for it is not
cannam@86 3300 # safe: cross compilers may not add the suffix if given an `-o'
cannam@86 3301 # argument, so we may need to know it at that point already.
cannam@86 3302 # Even if this section looks crufty: it has the advantage of
cannam@86 3303 # actually working.
cannam@86 3304 break;;
cannam@86 3305 * )
cannam@86 3306 break;;
cannam@86 3307 esac
cannam@86 3308 done
cannam@86 3309 test "$ac_cv_exeext" = no && ac_cv_exeext=
cannam@86 3310
cannam@86 3311 else
cannam@86 3312 ac_file=''
cannam@86 3313 fi
cannam@86 3314 if test -z "$ac_file"; then :
cannam@86 3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 3316 $as_echo "no" >&6; }
cannam@86 3317 $as_echo "$as_me: failed program was:" >&5
cannam@86 3318 sed 's/^/| /' conftest.$ac_ext >&5
cannam@86 3319
cannam@86 3320 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@86 3321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@86 3322 as_fn_error 77 "C compiler cannot create executables
cannam@86 3323 See \`config.log' for more details" "$LINENO" 5; }
cannam@86 3324 else
cannam@86 3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@86 3326 $as_echo "yes" >&6; }
cannam@86 3327 fi
cannam@86 3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
cannam@86 3329 $as_echo_n "checking for C compiler default output file name... " >&6; }
cannam@86 3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
cannam@86 3331 $as_echo "$ac_file" >&6; }
cannam@86 3332 ac_exeext=$ac_cv_exeext
cannam@86 3333
cannam@86 3334 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cannam@86 3335 ac_clean_files=$ac_clean_files_save
cannam@86 3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cannam@86 3337 $as_echo_n "checking for suffix of executables... " >&6; }
cannam@86 3338 if { { ac_try="$ac_link"
cannam@86 3339 case "(($ac_try" in
cannam@86 3340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@86 3341 *) ac_try_echo=$ac_try;;
cannam@86 3342 esac
cannam@86 3343 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@86 3344 $as_echo "$ac_try_echo"; } >&5
cannam@86 3345 (eval "$ac_link") 2>&5
cannam@86 3346 ac_status=$?
cannam@86 3347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 3348 test $ac_status = 0; }; then :
cannam@86 3349 # If both `conftest.exe' and `conftest' are `present' (well, observable)
cannam@86 3350 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
cannam@86 3351 # work properly (i.e., refer to `conftest.exe'), while it won't with
cannam@86 3352 # `rm'.
cannam@86 3353 for ac_file in conftest.exe conftest conftest.*; do
cannam@86 3354 test -f "$ac_file" || continue
cannam@86 3355 case $ac_file in
cannam@86 3356 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
cannam@86 3357 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
cannam@86 3358 break;;
cannam@86 3359 * ) break;;
cannam@86 3360 esac
cannam@86 3361 done
cannam@86 3362 else
cannam@86 3363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@86 3364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@86 3365 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
cannam@86 3366 See \`config.log' for more details" "$LINENO" 5; }
cannam@86 3367 fi
cannam@86 3368 rm -f conftest conftest$ac_cv_exeext
cannam@86 3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cannam@86 3370 $as_echo "$ac_cv_exeext" >&6; }
cannam@86 3371
cannam@86 3372 rm -f conftest.$ac_ext
cannam@86 3373 EXEEXT=$ac_cv_exeext
cannam@86 3374 ac_exeext=$EXEEXT
cannam@86 3375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 3376 /* end confdefs.h. */
cannam@86 3377 #include <stdio.h>
cannam@86 3378 int
cannam@86 3379 main ()
cannam@86 3380 {
cannam@86 3381 FILE *f = fopen ("conftest.out", "w");
cannam@86 3382 return ferror (f) || fclose (f) != 0;
cannam@86 3383
cannam@86 3384 ;
cannam@86 3385 return 0;
cannam@86 3386 }
cannam@86 3387 _ACEOF
cannam@86 3388 ac_clean_files="$ac_clean_files conftest.out"
cannam@86 3389 # Check that the compiler produces executables we can run. If not, either
cannam@86 3390 # the compiler is broken, or we cross compile.
cannam@86 3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
cannam@86 3392 $as_echo_n "checking whether we are cross compiling... " >&6; }
cannam@86 3393 if test "$cross_compiling" != yes; then
cannam@86 3394 { { ac_try="$ac_link"
cannam@86 3395 case "(($ac_try" in
cannam@86 3396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@86 3397 *) ac_try_echo=$ac_try;;
cannam@86 3398 esac
cannam@86 3399 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@86 3400 $as_echo "$ac_try_echo"; } >&5
cannam@86 3401 (eval "$ac_link") 2>&5
cannam@86 3402 ac_status=$?
cannam@86 3403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 3404 test $ac_status = 0; }
cannam@86 3405 if { ac_try='./conftest$ac_cv_exeext'
cannam@86 3406 { { case "(($ac_try" in
cannam@86 3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@86 3408 *) ac_try_echo=$ac_try;;
cannam@86 3409 esac
cannam@86 3410 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@86 3411 $as_echo "$ac_try_echo"; } >&5
cannam@86 3412 (eval "$ac_try") 2>&5
cannam@86 3413 ac_status=$?
cannam@86 3414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 3415 test $ac_status = 0; }; }; then
cannam@86 3416 cross_compiling=no
cannam@86 3417 else
cannam@86 3418 if test "$cross_compiling" = maybe; then
cannam@86 3419 cross_compiling=yes
cannam@86 3420 else
cannam@86 3421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@86 3422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@86 3423 as_fn_error $? "cannot run C compiled programs.
cannam@86 3424 If you meant to cross compile, use \`--host'.
cannam@86 3425 See \`config.log' for more details" "$LINENO" 5; }
cannam@86 3426 fi
cannam@86 3427 fi
cannam@86 3428 fi
cannam@86 3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
cannam@86 3430 $as_echo "$cross_compiling" >&6; }
cannam@86 3431
cannam@86 3432 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
cannam@86 3433 ac_clean_files=$ac_clean_files_save
cannam@86 3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cannam@86 3435 $as_echo_n "checking for suffix of object files... " >&6; }
cannam@86 3436 if ${ac_cv_objext+:} false; then :
cannam@86 3437 $as_echo_n "(cached) " >&6
cannam@86 3438 else
cannam@86 3439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 3440 /* end confdefs.h. */
cannam@86 3441
cannam@86 3442 int
cannam@86 3443 main ()
cannam@86 3444 {
cannam@86 3445
cannam@86 3446 ;
cannam@86 3447 return 0;
cannam@86 3448 }
cannam@86 3449 _ACEOF
cannam@86 3450 rm -f conftest.o conftest.obj
cannam@86 3451 if { { ac_try="$ac_compile"
cannam@86 3452 case "(($ac_try" in
cannam@86 3453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@86 3454 *) ac_try_echo=$ac_try;;
cannam@86 3455 esac
cannam@86 3456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@86 3457 $as_echo "$ac_try_echo"; } >&5
cannam@86 3458 (eval "$ac_compile") 2>&5
cannam@86 3459 ac_status=$?
cannam@86 3460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 3461 test $ac_status = 0; }; then :
cannam@86 3462 for ac_file in conftest.o conftest.obj conftest.*; do
cannam@86 3463 test -f "$ac_file" || continue;
cannam@86 3464 case $ac_file in
cannam@86 3465 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
cannam@86 3466 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
cannam@86 3467 break;;
cannam@86 3468 esac
cannam@86 3469 done
cannam@86 3470 else
cannam@86 3471 $as_echo "$as_me: failed program was:" >&5
cannam@86 3472 sed 's/^/| /' conftest.$ac_ext >&5
cannam@86 3473
cannam@86 3474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@86 3475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@86 3476 as_fn_error $? "cannot compute suffix of object files: cannot compile
cannam@86 3477 See \`config.log' for more details" "$LINENO" 5; }
cannam@86 3478 fi
cannam@86 3479 rm -f conftest.$ac_cv_objext conftest.$ac_ext
cannam@86 3480 fi
cannam@86 3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cannam@86 3482 $as_echo "$ac_cv_objext" >&6; }
cannam@86 3483 OBJEXT=$ac_cv_objext
cannam@86 3484 ac_objext=$OBJEXT
cannam@86 3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cannam@86 3486 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cannam@86 3487 if ${ac_cv_c_compiler_gnu+:} false; then :
cannam@86 3488 $as_echo_n "(cached) " >&6
cannam@86 3489 else
cannam@86 3490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 3491 /* end confdefs.h. */
cannam@86 3492
cannam@86 3493 int
cannam@86 3494 main ()
cannam@86 3495 {
cannam@86 3496 #ifndef __GNUC__
cannam@86 3497 choke me
cannam@86 3498 #endif
cannam@86 3499
cannam@86 3500 ;
cannam@86 3501 return 0;
cannam@86 3502 }
cannam@86 3503 _ACEOF
cannam@86 3504 if ac_fn_c_try_compile "$LINENO"; then :
cannam@86 3505 ac_compiler_gnu=yes
cannam@86 3506 else
cannam@86 3507 ac_compiler_gnu=no
cannam@86 3508 fi
cannam@86 3509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@86 3510 ac_cv_c_compiler_gnu=$ac_compiler_gnu
cannam@86 3511
cannam@86 3512 fi
cannam@86 3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cannam@86 3514 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
cannam@86 3515 if test $ac_compiler_gnu = yes; then
cannam@86 3516 GCC=yes
cannam@86 3517 else
cannam@86 3518 GCC=
cannam@86 3519 fi
cannam@86 3520 ac_test_CFLAGS=${CFLAGS+set}
cannam@86 3521 ac_save_CFLAGS=$CFLAGS
cannam@86 3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cannam@86 3523 $as_echo_n "checking whether $CC accepts -g... " >&6; }
cannam@86 3524 if ${ac_cv_prog_cc_g+:} false; then :
cannam@86 3525 $as_echo_n "(cached) " >&6
cannam@86 3526 else
cannam@86 3527 ac_save_c_werror_flag=$ac_c_werror_flag
cannam@86 3528 ac_c_werror_flag=yes
cannam@86 3529 ac_cv_prog_cc_g=no
cannam@86 3530 CFLAGS="-g"
cannam@86 3531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 3532 /* end confdefs.h. */
cannam@86 3533
cannam@86 3534 int
cannam@86 3535 main ()
cannam@86 3536 {
cannam@86 3537
cannam@86 3538 ;
cannam@86 3539 return 0;
cannam@86 3540 }
cannam@86 3541 _ACEOF
cannam@86 3542 if ac_fn_c_try_compile "$LINENO"; then :
cannam@86 3543 ac_cv_prog_cc_g=yes
cannam@86 3544 else
cannam@86 3545 CFLAGS=""
cannam@86 3546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 3547 /* end confdefs.h. */
cannam@86 3548
cannam@86 3549 int
cannam@86 3550 main ()
cannam@86 3551 {
cannam@86 3552
cannam@86 3553 ;
cannam@86 3554 return 0;
cannam@86 3555 }
cannam@86 3556 _ACEOF
cannam@86 3557 if ac_fn_c_try_compile "$LINENO"; then :
cannam@86 3558
cannam@86 3559 else
cannam@86 3560 ac_c_werror_flag=$ac_save_c_werror_flag
cannam@86 3561 CFLAGS="-g"
cannam@86 3562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 3563 /* end confdefs.h. */
cannam@86 3564
cannam@86 3565 int
cannam@86 3566 main ()
cannam@86 3567 {
cannam@86 3568
cannam@86 3569 ;
cannam@86 3570 return 0;
cannam@86 3571 }
cannam@86 3572 _ACEOF
cannam@86 3573 if ac_fn_c_try_compile "$LINENO"; then :
cannam@86 3574 ac_cv_prog_cc_g=yes
cannam@86 3575 fi
cannam@86 3576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@86 3577 fi
cannam@86 3578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@86 3579 fi
cannam@86 3580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@86 3581 ac_c_werror_flag=$ac_save_c_werror_flag
cannam@86 3582 fi
cannam@86 3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cannam@86 3584 $as_echo "$ac_cv_prog_cc_g" >&6; }
cannam@86 3585 if test "$ac_test_CFLAGS" = set; then
cannam@86 3586 CFLAGS=$ac_save_CFLAGS
cannam@86 3587 elif test $ac_cv_prog_cc_g = yes; then
cannam@86 3588 if test "$GCC" = yes; then
cannam@86 3589 CFLAGS="-g -O2"
cannam@86 3590 else
cannam@86 3591 CFLAGS="-g"
cannam@86 3592 fi
cannam@86 3593 else
cannam@86 3594 if test "$GCC" = yes; then
cannam@86 3595 CFLAGS="-O2"
cannam@86 3596 else
cannam@86 3597 CFLAGS=
cannam@86 3598 fi
cannam@86 3599 fi
cannam@86 3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cannam@86 3601 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cannam@86 3602 if ${ac_cv_prog_cc_c89+:} false; then :
cannam@86 3603 $as_echo_n "(cached) " >&6
cannam@86 3604 else
cannam@86 3605 ac_cv_prog_cc_c89=no
cannam@86 3606 ac_save_CC=$CC
cannam@86 3607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 3608 /* end confdefs.h. */
cannam@86 3609 #include <stdarg.h>
cannam@86 3610 #include <stdio.h>
cannam@86 3611 #include <sys/types.h>
cannam@86 3612 #include <sys/stat.h>
cannam@86 3613 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
cannam@86 3614 struct buf { int x; };
cannam@86 3615 FILE * (*rcsopen) (struct buf *, struct stat *, int);
cannam@86 3616 static char *e (p, i)
cannam@86 3617 char **p;
cannam@86 3618 int i;
cannam@86 3619 {
cannam@86 3620 return p[i];
cannam@86 3621 }
cannam@86 3622 static char *f (char * (*g) (char **, int), char **p, ...)
cannam@86 3623 {
cannam@86 3624 char *s;
cannam@86 3625 va_list v;
cannam@86 3626 va_start (v,p);
cannam@86 3627 s = g (p, va_arg (v,int));
cannam@86 3628 va_end (v);
cannam@86 3629 return s;
cannam@86 3630 }
cannam@86 3631
cannam@86 3632 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
cannam@86 3633 function prototypes and stuff, but not '\xHH' hex character constants.
cannam@86 3634 These don't provoke an error unfortunately, instead are silently treated
cannam@86 3635 as 'x'. The following induces an error, until -std is added to get
cannam@86 3636 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
cannam@86 3637 array size at least. It's necessary to write '\x00'==0 to get something
cannam@86 3638 that's true only with -std. */
cannam@86 3639 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
cannam@86 3640
cannam@86 3641 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
cannam@86 3642 inside strings and character constants. */
cannam@86 3643 #define FOO(x) 'x'
cannam@86 3644 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
cannam@86 3645
cannam@86 3646 int test (int i, double x);
cannam@86 3647 struct s1 {int (*f) (int a);};
cannam@86 3648 struct s2 {int (*f) (double a);};
cannam@86 3649 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
cannam@86 3650 int argc;
cannam@86 3651 char **argv;
cannam@86 3652 int
cannam@86 3653 main ()
cannam@86 3654 {
cannam@86 3655 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
cannam@86 3656 ;
cannam@86 3657 return 0;
cannam@86 3658 }
cannam@86 3659 _ACEOF
cannam@86 3660 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
cannam@86 3661 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
cannam@86 3662 do
cannam@86 3663 CC="$ac_save_CC $ac_arg"
cannam@86 3664 if ac_fn_c_try_compile "$LINENO"; then :
cannam@86 3665 ac_cv_prog_cc_c89=$ac_arg
cannam@86 3666 fi
cannam@86 3667 rm -f core conftest.err conftest.$ac_objext
cannam@86 3668 test "x$ac_cv_prog_cc_c89" != "xno" && break
cannam@86 3669 done
cannam@86 3670 rm -f conftest.$ac_ext
cannam@86 3671 CC=$ac_save_CC
cannam@86 3672
cannam@86 3673 fi
cannam@86 3674 # AC_CACHE_VAL
cannam@86 3675 case "x$ac_cv_prog_cc_c89" in
cannam@86 3676 x)
cannam@86 3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cannam@86 3678 $as_echo "none needed" >&6; } ;;
cannam@86 3679 xno)
cannam@86 3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cannam@86 3681 $as_echo "unsupported" >&6; } ;;
cannam@86 3682 *)
cannam@86 3683 CC="$CC $ac_cv_prog_cc_c89"
cannam@86 3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cannam@86 3685 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
cannam@86 3686 esac
cannam@86 3687 if test "x$ac_cv_prog_cc_c89" != xno; then :
cannam@86 3688
cannam@86 3689 fi
cannam@86 3690
cannam@86 3691 ac_ext=c
cannam@86 3692 ac_cpp='$CPP $CPPFLAGS'
cannam@86 3693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@86 3694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@86 3695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@86 3696 DEPDIR="${am__leading_dot}deps"
cannam@86 3697
cannam@86 3698 ac_config_commands="$ac_config_commands depfiles"
cannam@86 3699
cannam@86 3700
cannam@86 3701 am_make=${MAKE-make}
cannam@86 3702 cat > confinc << 'END'
cannam@86 3703 am__doit:
cannam@86 3704 @echo this is the am__doit target
cannam@86 3705 .PHONY: am__doit
cannam@86 3706 END
cannam@86 3707 # If we don't find an include directive, just comment out the code.
cannam@86 3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
cannam@86 3709 $as_echo_n "checking for style of include used by $am_make... " >&6; }
cannam@86 3710 am__include="#"
cannam@86 3711 am__quote=
cannam@86 3712 _am_result=none
cannam@86 3713 # First try GNU make style include.
cannam@86 3714 echo "include confinc" > confmf
cannam@86 3715 # Ignore all kinds of additional output from `make'.
cannam@86 3716 case `$am_make -s -f confmf 2> /dev/null` in #(
cannam@86 3717 *the\ am__doit\ target*)
cannam@86 3718 am__include=include
cannam@86 3719 am__quote=
cannam@86 3720 _am_result=GNU
cannam@86 3721 ;;
cannam@86 3722 esac
cannam@86 3723 # Now try BSD make style include.
cannam@86 3724 if test "$am__include" = "#"; then
cannam@86 3725 echo '.include "confinc"' > confmf
cannam@86 3726 case `$am_make -s -f confmf 2> /dev/null` in #(
cannam@86 3727 *the\ am__doit\ target*)
cannam@86 3728 am__include=.include
cannam@86 3729 am__quote="\""
cannam@86 3730 _am_result=BSD
cannam@86 3731 ;;
cannam@86 3732 esac
cannam@86 3733 fi
cannam@86 3734
cannam@86 3735
cannam@86 3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
cannam@86 3737 $as_echo "$_am_result" >&6; }
cannam@86 3738 rm -f confinc confmf
cannam@86 3739
cannam@86 3740 # Check whether --enable-dependency-tracking was given.
cannam@86 3741 if test "${enable_dependency_tracking+set}" = set; then :
cannam@86 3742 enableval=$enable_dependency_tracking;
cannam@86 3743 fi
cannam@86 3744
cannam@86 3745 if test "x$enable_dependency_tracking" != xno; then
cannam@86 3746 am_depcomp="$ac_aux_dir/depcomp"
cannam@86 3747 AMDEPBACKSLASH='\'
cannam@86 3748 fi
cannam@86 3749 if test "x$enable_dependency_tracking" != xno; then
cannam@86 3750 AMDEP_TRUE=
cannam@86 3751 AMDEP_FALSE='#'
cannam@86 3752 else
cannam@86 3753 AMDEP_TRUE='#'
cannam@86 3754 AMDEP_FALSE=
cannam@86 3755 fi
cannam@86 3756
cannam@86 3757
cannam@86 3758
cannam@86 3759 depcc="$CC" am_compiler_list=
cannam@86 3760
cannam@86 3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cannam@86 3762 $as_echo_n "checking dependency style of $depcc... " >&6; }
cannam@86 3763 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cannam@86 3764 $as_echo_n "(cached) " >&6
cannam@86 3765 else
cannam@86 3766 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
cannam@86 3767 # We make a subdir and do the tests there. Otherwise we can end up
cannam@86 3768 # making bogus files that we don't know about and never remove. For
cannam@86 3769 # instance it was reported that on HP-UX the gcc test will end up
cannam@86 3770 # making a dummy file named `D' -- because `-MD' means `put the output
cannam@86 3771 # in D'.
cannam@86 3772 mkdir conftest.dir
cannam@86 3773 # Copy depcomp to subdir because otherwise we won't find it if we're
cannam@86 3774 # using a relative directory.
cannam@86 3775 cp "$am_depcomp" conftest.dir
cannam@86 3776 cd conftest.dir
cannam@86 3777 # We will build objects and dependencies in a subdirectory because
cannam@86 3778 # it helps to detect inapplicable dependency modes. For instance
cannam@86 3779 # both Tru64's cc and ICC support -MD to output dependencies as a
cannam@86 3780 # side effect of compilation, but ICC will put the dependencies in
cannam@86 3781 # the current directory while Tru64 will put them in the object
cannam@86 3782 # directory.
cannam@86 3783 mkdir sub
cannam@86 3784
cannam@86 3785 am_cv_CC_dependencies_compiler_type=none
cannam@86 3786 if test "$am_compiler_list" = ""; then
cannam@86 3787 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
cannam@86 3788 fi
cannam@86 3789 am__universal=false
cannam@86 3790 case " $depcc " in #(
cannam@86 3791 *\ -arch\ *\ -arch\ *) am__universal=true ;;
cannam@86 3792 esac
cannam@86 3793
cannam@86 3794 for depmode in $am_compiler_list; do
cannam@86 3795 # Setup a source with many dependencies, because some compilers
cannam@86 3796 # like to wrap large dependency lists on column 80 (with \), and
cannam@86 3797 # we should not choose a depcomp mode which is confused by this.
cannam@86 3798 #
cannam@86 3799 # We need to recreate these files for each test, as the compiler may
cannam@86 3800 # overwrite some of them when testing with obscure command lines.
cannam@86 3801 # This happens at least with the AIX C compiler.
cannam@86 3802 : > sub/conftest.c
cannam@86 3803 for i in 1 2 3 4 5 6; do
cannam@86 3804 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cannam@86 3805 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
cannam@86 3806 # Solaris 8's {/usr,}/bin/sh.
cannam@86 3807 touch sub/conftst$i.h
cannam@86 3808 done
cannam@86 3809 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
cannam@86 3810
cannam@86 3811 # We check with `-c' and `-o' for the sake of the "dashmstdout"
cannam@86 3812 # mode. It turns out that the SunPro C++ compiler does not properly
cannam@86 3813 # handle `-M -o', and we need to detect this. Also, some Intel
cannam@86 3814 # versions had trouble with output in subdirs
cannam@86 3815 am__obj=sub/conftest.${OBJEXT-o}
cannam@86 3816 am__minus_obj="-o $am__obj"
cannam@86 3817 case $depmode in
cannam@86 3818 gcc)
cannam@86 3819 # This depmode causes a compiler race in universal mode.
cannam@86 3820 test "$am__universal" = false || continue
cannam@86 3821 ;;
cannam@86 3822 nosideeffect)
cannam@86 3823 # after this tag, mechanisms are not by side-effect, so they'll
cannam@86 3824 # only be used when explicitly requested
cannam@86 3825 if test "x$enable_dependency_tracking" = xyes; then
cannam@86 3826 continue
cannam@86 3827 else
cannam@86 3828 break
cannam@86 3829 fi
cannam@86 3830 ;;
cannam@86 3831 msvisualcpp | msvcmsys)
cannam@86 3832 # This compiler won't grok `-c -o', but also, the minuso test has
cannam@86 3833 # not run yet. These depmodes are late enough in the game, and
cannam@86 3834 # so weak that their functioning should not be impacted.
cannam@86 3835 am__obj=conftest.${OBJEXT-o}
cannam@86 3836 am__minus_obj=
cannam@86 3837 ;;
cannam@86 3838 none) break ;;
cannam@86 3839 esac
cannam@86 3840 if depmode=$depmode \
cannam@86 3841 source=sub/conftest.c object=$am__obj \
cannam@86 3842 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
cannam@86 3843 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
cannam@86 3844 >/dev/null 2>conftest.err &&
cannam@86 3845 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
cannam@86 3846 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
cannam@86 3847 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
cannam@86 3848 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
cannam@86 3849 # icc doesn't choke on unknown options, it will just issue warnings
cannam@86 3850 # or remarks (even with -Werror). So we grep stderr for any message
cannam@86 3851 # that says an option was ignored or not supported.
cannam@86 3852 # When given -MP, icc 7.0 and 7.1 complain thusly:
cannam@86 3853 # icc: Command line warning: ignoring option '-M'; no argument required
cannam@86 3854 # The diagnosis changed in icc 8.0:
cannam@86 3855 # icc: Command line remark: option '-MP' not supported
cannam@86 3856 if (grep 'ignoring option' conftest.err ||
cannam@86 3857 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
cannam@86 3858 am_cv_CC_dependencies_compiler_type=$depmode
cannam@86 3859 break
cannam@86 3860 fi
cannam@86 3861 fi
cannam@86 3862 done
cannam@86 3863
cannam@86 3864 cd ..
cannam@86 3865 rm -rf conftest.dir
cannam@86 3866 else
cannam@86 3867 am_cv_CC_dependencies_compiler_type=none
cannam@86 3868 fi
cannam@86 3869
cannam@86 3870 fi
cannam@86 3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
cannam@86 3872 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
cannam@86 3873 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
cannam@86 3874
cannam@86 3875 if
cannam@86 3876 test "x$enable_dependency_tracking" != xno \
cannam@86 3877 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
cannam@86 3878 am__fastdepCC_TRUE=
cannam@86 3879 am__fastdepCC_FALSE='#'
cannam@86 3880 else
cannam@86 3881 am__fastdepCC_TRUE='#'
cannam@86 3882 am__fastdepCC_FALSE=
cannam@86 3883 fi
cannam@86 3884
cannam@86 3885
cannam@86 3886 case `pwd` in
cannam@86 3887 *\ * | *\ *)
cannam@86 3888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
cannam@86 3889 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
cannam@86 3890 esac
cannam@86 3891
cannam@86 3892
cannam@86 3893
cannam@86 3894 macro_version='2.4'
cannam@86 3895 macro_revision='1.3293'
cannam@86 3896
cannam@86 3897
cannam@86 3898
cannam@86 3899
cannam@86 3900
cannam@86 3901
cannam@86 3902
cannam@86 3903
cannam@86 3904
cannam@86 3905
cannam@86 3906
cannam@86 3907
cannam@86 3908
cannam@86 3909 ltmain="$ac_aux_dir/ltmain.sh"
cannam@86 3910
cannam@86 3911 # Make sure we can run config.sub.
cannam@86 3912 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cannam@86 3913 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cannam@86 3914
cannam@86 3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cannam@86 3916 $as_echo_n "checking build system type... " >&6; }
cannam@86 3917 if ${ac_cv_build+:} false; then :
cannam@86 3918 $as_echo_n "(cached) " >&6
cannam@86 3919 else
cannam@86 3920 ac_build_alias=$build_alias
cannam@86 3921 test "x$ac_build_alias" = x &&
cannam@86 3922 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
cannam@86 3923 test "x$ac_build_alias" = x &&
cannam@86 3924 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cannam@86 3925 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cannam@86 3926 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cannam@86 3927
cannam@86 3928 fi
cannam@86 3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cannam@86 3930 $as_echo "$ac_cv_build" >&6; }
cannam@86 3931 case $ac_cv_build in
cannam@86 3932 *-*-*) ;;
cannam@86 3933 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cannam@86 3934 esac
cannam@86 3935 build=$ac_cv_build
cannam@86 3936 ac_save_IFS=$IFS; IFS='-'
cannam@86 3937 set x $ac_cv_build
cannam@86 3938 shift
cannam@86 3939 build_cpu=$1
cannam@86 3940 build_vendor=$2
cannam@86 3941 shift; shift
cannam@86 3942 # Remember, the first character of IFS is used to create $*,
cannam@86 3943 # except with old shells:
cannam@86 3944 build_os=$*
cannam@86 3945 IFS=$ac_save_IFS
cannam@86 3946 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
cannam@86 3947
cannam@86 3948
cannam@86 3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cannam@86 3950 $as_echo_n "checking host system type... " >&6; }
cannam@86 3951 if ${ac_cv_host+:} false; then :
cannam@86 3952 $as_echo_n "(cached) " >&6
cannam@86 3953 else
cannam@86 3954 if test "x$host_alias" = x; then
cannam@86 3955 ac_cv_host=$ac_cv_build
cannam@86 3956 else
cannam@86 3957 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cannam@86 3958 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cannam@86 3959 fi
cannam@86 3960
cannam@86 3961 fi
cannam@86 3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cannam@86 3963 $as_echo "$ac_cv_host" >&6; }
cannam@86 3964 case $ac_cv_host in
cannam@86 3965 *-*-*) ;;
cannam@86 3966 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cannam@86 3967 esac
cannam@86 3968 host=$ac_cv_host
cannam@86 3969 ac_save_IFS=$IFS; IFS='-'
cannam@86 3970 set x $ac_cv_host
cannam@86 3971 shift
cannam@86 3972 host_cpu=$1
cannam@86 3973 host_vendor=$2
cannam@86 3974 shift; shift
cannam@86 3975 # Remember, the first character of IFS is used to create $*,
cannam@86 3976 # except with old shells:
cannam@86 3977 host_os=$*
cannam@86 3978 IFS=$ac_save_IFS
cannam@86 3979 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
cannam@86 3980
cannam@86 3981
cannam@86 3982 # Backslashify metacharacters that are still active within
cannam@86 3983 # double-quoted strings.
cannam@86 3984 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
cannam@86 3985
cannam@86 3986 # Same as above, but do not quote variable references.
cannam@86 3987 double_quote_subst='s/\(["`\\]\)/\\\1/g'
cannam@86 3988
cannam@86 3989 # Sed substitution to delay expansion of an escaped shell variable in a
cannam@86 3990 # double_quote_subst'ed string.
cannam@86 3991 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
cannam@86 3992
cannam@86 3993 # Sed substitution to delay expansion of an escaped single quote.
cannam@86 3994 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
cannam@86 3995
cannam@86 3996 # Sed substitution to avoid accidental globbing in evaled expressions
cannam@86 3997 no_glob_subst='s/\*/\\\*/g'
cannam@86 3998
cannam@86 3999 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
cannam@86 4000 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
cannam@86 4001 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
cannam@86 4002
cannam@86 4003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
cannam@86 4004 $as_echo_n "checking how to print strings... " >&6; }
cannam@86 4005 # Test print first, because it will be a builtin if present.
cannam@86 4006 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cannam@86 4007 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
cannam@86 4008 ECHO='print -r --'
cannam@86 4009 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
cannam@86 4010 ECHO='printf %s\n'
cannam@86 4011 else
cannam@86 4012 # Use this function as a fallback that always works.
cannam@86 4013 func_fallback_echo ()
cannam@86 4014 {
cannam@86 4015 eval 'cat <<_LTECHO_EOF
cannam@86 4016 $1
cannam@86 4017 _LTECHO_EOF'
cannam@86 4018 }
cannam@86 4019 ECHO='func_fallback_echo'
cannam@86 4020 fi
cannam@86 4021
cannam@86 4022 # func_echo_all arg...
cannam@86 4023 # Invoke $ECHO with all args, space-separated.
cannam@86 4024 func_echo_all ()
cannam@86 4025 {
cannam@86 4026 $ECHO ""
cannam@86 4027 }
cannam@86 4028
cannam@86 4029 case "$ECHO" in
cannam@86 4030 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
cannam@86 4031 $as_echo "printf" >&6; } ;;
cannam@86 4032 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
cannam@86 4033 $as_echo "print -r" >&6; } ;;
cannam@86 4034 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
cannam@86 4035 $as_echo "cat" >&6; } ;;
cannam@86 4036 esac
cannam@86 4037
cannam@86 4038
cannam@86 4039
cannam@86 4040
cannam@86 4041
cannam@86 4042
cannam@86 4043
cannam@86 4044
cannam@86 4045
cannam@86 4046
cannam@86 4047
cannam@86 4048
cannam@86 4049
cannam@86 4050
cannam@86 4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
cannam@86 4052 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
cannam@86 4053 if ${ac_cv_path_SED+:} false; then :
cannam@86 4054 $as_echo_n "(cached) " >&6
cannam@86 4055 else
cannam@86 4056 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
cannam@86 4057 for ac_i in 1 2 3 4 5 6 7; do
cannam@86 4058 ac_script="$ac_script$as_nl$ac_script"
cannam@86 4059 done
cannam@86 4060 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
cannam@86 4061 { ac_script=; unset ac_script;}
cannam@86 4062 if test -z "$SED"; then
cannam@86 4063 ac_path_SED_found=false
cannam@86 4064 # Loop through the user's path and test for each of PROGNAME-LIST
cannam@86 4065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 4066 for as_dir in $PATH
cannam@86 4067 do
cannam@86 4068 IFS=$as_save_IFS
cannam@86 4069 test -z "$as_dir" && as_dir=.
cannam@86 4070 for ac_prog in sed gsed; do
cannam@86 4071 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 4072 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cannam@86 4073 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
cannam@86 4074 # Check for GNU ac_path_SED and select it if it is found.
cannam@86 4075 # Check for GNU $ac_path_SED
cannam@86 4076 case `"$ac_path_SED" --version 2>&1` in
cannam@86 4077 *GNU*)
cannam@86 4078 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
cannam@86 4079 *)
cannam@86 4080 ac_count=0
cannam@86 4081 $as_echo_n 0123456789 >"conftest.in"
cannam@86 4082 while :
cannam@86 4083 do
cannam@86 4084 cat "conftest.in" "conftest.in" >"conftest.tmp"
cannam@86 4085 mv "conftest.tmp" "conftest.in"
cannam@86 4086 cp "conftest.in" "conftest.nl"
cannam@86 4087 $as_echo '' >> "conftest.nl"
cannam@86 4088 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
cannam@86 4089 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cannam@86 4090 as_fn_arith $ac_count + 1 && ac_count=$as_val
cannam@86 4091 if test $ac_count -gt ${ac_path_SED_max-0}; then
cannam@86 4092 # Best one so far, save it but keep looking for a better one
cannam@86 4093 ac_cv_path_SED="$ac_path_SED"
cannam@86 4094 ac_path_SED_max=$ac_count
cannam@86 4095 fi
cannam@86 4096 # 10*(2^10) chars as input seems more than enough
cannam@86 4097 test $ac_count -gt 10 && break
cannam@86 4098 done
cannam@86 4099 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
cannam@86 4100 esac
cannam@86 4101
cannam@86 4102 $ac_path_SED_found && break 3
cannam@86 4103 done
cannam@86 4104 done
cannam@86 4105 done
cannam@86 4106 IFS=$as_save_IFS
cannam@86 4107 if test -z "$ac_cv_path_SED"; then
cannam@86 4108 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cannam@86 4109 fi
cannam@86 4110 else
cannam@86 4111 ac_cv_path_SED=$SED
cannam@86 4112 fi
cannam@86 4113
cannam@86 4114 fi
cannam@86 4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
cannam@86 4116 $as_echo "$ac_cv_path_SED" >&6; }
cannam@86 4117 SED="$ac_cv_path_SED"
cannam@86 4118 rm -f conftest.sed
cannam@86 4119
cannam@86 4120 test -z "$SED" && SED=sed
cannam@86 4121 Xsed="$SED -e 1s/^X//"
cannam@86 4122
cannam@86 4123
cannam@86 4124
cannam@86 4125
cannam@86 4126
cannam@86 4127
cannam@86 4128
cannam@86 4129
cannam@86 4130
cannam@86 4131
cannam@86 4132
cannam@86 4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
cannam@86 4134 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cannam@86 4135 if ${ac_cv_path_GREP+:} false; then :
cannam@86 4136 $as_echo_n "(cached) " >&6
cannam@86 4137 else
cannam@86 4138 if test -z "$GREP"; then
cannam@86 4139 ac_path_GREP_found=false
cannam@86 4140 # Loop through the user's path and test for each of PROGNAME-LIST
cannam@86 4141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 4142 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
cannam@86 4143 do
cannam@86 4144 IFS=$as_save_IFS
cannam@86 4145 test -z "$as_dir" && as_dir=.
cannam@86 4146 for ac_prog in grep ggrep; do
cannam@86 4147 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 4148 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cannam@86 4149 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
cannam@86 4150 # Check for GNU ac_path_GREP and select it if it is found.
cannam@86 4151 # Check for GNU $ac_path_GREP
cannam@86 4152 case `"$ac_path_GREP" --version 2>&1` in
cannam@86 4153 *GNU*)
cannam@86 4154 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
cannam@86 4155 *)
cannam@86 4156 ac_count=0
cannam@86 4157 $as_echo_n 0123456789 >"conftest.in"
cannam@86 4158 while :
cannam@86 4159 do
cannam@86 4160 cat "conftest.in" "conftest.in" >"conftest.tmp"
cannam@86 4161 mv "conftest.tmp" "conftest.in"
cannam@86 4162 cp "conftest.in" "conftest.nl"
cannam@86 4163 $as_echo 'GREP' >> "conftest.nl"
cannam@86 4164 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
cannam@86 4165 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cannam@86 4166 as_fn_arith $ac_count + 1 && ac_count=$as_val
cannam@86 4167 if test $ac_count -gt ${ac_path_GREP_max-0}; then
cannam@86 4168 # Best one so far, save it but keep looking for a better one
cannam@86 4169 ac_cv_path_GREP="$ac_path_GREP"
cannam@86 4170 ac_path_GREP_max=$ac_count
cannam@86 4171 fi
cannam@86 4172 # 10*(2^10) chars as input seems more than enough
cannam@86 4173 test $ac_count -gt 10 && break
cannam@86 4174 done
cannam@86 4175 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
cannam@86 4176 esac
cannam@86 4177
cannam@86 4178 $ac_path_GREP_found && break 3
cannam@86 4179 done
cannam@86 4180 done
cannam@86 4181 done
cannam@86 4182 IFS=$as_save_IFS
cannam@86 4183 if test -z "$ac_cv_path_GREP"; then
cannam@86 4184 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cannam@86 4185 fi
cannam@86 4186 else
cannam@86 4187 ac_cv_path_GREP=$GREP
cannam@86 4188 fi
cannam@86 4189
cannam@86 4190 fi
cannam@86 4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
cannam@86 4192 $as_echo "$ac_cv_path_GREP" >&6; }
cannam@86 4193 GREP="$ac_cv_path_GREP"
cannam@86 4194
cannam@86 4195
cannam@86 4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
cannam@86 4197 $as_echo_n "checking for egrep... " >&6; }
cannam@86 4198 if ${ac_cv_path_EGREP+:} false; then :
cannam@86 4199 $as_echo_n "(cached) " >&6
cannam@86 4200 else
cannam@86 4201 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
cannam@86 4202 then ac_cv_path_EGREP="$GREP -E"
cannam@86 4203 else
cannam@86 4204 if test -z "$EGREP"; then
cannam@86 4205 ac_path_EGREP_found=false
cannam@86 4206 # Loop through the user's path and test for each of PROGNAME-LIST
cannam@86 4207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 4208 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
cannam@86 4209 do
cannam@86 4210 IFS=$as_save_IFS
cannam@86 4211 test -z "$as_dir" && as_dir=.
cannam@86 4212 for ac_prog in egrep; do
cannam@86 4213 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 4214 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cannam@86 4215 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
cannam@86 4216 # Check for GNU ac_path_EGREP and select it if it is found.
cannam@86 4217 # Check for GNU $ac_path_EGREP
cannam@86 4218 case `"$ac_path_EGREP" --version 2>&1` in
cannam@86 4219 *GNU*)
cannam@86 4220 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
cannam@86 4221 *)
cannam@86 4222 ac_count=0
cannam@86 4223 $as_echo_n 0123456789 >"conftest.in"
cannam@86 4224 while :
cannam@86 4225 do
cannam@86 4226 cat "conftest.in" "conftest.in" >"conftest.tmp"
cannam@86 4227 mv "conftest.tmp" "conftest.in"
cannam@86 4228 cp "conftest.in" "conftest.nl"
cannam@86 4229 $as_echo 'EGREP' >> "conftest.nl"
cannam@86 4230 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
cannam@86 4231 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cannam@86 4232 as_fn_arith $ac_count + 1 && ac_count=$as_val
cannam@86 4233 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
cannam@86 4234 # Best one so far, save it but keep looking for a better one
cannam@86 4235 ac_cv_path_EGREP="$ac_path_EGREP"
cannam@86 4236 ac_path_EGREP_max=$ac_count
cannam@86 4237 fi
cannam@86 4238 # 10*(2^10) chars as input seems more than enough
cannam@86 4239 test $ac_count -gt 10 && break
cannam@86 4240 done
cannam@86 4241 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
cannam@86 4242 esac
cannam@86 4243
cannam@86 4244 $ac_path_EGREP_found && break 3
cannam@86 4245 done
cannam@86 4246 done
cannam@86 4247 done
cannam@86 4248 IFS=$as_save_IFS
cannam@86 4249 if test -z "$ac_cv_path_EGREP"; then
cannam@86 4250 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cannam@86 4251 fi
cannam@86 4252 else
cannam@86 4253 ac_cv_path_EGREP=$EGREP
cannam@86 4254 fi
cannam@86 4255
cannam@86 4256 fi
cannam@86 4257 fi
cannam@86 4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
cannam@86 4259 $as_echo "$ac_cv_path_EGREP" >&6; }
cannam@86 4260 EGREP="$ac_cv_path_EGREP"
cannam@86 4261
cannam@86 4262
cannam@86 4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
cannam@86 4264 $as_echo_n "checking for fgrep... " >&6; }
cannam@86 4265 if ${ac_cv_path_FGREP+:} false; then :
cannam@86 4266 $as_echo_n "(cached) " >&6
cannam@86 4267 else
cannam@86 4268 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
cannam@86 4269 then ac_cv_path_FGREP="$GREP -F"
cannam@86 4270 else
cannam@86 4271 if test -z "$FGREP"; then
cannam@86 4272 ac_path_FGREP_found=false
cannam@86 4273 # Loop through the user's path and test for each of PROGNAME-LIST
cannam@86 4274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 4275 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
cannam@86 4276 do
cannam@86 4277 IFS=$as_save_IFS
cannam@86 4278 test -z "$as_dir" && as_dir=.
cannam@86 4279 for ac_prog in fgrep; do
cannam@86 4280 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 4281 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cannam@86 4282 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
cannam@86 4283 # Check for GNU ac_path_FGREP and select it if it is found.
cannam@86 4284 # Check for GNU $ac_path_FGREP
cannam@86 4285 case `"$ac_path_FGREP" --version 2>&1` in
cannam@86 4286 *GNU*)
cannam@86 4287 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
cannam@86 4288 *)
cannam@86 4289 ac_count=0
cannam@86 4290 $as_echo_n 0123456789 >"conftest.in"
cannam@86 4291 while :
cannam@86 4292 do
cannam@86 4293 cat "conftest.in" "conftest.in" >"conftest.tmp"
cannam@86 4294 mv "conftest.tmp" "conftest.in"
cannam@86 4295 cp "conftest.in" "conftest.nl"
cannam@86 4296 $as_echo 'FGREP' >> "conftest.nl"
cannam@86 4297 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
cannam@86 4298 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cannam@86 4299 as_fn_arith $ac_count + 1 && ac_count=$as_val
cannam@86 4300 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
cannam@86 4301 # Best one so far, save it but keep looking for a better one
cannam@86 4302 ac_cv_path_FGREP="$ac_path_FGREP"
cannam@86 4303 ac_path_FGREP_max=$ac_count
cannam@86 4304 fi
cannam@86 4305 # 10*(2^10) chars as input seems more than enough
cannam@86 4306 test $ac_count -gt 10 && break
cannam@86 4307 done
cannam@86 4308 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
cannam@86 4309 esac
cannam@86 4310
cannam@86 4311 $ac_path_FGREP_found && break 3
cannam@86 4312 done
cannam@86 4313 done
cannam@86 4314 done
cannam@86 4315 IFS=$as_save_IFS
cannam@86 4316 if test -z "$ac_cv_path_FGREP"; then
cannam@86 4317 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cannam@86 4318 fi
cannam@86 4319 else
cannam@86 4320 ac_cv_path_FGREP=$FGREP
cannam@86 4321 fi
cannam@86 4322
cannam@86 4323 fi
cannam@86 4324 fi
cannam@86 4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
cannam@86 4326 $as_echo "$ac_cv_path_FGREP" >&6; }
cannam@86 4327 FGREP="$ac_cv_path_FGREP"
cannam@86 4328
cannam@86 4329
cannam@86 4330 test -z "$GREP" && GREP=grep
cannam@86 4331
cannam@86 4332
cannam@86 4333
cannam@86 4334
cannam@86 4335
cannam@86 4336
cannam@86 4337
cannam@86 4338
cannam@86 4339
cannam@86 4340
cannam@86 4341
cannam@86 4342
cannam@86 4343
cannam@86 4344
cannam@86 4345
cannam@86 4346
cannam@86 4347
cannam@86 4348
cannam@86 4349
cannam@86 4350 # Check whether --with-gnu-ld was given.
cannam@86 4351 if test "${with_gnu_ld+set}" = set; then :
cannam@86 4352 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
cannam@86 4353 else
cannam@86 4354 with_gnu_ld=no
cannam@86 4355 fi
cannam@86 4356
cannam@86 4357 ac_prog=ld
cannam@86 4358 if test "$GCC" = yes; then
cannam@86 4359 # Check if gcc -print-prog-name=ld gives a path.
cannam@86 4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cannam@86 4361 $as_echo_n "checking for ld used by $CC... " >&6; }
cannam@86 4362 case $host in
cannam@86 4363 *-*-mingw*)
cannam@86 4364 # gcc leaves a trailing carriage return which upsets mingw
cannam@86 4365 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
cannam@86 4366 *)
cannam@86 4367 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
cannam@86 4368 esac
cannam@86 4369 case $ac_prog in
cannam@86 4370 # Accept absolute paths.
cannam@86 4371 [\\/]* | ?:[\\/]*)
cannam@86 4372 re_direlt='/[^/][^/]*/\.\./'
cannam@86 4373 # Canonicalize the pathname of ld
cannam@86 4374 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
cannam@86 4375 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
cannam@86 4376 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
cannam@86 4377 done
cannam@86 4378 test -z "$LD" && LD="$ac_prog"
cannam@86 4379 ;;
cannam@86 4380 "")
cannam@86 4381 # If it fails, then pretend we aren't using GCC.
cannam@86 4382 ac_prog=ld
cannam@86 4383 ;;
cannam@86 4384 *)
cannam@86 4385 # If it is relative, then search for the first ld in PATH.
cannam@86 4386 with_gnu_ld=unknown
cannam@86 4387 ;;
cannam@86 4388 esac
cannam@86 4389 elif test "$with_gnu_ld" = yes; then
cannam@86 4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cannam@86 4391 $as_echo_n "checking for GNU ld... " >&6; }
cannam@86 4392 else
cannam@86 4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cannam@86 4394 $as_echo_n "checking for non-GNU ld... " >&6; }
cannam@86 4395 fi
cannam@86 4396 if ${lt_cv_path_LD+:} false; then :
cannam@86 4397 $as_echo_n "(cached) " >&6
cannam@86 4398 else
cannam@86 4399 if test -z "$LD"; then
cannam@86 4400 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cannam@86 4401 for ac_dir in $PATH; do
cannam@86 4402 IFS="$lt_save_ifs"
cannam@86 4403 test -z "$ac_dir" && ac_dir=.
cannam@86 4404 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
cannam@86 4405 lt_cv_path_LD="$ac_dir/$ac_prog"
cannam@86 4406 # Check to see if the program is GNU ld. I'd rather use --version,
cannam@86 4407 # but apparently some variants of GNU ld only accept -v.
cannam@86 4408 # Break only if it was the GNU/non-GNU ld that we prefer.
cannam@86 4409 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
cannam@86 4410 *GNU* | *'with BFD'*)
cannam@86 4411 test "$with_gnu_ld" != no && break
cannam@86 4412 ;;
cannam@86 4413 *)
cannam@86 4414 test "$with_gnu_ld" != yes && break
cannam@86 4415 ;;
cannam@86 4416 esac
cannam@86 4417 fi
cannam@86 4418 done
cannam@86 4419 IFS="$lt_save_ifs"
cannam@86 4420 else
cannam@86 4421 lt_cv_path_LD="$LD" # Let the user override the test with a path.
cannam@86 4422 fi
cannam@86 4423 fi
cannam@86 4424
cannam@86 4425 LD="$lt_cv_path_LD"
cannam@86 4426 if test -n "$LD"; then
cannam@86 4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cannam@86 4428 $as_echo "$LD" >&6; }
cannam@86 4429 else
cannam@86 4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 4431 $as_echo "no" >&6; }
cannam@86 4432 fi
cannam@86 4433 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cannam@86 4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cannam@86 4435 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cannam@86 4436 if ${lt_cv_prog_gnu_ld+:} false; then :
cannam@86 4437 $as_echo_n "(cached) " >&6
cannam@86 4438 else
cannam@86 4439 # I'd rather use --version here, but apparently some GNU lds only accept -v.
cannam@86 4440 case `$LD -v 2>&1 </dev/null` in
cannam@86 4441 *GNU* | *'with BFD'*)
cannam@86 4442 lt_cv_prog_gnu_ld=yes
cannam@86 4443 ;;
cannam@86 4444 *)
cannam@86 4445 lt_cv_prog_gnu_ld=no
cannam@86 4446 ;;
cannam@86 4447 esac
cannam@86 4448 fi
cannam@86 4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cannam@86 4450 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
cannam@86 4451 with_gnu_ld=$lt_cv_prog_gnu_ld
cannam@86 4452
cannam@86 4453
cannam@86 4454
cannam@86 4455
cannam@86 4456
cannam@86 4457
cannam@86 4458
cannam@86 4459
cannam@86 4460
cannam@86 4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
cannam@86 4462 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cannam@86 4463 if ${lt_cv_path_NM+:} false; then :
cannam@86 4464 $as_echo_n "(cached) " >&6
cannam@86 4465 else
cannam@86 4466 if test -n "$NM"; then
cannam@86 4467 # Let the user override the test.
cannam@86 4468 lt_cv_path_NM="$NM"
cannam@86 4469 else
cannam@86 4470 lt_nm_to_check="${ac_tool_prefix}nm"
cannam@86 4471 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
cannam@86 4472 lt_nm_to_check="$lt_nm_to_check nm"
cannam@86 4473 fi
cannam@86 4474 for lt_tmp_nm in $lt_nm_to_check; do
cannam@86 4475 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cannam@86 4476 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
cannam@86 4477 IFS="$lt_save_ifs"
cannam@86 4478 test -z "$ac_dir" && ac_dir=.
cannam@86 4479 tmp_nm="$ac_dir/$lt_tmp_nm"
cannam@86 4480 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
cannam@86 4481 # Check to see if the nm accepts a BSD-compat flag.
cannam@86 4482 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
cannam@86 4483 # nm: unknown option "B" ignored
cannam@86 4484 # Tru64's nm complains that /dev/null is an invalid object file
cannam@86 4485 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
cannam@86 4486 */dev/null* | *'Invalid file or object type'*)
cannam@86 4487 lt_cv_path_NM="$tmp_nm -B"
cannam@86 4488 break
cannam@86 4489 ;;
cannam@86 4490 *)
cannam@86 4491 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
cannam@86 4492 */dev/null*)
cannam@86 4493 lt_cv_path_NM="$tmp_nm -p"
cannam@86 4494 break
cannam@86 4495 ;;
cannam@86 4496 *)
cannam@86 4497 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
cannam@86 4498 continue # so that we can try to find one that supports BSD flags
cannam@86 4499 ;;
cannam@86 4500 esac
cannam@86 4501 ;;
cannam@86 4502 esac
cannam@86 4503 fi
cannam@86 4504 done
cannam@86 4505 IFS="$lt_save_ifs"
cannam@86 4506 done
cannam@86 4507 : ${lt_cv_path_NM=no}
cannam@86 4508 fi
cannam@86 4509 fi
cannam@86 4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
cannam@86 4511 $as_echo "$lt_cv_path_NM" >&6; }
cannam@86 4512 if test "$lt_cv_path_NM" != "no"; then
cannam@86 4513 NM="$lt_cv_path_NM"
cannam@86 4514 else
cannam@86 4515 # Didn't find any BSD compatible name lister, look for dumpbin.
cannam@86 4516 if test -n "$DUMPBIN"; then :
cannam@86 4517 # Let the user override the test.
cannam@86 4518 else
cannam@86 4519 if test -n "$ac_tool_prefix"; then
cannam@86 4520 for ac_prog in dumpbin "link -dump"
cannam@86 4521 do
cannam@86 4522 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
cannam@86 4523 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cannam@86 4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 4525 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 4526 if ${ac_cv_prog_DUMPBIN+:} false; then :
cannam@86 4527 $as_echo_n "(cached) " >&6
cannam@86 4528 else
cannam@86 4529 if test -n "$DUMPBIN"; then
cannam@86 4530 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
cannam@86 4531 else
cannam@86 4532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 4533 for as_dir in $PATH
cannam@86 4534 do
cannam@86 4535 IFS=$as_save_IFS
cannam@86 4536 test -z "$as_dir" && as_dir=.
cannam@86 4537 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 4538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 4539 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cannam@86 4540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 4541 break 2
cannam@86 4542 fi
cannam@86 4543 done
cannam@86 4544 done
cannam@86 4545 IFS=$as_save_IFS
cannam@86 4546
cannam@86 4547 fi
cannam@86 4548 fi
cannam@86 4549 DUMPBIN=$ac_cv_prog_DUMPBIN
cannam@86 4550 if test -n "$DUMPBIN"; then
cannam@86 4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
cannam@86 4552 $as_echo "$DUMPBIN" >&6; }
cannam@86 4553 else
cannam@86 4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 4555 $as_echo "no" >&6; }
cannam@86 4556 fi
cannam@86 4557
cannam@86 4558
cannam@86 4559 test -n "$DUMPBIN" && break
cannam@86 4560 done
cannam@86 4561 fi
cannam@86 4562 if test -z "$DUMPBIN"; then
cannam@86 4563 ac_ct_DUMPBIN=$DUMPBIN
cannam@86 4564 for ac_prog in dumpbin "link -dump"
cannam@86 4565 do
cannam@86 4566 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@86 4567 set dummy $ac_prog; ac_word=$2
cannam@86 4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 4569 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 4570 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cannam@86 4571 $as_echo_n "(cached) " >&6
cannam@86 4572 else
cannam@86 4573 if test -n "$ac_ct_DUMPBIN"; then
cannam@86 4574 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
cannam@86 4575 else
cannam@86 4576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 4577 for as_dir in $PATH
cannam@86 4578 do
cannam@86 4579 IFS=$as_save_IFS
cannam@86 4580 test -z "$as_dir" && as_dir=.
cannam@86 4581 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 4582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 4583 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cannam@86 4584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 4585 break 2
cannam@86 4586 fi
cannam@86 4587 done
cannam@86 4588 done
cannam@86 4589 IFS=$as_save_IFS
cannam@86 4590
cannam@86 4591 fi
cannam@86 4592 fi
cannam@86 4593 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
cannam@86 4594 if test -n "$ac_ct_DUMPBIN"; then
cannam@86 4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
cannam@86 4596 $as_echo "$ac_ct_DUMPBIN" >&6; }
cannam@86 4597 else
cannam@86 4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 4599 $as_echo "no" >&6; }
cannam@86 4600 fi
cannam@86 4601
cannam@86 4602
cannam@86 4603 test -n "$ac_ct_DUMPBIN" && break
cannam@86 4604 done
cannam@86 4605
cannam@86 4606 if test "x$ac_ct_DUMPBIN" = x; then
cannam@86 4607 DUMPBIN=":"
cannam@86 4608 else
cannam@86 4609 case $cross_compiling:$ac_tool_warned in
cannam@86 4610 yes:)
cannam@86 4611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@86 4612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@86 4613 ac_tool_warned=yes ;;
cannam@86 4614 esac
cannam@86 4615 DUMPBIN=$ac_ct_DUMPBIN
cannam@86 4616 fi
cannam@86 4617 fi
cannam@86 4618
cannam@86 4619 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
cannam@86 4620 *COFF*)
cannam@86 4621 DUMPBIN="$DUMPBIN -symbols"
cannam@86 4622 ;;
cannam@86 4623 *)
cannam@86 4624 DUMPBIN=:
cannam@86 4625 ;;
cannam@86 4626 esac
cannam@86 4627 fi
cannam@86 4628
cannam@86 4629 if test "$DUMPBIN" != ":"; then
cannam@86 4630 NM="$DUMPBIN"
cannam@86 4631 fi
cannam@86 4632 fi
cannam@86 4633 test -z "$NM" && NM=nm
cannam@86 4634
cannam@86 4635
cannam@86 4636
cannam@86 4637
cannam@86 4638
cannam@86 4639
cannam@86 4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
cannam@86 4641 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
cannam@86 4642 if ${lt_cv_nm_interface+:} false; then :
cannam@86 4643 $as_echo_n "(cached) " >&6
cannam@86 4644 else
cannam@86 4645 lt_cv_nm_interface="BSD nm"
cannam@86 4646 echo "int some_variable = 0;" > conftest.$ac_ext
cannam@86 4647 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cannam@86 4648 (eval "$ac_compile" 2>conftest.err)
cannam@86 4649 cat conftest.err >&5
cannam@86 4650 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cannam@86 4651 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
cannam@86 4652 cat conftest.err >&5
cannam@86 4653 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cannam@86 4654 cat conftest.out >&5
cannam@86 4655 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
cannam@86 4656 lt_cv_nm_interface="MS dumpbin"
cannam@86 4657 fi
cannam@86 4658 rm -f conftest*
cannam@86 4659 fi
cannam@86 4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
cannam@86 4661 $as_echo "$lt_cv_nm_interface" >&6; }
cannam@86 4662
cannam@86 4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cannam@86 4664 $as_echo_n "checking whether ln -s works... " >&6; }
cannam@86 4665 LN_S=$as_ln_s
cannam@86 4666 if test "$LN_S" = "ln -s"; then
cannam@86 4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@86 4668 $as_echo "yes" >&6; }
cannam@86 4669 else
cannam@86 4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cannam@86 4671 $as_echo "no, using $LN_S" >&6; }
cannam@86 4672 fi
cannam@86 4673
cannam@86 4674 # find the maximum length of command line arguments
cannam@86 4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
cannam@86 4676 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
cannam@86 4677 if ${lt_cv_sys_max_cmd_len+:} false; then :
cannam@86 4678 $as_echo_n "(cached) " >&6
cannam@86 4679 else
cannam@86 4680 i=0
cannam@86 4681 teststring="ABCD"
cannam@86 4682
cannam@86 4683 case $build_os in
cannam@86 4684 msdosdjgpp*)
cannam@86 4685 # On DJGPP, this test can blow up pretty badly due to problems in libc
cannam@86 4686 # (any single argument exceeding 2000 bytes causes a buffer overrun
cannam@86 4687 # during glob expansion). Even if it were fixed, the result of this
cannam@86 4688 # check would be larger than it should be.
cannam@86 4689 lt_cv_sys_max_cmd_len=12288; # 12K is about right
cannam@86 4690 ;;
cannam@86 4691
cannam@86 4692 gnu*)
cannam@86 4693 # Under GNU Hurd, this test is not required because there is
cannam@86 4694 # no limit to the length of command line arguments.
cannam@86 4695 # Libtool will interpret -1 as no limit whatsoever
cannam@86 4696 lt_cv_sys_max_cmd_len=-1;
cannam@86 4697 ;;
cannam@86 4698
cannam@86 4699 cygwin* | mingw* | cegcc*)
cannam@86 4700 # On Win9x/ME, this test blows up -- it succeeds, but takes
cannam@86 4701 # about 5 minutes as the teststring grows exponentially.
cannam@86 4702 # Worse, since 9x/ME are not pre-emptively multitasking,
cannam@86 4703 # you end up with a "frozen" computer, even though with patience
cannam@86 4704 # the test eventually succeeds (with a max line length of 256k).
cannam@86 4705 # Instead, let's just punt: use the minimum linelength reported by
cannam@86 4706 # all of the supported platforms: 8192 (on NT/2K/XP).
cannam@86 4707 lt_cv_sys_max_cmd_len=8192;
cannam@86 4708 ;;
cannam@86 4709
cannam@86 4710 mint*)
cannam@86 4711 # On MiNT this can take a long time and run out of memory.
cannam@86 4712 lt_cv_sys_max_cmd_len=8192;
cannam@86 4713 ;;
cannam@86 4714
cannam@86 4715 amigaos*)
cannam@86 4716 # On AmigaOS with pdksh, this test takes hours, literally.
cannam@86 4717 # So we just punt and use a minimum line length of 8192.
cannam@86 4718 lt_cv_sys_max_cmd_len=8192;
cannam@86 4719 ;;
cannam@86 4720
cannam@86 4721 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
cannam@86 4722 # This has been around since 386BSD, at least. Likely further.
cannam@86 4723 if test -x /sbin/sysctl; then
cannam@86 4724 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
cannam@86 4725 elif test -x /usr/sbin/sysctl; then
cannam@86 4726 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
cannam@86 4727 else
cannam@86 4728 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
cannam@86 4729 fi
cannam@86 4730 # And add a safety zone
cannam@86 4731 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
cannam@86 4732 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
cannam@86 4733 ;;
cannam@86 4734
cannam@86 4735 interix*)
cannam@86 4736 # We know the value 262144 and hardcode it with a safety zone (like BSD)
cannam@86 4737 lt_cv_sys_max_cmd_len=196608
cannam@86 4738 ;;
cannam@86 4739
cannam@86 4740 osf*)
cannam@86 4741 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
cannam@86 4742 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
cannam@86 4743 # nice to cause kernel panics so lets avoid the loop below.
cannam@86 4744 # First set a reasonable default.
cannam@86 4745 lt_cv_sys_max_cmd_len=16384
cannam@86 4746 #
cannam@86 4747 if test -x /sbin/sysconfig; then
cannam@86 4748 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
cannam@86 4749 *1*) lt_cv_sys_max_cmd_len=-1 ;;
cannam@86 4750 esac
cannam@86 4751 fi
cannam@86 4752 ;;
cannam@86 4753 sco3.2v5*)
cannam@86 4754 lt_cv_sys_max_cmd_len=102400
cannam@86 4755 ;;
cannam@86 4756 sysv5* | sco5v6* | sysv4.2uw2*)
cannam@86 4757 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
cannam@86 4758 if test -n "$kargmax"; then
cannam@86 4759 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
cannam@86 4760 else
cannam@86 4761 lt_cv_sys_max_cmd_len=32768
cannam@86 4762 fi
cannam@86 4763 ;;
cannam@86 4764 *)
cannam@86 4765 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
cannam@86 4766 if test -n "$lt_cv_sys_max_cmd_len"; then
cannam@86 4767 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
cannam@86 4768 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
cannam@86 4769 else
cannam@86 4770 # Make teststring a little bigger before we do anything with it.
cannam@86 4771 # a 1K string should be a reasonable start.
cannam@86 4772 for i in 1 2 3 4 5 6 7 8 ; do
cannam@86 4773 teststring=$teststring$teststring
cannam@86 4774 done
cannam@86 4775 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
cannam@86 4776 # If test is not a shell built-in, we'll probably end up computing a
cannam@86 4777 # maximum length that is only half of the actual maximum length, but
cannam@86 4778 # we can't tell.
cannam@86 4779 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
cannam@86 4780 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cannam@86 4781 test $i != 17 # 1/2 MB should be enough
cannam@86 4782 do
cannam@86 4783 i=`expr $i + 1`
cannam@86 4784 teststring=$teststring$teststring
cannam@86 4785 done
cannam@86 4786 # Only check the string length outside the loop.
cannam@86 4787 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
cannam@86 4788 teststring=
cannam@86 4789 # Add a significant safety factor because C++ compilers can tack on
cannam@86 4790 # massive amounts of additional arguments before passing them to the
cannam@86 4791 # linker. It appears as though 1/2 is a usable value.
cannam@86 4792 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
cannam@86 4793 fi
cannam@86 4794 ;;
cannam@86 4795 esac
cannam@86 4796
cannam@86 4797 fi
cannam@86 4798
cannam@86 4799 if test -n $lt_cv_sys_max_cmd_len ; then
cannam@86 4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
cannam@86 4801 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
cannam@86 4802 else
cannam@86 4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
cannam@86 4804 $as_echo "none" >&6; }
cannam@86 4805 fi
cannam@86 4806 max_cmd_len=$lt_cv_sys_max_cmd_len
cannam@86 4807
cannam@86 4808
cannam@86 4809
cannam@86 4810
cannam@86 4811
cannam@86 4812
cannam@86 4813 : ${CP="cp -f"}
cannam@86 4814 : ${MV="mv -f"}
cannam@86 4815 : ${RM="rm -f"}
cannam@86 4816
cannam@86 4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
cannam@86 4818 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
cannam@86 4819 # Try some XSI features
cannam@86 4820 xsi_shell=no
cannam@86 4821 ( _lt_dummy="a/b/c"
cannam@86 4822 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
cannam@86 4823 = c,a/b,b/c, \
cannam@86 4824 && eval 'test $(( 1 + 1 )) -eq 2 \
cannam@86 4825 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
cannam@86 4826 && xsi_shell=yes
cannam@86 4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
cannam@86 4828 $as_echo "$xsi_shell" >&6; }
cannam@86 4829
cannam@86 4830
cannam@86 4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
cannam@86 4832 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
cannam@86 4833 lt_shell_append=no
cannam@86 4834 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
cannam@86 4835 >/dev/null 2>&1 \
cannam@86 4836 && lt_shell_append=yes
cannam@86 4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
cannam@86 4838 $as_echo "$lt_shell_append" >&6; }
cannam@86 4839
cannam@86 4840
cannam@86 4841 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
cannam@86 4842 lt_unset=unset
cannam@86 4843 else
cannam@86 4844 lt_unset=false
cannam@86 4845 fi
cannam@86 4846
cannam@86 4847
cannam@86 4848
cannam@86 4849
cannam@86 4850
cannam@86 4851 # test EBCDIC or ASCII
cannam@86 4852 case `echo X|tr X '\101'` in
cannam@86 4853 A) # ASCII based system
cannam@86 4854 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
cannam@86 4855 lt_SP2NL='tr \040 \012'
cannam@86 4856 lt_NL2SP='tr \015\012 \040\040'
cannam@86 4857 ;;
cannam@86 4858 *) # EBCDIC based system
cannam@86 4859 lt_SP2NL='tr \100 \n'
cannam@86 4860 lt_NL2SP='tr \r\n \100\100'
cannam@86 4861 ;;
cannam@86 4862 esac
cannam@86 4863
cannam@86 4864
cannam@86 4865
cannam@86 4866
cannam@86 4867
cannam@86 4868
cannam@86 4869
cannam@86 4870
cannam@86 4871
cannam@86 4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
cannam@86 4873 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
cannam@86 4874 if ${lt_cv_to_host_file_cmd+:} false; then :
cannam@86 4875 $as_echo_n "(cached) " >&6
cannam@86 4876 else
cannam@86 4877 case $host in
cannam@86 4878 *-*-mingw* )
cannam@86 4879 case $build in
cannam@86 4880 *-*-mingw* ) # actually msys
cannam@86 4881 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
cannam@86 4882 ;;
cannam@86 4883 *-*-cygwin* )
cannam@86 4884 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
cannam@86 4885 ;;
cannam@86 4886 * ) # otherwise, assume *nix
cannam@86 4887 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
cannam@86 4888 ;;
cannam@86 4889 esac
cannam@86 4890 ;;
cannam@86 4891 *-*-cygwin* )
cannam@86 4892 case $build in
cannam@86 4893 *-*-mingw* ) # actually msys
cannam@86 4894 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
cannam@86 4895 ;;
cannam@86 4896 *-*-cygwin* )
cannam@86 4897 lt_cv_to_host_file_cmd=func_convert_file_noop
cannam@86 4898 ;;
cannam@86 4899 * ) # otherwise, assume *nix
cannam@86 4900 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
cannam@86 4901 ;;
cannam@86 4902 esac
cannam@86 4903 ;;
cannam@86 4904 * ) # unhandled hosts (and "normal" native builds)
cannam@86 4905 lt_cv_to_host_file_cmd=func_convert_file_noop
cannam@86 4906 ;;
cannam@86 4907 esac
cannam@86 4908
cannam@86 4909 fi
cannam@86 4910
cannam@86 4911 to_host_file_cmd=$lt_cv_to_host_file_cmd
cannam@86 4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
cannam@86 4913 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
cannam@86 4914
cannam@86 4915
cannam@86 4916
cannam@86 4917
cannam@86 4918
cannam@86 4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
cannam@86 4920 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
cannam@86 4921 if ${lt_cv_to_tool_file_cmd+:} false; then :
cannam@86 4922 $as_echo_n "(cached) " >&6
cannam@86 4923 else
cannam@86 4924 #assume ordinary cross tools, or native build.
cannam@86 4925 lt_cv_to_tool_file_cmd=func_convert_file_noop
cannam@86 4926 case $host in
cannam@86 4927 *-*-mingw* )
cannam@86 4928 case $build in
cannam@86 4929 *-*-mingw* ) # actually msys
cannam@86 4930 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
cannam@86 4931 ;;
cannam@86 4932 esac
cannam@86 4933 ;;
cannam@86 4934 esac
cannam@86 4935
cannam@86 4936 fi
cannam@86 4937
cannam@86 4938 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
cannam@86 4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
cannam@86 4940 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
cannam@86 4941
cannam@86 4942
cannam@86 4943
cannam@86 4944
cannam@86 4945
cannam@86 4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
cannam@86 4947 $as_echo_n "checking for $LD option to reload object files... " >&6; }
cannam@86 4948 if ${lt_cv_ld_reload_flag+:} false; then :
cannam@86 4949 $as_echo_n "(cached) " >&6
cannam@86 4950 else
cannam@86 4951 lt_cv_ld_reload_flag='-r'
cannam@86 4952 fi
cannam@86 4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
cannam@86 4954 $as_echo "$lt_cv_ld_reload_flag" >&6; }
cannam@86 4955 reload_flag=$lt_cv_ld_reload_flag
cannam@86 4956 case $reload_flag in
cannam@86 4957 "" | " "*) ;;
cannam@86 4958 *) reload_flag=" $reload_flag" ;;
cannam@86 4959 esac
cannam@86 4960 reload_cmds='$LD$reload_flag -o $output$reload_objs'
cannam@86 4961 case $host_os in
cannam@86 4962 cygwin* | mingw* | pw32* | cegcc*)
cannam@86 4963 if test "$GCC" != yes; then
cannam@86 4964 reload_cmds=false
cannam@86 4965 fi
cannam@86 4966 ;;
cannam@86 4967 darwin*)
cannam@86 4968 if test "$GCC" = yes; then
cannam@86 4969 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
cannam@86 4970 else
cannam@86 4971 reload_cmds='$LD$reload_flag -o $output$reload_objs'
cannam@86 4972 fi
cannam@86 4973 ;;
cannam@86 4974 esac
cannam@86 4975
cannam@86 4976
cannam@86 4977
cannam@86 4978
cannam@86 4979
cannam@86 4980
cannam@86 4981
cannam@86 4982
cannam@86 4983
cannam@86 4984 if test -n "$ac_tool_prefix"; then
cannam@86 4985 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
cannam@86 4986 set dummy ${ac_tool_prefix}objdump; ac_word=$2
cannam@86 4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 4988 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 4989 if ${ac_cv_prog_OBJDUMP+:} false; then :
cannam@86 4990 $as_echo_n "(cached) " >&6
cannam@86 4991 else
cannam@86 4992 if test -n "$OBJDUMP"; then
cannam@86 4993 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
cannam@86 4994 else
cannam@86 4995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 4996 for as_dir in $PATH
cannam@86 4997 do
cannam@86 4998 IFS=$as_save_IFS
cannam@86 4999 test -z "$as_dir" && as_dir=.
cannam@86 5000 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 5001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 5002 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cannam@86 5003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 5004 break 2
cannam@86 5005 fi
cannam@86 5006 done
cannam@86 5007 done
cannam@86 5008 IFS=$as_save_IFS
cannam@86 5009
cannam@86 5010 fi
cannam@86 5011 fi
cannam@86 5012 OBJDUMP=$ac_cv_prog_OBJDUMP
cannam@86 5013 if test -n "$OBJDUMP"; then
cannam@86 5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cannam@86 5015 $as_echo "$OBJDUMP" >&6; }
cannam@86 5016 else
cannam@86 5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 5018 $as_echo "no" >&6; }
cannam@86 5019 fi
cannam@86 5020
cannam@86 5021
cannam@86 5022 fi
cannam@86 5023 if test -z "$ac_cv_prog_OBJDUMP"; then
cannam@86 5024 ac_ct_OBJDUMP=$OBJDUMP
cannam@86 5025 # Extract the first word of "objdump", so it can be a program name with args.
cannam@86 5026 set dummy objdump; ac_word=$2
cannam@86 5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 5028 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 5029 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cannam@86 5030 $as_echo_n "(cached) " >&6
cannam@86 5031 else
cannam@86 5032 if test -n "$ac_ct_OBJDUMP"; then
cannam@86 5033 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
cannam@86 5034 else
cannam@86 5035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 5036 for as_dir in $PATH
cannam@86 5037 do
cannam@86 5038 IFS=$as_save_IFS
cannam@86 5039 test -z "$as_dir" && as_dir=.
cannam@86 5040 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 5041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 5042 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cannam@86 5043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 5044 break 2
cannam@86 5045 fi
cannam@86 5046 done
cannam@86 5047 done
cannam@86 5048 IFS=$as_save_IFS
cannam@86 5049
cannam@86 5050 fi
cannam@86 5051 fi
cannam@86 5052 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
cannam@86 5053 if test -n "$ac_ct_OBJDUMP"; then
cannam@86 5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cannam@86 5055 $as_echo "$ac_ct_OBJDUMP" >&6; }
cannam@86 5056 else
cannam@86 5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 5058 $as_echo "no" >&6; }
cannam@86 5059 fi
cannam@86 5060
cannam@86 5061 if test "x$ac_ct_OBJDUMP" = x; then
cannam@86 5062 OBJDUMP="false"
cannam@86 5063 else
cannam@86 5064 case $cross_compiling:$ac_tool_warned in
cannam@86 5065 yes:)
cannam@86 5066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@86 5067 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@86 5068 ac_tool_warned=yes ;;
cannam@86 5069 esac
cannam@86 5070 OBJDUMP=$ac_ct_OBJDUMP
cannam@86 5071 fi
cannam@86 5072 else
cannam@86 5073 OBJDUMP="$ac_cv_prog_OBJDUMP"
cannam@86 5074 fi
cannam@86 5075
cannam@86 5076 test -z "$OBJDUMP" && OBJDUMP=objdump
cannam@86 5077
cannam@86 5078
cannam@86 5079
cannam@86 5080
cannam@86 5081
cannam@86 5082
cannam@86 5083
cannam@86 5084
cannam@86 5085
cannam@86 5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
cannam@86 5087 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
cannam@86 5088 if ${lt_cv_deplibs_check_method+:} false; then :
cannam@86 5089 $as_echo_n "(cached) " >&6
cannam@86 5090 else
cannam@86 5091 lt_cv_file_magic_cmd='$MAGIC_CMD'
cannam@86 5092 lt_cv_file_magic_test_file=
cannam@86 5093 lt_cv_deplibs_check_method='unknown'
cannam@86 5094 # Need to set the preceding variable on all platforms that support
cannam@86 5095 # interlibrary dependencies.
cannam@86 5096 # 'none' -- dependencies not supported.
cannam@86 5097 # `unknown' -- same as none, but documents that we really don't know.
cannam@86 5098 # 'pass_all' -- all dependencies passed with no checks.
cannam@86 5099 # 'test_compile' -- check by making test program.
cannam@86 5100 # 'file_magic [[regex]]' -- check by looking for files in library path
cannam@86 5101 # which responds to the $file_magic_cmd with a given extended regex.
cannam@86 5102 # If you have `file' or equivalent on your system and you're not sure
cannam@86 5103 # whether `pass_all' will *always* work, you probably want this one.
cannam@86 5104
cannam@86 5105 case $host_os in
cannam@86 5106 aix[4-9]*)
cannam@86 5107 lt_cv_deplibs_check_method=pass_all
cannam@86 5108 ;;
cannam@86 5109
cannam@86 5110 beos*)
cannam@86 5111 lt_cv_deplibs_check_method=pass_all
cannam@86 5112 ;;
cannam@86 5113
cannam@86 5114 bsdi[45]*)
cannam@86 5115 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
cannam@86 5116 lt_cv_file_magic_cmd='/usr/bin/file -L'
cannam@86 5117 lt_cv_file_magic_test_file=/shlib/libc.so
cannam@86 5118 ;;
cannam@86 5119
cannam@86 5120 cygwin*)
cannam@86 5121 # func_win32_libid is a shell function defined in ltmain.sh
cannam@86 5122 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
cannam@86 5123 lt_cv_file_magic_cmd='func_win32_libid'
cannam@86 5124 ;;
cannam@86 5125
cannam@86 5126 mingw* | pw32*)
cannam@86 5127 # Base MSYS/MinGW do not provide the 'file' command needed by
cannam@86 5128 # func_win32_libid shell function, so use a weaker test based on 'objdump',
cannam@86 5129 # unless we find 'file', for example because we are cross-compiling.
cannam@86 5130 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
cannam@86 5131 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cannam@86 5132 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
cannam@86 5133 lt_cv_file_magic_cmd='func_win32_libid'
cannam@86 5134 else
cannam@86 5135 # Keep this pattern in sync with the one in func_win32_libid.
cannam@86 5136 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
cannam@86 5137 lt_cv_file_magic_cmd='$OBJDUMP -f'
cannam@86 5138 fi
cannam@86 5139 ;;
cannam@86 5140
cannam@86 5141 cegcc*)
cannam@86 5142 # use the weaker test based on 'objdump'. See mingw*.
cannam@86 5143 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
cannam@86 5144 lt_cv_file_magic_cmd='$OBJDUMP -f'
cannam@86 5145 ;;
cannam@86 5146
cannam@86 5147 darwin* | rhapsody*)
cannam@86 5148 lt_cv_deplibs_check_method=pass_all
cannam@86 5149 ;;
cannam@86 5150
cannam@86 5151 freebsd* | dragonfly*)
cannam@86 5152 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
cannam@86 5153 case $host_cpu in
cannam@86 5154 i*86 )
cannam@86 5155 # Not sure whether the presence of OpenBSD here was a mistake.
cannam@86 5156 # Let's accept both of them until this is cleared up.
cannam@86 5157 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
cannam@86 5158 lt_cv_file_magic_cmd=/usr/bin/file
cannam@86 5159 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
cannam@86 5160 ;;
cannam@86 5161 esac
cannam@86 5162 else
cannam@86 5163 lt_cv_deplibs_check_method=pass_all
cannam@86 5164 fi
cannam@86 5165 ;;
cannam@86 5166
cannam@86 5167 gnu*)
cannam@86 5168 lt_cv_deplibs_check_method=pass_all
cannam@86 5169 ;;
cannam@86 5170
cannam@86 5171 haiku*)
cannam@86 5172 lt_cv_deplibs_check_method=pass_all
cannam@86 5173 ;;
cannam@86 5174
cannam@86 5175 hpux10.20* | hpux11*)
cannam@86 5176 lt_cv_file_magic_cmd=/usr/bin/file
cannam@86 5177 case $host_cpu in
cannam@86 5178 ia64*)
cannam@86 5179 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
cannam@86 5180 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
cannam@86 5181 ;;
cannam@86 5182 hppa*64*)
cannam@86 5183 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
cannam@86 5184 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
cannam@86 5185 ;;
cannam@86 5186 *)
cannam@86 5187 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
cannam@86 5188 lt_cv_file_magic_test_file=/usr/lib/libc.sl
cannam@86 5189 ;;
cannam@86 5190 esac
cannam@86 5191 ;;
cannam@86 5192
cannam@86 5193 interix[3-9]*)
cannam@86 5194 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
cannam@86 5195 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
cannam@86 5196 ;;
cannam@86 5197
cannam@86 5198 irix5* | irix6* | nonstopux*)
cannam@86 5199 case $LD in
cannam@86 5200 *-32|*"-32 ") libmagic=32-bit;;
cannam@86 5201 *-n32|*"-n32 ") libmagic=N32;;
cannam@86 5202 *-64|*"-64 ") libmagic=64-bit;;
cannam@86 5203 *) libmagic=never-match;;
cannam@86 5204 esac
cannam@86 5205 lt_cv_deplibs_check_method=pass_all
cannam@86 5206 ;;
cannam@86 5207
cannam@86 5208 # This must be Linux ELF.
cannam@86 5209 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cannam@86 5210 lt_cv_deplibs_check_method=pass_all
cannam@86 5211 ;;
cannam@86 5212
cannam@86 5213 netbsd*)
cannam@86 5214 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
cannam@86 5215 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cannam@86 5216 else
cannam@86 5217 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
cannam@86 5218 fi
cannam@86 5219 ;;
cannam@86 5220
cannam@86 5221 newos6*)
cannam@86 5222 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
cannam@86 5223 lt_cv_file_magic_cmd=/usr/bin/file
cannam@86 5224 lt_cv_file_magic_test_file=/usr/lib/libnls.so
cannam@86 5225 ;;
cannam@86 5226
cannam@86 5227 *nto* | *qnx*)
cannam@86 5228 lt_cv_deplibs_check_method=pass_all
cannam@86 5229 ;;
cannam@86 5230
cannam@86 5231 openbsd*)
cannam@86 5232 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
cannam@86 5233 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
cannam@86 5234 else
cannam@86 5235 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cannam@86 5236 fi
cannam@86 5237 ;;
cannam@86 5238
cannam@86 5239 osf3* | osf4* | osf5*)
cannam@86 5240 lt_cv_deplibs_check_method=pass_all
cannam@86 5241 ;;
cannam@86 5242
cannam@86 5243 rdos*)
cannam@86 5244 lt_cv_deplibs_check_method=pass_all
cannam@86 5245 ;;
cannam@86 5246
cannam@86 5247 solaris*)
cannam@86 5248 lt_cv_deplibs_check_method=pass_all
cannam@86 5249 ;;
cannam@86 5250
cannam@86 5251 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
cannam@86 5252 lt_cv_deplibs_check_method=pass_all
cannam@86 5253 ;;
cannam@86 5254
cannam@86 5255 sysv4 | sysv4.3*)
cannam@86 5256 case $host_vendor in
cannam@86 5257 motorola)
cannam@86 5258 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]'
cannam@86 5259 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
cannam@86 5260 ;;
cannam@86 5261 ncr)
cannam@86 5262 lt_cv_deplibs_check_method=pass_all
cannam@86 5263 ;;
cannam@86 5264 sequent)
cannam@86 5265 lt_cv_file_magic_cmd='/bin/file'
cannam@86 5266 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
cannam@86 5267 ;;
cannam@86 5268 sni)
cannam@86 5269 lt_cv_file_magic_cmd='/bin/file'
cannam@86 5270 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
cannam@86 5271 lt_cv_file_magic_test_file=/lib/libc.so
cannam@86 5272 ;;
cannam@86 5273 siemens)
cannam@86 5274 lt_cv_deplibs_check_method=pass_all
cannam@86 5275 ;;
cannam@86 5276 pc)
cannam@86 5277 lt_cv_deplibs_check_method=pass_all
cannam@86 5278 ;;
cannam@86 5279 esac
cannam@86 5280 ;;
cannam@86 5281
cannam@86 5282 tpf*)
cannam@86 5283 lt_cv_deplibs_check_method=pass_all
cannam@86 5284 ;;
cannam@86 5285 esac
cannam@86 5286
cannam@86 5287 fi
cannam@86 5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
cannam@86 5289 $as_echo "$lt_cv_deplibs_check_method" >&6; }
cannam@86 5290
cannam@86 5291 file_magic_glob=
cannam@86 5292 want_nocaseglob=no
cannam@86 5293 if test "$build" = "$host"; then
cannam@86 5294 case $host_os in
cannam@86 5295 mingw* | pw32*)
cannam@86 5296 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
cannam@86 5297 want_nocaseglob=yes
cannam@86 5298 else
cannam@86 5299 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
cannam@86 5300 fi
cannam@86 5301 ;;
cannam@86 5302 esac
cannam@86 5303 fi
cannam@86 5304
cannam@86 5305 file_magic_cmd=$lt_cv_file_magic_cmd
cannam@86 5306 deplibs_check_method=$lt_cv_deplibs_check_method
cannam@86 5307 test -z "$deplibs_check_method" && deplibs_check_method=unknown
cannam@86 5308
cannam@86 5309
cannam@86 5310
cannam@86 5311
cannam@86 5312
cannam@86 5313
cannam@86 5314
cannam@86 5315
cannam@86 5316
cannam@86 5317
cannam@86 5318
cannam@86 5319
cannam@86 5320
cannam@86 5321
cannam@86 5322
cannam@86 5323
cannam@86 5324
cannam@86 5325
cannam@86 5326
cannam@86 5327
cannam@86 5328
cannam@86 5329
cannam@86 5330 if test -n "$ac_tool_prefix"; then
cannam@86 5331 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
cannam@86 5332 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cannam@86 5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 5334 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 5335 if ${ac_cv_prog_DLLTOOL+:} false; then :
cannam@86 5336 $as_echo_n "(cached) " >&6
cannam@86 5337 else
cannam@86 5338 if test -n "$DLLTOOL"; then
cannam@86 5339 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
cannam@86 5340 else
cannam@86 5341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 5342 for as_dir in $PATH
cannam@86 5343 do
cannam@86 5344 IFS=$as_save_IFS
cannam@86 5345 test -z "$as_dir" && as_dir=.
cannam@86 5346 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 5347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 5348 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
cannam@86 5349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 5350 break 2
cannam@86 5351 fi
cannam@86 5352 done
cannam@86 5353 done
cannam@86 5354 IFS=$as_save_IFS
cannam@86 5355
cannam@86 5356 fi
cannam@86 5357 fi
cannam@86 5358 DLLTOOL=$ac_cv_prog_DLLTOOL
cannam@86 5359 if test -n "$DLLTOOL"; then
cannam@86 5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
cannam@86 5361 $as_echo "$DLLTOOL" >&6; }
cannam@86 5362 else
cannam@86 5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 5364 $as_echo "no" >&6; }
cannam@86 5365 fi
cannam@86 5366
cannam@86 5367
cannam@86 5368 fi
cannam@86 5369 if test -z "$ac_cv_prog_DLLTOOL"; then
cannam@86 5370 ac_ct_DLLTOOL=$DLLTOOL
cannam@86 5371 # Extract the first word of "dlltool", so it can be a program name with args.
cannam@86 5372 set dummy dlltool; ac_word=$2
cannam@86 5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 5374 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 5375 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cannam@86 5376 $as_echo_n "(cached) " >&6
cannam@86 5377 else
cannam@86 5378 if test -n "$ac_ct_DLLTOOL"; then
cannam@86 5379 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
cannam@86 5380 else
cannam@86 5381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 5382 for as_dir in $PATH
cannam@86 5383 do
cannam@86 5384 IFS=$as_save_IFS
cannam@86 5385 test -z "$as_dir" && as_dir=.
cannam@86 5386 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 5387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 5388 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
cannam@86 5389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 5390 break 2
cannam@86 5391 fi
cannam@86 5392 done
cannam@86 5393 done
cannam@86 5394 IFS=$as_save_IFS
cannam@86 5395
cannam@86 5396 fi
cannam@86 5397 fi
cannam@86 5398 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
cannam@86 5399 if test -n "$ac_ct_DLLTOOL"; then
cannam@86 5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
cannam@86 5401 $as_echo "$ac_ct_DLLTOOL" >&6; }
cannam@86 5402 else
cannam@86 5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 5404 $as_echo "no" >&6; }
cannam@86 5405 fi
cannam@86 5406
cannam@86 5407 if test "x$ac_ct_DLLTOOL" = x; then
cannam@86 5408 DLLTOOL="false"
cannam@86 5409 else
cannam@86 5410 case $cross_compiling:$ac_tool_warned in
cannam@86 5411 yes:)
cannam@86 5412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@86 5413 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@86 5414 ac_tool_warned=yes ;;
cannam@86 5415 esac
cannam@86 5416 DLLTOOL=$ac_ct_DLLTOOL
cannam@86 5417 fi
cannam@86 5418 else
cannam@86 5419 DLLTOOL="$ac_cv_prog_DLLTOOL"
cannam@86 5420 fi
cannam@86 5421
cannam@86 5422 test -z "$DLLTOOL" && DLLTOOL=dlltool
cannam@86 5423
cannam@86 5424
cannam@86 5425
cannam@86 5426
cannam@86 5427
cannam@86 5428
cannam@86 5429
cannam@86 5430
cannam@86 5431
cannam@86 5432
cannam@86 5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
cannam@86 5434 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
cannam@86 5435 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
cannam@86 5436 $as_echo_n "(cached) " >&6
cannam@86 5437 else
cannam@86 5438 lt_cv_sharedlib_from_linklib_cmd='unknown'
cannam@86 5439
cannam@86 5440 case $host_os in
cannam@86 5441 cygwin* | mingw* | pw32* | cegcc*)
cannam@86 5442 # two different shell functions defined in ltmain.sh
cannam@86 5443 # decide which to use based on capabilities of $DLLTOOL
cannam@86 5444 case `$DLLTOOL --help 2>&1` in
cannam@86 5445 *--identify-strict*)
cannam@86 5446 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
cannam@86 5447 ;;
cannam@86 5448 *)
cannam@86 5449 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
cannam@86 5450 ;;
cannam@86 5451 esac
cannam@86 5452 ;;
cannam@86 5453 *)
cannam@86 5454 # fallback: assume linklib IS sharedlib
cannam@86 5455 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
cannam@86 5456 ;;
cannam@86 5457 esac
cannam@86 5458
cannam@86 5459 fi
cannam@86 5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
cannam@86 5461 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
cannam@86 5462 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
cannam@86 5463 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
cannam@86 5464
cannam@86 5465
cannam@86 5466
cannam@86 5467
cannam@86 5468
cannam@86 5469
cannam@86 5470
cannam@86 5471
cannam@86 5472 if test -n "$ac_tool_prefix"; then
cannam@86 5473 for ac_prog in ar
cannam@86 5474 do
cannam@86 5475 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
cannam@86 5476 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cannam@86 5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 5478 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 5479 if ${ac_cv_prog_AR+:} false; then :
cannam@86 5480 $as_echo_n "(cached) " >&6
cannam@86 5481 else
cannam@86 5482 if test -n "$AR"; then
cannam@86 5483 ac_cv_prog_AR="$AR" # Let the user override the test.
cannam@86 5484 else
cannam@86 5485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 5486 for as_dir in $PATH
cannam@86 5487 do
cannam@86 5488 IFS=$as_save_IFS
cannam@86 5489 test -z "$as_dir" && as_dir=.
cannam@86 5490 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 5491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 5492 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cannam@86 5493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 5494 break 2
cannam@86 5495 fi
cannam@86 5496 done
cannam@86 5497 done
cannam@86 5498 IFS=$as_save_IFS
cannam@86 5499
cannam@86 5500 fi
cannam@86 5501 fi
cannam@86 5502 AR=$ac_cv_prog_AR
cannam@86 5503 if test -n "$AR"; then
cannam@86 5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
cannam@86 5505 $as_echo "$AR" >&6; }
cannam@86 5506 else
cannam@86 5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 5508 $as_echo "no" >&6; }
cannam@86 5509 fi
cannam@86 5510
cannam@86 5511
cannam@86 5512 test -n "$AR" && break
cannam@86 5513 done
cannam@86 5514 fi
cannam@86 5515 if test -z "$AR"; then
cannam@86 5516 ac_ct_AR=$AR
cannam@86 5517 for ac_prog in ar
cannam@86 5518 do
cannam@86 5519 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@86 5520 set dummy $ac_prog; ac_word=$2
cannam@86 5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 5522 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 5523 if ${ac_cv_prog_ac_ct_AR+:} false; then :
cannam@86 5524 $as_echo_n "(cached) " >&6
cannam@86 5525 else
cannam@86 5526 if test -n "$ac_ct_AR"; then
cannam@86 5527 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
cannam@86 5528 else
cannam@86 5529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 5530 for as_dir in $PATH
cannam@86 5531 do
cannam@86 5532 IFS=$as_save_IFS
cannam@86 5533 test -z "$as_dir" && as_dir=.
cannam@86 5534 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 5535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 5536 ac_cv_prog_ac_ct_AR="$ac_prog"
cannam@86 5537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 5538 break 2
cannam@86 5539 fi
cannam@86 5540 done
cannam@86 5541 done
cannam@86 5542 IFS=$as_save_IFS
cannam@86 5543
cannam@86 5544 fi
cannam@86 5545 fi
cannam@86 5546 ac_ct_AR=$ac_cv_prog_ac_ct_AR
cannam@86 5547 if test -n "$ac_ct_AR"; then
cannam@86 5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
cannam@86 5549 $as_echo "$ac_ct_AR" >&6; }
cannam@86 5550 else
cannam@86 5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 5552 $as_echo "no" >&6; }
cannam@86 5553 fi
cannam@86 5554
cannam@86 5555
cannam@86 5556 test -n "$ac_ct_AR" && break
cannam@86 5557 done
cannam@86 5558
cannam@86 5559 if test "x$ac_ct_AR" = x; then
cannam@86 5560 AR="false"
cannam@86 5561 else
cannam@86 5562 case $cross_compiling:$ac_tool_warned in
cannam@86 5563 yes:)
cannam@86 5564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@86 5565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@86 5566 ac_tool_warned=yes ;;
cannam@86 5567 esac
cannam@86 5568 AR=$ac_ct_AR
cannam@86 5569 fi
cannam@86 5570 fi
cannam@86 5571
cannam@86 5572 : ${AR=ar}
cannam@86 5573 : ${AR_FLAGS=cru}
cannam@86 5574
cannam@86 5575
cannam@86 5576
cannam@86 5577
cannam@86 5578
cannam@86 5579
cannam@86 5580
cannam@86 5581
cannam@86 5582
cannam@86 5583
cannam@86 5584
cannam@86 5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
cannam@86 5586 $as_echo_n "checking for archiver @FILE support... " >&6; }
cannam@86 5587 if ${lt_cv_ar_at_file+:} false; then :
cannam@86 5588 $as_echo_n "(cached) " >&6
cannam@86 5589 else
cannam@86 5590 lt_cv_ar_at_file=no
cannam@86 5591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 5592 /* end confdefs.h. */
cannam@86 5593
cannam@86 5594 int
cannam@86 5595 main ()
cannam@86 5596 {
cannam@86 5597
cannam@86 5598 ;
cannam@86 5599 return 0;
cannam@86 5600 }
cannam@86 5601 _ACEOF
cannam@86 5602 if ac_fn_c_try_compile "$LINENO"; then :
cannam@86 5603 echo conftest.$ac_objext > conftest.lst
cannam@86 5604 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
cannam@86 5605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
cannam@86 5606 (eval $lt_ar_try) 2>&5
cannam@86 5607 ac_status=$?
cannam@86 5608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 5609 test $ac_status = 0; }
cannam@86 5610 if test "$ac_status" -eq 0; then
cannam@86 5611 # Ensure the archiver fails upon bogus file names.
cannam@86 5612 rm -f conftest.$ac_objext libconftest.a
cannam@86 5613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
cannam@86 5614 (eval $lt_ar_try) 2>&5
cannam@86 5615 ac_status=$?
cannam@86 5616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 5617 test $ac_status = 0; }
cannam@86 5618 if test "$ac_status" -ne 0; then
cannam@86 5619 lt_cv_ar_at_file=@
cannam@86 5620 fi
cannam@86 5621 fi
cannam@86 5622 rm -f conftest.* libconftest.a
cannam@86 5623
cannam@86 5624 fi
cannam@86 5625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@86 5626
cannam@86 5627 fi
cannam@86 5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
cannam@86 5629 $as_echo "$lt_cv_ar_at_file" >&6; }
cannam@86 5630
cannam@86 5631 if test "x$lt_cv_ar_at_file" = xno; then
cannam@86 5632 archiver_list_spec=
cannam@86 5633 else
cannam@86 5634 archiver_list_spec=$lt_cv_ar_at_file
cannam@86 5635 fi
cannam@86 5636
cannam@86 5637
cannam@86 5638
cannam@86 5639
cannam@86 5640
cannam@86 5641
cannam@86 5642
cannam@86 5643 if test -n "$ac_tool_prefix"; then
cannam@86 5644 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
cannam@86 5645 set dummy ${ac_tool_prefix}strip; ac_word=$2
cannam@86 5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 5647 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 5648 if ${ac_cv_prog_STRIP+:} false; then :
cannam@86 5649 $as_echo_n "(cached) " >&6
cannam@86 5650 else
cannam@86 5651 if test -n "$STRIP"; then
cannam@86 5652 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
cannam@86 5653 else
cannam@86 5654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 5655 for as_dir in $PATH
cannam@86 5656 do
cannam@86 5657 IFS=$as_save_IFS
cannam@86 5658 test -z "$as_dir" && as_dir=.
cannam@86 5659 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 5660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 5661 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cannam@86 5662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 5663 break 2
cannam@86 5664 fi
cannam@86 5665 done
cannam@86 5666 done
cannam@86 5667 IFS=$as_save_IFS
cannam@86 5668
cannam@86 5669 fi
cannam@86 5670 fi
cannam@86 5671 STRIP=$ac_cv_prog_STRIP
cannam@86 5672 if test -n "$STRIP"; then
cannam@86 5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cannam@86 5674 $as_echo "$STRIP" >&6; }
cannam@86 5675 else
cannam@86 5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 5677 $as_echo "no" >&6; }
cannam@86 5678 fi
cannam@86 5679
cannam@86 5680
cannam@86 5681 fi
cannam@86 5682 if test -z "$ac_cv_prog_STRIP"; then
cannam@86 5683 ac_ct_STRIP=$STRIP
cannam@86 5684 # Extract the first word of "strip", so it can be a program name with args.
cannam@86 5685 set dummy strip; ac_word=$2
cannam@86 5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 5687 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 5688 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cannam@86 5689 $as_echo_n "(cached) " >&6
cannam@86 5690 else
cannam@86 5691 if test -n "$ac_ct_STRIP"; then
cannam@86 5692 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
cannam@86 5693 else
cannam@86 5694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 5695 for as_dir in $PATH
cannam@86 5696 do
cannam@86 5697 IFS=$as_save_IFS
cannam@86 5698 test -z "$as_dir" && as_dir=.
cannam@86 5699 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 5700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 5701 ac_cv_prog_ac_ct_STRIP="strip"
cannam@86 5702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 5703 break 2
cannam@86 5704 fi
cannam@86 5705 done
cannam@86 5706 done
cannam@86 5707 IFS=$as_save_IFS
cannam@86 5708
cannam@86 5709 fi
cannam@86 5710 fi
cannam@86 5711 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
cannam@86 5712 if test -n "$ac_ct_STRIP"; then
cannam@86 5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cannam@86 5714 $as_echo "$ac_ct_STRIP" >&6; }
cannam@86 5715 else
cannam@86 5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 5717 $as_echo "no" >&6; }
cannam@86 5718 fi
cannam@86 5719
cannam@86 5720 if test "x$ac_ct_STRIP" = x; then
cannam@86 5721 STRIP=":"
cannam@86 5722 else
cannam@86 5723 case $cross_compiling:$ac_tool_warned in
cannam@86 5724 yes:)
cannam@86 5725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@86 5726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@86 5727 ac_tool_warned=yes ;;
cannam@86 5728 esac
cannam@86 5729 STRIP=$ac_ct_STRIP
cannam@86 5730 fi
cannam@86 5731 else
cannam@86 5732 STRIP="$ac_cv_prog_STRIP"
cannam@86 5733 fi
cannam@86 5734
cannam@86 5735 test -z "$STRIP" && STRIP=:
cannam@86 5736
cannam@86 5737
cannam@86 5738
cannam@86 5739
cannam@86 5740
cannam@86 5741
cannam@86 5742 if test -n "$ac_tool_prefix"; then
cannam@86 5743 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
cannam@86 5744 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cannam@86 5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 5746 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 5747 if ${ac_cv_prog_RANLIB+:} false; then :
cannam@86 5748 $as_echo_n "(cached) " >&6
cannam@86 5749 else
cannam@86 5750 if test -n "$RANLIB"; then
cannam@86 5751 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
cannam@86 5752 else
cannam@86 5753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 5754 for as_dir in $PATH
cannam@86 5755 do
cannam@86 5756 IFS=$as_save_IFS
cannam@86 5757 test -z "$as_dir" && as_dir=.
cannam@86 5758 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 5759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 5760 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cannam@86 5761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 5762 break 2
cannam@86 5763 fi
cannam@86 5764 done
cannam@86 5765 done
cannam@86 5766 IFS=$as_save_IFS
cannam@86 5767
cannam@86 5768 fi
cannam@86 5769 fi
cannam@86 5770 RANLIB=$ac_cv_prog_RANLIB
cannam@86 5771 if test -n "$RANLIB"; then
cannam@86 5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cannam@86 5773 $as_echo "$RANLIB" >&6; }
cannam@86 5774 else
cannam@86 5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 5776 $as_echo "no" >&6; }
cannam@86 5777 fi
cannam@86 5778
cannam@86 5779
cannam@86 5780 fi
cannam@86 5781 if test -z "$ac_cv_prog_RANLIB"; then
cannam@86 5782 ac_ct_RANLIB=$RANLIB
cannam@86 5783 # Extract the first word of "ranlib", so it can be a program name with args.
cannam@86 5784 set dummy ranlib; ac_word=$2
cannam@86 5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 5786 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 5787 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cannam@86 5788 $as_echo_n "(cached) " >&6
cannam@86 5789 else
cannam@86 5790 if test -n "$ac_ct_RANLIB"; then
cannam@86 5791 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
cannam@86 5792 else
cannam@86 5793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 5794 for as_dir in $PATH
cannam@86 5795 do
cannam@86 5796 IFS=$as_save_IFS
cannam@86 5797 test -z "$as_dir" && as_dir=.
cannam@86 5798 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 5799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 5800 ac_cv_prog_ac_ct_RANLIB="ranlib"
cannam@86 5801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 5802 break 2
cannam@86 5803 fi
cannam@86 5804 done
cannam@86 5805 done
cannam@86 5806 IFS=$as_save_IFS
cannam@86 5807
cannam@86 5808 fi
cannam@86 5809 fi
cannam@86 5810 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
cannam@86 5811 if test -n "$ac_ct_RANLIB"; then
cannam@86 5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cannam@86 5813 $as_echo "$ac_ct_RANLIB" >&6; }
cannam@86 5814 else
cannam@86 5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 5816 $as_echo "no" >&6; }
cannam@86 5817 fi
cannam@86 5818
cannam@86 5819 if test "x$ac_ct_RANLIB" = x; then
cannam@86 5820 RANLIB=":"
cannam@86 5821 else
cannam@86 5822 case $cross_compiling:$ac_tool_warned in
cannam@86 5823 yes:)
cannam@86 5824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@86 5825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@86 5826 ac_tool_warned=yes ;;
cannam@86 5827 esac
cannam@86 5828 RANLIB=$ac_ct_RANLIB
cannam@86 5829 fi
cannam@86 5830 else
cannam@86 5831 RANLIB="$ac_cv_prog_RANLIB"
cannam@86 5832 fi
cannam@86 5833
cannam@86 5834 test -z "$RANLIB" && RANLIB=:
cannam@86 5835
cannam@86 5836
cannam@86 5837
cannam@86 5838
cannam@86 5839
cannam@86 5840
cannam@86 5841 # Determine commands to create old-style static archives.
cannam@86 5842 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
cannam@86 5843 old_postinstall_cmds='chmod 644 $oldlib'
cannam@86 5844 old_postuninstall_cmds=
cannam@86 5845
cannam@86 5846 if test -n "$RANLIB"; then
cannam@86 5847 case $host_os in
cannam@86 5848 openbsd*)
cannam@86 5849 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
cannam@86 5850 ;;
cannam@86 5851 *)
cannam@86 5852 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
cannam@86 5853 ;;
cannam@86 5854 esac
cannam@86 5855 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
cannam@86 5856 fi
cannam@86 5857
cannam@86 5858 case $host_os in
cannam@86 5859 darwin*)
cannam@86 5860 lock_old_archive_extraction=yes ;;
cannam@86 5861 *)
cannam@86 5862 lock_old_archive_extraction=no ;;
cannam@86 5863 esac
cannam@86 5864
cannam@86 5865
cannam@86 5866
cannam@86 5867
cannam@86 5868
cannam@86 5869
cannam@86 5870
cannam@86 5871
cannam@86 5872
cannam@86 5873
cannam@86 5874
cannam@86 5875
cannam@86 5876
cannam@86 5877
cannam@86 5878
cannam@86 5879
cannam@86 5880
cannam@86 5881
cannam@86 5882
cannam@86 5883
cannam@86 5884
cannam@86 5885
cannam@86 5886
cannam@86 5887
cannam@86 5888
cannam@86 5889
cannam@86 5890
cannam@86 5891
cannam@86 5892
cannam@86 5893
cannam@86 5894
cannam@86 5895
cannam@86 5896
cannam@86 5897
cannam@86 5898
cannam@86 5899
cannam@86 5900
cannam@86 5901
cannam@86 5902
cannam@86 5903 # If no C compiler was specified, use CC.
cannam@86 5904 LTCC=${LTCC-"$CC"}
cannam@86 5905
cannam@86 5906 # If no C compiler flags were specified, use CFLAGS.
cannam@86 5907 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
cannam@86 5908
cannam@86 5909 # Allow CC to be a program name with arguments.
cannam@86 5910 compiler=$CC
cannam@86 5911
cannam@86 5912
cannam@86 5913 # Check for command to grab the raw symbol name followed by C symbol from nm.
cannam@86 5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
cannam@86 5915 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cannam@86 5916 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cannam@86 5917 $as_echo_n "(cached) " >&6
cannam@86 5918 else
cannam@86 5919
cannam@86 5920 # These are sane defaults that work on at least a few old systems.
cannam@86 5921 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
cannam@86 5922
cannam@86 5923 # Character class describing NM global symbol codes.
cannam@86 5924 symcode='[BCDEGRST]'
cannam@86 5925
cannam@86 5926 # Regexp to match symbols that can be accessed directly from C.
cannam@86 5927 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
cannam@86 5928
cannam@86 5929 # Define system-specific variables.
cannam@86 5930 case $host_os in
cannam@86 5931 aix*)
cannam@86 5932 symcode='[BCDT]'
cannam@86 5933 ;;
cannam@86 5934 cygwin* | mingw* | pw32* | cegcc*)
cannam@86 5935 symcode='[ABCDGISTW]'
cannam@86 5936 ;;
cannam@86 5937 hpux*)
cannam@86 5938 if test "$host_cpu" = ia64; then
cannam@86 5939 symcode='[ABCDEGRST]'
cannam@86 5940 fi
cannam@86 5941 ;;
cannam@86 5942 irix* | nonstopux*)
cannam@86 5943 symcode='[BCDEGRST]'
cannam@86 5944 ;;
cannam@86 5945 osf*)
cannam@86 5946 symcode='[BCDEGQRST]'
cannam@86 5947 ;;
cannam@86 5948 solaris*)
cannam@86 5949 symcode='[BDRT]'
cannam@86 5950 ;;
cannam@86 5951 sco3.2v5*)
cannam@86 5952 symcode='[DT]'
cannam@86 5953 ;;
cannam@86 5954 sysv4.2uw2*)
cannam@86 5955 symcode='[DT]'
cannam@86 5956 ;;
cannam@86 5957 sysv5* | sco5v6* | unixware* | OpenUNIX*)
cannam@86 5958 symcode='[ABDT]'
cannam@86 5959 ;;
cannam@86 5960 sysv4)
cannam@86 5961 symcode='[DFNSTU]'
cannam@86 5962 ;;
cannam@86 5963 esac
cannam@86 5964
cannam@86 5965 # If we're using GNU nm, then use its standard symbol codes.
cannam@86 5966 case `$NM -V 2>&1` in
cannam@86 5967 *GNU* | *'with BFD'*)
cannam@86 5968 symcode='[ABCDGIRSTW]' ;;
cannam@86 5969 esac
cannam@86 5970
cannam@86 5971 # Transform an extracted symbol line into a proper C declaration.
cannam@86 5972 # Some systems (esp. on ia64) link data and code symbols differently,
cannam@86 5973 # so use this general approach.
cannam@86 5974 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
cannam@86 5975
cannam@86 5976 # Transform an extracted symbol line into symbol name and symbol address
cannam@86 5977 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
cannam@86 5978 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'"
cannam@86 5979
cannam@86 5980 # Handle CRLF in mingw tool chain
cannam@86 5981 opt_cr=
cannam@86 5982 case $build_os in
cannam@86 5983 mingw*)
cannam@86 5984 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
cannam@86 5985 ;;
cannam@86 5986 esac
cannam@86 5987
cannam@86 5988 # Try without a prefix underscore, then with it.
cannam@86 5989 for ac_symprfx in "" "_"; do
cannam@86 5990
cannam@86 5991 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
cannam@86 5992 symxfrm="\\1 $ac_symprfx\\2 \\2"
cannam@86 5993
cannam@86 5994 # Write the raw and C identifiers.
cannam@86 5995 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
cannam@86 5996 # Fake it for dumpbin and say T for any non-static function
cannam@86 5997 # and D for any global variable.
cannam@86 5998 # Also find C++ and __fastcall symbols from MSVC++,
cannam@86 5999 # which start with @ or ?.
cannam@86 6000 lt_cv_sys_global_symbol_pipe="$AWK '"\
cannam@86 6001 " {last_section=section; section=\$ 3};"\
cannam@86 6002 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
cannam@86 6003 " \$ 0!~/External *\|/{next};"\
cannam@86 6004 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
cannam@86 6005 " {if(hide[section]) next};"\
cannam@86 6006 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
cannam@86 6007 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
cannam@86 6008 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
cannam@86 6009 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
cannam@86 6010 " ' prfx=^$ac_symprfx"
cannam@86 6011 else
cannam@86 6012 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
cannam@86 6013 fi
cannam@86 6014 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cannam@86 6015
cannam@86 6016 # Check to see that the pipe works correctly.
cannam@86 6017 pipe_works=no
cannam@86 6018
cannam@86 6019 rm -f conftest*
cannam@86 6020 cat > conftest.$ac_ext <<_LT_EOF
cannam@86 6021 #ifdef __cplusplus
cannam@86 6022 extern "C" {
cannam@86 6023 #endif
cannam@86 6024 char nm_test_var;
cannam@86 6025 void nm_test_func(void);
cannam@86 6026 void nm_test_func(void){}
cannam@86 6027 #ifdef __cplusplus
cannam@86 6028 }
cannam@86 6029 #endif
cannam@86 6030 int main(){nm_test_var='a';nm_test_func();return(0);}
cannam@86 6031 _LT_EOF
cannam@86 6032
cannam@86 6033 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@86 6034 (eval $ac_compile) 2>&5
cannam@86 6035 ac_status=$?
cannam@86 6036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 6037 test $ac_status = 0; }; then
cannam@86 6038 # Now try to grab the symbols.
cannam@86 6039 nlist=conftest.nm
cannam@86 6040 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
cannam@86 6041 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cannam@86 6042 ac_status=$?
cannam@86 6043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 6044 test $ac_status = 0; } && test -s "$nlist"; then
cannam@86 6045 # Try sorting and uniquifying the output.
cannam@86 6046 if sort "$nlist" | uniq > "$nlist"T; then
cannam@86 6047 mv -f "$nlist"T "$nlist"
cannam@86 6048 else
cannam@86 6049 rm -f "$nlist"T
cannam@86 6050 fi
cannam@86 6051
cannam@86 6052 # Make sure that we snagged all the symbols we need.
cannam@86 6053 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
cannam@86 6054 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
cannam@86 6055 cat <<_LT_EOF > conftest.$ac_ext
cannam@86 6056 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
cannam@86 6057 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
cannam@86 6058 /* DATA imports from DLLs on WIN32 con't be const, because runtime
cannam@86 6059 relocations are performed -- see ld's documentation on pseudo-relocs. */
cannam@86 6060 # define LT_DLSYM_CONST
cannam@86 6061 #elif defined(__osf__)
cannam@86 6062 /* This system does not cope well with relocations in const data. */
cannam@86 6063 # define LT_DLSYM_CONST
cannam@86 6064 #else
cannam@86 6065 # define LT_DLSYM_CONST const
cannam@86 6066 #endif
cannam@86 6067
cannam@86 6068 #ifdef __cplusplus
cannam@86 6069 extern "C" {
cannam@86 6070 #endif
cannam@86 6071
cannam@86 6072 _LT_EOF
cannam@86 6073 # Now generate the symbol file.
cannam@86 6074 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
cannam@86 6075
cannam@86 6076 cat <<_LT_EOF >> conftest.$ac_ext
cannam@86 6077
cannam@86 6078 /* The mapping between symbol names and symbols. */
cannam@86 6079 LT_DLSYM_CONST struct {
cannam@86 6080 const char *name;
cannam@86 6081 void *address;
cannam@86 6082 }
cannam@86 6083 lt__PROGRAM__LTX_preloaded_symbols[] =
cannam@86 6084 {
cannam@86 6085 { "@PROGRAM@", (void *) 0 },
cannam@86 6086 _LT_EOF
cannam@86 6087 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
cannam@86 6088 cat <<\_LT_EOF >> conftest.$ac_ext
cannam@86 6089 {0, (void *) 0}
cannam@86 6090 };
cannam@86 6091
cannam@86 6092 /* This works around a problem in FreeBSD linker */
cannam@86 6093 #ifdef FREEBSD_WORKAROUND
cannam@86 6094 static const void *lt_preloaded_setup() {
cannam@86 6095 return lt__PROGRAM__LTX_preloaded_symbols;
cannam@86 6096 }
cannam@86 6097 #endif
cannam@86 6098
cannam@86 6099 #ifdef __cplusplus
cannam@86 6100 }
cannam@86 6101 #endif
cannam@86 6102 _LT_EOF
cannam@86 6103 # Now try linking the two files.
cannam@86 6104 mv conftest.$ac_objext conftstm.$ac_objext
cannam@86 6105 lt_globsym_save_LIBS=$LIBS
cannam@86 6106 lt_globsym_save_CFLAGS=$CFLAGS
cannam@86 6107 LIBS="conftstm.$ac_objext"
cannam@86 6108 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cannam@86 6109 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cannam@86 6110 (eval $ac_link) 2>&5
cannam@86 6111 ac_status=$?
cannam@86 6112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 6113 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
cannam@86 6114 pipe_works=yes
cannam@86 6115 fi
cannam@86 6116 LIBS=$lt_globsym_save_LIBS
cannam@86 6117 CFLAGS=$lt_globsym_save_CFLAGS
cannam@86 6118 else
cannam@86 6119 echo "cannot find nm_test_func in $nlist" >&5
cannam@86 6120 fi
cannam@86 6121 else
cannam@86 6122 echo "cannot find nm_test_var in $nlist" >&5
cannam@86 6123 fi
cannam@86 6124 else
cannam@86 6125 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
cannam@86 6126 fi
cannam@86 6127 else
cannam@86 6128 echo "$progname: failed program was:" >&5
cannam@86 6129 cat conftest.$ac_ext >&5
cannam@86 6130 fi
cannam@86 6131 rm -rf conftest* conftst*
cannam@86 6132
cannam@86 6133 # Do not use the global_symbol_pipe unless it works.
cannam@86 6134 if test "$pipe_works" = yes; then
cannam@86 6135 break
cannam@86 6136 else
cannam@86 6137 lt_cv_sys_global_symbol_pipe=
cannam@86 6138 fi
cannam@86 6139 done
cannam@86 6140
cannam@86 6141 fi
cannam@86 6142
cannam@86 6143 if test -z "$lt_cv_sys_global_symbol_pipe"; then
cannam@86 6144 lt_cv_sys_global_symbol_to_cdecl=
cannam@86 6145 fi
cannam@86 6146 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cannam@86 6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
cannam@86 6148 $as_echo "failed" >&6; }
cannam@86 6149 else
cannam@86 6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cannam@86 6151 $as_echo "ok" >&6; }
cannam@86 6152 fi
cannam@86 6153
cannam@86 6154 # Response file support.
cannam@86 6155 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
cannam@86 6156 nm_file_list_spec='@'
cannam@86 6157 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
cannam@86 6158 nm_file_list_spec='@'
cannam@86 6159 fi
cannam@86 6160
cannam@86 6161
cannam@86 6162
cannam@86 6163
cannam@86 6164
cannam@86 6165
cannam@86 6166
cannam@86 6167
cannam@86 6168
cannam@86 6169
cannam@86 6170
cannam@86 6171
cannam@86 6172
cannam@86 6173
cannam@86 6174
cannam@86 6175
cannam@86 6176
cannam@86 6177
cannam@86 6178
cannam@86 6179
cannam@86 6180
cannam@86 6181
cannam@86 6182
cannam@86 6183
cannam@86 6184
cannam@86 6185
cannam@86 6186
cannam@86 6187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
cannam@86 6188 $as_echo_n "checking for sysroot... " >&6; }
cannam@86 6189
cannam@86 6190 # Check whether --with-sysroot was given.
cannam@86 6191 if test "${with_sysroot+set}" = set; then :
cannam@86 6192 withval=$with_sysroot;
cannam@86 6193 else
cannam@86 6194 with_sysroot=no
cannam@86 6195 fi
cannam@86 6196
cannam@86 6197
cannam@86 6198 lt_sysroot=
cannam@86 6199 case ${with_sysroot} in #(
cannam@86 6200 yes)
cannam@86 6201 if test "$GCC" = yes; then
cannam@86 6202 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
cannam@86 6203 fi
cannam@86 6204 ;; #(
cannam@86 6205 /*)
cannam@86 6206 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
cannam@86 6207 ;; #(
cannam@86 6208 no|'')
cannam@86 6209 ;; #(
cannam@86 6210 *)
cannam@86 6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
cannam@86 6212 $as_echo "${with_sysroot}" >&6; }
cannam@86 6213 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
cannam@86 6214 ;;
cannam@86 6215 esac
cannam@86 6216
cannam@86 6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
cannam@86 6218 $as_echo "${lt_sysroot:-no}" >&6; }
cannam@86 6219
cannam@86 6220
cannam@86 6221
cannam@86 6222
cannam@86 6223
cannam@86 6224 # Check whether --enable-libtool-lock was given.
cannam@86 6225 if test "${enable_libtool_lock+set}" = set; then :
cannam@86 6226 enableval=$enable_libtool_lock;
cannam@86 6227 fi
cannam@86 6228
cannam@86 6229 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
cannam@86 6230
cannam@86 6231 # Some flags need to be propagated to the compiler or linker for good
cannam@86 6232 # libtool support.
cannam@86 6233 case $host in
cannam@86 6234 ia64-*-hpux*)
cannam@86 6235 # Find out which ABI we are using.
cannam@86 6236 echo 'int i;' > conftest.$ac_ext
cannam@86 6237 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@86 6238 (eval $ac_compile) 2>&5
cannam@86 6239 ac_status=$?
cannam@86 6240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 6241 test $ac_status = 0; }; then
cannam@86 6242 case `/usr/bin/file conftest.$ac_objext` in
cannam@86 6243 *ELF-32*)
cannam@86 6244 HPUX_IA64_MODE="32"
cannam@86 6245 ;;
cannam@86 6246 *ELF-64*)
cannam@86 6247 HPUX_IA64_MODE="64"
cannam@86 6248 ;;
cannam@86 6249 esac
cannam@86 6250 fi
cannam@86 6251 rm -rf conftest*
cannam@86 6252 ;;
cannam@86 6253 *-*-irix6*)
cannam@86 6254 # Find out which ABI we are using.
cannam@86 6255 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cannam@86 6256 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@86 6257 (eval $ac_compile) 2>&5
cannam@86 6258 ac_status=$?
cannam@86 6259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 6260 test $ac_status = 0; }; then
cannam@86 6261 if test "$lt_cv_prog_gnu_ld" = yes; then
cannam@86 6262 case `/usr/bin/file conftest.$ac_objext` in
cannam@86 6263 *32-bit*)
cannam@86 6264 LD="${LD-ld} -melf32bsmip"
cannam@86 6265 ;;
cannam@86 6266 *N32*)
cannam@86 6267 LD="${LD-ld} -melf32bmipn32"
cannam@86 6268 ;;
cannam@86 6269 *64-bit*)
cannam@86 6270 LD="${LD-ld} -melf64bmip"
cannam@86 6271 ;;
cannam@86 6272 esac
cannam@86 6273 else
cannam@86 6274 case `/usr/bin/file conftest.$ac_objext` in
cannam@86 6275 *32-bit*)
cannam@86 6276 LD="${LD-ld} -32"
cannam@86 6277 ;;
cannam@86 6278 *N32*)
cannam@86 6279 LD="${LD-ld} -n32"
cannam@86 6280 ;;
cannam@86 6281 *64-bit*)
cannam@86 6282 LD="${LD-ld} -64"
cannam@86 6283 ;;
cannam@86 6284 esac
cannam@86 6285 fi
cannam@86 6286 fi
cannam@86 6287 rm -rf conftest*
cannam@86 6288 ;;
cannam@86 6289
cannam@86 6290 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
cannam@86 6291 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
cannam@86 6292 # Find out which ABI we are using.
cannam@86 6293 echo 'int i;' > conftest.$ac_ext
cannam@86 6294 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@86 6295 (eval $ac_compile) 2>&5
cannam@86 6296 ac_status=$?
cannam@86 6297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 6298 test $ac_status = 0; }; then
cannam@86 6299 case `/usr/bin/file conftest.o` in
cannam@86 6300 *32-bit*)
cannam@86 6301 case $host in
cannam@86 6302 x86_64-*kfreebsd*-gnu)
cannam@86 6303 LD="${LD-ld} -m elf_i386_fbsd"
cannam@86 6304 ;;
cannam@86 6305 x86_64-*linux*)
cannam@86 6306 LD="${LD-ld} -m elf_i386"
cannam@86 6307 ;;
cannam@86 6308 ppc64-*linux*|powerpc64-*linux*)
cannam@86 6309 LD="${LD-ld} -m elf32ppclinux"
cannam@86 6310 ;;
cannam@86 6311 s390x-*linux*)
cannam@86 6312 LD="${LD-ld} -m elf_s390"
cannam@86 6313 ;;
cannam@86 6314 sparc64-*linux*)
cannam@86 6315 LD="${LD-ld} -m elf32_sparc"
cannam@86 6316 ;;
cannam@86 6317 esac
cannam@86 6318 ;;
cannam@86 6319 *64-bit*)
cannam@86 6320 case $host in
cannam@86 6321 x86_64-*kfreebsd*-gnu)
cannam@86 6322 LD="${LD-ld} -m elf_x86_64_fbsd"
cannam@86 6323 ;;
cannam@86 6324 x86_64-*linux*)
cannam@86 6325 LD="${LD-ld} -m elf_x86_64"
cannam@86 6326 ;;
cannam@86 6327 ppc*-*linux*|powerpc*-*linux*)
cannam@86 6328 LD="${LD-ld} -m elf64ppc"
cannam@86 6329 ;;
cannam@86 6330 s390*-*linux*|s390*-*tpf*)
cannam@86 6331 LD="${LD-ld} -m elf64_s390"
cannam@86 6332 ;;
cannam@86 6333 sparc*-*linux*)
cannam@86 6334 LD="${LD-ld} -m elf64_sparc"
cannam@86 6335 ;;
cannam@86 6336 esac
cannam@86 6337 ;;
cannam@86 6338 esac
cannam@86 6339 fi
cannam@86 6340 rm -rf conftest*
cannam@86 6341 ;;
cannam@86 6342
cannam@86 6343 *-*-sco3.2v5*)
cannam@86 6344 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
cannam@86 6345 SAVE_CFLAGS="$CFLAGS"
cannam@86 6346 CFLAGS="$CFLAGS -belf"
cannam@86 6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
cannam@86 6348 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cannam@86 6349 if ${lt_cv_cc_needs_belf+:} false; then :
cannam@86 6350 $as_echo_n "(cached) " >&6
cannam@86 6351 else
cannam@86 6352 ac_ext=c
cannam@86 6353 ac_cpp='$CPP $CPPFLAGS'
cannam@86 6354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@86 6355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@86 6356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@86 6357
cannam@86 6358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 6359 /* end confdefs.h. */
cannam@86 6360
cannam@86 6361 int
cannam@86 6362 main ()
cannam@86 6363 {
cannam@86 6364
cannam@86 6365 ;
cannam@86 6366 return 0;
cannam@86 6367 }
cannam@86 6368 _ACEOF
cannam@86 6369 if ac_fn_c_try_link "$LINENO"; then :
cannam@86 6370 lt_cv_cc_needs_belf=yes
cannam@86 6371 else
cannam@86 6372 lt_cv_cc_needs_belf=no
cannam@86 6373 fi
cannam@86 6374 rm -f core conftest.err conftest.$ac_objext \
cannam@86 6375 conftest$ac_exeext conftest.$ac_ext
cannam@86 6376 ac_ext=c
cannam@86 6377 ac_cpp='$CPP $CPPFLAGS'
cannam@86 6378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@86 6379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@86 6380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@86 6381
cannam@86 6382 fi
cannam@86 6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
cannam@86 6384 $as_echo "$lt_cv_cc_needs_belf" >&6; }
cannam@86 6385 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
cannam@86 6386 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
cannam@86 6387 CFLAGS="$SAVE_CFLAGS"
cannam@86 6388 fi
cannam@86 6389 ;;
cannam@86 6390 sparc*-*solaris*)
cannam@86 6391 # Find out which ABI we are using.
cannam@86 6392 echo 'int i;' > conftest.$ac_ext
cannam@86 6393 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@86 6394 (eval $ac_compile) 2>&5
cannam@86 6395 ac_status=$?
cannam@86 6396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 6397 test $ac_status = 0; }; then
cannam@86 6398 case `/usr/bin/file conftest.o` in
cannam@86 6399 *64-bit*)
cannam@86 6400 case $lt_cv_prog_gnu_ld in
cannam@86 6401 yes*) LD="${LD-ld} -m elf64_sparc" ;;
cannam@86 6402 *)
cannam@86 6403 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
cannam@86 6404 LD="${LD-ld} -64"
cannam@86 6405 fi
cannam@86 6406 ;;
cannam@86 6407 esac
cannam@86 6408 ;;
cannam@86 6409 esac
cannam@86 6410 fi
cannam@86 6411 rm -rf conftest*
cannam@86 6412 ;;
cannam@86 6413 esac
cannam@86 6414
cannam@86 6415 need_locks="$enable_libtool_lock"
cannam@86 6416
cannam@86 6417 if test -n "$ac_tool_prefix"; then
cannam@86 6418 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
cannam@86 6419 set dummy ${ac_tool_prefix}mt; ac_word=$2
cannam@86 6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 6421 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 6422 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
cannam@86 6423 $as_echo_n "(cached) " >&6
cannam@86 6424 else
cannam@86 6425 if test -n "$MANIFEST_TOOL"; then
cannam@86 6426 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
cannam@86 6427 else
cannam@86 6428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 6429 for as_dir in $PATH
cannam@86 6430 do
cannam@86 6431 IFS=$as_save_IFS
cannam@86 6432 test -z "$as_dir" && as_dir=.
cannam@86 6433 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 6434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 6435 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
cannam@86 6436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 6437 break 2
cannam@86 6438 fi
cannam@86 6439 done
cannam@86 6440 done
cannam@86 6441 IFS=$as_save_IFS
cannam@86 6442
cannam@86 6443 fi
cannam@86 6444 fi
cannam@86 6445 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
cannam@86 6446 if test -n "$MANIFEST_TOOL"; then
cannam@86 6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
cannam@86 6448 $as_echo "$MANIFEST_TOOL" >&6; }
cannam@86 6449 else
cannam@86 6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 6451 $as_echo "no" >&6; }
cannam@86 6452 fi
cannam@86 6453
cannam@86 6454
cannam@86 6455 fi
cannam@86 6456 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
cannam@86 6457 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
cannam@86 6458 # Extract the first word of "mt", so it can be a program name with args.
cannam@86 6459 set dummy mt; ac_word=$2
cannam@86 6460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 6461 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 6462 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
cannam@86 6463 $as_echo_n "(cached) " >&6
cannam@86 6464 else
cannam@86 6465 if test -n "$ac_ct_MANIFEST_TOOL"; then
cannam@86 6466 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
cannam@86 6467 else
cannam@86 6468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 6469 for as_dir in $PATH
cannam@86 6470 do
cannam@86 6471 IFS=$as_save_IFS
cannam@86 6472 test -z "$as_dir" && as_dir=.
cannam@86 6473 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 6474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 6475 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
cannam@86 6476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 6477 break 2
cannam@86 6478 fi
cannam@86 6479 done
cannam@86 6480 done
cannam@86 6481 IFS=$as_save_IFS
cannam@86 6482
cannam@86 6483 fi
cannam@86 6484 fi
cannam@86 6485 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
cannam@86 6486 if test -n "$ac_ct_MANIFEST_TOOL"; then
cannam@86 6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
cannam@86 6488 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
cannam@86 6489 else
cannam@86 6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 6491 $as_echo "no" >&6; }
cannam@86 6492 fi
cannam@86 6493
cannam@86 6494 if test "x$ac_ct_MANIFEST_TOOL" = x; then
cannam@86 6495 MANIFEST_TOOL=":"
cannam@86 6496 else
cannam@86 6497 case $cross_compiling:$ac_tool_warned in
cannam@86 6498 yes:)
cannam@86 6499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@86 6500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@86 6501 ac_tool_warned=yes ;;
cannam@86 6502 esac
cannam@86 6503 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
cannam@86 6504 fi
cannam@86 6505 else
cannam@86 6506 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
cannam@86 6507 fi
cannam@86 6508
cannam@86 6509 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
cannam@86 6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
cannam@86 6511 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
cannam@86 6512 if ${lt_cv_path_mainfest_tool+:} false; then :
cannam@86 6513 $as_echo_n "(cached) " >&6
cannam@86 6514 else
cannam@86 6515 lt_cv_path_mainfest_tool=no
cannam@86 6516 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
cannam@86 6517 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
cannam@86 6518 cat conftest.err >&5
cannam@86 6519 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
cannam@86 6520 lt_cv_path_mainfest_tool=yes
cannam@86 6521 fi
cannam@86 6522 rm -f conftest*
cannam@86 6523 fi
cannam@86 6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
cannam@86 6525 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
cannam@86 6526 if test "x$lt_cv_path_mainfest_tool" != xyes; then
cannam@86 6527 MANIFEST_TOOL=:
cannam@86 6528 fi
cannam@86 6529
cannam@86 6530
cannam@86 6531
cannam@86 6532
cannam@86 6533
cannam@86 6534
cannam@86 6535 case $host_os in
cannam@86 6536 rhapsody* | darwin*)
cannam@86 6537 if test -n "$ac_tool_prefix"; then
cannam@86 6538 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
cannam@86 6539 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cannam@86 6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 6541 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 6542 if ${ac_cv_prog_DSYMUTIL+:} false; then :
cannam@86 6543 $as_echo_n "(cached) " >&6
cannam@86 6544 else
cannam@86 6545 if test -n "$DSYMUTIL"; then
cannam@86 6546 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
cannam@86 6547 else
cannam@86 6548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 6549 for as_dir in $PATH
cannam@86 6550 do
cannam@86 6551 IFS=$as_save_IFS
cannam@86 6552 test -z "$as_dir" && as_dir=.
cannam@86 6553 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 6554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 6555 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cannam@86 6556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 6557 break 2
cannam@86 6558 fi
cannam@86 6559 done
cannam@86 6560 done
cannam@86 6561 IFS=$as_save_IFS
cannam@86 6562
cannam@86 6563 fi
cannam@86 6564 fi
cannam@86 6565 DSYMUTIL=$ac_cv_prog_DSYMUTIL
cannam@86 6566 if test -n "$DSYMUTIL"; then
cannam@86 6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
cannam@86 6568 $as_echo "$DSYMUTIL" >&6; }
cannam@86 6569 else
cannam@86 6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 6571 $as_echo "no" >&6; }
cannam@86 6572 fi
cannam@86 6573
cannam@86 6574
cannam@86 6575 fi
cannam@86 6576 if test -z "$ac_cv_prog_DSYMUTIL"; then
cannam@86 6577 ac_ct_DSYMUTIL=$DSYMUTIL
cannam@86 6578 # Extract the first word of "dsymutil", so it can be a program name with args.
cannam@86 6579 set dummy dsymutil; ac_word=$2
cannam@86 6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 6581 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 6582 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cannam@86 6583 $as_echo_n "(cached) " >&6
cannam@86 6584 else
cannam@86 6585 if test -n "$ac_ct_DSYMUTIL"; then
cannam@86 6586 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
cannam@86 6587 else
cannam@86 6588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 6589 for as_dir in $PATH
cannam@86 6590 do
cannam@86 6591 IFS=$as_save_IFS
cannam@86 6592 test -z "$as_dir" && as_dir=.
cannam@86 6593 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 6594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 6595 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cannam@86 6596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 6597 break 2
cannam@86 6598 fi
cannam@86 6599 done
cannam@86 6600 done
cannam@86 6601 IFS=$as_save_IFS
cannam@86 6602
cannam@86 6603 fi
cannam@86 6604 fi
cannam@86 6605 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
cannam@86 6606 if test -n "$ac_ct_DSYMUTIL"; then
cannam@86 6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
cannam@86 6608 $as_echo "$ac_ct_DSYMUTIL" >&6; }
cannam@86 6609 else
cannam@86 6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 6611 $as_echo "no" >&6; }
cannam@86 6612 fi
cannam@86 6613
cannam@86 6614 if test "x$ac_ct_DSYMUTIL" = x; then
cannam@86 6615 DSYMUTIL=":"
cannam@86 6616 else
cannam@86 6617 case $cross_compiling:$ac_tool_warned in
cannam@86 6618 yes:)
cannam@86 6619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@86 6620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@86 6621 ac_tool_warned=yes ;;
cannam@86 6622 esac
cannam@86 6623 DSYMUTIL=$ac_ct_DSYMUTIL
cannam@86 6624 fi
cannam@86 6625 else
cannam@86 6626 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
cannam@86 6627 fi
cannam@86 6628
cannam@86 6629 if test -n "$ac_tool_prefix"; then
cannam@86 6630 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
cannam@86 6631 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cannam@86 6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 6633 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 6634 if ${ac_cv_prog_NMEDIT+:} false; then :
cannam@86 6635 $as_echo_n "(cached) " >&6
cannam@86 6636 else
cannam@86 6637 if test -n "$NMEDIT"; then
cannam@86 6638 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
cannam@86 6639 else
cannam@86 6640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 6641 for as_dir in $PATH
cannam@86 6642 do
cannam@86 6643 IFS=$as_save_IFS
cannam@86 6644 test -z "$as_dir" && as_dir=.
cannam@86 6645 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 6646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 6647 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cannam@86 6648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 6649 break 2
cannam@86 6650 fi
cannam@86 6651 done
cannam@86 6652 done
cannam@86 6653 IFS=$as_save_IFS
cannam@86 6654
cannam@86 6655 fi
cannam@86 6656 fi
cannam@86 6657 NMEDIT=$ac_cv_prog_NMEDIT
cannam@86 6658 if test -n "$NMEDIT"; then
cannam@86 6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
cannam@86 6660 $as_echo "$NMEDIT" >&6; }
cannam@86 6661 else
cannam@86 6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 6663 $as_echo "no" >&6; }
cannam@86 6664 fi
cannam@86 6665
cannam@86 6666
cannam@86 6667 fi
cannam@86 6668 if test -z "$ac_cv_prog_NMEDIT"; then
cannam@86 6669 ac_ct_NMEDIT=$NMEDIT
cannam@86 6670 # Extract the first word of "nmedit", so it can be a program name with args.
cannam@86 6671 set dummy nmedit; ac_word=$2
cannam@86 6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 6673 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 6674 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cannam@86 6675 $as_echo_n "(cached) " >&6
cannam@86 6676 else
cannam@86 6677 if test -n "$ac_ct_NMEDIT"; then
cannam@86 6678 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
cannam@86 6679 else
cannam@86 6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 6681 for as_dir in $PATH
cannam@86 6682 do
cannam@86 6683 IFS=$as_save_IFS
cannam@86 6684 test -z "$as_dir" && as_dir=.
cannam@86 6685 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 6686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 6687 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cannam@86 6688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 6689 break 2
cannam@86 6690 fi
cannam@86 6691 done
cannam@86 6692 done
cannam@86 6693 IFS=$as_save_IFS
cannam@86 6694
cannam@86 6695 fi
cannam@86 6696 fi
cannam@86 6697 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
cannam@86 6698 if test -n "$ac_ct_NMEDIT"; then
cannam@86 6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
cannam@86 6700 $as_echo "$ac_ct_NMEDIT" >&6; }
cannam@86 6701 else
cannam@86 6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 6703 $as_echo "no" >&6; }
cannam@86 6704 fi
cannam@86 6705
cannam@86 6706 if test "x$ac_ct_NMEDIT" = x; then
cannam@86 6707 NMEDIT=":"
cannam@86 6708 else
cannam@86 6709 case $cross_compiling:$ac_tool_warned in
cannam@86 6710 yes:)
cannam@86 6711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@86 6712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@86 6713 ac_tool_warned=yes ;;
cannam@86 6714 esac
cannam@86 6715 NMEDIT=$ac_ct_NMEDIT
cannam@86 6716 fi
cannam@86 6717 else
cannam@86 6718 NMEDIT="$ac_cv_prog_NMEDIT"
cannam@86 6719 fi
cannam@86 6720
cannam@86 6721 if test -n "$ac_tool_prefix"; then
cannam@86 6722 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
cannam@86 6723 set dummy ${ac_tool_prefix}lipo; ac_word=$2
cannam@86 6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 6725 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 6726 if ${ac_cv_prog_LIPO+:} false; then :
cannam@86 6727 $as_echo_n "(cached) " >&6
cannam@86 6728 else
cannam@86 6729 if test -n "$LIPO"; then
cannam@86 6730 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
cannam@86 6731 else
cannam@86 6732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 6733 for as_dir in $PATH
cannam@86 6734 do
cannam@86 6735 IFS=$as_save_IFS
cannam@86 6736 test -z "$as_dir" && as_dir=.
cannam@86 6737 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 6738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 6739 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cannam@86 6740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 6741 break 2
cannam@86 6742 fi
cannam@86 6743 done
cannam@86 6744 done
cannam@86 6745 IFS=$as_save_IFS
cannam@86 6746
cannam@86 6747 fi
cannam@86 6748 fi
cannam@86 6749 LIPO=$ac_cv_prog_LIPO
cannam@86 6750 if test -n "$LIPO"; then
cannam@86 6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
cannam@86 6752 $as_echo "$LIPO" >&6; }
cannam@86 6753 else
cannam@86 6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 6755 $as_echo "no" >&6; }
cannam@86 6756 fi
cannam@86 6757
cannam@86 6758
cannam@86 6759 fi
cannam@86 6760 if test -z "$ac_cv_prog_LIPO"; then
cannam@86 6761 ac_ct_LIPO=$LIPO
cannam@86 6762 # Extract the first word of "lipo", so it can be a program name with args.
cannam@86 6763 set dummy lipo; ac_word=$2
cannam@86 6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 6765 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 6766 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cannam@86 6767 $as_echo_n "(cached) " >&6
cannam@86 6768 else
cannam@86 6769 if test -n "$ac_ct_LIPO"; then
cannam@86 6770 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
cannam@86 6771 else
cannam@86 6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 6773 for as_dir in $PATH
cannam@86 6774 do
cannam@86 6775 IFS=$as_save_IFS
cannam@86 6776 test -z "$as_dir" && as_dir=.
cannam@86 6777 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 6778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 6779 ac_cv_prog_ac_ct_LIPO="lipo"
cannam@86 6780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 6781 break 2
cannam@86 6782 fi
cannam@86 6783 done
cannam@86 6784 done
cannam@86 6785 IFS=$as_save_IFS
cannam@86 6786
cannam@86 6787 fi
cannam@86 6788 fi
cannam@86 6789 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
cannam@86 6790 if test -n "$ac_ct_LIPO"; then
cannam@86 6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
cannam@86 6792 $as_echo "$ac_ct_LIPO" >&6; }
cannam@86 6793 else
cannam@86 6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 6795 $as_echo "no" >&6; }
cannam@86 6796 fi
cannam@86 6797
cannam@86 6798 if test "x$ac_ct_LIPO" = x; then
cannam@86 6799 LIPO=":"
cannam@86 6800 else
cannam@86 6801 case $cross_compiling:$ac_tool_warned in
cannam@86 6802 yes:)
cannam@86 6803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@86 6804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@86 6805 ac_tool_warned=yes ;;
cannam@86 6806 esac
cannam@86 6807 LIPO=$ac_ct_LIPO
cannam@86 6808 fi
cannam@86 6809 else
cannam@86 6810 LIPO="$ac_cv_prog_LIPO"
cannam@86 6811 fi
cannam@86 6812
cannam@86 6813 if test -n "$ac_tool_prefix"; then
cannam@86 6814 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
cannam@86 6815 set dummy ${ac_tool_prefix}otool; ac_word=$2
cannam@86 6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 6817 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 6818 if ${ac_cv_prog_OTOOL+:} false; then :
cannam@86 6819 $as_echo_n "(cached) " >&6
cannam@86 6820 else
cannam@86 6821 if test -n "$OTOOL"; then
cannam@86 6822 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
cannam@86 6823 else
cannam@86 6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 6825 for as_dir in $PATH
cannam@86 6826 do
cannam@86 6827 IFS=$as_save_IFS
cannam@86 6828 test -z "$as_dir" && as_dir=.
cannam@86 6829 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 6830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 6831 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
cannam@86 6832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 6833 break 2
cannam@86 6834 fi
cannam@86 6835 done
cannam@86 6836 done
cannam@86 6837 IFS=$as_save_IFS
cannam@86 6838
cannam@86 6839 fi
cannam@86 6840 fi
cannam@86 6841 OTOOL=$ac_cv_prog_OTOOL
cannam@86 6842 if test -n "$OTOOL"; then
cannam@86 6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
cannam@86 6844 $as_echo "$OTOOL" >&6; }
cannam@86 6845 else
cannam@86 6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 6847 $as_echo "no" >&6; }
cannam@86 6848 fi
cannam@86 6849
cannam@86 6850
cannam@86 6851 fi
cannam@86 6852 if test -z "$ac_cv_prog_OTOOL"; then
cannam@86 6853 ac_ct_OTOOL=$OTOOL
cannam@86 6854 # Extract the first word of "otool", so it can be a program name with args.
cannam@86 6855 set dummy otool; ac_word=$2
cannam@86 6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 6857 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 6858 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cannam@86 6859 $as_echo_n "(cached) " >&6
cannam@86 6860 else
cannam@86 6861 if test -n "$ac_ct_OTOOL"; then
cannam@86 6862 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
cannam@86 6863 else
cannam@86 6864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 6865 for as_dir in $PATH
cannam@86 6866 do
cannam@86 6867 IFS=$as_save_IFS
cannam@86 6868 test -z "$as_dir" && as_dir=.
cannam@86 6869 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 6870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 6871 ac_cv_prog_ac_ct_OTOOL="otool"
cannam@86 6872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 6873 break 2
cannam@86 6874 fi
cannam@86 6875 done
cannam@86 6876 done
cannam@86 6877 IFS=$as_save_IFS
cannam@86 6878
cannam@86 6879 fi
cannam@86 6880 fi
cannam@86 6881 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
cannam@86 6882 if test -n "$ac_ct_OTOOL"; then
cannam@86 6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
cannam@86 6884 $as_echo "$ac_ct_OTOOL" >&6; }
cannam@86 6885 else
cannam@86 6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 6887 $as_echo "no" >&6; }
cannam@86 6888 fi
cannam@86 6889
cannam@86 6890 if test "x$ac_ct_OTOOL" = x; then
cannam@86 6891 OTOOL=":"
cannam@86 6892 else
cannam@86 6893 case $cross_compiling:$ac_tool_warned in
cannam@86 6894 yes:)
cannam@86 6895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@86 6896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@86 6897 ac_tool_warned=yes ;;
cannam@86 6898 esac
cannam@86 6899 OTOOL=$ac_ct_OTOOL
cannam@86 6900 fi
cannam@86 6901 else
cannam@86 6902 OTOOL="$ac_cv_prog_OTOOL"
cannam@86 6903 fi
cannam@86 6904
cannam@86 6905 if test -n "$ac_tool_prefix"; then
cannam@86 6906 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
cannam@86 6907 set dummy ${ac_tool_prefix}otool64; ac_word=$2
cannam@86 6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 6909 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 6910 if ${ac_cv_prog_OTOOL64+:} false; then :
cannam@86 6911 $as_echo_n "(cached) " >&6
cannam@86 6912 else
cannam@86 6913 if test -n "$OTOOL64"; then
cannam@86 6914 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
cannam@86 6915 else
cannam@86 6916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 6917 for as_dir in $PATH
cannam@86 6918 do
cannam@86 6919 IFS=$as_save_IFS
cannam@86 6920 test -z "$as_dir" && as_dir=.
cannam@86 6921 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 6922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 6923 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
cannam@86 6924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 6925 break 2
cannam@86 6926 fi
cannam@86 6927 done
cannam@86 6928 done
cannam@86 6929 IFS=$as_save_IFS
cannam@86 6930
cannam@86 6931 fi
cannam@86 6932 fi
cannam@86 6933 OTOOL64=$ac_cv_prog_OTOOL64
cannam@86 6934 if test -n "$OTOOL64"; then
cannam@86 6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
cannam@86 6936 $as_echo "$OTOOL64" >&6; }
cannam@86 6937 else
cannam@86 6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 6939 $as_echo "no" >&6; }
cannam@86 6940 fi
cannam@86 6941
cannam@86 6942
cannam@86 6943 fi
cannam@86 6944 if test -z "$ac_cv_prog_OTOOL64"; then
cannam@86 6945 ac_ct_OTOOL64=$OTOOL64
cannam@86 6946 # Extract the first word of "otool64", so it can be a program name with args.
cannam@86 6947 set dummy otool64; ac_word=$2
cannam@86 6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cannam@86 6949 $as_echo_n "checking for $ac_word... " >&6; }
cannam@86 6950 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cannam@86 6951 $as_echo_n "(cached) " >&6
cannam@86 6952 else
cannam@86 6953 if test -n "$ac_ct_OTOOL64"; then
cannam@86 6954 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
cannam@86 6955 else
cannam@86 6956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 6957 for as_dir in $PATH
cannam@86 6958 do
cannam@86 6959 IFS=$as_save_IFS
cannam@86 6960 test -z "$as_dir" && as_dir=.
cannam@86 6961 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@86 6962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cannam@86 6963 ac_cv_prog_ac_ct_OTOOL64="otool64"
cannam@86 6964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@86 6965 break 2
cannam@86 6966 fi
cannam@86 6967 done
cannam@86 6968 done
cannam@86 6969 IFS=$as_save_IFS
cannam@86 6970
cannam@86 6971 fi
cannam@86 6972 fi
cannam@86 6973 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
cannam@86 6974 if test -n "$ac_ct_OTOOL64"; then
cannam@86 6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
cannam@86 6976 $as_echo "$ac_ct_OTOOL64" >&6; }
cannam@86 6977 else
cannam@86 6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 6979 $as_echo "no" >&6; }
cannam@86 6980 fi
cannam@86 6981
cannam@86 6982 if test "x$ac_ct_OTOOL64" = x; then
cannam@86 6983 OTOOL64=":"
cannam@86 6984 else
cannam@86 6985 case $cross_compiling:$ac_tool_warned in
cannam@86 6986 yes:)
cannam@86 6987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cannam@86 6988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
cannam@86 6989 ac_tool_warned=yes ;;
cannam@86 6990 esac
cannam@86 6991 OTOOL64=$ac_ct_OTOOL64
cannam@86 6992 fi
cannam@86 6993 else
cannam@86 6994 OTOOL64="$ac_cv_prog_OTOOL64"
cannam@86 6995 fi
cannam@86 6996
cannam@86 6997
cannam@86 6998
cannam@86 6999
cannam@86 7000
cannam@86 7001
cannam@86 7002
cannam@86 7003
cannam@86 7004
cannam@86 7005
cannam@86 7006
cannam@86 7007
cannam@86 7008
cannam@86 7009
cannam@86 7010
cannam@86 7011
cannam@86 7012
cannam@86 7013
cannam@86 7014
cannam@86 7015
cannam@86 7016
cannam@86 7017
cannam@86 7018
cannam@86 7019
cannam@86 7020
cannam@86 7021
cannam@86 7022
cannam@86 7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
cannam@86 7024 $as_echo_n "checking for -single_module linker flag... " >&6; }
cannam@86 7025 if ${lt_cv_apple_cc_single_mod+:} false; then :
cannam@86 7026 $as_echo_n "(cached) " >&6
cannam@86 7027 else
cannam@86 7028 lt_cv_apple_cc_single_mod=no
cannam@86 7029 if test -z "${LT_MULTI_MODULE}"; then
cannam@86 7030 # By default we will add the -single_module flag. You can override
cannam@86 7031 # by either setting the environment variable LT_MULTI_MODULE
cannam@86 7032 # non-empty at configure time, or by adding -multi_module to the
cannam@86 7033 # link flags.
cannam@86 7034 rm -rf libconftest.dylib*
cannam@86 7035 echo "int foo(void){return 1;}" > conftest.c
cannam@86 7036 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
cannam@86 7037 -dynamiclib -Wl,-single_module conftest.c" >&5
cannam@86 7038 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
cannam@86 7039 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
cannam@86 7040 _lt_result=$?
cannam@86 7041 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
cannam@86 7042 lt_cv_apple_cc_single_mod=yes
cannam@86 7043 else
cannam@86 7044 cat conftest.err >&5
cannam@86 7045 fi
cannam@86 7046 rm -rf libconftest.dylib*
cannam@86 7047 rm -f conftest.*
cannam@86 7048 fi
cannam@86 7049 fi
cannam@86 7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
cannam@86 7051 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cannam@86 7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
cannam@86 7053 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cannam@86 7054 if ${lt_cv_ld_exported_symbols_list+:} false; then :
cannam@86 7055 $as_echo_n "(cached) " >&6
cannam@86 7056 else
cannam@86 7057 lt_cv_ld_exported_symbols_list=no
cannam@86 7058 save_LDFLAGS=$LDFLAGS
cannam@86 7059 echo "_main" > conftest.sym
cannam@86 7060 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
cannam@86 7061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 7062 /* end confdefs.h. */
cannam@86 7063
cannam@86 7064 int
cannam@86 7065 main ()
cannam@86 7066 {
cannam@86 7067
cannam@86 7068 ;
cannam@86 7069 return 0;
cannam@86 7070 }
cannam@86 7071 _ACEOF
cannam@86 7072 if ac_fn_c_try_link "$LINENO"; then :
cannam@86 7073 lt_cv_ld_exported_symbols_list=yes
cannam@86 7074 else
cannam@86 7075 lt_cv_ld_exported_symbols_list=no
cannam@86 7076 fi
cannam@86 7077 rm -f core conftest.err conftest.$ac_objext \
cannam@86 7078 conftest$ac_exeext conftest.$ac_ext
cannam@86 7079 LDFLAGS="$save_LDFLAGS"
cannam@86 7080
cannam@86 7081 fi
cannam@86 7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
cannam@86 7083 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cannam@86 7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
cannam@86 7085 $as_echo_n "checking for -force_load linker flag... " >&6; }
cannam@86 7086 if ${lt_cv_ld_force_load+:} false; then :
cannam@86 7087 $as_echo_n "(cached) " >&6
cannam@86 7088 else
cannam@86 7089 lt_cv_ld_force_load=no
cannam@86 7090 cat > conftest.c << _LT_EOF
cannam@86 7091 int forced_loaded() { return 2;}
cannam@86 7092 _LT_EOF
cannam@86 7093 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
cannam@86 7094 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
cannam@86 7095 echo "$AR cru libconftest.a conftest.o" >&5
cannam@86 7096 $AR cru libconftest.a conftest.o 2>&5
cannam@86 7097 echo "$RANLIB libconftest.a" >&5
cannam@86 7098 $RANLIB libconftest.a 2>&5
cannam@86 7099 cat > conftest.c << _LT_EOF
cannam@86 7100 int main() { return 0;}
cannam@86 7101 _LT_EOF
cannam@86 7102 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
cannam@86 7103 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
cannam@86 7104 _lt_result=$?
cannam@86 7105 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
cannam@86 7106 lt_cv_ld_force_load=yes
cannam@86 7107 else
cannam@86 7108 cat conftest.err >&5
cannam@86 7109 fi
cannam@86 7110 rm -f conftest.err libconftest.a conftest conftest.c
cannam@86 7111 rm -rf conftest.dSYM
cannam@86 7112
cannam@86 7113 fi
cannam@86 7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
cannam@86 7115 $as_echo "$lt_cv_ld_force_load" >&6; }
cannam@86 7116 case $host_os in
cannam@86 7117 rhapsody* | darwin1.[012])
cannam@86 7118 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
cannam@86 7119 darwin1.*)
cannam@86 7120 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
cannam@86 7121 darwin*) # darwin 5.x on
cannam@86 7122 # if running on 10.5 or later, the deployment target defaults
cannam@86 7123 # to the OS version, if on x86, and 10.4, the deployment
cannam@86 7124 # target defaults to 10.4. Don't you love it?
cannam@86 7125 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
cannam@86 7126 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
cannam@86 7127 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
cannam@86 7128 10.[012]*)
cannam@86 7129 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
cannam@86 7130 10.*)
cannam@86 7131 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
cannam@86 7132 esac
cannam@86 7133 ;;
cannam@86 7134 esac
cannam@86 7135 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
cannam@86 7136 _lt_dar_single_mod='$single_module'
cannam@86 7137 fi
cannam@86 7138 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
cannam@86 7139 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
cannam@86 7140 else
cannam@86 7141 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
cannam@86 7142 fi
cannam@86 7143 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cannam@86 7144 _lt_dsymutil='~$DSYMUTIL $lib || :'
cannam@86 7145 else
cannam@86 7146 _lt_dsymutil=
cannam@86 7147 fi
cannam@86 7148 ;;
cannam@86 7149 esac
cannam@86 7150
cannam@86 7151 ac_ext=c
cannam@86 7152 ac_cpp='$CPP $CPPFLAGS'
cannam@86 7153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@86 7154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@86 7155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@86 7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cannam@86 7157 $as_echo_n "checking how to run the C preprocessor... " >&6; }
cannam@86 7158 # On Suns, sometimes $CPP names a directory.
cannam@86 7159 if test -n "$CPP" && test -d "$CPP"; then
cannam@86 7160 CPP=
cannam@86 7161 fi
cannam@86 7162 if test -z "$CPP"; then
cannam@86 7163 if ${ac_cv_prog_CPP+:} false; then :
cannam@86 7164 $as_echo_n "(cached) " >&6
cannam@86 7165 else
cannam@86 7166 # Double quotes because CPP needs to be expanded
cannam@86 7167 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
cannam@86 7168 do
cannam@86 7169 ac_preproc_ok=false
cannam@86 7170 for ac_c_preproc_warn_flag in '' yes
cannam@86 7171 do
cannam@86 7172 # Use a header file that comes with gcc, so configuring glibc
cannam@86 7173 # with a fresh cross-compiler works.
cannam@86 7174 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@86 7175 # <limits.h> exists even on freestanding compilers.
cannam@86 7176 # On the NeXT, cc -E runs the code through the compiler's parser,
cannam@86 7177 # not just through cpp. "Syntax error" is here to catch this case.
cannam@86 7178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 7179 /* end confdefs.h. */
cannam@86 7180 #ifdef __STDC__
cannam@86 7181 # include <limits.h>
cannam@86 7182 #else
cannam@86 7183 # include <assert.h>
cannam@86 7184 #endif
cannam@86 7185 Syntax error
cannam@86 7186 _ACEOF
cannam@86 7187 if ac_fn_c_try_cpp "$LINENO"; then :
cannam@86 7188
cannam@86 7189 else
cannam@86 7190 # Broken: fails on valid input.
cannam@86 7191 continue
cannam@86 7192 fi
cannam@86 7193 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@86 7194
cannam@86 7195 # OK, works on sane cases. Now check whether nonexistent headers
cannam@86 7196 # can be detected and how.
cannam@86 7197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 7198 /* end confdefs.h. */
cannam@86 7199 #include <ac_nonexistent.h>
cannam@86 7200 _ACEOF
cannam@86 7201 if ac_fn_c_try_cpp "$LINENO"; then :
cannam@86 7202 # Broken: success on invalid input.
cannam@86 7203 continue
cannam@86 7204 else
cannam@86 7205 # Passes both tests.
cannam@86 7206 ac_preproc_ok=:
cannam@86 7207 break
cannam@86 7208 fi
cannam@86 7209 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@86 7210
cannam@86 7211 done
cannam@86 7212 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cannam@86 7213 rm -f conftest.i conftest.err conftest.$ac_ext
cannam@86 7214 if $ac_preproc_ok; then :
cannam@86 7215 break
cannam@86 7216 fi
cannam@86 7217
cannam@86 7218 done
cannam@86 7219 ac_cv_prog_CPP=$CPP
cannam@86 7220
cannam@86 7221 fi
cannam@86 7222 CPP=$ac_cv_prog_CPP
cannam@86 7223 else
cannam@86 7224 ac_cv_prog_CPP=$CPP
cannam@86 7225 fi
cannam@86 7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cannam@86 7227 $as_echo "$CPP" >&6; }
cannam@86 7228 ac_preproc_ok=false
cannam@86 7229 for ac_c_preproc_warn_flag in '' yes
cannam@86 7230 do
cannam@86 7231 # Use a header file that comes with gcc, so configuring glibc
cannam@86 7232 # with a fresh cross-compiler works.
cannam@86 7233 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@86 7234 # <limits.h> exists even on freestanding compilers.
cannam@86 7235 # On the NeXT, cc -E runs the code through the compiler's parser,
cannam@86 7236 # not just through cpp. "Syntax error" is here to catch this case.
cannam@86 7237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 7238 /* end confdefs.h. */
cannam@86 7239 #ifdef __STDC__
cannam@86 7240 # include <limits.h>
cannam@86 7241 #else
cannam@86 7242 # include <assert.h>
cannam@86 7243 #endif
cannam@86 7244 Syntax error
cannam@86 7245 _ACEOF
cannam@86 7246 if ac_fn_c_try_cpp "$LINENO"; then :
cannam@86 7247
cannam@86 7248 else
cannam@86 7249 # Broken: fails on valid input.
cannam@86 7250 continue
cannam@86 7251 fi
cannam@86 7252 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@86 7253
cannam@86 7254 # OK, works on sane cases. Now check whether nonexistent headers
cannam@86 7255 # can be detected and how.
cannam@86 7256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 7257 /* end confdefs.h. */
cannam@86 7258 #include <ac_nonexistent.h>
cannam@86 7259 _ACEOF
cannam@86 7260 if ac_fn_c_try_cpp "$LINENO"; then :
cannam@86 7261 # Broken: success on invalid input.
cannam@86 7262 continue
cannam@86 7263 else
cannam@86 7264 # Passes both tests.
cannam@86 7265 ac_preproc_ok=:
cannam@86 7266 break
cannam@86 7267 fi
cannam@86 7268 rm -f conftest.err conftest.i conftest.$ac_ext
cannam@86 7269
cannam@86 7270 done
cannam@86 7271 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cannam@86 7272 rm -f conftest.i conftest.err conftest.$ac_ext
cannam@86 7273 if $ac_preproc_ok; then :
cannam@86 7274
cannam@86 7275 else
cannam@86 7276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@86 7277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@86 7278 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
cannam@86 7279 See \`config.log' for more details" "$LINENO" 5; }
cannam@86 7280 fi
cannam@86 7281
cannam@86 7282 ac_ext=c
cannam@86 7283 ac_cpp='$CPP $CPPFLAGS'
cannam@86 7284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@86 7285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@86 7286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@86 7287
cannam@86 7288
cannam@86 7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cannam@86 7290 $as_echo_n "checking for ANSI C header files... " >&6; }
cannam@86 7291 if ${ac_cv_header_stdc+:} false; then :
cannam@86 7292 $as_echo_n "(cached) " >&6
cannam@86 7293 else
cannam@86 7294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 7295 /* end confdefs.h. */
cannam@86 7296 #include <stdlib.h>
cannam@86 7297 #include <stdarg.h>
cannam@86 7298 #include <string.h>
cannam@86 7299 #include <float.h>
cannam@86 7300
cannam@86 7301 int
cannam@86 7302 main ()
cannam@86 7303 {
cannam@86 7304
cannam@86 7305 ;
cannam@86 7306 return 0;
cannam@86 7307 }
cannam@86 7308 _ACEOF
cannam@86 7309 if ac_fn_c_try_compile "$LINENO"; then :
cannam@86 7310 ac_cv_header_stdc=yes
cannam@86 7311 else
cannam@86 7312 ac_cv_header_stdc=no
cannam@86 7313 fi
cannam@86 7314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@86 7315
cannam@86 7316 if test $ac_cv_header_stdc = yes; then
cannam@86 7317 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cannam@86 7318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 7319 /* end confdefs.h. */
cannam@86 7320 #include <string.h>
cannam@86 7321
cannam@86 7322 _ACEOF
cannam@86 7323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cannam@86 7324 $EGREP "memchr" >/dev/null 2>&1; then :
cannam@86 7325
cannam@86 7326 else
cannam@86 7327 ac_cv_header_stdc=no
cannam@86 7328 fi
cannam@86 7329 rm -f conftest*
cannam@86 7330
cannam@86 7331 fi
cannam@86 7332
cannam@86 7333 if test $ac_cv_header_stdc = yes; then
cannam@86 7334 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cannam@86 7335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 7336 /* end confdefs.h. */
cannam@86 7337 #include <stdlib.h>
cannam@86 7338
cannam@86 7339 _ACEOF
cannam@86 7340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cannam@86 7341 $EGREP "free" >/dev/null 2>&1; then :
cannam@86 7342
cannam@86 7343 else
cannam@86 7344 ac_cv_header_stdc=no
cannam@86 7345 fi
cannam@86 7346 rm -f conftest*
cannam@86 7347
cannam@86 7348 fi
cannam@86 7349
cannam@86 7350 if test $ac_cv_header_stdc = yes; then
cannam@86 7351 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cannam@86 7352 if test "$cross_compiling" = yes; then :
cannam@86 7353 :
cannam@86 7354 else
cannam@86 7355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 7356 /* end confdefs.h. */
cannam@86 7357 #include <ctype.h>
cannam@86 7358 #include <stdlib.h>
cannam@86 7359 #if ((' ' & 0x0FF) == 0x020)
cannam@86 7360 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
cannam@86 7361 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
cannam@86 7362 #else
cannam@86 7363 # define ISLOWER(c) \
cannam@86 7364 (('a' <= (c) && (c) <= 'i') \
cannam@86 7365 || ('j' <= (c) && (c) <= 'r') \
cannam@86 7366 || ('s' <= (c) && (c) <= 'z'))
cannam@86 7367 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
cannam@86 7368 #endif
cannam@86 7369
cannam@86 7370 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
cannam@86 7371 int
cannam@86 7372 main ()
cannam@86 7373 {
cannam@86 7374 int i;
cannam@86 7375 for (i = 0; i < 256; i++)
cannam@86 7376 if (XOR (islower (i), ISLOWER (i))
cannam@86 7377 || toupper (i) != TOUPPER (i))
cannam@86 7378 return 2;
cannam@86 7379 return 0;
cannam@86 7380 }
cannam@86 7381 _ACEOF
cannam@86 7382 if ac_fn_c_try_run "$LINENO"; then :
cannam@86 7383
cannam@86 7384 else
cannam@86 7385 ac_cv_header_stdc=no
cannam@86 7386 fi
cannam@86 7387 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
cannam@86 7388 conftest.$ac_objext conftest.beam conftest.$ac_ext
cannam@86 7389 fi
cannam@86 7390
cannam@86 7391 fi
cannam@86 7392 fi
cannam@86 7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cannam@86 7394 $as_echo "$ac_cv_header_stdc" >&6; }
cannam@86 7395 if test $ac_cv_header_stdc = yes; then
cannam@86 7396
cannam@86 7397 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
cannam@86 7398
cannam@86 7399 fi
cannam@86 7400
cannam@86 7401 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
cannam@86 7402 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
cannam@86 7403 inttypes.h stdint.h unistd.h
cannam@86 7404 do :
cannam@86 7405 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cannam@86 7406 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
cannam@86 7407 "
cannam@86 7408 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cannam@86 7409 cat >>confdefs.h <<_ACEOF
cannam@86 7410 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
cannam@86 7411 _ACEOF
cannam@86 7412
cannam@86 7413 fi
cannam@86 7414
cannam@86 7415 done
cannam@86 7416
cannam@86 7417
cannam@86 7418 for ac_header in dlfcn.h
cannam@86 7419 do :
cannam@86 7420 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
cannam@86 7421 "
cannam@86 7422 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cannam@86 7423 cat >>confdefs.h <<_ACEOF
cannam@86 7424 #define HAVE_DLFCN_H 1
cannam@86 7425 _ACEOF
cannam@86 7426
cannam@86 7427 fi
cannam@86 7428
cannam@86 7429 done
cannam@86 7430
cannam@86 7431
cannam@86 7432
cannam@86 7433
cannam@86 7434
cannam@86 7435 # Set options
cannam@86 7436
cannam@86 7437
cannam@86 7438
cannam@86 7439 enable_dlopen=no
cannam@86 7440
cannam@86 7441
cannam@86 7442 enable_win32_dll=no
cannam@86 7443
cannam@86 7444
cannam@86 7445 # Check whether --enable-shared was given.
cannam@86 7446 if test "${enable_shared+set}" = set; then :
cannam@86 7447 enableval=$enable_shared; p=${PACKAGE-default}
cannam@86 7448 case $enableval in
cannam@86 7449 yes) enable_shared=yes ;;
cannam@86 7450 no) enable_shared=no ;;
cannam@86 7451 *)
cannam@86 7452 enable_shared=no
cannam@86 7453 # Look at the argument we got. We use all the common list separators.
cannam@86 7454 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
cannam@86 7455 for pkg in $enableval; do
cannam@86 7456 IFS="$lt_save_ifs"
cannam@86 7457 if test "X$pkg" = "X$p"; then
cannam@86 7458 enable_shared=yes
cannam@86 7459 fi
cannam@86 7460 done
cannam@86 7461 IFS="$lt_save_ifs"
cannam@86 7462 ;;
cannam@86 7463 esac
cannam@86 7464 else
cannam@86 7465 enable_shared=yes
cannam@86 7466 fi
cannam@86 7467
cannam@86 7468
cannam@86 7469
cannam@86 7470
cannam@86 7471
cannam@86 7472
cannam@86 7473
cannam@86 7474
cannam@86 7475
cannam@86 7476 # Check whether --enable-static was given.
cannam@86 7477 if test "${enable_static+set}" = set; then :
cannam@86 7478 enableval=$enable_static; p=${PACKAGE-default}
cannam@86 7479 case $enableval in
cannam@86 7480 yes) enable_static=yes ;;
cannam@86 7481 no) enable_static=no ;;
cannam@86 7482 *)
cannam@86 7483 enable_static=no
cannam@86 7484 # Look at the argument we got. We use all the common list separators.
cannam@86 7485 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
cannam@86 7486 for pkg in $enableval; do
cannam@86 7487 IFS="$lt_save_ifs"
cannam@86 7488 if test "X$pkg" = "X$p"; then
cannam@86 7489 enable_static=yes
cannam@86 7490 fi
cannam@86 7491 done
cannam@86 7492 IFS="$lt_save_ifs"
cannam@86 7493 ;;
cannam@86 7494 esac
cannam@86 7495 else
cannam@86 7496 enable_static=yes
cannam@86 7497 fi
cannam@86 7498
cannam@86 7499
cannam@86 7500
cannam@86 7501
cannam@86 7502
cannam@86 7503
cannam@86 7504
cannam@86 7505
cannam@86 7506
cannam@86 7507
cannam@86 7508 # Check whether --with-pic was given.
cannam@86 7509 if test "${with_pic+set}" = set; then :
cannam@86 7510 withval=$with_pic; pic_mode="$withval"
cannam@86 7511 else
cannam@86 7512 pic_mode=default
cannam@86 7513 fi
cannam@86 7514
cannam@86 7515
cannam@86 7516 test -z "$pic_mode" && pic_mode=default
cannam@86 7517
cannam@86 7518
cannam@86 7519
cannam@86 7520
cannam@86 7521
cannam@86 7522
cannam@86 7523
cannam@86 7524 # Check whether --enable-fast-install was given.
cannam@86 7525 if test "${enable_fast_install+set}" = set; then :
cannam@86 7526 enableval=$enable_fast_install; p=${PACKAGE-default}
cannam@86 7527 case $enableval in
cannam@86 7528 yes) enable_fast_install=yes ;;
cannam@86 7529 no) enable_fast_install=no ;;
cannam@86 7530 *)
cannam@86 7531 enable_fast_install=no
cannam@86 7532 # Look at the argument we got. We use all the common list separators.
cannam@86 7533 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
cannam@86 7534 for pkg in $enableval; do
cannam@86 7535 IFS="$lt_save_ifs"
cannam@86 7536 if test "X$pkg" = "X$p"; then
cannam@86 7537 enable_fast_install=yes
cannam@86 7538 fi
cannam@86 7539 done
cannam@86 7540 IFS="$lt_save_ifs"
cannam@86 7541 ;;
cannam@86 7542 esac
cannam@86 7543 else
cannam@86 7544 enable_fast_install=yes
cannam@86 7545 fi
cannam@86 7546
cannam@86 7547
cannam@86 7548
cannam@86 7549
cannam@86 7550
cannam@86 7551
cannam@86 7552
cannam@86 7553
cannam@86 7554
cannam@86 7555
cannam@86 7556
cannam@86 7557 # This can be used to rebuild libtool when needed
cannam@86 7558 LIBTOOL_DEPS="$ltmain"
cannam@86 7559
cannam@86 7560 # Always use our own libtool.
cannam@86 7561 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
cannam@86 7562
cannam@86 7563
cannam@86 7564
cannam@86 7565
cannam@86 7566
cannam@86 7567
cannam@86 7568
cannam@86 7569
cannam@86 7570
cannam@86 7571
cannam@86 7572
cannam@86 7573
cannam@86 7574
cannam@86 7575
cannam@86 7576
cannam@86 7577
cannam@86 7578
cannam@86 7579
cannam@86 7580
cannam@86 7581
cannam@86 7582
cannam@86 7583
cannam@86 7584
cannam@86 7585
cannam@86 7586
cannam@86 7587
cannam@86 7588 test -z "$LN_S" && LN_S="ln -s"
cannam@86 7589
cannam@86 7590
cannam@86 7591
cannam@86 7592
cannam@86 7593
cannam@86 7594
cannam@86 7595
cannam@86 7596
cannam@86 7597
cannam@86 7598
cannam@86 7599
cannam@86 7600
cannam@86 7601
cannam@86 7602
cannam@86 7603 if test -n "${ZSH_VERSION+set}" ; then
cannam@86 7604 setopt NO_GLOB_SUBST
cannam@86 7605 fi
cannam@86 7606
cannam@86 7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
cannam@86 7608 $as_echo_n "checking for objdir... " >&6; }
cannam@86 7609 if ${lt_cv_objdir+:} false; then :
cannam@86 7610 $as_echo_n "(cached) " >&6
cannam@86 7611 else
cannam@86 7612 rm -f .libs 2>/dev/null
cannam@86 7613 mkdir .libs 2>/dev/null
cannam@86 7614 if test -d .libs; then
cannam@86 7615 lt_cv_objdir=.libs
cannam@86 7616 else
cannam@86 7617 # MS-DOS does not allow filenames that begin with a dot.
cannam@86 7618 lt_cv_objdir=_libs
cannam@86 7619 fi
cannam@86 7620 rmdir .libs 2>/dev/null
cannam@86 7621 fi
cannam@86 7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
cannam@86 7623 $as_echo "$lt_cv_objdir" >&6; }
cannam@86 7624 objdir=$lt_cv_objdir
cannam@86 7625
cannam@86 7626
cannam@86 7627
cannam@86 7628
cannam@86 7629
cannam@86 7630 cat >>confdefs.h <<_ACEOF
cannam@86 7631 #define LT_OBJDIR "$lt_cv_objdir/"
cannam@86 7632 _ACEOF
cannam@86 7633
cannam@86 7634
cannam@86 7635
cannam@86 7636
cannam@86 7637 case $host_os in
cannam@86 7638 aix3*)
cannam@86 7639 # AIX sometimes has problems with the GCC collect2 program. For some
cannam@86 7640 # reason, if we set the COLLECT_NAMES environment variable, the problems
cannam@86 7641 # vanish in a puff of smoke.
cannam@86 7642 if test "X${COLLECT_NAMES+set}" != Xset; then
cannam@86 7643 COLLECT_NAMES=
cannam@86 7644 export COLLECT_NAMES
cannam@86 7645 fi
cannam@86 7646 ;;
cannam@86 7647 esac
cannam@86 7648
cannam@86 7649 # Global variables:
cannam@86 7650 ofile=libtool
cannam@86 7651 can_build_shared=yes
cannam@86 7652
cannam@86 7653 # All known linkers require a `.a' archive for static linking (except MSVC,
cannam@86 7654 # which needs '.lib').
cannam@86 7655 libext=a
cannam@86 7656
cannam@86 7657 with_gnu_ld="$lt_cv_prog_gnu_ld"
cannam@86 7658
cannam@86 7659 old_CC="$CC"
cannam@86 7660 old_CFLAGS="$CFLAGS"
cannam@86 7661
cannam@86 7662 # Set sane defaults for various variables
cannam@86 7663 test -z "$CC" && CC=cc
cannam@86 7664 test -z "$LTCC" && LTCC=$CC
cannam@86 7665 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
cannam@86 7666 test -z "$LD" && LD=ld
cannam@86 7667 test -z "$ac_objext" && ac_objext=o
cannam@86 7668
cannam@86 7669 for cc_temp in $compiler""; do
cannam@86 7670 case $cc_temp in
cannam@86 7671 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
cannam@86 7672 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
cannam@86 7673 \-*) ;;
cannam@86 7674 *) break;;
cannam@86 7675 esac
cannam@86 7676 done
cannam@86 7677 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cannam@86 7678
cannam@86 7679
cannam@86 7680 # Only perform the check for file, if the check method requires it
cannam@86 7681 test -z "$MAGIC_CMD" && MAGIC_CMD=file
cannam@86 7682 case $deplibs_check_method in
cannam@86 7683 file_magic*)
cannam@86 7684 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cannam@86 7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
cannam@86 7686 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cannam@86 7687 if ${lt_cv_path_MAGIC_CMD+:} false; then :
cannam@86 7688 $as_echo_n "(cached) " >&6
cannam@86 7689 else
cannam@86 7690 case $MAGIC_CMD in
cannam@86 7691 [\\/*] | ?:[\\/]*)
cannam@86 7692 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
cannam@86 7693 ;;
cannam@86 7694 *)
cannam@86 7695 lt_save_MAGIC_CMD="$MAGIC_CMD"
cannam@86 7696 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cannam@86 7697 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
cannam@86 7698 for ac_dir in $ac_dummy; do
cannam@86 7699 IFS="$lt_save_ifs"
cannam@86 7700 test -z "$ac_dir" && ac_dir=.
cannam@86 7701 if test -f $ac_dir/${ac_tool_prefix}file; then
cannam@86 7702 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
cannam@86 7703 if test -n "$file_magic_test_file"; then
cannam@86 7704 case $deplibs_check_method in
cannam@86 7705 "file_magic "*)
cannam@86 7706 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
cannam@86 7707 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
cannam@86 7708 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
cannam@86 7709 $EGREP "$file_magic_regex" > /dev/null; then
cannam@86 7710 :
cannam@86 7711 else
cannam@86 7712 cat <<_LT_EOF 1>&2
cannam@86 7713
cannam@86 7714 *** Warning: the command libtool uses to detect shared libraries,
cannam@86 7715 *** $file_magic_cmd, produces output that libtool cannot recognize.
cannam@86 7716 *** The result is that libtool may fail to recognize shared libraries
cannam@86 7717 *** as such. This will affect the creation of libtool libraries that
cannam@86 7718 *** depend on shared libraries, but programs linked with such libtool
cannam@86 7719 *** libraries will work regardless of this problem. Nevertheless, you
cannam@86 7720 *** may want to report the problem to your system manager and/or to
cannam@86 7721 *** bug-libtool@gnu.org
cannam@86 7722
cannam@86 7723 _LT_EOF
cannam@86 7724 fi ;;
cannam@86 7725 esac
cannam@86 7726 fi
cannam@86 7727 break
cannam@86 7728 fi
cannam@86 7729 done
cannam@86 7730 IFS="$lt_save_ifs"
cannam@86 7731 MAGIC_CMD="$lt_save_MAGIC_CMD"
cannam@86 7732 ;;
cannam@86 7733 esac
cannam@86 7734 fi
cannam@86 7735
cannam@86 7736 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
cannam@86 7737 if test -n "$MAGIC_CMD"; then
cannam@86 7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cannam@86 7739 $as_echo "$MAGIC_CMD" >&6; }
cannam@86 7740 else
cannam@86 7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 7742 $as_echo "no" >&6; }
cannam@86 7743 fi
cannam@86 7744
cannam@86 7745
cannam@86 7746
cannam@86 7747
cannam@86 7748
cannam@86 7749 if test -z "$lt_cv_path_MAGIC_CMD"; then
cannam@86 7750 if test -n "$ac_tool_prefix"; then
cannam@86 7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
cannam@86 7752 $as_echo_n "checking for file... " >&6; }
cannam@86 7753 if ${lt_cv_path_MAGIC_CMD+:} false; then :
cannam@86 7754 $as_echo_n "(cached) " >&6
cannam@86 7755 else
cannam@86 7756 case $MAGIC_CMD in
cannam@86 7757 [\\/*] | ?:[\\/]*)
cannam@86 7758 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
cannam@86 7759 ;;
cannam@86 7760 *)
cannam@86 7761 lt_save_MAGIC_CMD="$MAGIC_CMD"
cannam@86 7762 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cannam@86 7763 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
cannam@86 7764 for ac_dir in $ac_dummy; do
cannam@86 7765 IFS="$lt_save_ifs"
cannam@86 7766 test -z "$ac_dir" && ac_dir=.
cannam@86 7767 if test -f $ac_dir/file; then
cannam@86 7768 lt_cv_path_MAGIC_CMD="$ac_dir/file"
cannam@86 7769 if test -n "$file_magic_test_file"; then
cannam@86 7770 case $deplibs_check_method in
cannam@86 7771 "file_magic "*)
cannam@86 7772 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
cannam@86 7773 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
cannam@86 7774 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
cannam@86 7775 $EGREP "$file_magic_regex" > /dev/null; then
cannam@86 7776 :
cannam@86 7777 else
cannam@86 7778 cat <<_LT_EOF 1>&2
cannam@86 7779
cannam@86 7780 *** Warning: the command libtool uses to detect shared libraries,
cannam@86 7781 *** $file_magic_cmd, produces output that libtool cannot recognize.
cannam@86 7782 *** The result is that libtool may fail to recognize shared libraries
cannam@86 7783 *** as such. This will affect the creation of libtool libraries that
cannam@86 7784 *** depend on shared libraries, but programs linked with such libtool
cannam@86 7785 *** libraries will work regardless of this problem. Nevertheless, you
cannam@86 7786 *** may want to report the problem to your system manager and/or to
cannam@86 7787 *** bug-libtool@gnu.org
cannam@86 7788
cannam@86 7789 _LT_EOF
cannam@86 7790 fi ;;
cannam@86 7791 esac
cannam@86 7792 fi
cannam@86 7793 break
cannam@86 7794 fi
cannam@86 7795 done
cannam@86 7796 IFS="$lt_save_ifs"
cannam@86 7797 MAGIC_CMD="$lt_save_MAGIC_CMD"
cannam@86 7798 ;;
cannam@86 7799 esac
cannam@86 7800 fi
cannam@86 7801
cannam@86 7802 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
cannam@86 7803 if test -n "$MAGIC_CMD"; then
cannam@86 7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cannam@86 7805 $as_echo "$MAGIC_CMD" >&6; }
cannam@86 7806 else
cannam@86 7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 7808 $as_echo "no" >&6; }
cannam@86 7809 fi
cannam@86 7810
cannam@86 7811
cannam@86 7812 else
cannam@86 7813 MAGIC_CMD=:
cannam@86 7814 fi
cannam@86 7815 fi
cannam@86 7816
cannam@86 7817 fi
cannam@86 7818 ;;
cannam@86 7819 esac
cannam@86 7820
cannam@86 7821 # Use C for the default configuration in the libtool script
cannam@86 7822
cannam@86 7823 lt_save_CC="$CC"
cannam@86 7824 ac_ext=c
cannam@86 7825 ac_cpp='$CPP $CPPFLAGS'
cannam@86 7826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@86 7827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@86 7828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@86 7829
cannam@86 7830
cannam@86 7831 # Source file extension for C test sources.
cannam@86 7832 ac_ext=c
cannam@86 7833
cannam@86 7834 # Object file extension for compiled C test sources.
cannam@86 7835 objext=o
cannam@86 7836 objext=$objext
cannam@86 7837
cannam@86 7838 # Code to be used in simple compile tests
cannam@86 7839 lt_simple_compile_test_code="int some_variable = 0;"
cannam@86 7840
cannam@86 7841 # Code to be used in simple link tests
cannam@86 7842 lt_simple_link_test_code='int main(){return(0);}'
cannam@86 7843
cannam@86 7844
cannam@86 7845
cannam@86 7846
cannam@86 7847
cannam@86 7848
cannam@86 7849
cannam@86 7850 # If no C compiler was specified, use CC.
cannam@86 7851 LTCC=${LTCC-"$CC"}
cannam@86 7852
cannam@86 7853 # If no C compiler flags were specified, use CFLAGS.
cannam@86 7854 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
cannam@86 7855
cannam@86 7856 # Allow CC to be a program name with arguments.
cannam@86 7857 compiler=$CC
cannam@86 7858
cannam@86 7859 # Save the default compiler, since it gets overwritten when the other
cannam@86 7860 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
cannam@86 7861 compiler_DEFAULT=$CC
cannam@86 7862
cannam@86 7863 # save warnings/boilerplate of simple test code
cannam@86 7864 ac_outfile=conftest.$ac_objext
cannam@86 7865 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
cannam@86 7866 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
cannam@86 7867 _lt_compiler_boilerplate=`cat conftest.err`
cannam@86 7868 $RM conftest*
cannam@86 7869
cannam@86 7870 ac_outfile=conftest.$ac_objext
cannam@86 7871 echo "$lt_simple_link_test_code" >conftest.$ac_ext
cannam@86 7872 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
cannam@86 7873 _lt_linker_boilerplate=`cat conftest.err`
cannam@86 7874 $RM -r conftest*
cannam@86 7875
cannam@86 7876
cannam@86 7877 if test -n "$compiler"; then
cannam@86 7878
cannam@86 7879 lt_prog_compiler_no_builtin_flag=
cannam@86 7880
cannam@86 7881 if test "$GCC" = yes; then
cannam@86 7882 case $cc_basename in
cannam@86 7883 nvcc*)
cannam@86 7884 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
cannam@86 7885 *)
cannam@86 7886 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
cannam@86 7887 esac
cannam@86 7888
cannam@86 7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
cannam@86 7890 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cannam@86 7891 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cannam@86 7892 $as_echo_n "(cached) " >&6
cannam@86 7893 else
cannam@86 7894 lt_cv_prog_compiler_rtti_exceptions=no
cannam@86 7895 ac_outfile=conftest.$ac_objext
cannam@86 7896 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@86 7897 lt_compiler_flag="-fno-rtti -fno-exceptions"
cannam@86 7898 # Insert the option either (1) after the last *FLAGS variable, or
cannam@86 7899 # (2) before a word containing "conftest.", or (3) at the end.
cannam@86 7900 # Note that $ac_compile itself does not contain backslashes and begins
cannam@86 7901 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@86 7902 # The option is referenced via a variable to avoid confusing sed.
cannam@86 7903 lt_compile=`echo "$ac_compile" | $SED \
cannam@86 7904 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
cannam@86 7905 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@86 7906 -e 's:$: $lt_compiler_flag:'`
cannam@86 7907 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cannam@86 7908 (eval "$lt_compile" 2>conftest.err)
cannam@86 7909 ac_status=$?
cannam@86 7910 cat conftest.err >&5
cannam@86 7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@86 7912 if (exit $ac_status) && test -s "$ac_outfile"; then
cannam@86 7913 # The compiler can only warn and ignore the option if not recognized
cannam@86 7914 # So say no if there are warnings other than the usual output.
cannam@86 7915 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cannam@86 7916 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
cannam@86 7917 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
cannam@86 7918 lt_cv_prog_compiler_rtti_exceptions=yes
cannam@86 7919 fi
cannam@86 7920 fi
cannam@86 7921 $RM conftest*
cannam@86 7922
cannam@86 7923 fi
cannam@86 7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
cannam@86 7925 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
cannam@86 7926
cannam@86 7927 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
cannam@86 7928 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
cannam@86 7929 else
cannam@86 7930 :
cannam@86 7931 fi
cannam@86 7932
cannam@86 7933 fi
cannam@86 7934
cannam@86 7935
cannam@86 7936
cannam@86 7937
cannam@86 7938
cannam@86 7939
cannam@86 7940 lt_prog_compiler_wl=
cannam@86 7941 lt_prog_compiler_pic=
cannam@86 7942 lt_prog_compiler_static=
cannam@86 7943
cannam@86 7944
cannam@86 7945 if test "$GCC" = yes; then
cannam@86 7946 lt_prog_compiler_wl='-Wl,'
cannam@86 7947 lt_prog_compiler_static='-static'
cannam@86 7948
cannam@86 7949 case $host_os in
cannam@86 7950 aix*)
cannam@86 7951 # All AIX code is PIC.
cannam@86 7952 if test "$host_cpu" = ia64; then
cannam@86 7953 # AIX 5 now supports IA64 processor
cannam@86 7954 lt_prog_compiler_static='-Bstatic'
cannam@86 7955 fi
cannam@86 7956 ;;
cannam@86 7957
cannam@86 7958 amigaos*)
cannam@86 7959 case $host_cpu in
cannam@86 7960 powerpc)
cannam@86 7961 # see comment about AmigaOS4 .so support
cannam@86 7962 lt_prog_compiler_pic='-fPIC'
cannam@86 7963 ;;
cannam@86 7964 m68k)
cannam@86 7965 # FIXME: we need at least 68020 code to build shared libraries, but
cannam@86 7966 # adding the `-m68020' flag to GCC prevents building anything better,
cannam@86 7967 # like `-m68040'.
cannam@86 7968 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
cannam@86 7969 ;;
cannam@86 7970 esac
cannam@86 7971 ;;
cannam@86 7972
cannam@86 7973 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
cannam@86 7974 # PIC is the default for these OSes.
cannam@86 7975 ;;
cannam@86 7976
cannam@86 7977 mingw* | cygwin* | pw32* | os2* | cegcc*)
cannam@86 7978 # This hack is so that the source file can tell whether it is being
cannam@86 7979 # built for inclusion in a dll (and should export symbols for example).
cannam@86 7980 # Although the cygwin gcc ignores -fPIC, still need this for old-style
cannam@86 7981 # (--disable-auto-import) libraries
cannam@86 7982 lt_prog_compiler_pic='-DDLL_EXPORT'
cannam@86 7983 ;;
cannam@86 7984
cannam@86 7985 darwin* | rhapsody*)
cannam@86 7986 # PIC is the default on this platform
cannam@86 7987 # Common symbols not allowed in MH_DYLIB files
cannam@86 7988 lt_prog_compiler_pic='-fno-common'
cannam@86 7989 ;;
cannam@86 7990
cannam@86 7991 haiku*)
cannam@86 7992 # PIC is the default for Haiku.
cannam@86 7993 # The "-static" flag exists, but is broken.
cannam@86 7994 lt_prog_compiler_static=
cannam@86 7995 ;;
cannam@86 7996
cannam@86 7997 hpux*)
cannam@86 7998 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
cannam@86 7999 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
cannam@86 8000 # sets the default TLS model and affects inlining.
cannam@86 8001 case $host_cpu in
cannam@86 8002 hppa*64*)
cannam@86 8003 # +Z the default
cannam@86 8004 ;;
cannam@86 8005 *)
cannam@86 8006 lt_prog_compiler_pic='-fPIC'
cannam@86 8007 ;;
cannam@86 8008 esac
cannam@86 8009 ;;
cannam@86 8010
cannam@86 8011 interix[3-9]*)
cannam@86 8012 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
cannam@86 8013 # Instead, we relocate shared libraries at runtime.
cannam@86 8014 ;;
cannam@86 8015
cannam@86 8016 msdosdjgpp*)
cannam@86 8017 # Just because we use GCC doesn't mean we suddenly get shared libraries
cannam@86 8018 # on systems that don't support them.
cannam@86 8019 lt_prog_compiler_can_build_shared=no
cannam@86 8020 enable_shared=no
cannam@86 8021 ;;
cannam@86 8022
cannam@86 8023 *nto* | *qnx*)
cannam@86 8024 # QNX uses GNU C++, but need to define -shared option too, otherwise
cannam@86 8025 # it will coredump.
cannam@86 8026 lt_prog_compiler_pic='-fPIC -shared'
cannam@86 8027 ;;
cannam@86 8028
cannam@86 8029 sysv4*MP*)
cannam@86 8030 if test -d /usr/nec; then
cannam@86 8031 lt_prog_compiler_pic=-Kconform_pic
cannam@86 8032 fi
cannam@86 8033 ;;
cannam@86 8034
cannam@86 8035 *)
cannam@86 8036 lt_prog_compiler_pic='-fPIC'
cannam@86 8037 ;;
cannam@86 8038 esac
cannam@86 8039
cannam@86 8040 case $cc_basename in
cannam@86 8041 nvcc*) # Cuda Compiler Driver 2.2
cannam@86 8042 lt_prog_compiler_wl='-Xlinker '
cannam@86 8043 lt_prog_compiler_pic='-Xcompiler -fPIC'
cannam@86 8044 ;;
cannam@86 8045 esac
cannam@86 8046 else
cannam@86 8047 # PORTME Check for flag to pass linker flags through the system compiler.
cannam@86 8048 case $host_os in
cannam@86 8049 aix*)
cannam@86 8050 lt_prog_compiler_wl='-Wl,'
cannam@86 8051 if test "$host_cpu" = ia64; then
cannam@86 8052 # AIX 5 now supports IA64 processor
cannam@86 8053 lt_prog_compiler_static='-Bstatic'
cannam@86 8054 else
cannam@86 8055 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
cannam@86 8056 fi
cannam@86 8057 ;;
cannam@86 8058
cannam@86 8059 mingw* | cygwin* | pw32* | os2* | cegcc*)
cannam@86 8060 # This hack is so that the source file can tell whether it is being
cannam@86 8061 # built for inclusion in a dll (and should export symbols for example).
cannam@86 8062 lt_prog_compiler_pic='-DDLL_EXPORT'
cannam@86 8063 ;;
cannam@86 8064
cannam@86 8065 hpux9* | hpux10* | hpux11*)
cannam@86 8066 lt_prog_compiler_wl='-Wl,'
cannam@86 8067 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
cannam@86 8068 # not for PA HP-UX.
cannam@86 8069 case $host_cpu in
cannam@86 8070 hppa*64*|ia64*)
cannam@86 8071 # +Z the default
cannam@86 8072 ;;
cannam@86 8073 *)
cannam@86 8074 lt_prog_compiler_pic='+Z'
cannam@86 8075 ;;
cannam@86 8076 esac
cannam@86 8077 # Is there a better lt_prog_compiler_static that works with the bundled CC?
cannam@86 8078 lt_prog_compiler_static='${wl}-a ${wl}archive'
cannam@86 8079 ;;
cannam@86 8080
cannam@86 8081 irix5* | irix6* | nonstopux*)
cannam@86 8082 lt_prog_compiler_wl='-Wl,'
cannam@86 8083 # PIC (with -KPIC) is the default.
cannam@86 8084 lt_prog_compiler_static='-non_shared'
cannam@86 8085 ;;
cannam@86 8086
cannam@86 8087 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cannam@86 8088 case $cc_basename in
cannam@86 8089 # old Intel for x86_64 which still supported -KPIC.
cannam@86 8090 ecc*)
cannam@86 8091 lt_prog_compiler_wl='-Wl,'
cannam@86 8092 lt_prog_compiler_pic='-KPIC'
cannam@86 8093 lt_prog_compiler_static='-static'
cannam@86 8094 ;;
cannam@86 8095 # icc used to be incompatible with GCC.
cannam@86 8096 # ICC 10 doesn't accept -KPIC any more.
cannam@86 8097 icc* | ifort*)
cannam@86 8098 lt_prog_compiler_wl='-Wl,'
cannam@86 8099 lt_prog_compiler_pic='-fPIC'
cannam@86 8100 lt_prog_compiler_static='-static'
cannam@86 8101 ;;
cannam@86 8102 # Lahey Fortran 8.1.
cannam@86 8103 lf95*)
cannam@86 8104 lt_prog_compiler_wl='-Wl,'
cannam@86 8105 lt_prog_compiler_pic='--shared'
cannam@86 8106 lt_prog_compiler_static='--static'
cannam@86 8107 ;;
cannam@86 8108 nagfor*)
cannam@86 8109 # NAG Fortran compiler
cannam@86 8110 lt_prog_compiler_wl='-Wl,-Wl,,'
cannam@86 8111 lt_prog_compiler_pic='-PIC'
cannam@86 8112 lt_prog_compiler_static='-Bstatic'
cannam@86 8113 ;;
cannam@86 8114 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cannam@86 8115 # Portland Group compilers (*not* the Pentium gcc compiler,
cannam@86 8116 # which looks to be a dead project)
cannam@86 8117 lt_prog_compiler_wl='-Wl,'
cannam@86 8118 lt_prog_compiler_pic='-fpic'
cannam@86 8119 lt_prog_compiler_static='-Bstatic'
cannam@86 8120 ;;
cannam@86 8121 ccc*)
cannam@86 8122 lt_prog_compiler_wl='-Wl,'
cannam@86 8123 # All Alpha code is PIC.
cannam@86 8124 lt_prog_compiler_static='-non_shared'
cannam@86 8125 ;;
cannam@86 8126 xl* | bgxl* | bgf* | mpixl*)
cannam@86 8127 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cannam@86 8128 lt_prog_compiler_wl='-Wl,'
cannam@86 8129 lt_prog_compiler_pic='-qpic'
cannam@86 8130 lt_prog_compiler_static='-qstaticlink'
cannam@86 8131 ;;
cannam@86 8132 *)
cannam@86 8133 case `$CC -V 2>&1 | sed 5q` in
cannam@86 8134 *Sun\ F* | *Sun*Fortran*)
cannam@86 8135 # Sun Fortran 8.3 passes all unrecognized flags to the linker
cannam@86 8136 lt_prog_compiler_pic='-KPIC'
cannam@86 8137 lt_prog_compiler_static='-Bstatic'
cannam@86 8138 lt_prog_compiler_wl=''
cannam@86 8139 ;;
cannam@86 8140 *Sun\ C*)
cannam@86 8141 # Sun C 5.9
cannam@86 8142 lt_prog_compiler_pic='-KPIC'
cannam@86 8143 lt_prog_compiler_static='-Bstatic'
cannam@86 8144 lt_prog_compiler_wl='-Wl,'
cannam@86 8145 ;;
cannam@86 8146 esac
cannam@86 8147 ;;
cannam@86 8148 esac
cannam@86 8149 ;;
cannam@86 8150
cannam@86 8151 newsos6)
cannam@86 8152 lt_prog_compiler_pic='-KPIC'
cannam@86 8153 lt_prog_compiler_static='-Bstatic'
cannam@86 8154 ;;
cannam@86 8155
cannam@86 8156 *nto* | *qnx*)
cannam@86 8157 # QNX uses GNU C++, but need to define -shared option too, otherwise
cannam@86 8158 # it will coredump.
cannam@86 8159 lt_prog_compiler_pic='-fPIC -shared'
cannam@86 8160 ;;
cannam@86 8161
cannam@86 8162 osf3* | osf4* | osf5*)
cannam@86 8163 lt_prog_compiler_wl='-Wl,'
cannam@86 8164 # All OSF/1 code is PIC.
cannam@86 8165 lt_prog_compiler_static='-non_shared'
cannam@86 8166 ;;
cannam@86 8167
cannam@86 8168 rdos*)
cannam@86 8169 lt_prog_compiler_static='-non_shared'
cannam@86 8170 ;;
cannam@86 8171
cannam@86 8172 solaris*)
cannam@86 8173 lt_prog_compiler_pic='-KPIC'
cannam@86 8174 lt_prog_compiler_static='-Bstatic'
cannam@86 8175 case $cc_basename in
cannam@86 8176 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cannam@86 8177 lt_prog_compiler_wl='-Qoption ld ';;
cannam@86 8178 *)
cannam@86 8179 lt_prog_compiler_wl='-Wl,';;
cannam@86 8180 esac
cannam@86 8181 ;;
cannam@86 8182
cannam@86 8183 sunos4*)
cannam@86 8184 lt_prog_compiler_wl='-Qoption ld '
cannam@86 8185 lt_prog_compiler_pic='-PIC'
cannam@86 8186 lt_prog_compiler_static='-Bstatic'
cannam@86 8187 ;;
cannam@86 8188
cannam@86 8189 sysv4 | sysv4.2uw2* | sysv4.3*)
cannam@86 8190 lt_prog_compiler_wl='-Wl,'
cannam@86 8191 lt_prog_compiler_pic='-KPIC'
cannam@86 8192 lt_prog_compiler_static='-Bstatic'
cannam@86 8193 ;;
cannam@86 8194
cannam@86 8195 sysv4*MP*)
cannam@86 8196 if test -d /usr/nec ;then
cannam@86 8197 lt_prog_compiler_pic='-Kconform_pic'
cannam@86 8198 lt_prog_compiler_static='-Bstatic'
cannam@86 8199 fi
cannam@86 8200 ;;
cannam@86 8201
cannam@86 8202 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
cannam@86 8203 lt_prog_compiler_wl='-Wl,'
cannam@86 8204 lt_prog_compiler_pic='-KPIC'
cannam@86 8205 lt_prog_compiler_static='-Bstatic'
cannam@86 8206 ;;
cannam@86 8207
cannam@86 8208 unicos*)
cannam@86 8209 lt_prog_compiler_wl='-Wl,'
cannam@86 8210 lt_prog_compiler_can_build_shared=no
cannam@86 8211 ;;
cannam@86 8212
cannam@86 8213 uts4*)
cannam@86 8214 lt_prog_compiler_pic='-pic'
cannam@86 8215 lt_prog_compiler_static='-Bstatic'
cannam@86 8216 ;;
cannam@86 8217
cannam@86 8218 *)
cannam@86 8219 lt_prog_compiler_can_build_shared=no
cannam@86 8220 ;;
cannam@86 8221 esac
cannam@86 8222 fi
cannam@86 8223
cannam@86 8224 case $host_os in
cannam@86 8225 # For platforms which do not support PIC, -DPIC is meaningless:
cannam@86 8226 *djgpp*)
cannam@86 8227 lt_prog_compiler_pic=
cannam@86 8228 ;;
cannam@86 8229 *)
cannam@86 8230 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
cannam@86 8231 ;;
cannam@86 8232 esac
cannam@86 8233
cannam@86 8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cannam@86 8235 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
cannam@86 8236 if ${lt_cv_prog_compiler_pic+:} false; then :
cannam@86 8237 $as_echo_n "(cached) " >&6
cannam@86 8238 else
cannam@86 8239 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
cannam@86 8240 fi
cannam@86 8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
cannam@86 8242 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
cannam@86 8243 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cannam@86 8244
cannam@86 8245 #
cannam@86 8246 # Check to make sure the PIC flag actually works.
cannam@86 8247 #
cannam@86 8248 if test -n "$lt_prog_compiler_pic"; then
cannam@86 8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
cannam@86 8250 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cannam@86 8251 if ${lt_cv_prog_compiler_pic_works+:} false; then :
cannam@86 8252 $as_echo_n "(cached) " >&6
cannam@86 8253 else
cannam@86 8254 lt_cv_prog_compiler_pic_works=no
cannam@86 8255 ac_outfile=conftest.$ac_objext
cannam@86 8256 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@86 8257 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
cannam@86 8258 # Insert the option either (1) after the last *FLAGS variable, or
cannam@86 8259 # (2) before a word containing "conftest.", or (3) at the end.
cannam@86 8260 # Note that $ac_compile itself does not contain backslashes and begins
cannam@86 8261 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@86 8262 # The option is referenced via a variable to avoid confusing sed.
cannam@86 8263 lt_compile=`echo "$ac_compile" | $SED \
cannam@86 8264 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
cannam@86 8265 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@86 8266 -e 's:$: $lt_compiler_flag:'`
cannam@86 8267 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cannam@86 8268 (eval "$lt_compile" 2>conftest.err)
cannam@86 8269 ac_status=$?
cannam@86 8270 cat conftest.err >&5
cannam@86 8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@86 8272 if (exit $ac_status) && test -s "$ac_outfile"; then
cannam@86 8273 # The compiler can only warn and ignore the option if not recognized
cannam@86 8274 # So say no if there are warnings other than the usual output.
cannam@86 8275 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cannam@86 8276 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
cannam@86 8277 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
cannam@86 8278 lt_cv_prog_compiler_pic_works=yes
cannam@86 8279 fi
cannam@86 8280 fi
cannam@86 8281 $RM conftest*
cannam@86 8282
cannam@86 8283 fi
cannam@86 8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
cannam@86 8285 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
cannam@86 8286
cannam@86 8287 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
cannam@86 8288 case $lt_prog_compiler_pic in
cannam@86 8289 "" | " "*) ;;
cannam@86 8290 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
cannam@86 8291 esac
cannam@86 8292 else
cannam@86 8293 lt_prog_compiler_pic=
cannam@86 8294 lt_prog_compiler_can_build_shared=no
cannam@86 8295 fi
cannam@86 8296
cannam@86 8297 fi
cannam@86 8298
cannam@86 8299
cannam@86 8300
cannam@86 8301
cannam@86 8302
cannam@86 8303
cannam@86 8304
cannam@86 8305
cannam@86 8306
cannam@86 8307
cannam@86 8308
cannam@86 8309 #
cannam@86 8310 # Check to make sure the static flag actually works.
cannam@86 8311 #
cannam@86 8312 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cannam@86 8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cannam@86 8314 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cannam@86 8315 if ${lt_cv_prog_compiler_static_works+:} false; then :
cannam@86 8316 $as_echo_n "(cached) " >&6
cannam@86 8317 else
cannam@86 8318 lt_cv_prog_compiler_static_works=no
cannam@86 8319 save_LDFLAGS="$LDFLAGS"
cannam@86 8320 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
cannam@86 8321 echo "$lt_simple_link_test_code" > conftest.$ac_ext
cannam@86 8322 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
cannam@86 8323 # The linker can only warn and ignore the option if not recognized
cannam@86 8324 # So say no if there are warnings
cannam@86 8325 if test -s conftest.err; then
cannam@86 8326 # Append any errors to the config.log.
cannam@86 8327 cat conftest.err 1>&5
cannam@86 8328 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cannam@86 8329 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
cannam@86 8330 if diff conftest.exp conftest.er2 >/dev/null; then
cannam@86 8331 lt_cv_prog_compiler_static_works=yes
cannam@86 8332 fi
cannam@86 8333 else
cannam@86 8334 lt_cv_prog_compiler_static_works=yes
cannam@86 8335 fi
cannam@86 8336 fi
cannam@86 8337 $RM -r conftest*
cannam@86 8338 LDFLAGS="$save_LDFLAGS"
cannam@86 8339
cannam@86 8340 fi
cannam@86 8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
cannam@86 8342 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
cannam@86 8343
cannam@86 8344 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
cannam@86 8345 :
cannam@86 8346 else
cannam@86 8347 lt_prog_compiler_static=
cannam@86 8348 fi
cannam@86 8349
cannam@86 8350
cannam@86 8351
cannam@86 8352
cannam@86 8353
cannam@86 8354
cannam@86 8355
cannam@86 8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cannam@86 8357 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cannam@86 8358 if ${lt_cv_prog_compiler_c_o+:} false; then :
cannam@86 8359 $as_echo_n "(cached) " >&6
cannam@86 8360 else
cannam@86 8361 lt_cv_prog_compiler_c_o=no
cannam@86 8362 $RM -r conftest 2>/dev/null
cannam@86 8363 mkdir conftest
cannam@86 8364 cd conftest
cannam@86 8365 mkdir out
cannam@86 8366 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@86 8367
cannam@86 8368 lt_compiler_flag="-o out/conftest2.$ac_objext"
cannam@86 8369 # Insert the option either (1) after the last *FLAGS variable, or
cannam@86 8370 # (2) before a word containing "conftest.", or (3) at the end.
cannam@86 8371 # Note that $ac_compile itself does not contain backslashes and begins
cannam@86 8372 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@86 8373 lt_compile=`echo "$ac_compile" | $SED \
cannam@86 8374 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
cannam@86 8375 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@86 8376 -e 's:$: $lt_compiler_flag:'`
cannam@86 8377 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cannam@86 8378 (eval "$lt_compile" 2>out/conftest.err)
cannam@86 8379 ac_status=$?
cannam@86 8380 cat out/conftest.err >&5
cannam@86 8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@86 8382 if (exit $ac_status) && test -s out/conftest2.$ac_objext
cannam@86 8383 then
cannam@86 8384 # The compiler can only warn and ignore the option if not recognized
cannam@86 8385 # So say no if there are warnings
cannam@86 8386 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cannam@86 8387 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
cannam@86 8388 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
cannam@86 8389 lt_cv_prog_compiler_c_o=yes
cannam@86 8390 fi
cannam@86 8391 fi
cannam@86 8392 chmod u+w . 2>&5
cannam@86 8393 $RM conftest*
cannam@86 8394 # SGI C++ compiler will create directory out/ii_files/ for
cannam@86 8395 # template instantiation
cannam@86 8396 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
cannam@86 8397 $RM out/* && rmdir out
cannam@86 8398 cd ..
cannam@86 8399 $RM -r conftest
cannam@86 8400 $RM conftest*
cannam@86 8401
cannam@86 8402 fi
cannam@86 8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cannam@86 8404 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
cannam@86 8405
cannam@86 8406
cannam@86 8407
cannam@86 8408
cannam@86 8409
cannam@86 8410
cannam@86 8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cannam@86 8412 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cannam@86 8413 if ${lt_cv_prog_compiler_c_o+:} false; then :
cannam@86 8414 $as_echo_n "(cached) " >&6
cannam@86 8415 else
cannam@86 8416 lt_cv_prog_compiler_c_o=no
cannam@86 8417 $RM -r conftest 2>/dev/null
cannam@86 8418 mkdir conftest
cannam@86 8419 cd conftest
cannam@86 8420 mkdir out
cannam@86 8421 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@86 8422
cannam@86 8423 lt_compiler_flag="-o out/conftest2.$ac_objext"
cannam@86 8424 # Insert the option either (1) after the last *FLAGS variable, or
cannam@86 8425 # (2) before a word containing "conftest.", or (3) at the end.
cannam@86 8426 # Note that $ac_compile itself does not contain backslashes and begins
cannam@86 8427 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@86 8428 lt_compile=`echo "$ac_compile" | $SED \
cannam@86 8429 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
cannam@86 8430 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@86 8431 -e 's:$: $lt_compiler_flag:'`
cannam@86 8432 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cannam@86 8433 (eval "$lt_compile" 2>out/conftest.err)
cannam@86 8434 ac_status=$?
cannam@86 8435 cat out/conftest.err >&5
cannam@86 8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@86 8437 if (exit $ac_status) && test -s out/conftest2.$ac_objext
cannam@86 8438 then
cannam@86 8439 # The compiler can only warn and ignore the option if not recognized
cannam@86 8440 # So say no if there are warnings
cannam@86 8441 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cannam@86 8442 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
cannam@86 8443 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
cannam@86 8444 lt_cv_prog_compiler_c_o=yes
cannam@86 8445 fi
cannam@86 8446 fi
cannam@86 8447 chmod u+w . 2>&5
cannam@86 8448 $RM conftest*
cannam@86 8449 # SGI C++ compiler will create directory out/ii_files/ for
cannam@86 8450 # template instantiation
cannam@86 8451 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
cannam@86 8452 $RM out/* && rmdir out
cannam@86 8453 cd ..
cannam@86 8454 $RM -r conftest
cannam@86 8455 $RM conftest*
cannam@86 8456
cannam@86 8457 fi
cannam@86 8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cannam@86 8459 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
cannam@86 8460
cannam@86 8461
cannam@86 8462
cannam@86 8463
cannam@86 8464 hard_links="nottested"
cannam@86 8465 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
cannam@86 8466 # do not overwrite the value of need_locks provided by the user
cannam@86 8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cannam@86 8468 $as_echo_n "checking if we can lock with hard links... " >&6; }
cannam@86 8469 hard_links=yes
cannam@86 8470 $RM conftest*
cannam@86 8471 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cannam@86 8472 touch conftest.a
cannam@86 8473 ln conftest.a conftest.b 2>&5 || hard_links=no
cannam@86 8474 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cannam@86 8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cannam@86 8476 $as_echo "$hard_links" >&6; }
cannam@86 8477 if test "$hard_links" = no; then
cannam@86 8478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
cannam@86 8479 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
cannam@86 8480 need_locks=warn
cannam@86 8481 fi
cannam@86 8482 else
cannam@86 8483 need_locks=no
cannam@86 8484 fi
cannam@86 8485
cannam@86 8486
cannam@86 8487
cannam@86 8488
cannam@86 8489
cannam@86 8490
cannam@86 8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cannam@86 8492 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
cannam@86 8493
cannam@86 8494 runpath_var=
cannam@86 8495 allow_undefined_flag=
cannam@86 8496 always_export_symbols=no
cannam@86 8497 archive_cmds=
cannam@86 8498 archive_expsym_cmds=
cannam@86 8499 compiler_needs_object=no
cannam@86 8500 enable_shared_with_static_runtimes=no
cannam@86 8501 export_dynamic_flag_spec=
cannam@86 8502 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cannam@86 8503 hardcode_automatic=no
cannam@86 8504 hardcode_direct=no
cannam@86 8505 hardcode_direct_absolute=no
cannam@86 8506 hardcode_libdir_flag_spec=
cannam@86 8507 hardcode_libdir_flag_spec_ld=
cannam@86 8508 hardcode_libdir_separator=
cannam@86 8509 hardcode_minus_L=no
cannam@86 8510 hardcode_shlibpath_var=unsupported
cannam@86 8511 inherit_rpath=no
cannam@86 8512 link_all_deplibs=unknown
cannam@86 8513 module_cmds=
cannam@86 8514 module_expsym_cmds=
cannam@86 8515 old_archive_from_new_cmds=
cannam@86 8516 old_archive_from_expsyms_cmds=
cannam@86 8517 thread_safe_flag_spec=
cannam@86 8518 whole_archive_flag_spec=
cannam@86 8519 # include_expsyms should be a list of space-separated symbols to be *always*
cannam@86 8520 # included in the symbol list
cannam@86 8521 include_expsyms=
cannam@86 8522 # exclude_expsyms can be an extended regexp of symbols to exclude
cannam@86 8523 # it will be wrapped by ` (' and `)$', so one must not match beginning or
cannam@86 8524 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
cannam@86 8525 # as well as any symbol that contains `d'.
cannam@86 8526 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cannam@86 8527 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
cannam@86 8528 # platforms (ab)use it in PIC code, but their linkers get confused if
cannam@86 8529 # the symbol is explicitly referenced. Since portable code cannot
cannam@86 8530 # rely on this symbol name, it's probably fine to never include it in
cannam@86 8531 # preloaded symbol tables.
cannam@86 8532 # Exclude shared library initialization/finalization symbols.
cannam@86 8533 extract_expsyms_cmds=
cannam@86 8534
cannam@86 8535 case $host_os in
cannam@86 8536 cygwin* | mingw* | pw32* | cegcc*)
cannam@86 8537 # FIXME: the MSVC++ port hasn't been tested in a loooong time
cannam@86 8538 # When not using gcc, we currently assume that we are using
cannam@86 8539 # Microsoft Visual C++.
cannam@86 8540 if test "$GCC" != yes; then
cannam@86 8541 with_gnu_ld=no
cannam@86 8542 fi
cannam@86 8543 ;;
cannam@86 8544 interix*)
cannam@86 8545 # we just hope/assume this is gcc and not c89 (= MSVC++)
cannam@86 8546 with_gnu_ld=yes
cannam@86 8547 ;;
cannam@86 8548 openbsd*)
cannam@86 8549 with_gnu_ld=no
cannam@86 8550 ;;
cannam@86 8551 esac
cannam@86 8552
cannam@86 8553 ld_shlibs=yes
cannam@86 8554
cannam@86 8555 # On some targets, GNU ld is compatible enough with the native linker
cannam@86 8556 # that we're better off using the native interface for both.
cannam@86 8557 lt_use_gnu_ld_interface=no
cannam@86 8558 if test "$with_gnu_ld" = yes; then
cannam@86 8559 case $host_os in
cannam@86 8560 aix*)
cannam@86 8561 # The AIX port of GNU ld has always aspired to compatibility
cannam@86 8562 # with the native linker. However, as the warning in the GNU ld
cannam@86 8563 # block says, versions before 2.19.5* couldn't really create working
cannam@86 8564 # shared libraries, regardless of the interface used.
cannam@86 8565 case `$LD -v 2>&1` in
cannam@86 8566 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
cannam@86 8567 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
cannam@86 8568 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
cannam@86 8569 *)
cannam@86 8570 lt_use_gnu_ld_interface=yes
cannam@86 8571 ;;
cannam@86 8572 esac
cannam@86 8573 ;;
cannam@86 8574 *)
cannam@86 8575 lt_use_gnu_ld_interface=yes
cannam@86 8576 ;;
cannam@86 8577 esac
cannam@86 8578 fi
cannam@86 8579
cannam@86 8580 if test "$lt_use_gnu_ld_interface" = yes; then
cannam@86 8581 # If archive_cmds runs LD, not CC, wlarc should be empty
cannam@86 8582 wlarc='${wl}'
cannam@86 8583
cannam@86 8584 # Set some defaults for GNU ld with shared library support. These
cannam@86 8585 # are reset later if shared libraries are not supported. Putting them
cannam@86 8586 # here allows them to be overridden if necessary.
cannam@86 8587 runpath_var=LD_RUN_PATH
cannam@86 8588 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cannam@86 8589 export_dynamic_flag_spec='${wl}--export-dynamic'
cannam@86 8590 # ancient GNU ld didn't support --whole-archive et. al.
cannam@86 8591 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
cannam@86 8592 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
cannam@86 8593 else
cannam@86 8594 whole_archive_flag_spec=
cannam@86 8595 fi
cannam@86 8596 supports_anon_versioning=no
cannam@86 8597 case `$LD -v 2>&1` in
cannam@86 8598 *GNU\ gold*) supports_anon_versioning=yes ;;
cannam@86 8599 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
cannam@86 8600 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
cannam@86 8601 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
cannam@86 8602 *\ 2.11.*) ;; # other 2.11 versions
cannam@86 8603 *) supports_anon_versioning=yes ;;
cannam@86 8604 esac
cannam@86 8605
cannam@86 8606 # See if GNU ld supports shared libraries.
cannam@86 8607 case $host_os in
cannam@86 8608 aix[3-9]*)
cannam@86 8609 # On AIX/PPC, the GNU linker is very broken
cannam@86 8610 if test "$host_cpu" != ia64; then
cannam@86 8611 ld_shlibs=no
cannam@86 8612 cat <<_LT_EOF 1>&2
cannam@86 8613
cannam@86 8614 *** Warning: the GNU linker, at least up to release 2.19, is reported
cannam@86 8615 *** to be unable to reliably create shared libraries on AIX.
cannam@86 8616 *** Therefore, libtool is disabling shared libraries support. If you
cannam@86 8617 *** really care for shared libraries, you may want to install binutils
cannam@86 8618 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
cannam@86 8619 *** You will then need to restart the configuration process.
cannam@86 8620
cannam@86 8621 _LT_EOF
cannam@86 8622 fi
cannam@86 8623 ;;
cannam@86 8624
cannam@86 8625 amigaos*)
cannam@86 8626 case $host_cpu in
cannam@86 8627 powerpc)
cannam@86 8628 # see comment about AmigaOS4 .so support
cannam@86 8629 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@86 8630 archive_expsym_cmds=''
cannam@86 8631 ;;
cannam@86 8632 m68k)
cannam@86 8633 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)'
cannam@86 8634 hardcode_libdir_flag_spec='-L$libdir'
cannam@86 8635 hardcode_minus_L=yes
cannam@86 8636 ;;
cannam@86 8637 esac
cannam@86 8638 ;;
cannam@86 8639
cannam@86 8640 beos*)
cannam@86 8641 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cannam@86 8642 allow_undefined_flag=unsupported
cannam@86 8643 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
cannam@86 8644 # support --undefined. This deserves some investigation. FIXME
cannam@86 8645 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@86 8646 else
cannam@86 8647 ld_shlibs=no
cannam@86 8648 fi
cannam@86 8649 ;;
cannam@86 8650
cannam@86 8651 cygwin* | mingw* | pw32* | cegcc*)
cannam@86 8652 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
cannam@86 8653 # as there is no search path for DLLs.
cannam@86 8654 hardcode_libdir_flag_spec='-L$libdir'
cannam@86 8655 export_dynamic_flag_spec='${wl}--export-all-symbols'
cannam@86 8656 allow_undefined_flag=unsupported
cannam@86 8657 always_export_symbols=no
cannam@86 8658 enable_shared_with_static_runtimes=yes
cannam@86 8659 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
cannam@86 8660 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
cannam@86 8661
cannam@86 8662 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
cannam@86 8663 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
cannam@86 8664 # If the export-symbols file already is a .def file (1st line
cannam@86 8665 # is EXPORTS), use it as is; otherwise, prepend...
cannam@86 8666 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
cannam@86 8667 cp $export_symbols $output_objdir/$soname.def;
cannam@86 8668 else
cannam@86 8669 echo EXPORTS > $output_objdir/$soname.def;
cannam@86 8670 cat $export_symbols >> $output_objdir/$soname.def;
cannam@86 8671 fi~
cannam@86 8672 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
cannam@86 8673 else
cannam@86 8674 ld_shlibs=no
cannam@86 8675 fi
cannam@86 8676 ;;
cannam@86 8677
cannam@86 8678 haiku*)
cannam@86 8679 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@86 8680 link_all_deplibs=yes
cannam@86 8681 ;;
cannam@86 8682
cannam@86 8683 interix[3-9]*)
cannam@86 8684 hardcode_direct=no
cannam@86 8685 hardcode_shlibpath_var=no
cannam@86 8686 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
cannam@86 8687 export_dynamic_flag_spec='${wl}-E'
cannam@86 8688 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
cannam@86 8689 # Instead, shared libraries are loaded at an image base (0x10000000 by
cannam@86 8690 # default) and relocated if they conflict, which is a slow very memory
cannam@86 8691 # consuming and fragmenting process. To avoid this, we pick a random,
cannam@86 8692 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
cannam@86 8693 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
cannam@86 8694 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
cannam@86 8695 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'
cannam@86 8696 ;;
cannam@86 8697
cannam@86 8698 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cannam@86 8699 tmp_diet=no
cannam@86 8700 if test "$host_os" = linux-dietlibc; then
cannam@86 8701 case $cc_basename in
cannam@86 8702 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
cannam@86 8703 esac
cannam@86 8704 fi
cannam@86 8705 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
cannam@86 8706 && test "$tmp_diet" = no
cannam@86 8707 then
cannam@86 8708 tmp_addflag=' $pic_flag'
cannam@86 8709 tmp_sharedflag='-shared'
cannam@86 8710 case $cc_basename,$host_cpu in
cannam@86 8711 pgcc*) # Portland Group C compiler
cannam@86 8712 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cannam@86 8713 tmp_addflag=' $pic_flag'
cannam@86 8714 ;;
cannam@86 8715 pgf77* | pgf90* | pgf95* | pgfortran*)
cannam@86 8716 # Portland Group f77 and f90 compilers
cannam@86 8717 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cannam@86 8718 tmp_addflag=' $pic_flag -Mnomain' ;;
cannam@86 8719 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
cannam@86 8720 tmp_addflag=' -i_dynamic' ;;
cannam@86 8721 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
cannam@86 8722 tmp_addflag=' -i_dynamic -nofor_main' ;;
cannam@86 8723 ifc* | ifort*) # Intel Fortran compiler
cannam@86 8724 tmp_addflag=' -nofor_main' ;;
cannam@86 8725 lf95*) # Lahey Fortran 8.1
cannam@86 8726 whole_archive_flag_spec=
cannam@86 8727 tmp_sharedflag='--shared' ;;
cannam@86 8728 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cannam@86 8729 tmp_sharedflag='-qmkshrobj'
cannam@86 8730 tmp_addflag= ;;
cannam@86 8731 nvcc*) # Cuda Compiler Driver 2.2
cannam@86 8732 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cannam@86 8733 compiler_needs_object=yes
cannam@86 8734 ;;
cannam@86 8735 esac
cannam@86 8736 case `$CC -V 2>&1 | sed 5q` in
cannam@86 8737 *Sun\ C*) # Sun C 5.9
cannam@86 8738 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cannam@86 8739 compiler_needs_object=yes
cannam@86 8740 tmp_sharedflag='-G' ;;
cannam@86 8741 *Sun\ F*) # Sun Fortran 8.3
cannam@86 8742 tmp_sharedflag='-G' ;;
cannam@86 8743 esac
cannam@86 8744 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@86 8745
cannam@86 8746 if test "x$supports_anon_versioning" = xyes; then
cannam@86 8747 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
cannam@86 8748 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
cannam@86 8749 echo "local: *; };" >> $output_objdir/$libname.ver~
cannam@86 8750 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
cannam@86 8751 fi
cannam@86 8752
cannam@86 8753 case $cc_basename in
cannam@86 8754 xlf* | bgf* | bgxlf* | mpixlf*)
cannam@86 8755 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
cannam@86 8756 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cannam@86 8757 hardcode_libdir_flag_spec=
cannam@86 8758 hardcode_libdir_flag_spec_ld='-rpath $libdir'
cannam@86 8759 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cannam@86 8760 if test "x$supports_anon_versioning" = xyes; then
cannam@86 8761 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
cannam@86 8762 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
cannam@86 8763 echo "local: *; };" >> $output_objdir/$libname.ver~
cannam@86 8764 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cannam@86 8765 fi
cannam@86 8766 ;;
cannam@86 8767 esac
cannam@86 8768 else
cannam@86 8769 ld_shlibs=no
cannam@86 8770 fi
cannam@86 8771 ;;
cannam@86 8772
cannam@86 8773 netbsd*)
cannam@86 8774 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
cannam@86 8775 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
cannam@86 8776 wlarc=
cannam@86 8777 else
cannam@86 8778 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@86 8779 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cannam@86 8780 fi
cannam@86 8781 ;;
cannam@86 8782
cannam@86 8783 solaris*)
cannam@86 8784 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
cannam@86 8785 ld_shlibs=no
cannam@86 8786 cat <<_LT_EOF 1>&2
cannam@86 8787
cannam@86 8788 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
cannam@86 8789 *** create shared libraries on Solaris systems. Therefore, libtool
cannam@86 8790 *** is disabling shared libraries support. We urge you to upgrade GNU
cannam@86 8791 *** binutils to release 2.9.1 or newer. Another option is to modify
cannam@86 8792 *** your PATH or compiler configuration so that the native linker is
cannam@86 8793 *** used, and then restart.
cannam@86 8794
cannam@86 8795 _LT_EOF
cannam@86 8796 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cannam@86 8797 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@86 8798 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cannam@86 8799 else
cannam@86 8800 ld_shlibs=no
cannam@86 8801 fi
cannam@86 8802 ;;
cannam@86 8803
cannam@86 8804 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
cannam@86 8805 case `$LD -v 2>&1` in
cannam@86 8806 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
cannam@86 8807 ld_shlibs=no
cannam@86 8808 cat <<_LT_EOF 1>&2
cannam@86 8809
cannam@86 8810 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
cannam@86 8811 *** reliably create shared libraries on SCO systems. Therefore, libtool
cannam@86 8812 *** is disabling shared libraries support. We urge you to upgrade GNU
cannam@86 8813 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
cannam@86 8814 *** your PATH or compiler configuration so that the native linker is
cannam@86 8815 *** used, and then restart.
cannam@86 8816
cannam@86 8817 _LT_EOF
cannam@86 8818 ;;
cannam@86 8819 *)
cannam@86 8820 # For security reasons, it is highly recommended that you always
cannam@86 8821 # use absolute paths for naming shared libraries, and exclude the
cannam@86 8822 # DT_RUNPATH tag from executables and libraries. But doing so
cannam@86 8823 # requires that you compile everything twice, which is a pain.
cannam@86 8824 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cannam@86 8825 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cannam@86 8826 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@86 8827 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cannam@86 8828 else
cannam@86 8829 ld_shlibs=no
cannam@86 8830 fi
cannam@86 8831 ;;
cannam@86 8832 esac
cannam@86 8833 ;;
cannam@86 8834
cannam@86 8835 sunos4*)
cannam@86 8836 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
cannam@86 8837 wlarc=
cannam@86 8838 hardcode_direct=yes
cannam@86 8839 hardcode_shlibpath_var=no
cannam@86 8840 ;;
cannam@86 8841
cannam@86 8842 *)
cannam@86 8843 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cannam@86 8844 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@86 8845 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cannam@86 8846 else
cannam@86 8847 ld_shlibs=no
cannam@86 8848 fi
cannam@86 8849 ;;
cannam@86 8850 esac
cannam@86 8851
cannam@86 8852 if test "$ld_shlibs" = no; then
cannam@86 8853 runpath_var=
cannam@86 8854 hardcode_libdir_flag_spec=
cannam@86 8855 export_dynamic_flag_spec=
cannam@86 8856 whole_archive_flag_spec=
cannam@86 8857 fi
cannam@86 8858 else
cannam@86 8859 # PORTME fill in a description of your system's linker (not GNU ld)
cannam@86 8860 case $host_os in
cannam@86 8861 aix3*)
cannam@86 8862 allow_undefined_flag=unsupported
cannam@86 8863 always_export_symbols=yes
cannam@86 8864 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'
cannam@86 8865 # Note: this linker hardcodes the directories in LIBPATH if there
cannam@86 8866 # are no directories specified by -L.
cannam@86 8867 hardcode_minus_L=yes
cannam@86 8868 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
cannam@86 8869 # Neither direct hardcoding nor static linking is supported with a
cannam@86 8870 # broken collect2.
cannam@86 8871 hardcode_direct=unsupported
cannam@86 8872 fi
cannam@86 8873 ;;
cannam@86 8874
cannam@86 8875 aix[4-9]*)
cannam@86 8876 if test "$host_cpu" = ia64; then
cannam@86 8877 # On IA64, the linker does run time linking by default, so we don't
cannam@86 8878 # have to do anything special.
cannam@86 8879 aix_use_runtimelinking=no
cannam@86 8880 exp_sym_flag='-Bexport'
cannam@86 8881 no_entry_flag=""
cannam@86 8882 else
cannam@86 8883 # If we're using GNU nm, then we don't want the "-C" option.
cannam@86 8884 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cannam@86 8885 # Also, AIX nm treats weak defined symbols like other global
cannam@86 8886 # defined symbols, whereas GNU nm marks them as "W".
cannam@86 8887 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cannam@86 8888 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
cannam@86 8889 else
cannam@86 8890 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'
cannam@86 8891 fi
cannam@86 8892 aix_use_runtimelinking=no
cannam@86 8893
cannam@86 8894 # Test if we are trying to use run time linking or normal
cannam@86 8895 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
cannam@86 8896 # need to do runtime linking.
cannam@86 8897 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
cannam@86 8898 for ld_flag in $LDFLAGS; do
cannam@86 8899 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
cannam@86 8900 aix_use_runtimelinking=yes
cannam@86 8901 break
cannam@86 8902 fi
cannam@86 8903 done
cannam@86 8904 ;;
cannam@86 8905 esac
cannam@86 8906
cannam@86 8907 exp_sym_flag='-bexport'
cannam@86 8908 no_entry_flag='-bnoentry'
cannam@86 8909 fi
cannam@86 8910
cannam@86 8911 # When large executables or shared objects are built, AIX ld can
cannam@86 8912 # have problems creating the table of contents. If linking a library
cannam@86 8913 # or program results in "error TOC overflow" add -mminimal-toc to
cannam@86 8914 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
cannam@86 8915 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
cannam@86 8916
cannam@86 8917 archive_cmds=''
cannam@86 8918 hardcode_direct=yes
cannam@86 8919 hardcode_direct_absolute=yes
cannam@86 8920 hardcode_libdir_separator=':'
cannam@86 8921 link_all_deplibs=yes
cannam@86 8922 file_list_spec='${wl}-f,'
cannam@86 8923
cannam@86 8924 if test "$GCC" = yes; then
cannam@86 8925 case $host_os in aix4.[012]|aix4.[012].*)
cannam@86 8926 # We only want to do this on AIX 4.2 and lower, the check
cannam@86 8927 # below for broken collect2 doesn't work under 4.3+
cannam@86 8928 collect2name=`${CC} -print-prog-name=collect2`
cannam@86 8929 if test -f "$collect2name" &&
cannam@86 8930 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
cannam@86 8931 then
cannam@86 8932 # We have reworked collect2
cannam@86 8933 :
cannam@86 8934 else
cannam@86 8935 # We have old collect2
cannam@86 8936 hardcode_direct=unsupported
cannam@86 8937 # It fails to find uninstalled libraries when the uninstalled
cannam@86 8938 # path is not listed in the libpath. Setting hardcode_minus_L
cannam@86 8939 # to unsupported forces relinking
cannam@86 8940 hardcode_minus_L=yes
cannam@86 8941 hardcode_libdir_flag_spec='-L$libdir'
cannam@86 8942 hardcode_libdir_separator=
cannam@86 8943 fi
cannam@86 8944 ;;
cannam@86 8945 esac
cannam@86 8946 shared_flag='-shared'
cannam@86 8947 if test "$aix_use_runtimelinking" = yes; then
cannam@86 8948 shared_flag="$shared_flag "'${wl}-G'
cannam@86 8949 fi
cannam@86 8950 else
cannam@86 8951 # not using gcc
cannam@86 8952 if test "$host_cpu" = ia64; then
cannam@86 8953 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
cannam@86 8954 # chokes on -Wl,-G. The following line is correct:
cannam@86 8955 shared_flag='-G'
cannam@86 8956 else
cannam@86 8957 if test "$aix_use_runtimelinking" = yes; then
cannam@86 8958 shared_flag='${wl}-G'
cannam@86 8959 else
cannam@86 8960 shared_flag='${wl}-bM:SRE'
cannam@86 8961 fi
cannam@86 8962 fi
cannam@86 8963 fi
cannam@86 8964
cannam@86 8965 export_dynamic_flag_spec='${wl}-bexpall'
cannam@86 8966 # It seems that -bexpall does not export symbols beginning with
cannam@86 8967 # underscore (_), so it is better to generate a list of symbols to export.
cannam@86 8968 always_export_symbols=yes
cannam@86 8969 if test "$aix_use_runtimelinking" = yes; then
cannam@86 8970 # Warning - without using the other runtime loading flags (-brtl),
cannam@86 8971 # -berok will link without error, but may produce a broken library.
cannam@86 8972 allow_undefined_flag='-berok'
cannam@86 8973 # Determine the default libpath from the value encoded in an
cannam@86 8974 # empty executable.
cannam@86 8975 if test "${lt_cv_aix_libpath+set}" = set; then
cannam@86 8976 aix_libpath=$lt_cv_aix_libpath
cannam@86 8977 else
cannam@86 8978 if ${lt_cv_aix_libpath_+:} false; then :
cannam@86 8979 $as_echo_n "(cached) " >&6
cannam@86 8980 else
cannam@86 8981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 8982 /* end confdefs.h. */
cannam@86 8983
cannam@86 8984 int
cannam@86 8985 main ()
cannam@86 8986 {
cannam@86 8987
cannam@86 8988 ;
cannam@86 8989 return 0;
cannam@86 8990 }
cannam@86 8991 _ACEOF
cannam@86 8992 if ac_fn_c_try_link "$LINENO"; then :
cannam@86 8993
cannam@86 8994 lt_aix_libpath_sed='
cannam@86 8995 /Import File Strings/,/^$/ {
cannam@86 8996 /^0/ {
cannam@86 8997 s/^0 *\([^ ]*\) *$/\1/
cannam@86 8998 p
cannam@86 8999 }
cannam@86 9000 }'
cannam@86 9001 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@86 9002 # Check for a 64-bit object if we didn't find anything.
cannam@86 9003 if test -z "$lt_cv_aix_libpath_"; then
cannam@86 9004 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@86 9005 fi
cannam@86 9006 fi
cannam@86 9007 rm -f core conftest.err conftest.$ac_objext \
cannam@86 9008 conftest$ac_exeext conftest.$ac_ext
cannam@86 9009 if test -z "$lt_cv_aix_libpath_"; then
cannam@86 9010 lt_cv_aix_libpath_="/usr/lib:/lib"
cannam@86 9011 fi
cannam@86 9012
cannam@86 9013 fi
cannam@86 9014
cannam@86 9015 aix_libpath=$lt_cv_aix_libpath_
cannam@86 9016 fi
cannam@86 9017
cannam@86 9018 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cannam@86 9019 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
cannam@86 9020 else
cannam@86 9021 if test "$host_cpu" = ia64; then
cannam@86 9022 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
cannam@86 9023 allow_undefined_flag="-z nodefs"
cannam@86 9024 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"
cannam@86 9025 else
cannam@86 9026 # Determine the default libpath from the value encoded in an
cannam@86 9027 # empty executable.
cannam@86 9028 if test "${lt_cv_aix_libpath+set}" = set; then
cannam@86 9029 aix_libpath=$lt_cv_aix_libpath
cannam@86 9030 else
cannam@86 9031 if ${lt_cv_aix_libpath_+:} false; then :
cannam@86 9032 $as_echo_n "(cached) " >&6
cannam@86 9033 else
cannam@86 9034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 9035 /* end confdefs.h. */
cannam@86 9036
cannam@86 9037 int
cannam@86 9038 main ()
cannam@86 9039 {
cannam@86 9040
cannam@86 9041 ;
cannam@86 9042 return 0;
cannam@86 9043 }
cannam@86 9044 _ACEOF
cannam@86 9045 if ac_fn_c_try_link "$LINENO"; then :
cannam@86 9046
cannam@86 9047 lt_aix_libpath_sed='
cannam@86 9048 /Import File Strings/,/^$/ {
cannam@86 9049 /^0/ {
cannam@86 9050 s/^0 *\([^ ]*\) *$/\1/
cannam@86 9051 p
cannam@86 9052 }
cannam@86 9053 }'
cannam@86 9054 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@86 9055 # Check for a 64-bit object if we didn't find anything.
cannam@86 9056 if test -z "$lt_cv_aix_libpath_"; then
cannam@86 9057 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
cannam@86 9058 fi
cannam@86 9059 fi
cannam@86 9060 rm -f core conftest.err conftest.$ac_objext \
cannam@86 9061 conftest$ac_exeext conftest.$ac_ext
cannam@86 9062 if test -z "$lt_cv_aix_libpath_"; then
cannam@86 9063 lt_cv_aix_libpath_="/usr/lib:/lib"
cannam@86 9064 fi
cannam@86 9065
cannam@86 9066 fi
cannam@86 9067
cannam@86 9068 aix_libpath=$lt_cv_aix_libpath_
cannam@86 9069 fi
cannam@86 9070
cannam@86 9071 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cannam@86 9072 # Warning - without using the other run time loading flags,
cannam@86 9073 # -berok will link without error, but may produce a broken library.
cannam@86 9074 no_undefined_flag=' ${wl}-bernotok'
cannam@86 9075 allow_undefined_flag=' ${wl}-berok'
cannam@86 9076 if test "$with_gnu_ld" = yes; then
cannam@86 9077 # We only use this code for GNU lds that support --whole-archive.
cannam@86 9078 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
cannam@86 9079 else
cannam@86 9080 # Exported symbols can be pulled into shared objects from archives
cannam@86 9081 whole_archive_flag_spec='$convenience'
cannam@86 9082 fi
cannam@86 9083 archive_cmds_need_lc=yes
cannam@86 9084 # This is similar to how AIX traditionally builds its shared libraries.
cannam@86 9085 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'
cannam@86 9086 fi
cannam@86 9087 fi
cannam@86 9088 ;;
cannam@86 9089
cannam@86 9090 amigaos*)
cannam@86 9091 case $host_cpu in
cannam@86 9092 powerpc)
cannam@86 9093 # see comment about AmigaOS4 .so support
cannam@86 9094 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@86 9095 archive_expsym_cmds=''
cannam@86 9096 ;;
cannam@86 9097 m68k)
cannam@86 9098 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)'
cannam@86 9099 hardcode_libdir_flag_spec='-L$libdir'
cannam@86 9100 hardcode_minus_L=yes
cannam@86 9101 ;;
cannam@86 9102 esac
cannam@86 9103 ;;
cannam@86 9104
cannam@86 9105 bsdi[45]*)
cannam@86 9106 export_dynamic_flag_spec=-rdynamic
cannam@86 9107 ;;
cannam@86 9108
cannam@86 9109 cygwin* | mingw* | pw32* | cegcc*)
cannam@86 9110 # When not using gcc, we currently assume that we are using
cannam@86 9111 # Microsoft Visual C++.
cannam@86 9112 # hardcode_libdir_flag_spec is actually meaningless, as there is
cannam@86 9113 # no search path for DLLs.
cannam@86 9114 case $cc_basename in
cannam@86 9115 cl*)
cannam@86 9116 # Native MSVC
cannam@86 9117 hardcode_libdir_flag_spec=' '
cannam@86 9118 allow_undefined_flag=unsupported
cannam@86 9119 always_export_symbols=yes
cannam@86 9120 file_list_spec='@'
cannam@86 9121 # Tell ltmain to make .lib files, not .a files.
cannam@86 9122 libext=lib
cannam@86 9123 # Tell ltmain to make .dll files, not .so files.
cannam@86 9124 shrext_cmds=".dll"
cannam@86 9125 # FIXME: Setting linknames here is a bad hack.
cannam@86 9126 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
cannam@86 9127 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
cannam@86 9128 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
cannam@86 9129 else
cannam@86 9130 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
cannam@86 9131 fi~
cannam@86 9132 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
cannam@86 9133 linknames='
cannam@86 9134 # The linker will not automatically build a static lib if we build a DLL.
cannam@86 9135 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
cannam@86 9136 enable_shared_with_static_runtimes=yes
cannam@86 9137 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
cannam@86 9138 # Don't use ranlib
cannam@86 9139 old_postinstall_cmds='chmod 644 $oldlib'
cannam@86 9140 postlink_cmds='lt_outputfile="@OUTPUT@"~
cannam@86 9141 lt_tool_outputfile="@TOOL_OUTPUT@"~
cannam@86 9142 case $lt_outputfile in
cannam@86 9143 *.exe|*.EXE) ;;
cannam@86 9144 *)
cannam@86 9145 lt_outputfile="$lt_outputfile.exe"
cannam@86 9146 lt_tool_outputfile="$lt_tool_outputfile.exe"
cannam@86 9147 ;;
cannam@86 9148 esac~
cannam@86 9149 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
cannam@86 9150 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
cannam@86 9151 $RM "$lt_outputfile.manifest";
cannam@86 9152 fi'
cannam@86 9153 ;;
cannam@86 9154 *)
cannam@86 9155 # Assume MSVC wrapper
cannam@86 9156 hardcode_libdir_flag_spec=' '
cannam@86 9157 allow_undefined_flag=unsupported
cannam@86 9158 # Tell ltmain to make .lib files, not .a files.
cannam@86 9159 libext=lib
cannam@86 9160 # Tell ltmain to make .dll files, not .so files.
cannam@86 9161 shrext_cmds=".dll"
cannam@86 9162 # FIXME: Setting linknames here is a bad hack.
cannam@86 9163 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
cannam@86 9164 # The linker will automatically build a .lib file if we build a DLL.
cannam@86 9165 old_archive_from_new_cmds='true'
cannam@86 9166 # FIXME: Should let the user specify the lib program.
cannam@86 9167 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
cannam@86 9168 enable_shared_with_static_runtimes=yes
cannam@86 9169 ;;
cannam@86 9170 esac
cannam@86 9171 ;;
cannam@86 9172
cannam@86 9173 darwin* | rhapsody*)
cannam@86 9174
cannam@86 9175
cannam@86 9176 archive_cmds_need_lc=no
cannam@86 9177 hardcode_direct=no
cannam@86 9178 hardcode_automatic=yes
cannam@86 9179 hardcode_shlibpath_var=unsupported
cannam@86 9180 if test "$lt_cv_ld_force_load" = "yes"; then
cannam@86 9181 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
cannam@86 9182 else
cannam@86 9183 whole_archive_flag_spec=''
cannam@86 9184 fi
cannam@86 9185 link_all_deplibs=yes
cannam@86 9186 allow_undefined_flag="$_lt_dar_allow_undefined"
cannam@86 9187 case $cc_basename in
cannam@86 9188 ifort*) _lt_dar_can_shared=yes ;;
cannam@86 9189 *) _lt_dar_can_shared=$GCC ;;
cannam@86 9190 esac
cannam@86 9191 if test "$_lt_dar_can_shared" = "yes"; then
cannam@86 9192 output_verbose_link_cmd=func_echo_all
cannam@86 9193 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
cannam@86 9194 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
cannam@86 9195 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}"
cannam@86 9196 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}"
cannam@86 9197
cannam@86 9198 else
cannam@86 9199 ld_shlibs=no
cannam@86 9200 fi
cannam@86 9201
cannam@86 9202 ;;
cannam@86 9203
cannam@86 9204 dgux*)
cannam@86 9205 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@86 9206 hardcode_libdir_flag_spec='-L$libdir'
cannam@86 9207 hardcode_shlibpath_var=no
cannam@86 9208 ;;
cannam@86 9209
cannam@86 9210 freebsd1*)
cannam@86 9211 ld_shlibs=no
cannam@86 9212 ;;
cannam@86 9213
cannam@86 9214 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
cannam@86 9215 # support. Future versions do this automatically, but an explicit c++rt0.o
cannam@86 9216 # does not break anything, and helps significantly (at the cost of a little
cannam@86 9217 # extra space).
cannam@86 9218 freebsd2.2*)
cannam@86 9219 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
cannam@86 9220 hardcode_libdir_flag_spec='-R$libdir'
cannam@86 9221 hardcode_direct=yes
cannam@86 9222 hardcode_shlibpath_var=no
cannam@86 9223 ;;
cannam@86 9224
cannam@86 9225 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cannam@86 9226 freebsd2*)
cannam@86 9227 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
cannam@86 9228 hardcode_direct=yes
cannam@86 9229 hardcode_minus_L=yes
cannam@86 9230 hardcode_shlibpath_var=no
cannam@86 9231 ;;
cannam@86 9232
cannam@86 9233 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
cannam@86 9234 freebsd* | dragonfly*)
cannam@86 9235 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cannam@86 9236 hardcode_libdir_flag_spec='-R$libdir'
cannam@86 9237 hardcode_direct=yes
cannam@86 9238 hardcode_shlibpath_var=no
cannam@86 9239 ;;
cannam@86 9240
cannam@86 9241 hpux9*)
cannam@86 9242 if test "$GCC" = yes; then
cannam@86 9243 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
cannam@86 9244 else
cannam@86 9245 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'
cannam@86 9246 fi
cannam@86 9247 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cannam@86 9248 hardcode_libdir_separator=:
cannam@86 9249 hardcode_direct=yes
cannam@86 9250
cannam@86 9251 # hardcode_minus_L: Not really in the search PATH,
cannam@86 9252 # but as the default location of the library.
cannam@86 9253 hardcode_minus_L=yes
cannam@86 9254 export_dynamic_flag_spec='${wl}-E'
cannam@86 9255 ;;
cannam@86 9256
cannam@86 9257 hpux10*)
cannam@86 9258 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cannam@86 9259 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cannam@86 9260 else
cannam@86 9261 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
cannam@86 9262 fi
cannam@86 9263 if test "$with_gnu_ld" = no; then
cannam@86 9264 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cannam@86 9265 hardcode_libdir_flag_spec_ld='+b $libdir'
cannam@86 9266 hardcode_libdir_separator=:
cannam@86 9267 hardcode_direct=yes
cannam@86 9268 hardcode_direct_absolute=yes
cannam@86 9269 export_dynamic_flag_spec='${wl}-E'
cannam@86 9270 # hardcode_minus_L: Not really in the search PATH,
cannam@86 9271 # but as the default location of the library.
cannam@86 9272 hardcode_minus_L=yes
cannam@86 9273 fi
cannam@86 9274 ;;
cannam@86 9275
cannam@86 9276 hpux11*)
cannam@86 9277 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cannam@86 9278 case $host_cpu in
cannam@86 9279 hppa*64*)
cannam@86 9280 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@86 9281 ;;
cannam@86 9282 ia64*)
cannam@86 9283 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cannam@86 9284 ;;
cannam@86 9285 *)
cannam@86 9286 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cannam@86 9287 ;;
cannam@86 9288 esac
cannam@86 9289 else
cannam@86 9290 case $host_cpu in
cannam@86 9291 hppa*64*)
cannam@86 9292 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@86 9293 ;;
cannam@86 9294 ia64*)
cannam@86 9295 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cannam@86 9296 ;;
cannam@86 9297 *)
cannam@86 9298
cannam@86 9299 # Older versions of the 11.00 compiler do not understand -b yet
cannam@86 9300 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
cannam@86 9301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
cannam@86 9302 $as_echo_n "checking if $CC understands -b... " >&6; }
cannam@86 9303 if ${lt_cv_prog_compiler__b+:} false; then :
cannam@86 9304 $as_echo_n "(cached) " >&6
cannam@86 9305 else
cannam@86 9306 lt_cv_prog_compiler__b=no
cannam@86 9307 save_LDFLAGS="$LDFLAGS"
cannam@86 9308 LDFLAGS="$LDFLAGS -b"
cannam@86 9309 echo "$lt_simple_link_test_code" > conftest.$ac_ext
cannam@86 9310 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
cannam@86 9311 # The linker can only warn and ignore the option if not recognized
cannam@86 9312 # So say no if there are warnings
cannam@86 9313 if test -s conftest.err; then
cannam@86 9314 # Append any errors to the config.log.
cannam@86 9315 cat conftest.err 1>&5
cannam@86 9316 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cannam@86 9317 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
cannam@86 9318 if diff conftest.exp conftest.er2 >/dev/null; then
cannam@86 9319 lt_cv_prog_compiler__b=yes
cannam@86 9320 fi
cannam@86 9321 else
cannam@86 9322 lt_cv_prog_compiler__b=yes
cannam@86 9323 fi
cannam@86 9324 fi
cannam@86 9325 $RM -r conftest*
cannam@86 9326 LDFLAGS="$save_LDFLAGS"
cannam@86 9327
cannam@86 9328 fi
cannam@86 9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
cannam@86 9330 $as_echo "$lt_cv_prog_compiler__b" >&6; }
cannam@86 9331
cannam@86 9332 if test x"$lt_cv_prog_compiler__b" = xyes; then
cannam@86 9333 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cannam@86 9334 else
cannam@86 9335 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
cannam@86 9336 fi
cannam@86 9337
cannam@86 9338 ;;
cannam@86 9339 esac
cannam@86 9340 fi
cannam@86 9341 if test "$with_gnu_ld" = no; then
cannam@86 9342 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cannam@86 9343 hardcode_libdir_separator=:
cannam@86 9344
cannam@86 9345 case $host_cpu in
cannam@86 9346 hppa*64*|ia64*)
cannam@86 9347 hardcode_direct=no
cannam@86 9348 hardcode_shlibpath_var=no
cannam@86 9349 ;;
cannam@86 9350 *)
cannam@86 9351 hardcode_direct=yes
cannam@86 9352 hardcode_direct_absolute=yes
cannam@86 9353 export_dynamic_flag_spec='${wl}-E'
cannam@86 9354
cannam@86 9355 # hardcode_minus_L: Not really in the search PATH,
cannam@86 9356 # but as the default location of the library.
cannam@86 9357 hardcode_minus_L=yes
cannam@86 9358 ;;
cannam@86 9359 esac
cannam@86 9360 fi
cannam@86 9361 ;;
cannam@86 9362
cannam@86 9363 irix5* | irix6* | nonstopux*)
cannam@86 9364 if test "$GCC" = yes; then
cannam@86 9365 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cannam@86 9366 # Try to use the -exported_symbol ld option, if it does not
cannam@86 9367 # work, assume that -exports_file does not work either and
cannam@86 9368 # implicitly export all symbols.
cannam@86 9369 # This should be the same for all languages, so no per-tag cache variable.
cannam@86 9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
cannam@86 9371 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
cannam@86 9372 if ${lt_cv_irix_exported_symbol+:} false; then :
cannam@86 9373 $as_echo_n "(cached) " >&6
cannam@86 9374 else
cannam@86 9375 save_LDFLAGS="$LDFLAGS"
cannam@86 9376 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cannam@86 9377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 9378 /* end confdefs.h. */
cannam@86 9379 int foo (void) { return 0; }
cannam@86 9380 _ACEOF
cannam@86 9381 if ac_fn_c_try_link "$LINENO"; then :
cannam@86 9382 lt_cv_irix_exported_symbol=yes
cannam@86 9383 else
cannam@86 9384 lt_cv_irix_exported_symbol=no
cannam@86 9385 fi
cannam@86 9386 rm -f core conftest.err conftest.$ac_objext \
cannam@86 9387 conftest$ac_exeext conftest.$ac_ext
cannam@86 9388 LDFLAGS="$save_LDFLAGS"
cannam@86 9389 fi
cannam@86 9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
cannam@86 9391 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
cannam@86 9392 if test "$lt_cv_irix_exported_symbol" = yes; then
cannam@86 9393 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
cannam@86 9394 fi
cannam@86 9395 else
cannam@86 9396 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cannam@86 9397 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
cannam@86 9398 fi
cannam@86 9399 archive_cmds_need_lc='no'
cannam@86 9400 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cannam@86 9401 hardcode_libdir_separator=:
cannam@86 9402 inherit_rpath=yes
cannam@86 9403 link_all_deplibs=yes
cannam@86 9404 ;;
cannam@86 9405
cannam@86 9406 netbsd*)
cannam@86 9407 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
cannam@86 9408 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
cannam@86 9409 else
cannam@86 9410 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
cannam@86 9411 fi
cannam@86 9412 hardcode_libdir_flag_spec='-R$libdir'
cannam@86 9413 hardcode_direct=yes
cannam@86 9414 hardcode_shlibpath_var=no
cannam@86 9415 ;;
cannam@86 9416
cannam@86 9417 newsos6)
cannam@86 9418 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@86 9419 hardcode_direct=yes
cannam@86 9420 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cannam@86 9421 hardcode_libdir_separator=:
cannam@86 9422 hardcode_shlibpath_var=no
cannam@86 9423 ;;
cannam@86 9424
cannam@86 9425 *nto* | *qnx*)
cannam@86 9426 ;;
cannam@86 9427
cannam@86 9428 openbsd*)
cannam@86 9429 if test -f /usr/libexec/ld.so; then
cannam@86 9430 hardcode_direct=yes
cannam@86 9431 hardcode_shlibpath_var=no
cannam@86 9432 hardcode_direct_absolute=yes
cannam@86 9433 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
cannam@86 9434 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cannam@86 9435 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
cannam@86 9436 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
cannam@86 9437 export_dynamic_flag_spec='${wl}-E'
cannam@86 9438 else
cannam@86 9439 case $host_os in
cannam@86 9440 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
cannam@86 9441 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
cannam@86 9442 hardcode_libdir_flag_spec='-R$libdir'
cannam@86 9443 ;;
cannam@86 9444 *)
cannam@86 9445 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cannam@86 9446 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
cannam@86 9447 ;;
cannam@86 9448 esac
cannam@86 9449 fi
cannam@86 9450 else
cannam@86 9451 ld_shlibs=no
cannam@86 9452 fi
cannam@86 9453 ;;
cannam@86 9454
cannam@86 9455 os2*)
cannam@86 9456 hardcode_libdir_flag_spec='-L$libdir'
cannam@86 9457 hardcode_minus_L=yes
cannam@86 9458 allow_undefined_flag=unsupported
cannam@86 9459 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'
cannam@86 9460 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
cannam@86 9461 ;;
cannam@86 9462
cannam@86 9463 osf3*)
cannam@86 9464 if test "$GCC" = yes; then
cannam@86 9465 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cannam@86 9466 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cannam@86 9467 else
cannam@86 9468 allow_undefined_flag=' -expect_unresolved \*'
cannam@86 9469 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cannam@86 9470 fi
cannam@86 9471 archive_cmds_need_lc='no'
cannam@86 9472 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cannam@86 9473 hardcode_libdir_separator=:
cannam@86 9474 ;;
cannam@86 9475
cannam@86 9476 osf4* | osf5*) # as osf3* with the addition of -msym flag
cannam@86 9477 if test "$GCC" = yes; then
cannam@86 9478 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cannam@86 9479 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cannam@86 9480 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cannam@86 9481 else
cannam@86 9482 allow_undefined_flag=' -expect_unresolved \*'
cannam@86 9483 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cannam@86 9484 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~
cannam@86 9485 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
cannam@86 9486
cannam@86 9487 # Both c and cxx compiler support -rpath directly
cannam@86 9488 hardcode_libdir_flag_spec='-rpath $libdir'
cannam@86 9489 fi
cannam@86 9490 archive_cmds_need_lc='no'
cannam@86 9491 hardcode_libdir_separator=:
cannam@86 9492 ;;
cannam@86 9493
cannam@86 9494 solaris*)
cannam@86 9495 no_undefined_flag=' -z defs'
cannam@86 9496 if test "$GCC" = yes; then
cannam@86 9497 wlarc='${wl}'
cannam@86 9498 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@86 9499 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cannam@86 9500 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
cannam@86 9501 else
cannam@86 9502 case `$CC -V 2>&1` in
cannam@86 9503 *"Compilers 5.0"*)
cannam@86 9504 wlarc=''
cannam@86 9505 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@86 9506 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cannam@86 9507 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
cannam@86 9508 ;;
cannam@86 9509 *)
cannam@86 9510 wlarc='${wl}'
cannam@86 9511 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@86 9512 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cannam@86 9513 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
cannam@86 9514 ;;
cannam@86 9515 esac
cannam@86 9516 fi
cannam@86 9517 hardcode_libdir_flag_spec='-R$libdir'
cannam@86 9518 hardcode_shlibpath_var=no
cannam@86 9519 case $host_os in
cannam@86 9520 solaris2.[0-5] | solaris2.[0-5].*) ;;
cannam@86 9521 *)
cannam@86 9522 # The compiler driver will combine and reorder linker options,
cannam@86 9523 # but understands `-z linker_flag'. GCC discards it without `$wl',
cannam@86 9524 # but is careful enough not to reorder.
cannam@86 9525 # Supported since Solaris 2.6 (maybe 2.5.1?)
cannam@86 9526 if test "$GCC" = yes; then
cannam@86 9527 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
cannam@86 9528 else
cannam@86 9529 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
cannam@86 9530 fi
cannam@86 9531 ;;
cannam@86 9532 esac
cannam@86 9533 link_all_deplibs=yes
cannam@86 9534 ;;
cannam@86 9535
cannam@86 9536 sunos4*)
cannam@86 9537 if test "x$host_vendor" = xsequent; then
cannam@86 9538 # Use $CC to link under sequent, because it throws in some extra .o
cannam@86 9539 # files that make .init and .fini sections work.
cannam@86 9540 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@86 9541 else
cannam@86 9542 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
cannam@86 9543 fi
cannam@86 9544 hardcode_libdir_flag_spec='-L$libdir'
cannam@86 9545 hardcode_direct=yes
cannam@86 9546 hardcode_minus_L=yes
cannam@86 9547 hardcode_shlibpath_var=no
cannam@86 9548 ;;
cannam@86 9549
cannam@86 9550 sysv4)
cannam@86 9551 case $host_vendor in
cannam@86 9552 sni)
cannam@86 9553 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@86 9554 hardcode_direct=yes # is this really true???
cannam@86 9555 ;;
cannam@86 9556 siemens)
cannam@86 9557 ## LD is ld it makes a PLAMLIB
cannam@86 9558 ## CC just makes a GrossModule.
cannam@86 9559 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
cannam@86 9560 reload_cmds='$CC -r -o $output$reload_objs'
cannam@86 9561 hardcode_direct=no
cannam@86 9562 ;;
cannam@86 9563 motorola)
cannam@86 9564 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@86 9565 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
cannam@86 9566 ;;
cannam@86 9567 esac
cannam@86 9568 runpath_var='LD_RUN_PATH'
cannam@86 9569 hardcode_shlibpath_var=no
cannam@86 9570 ;;
cannam@86 9571
cannam@86 9572 sysv4.3*)
cannam@86 9573 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@86 9574 hardcode_shlibpath_var=no
cannam@86 9575 export_dynamic_flag_spec='-Bexport'
cannam@86 9576 ;;
cannam@86 9577
cannam@86 9578 sysv4*MP*)
cannam@86 9579 if test -d /usr/nec; then
cannam@86 9580 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@86 9581 hardcode_shlibpath_var=no
cannam@86 9582 runpath_var=LD_RUN_PATH
cannam@86 9583 hardcode_runpath_var=yes
cannam@86 9584 ld_shlibs=yes
cannam@86 9585 fi
cannam@86 9586 ;;
cannam@86 9587
cannam@86 9588 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
cannam@86 9589 no_undefined_flag='${wl}-z,text'
cannam@86 9590 archive_cmds_need_lc=no
cannam@86 9591 hardcode_shlibpath_var=no
cannam@86 9592 runpath_var='LD_RUN_PATH'
cannam@86 9593
cannam@86 9594 if test "$GCC" = yes; then
cannam@86 9595 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@86 9596 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@86 9597 else
cannam@86 9598 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@86 9599 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@86 9600 fi
cannam@86 9601 ;;
cannam@86 9602
cannam@86 9603 sysv5* | sco3.2v5* | sco5v6*)
cannam@86 9604 # Note: We can NOT use -z defs as we might desire, because we do not
cannam@86 9605 # link with -lc, and that would cause any symbols used from libc to
cannam@86 9606 # always be unresolved, which means just about no library would
cannam@86 9607 # ever link correctly. If we're not using GNU ld we use -z text
cannam@86 9608 # though, which does catch some bad symbols but isn't as heavy-handed
cannam@86 9609 # as -z defs.
cannam@86 9610 no_undefined_flag='${wl}-z,text'
cannam@86 9611 allow_undefined_flag='${wl}-z,nodefs'
cannam@86 9612 archive_cmds_need_lc=no
cannam@86 9613 hardcode_shlibpath_var=no
cannam@86 9614 hardcode_libdir_flag_spec='${wl}-R,$libdir'
cannam@86 9615 hardcode_libdir_separator=':'
cannam@86 9616 link_all_deplibs=yes
cannam@86 9617 export_dynamic_flag_spec='${wl}-Bexport'
cannam@86 9618 runpath_var='LD_RUN_PATH'
cannam@86 9619
cannam@86 9620 if test "$GCC" = yes; then
cannam@86 9621 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@86 9622 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@86 9623 else
cannam@86 9624 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@86 9625 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@86 9626 fi
cannam@86 9627 ;;
cannam@86 9628
cannam@86 9629 uts4*)
cannam@86 9630 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@86 9631 hardcode_libdir_flag_spec='-L$libdir'
cannam@86 9632 hardcode_shlibpath_var=no
cannam@86 9633 ;;
cannam@86 9634
cannam@86 9635 *)
cannam@86 9636 ld_shlibs=no
cannam@86 9637 ;;
cannam@86 9638 esac
cannam@86 9639
cannam@86 9640 if test x$host_vendor = xsni; then
cannam@86 9641 case $host in
cannam@86 9642 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
cannam@86 9643 export_dynamic_flag_spec='${wl}-Blargedynsym'
cannam@86 9644 ;;
cannam@86 9645 esac
cannam@86 9646 fi
cannam@86 9647 fi
cannam@86 9648
cannam@86 9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
cannam@86 9650 $as_echo "$ld_shlibs" >&6; }
cannam@86 9651 test "$ld_shlibs" = no && can_build_shared=no
cannam@86 9652
cannam@86 9653 with_gnu_ld=$with_gnu_ld
cannam@86 9654
cannam@86 9655
cannam@86 9656
cannam@86 9657
cannam@86 9658
cannam@86 9659
cannam@86 9660
cannam@86 9661
cannam@86 9662
cannam@86 9663
cannam@86 9664
cannam@86 9665
cannam@86 9666
cannam@86 9667
cannam@86 9668
cannam@86 9669 #
cannam@86 9670 # Do we need to explicitly link libc?
cannam@86 9671 #
cannam@86 9672 case "x$archive_cmds_need_lc" in
cannam@86 9673 x|xyes)
cannam@86 9674 # Assume -lc should be added
cannam@86 9675 archive_cmds_need_lc=yes
cannam@86 9676
cannam@86 9677 if test "$enable_shared" = yes && test "$GCC" = yes; then
cannam@86 9678 case $archive_cmds in
cannam@86 9679 *'~'*)
cannam@86 9680 # FIXME: we may have to deal with multi-command sequences.
cannam@86 9681 ;;
cannam@86 9682 '$CC '*)
cannam@86 9683 # Test whether the compiler implicitly links with -lc since on some
cannam@86 9684 # systems, -lgcc has to come before -lc. If gcc already passes -lc
cannam@86 9685 # to ld, don't add -lc before -lgcc.
cannam@86 9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cannam@86 9687 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cannam@86 9688 if ${lt_cv_archive_cmds_need_lc+:} false; then :
cannam@86 9689 $as_echo_n "(cached) " >&6
cannam@86 9690 else
cannam@86 9691 $RM conftest*
cannam@86 9692 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@86 9693
cannam@86 9694 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cannam@86 9695 (eval $ac_compile) 2>&5
cannam@86 9696 ac_status=$?
cannam@86 9697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 9698 test $ac_status = 0; } 2>conftest.err; then
cannam@86 9699 soname=conftest
cannam@86 9700 lib=conftest
cannam@86 9701 libobjs=conftest.$ac_objext
cannam@86 9702 deplibs=
cannam@86 9703 wl=$lt_prog_compiler_wl
cannam@86 9704 pic_flag=$lt_prog_compiler_pic
cannam@86 9705 compiler_flags=-v
cannam@86 9706 linker_flags=-v
cannam@86 9707 verstring=
cannam@86 9708 output_objdir=.
cannam@86 9709 libname=conftest
cannam@86 9710 lt_save_allow_undefined_flag=$allow_undefined_flag
cannam@86 9711 allow_undefined_flag=
cannam@86 9712 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
cannam@86 9713 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
cannam@86 9714 ac_status=$?
cannam@86 9715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 9716 test $ac_status = 0; }
cannam@86 9717 then
cannam@86 9718 lt_cv_archive_cmds_need_lc=no
cannam@86 9719 else
cannam@86 9720 lt_cv_archive_cmds_need_lc=yes
cannam@86 9721 fi
cannam@86 9722 allow_undefined_flag=$lt_save_allow_undefined_flag
cannam@86 9723 else
cannam@86 9724 cat conftest.err 1>&5
cannam@86 9725 fi
cannam@86 9726 $RM conftest*
cannam@86 9727
cannam@86 9728 fi
cannam@86 9729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
cannam@86 9730 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
cannam@86 9731 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cannam@86 9732 ;;
cannam@86 9733 esac
cannam@86 9734 fi
cannam@86 9735 ;;
cannam@86 9736 esac
cannam@86 9737
cannam@86 9738
cannam@86 9739
cannam@86 9740
cannam@86 9741
cannam@86 9742
cannam@86 9743
cannam@86 9744
cannam@86 9745
cannam@86 9746
cannam@86 9747
cannam@86 9748
cannam@86 9749
cannam@86 9750
cannam@86 9751
cannam@86 9752
cannam@86 9753
cannam@86 9754
cannam@86 9755
cannam@86 9756
cannam@86 9757
cannam@86 9758
cannam@86 9759
cannam@86 9760
cannam@86 9761
cannam@86 9762
cannam@86 9763
cannam@86 9764
cannam@86 9765
cannam@86 9766
cannam@86 9767
cannam@86 9768
cannam@86 9769
cannam@86 9770
cannam@86 9771
cannam@86 9772
cannam@86 9773
cannam@86 9774
cannam@86 9775
cannam@86 9776
cannam@86 9777
cannam@86 9778
cannam@86 9779
cannam@86 9780
cannam@86 9781
cannam@86 9782
cannam@86 9783
cannam@86 9784
cannam@86 9785
cannam@86 9786
cannam@86 9787
cannam@86 9788
cannam@86 9789
cannam@86 9790
cannam@86 9791
cannam@86 9792
cannam@86 9793
cannam@86 9794
cannam@86 9795
cannam@86 9796
cannam@86 9797
cannam@86 9798
cannam@86 9799
cannam@86 9800
cannam@86 9801
cannam@86 9802
cannam@86 9803
cannam@86 9804
cannam@86 9805
cannam@86 9806
cannam@86 9807
cannam@86 9808
cannam@86 9809
cannam@86 9810
cannam@86 9811
cannam@86 9812
cannam@86 9813
cannam@86 9814
cannam@86 9815
cannam@86 9816
cannam@86 9817
cannam@86 9818
cannam@86 9819
cannam@86 9820
cannam@86 9821
cannam@86 9822
cannam@86 9823
cannam@86 9824
cannam@86 9825
cannam@86 9826
cannam@86 9827
cannam@86 9828
cannam@86 9829
cannam@86 9830
cannam@86 9831
cannam@86 9832
cannam@86 9833
cannam@86 9834
cannam@86 9835
cannam@86 9836
cannam@86 9837
cannam@86 9838
cannam@86 9839
cannam@86 9840
cannam@86 9841
cannam@86 9842
cannam@86 9843
cannam@86 9844
cannam@86 9845
cannam@86 9846
cannam@86 9847
cannam@86 9848
cannam@86 9849
cannam@86 9850
cannam@86 9851
cannam@86 9852
cannam@86 9853
cannam@86 9854
cannam@86 9855
cannam@86 9856
cannam@86 9857
cannam@86 9858
cannam@86 9859
cannam@86 9860
cannam@86 9861
cannam@86 9862
cannam@86 9863
cannam@86 9864
cannam@86 9865
cannam@86 9866
cannam@86 9867
cannam@86 9868
cannam@86 9869
cannam@86 9870
cannam@86 9871
cannam@86 9872
cannam@86 9873
cannam@86 9874
cannam@86 9875
cannam@86 9876
cannam@86 9877
cannam@86 9878
cannam@86 9879
cannam@86 9880
cannam@86 9881
cannam@86 9882
cannam@86 9883
cannam@86 9884
cannam@86 9885
cannam@86 9886
cannam@86 9887
cannam@86 9888
cannam@86 9889
cannam@86 9890
cannam@86 9891
cannam@86 9892
cannam@86 9893
cannam@86 9894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cannam@86 9895 $as_echo_n "checking dynamic linker characteristics... " >&6; }
cannam@86 9896
cannam@86 9897 if test "$GCC" = yes; then
cannam@86 9898 case $host_os in
cannam@86 9899 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
cannam@86 9900 *) lt_awk_arg="/^libraries:/" ;;
cannam@86 9901 esac
cannam@86 9902 case $host_os in
cannam@86 9903 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
cannam@86 9904 *) lt_sed_strip_eq="s,=/,/,g" ;;
cannam@86 9905 esac
cannam@86 9906 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
cannam@86 9907 case $lt_search_path_spec in
cannam@86 9908 *\;*)
cannam@86 9909 # if the path contains ";" then we assume it to be the separator
cannam@86 9910 # otherwise default to the standard path separator (i.e. ":") - it is
cannam@86 9911 # assumed that no part of a normal pathname contains ";" but that should
cannam@86 9912 # okay in the real world where ";" in dirpaths is itself problematic.
cannam@86 9913 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
cannam@86 9914 ;;
cannam@86 9915 *)
cannam@86 9916 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
cannam@86 9917 ;;
cannam@86 9918 esac
cannam@86 9919 # Ok, now we have the path, separated by spaces, we can step through it
cannam@86 9920 # and add multilib dir if necessary.
cannam@86 9921 lt_tmp_lt_search_path_spec=
cannam@86 9922 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
cannam@86 9923 for lt_sys_path in $lt_search_path_spec; do
cannam@86 9924 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
cannam@86 9925 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
cannam@86 9926 else
cannam@86 9927 test -d "$lt_sys_path" && \
cannam@86 9928 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
cannam@86 9929 fi
cannam@86 9930 done
cannam@86 9931 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cannam@86 9932 BEGIN {RS=" "; FS="/|\n";} {
cannam@86 9933 lt_foo="";
cannam@86 9934 lt_count=0;
cannam@86 9935 for (lt_i = NF; lt_i > 0; lt_i--) {
cannam@86 9936 if ($lt_i != "" && $lt_i != ".") {
cannam@86 9937 if ($lt_i == "..") {
cannam@86 9938 lt_count++;
cannam@86 9939 } else {
cannam@86 9940 if (lt_count == 0) {
cannam@86 9941 lt_foo="/" $lt_i lt_foo;
cannam@86 9942 } else {
cannam@86 9943 lt_count--;
cannam@86 9944 }
cannam@86 9945 }
cannam@86 9946 }
cannam@86 9947 }
cannam@86 9948 if (lt_foo != "") { lt_freq[lt_foo]++; }
cannam@86 9949 if (lt_freq[lt_foo] == 1) { print lt_foo; }
cannam@86 9950 }'`
cannam@86 9951 # AWK program above erroneously prepends '/' to C:/dos/paths
cannam@86 9952 # for these hosts.
cannam@86 9953 case $host_os in
cannam@86 9954 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
cannam@86 9955 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
cannam@86 9956 esac
cannam@86 9957 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cannam@86 9958 else
cannam@86 9959 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
cannam@86 9960 fi
cannam@86 9961 library_names_spec=
cannam@86 9962 libname_spec='lib$name'
cannam@86 9963 soname_spec=
cannam@86 9964 shrext_cmds=".so"
cannam@86 9965 postinstall_cmds=
cannam@86 9966 postuninstall_cmds=
cannam@86 9967 finish_cmds=
cannam@86 9968 finish_eval=
cannam@86 9969 shlibpath_var=
cannam@86 9970 shlibpath_overrides_runpath=unknown
cannam@86 9971 version_type=none
cannam@86 9972 dynamic_linker="$host_os ld.so"
cannam@86 9973 sys_lib_dlsearch_path_spec="/lib /usr/lib"
cannam@86 9974 need_lib_prefix=unknown
cannam@86 9975 hardcode_into_libs=no
cannam@86 9976
cannam@86 9977 # when you set need_version to no, make sure it does not cause -set_version
cannam@86 9978 # flags to be left without arguments
cannam@86 9979 need_version=unknown
cannam@86 9980
cannam@86 9981 case $host_os in
cannam@86 9982 aix3*)
cannam@86 9983 version_type=linux
cannam@86 9984 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
cannam@86 9985 shlibpath_var=LIBPATH
cannam@86 9986
cannam@86 9987 # AIX 3 has no versioning support, so we append a major version to the name.
cannam@86 9988 soname_spec='${libname}${release}${shared_ext}$major'
cannam@86 9989 ;;
cannam@86 9990
cannam@86 9991 aix[4-9]*)
cannam@86 9992 version_type=linux
cannam@86 9993 need_lib_prefix=no
cannam@86 9994 need_version=no
cannam@86 9995 hardcode_into_libs=yes
cannam@86 9996 if test "$host_cpu" = ia64; then
cannam@86 9997 # AIX 5 supports IA64
cannam@86 9998 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
cannam@86 9999 shlibpath_var=LD_LIBRARY_PATH
cannam@86 10000 else
cannam@86 10001 # With GCC up to 2.95.x, collect2 would create an import file
cannam@86 10002 # for dependence libraries. The import file would start with
cannam@86 10003 # the line `#! .'. This would cause the generated library to
cannam@86 10004 # depend on `.', always an invalid library. This was fixed in
cannam@86 10005 # development snapshots of GCC prior to 3.0.
cannam@86 10006 case $host_os in
cannam@86 10007 aix4 | aix4.[01] | aix4.[01].*)
cannam@86 10008 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
cannam@86 10009 echo ' yes '
cannam@86 10010 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
cannam@86 10011 :
cannam@86 10012 else
cannam@86 10013 can_build_shared=no
cannam@86 10014 fi
cannam@86 10015 ;;
cannam@86 10016 esac
cannam@86 10017 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
cannam@86 10018 # soname into executable. Probably we can add versioning support to
cannam@86 10019 # collect2, so additional links can be useful in future.
cannam@86 10020 if test "$aix_use_runtimelinking" = yes; then
cannam@86 10021 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
cannam@86 10022 # instead of lib<name>.a to let people know that these are not
cannam@86 10023 # typical AIX shared libraries.
cannam@86 10024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@86 10025 else
cannam@86 10026 # We preserve .a as extension for shared libraries through AIX4.2
cannam@86 10027 # and later when we are not doing run time linking.
cannam@86 10028 library_names_spec='${libname}${release}.a $libname.a'
cannam@86 10029 soname_spec='${libname}${release}${shared_ext}$major'
cannam@86 10030 fi
cannam@86 10031 shlibpath_var=LIBPATH
cannam@86 10032 fi
cannam@86 10033 ;;
cannam@86 10034
cannam@86 10035 amigaos*)
cannam@86 10036 case $host_cpu in
cannam@86 10037 powerpc)
cannam@86 10038 # Since July 2007 AmigaOS4 officially supports .so libraries.
cannam@86 10039 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
cannam@86 10040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@86 10041 ;;
cannam@86 10042 m68k)
cannam@86 10043 library_names_spec='$libname.ixlibrary $libname.a'
cannam@86 10044 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cannam@86 10045 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
cannam@86 10046 ;;
cannam@86 10047 esac
cannam@86 10048 ;;
cannam@86 10049
cannam@86 10050 beos*)
cannam@86 10051 library_names_spec='${libname}${shared_ext}'
cannam@86 10052 dynamic_linker="$host_os ld.so"
cannam@86 10053 shlibpath_var=LIBRARY_PATH
cannam@86 10054 ;;
cannam@86 10055
cannam@86 10056 bsdi[45]*)
cannam@86 10057 version_type=linux
cannam@86 10058 need_version=no
cannam@86 10059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@86 10060 soname_spec='${libname}${release}${shared_ext}$major'
cannam@86 10061 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
cannam@86 10062 shlibpath_var=LD_LIBRARY_PATH
cannam@86 10063 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
cannam@86 10064 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
cannam@86 10065 # the default ld.so.conf also contains /usr/contrib/lib and
cannam@86 10066 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
cannam@86 10067 # libtool to hard-code these into programs
cannam@86 10068 ;;
cannam@86 10069
cannam@86 10070 cygwin* | mingw* | pw32* | cegcc*)
cannam@86 10071 version_type=windows
cannam@86 10072 shrext_cmds=".dll"
cannam@86 10073 need_version=no
cannam@86 10074 need_lib_prefix=no
cannam@86 10075
cannam@86 10076 case $GCC,$cc_basename in
cannam@86 10077 yes,*)
cannam@86 10078 # gcc
cannam@86 10079 library_names_spec='$libname.dll.a'
cannam@86 10080 # DLL is installed to $(libdir)/../bin by postinstall_cmds
cannam@86 10081 postinstall_cmds='base_file=`basename \${file}`~
cannam@86 10082 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
cannam@86 10083 dldir=$destdir/`dirname \$dlpath`~
cannam@86 10084 test -d \$dldir || mkdir -p \$dldir~
cannam@86 10085 $install_prog $dir/$dlname \$dldir/$dlname~
cannam@86 10086 chmod a+x \$dldir/$dlname~
cannam@86 10087 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
cannam@86 10088 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
cannam@86 10089 fi'
cannam@86 10090 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
cannam@86 10091 dlpath=$dir/\$dldll~
cannam@86 10092 $RM \$dlpath'
cannam@86 10093 shlibpath_overrides_runpath=yes
cannam@86 10094
cannam@86 10095 case $host_os in
cannam@86 10096 cygwin*)
cannam@86 10097 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
cannam@86 10098 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@86 10099
cannam@86 10100 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cannam@86 10101 ;;
cannam@86 10102 mingw* | cegcc*)
cannam@86 10103 # MinGW DLLs use traditional 'lib' prefix
cannam@86 10104 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@86 10105 ;;
cannam@86 10106 pw32*)
cannam@86 10107 # pw32 DLLs use 'pw' prefix rather than 'lib'
cannam@86 10108 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@86 10109 ;;
cannam@86 10110 esac
cannam@86 10111 dynamic_linker='Win32 ld.exe'
cannam@86 10112 ;;
cannam@86 10113
cannam@86 10114 *,cl*)
cannam@86 10115 # Native MSVC
cannam@86 10116 libname_spec='$name'
cannam@86 10117 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@86 10118 library_names_spec='${libname}.dll.lib'
cannam@86 10119
cannam@86 10120 case $build_os in
cannam@86 10121 mingw*)
cannam@86 10122 sys_lib_search_path_spec=
cannam@86 10123 lt_save_ifs=$IFS
cannam@86 10124 IFS=';'
cannam@86 10125 for lt_path in $LIB
cannam@86 10126 do
cannam@86 10127 IFS=$lt_save_ifs
cannam@86 10128 # Let DOS variable expansion print the short 8.3 style file name.
cannam@86 10129 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
cannam@86 10130 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
cannam@86 10131 done
cannam@86 10132 IFS=$lt_save_ifs
cannam@86 10133 # Convert to MSYS style.
cannam@86 10134 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
cannam@86 10135 ;;
cannam@86 10136 cygwin*)
cannam@86 10137 # Convert to unix form, then to dos form, then back to unix form
cannam@86 10138 # but this time dos style (no spaces!) so that the unix form looks
cannam@86 10139 # like /cygdrive/c/PROGRA~1:/cygdr...
cannam@86 10140 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
cannam@86 10141 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
cannam@86 10142 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
cannam@86 10143 ;;
cannam@86 10144 *)
cannam@86 10145 sys_lib_search_path_spec="$LIB"
cannam@86 10146 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
cannam@86 10147 # It is most probably a Windows format PATH.
cannam@86 10148 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
cannam@86 10149 else
cannam@86 10150 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
cannam@86 10151 fi
cannam@86 10152 # FIXME: find the short name or the path components, as spaces are
cannam@86 10153 # common. (e.g. "Program Files" -> "PROGRA~1")
cannam@86 10154 ;;
cannam@86 10155 esac
cannam@86 10156
cannam@86 10157 # DLL is installed to $(libdir)/../bin by postinstall_cmds
cannam@86 10158 postinstall_cmds='base_file=`basename \${file}`~
cannam@86 10159 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
cannam@86 10160 dldir=$destdir/`dirname \$dlpath`~
cannam@86 10161 test -d \$dldir || mkdir -p \$dldir~
cannam@86 10162 $install_prog $dir/$dlname \$dldir/$dlname'
cannam@86 10163 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
cannam@86 10164 dlpath=$dir/\$dldll~
cannam@86 10165 $RM \$dlpath'
cannam@86 10166 shlibpath_overrides_runpath=yes
cannam@86 10167 dynamic_linker='Win32 link.exe'
cannam@86 10168 ;;
cannam@86 10169
cannam@86 10170 *)
cannam@86 10171 # Assume MSVC wrapper
cannam@86 10172 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cannam@86 10173 dynamic_linker='Win32 ld.exe'
cannam@86 10174 ;;
cannam@86 10175 esac
cannam@86 10176 # FIXME: first we should search . and the directory the executable is in
cannam@86 10177 shlibpath_var=PATH
cannam@86 10178 ;;
cannam@86 10179
cannam@86 10180 darwin* | rhapsody*)
cannam@86 10181 dynamic_linker="$host_os dyld"
cannam@86 10182 version_type=darwin
cannam@86 10183 need_lib_prefix=no
cannam@86 10184 need_version=no
cannam@86 10185 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
cannam@86 10186 soname_spec='${libname}${release}${major}$shared_ext'
cannam@86 10187 shlibpath_overrides_runpath=yes
cannam@86 10188 shlibpath_var=DYLD_LIBRARY_PATH
cannam@86 10189 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
cannam@86 10190
cannam@86 10191 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
cannam@86 10192 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
cannam@86 10193 ;;
cannam@86 10194
cannam@86 10195 dgux*)
cannam@86 10196 version_type=linux
cannam@86 10197 need_lib_prefix=no
cannam@86 10198 need_version=no
cannam@86 10199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
cannam@86 10200 soname_spec='${libname}${release}${shared_ext}$major'
cannam@86 10201 shlibpath_var=LD_LIBRARY_PATH
cannam@86 10202 ;;
cannam@86 10203
cannam@86 10204 freebsd1*)
cannam@86 10205 dynamic_linker=no
cannam@86 10206 ;;
cannam@86 10207
cannam@86 10208 freebsd* | dragonfly*)
cannam@86 10209 # DragonFly does not have aout. When/if they implement a new
cannam@86 10210 # versioning mechanism, adjust this.
cannam@86 10211 if test -x /usr/bin/objformat; then
cannam@86 10212 objformat=`/usr/bin/objformat`
cannam@86 10213 else
cannam@86 10214 case $host_os in
cannam@86 10215 freebsd[123]*) objformat=aout ;;
cannam@86 10216 *) objformat=elf ;;
cannam@86 10217 esac
cannam@86 10218 fi
cannam@86 10219 version_type=freebsd-$objformat
cannam@86 10220 case $version_type in
cannam@86 10221 freebsd-elf*)
cannam@86 10222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
cannam@86 10223 need_version=no
cannam@86 10224 need_lib_prefix=no
cannam@86 10225 ;;
cannam@86 10226 freebsd-*)
cannam@86 10227 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
cannam@86 10228 need_version=yes
cannam@86 10229 ;;
cannam@86 10230 esac
cannam@86 10231 shlibpath_var=LD_LIBRARY_PATH
cannam@86 10232 case $host_os in
cannam@86 10233 freebsd2*)
cannam@86 10234 shlibpath_overrides_runpath=yes
cannam@86 10235 ;;
cannam@86 10236 freebsd3.[01]* | freebsdelf3.[01]*)
cannam@86 10237 shlibpath_overrides_runpath=yes
cannam@86 10238 hardcode_into_libs=yes
cannam@86 10239 ;;
cannam@86 10240 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
cannam@86 10241 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
cannam@86 10242 shlibpath_overrides_runpath=no
cannam@86 10243 hardcode_into_libs=yes
cannam@86 10244 ;;
cannam@86 10245 *) # from 4.6 on, and DragonFly
cannam@86 10246 shlibpath_overrides_runpath=yes
cannam@86 10247 hardcode_into_libs=yes
cannam@86 10248 ;;
cannam@86 10249 esac
cannam@86 10250 ;;
cannam@86 10251
cannam@86 10252 gnu*)
cannam@86 10253 version_type=linux
cannam@86 10254 need_lib_prefix=no
cannam@86 10255 need_version=no
cannam@86 10256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
cannam@86 10257 soname_spec='${libname}${release}${shared_ext}$major'
cannam@86 10258 shlibpath_var=LD_LIBRARY_PATH
cannam@86 10259 hardcode_into_libs=yes
cannam@86 10260 ;;
cannam@86 10261
cannam@86 10262 haiku*)
cannam@86 10263 version_type=linux
cannam@86 10264 need_lib_prefix=no
cannam@86 10265 need_version=no
cannam@86 10266 dynamic_linker="$host_os runtime_loader"
cannam@86 10267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
cannam@86 10268 soname_spec='${libname}${release}${shared_ext}$major'
cannam@86 10269 shlibpath_var=LIBRARY_PATH
cannam@86 10270 shlibpath_overrides_runpath=yes
cannam@86 10271 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
cannam@86 10272 hardcode_into_libs=yes
cannam@86 10273 ;;
cannam@86 10274
cannam@86 10275 hpux9* | hpux10* | hpux11*)
cannam@86 10276 # Give a soname corresponding to the major version so that dld.sl refuses to
cannam@86 10277 # link against other versions.
cannam@86 10278 version_type=sunos
cannam@86 10279 need_lib_prefix=no
cannam@86 10280 need_version=no
cannam@86 10281 case $host_cpu in
cannam@86 10282 ia64*)
cannam@86 10283 shrext_cmds='.so'
cannam@86 10284 hardcode_into_libs=yes
cannam@86 10285 dynamic_linker="$host_os dld.so"
cannam@86 10286 shlibpath_var=LD_LIBRARY_PATH
cannam@86 10287 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cannam@86 10288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@86 10289 soname_spec='${libname}${release}${shared_ext}$major'
cannam@86 10290 if test "X$HPUX_IA64_MODE" = X32; then
cannam@86 10291 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
cannam@86 10292 else
cannam@86 10293 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
cannam@86 10294 fi
cannam@86 10295 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cannam@86 10296 ;;
cannam@86 10297 hppa*64*)
cannam@86 10298 shrext_cmds='.sl'
cannam@86 10299 hardcode_into_libs=yes
cannam@86 10300 dynamic_linker="$host_os dld.sl"
cannam@86 10301 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
cannam@86 10302 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cannam@86 10303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@86 10304 soname_spec='${libname}${release}${shared_ext}$major'
cannam@86 10305 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
cannam@86 10306 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cannam@86 10307 ;;
cannam@86 10308 *)
cannam@86 10309 shrext_cmds='.sl'
cannam@86 10310 dynamic_linker="$host_os dld.sl"
cannam@86 10311 shlibpath_var=SHLIB_PATH
cannam@86 10312 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
cannam@86 10313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@86 10314 soname_spec='${libname}${release}${shared_ext}$major'
cannam@86 10315 ;;
cannam@86 10316 esac
cannam@86 10317 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cannam@86 10318 postinstall_cmds='chmod 555 $lib'
cannam@86 10319 # or fails outright, so override atomically:
cannam@86 10320 install_override_mode=555
cannam@86 10321 ;;
cannam@86 10322
cannam@86 10323 interix[3-9]*)
cannam@86 10324 version_type=linux
cannam@86 10325 need_lib_prefix=no
cannam@86 10326 need_version=no
cannam@86 10327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@86 10328 soname_spec='${libname}${release}${shared_ext}$major'
cannam@86 10329 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
cannam@86 10330 shlibpath_var=LD_LIBRARY_PATH
cannam@86 10331 shlibpath_overrides_runpath=no
cannam@86 10332 hardcode_into_libs=yes
cannam@86 10333 ;;
cannam@86 10334
cannam@86 10335 irix5* | irix6* | nonstopux*)
cannam@86 10336 case $host_os in
cannam@86 10337 nonstopux*) version_type=nonstopux ;;
cannam@86 10338 *)
cannam@86 10339 if test "$lt_cv_prog_gnu_ld" = yes; then
cannam@86 10340 version_type=linux
cannam@86 10341 else
cannam@86 10342 version_type=irix
cannam@86 10343 fi ;;
cannam@86 10344 esac
cannam@86 10345 need_lib_prefix=no
cannam@86 10346 need_version=no
cannam@86 10347 soname_spec='${libname}${release}${shared_ext}$major'
cannam@86 10348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
cannam@86 10349 case $host_os in
cannam@86 10350 irix5* | nonstopux*)
cannam@86 10351 libsuff= shlibsuff=
cannam@86 10352 ;;
cannam@86 10353 *)
cannam@86 10354 case $LD in # libtool.m4 will add one of these switches to LD
cannam@86 10355 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
cannam@86 10356 libsuff= shlibsuff= libmagic=32-bit;;
cannam@86 10357 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
cannam@86 10358 libsuff=32 shlibsuff=N32 libmagic=N32;;
cannam@86 10359 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
cannam@86 10360 libsuff=64 shlibsuff=64 libmagic=64-bit;;
cannam@86 10361 *) libsuff= shlibsuff= libmagic=never-match;;
cannam@86 10362 esac
cannam@86 10363 ;;
cannam@86 10364 esac
cannam@86 10365 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
cannam@86 10366 shlibpath_overrides_runpath=no
cannam@86 10367 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
cannam@86 10368 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
cannam@86 10369 hardcode_into_libs=yes
cannam@86 10370 ;;
cannam@86 10371
cannam@86 10372 # No shared lib support for Linux oldld, aout, or coff.
cannam@86 10373 linux*oldld* | linux*aout* | linux*coff*)
cannam@86 10374 dynamic_linker=no
cannam@86 10375 ;;
cannam@86 10376
cannam@86 10377 # This must be Linux ELF.
cannam@86 10378 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cannam@86 10379 version_type=linux
cannam@86 10380 need_lib_prefix=no
cannam@86 10381 need_version=no
cannam@86 10382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@86 10383 soname_spec='${libname}${release}${shared_ext}$major'
cannam@86 10384 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
cannam@86 10385 shlibpath_var=LD_LIBRARY_PATH
cannam@86 10386 shlibpath_overrides_runpath=no
cannam@86 10387
cannam@86 10388 # Some binutils ld are patched to set DT_RUNPATH
cannam@86 10389 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cannam@86 10390 $as_echo_n "(cached) " >&6
cannam@86 10391 else
cannam@86 10392 lt_cv_shlibpath_overrides_runpath=no
cannam@86 10393 save_LDFLAGS=$LDFLAGS
cannam@86 10394 save_libdir=$libdir
cannam@86 10395 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
cannam@86 10396 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
cannam@86 10397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 10398 /* end confdefs.h. */
cannam@86 10399
cannam@86 10400 int
cannam@86 10401 main ()
cannam@86 10402 {
cannam@86 10403
cannam@86 10404 ;
cannam@86 10405 return 0;
cannam@86 10406 }
cannam@86 10407 _ACEOF
cannam@86 10408 if ac_fn_c_try_link "$LINENO"; then :
cannam@86 10409 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cannam@86 10410 lt_cv_shlibpath_overrides_runpath=yes
cannam@86 10411 fi
cannam@86 10412 fi
cannam@86 10413 rm -f core conftest.err conftest.$ac_objext \
cannam@86 10414 conftest$ac_exeext conftest.$ac_ext
cannam@86 10415 LDFLAGS=$save_LDFLAGS
cannam@86 10416 libdir=$save_libdir
cannam@86 10417
cannam@86 10418 fi
cannam@86 10419
cannam@86 10420 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cannam@86 10421
cannam@86 10422 # This implies no fast_install, which is unacceptable.
cannam@86 10423 # Some rework will be needed to allow for fast_install
cannam@86 10424 # before this can be enabled.
cannam@86 10425 hardcode_into_libs=yes
cannam@86 10426
cannam@86 10427 # Add ABI-specific directories to the system library path.
cannam@86 10428 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
cannam@86 10429
cannam@86 10430 # Append ld.so.conf contents to the search path
cannam@86 10431 if test -f /etc/ld.so.conf; then
cannam@86 10432 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
cannam@86 10433 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cannam@86 10434
cannam@86 10435 fi
cannam@86 10436
cannam@86 10437 # We used to test for /lib/ld.so.1 and disable shared libraries on
cannam@86 10438 # powerpc, because MkLinux only supported shared libraries with the
cannam@86 10439 # GNU dynamic linker. Since this was broken with cross compilers,
cannam@86 10440 # most powerpc-linux boxes support dynamic linking these days and
cannam@86 10441 # people can always --disable-shared, the test was removed, and we
cannam@86 10442 # assume the GNU/Linux dynamic linker is in use.
cannam@86 10443 dynamic_linker='GNU/Linux ld.so'
cannam@86 10444 ;;
cannam@86 10445
cannam@86 10446 netbsd*)
cannam@86 10447 version_type=sunos
cannam@86 10448 need_lib_prefix=no
cannam@86 10449 need_version=no
cannam@86 10450 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
cannam@86 10451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@86 10452 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
cannam@86 10453 dynamic_linker='NetBSD (a.out) ld.so'
cannam@86 10454 else
cannam@86 10455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@86 10456 soname_spec='${libname}${release}${shared_ext}$major'
cannam@86 10457 dynamic_linker='NetBSD ld.elf_so'
cannam@86 10458 fi
cannam@86 10459 shlibpath_var=LD_LIBRARY_PATH
cannam@86 10460 shlibpath_overrides_runpath=yes
cannam@86 10461 hardcode_into_libs=yes
cannam@86 10462 ;;
cannam@86 10463
cannam@86 10464 newsos6)
cannam@86 10465 version_type=linux
cannam@86 10466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@86 10467 shlibpath_var=LD_LIBRARY_PATH
cannam@86 10468 shlibpath_overrides_runpath=yes
cannam@86 10469 ;;
cannam@86 10470
cannam@86 10471 *nto* | *qnx*)
cannam@86 10472 version_type=qnx
cannam@86 10473 need_lib_prefix=no
cannam@86 10474 need_version=no
cannam@86 10475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@86 10476 soname_spec='${libname}${release}${shared_ext}$major'
cannam@86 10477 shlibpath_var=LD_LIBRARY_PATH
cannam@86 10478 shlibpath_overrides_runpath=no
cannam@86 10479 hardcode_into_libs=yes
cannam@86 10480 dynamic_linker='ldqnx.so'
cannam@86 10481 ;;
cannam@86 10482
cannam@86 10483 openbsd*)
cannam@86 10484 version_type=sunos
cannam@86 10485 sys_lib_dlsearch_path_spec="/usr/lib"
cannam@86 10486 need_lib_prefix=no
cannam@86 10487 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
cannam@86 10488 case $host_os in
cannam@86 10489 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
cannam@86 10490 *) need_version=no ;;
cannam@86 10491 esac
cannam@86 10492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@86 10493 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
cannam@86 10494 shlibpath_var=LD_LIBRARY_PATH
cannam@86 10495 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
cannam@86 10496 case $host_os in
cannam@86 10497 openbsd2.[89] | openbsd2.[89].*)
cannam@86 10498 shlibpath_overrides_runpath=no
cannam@86 10499 ;;
cannam@86 10500 *)
cannam@86 10501 shlibpath_overrides_runpath=yes
cannam@86 10502 ;;
cannam@86 10503 esac
cannam@86 10504 else
cannam@86 10505 shlibpath_overrides_runpath=yes
cannam@86 10506 fi
cannam@86 10507 ;;
cannam@86 10508
cannam@86 10509 os2*)
cannam@86 10510 libname_spec='$name'
cannam@86 10511 shrext_cmds=".dll"
cannam@86 10512 need_lib_prefix=no
cannam@86 10513 library_names_spec='$libname${shared_ext} $libname.a'
cannam@86 10514 dynamic_linker='OS/2 ld.exe'
cannam@86 10515 shlibpath_var=LIBPATH
cannam@86 10516 ;;
cannam@86 10517
cannam@86 10518 osf3* | osf4* | osf5*)
cannam@86 10519 version_type=osf
cannam@86 10520 need_lib_prefix=no
cannam@86 10521 need_version=no
cannam@86 10522 soname_spec='${libname}${release}${shared_ext}$major'
cannam@86 10523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@86 10524 shlibpath_var=LD_LIBRARY_PATH
cannam@86 10525 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
cannam@86 10526 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
cannam@86 10527 ;;
cannam@86 10528
cannam@86 10529 rdos*)
cannam@86 10530 dynamic_linker=no
cannam@86 10531 ;;
cannam@86 10532
cannam@86 10533 solaris*)
cannam@86 10534 version_type=linux
cannam@86 10535 need_lib_prefix=no
cannam@86 10536 need_version=no
cannam@86 10537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@86 10538 soname_spec='${libname}${release}${shared_ext}$major'
cannam@86 10539 shlibpath_var=LD_LIBRARY_PATH
cannam@86 10540 shlibpath_overrides_runpath=yes
cannam@86 10541 hardcode_into_libs=yes
cannam@86 10542 # ldd complains unless libraries are executable
cannam@86 10543 postinstall_cmds='chmod +x $lib'
cannam@86 10544 ;;
cannam@86 10545
cannam@86 10546 sunos4*)
cannam@86 10547 version_type=sunos
cannam@86 10548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@86 10549 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
cannam@86 10550 shlibpath_var=LD_LIBRARY_PATH
cannam@86 10551 shlibpath_overrides_runpath=yes
cannam@86 10552 if test "$with_gnu_ld" = yes; then
cannam@86 10553 need_lib_prefix=no
cannam@86 10554 fi
cannam@86 10555 need_version=yes
cannam@86 10556 ;;
cannam@86 10557
cannam@86 10558 sysv4 | sysv4.3*)
cannam@86 10559 version_type=linux
cannam@86 10560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@86 10561 soname_spec='${libname}${release}${shared_ext}$major'
cannam@86 10562 shlibpath_var=LD_LIBRARY_PATH
cannam@86 10563 case $host_vendor in
cannam@86 10564 sni)
cannam@86 10565 shlibpath_overrides_runpath=no
cannam@86 10566 need_lib_prefix=no
cannam@86 10567 runpath_var=LD_RUN_PATH
cannam@86 10568 ;;
cannam@86 10569 siemens)
cannam@86 10570 need_lib_prefix=no
cannam@86 10571 ;;
cannam@86 10572 motorola)
cannam@86 10573 need_lib_prefix=no
cannam@86 10574 need_version=no
cannam@86 10575 shlibpath_overrides_runpath=no
cannam@86 10576 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
cannam@86 10577 ;;
cannam@86 10578 esac
cannam@86 10579 ;;
cannam@86 10580
cannam@86 10581 sysv4*MP*)
cannam@86 10582 if test -d /usr/nec ;then
cannam@86 10583 version_type=linux
cannam@86 10584 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
cannam@86 10585 soname_spec='$libname${shared_ext}.$major'
cannam@86 10586 shlibpath_var=LD_LIBRARY_PATH
cannam@86 10587 fi
cannam@86 10588 ;;
cannam@86 10589
cannam@86 10590 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
cannam@86 10591 version_type=freebsd-elf
cannam@86 10592 need_lib_prefix=no
cannam@86 10593 need_version=no
cannam@86 10594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
cannam@86 10595 soname_spec='${libname}${release}${shared_ext}$major'
cannam@86 10596 shlibpath_var=LD_LIBRARY_PATH
cannam@86 10597 shlibpath_overrides_runpath=yes
cannam@86 10598 hardcode_into_libs=yes
cannam@86 10599 if test "$with_gnu_ld" = yes; then
cannam@86 10600 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
cannam@86 10601 else
cannam@86 10602 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
cannam@86 10603 case $host_os in
cannam@86 10604 sco3.2v5*)
cannam@86 10605 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
cannam@86 10606 ;;
cannam@86 10607 esac
cannam@86 10608 fi
cannam@86 10609 sys_lib_dlsearch_path_spec='/usr/lib'
cannam@86 10610 ;;
cannam@86 10611
cannam@86 10612 tpf*)
cannam@86 10613 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cannam@86 10614 version_type=linux
cannam@86 10615 need_lib_prefix=no
cannam@86 10616 need_version=no
cannam@86 10617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@86 10618 shlibpath_var=LD_LIBRARY_PATH
cannam@86 10619 shlibpath_overrides_runpath=no
cannam@86 10620 hardcode_into_libs=yes
cannam@86 10621 ;;
cannam@86 10622
cannam@86 10623 uts4*)
cannam@86 10624 version_type=linux
cannam@86 10625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@86 10626 soname_spec='${libname}${release}${shared_ext}$major'
cannam@86 10627 shlibpath_var=LD_LIBRARY_PATH
cannam@86 10628 ;;
cannam@86 10629
cannam@86 10630 *)
cannam@86 10631 dynamic_linker=no
cannam@86 10632 ;;
cannam@86 10633 esac
cannam@86 10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cannam@86 10635 $as_echo "$dynamic_linker" >&6; }
cannam@86 10636 test "$dynamic_linker" = no && can_build_shared=no
cannam@86 10637
cannam@86 10638 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
cannam@86 10639 if test "$GCC" = yes; then
cannam@86 10640 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
cannam@86 10641 fi
cannam@86 10642
cannam@86 10643 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
cannam@86 10644 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
cannam@86 10645 fi
cannam@86 10646 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
cannam@86 10647 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
cannam@86 10648 fi
cannam@86 10649
cannam@86 10650
cannam@86 10651
cannam@86 10652
cannam@86 10653
cannam@86 10654
cannam@86 10655
cannam@86 10656
cannam@86 10657
cannam@86 10658
cannam@86 10659
cannam@86 10660
cannam@86 10661
cannam@86 10662
cannam@86 10663
cannam@86 10664
cannam@86 10665
cannam@86 10666
cannam@86 10667
cannam@86 10668
cannam@86 10669
cannam@86 10670
cannam@86 10671
cannam@86 10672
cannam@86 10673
cannam@86 10674
cannam@86 10675
cannam@86 10676
cannam@86 10677
cannam@86 10678
cannam@86 10679
cannam@86 10680
cannam@86 10681
cannam@86 10682
cannam@86 10683
cannam@86 10684
cannam@86 10685
cannam@86 10686
cannam@86 10687
cannam@86 10688
cannam@86 10689
cannam@86 10690
cannam@86 10691
cannam@86 10692
cannam@86 10693
cannam@86 10694
cannam@86 10695
cannam@86 10696
cannam@86 10697
cannam@86 10698
cannam@86 10699
cannam@86 10700
cannam@86 10701
cannam@86 10702
cannam@86 10703
cannam@86 10704
cannam@86 10705
cannam@86 10706
cannam@86 10707
cannam@86 10708
cannam@86 10709
cannam@86 10710
cannam@86 10711
cannam@86 10712
cannam@86 10713
cannam@86 10714
cannam@86 10715
cannam@86 10716
cannam@86 10717
cannam@86 10718
cannam@86 10719
cannam@86 10720
cannam@86 10721
cannam@86 10722
cannam@86 10723
cannam@86 10724
cannam@86 10725
cannam@86 10726
cannam@86 10727
cannam@86 10728
cannam@86 10729
cannam@86 10730
cannam@86 10731
cannam@86 10732
cannam@86 10733
cannam@86 10734
cannam@86 10735
cannam@86 10736
cannam@86 10737
cannam@86 10738
cannam@86 10739
cannam@86 10740
cannam@86 10741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cannam@86 10742 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
cannam@86 10743 hardcode_action=
cannam@86 10744 if test -n "$hardcode_libdir_flag_spec" ||
cannam@86 10745 test -n "$runpath_var" ||
cannam@86 10746 test "X$hardcode_automatic" = "Xyes" ; then
cannam@86 10747
cannam@86 10748 # We can hardcode non-existent directories.
cannam@86 10749 if test "$hardcode_direct" != no &&
cannam@86 10750 # If the only mechanism to avoid hardcoding is shlibpath_var, we
cannam@86 10751 # have to relink, otherwise we might link with an installed library
cannam@86 10752 # when we should be linking with a yet-to-be-installed one
cannam@86 10753 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
cannam@86 10754 test "$hardcode_minus_L" != no; then
cannam@86 10755 # Linking always hardcodes the temporary library directory.
cannam@86 10756 hardcode_action=relink
cannam@86 10757 else
cannam@86 10758 # We can link without hardcoding, and we can hardcode nonexisting dirs.
cannam@86 10759 hardcode_action=immediate
cannam@86 10760 fi
cannam@86 10761 else
cannam@86 10762 # We cannot hardcode anything, or else we can only hardcode existing
cannam@86 10763 # directories.
cannam@86 10764 hardcode_action=unsupported
cannam@86 10765 fi
cannam@86 10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
cannam@86 10767 $as_echo "$hardcode_action" >&6; }
cannam@86 10768
cannam@86 10769 if test "$hardcode_action" = relink ||
cannam@86 10770 test "$inherit_rpath" = yes; then
cannam@86 10771 # Fast installation is not supported
cannam@86 10772 enable_fast_install=no
cannam@86 10773 elif test "$shlibpath_overrides_runpath" = yes ||
cannam@86 10774 test "$enable_shared" = no; then
cannam@86 10775 # Fast installation is not necessary
cannam@86 10776 enable_fast_install=needless
cannam@86 10777 fi
cannam@86 10778
cannam@86 10779
cannam@86 10780
cannam@86 10781
cannam@86 10782
cannam@86 10783
cannam@86 10784 if test "x$enable_dlopen" != xyes; then
cannam@86 10785 enable_dlopen=unknown
cannam@86 10786 enable_dlopen_self=unknown
cannam@86 10787 enable_dlopen_self_static=unknown
cannam@86 10788 else
cannam@86 10789 lt_cv_dlopen=no
cannam@86 10790 lt_cv_dlopen_libs=
cannam@86 10791
cannam@86 10792 case $host_os in
cannam@86 10793 beos*)
cannam@86 10794 lt_cv_dlopen="load_add_on"
cannam@86 10795 lt_cv_dlopen_libs=
cannam@86 10796 lt_cv_dlopen_self=yes
cannam@86 10797 ;;
cannam@86 10798
cannam@86 10799 mingw* | pw32* | cegcc*)
cannam@86 10800 lt_cv_dlopen="LoadLibrary"
cannam@86 10801 lt_cv_dlopen_libs=
cannam@86 10802 ;;
cannam@86 10803
cannam@86 10804 cygwin*)
cannam@86 10805 lt_cv_dlopen="dlopen"
cannam@86 10806 lt_cv_dlopen_libs=
cannam@86 10807 ;;
cannam@86 10808
cannam@86 10809 darwin*)
cannam@86 10810 # if libdl is installed we need to link against it
cannam@86 10811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cannam@86 10812 $as_echo_n "checking for dlopen in -ldl... " >&6; }
cannam@86 10813 if ${ac_cv_lib_dl_dlopen+:} false; then :
cannam@86 10814 $as_echo_n "(cached) " >&6
cannam@86 10815 else
cannam@86 10816 ac_check_lib_save_LIBS=$LIBS
cannam@86 10817 LIBS="-ldl $LIBS"
cannam@86 10818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 10819 /* end confdefs.h. */
cannam@86 10820
cannam@86 10821 /* Override any GCC internal prototype to avoid an error.
cannam@86 10822 Use char because int might match the return type of a GCC
cannam@86 10823 builtin and then its argument prototype would still apply. */
cannam@86 10824 #ifdef __cplusplus
cannam@86 10825 extern "C"
cannam@86 10826 #endif
cannam@86 10827 char dlopen ();
cannam@86 10828 int
cannam@86 10829 main ()
cannam@86 10830 {
cannam@86 10831 return dlopen ();
cannam@86 10832 ;
cannam@86 10833 return 0;
cannam@86 10834 }
cannam@86 10835 _ACEOF
cannam@86 10836 if ac_fn_c_try_link "$LINENO"; then :
cannam@86 10837 ac_cv_lib_dl_dlopen=yes
cannam@86 10838 else
cannam@86 10839 ac_cv_lib_dl_dlopen=no
cannam@86 10840 fi
cannam@86 10841 rm -f core conftest.err conftest.$ac_objext \
cannam@86 10842 conftest$ac_exeext conftest.$ac_ext
cannam@86 10843 LIBS=$ac_check_lib_save_LIBS
cannam@86 10844 fi
cannam@86 10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cannam@86 10846 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cannam@86 10847 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cannam@86 10848 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
cannam@86 10849 else
cannam@86 10850
cannam@86 10851 lt_cv_dlopen="dyld"
cannam@86 10852 lt_cv_dlopen_libs=
cannam@86 10853 lt_cv_dlopen_self=yes
cannam@86 10854
cannam@86 10855 fi
cannam@86 10856
cannam@86 10857 ;;
cannam@86 10858
cannam@86 10859 *)
cannam@86 10860 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cannam@86 10861 if test "x$ac_cv_func_shl_load" = xyes; then :
cannam@86 10862 lt_cv_dlopen="shl_load"
cannam@86 10863 else
cannam@86 10864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cannam@86 10865 $as_echo_n "checking for shl_load in -ldld... " >&6; }
cannam@86 10866 if ${ac_cv_lib_dld_shl_load+:} false; then :
cannam@86 10867 $as_echo_n "(cached) " >&6
cannam@86 10868 else
cannam@86 10869 ac_check_lib_save_LIBS=$LIBS
cannam@86 10870 LIBS="-ldld $LIBS"
cannam@86 10871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 10872 /* end confdefs.h. */
cannam@86 10873
cannam@86 10874 /* Override any GCC internal prototype to avoid an error.
cannam@86 10875 Use char because int might match the return type of a GCC
cannam@86 10876 builtin and then its argument prototype would still apply. */
cannam@86 10877 #ifdef __cplusplus
cannam@86 10878 extern "C"
cannam@86 10879 #endif
cannam@86 10880 char shl_load ();
cannam@86 10881 int
cannam@86 10882 main ()
cannam@86 10883 {
cannam@86 10884 return shl_load ();
cannam@86 10885 ;
cannam@86 10886 return 0;
cannam@86 10887 }
cannam@86 10888 _ACEOF
cannam@86 10889 if ac_fn_c_try_link "$LINENO"; then :
cannam@86 10890 ac_cv_lib_dld_shl_load=yes
cannam@86 10891 else
cannam@86 10892 ac_cv_lib_dld_shl_load=no
cannam@86 10893 fi
cannam@86 10894 rm -f core conftest.err conftest.$ac_objext \
cannam@86 10895 conftest$ac_exeext conftest.$ac_ext
cannam@86 10896 LIBS=$ac_check_lib_save_LIBS
cannam@86 10897 fi
cannam@86 10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cannam@86 10899 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cannam@86 10900 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cannam@86 10901 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
cannam@86 10902 else
cannam@86 10903 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cannam@86 10904 if test "x$ac_cv_func_dlopen" = xyes; then :
cannam@86 10905 lt_cv_dlopen="dlopen"
cannam@86 10906 else
cannam@86 10907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cannam@86 10908 $as_echo_n "checking for dlopen in -ldl... " >&6; }
cannam@86 10909 if ${ac_cv_lib_dl_dlopen+:} false; then :
cannam@86 10910 $as_echo_n "(cached) " >&6
cannam@86 10911 else
cannam@86 10912 ac_check_lib_save_LIBS=$LIBS
cannam@86 10913 LIBS="-ldl $LIBS"
cannam@86 10914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 10915 /* end confdefs.h. */
cannam@86 10916
cannam@86 10917 /* Override any GCC internal prototype to avoid an error.
cannam@86 10918 Use char because int might match the return type of a GCC
cannam@86 10919 builtin and then its argument prototype would still apply. */
cannam@86 10920 #ifdef __cplusplus
cannam@86 10921 extern "C"
cannam@86 10922 #endif
cannam@86 10923 char dlopen ();
cannam@86 10924 int
cannam@86 10925 main ()
cannam@86 10926 {
cannam@86 10927 return dlopen ();
cannam@86 10928 ;
cannam@86 10929 return 0;
cannam@86 10930 }
cannam@86 10931 _ACEOF
cannam@86 10932 if ac_fn_c_try_link "$LINENO"; then :
cannam@86 10933 ac_cv_lib_dl_dlopen=yes
cannam@86 10934 else
cannam@86 10935 ac_cv_lib_dl_dlopen=no
cannam@86 10936 fi
cannam@86 10937 rm -f core conftest.err conftest.$ac_objext \
cannam@86 10938 conftest$ac_exeext conftest.$ac_ext
cannam@86 10939 LIBS=$ac_check_lib_save_LIBS
cannam@86 10940 fi
cannam@86 10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cannam@86 10942 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cannam@86 10943 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cannam@86 10944 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
cannam@86 10945 else
cannam@86 10946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cannam@86 10947 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
cannam@86 10948 if ${ac_cv_lib_svld_dlopen+:} false; then :
cannam@86 10949 $as_echo_n "(cached) " >&6
cannam@86 10950 else
cannam@86 10951 ac_check_lib_save_LIBS=$LIBS
cannam@86 10952 LIBS="-lsvld $LIBS"
cannam@86 10953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 10954 /* end confdefs.h. */
cannam@86 10955
cannam@86 10956 /* Override any GCC internal prototype to avoid an error.
cannam@86 10957 Use char because int might match the return type of a GCC
cannam@86 10958 builtin and then its argument prototype would still apply. */
cannam@86 10959 #ifdef __cplusplus
cannam@86 10960 extern "C"
cannam@86 10961 #endif
cannam@86 10962 char dlopen ();
cannam@86 10963 int
cannam@86 10964 main ()
cannam@86 10965 {
cannam@86 10966 return dlopen ();
cannam@86 10967 ;
cannam@86 10968 return 0;
cannam@86 10969 }
cannam@86 10970 _ACEOF
cannam@86 10971 if ac_fn_c_try_link "$LINENO"; then :
cannam@86 10972 ac_cv_lib_svld_dlopen=yes
cannam@86 10973 else
cannam@86 10974 ac_cv_lib_svld_dlopen=no
cannam@86 10975 fi
cannam@86 10976 rm -f core conftest.err conftest.$ac_objext \
cannam@86 10977 conftest$ac_exeext conftest.$ac_ext
cannam@86 10978 LIBS=$ac_check_lib_save_LIBS
cannam@86 10979 fi
cannam@86 10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cannam@86 10981 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cannam@86 10982 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cannam@86 10983 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
cannam@86 10984 else
cannam@86 10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cannam@86 10986 $as_echo_n "checking for dld_link in -ldld... " >&6; }
cannam@86 10987 if ${ac_cv_lib_dld_dld_link+:} false; then :
cannam@86 10988 $as_echo_n "(cached) " >&6
cannam@86 10989 else
cannam@86 10990 ac_check_lib_save_LIBS=$LIBS
cannam@86 10991 LIBS="-ldld $LIBS"
cannam@86 10992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 10993 /* end confdefs.h. */
cannam@86 10994
cannam@86 10995 /* Override any GCC internal prototype to avoid an error.
cannam@86 10996 Use char because int might match the return type of a GCC
cannam@86 10997 builtin and then its argument prototype would still apply. */
cannam@86 10998 #ifdef __cplusplus
cannam@86 10999 extern "C"
cannam@86 11000 #endif
cannam@86 11001 char dld_link ();
cannam@86 11002 int
cannam@86 11003 main ()
cannam@86 11004 {
cannam@86 11005 return dld_link ();
cannam@86 11006 ;
cannam@86 11007 return 0;
cannam@86 11008 }
cannam@86 11009 _ACEOF
cannam@86 11010 if ac_fn_c_try_link "$LINENO"; then :
cannam@86 11011 ac_cv_lib_dld_dld_link=yes
cannam@86 11012 else
cannam@86 11013 ac_cv_lib_dld_dld_link=no
cannam@86 11014 fi
cannam@86 11015 rm -f core conftest.err conftest.$ac_objext \
cannam@86 11016 conftest$ac_exeext conftest.$ac_ext
cannam@86 11017 LIBS=$ac_check_lib_save_LIBS
cannam@86 11018 fi
cannam@86 11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cannam@86 11020 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cannam@86 11021 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cannam@86 11022 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
cannam@86 11023 fi
cannam@86 11024
cannam@86 11025
cannam@86 11026 fi
cannam@86 11027
cannam@86 11028
cannam@86 11029 fi
cannam@86 11030
cannam@86 11031
cannam@86 11032 fi
cannam@86 11033
cannam@86 11034
cannam@86 11035 fi
cannam@86 11036
cannam@86 11037
cannam@86 11038 fi
cannam@86 11039
cannam@86 11040 ;;
cannam@86 11041 esac
cannam@86 11042
cannam@86 11043 if test "x$lt_cv_dlopen" != xno; then
cannam@86 11044 enable_dlopen=yes
cannam@86 11045 else
cannam@86 11046 enable_dlopen=no
cannam@86 11047 fi
cannam@86 11048
cannam@86 11049 case $lt_cv_dlopen in
cannam@86 11050 dlopen)
cannam@86 11051 save_CPPFLAGS="$CPPFLAGS"
cannam@86 11052 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
cannam@86 11053
cannam@86 11054 save_LDFLAGS="$LDFLAGS"
cannam@86 11055 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
cannam@86 11056
cannam@86 11057 save_LIBS="$LIBS"
cannam@86 11058 LIBS="$lt_cv_dlopen_libs $LIBS"
cannam@86 11059
cannam@86 11060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
cannam@86 11061 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
cannam@86 11062 if ${lt_cv_dlopen_self+:} false; then :
cannam@86 11063 $as_echo_n "(cached) " >&6
cannam@86 11064 else
cannam@86 11065 if test "$cross_compiling" = yes; then :
cannam@86 11066 lt_cv_dlopen_self=cross
cannam@86 11067 else
cannam@86 11068 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
cannam@86 11069 lt_status=$lt_dlunknown
cannam@86 11070 cat > conftest.$ac_ext <<_LT_EOF
cannam@86 11071 #line $LINENO "configure"
cannam@86 11072 #include "confdefs.h"
cannam@86 11073
cannam@86 11074 #if HAVE_DLFCN_H
cannam@86 11075 #include <dlfcn.h>
cannam@86 11076 #endif
cannam@86 11077
cannam@86 11078 #include <stdio.h>
cannam@86 11079
cannam@86 11080 #ifdef RTLD_GLOBAL
cannam@86 11081 # define LT_DLGLOBAL RTLD_GLOBAL
cannam@86 11082 #else
cannam@86 11083 # ifdef DL_GLOBAL
cannam@86 11084 # define LT_DLGLOBAL DL_GLOBAL
cannam@86 11085 # else
cannam@86 11086 # define LT_DLGLOBAL 0
cannam@86 11087 # endif
cannam@86 11088 #endif
cannam@86 11089
cannam@86 11090 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
cannam@86 11091 find out it does not work in some platform. */
cannam@86 11092 #ifndef LT_DLLAZY_OR_NOW
cannam@86 11093 # ifdef RTLD_LAZY
cannam@86 11094 # define LT_DLLAZY_OR_NOW RTLD_LAZY
cannam@86 11095 # else
cannam@86 11096 # ifdef DL_LAZY
cannam@86 11097 # define LT_DLLAZY_OR_NOW DL_LAZY
cannam@86 11098 # else
cannam@86 11099 # ifdef RTLD_NOW
cannam@86 11100 # define LT_DLLAZY_OR_NOW RTLD_NOW
cannam@86 11101 # else
cannam@86 11102 # ifdef DL_NOW
cannam@86 11103 # define LT_DLLAZY_OR_NOW DL_NOW
cannam@86 11104 # else
cannam@86 11105 # define LT_DLLAZY_OR_NOW 0
cannam@86 11106 # endif
cannam@86 11107 # endif
cannam@86 11108 # endif
cannam@86 11109 # endif
cannam@86 11110 #endif
cannam@86 11111
cannam@86 11112 /* When -fvisbility=hidden is used, assume the code has been annotated
cannam@86 11113 correspondingly for the symbols needed. */
cannam@86 11114 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cannam@86 11115 int fnord () __attribute__((visibility("default")));
cannam@86 11116 #endif
cannam@86 11117
cannam@86 11118 int fnord () { return 42; }
cannam@86 11119 int main ()
cannam@86 11120 {
cannam@86 11121 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
cannam@86 11122 int status = $lt_dlunknown;
cannam@86 11123
cannam@86 11124 if (self)
cannam@86 11125 {
cannam@86 11126 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cannam@86 11127 else
cannam@86 11128 {
cannam@86 11129 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cannam@86 11130 else puts (dlerror ());
cannam@86 11131 }
cannam@86 11132 /* dlclose (self); */
cannam@86 11133 }
cannam@86 11134 else
cannam@86 11135 puts (dlerror ());
cannam@86 11136
cannam@86 11137 return status;
cannam@86 11138 }
cannam@86 11139 _LT_EOF
cannam@86 11140 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cannam@86 11141 (eval $ac_link) 2>&5
cannam@86 11142 ac_status=$?
cannam@86 11143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 11144 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cannam@86 11145 (./conftest; exit; ) >&5 2>/dev/null
cannam@86 11146 lt_status=$?
cannam@86 11147 case x$lt_status in
cannam@86 11148 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
cannam@86 11149 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
cannam@86 11150 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
cannam@86 11151 esac
cannam@86 11152 else :
cannam@86 11153 # compilation failed
cannam@86 11154 lt_cv_dlopen_self=no
cannam@86 11155 fi
cannam@86 11156 fi
cannam@86 11157 rm -fr conftest*
cannam@86 11158
cannam@86 11159
cannam@86 11160 fi
cannam@86 11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
cannam@86 11162 $as_echo "$lt_cv_dlopen_self" >&6; }
cannam@86 11163
cannam@86 11164 if test "x$lt_cv_dlopen_self" = xyes; then
cannam@86 11165 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cannam@86 11166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
cannam@86 11167 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cannam@86 11168 if ${lt_cv_dlopen_self_static+:} false; then :
cannam@86 11169 $as_echo_n "(cached) " >&6
cannam@86 11170 else
cannam@86 11171 if test "$cross_compiling" = yes; then :
cannam@86 11172 lt_cv_dlopen_self_static=cross
cannam@86 11173 else
cannam@86 11174 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
cannam@86 11175 lt_status=$lt_dlunknown
cannam@86 11176 cat > conftest.$ac_ext <<_LT_EOF
cannam@86 11177 #line $LINENO "configure"
cannam@86 11178 #include "confdefs.h"
cannam@86 11179
cannam@86 11180 #if HAVE_DLFCN_H
cannam@86 11181 #include <dlfcn.h>
cannam@86 11182 #endif
cannam@86 11183
cannam@86 11184 #include <stdio.h>
cannam@86 11185
cannam@86 11186 #ifdef RTLD_GLOBAL
cannam@86 11187 # define LT_DLGLOBAL RTLD_GLOBAL
cannam@86 11188 #else
cannam@86 11189 # ifdef DL_GLOBAL
cannam@86 11190 # define LT_DLGLOBAL DL_GLOBAL
cannam@86 11191 # else
cannam@86 11192 # define LT_DLGLOBAL 0
cannam@86 11193 # endif
cannam@86 11194 #endif
cannam@86 11195
cannam@86 11196 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
cannam@86 11197 find out it does not work in some platform. */
cannam@86 11198 #ifndef LT_DLLAZY_OR_NOW
cannam@86 11199 # ifdef RTLD_LAZY
cannam@86 11200 # define LT_DLLAZY_OR_NOW RTLD_LAZY
cannam@86 11201 # else
cannam@86 11202 # ifdef DL_LAZY
cannam@86 11203 # define LT_DLLAZY_OR_NOW DL_LAZY
cannam@86 11204 # else
cannam@86 11205 # ifdef RTLD_NOW
cannam@86 11206 # define LT_DLLAZY_OR_NOW RTLD_NOW
cannam@86 11207 # else
cannam@86 11208 # ifdef DL_NOW
cannam@86 11209 # define LT_DLLAZY_OR_NOW DL_NOW
cannam@86 11210 # else
cannam@86 11211 # define LT_DLLAZY_OR_NOW 0
cannam@86 11212 # endif
cannam@86 11213 # endif
cannam@86 11214 # endif
cannam@86 11215 # endif
cannam@86 11216 #endif
cannam@86 11217
cannam@86 11218 /* When -fvisbility=hidden is used, assume the code has been annotated
cannam@86 11219 correspondingly for the symbols needed. */
cannam@86 11220 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cannam@86 11221 int fnord () __attribute__((visibility("default")));
cannam@86 11222 #endif
cannam@86 11223
cannam@86 11224 int fnord () { return 42; }
cannam@86 11225 int main ()
cannam@86 11226 {
cannam@86 11227 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
cannam@86 11228 int status = $lt_dlunknown;
cannam@86 11229
cannam@86 11230 if (self)
cannam@86 11231 {
cannam@86 11232 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cannam@86 11233 else
cannam@86 11234 {
cannam@86 11235 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cannam@86 11236 else puts (dlerror ());
cannam@86 11237 }
cannam@86 11238 /* dlclose (self); */
cannam@86 11239 }
cannam@86 11240 else
cannam@86 11241 puts (dlerror ());
cannam@86 11242
cannam@86 11243 return status;
cannam@86 11244 }
cannam@86 11245 _LT_EOF
cannam@86 11246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cannam@86 11247 (eval $ac_link) 2>&5
cannam@86 11248 ac_status=$?
cannam@86 11249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 11250 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cannam@86 11251 (./conftest; exit; ) >&5 2>/dev/null
cannam@86 11252 lt_status=$?
cannam@86 11253 case x$lt_status in
cannam@86 11254 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
cannam@86 11255 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
cannam@86 11256 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
cannam@86 11257 esac
cannam@86 11258 else :
cannam@86 11259 # compilation failed
cannam@86 11260 lt_cv_dlopen_self_static=no
cannam@86 11261 fi
cannam@86 11262 fi
cannam@86 11263 rm -fr conftest*
cannam@86 11264
cannam@86 11265
cannam@86 11266 fi
cannam@86 11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
cannam@86 11268 $as_echo "$lt_cv_dlopen_self_static" >&6; }
cannam@86 11269 fi
cannam@86 11270
cannam@86 11271 CPPFLAGS="$save_CPPFLAGS"
cannam@86 11272 LDFLAGS="$save_LDFLAGS"
cannam@86 11273 LIBS="$save_LIBS"
cannam@86 11274 ;;
cannam@86 11275 esac
cannam@86 11276
cannam@86 11277 case $lt_cv_dlopen_self in
cannam@86 11278 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
cannam@86 11279 *) enable_dlopen_self=unknown ;;
cannam@86 11280 esac
cannam@86 11281
cannam@86 11282 case $lt_cv_dlopen_self_static in
cannam@86 11283 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
cannam@86 11284 *) enable_dlopen_self_static=unknown ;;
cannam@86 11285 esac
cannam@86 11286 fi
cannam@86 11287
cannam@86 11288
cannam@86 11289
cannam@86 11290
cannam@86 11291
cannam@86 11292
cannam@86 11293
cannam@86 11294
cannam@86 11295
cannam@86 11296
cannam@86 11297
cannam@86 11298
cannam@86 11299
cannam@86 11300
cannam@86 11301
cannam@86 11302
cannam@86 11303
cannam@86 11304 striplib=
cannam@86 11305 old_striplib=
cannam@86 11306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
cannam@86 11307 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
cannam@86 11308 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
cannam@86 11309 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
cannam@86 11310 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cannam@86 11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@86 11312 $as_echo "yes" >&6; }
cannam@86 11313 else
cannam@86 11314 # FIXME - insert some real tests, host_os isn't really good enough
cannam@86 11315 case $host_os in
cannam@86 11316 darwin*)
cannam@86 11317 if test -n "$STRIP" ; then
cannam@86 11318 striplib="$STRIP -x"
cannam@86 11319 old_striplib="$STRIP -S"
cannam@86 11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@86 11321 $as_echo "yes" >&6; }
cannam@86 11322 else
cannam@86 11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 11324 $as_echo "no" >&6; }
cannam@86 11325 fi
cannam@86 11326 ;;
cannam@86 11327 *)
cannam@86 11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 11329 $as_echo "no" >&6; }
cannam@86 11330 ;;
cannam@86 11331 esac
cannam@86 11332 fi
cannam@86 11333
cannam@86 11334
cannam@86 11335
cannam@86 11336
cannam@86 11337
cannam@86 11338
cannam@86 11339
cannam@86 11340
cannam@86 11341
cannam@86 11342
cannam@86 11343
cannam@86 11344
cannam@86 11345 # Report which library types will actually be built
cannam@86 11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
cannam@86 11347 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
cannam@86 11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
cannam@86 11349 $as_echo "$can_build_shared" >&6; }
cannam@86 11350
cannam@86 11351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
cannam@86 11352 $as_echo_n "checking whether to build shared libraries... " >&6; }
cannam@86 11353 test "$can_build_shared" = "no" && enable_shared=no
cannam@86 11354
cannam@86 11355 # On AIX, shared libraries and static libraries use the same namespace, and
cannam@86 11356 # are all built from PIC.
cannam@86 11357 case $host_os in
cannam@86 11358 aix3*)
cannam@86 11359 test "$enable_shared" = yes && enable_static=no
cannam@86 11360 if test -n "$RANLIB"; then
cannam@86 11361 archive_cmds="$archive_cmds~\$RANLIB \$lib"
cannam@86 11362 postinstall_cmds='$RANLIB $lib'
cannam@86 11363 fi
cannam@86 11364 ;;
cannam@86 11365
cannam@86 11366 aix[4-9]*)
cannam@86 11367 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
cannam@86 11368 test "$enable_shared" = yes && enable_static=no
cannam@86 11369 fi
cannam@86 11370 ;;
cannam@86 11371 esac
cannam@86 11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
cannam@86 11373 $as_echo "$enable_shared" >&6; }
cannam@86 11374
cannam@86 11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
cannam@86 11376 $as_echo_n "checking whether to build static libraries... " >&6; }
cannam@86 11377 # Make sure either enable_shared or enable_static is yes.
cannam@86 11378 test "$enable_shared" = yes || enable_static=yes
cannam@86 11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
cannam@86 11380 $as_echo "$enable_static" >&6; }
cannam@86 11381
cannam@86 11382
cannam@86 11383
cannam@86 11384
cannam@86 11385 fi
cannam@86 11386 ac_ext=c
cannam@86 11387 ac_cpp='$CPP $CPPFLAGS'
cannam@86 11388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@86 11389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@86 11390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@86 11391
cannam@86 11392 CC="$lt_save_CC"
cannam@86 11393
cannam@86 11394
cannam@86 11395
cannam@86 11396
cannam@86 11397
cannam@86 11398
cannam@86 11399
cannam@86 11400
cannam@86 11401
cannam@86 11402
cannam@86 11403
cannam@86 11404
cannam@86 11405
cannam@86 11406 ac_config_commands="$ac_config_commands libtool"
cannam@86 11407
cannam@86 11408
cannam@86 11409
cannam@86 11410
cannam@86 11411 # Only expand once:
cannam@86 11412
cannam@86 11413
cannam@86 11414 if test "x$CC" != xcc; then
cannam@86 11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
cannam@86 11416 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
cannam@86 11417 else
cannam@86 11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
cannam@86 11419 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
cannam@86 11420 fi
cannam@86 11421 set dummy $CC; ac_cc=`$as_echo "$2" |
cannam@86 11422 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cannam@86 11423 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cannam@86 11424 $as_echo_n "(cached) " >&6
cannam@86 11425 else
cannam@86 11426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 11427 /* end confdefs.h. */
cannam@86 11428
cannam@86 11429 int
cannam@86 11430 main ()
cannam@86 11431 {
cannam@86 11432
cannam@86 11433 ;
cannam@86 11434 return 0;
cannam@86 11435 }
cannam@86 11436 _ACEOF
cannam@86 11437 # Make sure it works both with $CC and with simple cc.
cannam@86 11438 # We do the test twice because some compilers refuse to overwrite an
cannam@86 11439 # existing .o file with -o, though they will create one.
cannam@86 11440 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
cannam@86 11441 rm -f conftest2.*
cannam@86 11442 if { { case "(($ac_try" in
cannam@86 11443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@86 11444 *) ac_try_echo=$ac_try;;
cannam@86 11445 esac
cannam@86 11446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@86 11447 $as_echo "$ac_try_echo"; } >&5
cannam@86 11448 (eval "$ac_try") 2>&5
cannam@86 11449 ac_status=$?
cannam@86 11450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 11451 test $ac_status = 0; } &&
cannam@86 11452 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cannam@86 11453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@86 11454 *) ac_try_echo=$ac_try;;
cannam@86 11455 esac
cannam@86 11456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@86 11457 $as_echo "$ac_try_echo"; } >&5
cannam@86 11458 (eval "$ac_try") 2>&5
cannam@86 11459 ac_status=$?
cannam@86 11460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 11461 test $ac_status = 0; };
cannam@86 11462 then
cannam@86 11463 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
cannam@86 11464 if test "x$CC" != xcc; then
cannam@86 11465 # Test first that cc exists at all.
cannam@86 11466 if { ac_try='cc -c conftest.$ac_ext >&5'
cannam@86 11467 { { case "(($ac_try" in
cannam@86 11468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@86 11469 *) ac_try_echo=$ac_try;;
cannam@86 11470 esac
cannam@86 11471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@86 11472 $as_echo "$ac_try_echo"; } >&5
cannam@86 11473 (eval "$ac_try") 2>&5
cannam@86 11474 ac_status=$?
cannam@86 11475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 11476 test $ac_status = 0; }; }; then
cannam@86 11477 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
cannam@86 11478 rm -f conftest2.*
cannam@86 11479 if { { case "(($ac_try" in
cannam@86 11480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@86 11481 *) ac_try_echo=$ac_try;;
cannam@86 11482 esac
cannam@86 11483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@86 11484 $as_echo "$ac_try_echo"; } >&5
cannam@86 11485 (eval "$ac_try") 2>&5
cannam@86 11486 ac_status=$?
cannam@86 11487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 11488 test $ac_status = 0; } &&
cannam@86 11489 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cannam@86 11490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
cannam@86 11491 *) ac_try_echo=$ac_try;;
cannam@86 11492 esac
cannam@86 11493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
cannam@86 11494 $as_echo "$ac_try_echo"; } >&5
cannam@86 11495 (eval "$ac_try") 2>&5
cannam@86 11496 ac_status=$?
cannam@86 11497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cannam@86 11498 test $ac_status = 0; };
cannam@86 11499 then
cannam@86 11500 # cc works too.
cannam@86 11501 :
cannam@86 11502 else
cannam@86 11503 # cc exists but doesn't like -o.
cannam@86 11504 eval ac_cv_prog_cc_${ac_cc}_c_o=no
cannam@86 11505 fi
cannam@86 11506 fi
cannam@86 11507 fi
cannam@86 11508 else
cannam@86 11509 eval ac_cv_prog_cc_${ac_cc}_c_o=no
cannam@86 11510 fi
cannam@86 11511 rm -f core conftest*
cannam@86 11512
cannam@86 11513 fi
cannam@86 11514 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
cannam@86 11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cannam@86 11516 $as_echo "yes" >&6; }
cannam@86 11517 else
cannam@86 11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cannam@86 11519 $as_echo "no" >&6; }
cannam@86 11520
cannam@86 11521 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
cannam@86 11522
cannam@86 11523 fi
cannam@86 11524
cannam@86 11525 # FIXME: we rely on the cache variable name because
cannam@86 11526 # there is no other way.
cannam@86 11527 set dummy $CC
cannam@86 11528 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cannam@86 11529 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
cannam@86 11530 if test "$am_t" != yes; then
cannam@86 11531 # Losing compiler, so override with the script.
cannam@86 11532 # FIXME: It is wrong to rewrite CC.
cannam@86 11533 # But if we don't then we get into trouble of one sort or another.
cannam@86 11534 # A longer-term fix would be to have automake use am__CC in this case,
cannam@86 11535 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
cannam@86 11536 CC="$am_aux_dir/compile $CC"
cannam@86 11537 fi
cannam@86 11538
cannam@86 11539
cannam@86 11540
cannam@86 11541 ac_config_headers="$ac_config_headers config.h"
cannam@86 11542
cannam@86 11543
cannam@86 11544
cannam@86 11545 cflags_save="$CFLAGS"
cannam@86 11546 if test -z "$GCC"; then
cannam@86 11547 case $host in
cannam@86 11548 *-*-irix*)
cannam@86 11549 DEBUG="-g -signed"
cannam@86 11550 CFLAGS="-O2 -w -signed"
cannam@86 11551 PROFILE="-p -g3 -O2 -signed"
cannam@86 11552 ;;
cannam@86 11553 sparc-sun-solaris*)
cannam@86 11554 DEBUG="-v -g"
cannam@86 11555 CFLAGS="-xO4 -fast -w -fsimple -native -xcg92"
cannam@86 11556 PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc"
cannam@86 11557 ;;
cannam@86 11558 *)
cannam@86 11559 DEBUG="-g"
cannam@86 11560 CFLAGS="-O"
cannam@86 11561 PROFILE="-g -p"
cannam@86 11562 ;;
cannam@86 11563 esac
cannam@86 11564 else
cannam@86 11565 case $host in
cannam@86 11566 *-*-linux*)
cannam@86 11567 DEBUG="-g -Wall -fsigned-char"
cannam@86 11568 CFLAGS="-O20 -Wall -ffast-math -fsigned-char"
cannam@86 11569 PROFILE="-Wall -W -pg -g -O20 -ffast-math -fsigned-char"
cannam@86 11570 ;;
cannam@86 11571 sparc-sun-*)
cannam@86 11572 DEBUG="-g -Wall -fsigned-char"
cannam@86 11573 CFLAGS="-O20 -ffast-math -fsigned-char"
cannam@86 11574 PROFILE="-pg -g -O20 -fsigned-char"
cannam@86 11575 ;;
cannam@86 11576 *-*-darwin*)
cannam@86 11577 DEBUG="-fno-common -g -Wall -fsigned-char"
cannam@86 11578 CFLAGS="-fno-common -O4 -Wall -fsigned-char -ffast-math"
cannam@86 11579 PROFILE="-fno-common -O4 -Wall -pg -g -fsigned-char -ffast-math"
cannam@86 11580 ;;
cannam@86 11581 *)
cannam@86 11582 DEBUG="-g -Wall -fsigned-char"
cannam@86 11583 CFLAGS="-O20 -fsigned-char"
cannam@86 11584 PROFILE="-O20 -g -pg -fsigned-char"
cannam@86 11585 ;;
cannam@86 11586 esac
cannam@86 11587 fi
cannam@86 11588 CFLAGS="$CFLAGS $cflags_save"
cannam@86 11589 DEBUG="$DEBUG $cflags_save"
cannam@86 11590 PROFILE="$PROFILE $cflags_save"
cannam@86 11591
cannam@86 11592
cannam@86 11593
cannam@86 11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cannam@86 11595 $as_echo_n "checking for ANSI C header files... " >&6; }
cannam@86 11596 if ${ac_cv_header_stdc+:} false; then :
cannam@86 11597 $as_echo_n "(cached) " >&6
cannam@86 11598 else
cannam@86 11599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 11600 /* end confdefs.h. */
cannam@86 11601 #include <stdlib.h>
cannam@86 11602 #include <stdarg.h>
cannam@86 11603 #include <string.h>
cannam@86 11604 #include <float.h>
cannam@86 11605
cannam@86 11606 int
cannam@86 11607 main ()
cannam@86 11608 {
cannam@86 11609
cannam@86 11610 ;
cannam@86 11611 return 0;
cannam@86 11612 }
cannam@86 11613 _ACEOF
cannam@86 11614 if ac_fn_c_try_compile "$LINENO"; then :
cannam@86 11615 ac_cv_header_stdc=yes
cannam@86 11616 else
cannam@86 11617 ac_cv_header_stdc=no
cannam@86 11618 fi
cannam@86 11619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@86 11620
cannam@86 11621 if test $ac_cv_header_stdc = yes; then
cannam@86 11622 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cannam@86 11623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 11624 /* end confdefs.h. */
cannam@86 11625 #include <string.h>
cannam@86 11626
cannam@86 11627 _ACEOF
cannam@86 11628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cannam@86 11629 $EGREP "memchr" >/dev/null 2>&1; then :
cannam@86 11630
cannam@86 11631 else
cannam@86 11632 ac_cv_header_stdc=no
cannam@86 11633 fi
cannam@86 11634 rm -f conftest*
cannam@86 11635
cannam@86 11636 fi
cannam@86 11637
cannam@86 11638 if test $ac_cv_header_stdc = yes; then
cannam@86 11639 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cannam@86 11640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 11641 /* end confdefs.h. */
cannam@86 11642 #include <stdlib.h>
cannam@86 11643
cannam@86 11644 _ACEOF
cannam@86 11645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cannam@86 11646 $EGREP "free" >/dev/null 2>&1; then :
cannam@86 11647
cannam@86 11648 else
cannam@86 11649 ac_cv_header_stdc=no
cannam@86 11650 fi
cannam@86 11651 rm -f conftest*
cannam@86 11652
cannam@86 11653 fi
cannam@86 11654
cannam@86 11655 if test $ac_cv_header_stdc = yes; then
cannam@86 11656 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cannam@86 11657 if test "$cross_compiling" = yes; then :
cannam@86 11658 :
cannam@86 11659 else
cannam@86 11660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 11661 /* end confdefs.h. */
cannam@86 11662 #include <ctype.h>
cannam@86 11663 #include <stdlib.h>
cannam@86 11664 #if ((' ' & 0x0FF) == 0x020)
cannam@86 11665 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
cannam@86 11666 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
cannam@86 11667 #else
cannam@86 11668 # define ISLOWER(c) \
cannam@86 11669 (('a' <= (c) && (c) <= 'i') \
cannam@86 11670 || ('j' <= (c) && (c) <= 'r') \
cannam@86 11671 || ('s' <= (c) && (c) <= 'z'))
cannam@86 11672 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
cannam@86 11673 #endif
cannam@86 11674
cannam@86 11675 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
cannam@86 11676 int
cannam@86 11677 main ()
cannam@86 11678 {
cannam@86 11679 int i;
cannam@86 11680 for (i = 0; i < 256; i++)
cannam@86 11681 if (XOR (islower (i), ISLOWER (i))
cannam@86 11682 || toupper (i) != TOUPPER (i))
cannam@86 11683 return 2;
cannam@86 11684 return 0;
cannam@86 11685 }
cannam@86 11686 _ACEOF
cannam@86 11687 if ac_fn_c_try_run "$LINENO"; then :
cannam@86 11688
cannam@86 11689 else
cannam@86 11690 ac_cv_header_stdc=no
cannam@86 11691 fi
cannam@86 11692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
cannam@86 11693 conftest.$ac_objext conftest.beam conftest.$ac_ext
cannam@86 11694 fi
cannam@86 11695
cannam@86 11696 fi
cannam@86 11697 fi
cannam@86 11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cannam@86 11699 $as_echo "$ac_cv_header_stdc" >&6; }
cannam@86 11700 if test $ac_cv_header_stdc = yes; then
cannam@86 11701
cannam@86 11702 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
cannam@86 11703
cannam@86 11704 fi
cannam@86 11705
cannam@86 11706 INCLUDE_INTTYPES_H=0
cannam@86 11707 INCLUDE_STDINT_H=0
cannam@86 11708 INCLUDE_SYS_TYPES_H=0
cannam@86 11709 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
cannam@86 11710 if test "x$ac_cv_header_inttypes_h" = xyes; then :
cannam@86 11711 INCLUDE_INTTYPES_H=1
cannam@86 11712 fi
cannam@86 11713
cannam@86 11714
cannam@86 11715 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
cannam@86 11716 if test "x$ac_cv_header_stdint_h" = xyes; then :
cannam@86 11717 INCLUDE_STDINT_H=1
cannam@86 11718 fi
cannam@86 11719
cannam@86 11720
cannam@86 11721 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
cannam@86 11722 if test "x$ac_cv_header_sys_types_h" = xyes; then :
cannam@86 11723 INCLUDE_SYS_TYPES_H=1
cannam@86 11724 fi
cannam@86 11725
cannam@86 11726
cannam@86 11727
cannam@86 11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
cannam@86 11729 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
cannam@86 11730 if ${ac_cv_c_const+:} false; then :
cannam@86 11731 $as_echo_n "(cached) " >&6
cannam@86 11732 else
cannam@86 11733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 11734 /* end confdefs.h. */
cannam@86 11735
cannam@86 11736 int
cannam@86 11737 main ()
cannam@86 11738 {
cannam@86 11739 /* FIXME: Include the comments suggested by Paul. */
cannam@86 11740 #ifndef __cplusplus
cannam@86 11741 /* Ultrix mips cc rejects this. */
cannam@86 11742 typedef int charset[2];
cannam@86 11743 const charset cs;
cannam@86 11744 /* SunOS 4.1.1 cc rejects this. */
cannam@86 11745 char const *const *pcpcc;
cannam@86 11746 char **ppc;
cannam@86 11747 /* NEC SVR4.0.2 mips cc rejects this. */
cannam@86 11748 struct point {int x, y;};
cannam@86 11749 static struct point const zero = {0,0};
cannam@86 11750 /* AIX XL C 1.02.0.0 rejects this.
cannam@86 11751 It does not let you subtract one const X* pointer from another in
cannam@86 11752 an arm of an if-expression whose if-part is not a constant
cannam@86 11753 expression */
cannam@86 11754 const char *g = "string";
cannam@86 11755 pcpcc = &g + (g ? g-g : 0);
cannam@86 11756 /* HPUX 7.0 cc rejects these. */
cannam@86 11757 ++pcpcc;
cannam@86 11758 ppc = (char**) pcpcc;
cannam@86 11759 pcpcc = (char const *const *) ppc;
cannam@86 11760 { /* SCO 3.2v4 cc rejects this. */
cannam@86 11761 char *t;
cannam@86 11762 char const *s = 0 ? (char *) 0 : (char const *) 0;
cannam@86 11763
cannam@86 11764 *t++ = 0;
cannam@86 11765 if (s) return 0;
cannam@86 11766 }
cannam@86 11767 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
cannam@86 11768 int x[] = {25, 17};
cannam@86 11769 const int *foo = &x[0];
cannam@86 11770 ++foo;
cannam@86 11771 }
cannam@86 11772 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
cannam@86 11773 typedef const int *iptr;
cannam@86 11774 iptr p = 0;
cannam@86 11775 ++p;
cannam@86 11776 }
cannam@86 11777 { /* AIX XL C 1.02.0.0 rejects this saying
cannam@86 11778 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
cannam@86 11779 struct s { int j; const int *ap[3]; };
cannam@86 11780 struct s *b; b->j = 5;
cannam@86 11781 }
cannam@86 11782 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
cannam@86 11783 const int foo = 10;
cannam@86 11784 if (!foo) return 0;
cannam@86 11785 }
cannam@86 11786 return !cs[0] && !zero.x;
cannam@86 11787 #endif
cannam@86 11788
cannam@86 11789 ;
cannam@86 11790 return 0;
cannam@86 11791 }
cannam@86 11792 _ACEOF
cannam@86 11793 if ac_fn_c_try_compile "$LINENO"; then :
cannam@86 11794 ac_cv_c_const=yes
cannam@86 11795 else
cannam@86 11796 ac_cv_c_const=no
cannam@86 11797 fi
cannam@86 11798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@86 11799 fi
cannam@86 11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
cannam@86 11801 $as_echo "$ac_cv_c_const" >&6; }
cannam@86 11802 if test $ac_cv_c_const = no; then
cannam@86 11803
cannam@86 11804 $as_echo "#define const /**/" >>confdefs.h
cannam@86 11805
cannam@86 11806 fi
cannam@86 11807
cannam@86 11808
cannam@86 11809
cannam@86 11810 # The cast to long int works around a bug in the HP C Compiler
cannam@86 11811 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
cannam@86 11812 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
cannam@86 11813 # This bug is HP SR number 8606223364.
cannam@86 11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int16_t" >&5
cannam@86 11815 $as_echo_n "checking size of int16_t... " >&6; }
cannam@86 11816 if ${ac_cv_sizeof_int16_t+:} false; then :
cannam@86 11817 $as_echo_n "(cached) " >&6
cannam@86 11818 else
cannam@86 11819 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int16_t))" "ac_cv_sizeof_int16_t" "$ac_includes_default"; then :
cannam@86 11820
cannam@86 11821 else
cannam@86 11822 if test "$ac_cv_type_int16_t" = yes; then
cannam@86 11823 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@86 11824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@86 11825 as_fn_error 77 "cannot compute sizeof (int16_t)
cannam@86 11826 See \`config.log' for more details" "$LINENO" 5; }
cannam@86 11827 else
cannam@86 11828 ac_cv_sizeof_int16_t=0
cannam@86 11829 fi
cannam@86 11830 fi
cannam@86 11831
cannam@86 11832 fi
cannam@86 11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int16_t" >&5
cannam@86 11834 $as_echo "$ac_cv_sizeof_int16_t" >&6; }
cannam@86 11835
cannam@86 11836
cannam@86 11837
cannam@86 11838 cat >>confdefs.h <<_ACEOF
cannam@86 11839 #define SIZEOF_INT16_T $ac_cv_sizeof_int16_t
cannam@86 11840 _ACEOF
cannam@86 11841
cannam@86 11842
cannam@86 11843 # The cast to long int works around a bug in the HP C Compiler
cannam@86 11844 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
cannam@86 11845 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
cannam@86 11846 # This bug is HP SR number 8606223364.
cannam@86 11847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint16_t" >&5
cannam@86 11848 $as_echo_n "checking size of uint16_t... " >&6; }
cannam@86 11849 if ${ac_cv_sizeof_uint16_t+:} false; then :
cannam@86 11850 $as_echo_n "(cached) " >&6
cannam@86 11851 else
cannam@86 11852 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint16_t))" "ac_cv_sizeof_uint16_t" "$ac_includes_default"; then :
cannam@86 11853
cannam@86 11854 else
cannam@86 11855 if test "$ac_cv_type_uint16_t" = yes; then
cannam@86 11856 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@86 11857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@86 11858 as_fn_error 77 "cannot compute sizeof (uint16_t)
cannam@86 11859 See \`config.log' for more details" "$LINENO" 5; }
cannam@86 11860 else
cannam@86 11861 ac_cv_sizeof_uint16_t=0
cannam@86 11862 fi
cannam@86 11863 fi
cannam@86 11864
cannam@86 11865 fi
cannam@86 11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint16_t" >&5
cannam@86 11867 $as_echo "$ac_cv_sizeof_uint16_t" >&6; }
cannam@86 11868
cannam@86 11869
cannam@86 11870
cannam@86 11871 cat >>confdefs.h <<_ACEOF
cannam@86 11872 #define SIZEOF_UINT16_T $ac_cv_sizeof_uint16_t
cannam@86 11873 _ACEOF
cannam@86 11874
cannam@86 11875
cannam@86 11876 # The cast to long int works around a bug in the HP C Compiler
cannam@86 11877 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
cannam@86 11878 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
cannam@86 11879 # This bug is HP SR number 8606223364.
cannam@86 11880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of u_int16_t" >&5
cannam@86 11881 $as_echo_n "checking size of u_int16_t... " >&6; }
cannam@86 11882 if ${ac_cv_sizeof_u_int16_t+:} false; then :
cannam@86 11883 $as_echo_n "(cached) " >&6
cannam@86 11884 else
cannam@86 11885 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (u_int16_t))" "ac_cv_sizeof_u_int16_t" "$ac_includes_default"; then :
cannam@86 11886
cannam@86 11887 else
cannam@86 11888 if test "$ac_cv_type_u_int16_t" = yes; then
cannam@86 11889 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@86 11890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@86 11891 as_fn_error 77 "cannot compute sizeof (u_int16_t)
cannam@86 11892 See \`config.log' for more details" "$LINENO" 5; }
cannam@86 11893 else
cannam@86 11894 ac_cv_sizeof_u_int16_t=0
cannam@86 11895 fi
cannam@86 11896 fi
cannam@86 11897
cannam@86 11898 fi
cannam@86 11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_u_int16_t" >&5
cannam@86 11900 $as_echo "$ac_cv_sizeof_u_int16_t" >&6; }
cannam@86 11901
cannam@86 11902
cannam@86 11903
cannam@86 11904 cat >>confdefs.h <<_ACEOF
cannam@86 11905 #define SIZEOF_U_INT16_T $ac_cv_sizeof_u_int16_t
cannam@86 11906 _ACEOF
cannam@86 11907
cannam@86 11908
cannam@86 11909 # The cast to long int works around a bug in the HP C Compiler
cannam@86 11910 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
cannam@86 11911 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
cannam@86 11912 # This bug is HP SR number 8606223364.
cannam@86 11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int32_t" >&5
cannam@86 11914 $as_echo_n "checking size of int32_t... " >&6; }
cannam@86 11915 if ${ac_cv_sizeof_int32_t+:} false; then :
cannam@86 11916 $as_echo_n "(cached) " >&6
cannam@86 11917 else
cannam@86 11918 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int32_t))" "ac_cv_sizeof_int32_t" "$ac_includes_default"; then :
cannam@86 11919
cannam@86 11920 else
cannam@86 11921 if test "$ac_cv_type_int32_t" = yes; then
cannam@86 11922 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@86 11923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@86 11924 as_fn_error 77 "cannot compute sizeof (int32_t)
cannam@86 11925 See \`config.log' for more details" "$LINENO" 5; }
cannam@86 11926 else
cannam@86 11927 ac_cv_sizeof_int32_t=0
cannam@86 11928 fi
cannam@86 11929 fi
cannam@86 11930
cannam@86 11931 fi
cannam@86 11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int32_t" >&5
cannam@86 11933 $as_echo "$ac_cv_sizeof_int32_t" >&6; }
cannam@86 11934
cannam@86 11935
cannam@86 11936
cannam@86 11937 cat >>confdefs.h <<_ACEOF
cannam@86 11938 #define SIZEOF_INT32_T $ac_cv_sizeof_int32_t
cannam@86 11939 _ACEOF
cannam@86 11940
cannam@86 11941
cannam@86 11942 # The cast to long int works around a bug in the HP C Compiler
cannam@86 11943 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
cannam@86 11944 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
cannam@86 11945 # This bug is HP SR number 8606223364.
cannam@86 11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint32_t" >&5
cannam@86 11947 $as_echo_n "checking size of uint32_t... " >&6; }
cannam@86 11948 if ${ac_cv_sizeof_uint32_t+:} false; then :
cannam@86 11949 $as_echo_n "(cached) " >&6
cannam@86 11950 else
cannam@86 11951 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint32_t))" "ac_cv_sizeof_uint32_t" "$ac_includes_default"; then :
cannam@86 11952
cannam@86 11953 else
cannam@86 11954 if test "$ac_cv_type_uint32_t" = yes; then
cannam@86 11955 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@86 11956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@86 11957 as_fn_error 77 "cannot compute sizeof (uint32_t)
cannam@86 11958 See \`config.log' for more details" "$LINENO" 5; }
cannam@86 11959 else
cannam@86 11960 ac_cv_sizeof_uint32_t=0
cannam@86 11961 fi
cannam@86 11962 fi
cannam@86 11963
cannam@86 11964 fi
cannam@86 11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint32_t" >&5
cannam@86 11966 $as_echo "$ac_cv_sizeof_uint32_t" >&6; }
cannam@86 11967
cannam@86 11968
cannam@86 11969
cannam@86 11970 cat >>confdefs.h <<_ACEOF
cannam@86 11971 #define SIZEOF_UINT32_T $ac_cv_sizeof_uint32_t
cannam@86 11972 _ACEOF
cannam@86 11973
cannam@86 11974
cannam@86 11975 # The cast to long int works around a bug in the HP C Compiler
cannam@86 11976 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
cannam@86 11977 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
cannam@86 11978 # This bug is HP SR number 8606223364.
cannam@86 11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of u_int32_t" >&5
cannam@86 11980 $as_echo_n "checking size of u_int32_t... " >&6; }
cannam@86 11981 if ${ac_cv_sizeof_u_int32_t+:} false; then :
cannam@86 11982 $as_echo_n "(cached) " >&6
cannam@86 11983 else
cannam@86 11984 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (u_int32_t))" "ac_cv_sizeof_u_int32_t" "$ac_includes_default"; then :
cannam@86 11985
cannam@86 11986 else
cannam@86 11987 if test "$ac_cv_type_u_int32_t" = yes; then
cannam@86 11988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@86 11989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@86 11990 as_fn_error 77 "cannot compute sizeof (u_int32_t)
cannam@86 11991 See \`config.log' for more details" "$LINENO" 5; }
cannam@86 11992 else
cannam@86 11993 ac_cv_sizeof_u_int32_t=0
cannam@86 11994 fi
cannam@86 11995 fi
cannam@86 11996
cannam@86 11997 fi
cannam@86 11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_u_int32_t" >&5
cannam@86 11999 $as_echo "$ac_cv_sizeof_u_int32_t" >&6; }
cannam@86 12000
cannam@86 12001
cannam@86 12002
cannam@86 12003 cat >>confdefs.h <<_ACEOF
cannam@86 12004 #define SIZEOF_U_INT32_T $ac_cv_sizeof_u_int32_t
cannam@86 12005 _ACEOF
cannam@86 12006
cannam@86 12007
cannam@86 12008 # The cast to long int works around a bug in the HP C Compiler
cannam@86 12009 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
cannam@86 12010 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
cannam@86 12011 # This bug is HP SR number 8606223364.
cannam@86 12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int64_t" >&5
cannam@86 12013 $as_echo_n "checking size of int64_t... " >&6; }
cannam@86 12014 if ${ac_cv_sizeof_int64_t+:} false; then :
cannam@86 12015 $as_echo_n "(cached) " >&6
cannam@86 12016 else
cannam@86 12017 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int64_t))" "ac_cv_sizeof_int64_t" "$ac_includes_default"; then :
cannam@86 12018
cannam@86 12019 else
cannam@86 12020 if test "$ac_cv_type_int64_t" = yes; then
cannam@86 12021 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@86 12022 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@86 12023 as_fn_error 77 "cannot compute sizeof (int64_t)
cannam@86 12024 See \`config.log' for more details" "$LINENO" 5; }
cannam@86 12025 else
cannam@86 12026 ac_cv_sizeof_int64_t=0
cannam@86 12027 fi
cannam@86 12028 fi
cannam@86 12029
cannam@86 12030 fi
cannam@86 12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int64_t" >&5
cannam@86 12032 $as_echo "$ac_cv_sizeof_int64_t" >&6; }
cannam@86 12033
cannam@86 12034
cannam@86 12035
cannam@86 12036 cat >>confdefs.h <<_ACEOF
cannam@86 12037 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
cannam@86 12038 _ACEOF
cannam@86 12039
cannam@86 12040
cannam@86 12041 # The cast to long int works around a bug in the HP C Compiler
cannam@86 12042 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
cannam@86 12043 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
cannam@86 12044 # This bug is HP SR number 8606223364.
cannam@86 12045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
cannam@86 12046 $as_echo_n "checking size of short... " >&6; }
cannam@86 12047 if ${ac_cv_sizeof_short+:} false; then :
cannam@86 12048 $as_echo_n "(cached) " >&6
cannam@86 12049 else
cannam@86 12050 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
cannam@86 12051
cannam@86 12052 else
cannam@86 12053 if test "$ac_cv_type_short" = yes; then
cannam@86 12054 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@86 12055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@86 12056 as_fn_error 77 "cannot compute sizeof (short)
cannam@86 12057 See \`config.log' for more details" "$LINENO" 5; }
cannam@86 12058 else
cannam@86 12059 ac_cv_sizeof_short=0
cannam@86 12060 fi
cannam@86 12061 fi
cannam@86 12062
cannam@86 12063 fi
cannam@86 12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
cannam@86 12065 $as_echo "$ac_cv_sizeof_short" >&6; }
cannam@86 12066
cannam@86 12067
cannam@86 12068
cannam@86 12069 cat >>confdefs.h <<_ACEOF
cannam@86 12070 #define SIZEOF_SHORT $ac_cv_sizeof_short
cannam@86 12071 _ACEOF
cannam@86 12072
cannam@86 12073
cannam@86 12074 # The cast to long int works around a bug in the HP C Compiler
cannam@86 12075 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
cannam@86 12076 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
cannam@86 12077 # This bug is HP SR number 8606223364.
cannam@86 12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
cannam@86 12079 $as_echo_n "checking size of int... " >&6; }
cannam@86 12080 if ${ac_cv_sizeof_int+:} false; then :
cannam@86 12081 $as_echo_n "(cached) " >&6
cannam@86 12082 else
cannam@86 12083 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
cannam@86 12084
cannam@86 12085 else
cannam@86 12086 if test "$ac_cv_type_int" = yes; then
cannam@86 12087 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@86 12088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@86 12089 as_fn_error 77 "cannot compute sizeof (int)
cannam@86 12090 See \`config.log' for more details" "$LINENO" 5; }
cannam@86 12091 else
cannam@86 12092 ac_cv_sizeof_int=0
cannam@86 12093 fi
cannam@86 12094 fi
cannam@86 12095
cannam@86 12096 fi
cannam@86 12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
cannam@86 12098 $as_echo "$ac_cv_sizeof_int" >&6; }
cannam@86 12099
cannam@86 12100
cannam@86 12101
cannam@86 12102 cat >>confdefs.h <<_ACEOF
cannam@86 12103 #define SIZEOF_INT $ac_cv_sizeof_int
cannam@86 12104 _ACEOF
cannam@86 12105
cannam@86 12106
cannam@86 12107 # The cast to long int works around a bug in the HP C Compiler
cannam@86 12108 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
cannam@86 12109 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
cannam@86 12110 # This bug is HP SR number 8606223364.
cannam@86 12111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
cannam@86 12112 $as_echo_n "checking size of long... " >&6; }
cannam@86 12113 if ${ac_cv_sizeof_long+:} false; then :
cannam@86 12114 $as_echo_n "(cached) " >&6
cannam@86 12115 else
cannam@86 12116 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
cannam@86 12117
cannam@86 12118 else
cannam@86 12119 if test "$ac_cv_type_long" = yes; then
cannam@86 12120 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@86 12121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@86 12122 as_fn_error 77 "cannot compute sizeof (long)
cannam@86 12123 See \`config.log' for more details" "$LINENO" 5; }
cannam@86 12124 else
cannam@86 12125 ac_cv_sizeof_long=0
cannam@86 12126 fi
cannam@86 12127 fi
cannam@86 12128
cannam@86 12129 fi
cannam@86 12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
cannam@86 12131 $as_echo "$ac_cv_sizeof_long" >&6; }
cannam@86 12132
cannam@86 12133
cannam@86 12134
cannam@86 12135 cat >>confdefs.h <<_ACEOF
cannam@86 12136 #define SIZEOF_LONG $ac_cv_sizeof_long
cannam@86 12137 _ACEOF
cannam@86 12138
cannam@86 12139
cannam@86 12140 # The cast to long int works around a bug in the HP C Compiler
cannam@86 12141 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
cannam@86 12142 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
cannam@86 12143 # This bug is HP SR number 8606223364.
cannam@86 12144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
cannam@86 12145 $as_echo_n "checking size of long long... " >&6; }
cannam@86 12146 if ${ac_cv_sizeof_long_long+:} false; then :
cannam@86 12147 $as_echo_n "(cached) " >&6
cannam@86 12148 else
cannam@86 12149 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
cannam@86 12150
cannam@86 12151 else
cannam@86 12152 if test "$ac_cv_type_long_long" = yes; then
cannam@86 12153 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cannam@86 12154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cannam@86 12155 as_fn_error 77 "cannot compute sizeof (long long)
cannam@86 12156 See \`config.log' for more details" "$LINENO" 5; }
cannam@86 12157 else
cannam@86 12158 ac_cv_sizeof_long_long=0
cannam@86 12159 fi
cannam@86 12160 fi
cannam@86 12161
cannam@86 12162 fi
cannam@86 12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
cannam@86 12164 $as_echo "$ac_cv_sizeof_long_long" >&6; }
cannam@86 12165
cannam@86 12166
cannam@86 12167
cannam@86 12168 cat >>confdefs.h <<_ACEOF
cannam@86 12169 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
cannam@86 12170 _ACEOF
cannam@86 12171
cannam@86 12172
cannam@86 12173
cannam@86 12174 case 2 in
cannam@86 12175 $ac_cv_sizeof_short) SIZE16="short";;
cannam@86 12176 $ac_cv_sizeof_int) SIZE16="int";;
cannam@86 12177 $ac_cv_sizeof_int16_t) SIZE16="int16_t";;
cannam@86 12178 esac
cannam@86 12179
cannam@86 12180 case 2 in
cannam@86 12181 $ac_cv_sizeof_short) USIZE16="unsigned short";;
cannam@86 12182 $ac_cv_sizeof_int) USIZE16="unsigned int";;
cannam@86 12183 $ac_cv_sizeof_u_int16_t) USIZE16="u_int16_t";;
cannam@86 12184 $ac_cv_sizeof_uint16_t) USIZE16="uint16_t";;
cannam@86 12185 esac
cannam@86 12186
cannam@86 12187 case 4 in
cannam@86 12188 $ac_cv_sizeof_short) SIZE32="short";;
cannam@86 12189 $ac_cv_sizeof_int) SIZE32="int";;
cannam@86 12190 $ac_cv_sizeof_long) SIZE32="long";;
cannam@86 12191 $ac_cv_sizeof_int32_t) SIZE32="int32_t";;
cannam@86 12192 esac
cannam@86 12193
cannam@86 12194 case 4 in
cannam@86 12195 $ac_cv_sizeof_short) USIZE32="unsigned short";;
cannam@86 12196 $ac_cv_sizeof_int) USIZE32="unsigned int";;
cannam@86 12197 $ac_cv_sizeof_long) USIZE32="unsigned long";;
cannam@86 12198 $ac_cv_sizeof_u_int32_t) USIZE32="u_int32_t";;
cannam@86 12199 $ac_cv_sizeof_uint32_t) USIZE32="uint32_t";;
cannam@86 12200 esac
cannam@86 12201
cannam@86 12202 case 8 in
cannam@86 12203 $ac_cv_sizeof_int) SIZE64="int";;
cannam@86 12204 $ac_cv_sizeof_long) SIZE64="long";;
cannam@86 12205 $ac_cv_sizeof_long_long) SIZE64="long long";;
cannam@86 12206 $ac_cv_sizeof_int64_t) SIZE64="int64_t";;
cannam@86 12207 esac
cannam@86 12208
cannam@86 12209 if test -z "$SIZE16"; then
cannam@86 12210 as_fn_error $? "No 16 bit type found on this platform!" "$LINENO" 5
cannam@86 12211 fi
cannam@86 12212 if test -z "$USIZE16"; then
cannam@86 12213 as_fn_error $? "No unsigned 16 bit type found on this platform!" "$LINENO" 5
cannam@86 12214 fi
cannam@86 12215 if test -z "$SIZE32"; then
cannam@86 12216 as_fn_error $? "No 32 bit type found on this platform!" "$LINENO" 5
cannam@86 12217 fi
cannam@86 12218 if test -z "$USIZE32"; then
cannam@86 12219 as_fn_error $? "No unsigned 32 bit type found on this platform!" "$LINENO" 5
cannam@86 12220 fi
cannam@86 12221 if test -z "$SIZE64"; then
cannam@86 12222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No 64 bit type found on this platform!" >&5
cannam@86 12223 $as_echo "$as_me: WARNING: No 64 bit type found on this platform!" >&2;}
cannam@86 12224 fi
cannam@86 12225
cannam@86 12226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cannam@86 12227 $as_echo_n "checking for working memcmp... " >&6; }
cannam@86 12228 if ${ac_cv_func_memcmp_working+:} false; then :
cannam@86 12229 $as_echo_n "(cached) " >&6
cannam@86 12230 else
cannam@86 12231 if test "$cross_compiling" = yes; then :
cannam@86 12232 ac_cv_func_memcmp_working=no
cannam@86 12233 else
cannam@86 12234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cannam@86 12235 /* end confdefs.h. */
cannam@86 12236 $ac_includes_default
cannam@86 12237 int
cannam@86 12238 main ()
cannam@86 12239 {
cannam@86 12240
cannam@86 12241 /* Some versions of memcmp are not 8-bit clean. */
cannam@86 12242 char c0 = '\100', c1 = '\200', c2 = '\201';
cannam@86 12243 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
cannam@86 12244 return 1;
cannam@86 12245
cannam@86 12246 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
cannam@86 12247 or more and with at least one buffer not starting on a 4-byte boundary.
cannam@86 12248 William Lewis provided this test program. */
cannam@86 12249 {
cannam@86 12250 char foo[21];
cannam@86 12251 char bar[21];
cannam@86 12252 int i;
cannam@86 12253 for (i = 0; i < 4; i++)
cannam@86 12254 {
cannam@86 12255 char *a = foo + i;
cannam@86 12256 char *b = bar + i;
cannam@86 12257 strcpy (a, "--------01111111");
cannam@86 12258 strcpy (b, "--------10000000");
cannam@86 12259 if (memcmp (a, b, 16) >= 0)
cannam@86 12260 return 1;
cannam@86 12261 }
cannam@86 12262 return 0;
cannam@86 12263 }
cannam@86 12264
cannam@86 12265 ;
cannam@86 12266 return 0;
cannam@86 12267 }
cannam@86 12268 _ACEOF
cannam@86 12269 if ac_fn_c_try_run "$LINENO"; then :
cannam@86 12270 ac_cv_func_memcmp_working=yes
cannam@86 12271 else
cannam@86 12272 ac_cv_func_memcmp_working=no
cannam@86 12273 fi
cannam@86 12274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
cannam@86 12275 conftest.$ac_objext conftest.beam conftest.$ac_ext
cannam@86 12276 fi
cannam@86 12277
cannam@86 12278 fi
cannam@86 12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cannam@86 12280 $as_echo "$ac_cv_func_memcmp_working" >&6; }
cannam@86 12281 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
cannam@86 12282 *" memcmp.$ac_objext "* ) ;;
cannam@86 12283 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
cannam@86 12284 ;;
cannam@86 12285 esac
cannam@86 12286
cannam@86 12287
cannam@86 12288
cannam@86 12289
cannam@86 12290
cannam@86 12291
cannam@86 12292
cannam@86 12293
cannam@86 12294
cannam@86 12295
cannam@86 12296
cannam@86 12297
cannam@86 12298
cannam@86 12299
cannam@86 12300
cannam@86 12301
cannam@86 12302
cannam@86 12303
cannam@86 12304
cannam@86 12305 ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile doc/libogg/Makefile include/Makefile include/ogg/Makefile include/ogg/config_types.h libogg.spec ogg.pc ogg-uninstalled.pc"
cannam@86 12306
cannam@86 12307 cat >confcache <<\_ACEOF
cannam@86 12308 # This file is a shell script that caches the results of configure
cannam@86 12309 # tests run on this system so they can be shared between configure
cannam@86 12310 # scripts and configure runs, see configure's option --config-cache.
cannam@86 12311 # It is not useful on other systems. If it contains results you don't
cannam@86 12312 # want to keep, you may remove or edit it.
cannam@86 12313 #
cannam@86 12314 # config.status only pays attention to the cache file if you give it
cannam@86 12315 # the --recheck option to rerun configure.
cannam@86 12316 #
cannam@86 12317 # `ac_cv_env_foo' variables (set or unset) will be overridden when
cannam@86 12318 # loading this file, other *unset* `ac_cv_foo' will be assigned the
cannam@86 12319 # following values.
cannam@86 12320
cannam@86 12321 _ACEOF
cannam@86 12322
cannam@86 12323 # The following way of writing the cache mishandles newlines in values,
cannam@86 12324 # but we know of no workaround that is simple, portable, and efficient.
cannam@86 12325 # So, we kill variables containing newlines.
cannam@86 12326 # Ultrix sh set writes to stderr and can't be redirected directly,
cannam@86 12327 # and sets the high bit in the cache file unless we assign to the vars.
cannam@86 12328 (
cannam@86 12329 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
cannam@86 12330 eval ac_val=\$$ac_var
cannam@86 12331 case $ac_val in #(
cannam@86 12332 *${as_nl}*)
cannam@86 12333 case $ac_var in #(
cannam@86 12334 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cannam@86 12335 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
cannam@86 12336 esac
cannam@86 12337 case $ac_var in #(
cannam@86 12338 _ | IFS | as_nl) ;; #(
cannam@86 12339 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cannam@86 12340 *) { eval $ac_var=; unset $ac_var;} ;;
cannam@86 12341 esac ;;
cannam@86 12342 esac
cannam@86 12343 done
cannam@86 12344
cannam@86 12345 (set) 2>&1 |
cannam@86 12346 case $as_nl`(ac_space=' '; set) 2>&1` in #(
cannam@86 12347 *${as_nl}ac_space=\ *)
cannam@86 12348 # `set' does not quote correctly, so add quotes: double-quote
cannam@86 12349 # substitution turns \\\\ into \\, and sed turns \\ into \.
cannam@86 12350 sed -n \
cannam@86 12351 "s/'/'\\\\''/g;
cannam@86 12352 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
cannam@86 12353 ;; #(
cannam@86 12354 *)
cannam@86 12355 # `set' quotes correctly as required by POSIX, so do not add quotes.
cannam@86 12356 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
cannam@86 12357 ;;
cannam@86 12358 esac |
cannam@86 12359 sort
cannam@86 12360 ) |
cannam@86 12361 sed '
cannam@86 12362 /^ac_cv_env_/b end
cannam@86 12363 t clear
cannam@86 12364 :clear
cannam@86 12365 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
cannam@86 12366 t end
cannam@86 12367 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
cannam@86 12368 :end' >>confcache
cannam@86 12369 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
cannam@86 12370 if test -w "$cache_file"; then
cannam@86 12371 if test "x$cache_file" != "x/dev/null"; then
cannam@86 12372 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cannam@86 12373 $as_echo "$as_me: updating cache $cache_file" >&6;}
cannam@86 12374 if test ! -f "$cache_file" || test -h "$cache_file"; then
cannam@86 12375 cat confcache >"$cache_file"
cannam@86 12376 else
cannam@86 12377 case $cache_file in #(
cannam@86 12378 */* | ?:*)
cannam@86 12379 mv -f confcache "$cache_file"$$ &&
cannam@86 12380 mv -f "$cache_file"$$ "$cache_file" ;; #(
cannam@86 12381 *)
cannam@86 12382 mv -f confcache "$cache_file" ;;
cannam@86 12383 esac
cannam@86 12384 fi
cannam@86 12385 fi
cannam@86 12386 else
cannam@86 12387 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cannam@86 12388 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
cannam@86 12389 fi
cannam@86 12390 fi
cannam@86 12391 rm -f confcache
cannam@86 12392
cannam@86 12393 test "x$prefix" = xNONE && prefix=$ac_default_prefix
cannam@86 12394 # Let make expand exec_prefix.
cannam@86 12395 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
cannam@86 12396
cannam@86 12397 DEFS=-DHAVE_CONFIG_H
cannam@86 12398
cannam@86 12399 ac_libobjs=
cannam@86 12400 ac_ltlibobjs=
cannam@86 12401 U=
cannam@86 12402 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
cannam@86 12403 # 1. Remove the extension, and $U if already installed.
cannam@86 12404 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
cannam@86 12405 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
cannam@86 12406 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
cannam@86 12407 # will be set to the directory where LIBOBJS objects are built.
cannam@86 12408 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
cannam@86 12409 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cannam@86 12410 done
cannam@86 12411 LIBOBJS=$ac_libobjs
cannam@86 12412
cannam@86 12413 LTLIBOBJS=$ac_ltlibobjs
cannam@86 12414
cannam@86 12415
cannam@86 12416 if test -n "$EXEEXT"; then
cannam@86 12417 am__EXEEXT_TRUE=
cannam@86 12418 am__EXEEXT_FALSE='#'
cannam@86 12419 else
cannam@86 12420 am__EXEEXT_TRUE='#'
cannam@86 12421 am__EXEEXT_FALSE=
cannam@86 12422 fi
cannam@86 12423
cannam@86 12424 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cannam@86 12425 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cannam@86 12426 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@86 12427 fi
cannam@86 12428 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cannam@86 12429 as_fn_error $? "conditional \"AMDEP\" was never defined.
cannam@86 12430 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@86 12431 fi
cannam@86 12432 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cannam@86 12433 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cannam@86 12434 Usually this means the macro was only invoked conditionally." "$LINENO" 5
cannam@86 12435 fi
cannam@86 12436
cannam@86 12437 : "${CONFIG_STATUS=./config.status}"
cannam@86 12438 ac_write_fail=0
cannam@86 12439 ac_clean_files_save=$ac_clean_files
cannam@86 12440 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cannam@86 12441 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cannam@86 12442 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cannam@86 12443 as_write_fail=0
cannam@86 12444 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cannam@86 12445 #! $SHELL
cannam@86 12446 # Generated by $as_me.
cannam@86 12447 # Run this file to recreate the current configuration.
cannam@86 12448 # Compiler output produced by configure, useful for debugging
cannam@86 12449 # configure, is in config.log if it exists.
cannam@86 12450
cannam@86 12451 debug=false
cannam@86 12452 ac_cs_recheck=false
cannam@86 12453 ac_cs_silent=false
cannam@86 12454
cannam@86 12455 SHELL=\${CONFIG_SHELL-$SHELL}
cannam@86 12456 export SHELL
cannam@86 12457 _ASEOF
cannam@86 12458 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
cannam@86 12459 ## -------------------- ##
cannam@86 12460 ## M4sh Initialization. ##
cannam@86 12461 ## -------------------- ##
cannam@86 12462
cannam@86 12463 # Be more Bourne compatible
cannam@86 12464 DUALCASE=1; export DUALCASE # for MKS sh
cannam@86 12465 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cannam@86 12466 emulate sh
cannam@86 12467 NULLCMD=:
cannam@86 12468 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
cannam@86 12469 # is contrary to our usage. Disable this feature.
cannam@86 12470 alias -g '${1+"$@"}'='"$@"'
cannam@86 12471 setopt NO_GLOB_SUBST
cannam@86 12472 else
cannam@86 12473 case `(set -o) 2>/dev/null` in #(
cannam@86 12474 *posix*) :
cannam@86 12475 set -o posix ;; #(
cannam@86 12476 *) :
cannam@86 12477 ;;
cannam@86 12478 esac
cannam@86 12479 fi
cannam@86 12480
cannam@86 12481
cannam@86 12482 as_nl='
cannam@86 12483 '
cannam@86 12484 export as_nl
cannam@86 12485 # Printing a long string crashes Solaris 7 /usr/bin/printf.
cannam@86 12486 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
cannam@86 12487 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
cannam@86 12488 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cannam@86 12489 # Prefer a ksh shell builtin over an external printf program on Solaris,
cannam@86 12490 # but without wasting forks for bash or zsh.
cannam@86 12491 if test -z "$BASH_VERSION$ZSH_VERSION" \
cannam@86 12492 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
cannam@86 12493 as_echo='print -r --'
cannam@86 12494 as_echo_n='print -rn --'
cannam@86 12495 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cannam@86 12496 as_echo='printf %s\n'
cannam@86 12497 as_echo_n='printf %s'
cannam@86 12498 else
cannam@86 12499 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
cannam@86 12500 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
cannam@86 12501 as_echo_n='/usr/ucb/echo -n'
cannam@86 12502 else
cannam@86 12503 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
cannam@86 12504 as_echo_n_body='eval
cannam@86 12505 arg=$1;
cannam@86 12506 case $arg in #(
cannam@86 12507 *"$as_nl"*)
cannam@86 12508 expr "X$arg" : "X\\(.*\\)$as_nl";
cannam@86 12509 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
cannam@86 12510 esac;
cannam@86 12511 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
cannam@86 12512 '
cannam@86 12513 export as_echo_n_body
cannam@86 12514 as_echo_n='sh -c $as_echo_n_body as_echo'
cannam@86 12515 fi
cannam@86 12516 export as_echo_body
cannam@86 12517 as_echo='sh -c $as_echo_body as_echo'
cannam@86 12518 fi
cannam@86 12519
cannam@86 12520 # The user is always right.
cannam@86 12521 if test "${PATH_SEPARATOR+set}" != set; then
cannam@86 12522 PATH_SEPARATOR=:
cannam@86 12523 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
cannam@86 12524 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
cannam@86 12525 PATH_SEPARATOR=';'
cannam@86 12526 }
cannam@86 12527 fi
cannam@86 12528
cannam@86 12529
cannam@86 12530 # IFS
cannam@86 12531 # We need space, tab and new line, in precisely that order. Quoting is
cannam@86 12532 # there to prevent editors from complaining about space-tab.
cannam@86 12533 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
cannam@86 12534 # splitting by setting IFS to empty value.)
cannam@86 12535 IFS=" "" $as_nl"
cannam@86 12536
cannam@86 12537 # Find who we are. Look in the path if we contain no directory separator.
cannam@86 12538 as_myself=
cannam@86 12539 case $0 in #((
cannam@86 12540 *[\\/]* ) as_myself=$0 ;;
cannam@86 12541 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@86 12542 for as_dir in $PATH
cannam@86 12543 do
cannam@86 12544 IFS=$as_save_IFS
cannam@86 12545 test -z "$as_dir" && as_dir=.
cannam@86 12546 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
cannam@86 12547 done
cannam@86 12548 IFS=$as_save_IFS
cannam@86 12549
cannam@86 12550 ;;
cannam@86 12551 esac
cannam@86 12552 # We did not find ourselves, most probably we were run as `sh COMMAND'
cannam@86 12553 # in which case we are not to be found in the path.
cannam@86 12554 if test "x$as_myself" = x; then
cannam@86 12555 as_myself=$0
cannam@86 12556 fi
cannam@86 12557 if test ! -f "$as_myself"; then
cannam@86 12558 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cannam@86 12559 exit 1
cannam@86 12560 fi
cannam@86 12561
cannam@86 12562 # Unset variables that we do not need and which cause bugs (e.g. in
cannam@86 12563 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
cannam@86 12564 # suppresses any "Segmentation fault" message there. '((' could
cannam@86 12565 # trigger a bug in pdksh 5.2.14.
cannam@86 12566 for as_var in BASH_ENV ENV MAIL MAILPATH
cannam@86 12567 do eval test x\${$as_var+set} = xset \
cannam@86 12568 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cannam@86 12569 done
cannam@86 12570 PS1='$ '
cannam@86 12571 PS2='> '
cannam@86 12572 PS4='+ '
cannam@86 12573
cannam@86 12574 # NLS nuisances.
cannam@86 12575 LC_ALL=C
cannam@86 12576 export LC_ALL
cannam@86 12577 LANGUAGE=C
cannam@86 12578 export LANGUAGE
cannam@86 12579
cannam@86 12580 # CDPATH.
cannam@86 12581 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
cannam@86 12582
cannam@86 12583
cannam@86 12584 # as_fn_error STATUS ERROR [LINENO LOG_FD]
cannam@86 12585 # ----------------------------------------
cannam@86 12586 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
cannam@86 12587 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cannam@86 12588 # script with STATUS, using 1 if that was 0.
cannam@86 12589 as_fn_error ()
cannam@86 12590 {
cannam@86 12591 as_status=$1; test $as_status -eq 0 && as_status=1
cannam@86 12592 if test "$4"; then
cannam@86 12593 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cannam@86 12594 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cannam@86 12595 fi
cannam@86 12596 $as_echo "$as_me: error: $2" >&2
cannam@86 12597 as_fn_exit $as_status
cannam@86 12598 } # as_fn_error
cannam@86 12599
cannam@86 12600
cannam@86 12601 # as_fn_set_status STATUS
cannam@86 12602 # -----------------------
cannam@86 12603 # Set $? to STATUS, without forking.
cannam@86 12604 as_fn_set_status ()
cannam@86 12605 {
cannam@86 12606 return $1
cannam@86 12607 } # as_fn_set_status
cannam@86 12608
cannam@86 12609 # as_fn_exit STATUS
cannam@86 12610 # -----------------
cannam@86 12611 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
cannam@86 12612 as_fn_exit ()
cannam@86 12613 {
cannam@86 12614 set +e
cannam@86 12615 as_fn_set_status $1
cannam@86 12616 exit $1
cannam@86 12617 } # as_fn_exit
cannam@86 12618
cannam@86 12619 # as_fn_unset VAR
cannam@86 12620 # ---------------
cannam@86 12621 # Portably unset VAR.
cannam@86 12622 as_fn_unset ()
cannam@86 12623 {
cannam@86 12624 { eval $1=; unset $1;}
cannam@86 12625 }
cannam@86 12626 as_unset=as_fn_unset
cannam@86 12627 # as_fn_append VAR VALUE
cannam@86 12628 # ----------------------
cannam@86 12629 # Append the text in VALUE to the end of the definition contained in VAR. Take
cannam@86 12630 # advantage of any shell optimizations that allow amortized linear growth over
cannam@86 12631 # repeated appends, instead of the typical quadratic growth present in naive
cannam@86 12632 # implementations.
cannam@86 12633 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
cannam@86 12634 eval 'as_fn_append ()
cannam@86 12635 {
cannam@86 12636 eval $1+=\$2
cannam@86 12637 }'
cannam@86 12638 else
cannam@86 12639 as_fn_append ()
cannam@86 12640 {
cannam@86 12641 eval $1=\$$1\$2
cannam@86 12642 }
cannam@86 12643 fi # as_fn_append
cannam@86 12644
cannam@86 12645 # as_fn_arith ARG...
cannam@86 12646 # ------------------
cannam@86 12647 # Perform arithmetic evaluation on the ARGs, and store the result in the
cannam@86 12648 # global $as_val. Take advantage of shells that can avoid forks. The arguments
cannam@86 12649 # must be portable across $(()) and expr.
cannam@86 12650 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
cannam@86 12651 eval 'as_fn_arith ()
cannam@86 12652 {
cannam@86 12653 as_val=$(( $* ))
cannam@86 12654 }'
cannam@86 12655 else
cannam@86 12656 as_fn_arith ()
cannam@86 12657 {
cannam@86 12658 as_val=`expr "$@" || test $? -eq 1`
cannam@86 12659 }
cannam@86 12660 fi # as_fn_arith
cannam@86 12661
cannam@86 12662
cannam@86 12663 if expr a : '\(a\)' >/dev/null 2>&1 &&
cannam@86 12664 test "X`expr 00001 : '.*\(...\)'`" = X001; then
cannam@86 12665 as_expr=expr
cannam@86 12666 else
cannam@86 12667 as_expr=false
cannam@86 12668 fi
cannam@86 12669
cannam@86 12670 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
cannam@86 12671 as_basename=basename
cannam@86 12672 else
cannam@86 12673 as_basename=false
cannam@86 12674 fi
cannam@86 12675
cannam@86 12676 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
cannam@86 12677 as_dirname=dirname
cannam@86 12678 else
cannam@86 12679 as_dirname=false
cannam@86 12680 fi
cannam@86 12681
cannam@86 12682 as_me=`$as_basename -- "$0" ||
cannam@86 12683 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
cannam@86 12684 X"$0" : 'X\(//\)$' \| \
cannam@86 12685 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
cannam@86 12686 $as_echo X/"$0" |
cannam@86 12687 sed '/^.*\/\([^/][^/]*\)\/*$/{
cannam@86 12688 s//\1/
cannam@86 12689 q
cannam@86 12690 }
cannam@86 12691 /^X\/\(\/\/\)$/{
cannam@86 12692 s//\1/
cannam@86 12693 q
cannam@86 12694 }
cannam@86 12695 /^X\/\(\/\).*/{
cannam@86 12696 s//\1/
cannam@86 12697 q
cannam@86 12698 }
cannam@86 12699 s/.*/./; q'`
cannam@86 12700
cannam@86 12701 # Avoid depending upon Character Ranges.
cannam@86 12702 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
cannam@86 12703 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
cannam@86 12704 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
cannam@86 12705 as_cr_digits='0123456789'
cannam@86 12706 as_cr_alnum=$as_cr_Letters$as_cr_digits
cannam@86 12707
cannam@86 12708 ECHO_C= ECHO_N= ECHO_T=
cannam@86 12709 case `echo -n x` in #(((((
cannam@86 12710 -n*)
cannam@86 12711 case `echo 'xy\c'` in
cannam@86 12712 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cannam@86 12713 xy) ECHO_C='\c';;
cannam@86 12714 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
cannam@86 12715 ECHO_T=' ';;
cannam@86 12716 esac;;
cannam@86 12717 *)
cannam@86 12718 ECHO_N='-n';;
cannam@86 12719 esac
cannam@86 12720
cannam@86 12721 rm -f conf$$ conf$$.exe conf$$.file
cannam@86 12722 if test -d conf$$.dir; then
cannam@86 12723 rm -f conf$$.dir/conf$$.file
cannam@86 12724 else
cannam@86 12725 rm -f conf$$.dir
cannam@86 12726 mkdir conf$$.dir 2>/dev/null
cannam@86 12727 fi
cannam@86 12728 if (echo >conf$$.file) 2>/dev/null; then
cannam@86 12729 if ln -s conf$$.file conf$$ 2>/dev/null; then
cannam@86 12730 as_ln_s='ln -s'
cannam@86 12731 # ... but there are two gotchas:
cannam@86 12732 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
cannam@86 12733 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cannam@86 12734 # In both cases, we have to default to `cp -p'.
cannam@86 12735 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cannam@86 12736 as_ln_s='cp -p'
cannam@86 12737 elif ln conf$$.file conf$$ 2>/dev/null; then
cannam@86 12738 as_ln_s=ln
cannam@86 12739 else
cannam@86 12740 as_ln_s='cp -p'
cannam@86 12741 fi
cannam@86 12742 else
cannam@86 12743 as_ln_s='cp -p'
cannam@86 12744 fi
cannam@86 12745 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
cannam@86 12746 rmdir conf$$.dir 2>/dev/null
cannam@86 12747
cannam@86 12748
cannam@86 12749 # as_fn_mkdir_p
cannam@86 12750 # -------------
cannam@86 12751 # Create "$as_dir" as a directory, including parents if necessary.
cannam@86 12752 as_fn_mkdir_p ()
cannam@86 12753 {
cannam@86 12754
cannam@86 12755 case $as_dir in #(
cannam@86 12756 -*) as_dir=./$as_dir;;
cannam@86 12757 esac
cannam@86 12758 test -d "$as_dir" || eval $as_mkdir_p || {
cannam@86 12759 as_dirs=
cannam@86 12760 while :; do
cannam@86 12761 case $as_dir in #(
cannam@86 12762 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
cannam@86 12763 *) as_qdir=$as_dir;;
cannam@86 12764 esac
cannam@86 12765 as_dirs="'$as_qdir' $as_dirs"
cannam@86 12766 as_dir=`$as_dirname -- "$as_dir" ||
cannam@86 12767 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@86 12768 X"$as_dir" : 'X\(//\)[^/]' \| \
cannam@86 12769 X"$as_dir" : 'X\(//\)$' \| \
cannam@86 12770 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
cannam@86 12771 $as_echo X"$as_dir" |
cannam@86 12772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@86 12773 s//\1/
cannam@86 12774 q
cannam@86 12775 }
cannam@86 12776 /^X\(\/\/\)[^/].*/{
cannam@86 12777 s//\1/
cannam@86 12778 q
cannam@86 12779 }
cannam@86 12780 /^X\(\/\/\)$/{
cannam@86 12781 s//\1/
cannam@86 12782 q
cannam@86 12783 }
cannam@86 12784 /^X\(\/\).*/{
cannam@86 12785 s//\1/
cannam@86 12786 q
cannam@86 12787 }
cannam@86 12788 s/.*/./; q'`
cannam@86 12789 test -d "$as_dir" && break
cannam@86 12790 done
cannam@86 12791 test -z "$as_dirs" || eval "mkdir $as_dirs"
cannam@86 12792 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cannam@86 12793
cannam@86 12794
cannam@86 12795 } # as_fn_mkdir_p
cannam@86 12796 if mkdir -p . 2>/dev/null; then
cannam@86 12797 as_mkdir_p='mkdir -p "$as_dir"'
cannam@86 12798 else
cannam@86 12799 test -d ./-p && rmdir ./-p
cannam@86 12800 as_mkdir_p=false
cannam@86 12801 fi
cannam@86 12802
cannam@86 12803 if test -x / >/dev/null 2>&1; then
cannam@86 12804 as_test_x='test -x'
cannam@86 12805 else
cannam@86 12806 if ls -dL / >/dev/null 2>&1; then
cannam@86 12807 as_ls_L_option=L
cannam@86 12808 else
cannam@86 12809 as_ls_L_option=
cannam@86 12810 fi
cannam@86 12811 as_test_x='
cannam@86 12812 eval sh -c '\''
cannam@86 12813 if test -d "$1"; then
cannam@86 12814 test -d "$1/.";
cannam@86 12815 else
cannam@86 12816 case $1 in #(
cannam@86 12817 -*)set "./$1";;
cannam@86 12818 esac;
cannam@86 12819 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cannam@86 12820 ???[sx]*):;;*)false;;esac;fi
cannam@86 12821 '\'' sh
cannam@86 12822 '
cannam@86 12823 fi
cannam@86 12824 as_executable_p=$as_test_x
cannam@86 12825
cannam@86 12826 # Sed expression to map a string onto a valid CPP name.
cannam@86 12827 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
cannam@86 12828
cannam@86 12829 # Sed expression to map a string onto a valid variable name.
cannam@86 12830 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
cannam@86 12831
cannam@86 12832
cannam@86 12833 exec 6>&1
cannam@86 12834 ## ----------------------------------- ##
cannam@86 12835 ## Main body of $CONFIG_STATUS script. ##
cannam@86 12836 ## ----------------------------------- ##
cannam@86 12837 _ASEOF
cannam@86 12838 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cannam@86 12839
cannam@86 12840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@86 12841 # Save the log message, to keep $0 and so on meaningful, and to
cannam@86 12842 # report actual input values of CONFIG_FILES etc. instead of their
cannam@86 12843 # values after options handling.
cannam@86 12844 ac_log="
cannam@86 12845 This file was extended by $as_me, which was
cannam@86 12846 generated by GNU Autoconf 2.68. Invocation command line was
cannam@86 12847
cannam@86 12848 CONFIG_FILES = $CONFIG_FILES
cannam@86 12849 CONFIG_HEADERS = $CONFIG_HEADERS
cannam@86 12850 CONFIG_LINKS = $CONFIG_LINKS
cannam@86 12851 CONFIG_COMMANDS = $CONFIG_COMMANDS
cannam@86 12852 $ $0 $@
cannam@86 12853
cannam@86 12854 on `(hostname || uname -n) 2>/dev/null | sed 1q`
cannam@86 12855 "
cannam@86 12856
cannam@86 12857 _ACEOF
cannam@86 12858
cannam@86 12859 case $ac_config_files in *"
cannam@86 12860 "*) set x $ac_config_files; shift; ac_config_files=$*;;
cannam@86 12861 esac
cannam@86 12862
cannam@86 12863 case $ac_config_headers in *"
cannam@86 12864 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
cannam@86 12865 esac
cannam@86 12866
cannam@86 12867
cannam@86 12868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@86 12869 # Files that config.status was made for.
cannam@86 12870 config_files="$ac_config_files"
cannam@86 12871 config_headers="$ac_config_headers"
cannam@86 12872 config_commands="$ac_config_commands"
cannam@86 12873
cannam@86 12874 _ACEOF
cannam@86 12875
cannam@86 12876 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@86 12877 ac_cs_usage="\
cannam@86 12878 \`$as_me' instantiates files and other configuration actions
cannam@86 12879 from templates according to the current configuration. Unless the files
cannam@86 12880 and actions are specified as TAGs, all are instantiated by default.
cannam@86 12881
cannam@86 12882 Usage: $0 [OPTION]... [TAG]...
cannam@86 12883
cannam@86 12884 -h, --help print this help, then exit
cannam@86 12885 -V, --version print version number and configuration settings, then exit
cannam@86 12886 --config print configuration, then exit
cannam@86 12887 -q, --quiet, --silent
cannam@86 12888 do not print progress messages
cannam@86 12889 -d, --debug don't remove temporary files
cannam@86 12890 --recheck update $as_me by reconfiguring in the same conditions
cannam@86 12891 --file=FILE[:TEMPLATE]
cannam@86 12892 instantiate the configuration file FILE
cannam@86 12893 --header=FILE[:TEMPLATE]
cannam@86 12894 instantiate the configuration header FILE
cannam@86 12895
cannam@86 12896 Configuration files:
cannam@86 12897 $config_files
cannam@86 12898
cannam@86 12899 Configuration headers:
cannam@86 12900 $config_headers
cannam@86 12901
cannam@86 12902 Configuration commands:
cannam@86 12903 $config_commands
cannam@86 12904
cannam@86 12905 Report bugs to the package provider."
cannam@86 12906
cannam@86 12907 _ACEOF
cannam@86 12908 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@86 12909 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cannam@86 12910 ac_cs_version="\\
cannam@86 12911 config.status
cannam@86 12912 configured by $0, generated by GNU Autoconf 2.68,
cannam@86 12913 with options \\"\$ac_cs_config\\"
cannam@86 12914
cannam@86 12915 Copyright (C) 2010 Free Software Foundation, Inc.
cannam@86 12916 This config.status script is free software; the Free Software Foundation
cannam@86 12917 gives unlimited permission to copy, distribute and modify it."
cannam@86 12918
cannam@86 12919 ac_pwd='$ac_pwd'
cannam@86 12920 srcdir='$srcdir'
cannam@86 12921 INSTALL='$INSTALL'
cannam@86 12922 MKDIR_P='$MKDIR_P'
cannam@86 12923 AWK='$AWK'
cannam@86 12924 test -n "\$AWK" || AWK=awk
cannam@86 12925 _ACEOF
cannam@86 12926
cannam@86 12927 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@86 12928 # The default lists apply if the user does not specify any file.
cannam@86 12929 ac_need_defaults=:
cannam@86 12930 while test $# != 0
cannam@86 12931 do
cannam@86 12932 case $1 in
cannam@86 12933 --*=?*)
cannam@86 12934 ac_option=`expr "X$1" : 'X\([^=]*\)='`
cannam@86 12935 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
cannam@86 12936 ac_shift=:
cannam@86 12937 ;;
cannam@86 12938 --*=)
cannam@86 12939 ac_option=`expr "X$1" : 'X\([^=]*\)='`
cannam@86 12940 ac_optarg=
cannam@86 12941 ac_shift=:
cannam@86 12942 ;;
cannam@86 12943 *)
cannam@86 12944 ac_option=$1
cannam@86 12945 ac_optarg=$2
cannam@86 12946 ac_shift=shift
cannam@86 12947 ;;
cannam@86 12948 esac
cannam@86 12949
cannam@86 12950 case $ac_option in
cannam@86 12951 # Handling of the options.
cannam@86 12952 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
cannam@86 12953 ac_cs_recheck=: ;;
cannam@86 12954 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
cannam@86 12955 $as_echo "$ac_cs_version"; exit ;;
cannam@86 12956 --config | --confi | --conf | --con | --co | --c )
cannam@86 12957 $as_echo "$ac_cs_config"; exit ;;
cannam@86 12958 --debug | --debu | --deb | --de | --d | -d )
cannam@86 12959 debug=: ;;
cannam@86 12960 --file | --fil | --fi | --f )
cannam@86 12961 $ac_shift
cannam@86 12962 case $ac_optarg in
cannam@86 12963 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cannam@86 12964 '') as_fn_error $? "missing file argument" ;;
cannam@86 12965 esac
cannam@86 12966 as_fn_append CONFIG_FILES " '$ac_optarg'"
cannam@86 12967 ac_need_defaults=false;;
cannam@86 12968 --header | --heade | --head | --hea )
cannam@86 12969 $ac_shift
cannam@86 12970 case $ac_optarg in
cannam@86 12971 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cannam@86 12972 esac
cannam@86 12973 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cannam@86 12974 ac_need_defaults=false;;
cannam@86 12975 --he | --h)
cannam@86 12976 # Conflict between --help and --header
cannam@86 12977 as_fn_error $? "ambiguous option: \`$1'
cannam@86 12978 Try \`$0 --help' for more information.";;
cannam@86 12979 --help | --hel | -h )
cannam@86 12980 $as_echo "$ac_cs_usage"; exit ;;
cannam@86 12981 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
cannam@86 12982 | -silent | --silent | --silen | --sile | --sil | --si | --s)
cannam@86 12983 ac_cs_silent=: ;;
cannam@86 12984
cannam@86 12985 # This is an error.
cannam@86 12986 -*) as_fn_error $? "unrecognized option: \`$1'
cannam@86 12987 Try \`$0 --help' for more information." ;;
cannam@86 12988
cannam@86 12989 *) as_fn_append ac_config_targets " $1"
cannam@86 12990 ac_need_defaults=false ;;
cannam@86 12991
cannam@86 12992 esac
cannam@86 12993 shift
cannam@86 12994 done
cannam@86 12995
cannam@86 12996 ac_configure_extra_args=
cannam@86 12997
cannam@86 12998 if $ac_cs_silent; then
cannam@86 12999 exec 6>/dev/null
cannam@86 13000 ac_configure_extra_args="$ac_configure_extra_args --silent"
cannam@86 13001 fi
cannam@86 13002
cannam@86 13003 _ACEOF
cannam@86 13004 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@86 13005 if \$ac_cs_recheck; then
cannam@86 13006 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cannam@86 13007 shift
cannam@86 13008 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
cannam@86 13009 CONFIG_SHELL='$SHELL'
cannam@86 13010 export CONFIG_SHELL
cannam@86 13011 exec "\$@"
cannam@86 13012 fi
cannam@86 13013
cannam@86 13014 _ACEOF
cannam@86 13015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@86 13016 exec 5>>config.log
cannam@86 13017 {
cannam@86 13018 echo
cannam@86 13019 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
cannam@86 13020 ## Running $as_me. ##
cannam@86 13021 _ASBOX
cannam@86 13022 $as_echo "$ac_log"
cannam@86 13023 } >&5
cannam@86 13024
cannam@86 13025 _ACEOF
cannam@86 13026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@86 13027 #
cannam@86 13028 # INIT-COMMANDS
cannam@86 13029 #
cannam@86 13030 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
cannam@86 13031
cannam@86 13032
cannam@86 13033 # The HP-UX ksh and POSIX shell print the target directory to stdout
cannam@86 13034 # if CDPATH is set.
cannam@86 13035 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
cannam@86 13036
cannam@86 13037 sed_quote_subst='$sed_quote_subst'
cannam@86 13038 double_quote_subst='$double_quote_subst'
cannam@86 13039 delay_variable_subst='$delay_variable_subst'
cannam@86 13040 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
cannam@86 13041 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
cannam@86 13042 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
cannam@86 13043 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
cannam@86 13044 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
cannam@86 13045 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cannam@86 13046 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
cannam@86 13047 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
cannam@86 13048 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
cannam@86 13049 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
cannam@86 13050 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
cannam@86 13051 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
cannam@86 13052 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
cannam@86 13053 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
cannam@86 13054 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
cannam@86 13055 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
cannam@86 13056 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
cannam@86 13057 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
cannam@86 13058 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
cannam@86 13059 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
cannam@86 13060 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
cannam@86 13061 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
cannam@86 13062 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
cannam@86 13063 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
cannam@86 13064 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
cannam@86 13065 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
cannam@86 13066 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
cannam@86 13067 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cannam@86 13068 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
cannam@86 13069 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cannam@86 13070 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
cannam@86 13071 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
cannam@86 13072 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
cannam@86 13073 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
cannam@86 13074 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cannam@86 13075 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
cannam@86 13076 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
cannam@86 13077 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
cannam@86 13078 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cannam@86 13079 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
cannam@86 13080 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cannam@86 13081 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cannam@86 13082 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
cannam@86 13083 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
cannam@86 13084 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
cannam@86 13085 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
cannam@86 13086 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
cannam@86 13087 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
cannam@86 13088 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
cannam@86 13089 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
cannam@86 13090 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
cannam@86 13091 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
cannam@86 13092 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
cannam@86 13093 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
cannam@86 13094 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
cannam@86 13095 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
cannam@86 13096 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
cannam@86 13097 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cannam@86 13098 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
cannam@86 13099 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
cannam@86 13100 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cannam@86 13101 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cannam@86 13102 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cannam@86 13103 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
cannam@86 13104 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
cannam@86 13105 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cannam@86 13106 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cannam@86 13107 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
cannam@86 13108 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
cannam@86 13109 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
cannam@86 13110 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
cannam@86 13111 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
cannam@86 13112 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
cannam@86 13113 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
cannam@86 13114 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
cannam@86 13115 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
cannam@86 13116 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
cannam@86 13117 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
cannam@86 13118 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
cannam@86 13119 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
cannam@86 13120 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
cannam@86 13121 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
cannam@86 13122 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
cannam@86 13123 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
cannam@86 13124 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
cannam@86 13125 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
cannam@86 13126 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
cannam@86 13127 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
cannam@86 13128 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
cannam@86 13129 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cannam@86 13130 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
cannam@86 13131 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
cannam@86 13132 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
cannam@86 13133 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
cannam@86 13134 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
cannam@86 13135 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
cannam@86 13136 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
cannam@86 13137 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
cannam@86 13138 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cannam@86 13139 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
cannam@86 13140 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
cannam@86 13141 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
cannam@86 13142 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
cannam@86 13143 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cannam@86 13144 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cannam@86 13145 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
cannam@86 13146 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
cannam@86 13147 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
cannam@86 13148 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
cannam@86 13149 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
cannam@86 13150 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
cannam@86 13151 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
cannam@86 13152 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
cannam@86 13153 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
cannam@86 13154 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
cannam@86 13155 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
cannam@86 13156 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
cannam@86 13157 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
cannam@86 13158 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
cannam@86 13159 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
cannam@86 13160 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
cannam@86 13161 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
cannam@86 13162 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
cannam@86 13163 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
cannam@86 13164 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
cannam@86 13165 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
cannam@86 13166 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
cannam@86 13167 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
cannam@86 13168 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
cannam@86 13169 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
cannam@86 13170
cannam@86 13171 LTCC='$LTCC'
cannam@86 13172 LTCFLAGS='$LTCFLAGS'
cannam@86 13173 compiler='$compiler_DEFAULT'
cannam@86 13174
cannam@86 13175 # A function that is used when there is no print builtin or printf.
cannam@86 13176 func_fallback_echo ()
cannam@86 13177 {
cannam@86 13178 eval 'cat <<_LTECHO_EOF
cannam@86 13179 \$1
cannam@86 13180 _LTECHO_EOF'
cannam@86 13181 }
cannam@86 13182
cannam@86 13183 # Quote evaled strings.
cannam@86 13184 for var in SHELL \
cannam@86 13185 ECHO \
cannam@86 13186 SED \
cannam@86 13187 GREP \
cannam@86 13188 EGREP \
cannam@86 13189 FGREP \
cannam@86 13190 LD \
cannam@86 13191 NM \
cannam@86 13192 LN_S \
cannam@86 13193 lt_SP2NL \
cannam@86 13194 lt_NL2SP \
cannam@86 13195 reload_flag \
cannam@86 13196 OBJDUMP \
cannam@86 13197 deplibs_check_method \
cannam@86 13198 file_magic_cmd \
cannam@86 13199 file_magic_glob \
cannam@86 13200 want_nocaseglob \
cannam@86 13201 DLLTOOL \
cannam@86 13202 sharedlib_from_linklib_cmd \
cannam@86 13203 AR \
cannam@86 13204 AR_FLAGS \
cannam@86 13205 archiver_list_spec \
cannam@86 13206 STRIP \
cannam@86 13207 RANLIB \
cannam@86 13208 CC \
cannam@86 13209 CFLAGS \
cannam@86 13210 compiler \
cannam@86 13211 lt_cv_sys_global_symbol_pipe \
cannam@86 13212 lt_cv_sys_global_symbol_to_cdecl \
cannam@86 13213 lt_cv_sys_global_symbol_to_c_name_address \
cannam@86 13214 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cannam@86 13215 nm_file_list_spec \
cannam@86 13216 lt_prog_compiler_no_builtin_flag \
cannam@86 13217 lt_prog_compiler_pic \
cannam@86 13218 lt_prog_compiler_wl \
cannam@86 13219 lt_prog_compiler_static \
cannam@86 13220 lt_cv_prog_compiler_c_o \
cannam@86 13221 need_locks \
cannam@86 13222 MANIFEST_TOOL \
cannam@86 13223 DSYMUTIL \
cannam@86 13224 NMEDIT \
cannam@86 13225 LIPO \
cannam@86 13226 OTOOL \
cannam@86 13227 OTOOL64 \
cannam@86 13228 shrext_cmds \
cannam@86 13229 export_dynamic_flag_spec \
cannam@86 13230 whole_archive_flag_spec \
cannam@86 13231 compiler_needs_object \
cannam@86 13232 with_gnu_ld \
cannam@86 13233 allow_undefined_flag \
cannam@86 13234 no_undefined_flag \
cannam@86 13235 hardcode_libdir_flag_spec \
cannam@86 13236 hardcode_libdir_flag_spec_ld \
cannam@86 13237 hardcode_libdir_separator \
cannam@86 13238 exclude_expsyms \
cannam@86 13239 include_expsyms \
cannam@86 13240 file_list_spec \
cannam@86 13241 variables_saved_for_relink \
cannam@86 13242 libname_spec \
cannam@86 13243 library_names_spec \
cannam@86 13244 soname_spec \
cannam@86 13245 install_override_mode \
cannam@86 13246 finish_eval \
cannam@86 13247 old_striplib \
cannam@86 13248 striplib; do
cannam@86 13249 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cannam@86 13250 *[\\\\\\\`\\"\\\$]*)
cannam@86 13251 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cannam@86 13252 ;;
cannam@86 13253 *)
cannam@86 13254 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
cannam@86 13255 ;;
cannam@86 13256 esac
cannam@86 13257 done
cannam@86 13258
cannam@86 13259 # Double-quote double-evaled strings.
cannam@86 13260 for var in reload_cmds \
cannam@86 13261 old_postinstall_cmds \
cannam@86 13262 old_postuninstall_cmds \
cannam@86 13263 old_archive_cmds \
cannam@86 13264 extract_expsyms_cmds \
cannam@86 13265 old_archive_from_new_cmds \
cannam@86 13266 old_archive_from_expsyms_cmds \
cannam@86 13267 archive_cmds \
cannam@86 13268 archive_expsym_cmds \
cannam@86 13269 module_cmds \
cannam@86 13270 module_expsym_cmds \
cannam@86 13271 export_symbols_cmds \
cannam@86 13272 prelink_cmds \
cannam@86 13273 postlink_cmds \
cannam@86 13274 postinstall_cmds \
cannam@86 13275 postuninstall_cmds \
cannam@86 13276 finish_cmds \
cannam@86 13277 sys_lib_search_path_spec \
cannam@86 13278 sys_lib_dlsearch_path_spec; do
cannam@86 13279 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cannam@86 13280 *[\\\\\\\`\\"\\\$]*)
cannam@86 13281 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cannam@86 13282 ;;
cannam@86 13283 *)
cannam@86 13284 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
cannam@86 13285 ;;
cannam@86 13286 esac
cannam@86 13287 done
cannam@86 13288
cannam@86 13289 ac_aux_dir='$ac_aux_dir'
cannam@86 13290 xsi_shell='$xsi_shell'
cannam@86 13291 lt_shell_append='$lt_shell_append'
cannam@86 13292
cannam@86 13293 # See if we are running on zsh, and set the options which allow our
cannam@86 13294 # commands through without removal of \ escapes INIT.
cannam@86 13295 if test -n "\${ZSH_VERSION+set}" ; then
cannam@86 13296 setopt NO_GLOB_SUBST
cannam@86 13297 fi
cannam@86 13298
cannam@86 13299
cannam@86 13300 PACKAGE='$PACKAGE'
cannam@86 13301 VERSION='$VERSION'
cannam@86 13302 TIMESTAMP='$TIMESTAMP'
cannam@86 13303 RM='$RM'
cannam@86 13304 ofile='$ofile'
cannam@86 13305
cannam@86 13306
cannam@86 13307
cannam@86 13308
cannam@86 13309 _ACEOF
cannam@86 13310
cannam@86 13311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@86 13312
cannam@86 13313 # Handling of arguments.
cannam@86 13314 for ac_config_target in $ac_config_targets
cannam@86 13315 do
cannam@86 13316 case $ac_config_target in
cannam@86 13317 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
cannam@86 13318 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cannam@86 13319 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
cannam@86 13320 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
cannam@86 13321 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
cannam@86 13322 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
cannam@86 13323 "doc/libogg/Makefile") CONFIG_FILES="$CONFIG_FILES doc/libogg/Makefile" ;;
cannam@86 13324 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
cannam@86 13325 "include/ogg/Makefile") CONFIG_FILES="$CONFIG_FILES include/ogg/Makefile" ;;
cannam@86 13326 "include/ogg/config_types.h") CONFIG_FILES="$CONFIG_FILES include/ogg/config_types.h" ;;
cannam@86 13327 "libogg.spec") CONFIG_FILES="$CONFIG_FILES libogg.spec" ;;
cannam@86 13328 "ogg.pc") CONFIG_FILES="$CONFIG_FILES ogg.pc" ;;
cannam@86 13329 "ogg-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES ogg-uninstalled.pc" ;;
cannam@86 13330
cannam@86 13331 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cannam@86 13332 esac
cannam@86 13333 done
cannam@86 13334
cannam@86 13335
cannam@86 13336 # If the user did not use the arguments to specify the items to instantiate,
cannam@86 13337 # then the envvar interface is used. Set only those that are not.
cannam@86 13338 # We use the long form for the default assignment because of an extremely
cannam@86 13339 # bizarre bug on SunOS 4.1.3.
cannam@86 13340 if $ac_need_defaults; then
cannam@86 13341 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
cannam@86 13342 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
cannam@86 13343 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
cannam@86 13344 fi
cannam@86 13345
cannam@86 13346 # Have a temporary directory for convenience. Make it in the build tree
cannam@86 13347 # simply because there is no reason against having it here, and in addition,
cannam@86 13348 # creating and moving files from /tmp can sometimes cause problems.
cannam@86 13349 # Hook for its removal unless debugging.
cannam@86 13350 # Note that there is a small window in which the directory will not be cleaned:
cannam@86 13351 # after its creation but before its name has been assigned to `$tmp'.
cannam@86 13352 $debug ||
cannam@86 13353 {
cannam@86 13354 tmp= ac_tmp=
cannam@86 13355 trap 'exit_status=$?
cannam@86 13356 : "${ac_tmp:=$tmp}"
cannam@86 13357 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cannam@86 13358 ' 0
cannam@86 13359 trap 'as_fn_exit 1' 1 2 13 15
cannam@86 13360 }
cannam@86 13361 # Create a (secure) tmp directory for tmp files.
cannam@86 13362
cannam@86 13363 {
cannam@86 13364 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cannam@86 13365 test -d "$tmp"
cannam@86 13366 } ||
cannam@86 13367 {
cannam@86 13368 tmp=./conf$$-$RANDOM
cannam@86 13369 (umask 077 && mkdir "$tmp")
cannam@86 13370 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cannam@86 13371 ac_tmp=$tmp
cannam@86 13372
cannam@86 13373 # Set up the scripts for CONFIG_FILES section.
cannam@86 13374 # No need to generate them if there are no CONFIG_FILES.
cannam@86 13375 # This happens for instance with `./config.status config.h'.
cannam@86 13376 if test -n "$CONFIG_FILES"; then
cannam@86 13377
cannam@86 13378
cannam@86 13379 ac_cr=`echo X | tr X '\015'`
cannam@86 13380 # On cygwin, bash can eat \r inside `` if the user requested igncr.
cannam@86 13381 # But we know of no other shell where ac_cr would be empty at this
cannam@86 13382 # point, so we can use a bashism as a fallback.
cannam@86 13383 if test "x$ac_cr" = x; then
cannam@86 13384 eval ac_cr=\$\'\\r\'
cannam@86 13385 fi
cannam@86 13386 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
cannam@86 13387 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cannam@86 13388 ac_cs_awk_cr='\\r'
cannam@86 13389 else
cannam@86 13390 ac_cs_awk_cr=$ac_cr
cannam@86 13391 fi
cannam@86 13392
cannam@86 13393 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cannam@86 13394 _ACEOF
cannam@86 13395
cannam@86 13396
cannam@86 13397 {
cannam@86 13398 echo "cat >conf$$subs.awk <<_ACEOF" &&
cannam@86 13399 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
cannam@86 13400 echo "_ACEOF"
cannam@86 13401 } >conf$$subs.sh ||
cannam@86 13402 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cannam@86 13403 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cannam@86 13404 ac_delim='%!_!# '
cannam@86 13405 for ac_last_try in false false false false false :; do
cannam@86 13406 . ./conf$$subs.sh ||
cannam@86 13407 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cannam@86 13408
cannam@86 13409 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
cannam@86 13410 if test $ac_delim_n = $ac_delim_num; then
cannam@86 13411 break
cannam@86 13412 elif $ac_last_try; then
cannam@86 13413 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cannam@86 13414 else
cannam@86 13415 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
cannam@86 13416 fi
cannam@86 13417 done
cannam@86 13418 rm -f conf$$subs.sh
cannam@86 13419
cannam@86 13420 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@86 13421 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cannam@86 13422 _ACEOF
cannam@86 13423 sed -n '
cannam@86 13424 h
cannam@86 13425 s/^/S["/; s/!.*/"]=/
cannam@86 13426 p
cannam@86 13427 g
cannam@86 13428 s/^[^!]*!//
cannam@86 13429 :repl
cannam@86 13430 t repl
cannam@86 13431 s/'"$ac_delim"'$//
cannam@86 13432 t delim
cannam@86 13433 :nl
cannam@86 13434 h
cannam@86 13435 s/\(.\{148\}\)..*/\1/
cannam@86 13436 t more1
cannam@86 13437 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
cannam@86 13438 p
cannam@86 13439 n
cannam@86 13440 b repl
cannam@86 13441 :more1
cannam@86 13442 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
cannam@86 13443 p
cannam@86 13444 g
cannam@86 13445 s/.\{148\}//
cannam@86 13446 t nl
cannam@86 13447 :delim
cannam@86 13448 h
cannam@86 13449 s/\(.\{148\}\)..*/\1/
cannam@86 13450 t more2
cannam@86 13451 s/["\\]/\\&/g; s/^/"/; s/$/"/
cannam@86 13452 p
cannam@86 13453 b
cannam@86 13454 :more2
cannam@86 13455 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
cannam@86 13456 p
cannam@86 13457 g
cannam@86 13458 s/.\{148\}//
cannam@86 13459 t delim
cannam@86 13460 ' <conf$$subs.awk | sed '
cannam@86 13461 /^[^""]/{
cannam@86 13462 N
cannam@86 13463 s/\n//
cannam@86 13464 }
cannam@86 13465 ' >>$CONFIG_STATUS || ac_write_fail=1
cannam@86 13466 rm -f conf$$subs.awk
cannam@86 13467 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@86 13468 _ACAWK
cannam@86 13469 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cannam@86 13470 for (key in S) S_is_set[key] = 1
cannam@86 13471 FS = ""
cannam@86 13472
cannam@86 13473 }
cannam@86 13474 {
cannam@86 13475 line = $ 0
cannam@86 13476 nfields = split(line, field, "@")
cannam@86 13477 substed = 0
cannam@86 13478 len = length(field[1])
cannam@86 13479 for (i = 2; i < nfields; i++) {
cannam@86 13480 key = field[i]
cannam@86 13481 keylen = length(key)
cannam@86 13482 if (S_is_set[key]) {
cannam@86 13483 value = S[key]
cannam@86 13484 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
cannam@86 13485 len += length(value) + length(field[++i])
cannam@86 13486 substed = 1
cannam@86 13487 } else
cannam@86 13488 len += 1 + keylen
cannam@86 13489 }
cannam@86 13490
cannam@86 13491 print line
cannam@86 13492 }
cannam@86 13493
cannam@86 13494 _ACAWK
cannam@86 13495 _ACEOF
cannam@86 13496 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@86 13497 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
cannam@86 13498 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
cannam@86 13499 else
cannam@86 13500 cat
cannam@86 13501 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cannam@86 13502 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cannam@86 13503 _ACEOF
cannam@86 13504
cannam@86 13505 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
cannam@86 13506 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cannam@86 13507 # trailing colons and then remove the whole line if VPATH becomes empty
cannam@86 13508 # (actually we leave an empty line to preserve line numbers).
cannam@86 13509 if test "x$srcdir" = x.; then
cannam@86 13510 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
cannam@86 13511 h
cannam@86 13512 s///
cannam@86 13513 s/^/:/
cannam@86 13514 s/[ ]*$/:/
cannam@86 13515 s/:\$(srcdir):/:/g
cannam@86 13516 s/:\${srcdir}:/:/g
cannam@86 13517 s/:@srcdir@:/:/g
cannam@86 13518 s/^:*//
cannam@86 13519 s/:*$//
cannam@86 13520 x
cannam@86 13521 s/\(=[ ]*\).*/\1/
cannam@86 13522 G
cannam@86 13523 s/\n//
cannam@86 13524 s/^[^=]*=[ ]*$//
cannam@86 13525 }'
cannam@86 13526 fi
cannam@86 13527
cannam@86 13528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@86 13529 fi # test -n "$CONFIG_FILES"
cannam@86 13530
cannam@86 13531 # Set up the scripts for CONFIG_HEADERS section.
cannam@86 13532 # No need to generate them if there are no CONFIG_HEADERS.
cannam@86 13533 # This happens for instance with `./config.status Makefile'.
cannam@86 13534 if test -n "$CONFIG_HEADERS"; then
cannam@86 13535 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cannam@86 13536 BEGIN {
cannam@86 13537 _ACEOF
cannam@86 13538
cannam@86 13539 # Transform confdefs.h into an awk script `defines.awk', embedded as
cannam@86 13540 # here-document in config.status, that substitutes the proper values into
cannam@86 13541 # config.h.in to produce config.h.
cannam@86 13542
cannam@86 13543 # Create a delimiter string that does not exist in confdefs.h, to ease
cannam@86 13544 # handling of long lines.
cannam@86 13545 ac_delim='%!_!# '
cannam@86 13546 for ac_last_try in false false :; do
cannam@86 13547 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
cannam@86 13548 if test -z "$ac_tt"; then
cannam@86 13549 break
cannam@86 13550 elif $ac_last_try; then
cannam@86 13551 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cannam@86 13552 else
cannam@86 13553 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
cannam@86 13554 fi
cannam@86 13555 done
cannam@86 13556
cannam@86 13557 # For the awk script, D is an array of macro values keyed by name,
cannam@86 13558 # likewise P contains macro parameters if any. Preserve backslash
cannam@86 13559 # newline sequences.
cannam@86 13560
cannam@86 13561 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
cannam@86 13562 sed -n '
cannam@86 13563 s/.\{148\}/&'"$ac_delim"'/g
cannam@86 13564 t rset
cannam@86 13565 :rset
cannam@86 13566 s/^[ ]*#[ ]*define[ ][ ]*/ /
cannam@86 13567 t def
cannam@86 13568 d
cannam@86 13569 :def
cannam@86 13570 s/\\$//
cannam@86 13571 t bsnl
cannam@86 13572 s/["\\]/\\&/g
cannam@86 13573 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
cannam@86 13574 D["\1"]=" \3"/p
cannam@86 13575 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
cannam@86 13576 d
cannam@86 13577 :bsnl
cannam@86 13578 s/["\\]/\\&/g
cannam@86 13579 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
cannam@86 13580 D["\1"]=" \3\\\\\\n"\\/p
cannam@86 13581 t cont
cannam@86 13582 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
cannam@86 13583 t cont
cannam@86 13584 d
cannam@86 13585 :cont
cannam@86 13586 n
cannam@86 13587 s/.\{148\}/&'"$ac_delim"'/g
cannam@86 13588 t clear
cannam@86 13589 :clear
cannam@86 13590 s/\\$//
cannam@86 13591 t bsnlc
cannam@86 13592 s/["\\]/\\&/g; s/^/"/; s/$/"/p
cannam@86 13593 d
cannam@86 13594 :bsnlc
cannam@86 13595 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
cannam@86 13596 b cont
cannam@86 13597 ' <confdefs.h | sed '
cannam@86 13598 s/'"$ac_delim"'/"\\\
cannam@86 13599 "/g' >>$CONFIG_STATUS || ac_write_fail=1
cannam@86 13600
cannam@86 13601 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@86 13602 for (key in D) D_is_set[key] = 1
cannam@86 13603 FS = ""
cannam@86 13604 }
cannam@86 13605 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
cannam@86 13606 line = \$ 0
cannam@86 13607 split(line, arg, " ")
cannam@86 13608 if (arg[1] == "#") {
cannam@86 13609 defundef = arg[2]
cannam@86 13610 mac1 = arg[3]
cannam@86 13611 } else {
cannam@86 13612 defundef = substr(arg[1], 2)
cannam@86 13613 mac1 = arg[2]
cannam@86 13614 }
cannam@86 13615 split(mac1, mac2, "(") #)
cannam@86 13616 macro = mac2[1]
cannam@86 13617 prefix = substr(line, 1, index(line, defundef) - 1)
cannam@86 13618 if (D_is_set[macro]) {
cannam@86 13619 # Preserve the white space surrounding the "#".
cannam@86 13620 print prefix "define", macro P[macro] D[macro]
cannam@86 13621 next
cannam@86 13622 } else {
cannam@86 13623 # Replace #undef with comments. This is necessary, for example,
cannam@86 13624 # in the case of _POSIX_SOURCE, which is predefined and required
cannam@86 13625 # on some systems where configure will not decide to define it.
cannam@86 13626 if (defundef == "undef") {
cannam@86 13627 print "/*", prefix defundef, macro, "*/"
cannam@86 13628 next
cannam@86 13629 }
cannam@86 13630 }
cannam@86 13631 }
cannam@86 13632 { print }
cannam@86 13633 _ACAWK
cannam@86 13634 _ACEOF
cannam@86 13635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@86 13636 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cannam@86 13637 fi # test -n "$CONFIG_HEADERS"
cannam@86 13638
cannam@86 13639
cannam@86 13640 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
cannam@86 13641 shift
cannam@86 13642 for ac_tag
cannam@86 13643 do
cannam@86 13644 case $ac_tag in
cannam@86 13645 :[FHLC]) ac_mode=$ac_tag; continue;;
cannam@86 13646 esac
cannam@86 13647 case $ac_mode$ac_tag in
cannam@86 13648 :[FHL]*:*);;
cannam@86 13649 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cannam@86 13650 :[FH]-) ac_tag=-:-;;
cannam@86 13651 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
cannam@86 13652 esac
cannam@86 13653 ac_save_IFS=$IFS
cannam@86 13654 IFS=:
cannam@86 13655 set x $ac_tag
cannam@86 13656 IFS=$ac_save_IFS
cannam@86 13657 shift
cannam@86 13658 ac_file=$1
cannam@86 13659 shift
cannam@86 13660
cannam@86 13661 case $ac_mode in
cannam@86 13662 :L) ac_source=$1;;
cannam@86 13663 :[FH])
cannam@86 13664 ac_file_inputs=
cannam@86 13665 for ac_f
cannam@86 13666 do
cannam@86 13667 case $ac_f in
cannam@86 13668 -) ac_f="$ac_tmp/stdin";;
cannam@86 13669 *) # Look for the file first in the build tree, then in the source tree
cannam@86 13670 # (if the path is not absolute). The absolute path cannot be DOS-style,
cannam@86 13671 # because $ac_f cannot contain `:'.
cannam@86 13672 test -f "$ac_f" ||
cannam@86 13673 case $ac_f in
cannam@86 13674 [\\/$]*) false;;
cannam@86 13675 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
cannam@86 13676 esac ||
cannam@86 13677 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cannam@86 13678 esac
cannam@86 13679 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cannam@86 13680 as_fn_append ac_file_inputs " '$ac_f'"
cannam@86 13681 done
cannam@86 13682
cannam@86 13683 # Let's still pretend it is `configure' which instantiates (i.e., don't
cannam@86 13684 # use $as_me), people would be surprised to read:
cannam@86 13685 # /* config.h. Generated by config.status. */
cannam@86 13686 configure_input='Generated from '`
cannam@86 13687 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
cannam@86 13688 `' by configure.'
cannam@86 13689 if test x"$ac_file" != x-; then
cannam@86 13690 configure_input="$ac_file. $configure_input"
cannam@86 13691 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cannam@86 13692 $as_echo "$as_me: creating $ac_file" >&6;}
cannam@86 13693 fi
cannam@86 13694 # Neutralize special characters interpreted by sed in replacement strings.
cannam@86 13695 case $configure_input in #(
cannam@86 13696 *\&* | *\|* | *\\* )
cannam@86 13697 ac_sed_conf_input=`$as_echo "$configure_input" |
cannam@86 13698 sed 's/[\\\\&|]/\\\\&/g'`;; #(
cannam@86 13699 *) ac_sed_conf_input=$configure_input;;
cannam@86 13700 esac
cannam@86 13701
cannam@86 13702 case $ac_tag in
cannam@86 13703 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cannam@86 13704 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cannam@86 13705 esac
cannam@86 13706 ;;
cannam@86 13707 esac
cannam@86 13708
cannam@86 13709 ac_dir=`$as_dirname -- "$ac_file" ||
cannam@86 13710 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@86 13711 X"$ac_file" : 'X\(//\)[^/]' \| \
cannam@86 13712 X"$ac_file" : 'X\(//\)$' \| \
cannam@86 13713 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
cannam@86 13714 $as_echo X"$ac_file" |
cannam@86 13715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@86 13716 s//\1/
cannam@86 13717 q
cannam@86 13718 }
cannam@86 13719 /^X\(\/\/\)[^/].*/{
cannam@86 13720 s//\1/
cannam@86 13721 q
cannam@86 13722 }
cannam@86 13723 /^X\(\/\/\)$/{
cannam@86 13724 s//\1/
cannam@86 13725 q
cannam@86 13726 }
cannam@86 13727 /^X\(\/\).*/{
cannam@86 13728 s//\1/
cannam@86 13729 q
cannam@86 13730 }
cannam@86 13731 s/.*/./; q'`
cannam@86 13732 as_dir="$ac_dir"; as_fn_mkdir_p
cannam@86 13733 ac_builddir=.
cannam@86 13734
cannam@86 13735 case "$ac_dir" in
cannam@86 13736 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
cannam@86 13737 *)
cannam@86 13738 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
cannam@86 13739 # A ".." for each directory in $ac_dir_suffix.
cannam@86 13740 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
cannam@86 13741 case $ac_top_builddir_sub in
cannam@86 13742 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
cannam@86 13743 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
cannam@86 13744 esac ;;
cannam@86 13745 esac
cannam@86 13746 ac_abs_top_builddir=$ac_pwd
cannam@86 13747 ac_abs_builddir=$ac_pwd$ac_dir_suffix
cannam@86 13748 # for backward compatibility:
cannam@86 13749 ac_top_builddir=$ac_top_build_prefix
cannam@86 13750
cannam@86 13751 case $srcdir in
cannam@86 13752 .) # We are building in place.
cannam@86 13753 ac_srcdir=.
cannam@86 13754 ac_top_srcdir=$ac_top_builddir_sub
cannam@86 13755 ac_abs_top_srcdir=$ac_pwd ;;
cannam@86 13756 [\\/]* | ?:[\\/]* ) # Absolute name.
cannam@86 13757 ac_srcdir=$srcdir$ac_dir_suffix;
cannam@86 13758 ac_top_srcdir=$srcdir
cannam@86 13759 ac_abs_top_srcdir=$srcdir ;;
cannam@86 13760 *) # Relative name.
cannam@86 13761 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
cannam@86 13762 ac_top_srcdir=$ac_top_build_prefix$srcdir
cannam@86 13763 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
cannam@86 13764 esac
cannam@86 13765 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
cannam@86 13766
cannam@86 13767
cannam@86 13768 case $ac_mode in
cannam@86 13769 :F)
cannam@86 13770 #
cannam@86 13771 # CONFIG_FILE
cannam@86 13772 #
cannam@86 13773
cannam@86 13774 case $INSTALL in
cannam@86 13775 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
cannam@86 13776 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
cannam@86 13777 esac
cannam@86 13778 ac_MKDIR_P=$MKDIR_P
cannam@86 13779 case $MKDIR_P in
cannam@86 13780 [\\/$]* | ?:[\\/]* ) ;;
cannam@86 13781 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
cannam@86 13782 esac
cannam@86 13783 _ACEOF
cannam@86 13784
cannam@86 13785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@86 13786 # If the template does not know about datarootdir, expand it.
cannam@86 13787 # FIXME: This hack should be removed a few years after 2.60.
cannam@86 13788 ac_datarootdir_hack=; ac_datarootdir_seen=
cannam@86 13789 ac_sed_dataroot='
cannam@86 13790 /datarootdir/ {
cannam@86 13791 p
cannam@86 13792 q
cannam@86 13793 }
cannam@86 13794 /@datadir@/p
cannam@86 13795 /@docdir@/p
cannam@86 13796 /@infodir@/p
cannam@86 13797 /@localedir@/p
cannam@86 13798 /@mandir@/p'
cannam@86 13799 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
cannam@86 13800 *datarootdir*) ac_datarootdir_seen=yes;;
cannam@86 13801 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cannam@86 13802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cannam@86 13803 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
cannam@86 13804 _ACEOF
cannam@86 13805 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@86 13806 ac_datarootdir_hack='
cannam@86 13807 s&@datadir@&$datadir&g
cannam@86 13808 s&@docdir@&$docdir&g
cannam@86 13809 s&@infodir@&$infodir&g
cannam@86 13810 s&@localedir@&$localedir&g
cannam@86 13811 s&@mandir@&$mandir&g
cannam@86 13812 s&\\\${datarootdir}&$datarootdir&g' ;;
cannam@86 13813 esac
cannam@86 13814 _ACEOF
cannam@86 13815
cannam@86 13816 # Neutralize VPATH when `$srcdir' = `.'.
cannam@86 13817 # Shell code in configure.ac might set extrasub.
cannam@86 13818 # FIXME: do we really want to maintain this feature?
cannam@86 13819 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cannam@86 13820 ac_sed_extra="$ac_vpsub
cannam@86 13821 $extrasub
cannam@86 13822 _ACEOF
cannam@86 13823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cannam@86 13824 :t
cannam@86 13825 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
cannam@86 13826 s|@configure_input@|$ac_sed_conf_input|;t t
cannam@86 13827 s&@top_builddir@&$ac_top_builddir_sub&;t t
cannam@86 13828 s&@top_build_prefix@&$ac_top_build_prefix&;t t
cannam@86 13829 s&@srcdir@&$ac_srcdir&;t t
cannam@86 13830 s&@abs_srcdir@&$ac_abs_srcdir&;t t
cannam@86 13831 s&@top_srcdir@&$ac_top_srcdir&;t t
cannam@86 13832 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
cannam@86 13833 s&@builddir@&$ac_builddir&;t t
cannam@86 13834 s&@abs_builddir@&$ac_abs_builddir&;t t
cannam@86 13835 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
cannam@86 13836 s&@INSTALL@&$ac_INSTALL&;t t
cannam@86 13837 s&@MKDIR_P@&$ac_MKDIR_P&;t t
cannam@86 13838 $ac_datarootdir_hack
cannam@86 13839 "
cannam@86 13840 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
cannam@86 13841 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cannam@86 13842
cannam@86 13843 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cannam@86 13844 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
cannam@86 13845 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
cannam@86 13846 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cannam@86 13847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cannam@86 13848 which seems to be undefined. Please make sure it is defined" >&5
cannam@86 13849 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cannam@86 13850 which seems to be undefined. Please make sure it is defined" >&2;}
cannam@86 13851
cannam@86 13852 rm -f "$ac_tmp/stdin"
cannam@86 13853 case $ac_file in
cannam@86 13854 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
cannam@86 13855 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cannam@86 13856 esac \
cannam@86 13857 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cannam@86 13858 ;;
cannam@86 13859 :H)
cannam@86 13860 #
cannam@86 13861 # CONFIG_HEADER
cannam@86 13862 #
cannam@86 13863 if test x"$ac_file" != x-; then
cannam@86 13864 {
cannam@86 13865 $as_echo "/* $configure_input */" \
cannam@86 13866 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
cannam@86 13867 } >"$ac_tmp/config.h" \
cannam@86 13868 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cannam@86 13869 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cannam@86 13870 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cannam@86 13871 $as_echo "$as_me: $ac_file is unchanged" >&6;}
cannam@86 13872 else
cannam@86 13873 rm -f "$ac_file"
cannam@86 13874 mv "$ac_tmp/config.h" "$ac_file" \
cannam@86 13875 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cannam@86 13876 fi
cannam@86 13877 else
cannam@86 13878 $as_echo "/* $configure_input */" \
cannam@86 13879 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cannam@86 13880 || as_fn_error $? "could not create -" "$LINENO" 5
cannam@86 13881 fi
cannam@86 13882 # Compute "$ac_file"'s index in $config_headers.
cannam@86 13883 _am_arg="$ac_file"
cannam@86 13884 _am_stamp_count=1
cannam@86 13885 for _am_header in $config_headers :; do
cannam@86 13886 case $_am_header in
cannam@86 13887 $_am_arg | $_am_arg:* )
cannam@86 13888 break ;;
cannam@86 13889 * )
cannam@86 13890 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
cannam@86 13891 esac
cannam@86 13892 done
cannam@86 13893 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
cannam@86 13894 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@86 13895 X"$_am_arg" : 'X\(//\)[^/]' \| \
cannam@86 13896 X"$_am_arg" : 'X\(//\)$' \| \
cannam@86 13897 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
cannam@86 13898 $as_echo X"$_am_arg" |
cannam@86 13899 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@86 13900 s//\1/
cannam@86 13901 q
cannam@86 13902 }
cannam@86 13903 /^X\(\/\/\)[^/].*/{
cannam@86 13904 s//\1/
cannam@86 13905 q
cannam@86 13906 }
cannam@86 13907 /^X\(\/\/\)$/{
cannam@86 13908 s//\1/
cannam@86 13909 q
cannam@86 13910 }
cannam@86 13911 /^X\(\/\).*/{
cannam@86 13912 s//\1/
cannam@86 13913 q
cannam@86 13914 }
cannam@86 13915 s/.*/./; q'`/stamp-h$_am_stamp_count
cannam@86 13916 ;;
cannam@86 13917
cannam@86 13918 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cannam@86 13919 $as_echo "$as_me: executing $ac_file commands" >&6;}
cannam@86 13920 ;;
cannam@86 13921 esac
cannam@86 13922
cannam@86 13923
cannam@86 13924 case $ac_file$ac_mode in
cannam@86 13925 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cannam@86 13926 # Autoconf 2.62 quotes --file arguments for eval, but not when files
cannam@86 13927 # are listed without --file. Let's play safe and only enable the eval
cannam@86 13928 # if we detect the quoting.
cannam@86 13929 case $CONFIG_FILES in
cannam@86 13930 *\'*) eval set x "$CONFIG_FILES" ;;
cannam@86 13931 *) set x $CONFIG_FILES ;;
cannam@86 13932 esac
cannam@86 13933 shift
cannam@86 13934 for mf
cannam@86 13935 do
cannam@86 13936 # Strip MF so we end up with the name of the file.
cannam@86 13937 mf=`echo "$mf" | sed -e 's/:.*$//'`
cannam@86 13938 # Check whether this is an Automake generated Makefile or not.
cannam@86 13939 # We used to match only the files named `Makefile.in', but
cannam@86 13940 # some people rename them; so instead we look at the file content.
cannam@86 13941 # Grep'ing the first line is not enough: some people post-process
cannam@86 13942 # each Makefile.in and add a new line on top of each file to say so.
cannam@86 13943 # Grep'ing the whole file is not good either: AIX grep has a line
cannam@86 13944 # limit of 2048, but all sed's we know have understand at least 4000.
cannam@86 13945 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
cannam@86 13946 dirpart=`$as_dirname -- "$mf" ||
cannam@86 13947 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@86 13948 X"$mf" : 'X\(//\)[^/]' \| \
cannam@86 13949 X"$mf" : 'X\(//\)$' \| \
cannam@86 13950 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
cannam@86 13951 $as_echo X"$mf" |
cannam@86 13952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@86 13953 s//\1/
cannam@86 13954 q
cannam@86 13955 }
cannam@86 13956 /^X\(\/\/\)[^/].*/{
cannam@86 13957 s//\1/
cannam@86 13958 q
cannam@86 13959 }
cannam@86 13960 /^X\(\/\/\)$/{
cannam@86 13961 s//\1/
cannam@86 13962 q
cannam@86 13963 }
cannam@86 13964 /^X\(\/\).*/{
cannam@86 13965 s//\1/
cannam@86 13966 q
cannam@86 13967 }
cannam@86 13968 s/.*/./; q'`
cannam@86 13969 else
cannam@86 13970 continue
cannam@86 13971 fi
cannam@86 13972 # Extract the definition of DEPDIR, am__include, and am__quote
cannam@86 13973 # from the Makefile without running `make'.
cannam@86 13974 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
cannam@86 13975 test -z "$DEPDIR" && continue
cannam@86 13976 am__include=`sed -n 's/^am__include = //p' < "$mf"`
cannam@86 13977 test -z "am__include" && continue
cannam@86 13978 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cannam@86 13979 # When using ansi2knr, U may be empty or an underscore; expand it
cannam@86 13980 U=`sed -n 's/^U = //p' < "$mf"`
cannam@86 13981 # Find all dependency output files, they are included files with
cannam@86 13982 # $(DEPDIR) in their names. We invoke sed twice because it is the
cannam@86 13983 # simplest approach to changing $(DEPDIR) to its actual value in the
cannam@86 13984 # expansion.
cannam@86 13985 for file in `sed -n "
cannam@86 13986 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cannam@86 13987 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
cannam@86 13988 # Make sure the directory exists.
cannam@86 13989 test -f "$dirpart/$file" && continue
cannam@86 13990 fdir=`$as_dirname -- "$file" ||
cannam@86 13991 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@86 13992 X"$file" : 'X\(//\)[^/]' \| \
cannam@86 13993 X"$file" : 'X\(//\)$' \| \
cannam@86 13994 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
cannam@86 13995 $as_echo X"$file" |
cannam@86 13996 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
cannam@86 13997 s//\1/
cannam@86 13998 q
cannam@86 13999 }
cannam@86 14000 /^X\(\/\/\)[^/].*/{
cannam@86 14001 s//\1/
cannam@86 14002 q
cannam@86 14003 }
cannam@86 14004 /^X\(\/\/\)$/{
cannam@86 14005 s//\1/
cannam@86 14006 q
cannam@86 14007 }
cannam@86 14008 /^X\(\/\).*/{
cannam@86 14009 s//\1/
cannam@86 14010 q
cannam@86 14011 }
cannam@86 14012 s/.*/./; q'`
cannam@86 14013 as_dir=$dirpart/$fdir; as_fn_mkdir_p
cannam@86 14014 # echo "creating $dirpart/$file"
cannam@86 14015 echo '# dummy' > "$dirpart/$file"
cannam@86 14016 done
cannam@86 14017 done
cannam@86 14018 }
cannam@86 14019 ;;
cannam@86 14020 "libtool":C)
cannam@86 14021
cannam@86 14022 # See if we are running on zsh, and set the options which allow our
cannam@86 14023 # commands through without removal of \ escapes.
cannam@86 14024 if test -n "${ZSH_VERSION+set}" ; then
cannam@86 14025 setopt NO_GLOB_SUBST
cannam@86 14026 fi
cannam@86 14027
cannam@86 14028 cfgfile="${ofile}T"
cannam@86 14029 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
cannam@86 14030 $RM "$cfgfile"
cannam@86 14031
cannam@86 14032 cat <<_LT_EOF >> "$cfgfile"
cannam@86 14033 #! $SHELL
cannam@86 14034
cannam@86 14035 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
cannam@86 14036 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
cannam@86 14037 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
cannam@86 14038 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
cannam@86 14039 #
cannam@86 14040 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cannam@86 14041 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
cannam@86 14042 # Inc.
cannam@86 14043 # Written by Gordon Matzigkeit, 1996
cannam@86 14044 #
cannam@86 14045 # This file is part of GNU Libtool.
cannam@86 14046 #
cannam@86 14047 # GNU Libtool is free software; you can redistribute it and/or
cannam@86 14048 # modify it under the terms of the GNU General Public License as
cannam@86 14049 # published by the Free Software Foundation; either version 2 of
cannam@86 14050 # the License, or (at your option) any later version.
cannam@86 14051 #
cannam@86 14052 # As a special exception to the GNU General Public License,
cannam@86 14053 # if you distribute this file as part of a program or library that
cannam@86 14054 # is built using GNU Libtool, you may include this file under the
cannam@86 14055 # same distribution terms that you use for the rest of that program.
cannam@86 14056 #
cannam@86 14057 # GNU Libtool is distributed in the hope that it will be useful,
cannam@86 14058 # but WITHOUT ANY WARRANTY; without even the implied warranty of
cannam@86 14059 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
cannam@86 14060 # GNU General Public License for more details.
cannam@86 14061 #
cannam@86 14062 # You should have received a copy of the GNU General Public License
cannam@86 14063 # along with GNU Libtool; see the file COPYING. If not, a copy
cannam@86 14064 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
cannam@86 14065 # obtained by writing to the Free Software Foundation, Inc.,
cannam@86 14066 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
cannam@86 14067
cannam@86 14068
cannam@86 14069 # The names of the tagged configurations supported by this script.
cannam@86 14070 available_tags=""
cannam@86 14071
cannam@86 14072 # ### BEGIN LIBTOOL CONFIG
cannam@86 14073
cannam@86 14074 # Which release of libtool.m4 was used?
cannam@86 14075 macro_version=$macro_version
cannam@86 14076 macro_revision=$macro_revision
cannam@86 14077
cannam@86 14078 # Whether or not to build shared libraries.
cannam@86 14079 build_libtool_libs=$enable_shared
cannam@86 14080
cannam@86 14081 # Whether or not to build static libraries.
cannam@86 14082 build_old_libs=$enable_static
cannam@86 14083
cannam@86 14084 # What type of objects to build.
cannam@86 14085 pic_mode=$pic_mode
cannam@86 14086
cannam@86 14087 # Whether or not to optimize for fast installation.
cannam@86 14088 fast_install=$enable_fast_install
cannam@86 14089
cannam@86 14090 # Shell to use when invoking shell scripts.
cannam@86 14091 SHELL=$lt_SHELL
cannam@86 14092
cannam@86 14093 # An echo program that protects backslashes.
cannam@86 14094 ECHO=$lt_ECHO
cannam@86 14095
cannam@86 14096 # The host system.
cannam@86 14097 host_alias=$host_alias
cannam@86 14098 host=$host
cannam@86 14099 host_os=$host_os
cannam@86 14100
cannam@86 14101 # The build system.
cannam@86 14102 build_alias=$build_alias
cannam@86 14103 build=$build
cannam@86 14104 build_os=$build_os
cannam@86 14105
cannam@86 14106 # A sed program that does not truncate output.
cannam@86 14107 SED=$lt_SED
cannam@86 14108
cannam@86 14109 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
cannam@86 14110 Xsed="\$SED -e 1s/^X//"
cannam@86 14111
cannam@86 14112 # A grep program that handles long lines.
cannam@86 14113 GREP=$lt_GREP
cannam@86 14114
cannam@86 14115 # An ERE matcher.
cannam@86 14116 EGREP=$lt_EGREP
cannam@86 14117
cannam@86 14118 # A literal string matcher.
cannam@86 14119 FGREP=$lt_FGREP
cannam@86 14120
cannam@86 14121 # A BSD- or MS-compatible name lister.
cannam@86 14122 NM=$lt_NM
cannam@86 14123
cannam@86 14124 # Whether we need soft or hard links.
cannam@86 14125 LN_S=$lt_LN_S
cannam@86 14126
cannam@86 14127 # What is the maximum length of a command?
cannam@86 14128 max_cmd_len=$max_cmd_len
cannam@86 14129
cannam@86 14130 # Object file suffix (normally "o").
cannam@86 14131 objext=$ac_objext
cannam@86 14132
cannam@86 14133 # Executable file suffix (normally "").
cannam@86 14134 exeext=$exeext
cannam@86 14135
cannam@86 14136 # whether the shell understands "unset".
cannam@86 14137 lt_unset=$lt_unset
cannam@86 14138
cannam@86 14139 # turn spaces into newlines.
cannam@86 14140 SP2NL=$lt_lt_SP2NL
cannam@86 14141
cannam@86 14142 # turn newlines into spaces.
cannam@86 14143 NL2SP=$lt_lt_NL2SP
cannam@86 14144
cannam@86 14145 # convert \$build file names to \$host format.
cannam@86 14146 to_host_file_cmd=$lt_cv_to_host_file_cmd
cannam@86 14147
cannam@86 14148 # convert \$build files to toolchain format.
cannam@86 14149 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
cannam@86 14150
cannam@86 14151 # An object symbol dumper.
cannam@86 14152 OBJDUMP=$lt_OBJDUMP
cannam@86 14153
cannam@86 14154 # Method to check whether dependent libraries are shared objects.
cannam@86 14155 deplibs_check_method=$lt_deplibs_check_method
cannam@86 14156
cannam@86 14157 # Command to use when deplibs_check_method = "file_magic".
cannam@86 14158 file_magic_cmd=$lt_file_magic_cmd
cannam@86 14159
cannam@86 14160 # How to find potential files when deplibs_check_method = "file_magic".
cannam@86 14161 file_magic_glob=$lt_file_magic_glob
cannam@86 14162
cannam@86 14163 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
cannam@86 14164 want_nocaseglob=$lt_want_nocaseglob
cannam@86 14165
cannam@86 14166 # DLL creation program.
cannam@86 14167 DLLTOOL=$lt_DLLTOOL
cannam@86 14168
cannam@86 14169 # Command to associate shared and link libraries.
cannam@86 14170 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
cannam@86 14171
cannam@86 14172 # The archiver.
cannam@86 14173 AR=$lt_AR
cannam@86 14174
cannam@86 14175 # Flags to create an archive.
cannam@86 14176 AR_FLAGS=$lt_AR_FLAGS
cannam@86 14177
cannam@86 14178 # How to feed a file listing to the archiver.
cannam@86 14179 archiver_list_spec=$lt_archiver_list_spec
cannam@86 14180
cannam@86 14181 # A symbol stripping program.
cannam@86 14182 STRIP=$lt_STRIP
cannam@86 14183
cannam@86 14184 # Commands used to install an old-style archive.
cannam@86 14185 RANLIB=$lt_RANLIB
cannam@86 14186 old_postinstall_cmds=$lt_old_postinstall_cmds
cannam@86 14187 old_postuninstall_cmds=$lt_old_postuninstall_cmds
cannam@86 14188
cannam@86 14189 # Whether to use a lock for old archive extraction.
cannam@86 14190 lock_old_archive_extraction=$lock_old_archive_extraction
cannam@86 14191
cannam@86 14192 # A C compiler.
cannam@86 14193 LTCC=$lt_CC
cannam@86 14194
cannam@86 14195 # LTCC compiler flags.
cannam@86 14196 LTCFLAGS=$lt_CFLAGS
cannam@86 14197
cannam@86 14198 # Take the output of nm and produce a listing of raw symbols and C names.
cannam@86 14199 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
cannam@86 14200
cannam@86 14201 # Transform the output of nm in a proper C declaration.
cannam@86 14202 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
cannam@86 14203
cannam@86 14204 # Transform the output of nm in a C name address pair.
cannam@86 14205 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
cannam@86 14206
cannam@86 14207 # Transform the output of nm in a C name address pair when lib prefix is needed.
cannam@86 14208 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
cannam@86 14209
cannam@86 14210 # Specify filename containing input files for \$NM.
cannam@86 14211 nm_file_list_spec=$lt_nm_file_list_spec
cannam@86 14212
cannam@86 14213 # The root where to search for dependent libraries,and in which our libraries should be installed.
cannam@86 14214 lt_sysroot=$lt_sysroot
cannam@86 14215
cannam@86 14216 # The name of the directory that contains temporary libtool files.
cannam@86 14217 objdir=$objdir
cannam@86 14218
cannam@86 14219 # Used to examine libraries when file_magic_cmd begins with "file".
cannam@86 14220 MAGIC_CMD=$MAGIC_CMD
cannam@86 14221
cannam@86 14222 # Must we lock files when doing compilation?
cannam@86 14223 need_locks=$lt_need_locks
cannam@86 14224
cannam@86 14225 # Manifest tool.
cannam@86 14226 MANIFEST_TOOL=$lt_MANIFEST_TOOL
cannam@86 14227
cannam@86 14228 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
cannam@86 14229 DSYMUTIL=$lt_DSYMUTIL
cannam@86 14230
cannam@86 14231 # Tool to change global to local symbols on Mac OS X.
cannam@86 14232 NMEDIT=$lt_NMEDIT
cannam@86 14233
cannam@86 14234 # Tool to manipulate fat objects and archives on Mac OS X.
cannam@86 14235 LIPO=$lt_LIPO
cannam@86 14236
cannam@86 14237 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
cannam@86 14238 OTOOL=$lt_OTOOL
cannam@86 14239
cannam@86 14240 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
cannam@86 14241 OTOOL64=$lt_OTOOL64
cannam@86 14242
cannam@86 14243 # Old archive suffix (normally "a").
cannam@86 14244 libext=$libext
cannam@86 14245
cannam@86 14246 # Shared library suffix (normally ".so").
cannam@86 14247 shrext_cmds=$lt_shrext_cmds
cannam@86 14248
cannam@86 14249 # The commands to extract the exported symbol list from a shared archive.
cannam@86 14250 extract_expsyms_cmds=$lt_extract_expsyms_cmds
cannam@86 14251
cannam@86 14252 # Variables whose values should be saved in libtool wrapper scripts and
cannam@86 14253 # restored at link time.
cannam@86 14254 variables_saved_for_relink=$lt_variables_saved_for_relink
cannam@86 14255
cannam@86 14256 # Do we need the "lib" prefix for modules?
cannam@86 14257 need_lib_prefix=$need_lib_prefix
cannam@86 14258
cannam@86 14259 # Do we need a version for libraries?
cannam@86 14260 need_version=$need_version
cannam@86 14261
cannam@86 14262 # Library versioning type.
cannam@86 14263 version_type=$version_type
cannam@86 14264
cannam@86 14265 # Shared library runtime path variable.
cannam@86 14266 runpath_var=$runpath_var
cannam@86 14267
cannam@86 14268 # Shared library path variable.
cannam@86 14269 shlibpath_var=$shlibpath_var
cannam@86 14270
cannam@86 14271 # Is shlibpath searched before the hard-coded library search path?
cannam@86 14272 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
cannam@86 14273
cannam@86 14274 # Format of library name prefix.
cannam@86 14275 libname_spec=$lt_libname_spec
cannam@86 14276
cannam@86 14277 # List of archive names. First name is the real one, the rest are links.
cannam@86 14278 # The last name is the one that the linker finds with -lNAME
cannam@86 14279 library_names_spec=$lt_library_names_spec
cannam@86 14280
cannam@86 14281 # The coded name of the library, if different from the real name.
cannam@86 14282 soname_spec=$lt_soname_spec
cannam@86 14283
cannam@86 14284 # Permission mode override for installation of shared libraries.
cannam@86 14285 install_override_mode=$lt_install_override_mode
cannam@86 14286
cannam@86 14287 # Command to use after installation of a shared archive.
cannam@86 14288 postinstall_cmds=$lt_postinstall_cmds
cannam@86 14289
cannam@86 14290 # Command to use after uninstallation of a shared archive.
cannam@86 14291 postuninstall_cmds=$lt_postuninstall_cmds
cannam@86 14292
cannam@86 14293 # Commands used to finish a libtool library installation in a directory.
cannam@86 14294 finish_cmds=$lt_finish_cmds
cannam@86 14295
cannam@86 14296 # As "finish_cmds", except a single script fragment to be evaled but
cannam@86 14297 # not shown.
cannam@86 14298 finish_eval=$lt_finish_eval
cannam@86 14299
cannam@86 14300 # Whether we should hardcode library paths into libraries.
cannam@86 14301 hardcode_into_libs=$hardcode_into_libs
cannam@86 14302
cannam@86 14303 # Compile-time system search path for libraries.
cannam@86 14304 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
cannam@86 14305
cannam@86 14306 # Run-time system search path for libraries.
cannam@86 14307 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
cannam@86 14308
cannam@86 14309 # Whether dlopen is supported.
cannam@86 14310 dlopen_support=$enable_dlopen
cannam@86 14311
cannam@86 14312 # Whether dlopen of programs is supported.
cannam@86 14313 dlopen_self=$enable_dlopen_self
cannam@86 14314
cannam@86 14315 # Whether dlopen of statically linked programs is supported.
cannam@86 14316 dlopen_self_static=$enable_dlopen_self_static
cannam@86 14317
cannam@86 14318 # Commands to strip libraries.
cannam@86 14319 old_striplib=$lt_old_striplib
cannam@86 14320 striplib=$lt_striplib
cannam@86 14321
cannam@86 14322
cannam@86 14323 # The linker used to build libraries.
cannam@86 14324 LD=$lt_LD
cannam@86 14325
cannam@86 14326 # How to create reloadable object files.
cannam@86 14327 reload_flag=$lt_reload_flag
cannam@86 14328 reload_cmds=$lt_reload_cmds
cannam@86 14329
cannam@86 14330 # Commands used to build an old-style archive.
cannam@86 14331 old_archive_cmds=$lt_old_archive_cmds
cannam@86 14332
cannam@86 14333 # A language specific compiler.
cannam@86 14334 CC=$lt_compiler
cannam@86 14335
cannam@86 14336 # Is the compiler the GNU compiler?
cannam@86 14337 with_gcc=$GCC
cannam@86 14338
cannam@86 14339 # Compiler flag to turn off builtin functions.
cannam@86 14340 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
cannam@86 14341
cannam@86 14342 # Additional compiler flags for building library objects.
cannam@86 14343 pic_flag=$lt_lt_prog_compiler_pic
cannam@86 14344
cannam@86 14345 # How to pass a linker flag through the compiler.
cannam@86 14346 wl=$lt_lt_prog_compiler_wl
cannam@86 14347
cannam@86 14348 # Compiler flag to prevent dynamic linking.
cannam@86 14349 link_static_flag=$lt_lt_prog_compiler_static
cannam@86 14350
cannam@86 14351 # Does compiler simultaneously support -c and -o options?
cannam@86 14352 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
cannam@86 14353
cannam@86 14354 # Whether or not to add -lc for building shared libraries.
cannam@86 14355 build_libtool_need_lc=$archive_cmds_need_lc
cannam@86 14356
cannam@86 14357 # Whether or not to disallow shared libs when runtime libs are static.
cannam@86 14358 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
cannam@86 14359
cannam@86 14360 # Compiler flag to allow reflexive dlopens.
cannam@86 14361 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
cannam@86 14362
cannam@86 14363 # Compiler flag to generate shared objects directly from archives.
cannam@86 14364 whole_archive_flag_spec=$lt_whole_archive_flag_spec
cannam@86 14365
cannam@86 14366 # Whether the compiler copes with passing no objects directly.
cannam@86 14367 compiler_needs_object=$lt_compiler_needs_object
cannam@86 14368
cannam@86 14369 # Create an old-style archive from a shared archive.
cannam@86 14370 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
cannam@86 14371
cannam@86 14372 # Create a temporary old-style archive to link instead of a shared archive.
cannam@86 14373 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
cannam@86 14374
cannam@86 14375 # Commands used to build a shared archive.
cannam@86 14376 archive_cmds=$lt_archive_cmds
cannam@86 14377 archive_expsym_cmds=$lt_archive_expsym_cmds
cannam@86 14378
cannam@86 14379 # Commands used to build a loadable module if different from building
cannam@86 14380 # a shared archive.
cannam@86 14381 module_cmds=$lt_module_cmds
cannam@86 14382 module_expsym_cmds=$lt_module_expsym_cmds
cannam@86 14383
cannam@86 14384 # Whether we are building with GNU ld or not.
cannam@86 14385 with_gnu_ld=$lt_with_gnu_ld
cannam@86 14386
cannam@86 14387 # Flag that allows shared libraries with undefined symbols to be built.
cannam@86 14388 allow_undefined_flag=$lt_allow_undefined_flag
cannam@86 14389
cannam@86 14390 # Flag that enforces no undefined symbols.
cannam@86 14391 no_undefined_flag=$lt_no_undefined_flag
cannam@86 14392
cannam@86 14393 # Flag to hardcode \$libdir into a binary during linking.
cannam@86 14394 # This must work even if \$libdir does not exist
cannam@86 14395 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
cannam@86 14396
cannam@86 14397 # If ld is used when linking, flag to hardcode \$libdir into a binary
cannam@86 14398 # during linking. This must work even if \$libdir does not exist.
cannam@86 14399 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
cannam@86 14400
cannam@86 14401 # Whether we need a single "-rpath" flag with a separated argument.
cannam@86 14402 hardcode_libdir_separator=$lt_hardcode_libdir_separator
cannam@86 14403
cannam@86 14404 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
cannam@86 14405 # DIR into the resulting binary.
cannam@86 14406 hardcode_direct=$hardcode_direct
cannam@86 14407
cannam@86 14408 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
cannam@86 14409 # DIR into the resulting binary and the resulting library dependency is
cannam@86 14410 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
cannam@86 14411 # library is relocated.
cannam@86 14412 hardcode_direct_absolute=$hardcode_direct_absolute
cannam@86 14413
cannam@86 14414 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
cannam@86 14415 # into the resulting binary.
cannam@86 14416 hardcode_minus_L=$hardcode_minus_L
cannam@86 14417
cannam@86 14418 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
cannam@86 14419 # into the resulting binary.
cannam@86 14420 hardcode_shlibpath_var=$hardcode_shlibpath_var
cannam@86 14421
cannam@86 14422 # Set to "yes" if building a shared library automatically hardcodes DIR
cannam@86 14423 # into the library and all subsequent libraries and executables linked
cannam@86 14424 # against it.
cannam@86 14425 hardcode_automatic=$hardcode_automatic
cannam@86 14426
cannam@86 14427 # Set to yes if linker adds runtime paths of dependent libraries
cannam@86 14428 # to runtime path list.
cannam@86 14429 inherit_rpath=$inherit_rpath
cannam@86 14430
cannam@86 14431 # Whether libtool must link a program against all its dependency libraries.
cannam@86 14432 link_all_deplibs=$link_all_deplibs
cannam@86 14433
cannam@86 14434 # Set to "yes" if exported symbols are required.
cannam@86 14435 always_export_symbols=$always_export_symbols
cannam@86 14436
cannam@86 14437 # The commands to list exported symbols.
cannam@86 14438 export_symbols_cmds=$lt_export_symbols_cmds
cannam@86 14439
cannam@86 14440 # Symbols that should not be listed in the preloaded symbols.
cannam@86 14441 exclude_expsyms=$lt_exclude_expsyms
cannam@86 14442
cannam@86 14443 # Symbols that must always be exported.
cannam@86 14444 include_expsyms=$lt_include_expsyms
cannam@86 14445
cannam@86 14446 # Commands necessary for linking programs (against libraries) with templates.
cannam@86 14447 prelink_cmds=$lt_prelink_cmds
cannam@86 14448
cannam@86 14449 # Commands necessary for finishing linking programs.
cannam@86 14450 postlink_cmds=$lt_postlink_cmds
cannam@86 14451
cannam@86 14452 # Specify filename containing input files.
cannam@86 14453 file_list_spec=$lt_file_list_spec
cannam@86 14454
cannam@86 14455 # How to hardcode a shared library path into an executable.
cannam@86 14456 hardcode_action=$hardcode_action
cannam@86 14457
cannam@86 14458 # ### END LIBTOOL CONFIG
cannam@86 14459
cannam@86 14460 _LT_EOF
cannam@86 14461
cannam@86 14462 case $host_os in
cannam@86 14463 aix3*)
cannam@86 14464 cat <<\_LT_EOF >> "$cfgfile"
cannam@86 14465 # AIX sometimes has problems with the GCC collect2 program. For some
cannam@86 14466 # reason, if we set the COLLECT_NAMES environment variable, the problems
cannam@86 14467 # vanish in a puff of smoke.
cannam@86 14468 if test "X${COLLECT_NAMES+set}" != Xset; then
cannam@86 14469 COLLECT_NAMES=
cannam@86 14470 export COLLECT_NAMES
cannam@86 14471 fi
cannam@86 14472 _LT_EOF
cannam@86 14473 ;;
cannam@86 14474 esac
cannam@86 14475
cannam@86 14476
cannam@86 14477 ltmain="$ac_aux_dir/ltmain.sh"
cannam@86 14478
cannam@86 14479
cannam@86 14480 # We use sed instead of cat because bash on DJGPP gets confused if
cannam@86 14481 # if finds mixed CR/LF and LF-only lines. Since sed operates in
cannam@86 14482 # text mode, it properly converts lines to CR/LF. This bash problem
cannam@86 14483 # is reportedly fixed, but why not run on old versions too?
cannam@86 14484 sed '$q' "$ltmain" >> "$cfgfile" \
cannam@86 14485 || (rm -f "$cfgfile"; exit 1)
cannam@86 14486
cannam@86 14487 if test x"$xsi_shell" = xyes; then
cannam@86 14488 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
cannam@86 14489 func_dirname ()\
cannam@86 14490 {\
cannam@86 14491 \ case ${1} in\
cannam@86 14492 \ */*) func_dirname_result="${1%/*}${2}" ;;\
cannam@86 14493 \ * ) func_dirname_result="${3}" ;;\
cannam@86 14494 \ esac\
cannam@86 14495 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
cannam@86 14496 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@86 14497 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@86 14498 test 0 -eq $? || _lt_function_replace_fail=:
cannam@86 14499
cannam@86 14500
cannam@86 14501 sed -e '/^func_basename ()$/,/^} # func_basename /c\
cannam@86 14502 func_basename ()\
cannam@86 14503 {\
cannam@86 14504 \ func_basename_result="${1##*/}"\
cannam@86 14505 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
cannam@86 14506 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@86 14507 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@86 14508 test 0 -eq $? || _lt_function_replace_fail=:
cannam@86 14509
cannam@86 14510
cannam@86 14511 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
cannam@86 14512 func_dirname_and_basename ()\
cannam@86 14513 {\
cannam@86 14514 \ case ${1} in\
cannam@86 14515 \ */*) func_dirname_result="${1%/*}${2}" ;;\
cannam@86 14516 \ * ) func_dirname_result="${3}" ;;\
cannam@86 14517 \ esac\
cannam@86 14518 \ func_basename_result="${1##*/}"\
cannam@86 14519 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
cannam@86 14520 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@86 14521 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@86 14522 test 0 -eq $? || _lt_function_replace_fail=:
cannam@86 14523
cannam@86 14524
cannam@86 14525 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
cannam@86 14526 func_stripname ()\
cannam@86 14527 {\
cannam@86 14528 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
cannam@86 14529 \ # positional parameters, so assign one to ordinary parameter first.\
cannam@86 14530 \ func_stripname_result=${3}\
cannam@86 14531 \ func_stripname_result=${func_stripname_result#"${1}"}\
cannam@86 14532 \ func_stripname_result=${func_stripname_result%"${2}"}\
cannam@86 14533 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
cannam@86 14534 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@86 14535 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@86 14536 test 0 -eq $? || _lt_function_replace_fail=:
cannam@86 14537
cannam@86 14538
cannam@86 14539 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
cannam@86 14540 func_split_long_opt ()\
cannam@86 14541 {\
cannam@86 14542 \ func_split_long_opt_name=${1%%=*}\
cannam@86 14543 \ func_split_long_opt_arg=${1#*=}\
cannam@86 14544 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
cannam@86 14545 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@86 14546 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@86 14547 test 0 -eq $? || _lt_function_replace_fail=:
cannam@86 14548
cannam@86 14549
cannam@86 14550 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
cannam@86 14551 func_split_short_opt ()\
cannam@86 14552 {\
cannam@86 14553 \ func_split_short_opt_arg=${1#??}\
cannam@86 14554 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
cannam@86 14555 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
cannam@86 14556 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@86 14557 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@86 14558 test 0 -eq $? || _lt_function_replace_fail=:
cannam@86 14559
cannam@86 14560
cannam@86 14561 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
cannam@86 14562 func_lo2o ()\
cannam@86 14563 {\
cannam@86 14564 \ case ${1} in\
cannam@86 14565 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
cannam@86 14566 \ *) func_lo2o_result=${1} ;;\
cannam@86 14567 \ esac\
cannam@86 14568 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
cannam@86 14569 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@86 14570 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@86 14571 test 0 -eq $? || _lt_function_replace_fail=:
cannam@86 14572
cannam@86 14573
cannam@86 14574 sed -e '/^func_xform ()$/,/^} # func_xform /c\
cannam@86 14575 func_xform ()\
cannam@86 14576 {\
cannam@86 14577 func_xform_result=${1%.*}.lo\
cannam@86 14578 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
cannam@86 14579 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@86 14580 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@86 14581 test 0 -eq $? || _lt_function_replace_fail=:
cannam@86 14582
cannam@86 14583
cannam@86 14584 sed -e '/^func_arith ()$/,/^} # func_arith /c\
cannam@86 14585 func_arith ()\
cannam@86 14586 {\
cannam@86 14587 func_arith_result=$(( $* ))\
cannam@86 14588 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
cannam@86 14589 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@86 14590 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@86 14591 test 0 -eq $? || _lt_function_replace_fail=:
cannam@86 14592
cannam@86 14593
cannam@86 14594 sed -e '/^func_len ()$/,/^} # func_len /c\
cannam@86 14595 func_len ()\
cannam@86 14596 {\
cannam@86 14597 func_len_result=${#1}\
cannam@86 14598 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
cannam@86 14599 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@86 14600 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@86 14601 test 0 -eq $? || _lt_function_replace_fail=:
cannam@86 14602
cannam@86 14603 fi
cannam@86 14604
cannam@86 14605 if test x"$lt_shell_append" = xyes; then
cannam@86 14606 sed -e '/^func_append ()$/,/^} # func_append /c\
cannam@86 14607 func_append ()\
cannam@86 14608 {\
cannam@86 14609 eval "${1}+=\\${2}"\
cannam@86 14610 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
cannam@86 14611 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@86 14612 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@86 14613 test 0 -eq $? || _lt_function_replace_fail=:
cannam@86 14614
cannam@86 14615
cannam@86 14616 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
cannam@86 14617 func_append_quoted ()\
cannam@86 14618 {\
cannam@86 14619 \ func_quote_for_eval "${2}"\
cannam@86 14620 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
cannam@86 14621 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
cannam@86 14622 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@86 14623 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@86 14624 test 0 -eq $? || _lt_function_replace_fail=:
cannam@86 14625
cannam@86 14626
cannam@86 14627 # Save a `func_append' function call where possible by direct use of '+='
cannam@86 14628 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
cannam@86 14629 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@86 14630 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@86 14631 test 0 -eq $? || _lt_function_replace_fail=:
cannam@86 14632 else
cannam@86 14633 # Save a `func_append' function call even when '+=' is not available
cannam@86 14634 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
cannam@86 14635 && mv -f "$cfgfile.tmp" "$cfgfile" \
cannam@86 14636 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
cannam@86 14637 test 0 -eq $? || _lt_function_replace_fail=:
cannam@86 14638 fi
cannam@86 14639
cannam@86 14640 if test x"$_lt_function_replace_fail" = x":"; then
cannam@86 14641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
cannam@86 14642 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
cannam@86 14643 fi
cannam@86 14644
cannam@86 14645
cannam@86 14646 mv -f "$cfgfile" "$ofile" ||
cannam@86 14647 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
cannam@86 14648 chmod +x "$ofile"
cannam@86 14649
cannam@86 14650 ;;
cannam@86 14651
cannam@86 14652 esac
cannam@86 14653 done # for ac_tag
cannam@86 14654
cannam@86 14655
cannam@86 14656 as_fn_exit 0
cannam@86 14657 _ACEOF
cannam@86 14658 ac_clean_files=$ac_clean_files_save
cannam@86 14659
cannam@86 14660 test $ac_write_fail = 0 ||
cannam@86 14661 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cannam@86 14662
cannam@86 14663
cannam@86 14664 # configure is writing to config.log, and then calls config.status.
cannam@86 14665 # config.status does its own redirection, appending to config.log.
cannam@86 14666 # Unfortunately, on DOS this fails, as config.log is still kept open
cannam@86 14667 # by configure, so config.status won't be able to write to it; its
cannam@86 14668 # output is simply discarded. So we exec the FD to /dev/null,
cannam@86 14669 # effectively closing config.log, so it can be properly (re)opened and
cannam@86 14670 # appended to by config.status. When coming back to configure, we
cannam@86 14671 # need to make the FD available again.
cannam@86 14672 if test "$no_create" != yes; then
cannam@86 14673 ac_cs_success=:
cannam@86 14674 ac_config_status_args=
cannam@86 14675 test "$silent" = yes &&
cannam@86 14676 ac_config_status_args="$ac_config_status_args --quiet"
cannam@86 14677 exec 5>/dev/null
cannam@86 14678 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
cannam@86 14679 exec 5>>config.log
cannam@86 14680 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
cannam@86 14681 # would make configure fail if this is the last instruction.
cannam@86 14682 $ac_cs_success || as_fn_exit 1
cannam@86 14683 fi
cannam@86 14684 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cannam@86 14685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cannam@86 14686 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
cannam@86 14687 fi
cannam@86 14688