configure 398.8 KB
Newer Older
1 2
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.64 for libpng 1.2.41beta16.
4
#
5
# Report bugs to <png-mng-implement@lists.sourceforge.net>.
6
#
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 9 10
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
# Foundation, Inc.
#
11 12
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
13 14 15
## -------------------- ##
## M4sh Initialization. ##
## -------------------- ##
16

17 18
# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 21
  emulate sh
  NULLCMD=:
22
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 24
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@"}'='"$@"'
25 26
  setopt NO_GLOB_SUBST
else
27 28 29 30 31
  case `(set -o) 2>/dev/null` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
32
esac
33
fi
34 35


36 37 38 39 40 41 42
as_nl='
'
export as_nl
# Printing a long string crashes Solaris 7 /usr/bin/printf.
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 44 45 46 47 48 49
# Prefer a ksh shell builtin over an external printf program on Solaris,
# but without wasting forks for bash or zsh.
if test -z "$BASH_VERSION$ZSH_VERSION" \
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='print -r --'
  as_echo_n='print -rn --'
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 51 52 53 54 55 56 57 58 59
  as_echo='printf %s\n'
  as_echo_n='printf %s'
else
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
    as_echo_n='/usr/ucb/echo -n'
  else
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
    as_echo_n_body='eval
      arg=$1;
60
      case $arg in #(
61 62 63 64 65 66 67 68 69 70 71 72 73
      *"$as_nl"*)
	expr "X$arg" : "X\\(.*\\)$as_nl";
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
      esac;
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
    '
    export as_echo_n_body
    as_echo_n='sh -c $as_echo_n_body as_echo'
  fi
  export as_echo_body
  as_echo='sh -c $as_echo_body as_echo'
fi

74 75
# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
76 77 78 79 80
  PATH_SEPARATOR=:
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
      PATH_SEPARATOR=';'
  }
81 82
fi

83

84 85 86 87 88 89 90 91
# IFS
# We need space, tab and new line, in precisely that order.  Quoting is
# there to prevent editors from complaining about space-tab.
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
# splitting by setting IFS to empty value.)
IFS=" ""	$as_nl"

# Find who we are.  Look in the path if we contain no directory separator.
92
case $0 in #((
93 94 95 96 97 98
  *[\\/]* ) as_myself=$0 ;;
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
99 100
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  done
101 102 103 104 105 106 107 108 109 110
IFS=$as_save_IFS

     ;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
  as_myself=$0
fi
if test ! -f "$as_myself"; then
111
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112
  exit 1
113 114
fi

115 116 117 118 119 120 121
# Unset variables that we do not need and which cause bugs (e.g. in
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
# suppresses any "Segmentation fault" message there.  '((' could
# trigger a bug in pdksh 5.2.14.
for as_var in BASH_ENV ENV MAIL MAILPATH
do eval test x\${$as_var+set} = xset \
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122
done
123 124 125 126 127
PS1='$ '
PS2='> '
PS4='+ '

# NLS nuisances.
128 129 130 131
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE
132

133
# CDPATH.
134
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135

136
if test "x$CONFIG_SHELL" = x; then
137 138 139 140 141 142 143
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
  setopt NO_GLOB_SUBST
144
else
145 146 147 148 149 150
  case \`(set -o) 2>/dev/null\` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
esac
151
fi
152 153 154 155 156 157
"
  as_required="as_fn_return () { (exit \$1); }
as_fn_success () { as_fn_return 0; }
as_fn_failure () { as_fn_return 1; }
as_fn_ret_success () { return 0; }
as_fn_ret_failure () { return 1; }
158 159

exitcode=0
160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :

else
  exitcode=1; echo positional parameters were not saved.
fi
test x\$exitcode = x0 || exit 1"
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
test \$(( 1 + 1 )) = 2 || exit 1"
  if (eval "$as_required") 2>/dev/null; then :
  as_have_required=yes
177
else
178
  as_have_required=no
179
fi
180
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181 182

else
183 184
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_found=false
185
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 187 188
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
189 190
  as_found=:
  case $as_dir in #(
191
	 /*)
192
	   for as_base in sh bash ksh sh5; do
193 194 195 196 197 198 199 200 201
	     # Try only shells that exist, to save several forks.
	     as_shell=$as_dir/$as_base
	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  CONFIG_SHELL=$as_shell as_have_required=yes
		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  break 2
fi
fi
202 203
	   done;;
       esac
204
  as_found=false
205
done
206 207 208 209
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  CONFIG_SHELL=$SHELL as_have_required=yes
fi; }
210 211 212
IFS=$as_save_IFS


213 214 215 216 217 218 219
      if test "x$CONFIG_SHELL" != x; then :
  # We cannot yet assume a decent shell, so we have to provide a
	# neutralization value for shells without unset; and this also
	# works around shells that cannot unset nonexistent variables.
	BASH_ENV=/dev/null
	ENV=/dev/null
	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 221
	export CONFIG_SHELL
	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 223
fi

224 225 226 227 228 229 230 231 232 233 234 235 236 237
    if test x$as_have_required = xno; then :
  $as_echo "$0: This script requires a shell more modern than all"
  $as_echo "$0: the shells that I found on your system."
  if test x${ZSH_VERSION+set} = xset ; then
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  else
    $as_echo "$0: Please tell bug-autoconf@gnu.org and
$0: png-mng-implement@lists.sourceforge.net about your
$0: system, including any error possibly output before this
$0: message. Then install a modern shell, or manually run
$0: the script under such a shell if you do have one."
  fi
  exit 1
238 239 240
fi
fi
fi
241 242 243 244 245
SHELL=${CONFIG_SHELL-/bin/sh}
export SHELL
# Unset more variables known to interfere with behavior of common tools.
CLICOLOR_FORCE= GREP_OPTIONS=
unset CLICOLOR_FORCE GREP_OPTIONS
246

247 248 249 250 251 252 253 254 255 256 257
## --------------------- ##
## M4sh Shell Functions. ##
## --------------------- ##
# as_fn_unset VAR
# ---------------
# Portably unset VAR.
as_fn_unset ()
{
  { eval $1=; unset $1;}
}
as_unset=as_fn_unset
258

259 260 261 262 263 264 265
# as_fn_set_status STATUS
# -----------------------
# Set $? to STATUS, without forking.
as_fn_set_status ()
{
  return $1
} # as_fn_set_status
266

267 268 269 270 271 272 273 274 275 276 277 278 279 280 281
# as_fn_exit STATUS
# -----------------
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
as_fn_exit ()
{
  set +e
  as_fn_set_status $1
  exit $1
} # as_fn_exit

# as_fn_mkdir_p
# -------------
# Create "$as_dir" as a directory, including parents if necessary.
as_fn_mkdir_p ()
{
282

283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334
  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || eval $as_mkdir_p || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"


} # as_fn_mkdir_p
# as_fn_append VAR VALUE
# ----------------------
# Append the text in VALUE to the end of the definition contained in VAR. Take
# advantage of any shell optimizations that allow amortized linear growth over
# repeated appends, instead of the typical quadratic growth present in naive
# implementations.
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  eval 'as_fn_append ()
  {
    eval $1+=\$2
  }'
335
else
336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357
  as_fn_append ()
  {
    eval $1=\$$1\$2
  }
fi # as_fn_append

# as_fn_arith ARG...
# ------------------
# Perform arithmetic evaluation on the ARGs, and store the result in the
# global $as_val. Take advantage of shells that can avoid forks. The arguments
# must be portable across $(()) and expr.
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  eval 'as_fn_arith ()
  {
    as_val=$(( $* ))
  }'
else
  as_fn_arith ()
  {
    as_val=`expr "$@" || test $? -eq 1`
  }
fi # as_fn_arith
358 359


360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378
# as_fn_error ERROR [LINENO LOG_FD]
# ---------------------------------
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
# script with status $?, using 1 if that was 0.
as_fn_error ()
{
  as_status=$?; test $as_status -eq 0 && as_status=1
  if test "$3"; then
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  fi
  $as_echo "$as_me: error: $1" >&2
  as_fn_exit $as_status
} # as_fn_error

if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  as_expr=expr
379
else
380
  as_expr=false
381 382
fi

383 384 385 386
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  as_basename=basename
else
  as_basename=false
387 388
fi

389 390
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  as_dirname=dirname
391
else
392
  as_dirname=false
393 394
fi

395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412
as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
413

414 415 416 417 418 419
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits
420

421

422 423 424 425 426
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
427 428 429 430
  sed -n '
    p
    /[$]LINENO/=
  ' <$as_myself |
431
    sed '
432 433 434 435
      s/[$]LINENO.*/&-/
      t lineno
      b
      :lineno
436
      N
437 438
      :loop
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439
      t loop
440
      s/-\n.*//
441
    ' >$as_me.lineno &&
442
  chmod +x "$as_me.lineno" ||
443
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 445 446

  # Don't try to exec as it changes $[0], causing all sort of problems
  # (the dirname of $[0] is not the place where we might find the
447 448
  # original and so on.  Autoconf is especially sensitive to this).
  . "./$as_me.lineno"
449 450 451 452
  # Exit status is that of the last command.
  exit
}

453
ECHO_C= ECHO_N= ECHO_T=
454
case `echo -n x` in #(((((
455
-n*)
456
  case `echo 'xy\c'` in
457
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
458 459 460
  xy)  ECHO_C='\c';;
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
       ECHO_T='	';;
461 462 463
  esac;;
*)
  ECHO_N='-n';;
464 465 466
esac

rm -f conf$$ conf$$.exe conf$$.file
467 468 469 470
if test -d conf$$.dir; then
  rm -f conf$$.dir/conf$$.file
else
  rm -f conf$$.dir
471 472 473 474 475 476 477 478 479 480 481 482 483 484
  mkdir conf$$.dir 2>/dev/null
fi
if (echo >conf$$.file) 2>/dev/null; then
  if ln -s conf$$.file conf$$ 2>/dev/null; then
    as_ln_s='ln -s'
    # ... but there are two gotchas:
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    # In both cases, we have to default to `cp -p'.
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
      as_ln_s='cp -p'
  elif ln conf$$.file conf$$ 2>/dev/null; then
    as_ln_s=ln
  else
485
    as_ln_s='cp -p'
486
  fi
487 488 489
else
  as_ln_s='cp -p'
fi
490 491
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null
492 493

if mkdir -p . 2>/dev/null; then
494
  as_mkdir_p='mkdir -p "$as_dir"'
495
else
496
  test -d ./-p && rmdir ./-p
497 498 499
  as_mkdir_p=false
fi

500 501
if test -x / >/dev/null 2>&1; then
  as_test_x='test -x'
502
else
503 504 505 506 507 508 509 510
  if ls -dL / >/dev/null 2>&1; then
    as_ls_L_option=L
  else
    as_ls_L_option=
  fi
  as_test_x='
    eval sh -c '\''
      if test -d "$1"; then
511
	test -d "$1/.";
512
      else
513
	case $1 in #(
514
	-*)set "./$1";;
515
	esac;
516
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517 518 519
	???[sx]*):;;*)false;;esac;fi
    '\'' sh
  '
520
fi
521
as_executable_p=$as_test_x
522 523

# Sed expression to map a string onto a valid CPP name.
524
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 526

# Sed expression to map a string onto a valid variable name.
527
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528 529 530 531 532 533



# Check that we are running under the correct shell.
SHELL=${CONFIG_SHELL-/bin/sh}

534
case X$lt_ECHO in
535 536
X*--fallback-echo)
  # Remove one level of quotation (which was required for Make).
537
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
538 539 540
  ;;
esac

541
ECHO=${lt_ECHO-echo}
542 543 544 545 546 547
if test "X$1" = X--no-reexec; then
  # Discard the --no-reexec flag, and continue.
  shift
elif test "X$1" = X--fallback-echo; then
  # Avoid inline document here, it may be left over
  :
548 549
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  # Yippee, $ECHO works!
550 551 552 553 554 555 556 557 558
  :
else
  # Restart under the correct shell.
  exec $SHELL "$0" --no-reexec ${1+"$@"}
fi

if test "X$1" = X--fallback-echo; then
  # used as fallback echo
  shift
559
  cat <<_LT_EOF
560
$*
561
_LT_EOF
562 563 564 565 566
  exit 0
fi

# The HP-UX ksh and POSIX shell print the target directory to stdout
# if CDPATH is set.
567
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
568

569 570 571 572 573 574 575 576 577 578 579 580
if test -z "$lt_ECHO"; then
  if test "X${echo_test_string+set}" != Xset; then
    # find a string as large as possible, as long as the shell can cope with it
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
      then
        break
      fi
    done
  fi
581

582 583 584 585 586 587 588 589 590 591
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
     test "X$echo_testing_string" = "X$echo_test_string"; then
    :
  else
    # The Solaris, AIX, and Digital Unix default echo programs unquote
    # backslashes.  This makes it impossible to quote backslashes using
    #   echo "$something" | sed 's/\\/\\\\/g'
    #
    # So, first we look for a working echo in the user's PATH.
592

593 594 595 596 597 598 599 600 601 602 603
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    for dir in $PATH /usr/ucb; do
      IFS="$lt_save_ifs"
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
         test "X$echo_testing_string" = "X$echo_test_string"; then
        ECHO="$dir/echo"
        break
      fi
    done
604
    IFS="$lt_save_ifs"
605

606 607 608 609 610 611 612 613 614 615 616 617 618 619 620
    if test "X$ECHO" = Xecho; then
      # We didn't find a better echo, so look for alternatives.
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
         test "X$echo_testing_string" = "X$echo_test_string"; then
        # This shell has a builtin print -r that does the trick.
        ECHO='print -r'
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
	   test "X$CONFIG_SHELL" != X/bin/ksh; then
        # If we have ksh, try running configure again with it.
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
        export ORIGINAL_CONFIG_SHELL
        CONFIG_SHELL=/bin/ksh
        export CONFIG_SHELL
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
621
      else
622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645
        # Try using printf.
        ECHO='printf %s\n'
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
	   test "X$echo_testing_string" = "X$echo_test_string"; then
	  # Cool, printf works
	  :
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
	     test "X$echo_testing_string" = 'X\t' &&
	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
	     test "X$echo_testing_string" = "X$echo_test_string"; then
	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
	  export CONFIG_SHELL
	  SHELL="$CONFIG_SHELL"
	  export SHELL
	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
	     test "X$echo_testing_string" = 'X\t' &&
	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
	     test "X$echo_testing_string" = "X$echo_test_string"; then
	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
        else
	  # maybe with a smaller string...
	  prev=:
646

647 648 649 650 651 652 653
	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
	    then
	      break
	    fi
	    prev="$cmd"
	  done
654

655 656 657 658 659 660 661 662 663
	  if test "$prev" != 'sed 50q "$0"'; then
	    echo_test_string=`eval $prev`
	    export echo_test_string
	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
	  else
	    # Oops.  We lost completely, so just stick with echo.
	    ECHO=echo
	  fi
        fi
664 665 666 667 668 669 670
      fi
    fi
  fi
fi

# Copy echo and quote the copy suitably for passing to libtool from
# the Makefile, instead of quoting the original, which is used later.
671 672 673
lt_ECHO=$ECHO
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
674 675 676 677
fi



678

679 680
exec 7<&0 </dev/null 6>&1

681 682 683 684 685 686 687 688 689
# Name of the host.
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
# so uname gets run too.
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`

#
# Initializations.
#
ac_default_prefix=/usr/local
690
ac_clean_files=
691
ac_config_libobj_dir=.
692
LIBOBJS=
693 694 695 696 697 698 699 700
cross_compiling=no
subdirs=
MFLAGS=
MAKEFLAGS=

# Identity of this package.
PACKAGE_NAME='libpng'
PACKAGE_TARNAME='libpng'
701 702
PACKAGE_VERSION='1.2.41beta16'
PACKAGE_STRING='libpng 1.2.41beta16'
703
PACKAGE_BUGREPORT='png-mng-implement@lists.sourceforge.net'
704
PACKAGE_URL=''
705 706 707 708 709

ac_unique_file="pngget.c"
# Factoring default headers for most tests.
ac_includes_default="\
#include <stdio.h>
710
#ifdef HAVE_SYS_TYPES_H
711 712
# include <sys/types.h>
#endif
713
#ifdef HAVE_SYS_STAT_H
714 715
# include <sys/stat.h>
#endif
716
#ifdef STDC_HEADERS
717 718 719
# include <stdlib.h>
# include <stddef.h>
#else
720
# ifdef HAVE_STDLIB_H
721 722 723
#  include <stdlib.h>
# endif
#endif
724 725
#ifdef HAVE_STRING_H
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
726 727 728 729
#  include <memory.h>
# endif
# include <string.h>
#endif
730
#ifdef HAVE_STRINGS_H
731 732
# include <strings.h>
#endif
733
#ifdef HAVE_INTTYPES_H
734
# include <inttypes.h>
735
#endif
736
#ifdef HAVE_STDINT_H
737
# include <stdint.h>
738
#endif
739
#ifdef HAVE_UNISTD_H
740 741 742
# include <unistd.h>
#endif"

743 744 745
ac_subst_vars='am__EXEEXT_FALSE
am__EXEEXT_TRUE
LTLIBOBJS
746
compatlib
747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861
binconfigs
pkgconfigdir
PNGLIB_RELEASE
PNGLIB_MINOR
PNGLIB_MAJOR
PNGLIB_VERSION
SYMBOL_PREFIX
HAVE_LD_VERSION_SCRIPT_FALSE
HAVE_LD_VERSION_SCRIPT_TRUE
LIBPNG_NO_MMX
LIBPNG_DEFINES
LIBOBJS
POW_LIB
OTOOL64
OTOOL
LIPO
NMEDIT
DSYMUTIL
lt_ECHO
RANLIB
AR
NM
ac_ct_DUMPBIN
DUMPBIN
LIBTOOL
LN_S
OBJDUMP
DLLTOOL
AS
CPP
LD
FGREP
EGREP
GREP
SED
host_os
host_vendor
host_cpu
host
build_os
build_vendor
build_cpu
build
am__fastdepCC_FALSE
am__fastdepCC_TRUE
CCDEPMODE
AMDEPBACKSLASH
AMDEP_FALSE
AMDEP_TRUE
am__quote
am__include
DEPDIR
OBJEXT
EXEEXT
ac_ct_CC
CPPFLAGS
LDFLAGS
CFLAGS
CC
MAINT
MAINTAINER_MODE_FALSE
MAINTAINER_MODE_TRUE
am__untar
am__tar
AMTAR
am__leading_dot
SET_MAKE
AWK
mkdir_p
MKDIR_P
INSTALL_STRIP_PROGRAM
STRIP
install_sh
MAKEINFO
AUTOHEADER
AUTOMAKE
AUTOCONF
ACLOCAL
VERSION
PACKAGE
CYGPATH_W
am__isrc
INSTALL_DATA
INSTALL_SCRIPT
INSTALL_PROGRAM
target_alias
host_alias
build_alias
LIBS
ECHO_T
ECHO_N
ECHO_C
DEFS
mandir
localedir
libdir
psdir
pdfdir
dvidir
htmldir
infodir
docdir
oldincludedir
includedir
localstatedir
sharedstatedir
sysconfdir
datadir
datarootdir
libexecdir
sbindir
bindir
program_transform_name
prefix
exec_prefix
862
PACKAGE_URL
863 864 865 866 867 868 869
PACKAGE_BUGREPORT
PACKAGE_STRING
PACKAGE_VERSION
PACKAGE_TARNAME
PACKAGE_NAME
PATH_SEPARATOR
SHELL'
870
ac_subst_files=''
871 872 873 874 875 876 877 878 879 880 881 882 883 884
ac_user_opts='
enable_option_checking
enable_maintainer_mode
enable_dependency_tracking
with_gnu_ld
enable_shared
enable_static
with_pic
enable_fast_install
enable_libtool_lock
with_pkgconfigdir
with_binconfigs
with_libpng_compat
'
885 886 887 888 889 890
      ac_precious_vars='build_alias
host_alias
target_alias
CC
CFLAGS
LDFLAGS
891
LIBS
892
CPPFLAGS
893
CPP'
894

895 896 897 898

# Initialize some variables set by options.
ac_init_help=
ac_init_version=false
899 900
ac_unrecognized_opts=
ac_unrecognized_sep=
901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922
# The variables have the same names as the options, with
# dashes changed to underlines.
cache_file=/dev/null
exec_prefix=NONE
no_create=
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
silent=
site=
srcdir=
verbose=
x_includes=NONE
x_libraries=NONE

# Installation directory options.
# These are left unexpanded so users can "make install exec_prefix=/foo"
# and all the variables that are supposed to be based on exec_prefix
# by default will actually change.
# Use braces instead of parens because sh, perl, etc. also accept them.
923
# (The list follows the same order as the GNU Coding Standards.)
924 925 926
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
927 928
datarootdir='${prefix}/share'
datadir='${datarootdir}'
929 930 931 932 933
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
includedir='${prefix}/include'
oldincludedir='/usr/include'
934 935 936 937 938 939 940 941 942
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
infodir='${datarootdir}/info'
htmldir='${docdir}'
dvidir='${docdir}'
pdfdir='${docdir}'
psdir='${docdir}'
libdir='${exec_prefix}/lib'
localedir='${datarootdir}/locale'
mandir='${datarootdir}/man'
943 944

ac_prev=
945
ac_dashdash=
946 947 948 949
for ac_option
do
  # If the previous option needs an argument, assign it.
  if test -n "$ac_prev"; then
950
    eval $ac_prev=\$ac_option
951 952 953 954
    ac_prev=
    continue
  fi

955 956 957 958
  case $ac_option in
  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  *)	ac_optarg=yes ;;
  esac
959 960 961

  # Accept the important Cygnus configure options, so we can diagnose typos.

962 963 964
  case $ac_dashdash$ac_option in
  --)
    ac_dashdash=yes ;;
965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985

  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    ac_prev=bindir ;;
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    bindir=$ac_optarg ;;

  -build | --build | --buil | --bui | --bu)
    ac_prev=build_alias ;;
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    build_alias=$ac_optarg ;;

  -cache-file | --cache-file | --cache-fil | --cache-fi \
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    ac_prev=cache_file ;;
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    cache_file=$ac_optarg ;;

  --config-cache | -C)
    cache_file=config.cache ;;

986
  -datadir | --datadir | --datadi | --datad)
987
    ac_prev=datadir ;;
988
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
989 990
    datadir=$ac_optarg ;;

991 992 993 994 995 996 997
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  | --dataroo | --dataro | --datar)
    ac_prev=datarootdir ;;
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    datarootdir=$ac_optarg ;;

998
  -disable-* | --disable-*)
999
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1000
    # Reject names that are not valid shell variable names.
1001
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1002
      as_fn_error "invalid feature name: $ac_useropt"
1003 1004 1005 1006 1007 1008 1009 1010 1011 1012
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"enable_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval enable_$ac_useropt=no ;;
1013 1014 1015 1016 1017 1018 1019 1020 1021 1022

  -docdir | --docdir | --docdi | --doc | --do)
    ac_prev=docdir ;;
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    docdir=$ac_optarg ;;

  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    ac_prev=dvidir ;;
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    dvidir=$ac_optarg ;;
1023 1024

  -enable-* | --enable-*)
1025
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1026
    # Reject names that are not valid shell variable names.
1027
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1028
      as_fn_error "invalid feature name: $ac_useropt"
1029 1030 1031 1032 1033 1034 1035 1036 1037 1038
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"enable_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval enable_$ac_useropt=\$ac_optarg ;;
1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064

  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  | --exec | --exe | --ex)
    ac_prev=exec_prefix ;;
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  | --exec=* | --exe=* | --ex=*)
    exec_prefix=$ac_optarg ;;

  -gas | --gas | --ga | --g)
    # Obsolete; use --with-gas.
    with_gas=yes ;;

  -help | --help | --hel | --he | -h)
    ac_init_help=long ;;
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    ac_init_help=recursive ;;
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    ac_init_help=short ;;

  -host | --host | --hos | --ho)
    ac_prev=host_alias ;;
  -host=* | --host=* | --hos=* | --ho=*)
    host_alias=$ac_optarg ;;

1065 1066 1067 1068 1069 1070
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
    ac_prev=htmldir ;;
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  | --ht=*)
    htmldir=$ac_optarg ;;

1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094
  -includedir | --includedir | --includedi | --included | --include \
  | --includ | --inclu | --incl | --inc)
    ac_prev=includedir ;;
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  | --includ=* | --inclu=* | --incl=* | --inc=*)
    includedir=$ac_optarg ;;

  -infodir | --infodir | --infodi | --infod | --info | --inf)
    ac_prev=infodir ;;
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    infodir=$ac_optarg ;;

  -libdir | --libdir | --libdi | --libd)
    ac_prev=libdir ;;
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
    libdir=$ac_optarg ;;

  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  | --libexe | --libex | --libe)
    ac_prev=libexecdir ;;
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  | --libexe=* | --libex=* | --libe=*)
    libexecdir=$ac_optarg ;;

1095 1096 1097 1098 1099
  -localedir | --localedir | --localedi | --localed | --locale)
    ac_prev=localedir ;;
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
    localedir=$ac_optarg ;;

1100
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1101
  | --localstate | --localstat | --localsta | --localst | --locals)
1102 1103
    ac_prev=localstatedir ;;
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1104
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168
    localstatedir=$ac_optarg ;;

  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    ac_prev=mandir ;;
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    mandir=$ac_optarg ;;

  -nfp | --nfp | --nf)
    # Obsolete; use --without-fp.
    with_fp=no ;;

  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c | -n)
    no_create=yes ;;

  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    no_recursion=yes ;;

  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  | --oldin | --oldi | --old | --ol | --o)
    ac_prev=oldincludedir ;;
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    oldincludedir=$ac_optarg ;;

  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    ac_prev=prefix ;;
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    prefix=$ac_optarg ;;

  -program-prefix | --program-prefix | --program-prefi | --program-pref \
  | --program-pre | --program-pr | --program-p)
    ac_prev=program_prefix ;;
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    program_prefix=$ac_optarg ;;

  -program-suffix | --program-suffix | --program-suffi | --program-suff \
  | --program-suf | --program-su | --program-s)
    ac_prev=program_suffix ;;
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    program_suffix=$ac_optarg ;;

  -program-transform-name | --program-transform-name \
  | --program-transform-nam | --program-transform-na \
  | --program-transform-n | --program-transform- \
  | --program-transform | --program-transfor \
  | --program-transfo | --program-transf \
  | --program-trans | --program-tran \
  | --progr-tra | --program-tr | --program-t)
    ac_prev=program_transform_name ;;
  -program-transform-name=* | --program-transform-name=* \
  | --program-transform-nam=* | --program-transform-na=* \
  | --program-transform-n=* | --program-transform-=* \
  | --program-transform=* | --program-transfor=* \
  | --program-transfo=* | --program-transf=* \
  | --program-trans=* | --program-tran=* \
  | --progr-tra=* | --program-tr=* | --program-t=*)
    program_transform_name=$ac_optarg ;;

1169 1170 1171 1172 1173 1174 1175 1176 1177 1178
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
    ac_prev=pdfdir ;;
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
    pdfdir=$ac_optarg ;;

  -psdir | --psdir | --psdi | --psd | --ps)
    ac_prev=psdir ;;
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
    psdir=$ac_optarg ;;

1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil)
    silent=yes ;;

  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
    ac_prev=sbindir ;;
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  | --sbi=* | --sb=*)
    sbindir=$ac_optarg ;;

  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  | --sharedst | --shareds | --shared | --share | --shar \
  | --sha | --sh)
    ac_prev=sharedstatedir ;;
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  | --sha=* | --sh=*)
    sharedstatedir=$ac_optarg ;;

  -site | --site | --sit)
    ac_prev=site ;;
  -site=* | --site=* | --sit=*)
    site=$ac_optarg ;;

  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    ac_prev=srcdir ;;
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    srcdir=$ac_optarg ;;

  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  | --syscon | --sysco | --sysc | --sys | --sy)
    ac_prev=sysconfdir ;;
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    sysconfdir=$ac_optarg ;;

  -target | --target | --targe | --targ | --tar | --ta | --t)
    ac_prev=target_alias ;;
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    target_alias=$ac_optarg ;;

  -v | -verbose | --verbose | --verbos | --verbo | --verb)
    verbose=yes ;;

  -version | --version | --versio | --versi | --vers | -V)
    ac_init_version=: ;;

  -with-* | --with-*)
1229
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1230
    # Reject names that are not valid shell variable names.
1231
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232
      as_fn_error "invalid package name: $ac_useropt"
1233 1234 1235 1236 1237 1238 1239 1240 1241 1242
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"with_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval with_$ac_useropt=\$ac_optarg ;;
1243 1244

  -without-* | --without-*)
1245
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1246
    # Reject names that are not valid shell variable names.
1247
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1248
      as_fn_error "invalid package name: $ac_useropt"
1249 1250 1251 1252 1253 1254 1255 1256 1257 1258
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"with_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval with_$ac_useropt=no ;;
1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277

  --x)
    # Obsolete; use --with-x.
    with_x=yes ;;

  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  | --x-incl | --x-inc | --x-in | --x-i)
    ac_prev=x_includes ;;
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    x_includes=$ac_optarg ;;

  -x-libraries | --x-libraries | --x-librarie | --x-librari \
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
    ac_prev=x_libraries ;;
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    x_libraries=$ac_optarg ;;

1278 1279
  -*) as_fn_error "unrecognized option: \`$ac_option'
Try \`$0 --help' for more information."
1280 1281 1282 1283 1284
    ;;

  *=*)
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    # Reject names that are not valid shell variable names.
1285 1286 1287 1288
    case $ac_envvar in #(
      '' | [0-9]* | *[!_$as_cr_alnum]* )
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
    esac
1289
    eval $ac_envvar=\$ac_optarg
1290 1291 1292 1293
    export $ac_envvar ;;

  *)
    # FIXME: should be removed in autoconf 3.0.
1294
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1295
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1296
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1297 1298 1299 1300 1301 1302 1303 1304
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
    ;;

  esac
done

if test -n "$ac_prev"; then
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1305
  as_fn_error "missing argument to $ac_option"
1306 1307
fi

1308 1309 1310
if test -n "$ac_unrecognized_opts"; then
  case $enable_option_checking in
    no) ;;
1311
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1312
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1313 1314 1315 1316
  esac
fi

# Check all directory arguments for consistency.
1317 1318 1319 1320
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
		datadir sysconfdir sharedstatedir localstatedir includedir \
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
		libdir localedir mandir
1321
do
1322
  eval ac_val=\$$ac_var
1323 1324 1325 1326 1327 1328 1329
  # Remove trailing slashes.
  case $ac_val in
    */ )
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
      eval $ac_var=\$ac_val;;
  esac
  # Be sure to have absolute directory names.
1330
  case $ac_val in
1331 1332
    [\\/$]* | ?:[\\/]* )  continue;;
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1333
  esac
1334
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347
done

# There might be people who depend on the old broken behavior: `$host'
# used to hold the argument of --host etc.
# FIXME: To remove some day.
build=$build_alias
host=$host_alias
target=$target_alias

# FIXME: To remove some day.
if test "x$host_alias" != x; then
  if test "x$build_alias" = x; then
    cross_compiling=maybe
1348
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360
    If a cross compiler is detected then cross compile mode will be used." >&2
  elif test "x$build_alias" != "x$host_alias"; then
    cross_compiling=yes
  fi
fi

ac_tool_prefix=
test -n "$host_alias" && ac_tool_prefix=$host_alias-

test "$silent" = yes && exec 6>/dev/null


1361 1362 1363
ac_pwd=`pwd` && test -n "$ac_pwd" &&
ac_ls_di=`ls -di .` &&
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1364
  as_fn_error "working directory cannot be determined"
1365
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1366
  as_fn_error "pwd does not report name of working directory"
1367 1368


1369 1370 1371
# Find the source files, if location was not specified.
if test -z "$srcdir"; then
  ac_srcdir_defaulted=yes
1372
  # Try the directory containing this script, then the parent directory.
1373 1374 1375 1376 1377 1378
  ac_confdir=`$as_dirname -- "$as_myself" ||
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_myself" : 'X\(//\)[^/]' \| \
	 X"$as_myself" : 'X\(//\)$' \| \
	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_myself" |
1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
1396
  srcdir=$ac_confdir
1397
  if test ! -r "$srcdir/$ac_unique_file"; then
1398 1399 1400 1401 1402
    srcdir=..
  fi
else
  ac_srcdir_defaulted=no
fi
1403 1404
if test ! -r "$srcdir/$ac_unique_file"; then
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1405
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1406
fi
1407 1408
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
ac_abs_confdir=`(
1409
	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428
	pwd)`
# When building in place, set srcdir=.
if test "$ac_abs_confdir" = "$ac_pwd"; then
  srcdir=.
fi
# Remove unnecessary trailing slashes from srcdir.
# Double slashes in file names in object file debugging info
# mess up M-x gdb in Emacs.
case $srcdir in
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
esac
for ac_var in $ac_precious_vars; do
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
  eval ac_env_${ac_var}_value=\$${ac_var}
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
done

#
1429 1430 1431 1432 1433 1434
# Report the --help message.
#
if test "$ac_init_help" = "long"; then
  # Omit some internal or obsolete options to make the list less imposing.
  # This message is too long to be a string in the A/UX 3.1 sh.
  cat <<_ACEOF
1435
\`configure' configures libpng 1.2.41beta16 to adapt to many kinds of systems.
1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456

Usage: $0 [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print \`checking...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for \`--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']

Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
1457
                          [$ac_default_prefix]
1458
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1459
                          [PREFIX]
1460 1461 1462 1463 1464 1465 1466 1467 1468

By default, \`make install' will install all the files in
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
for instance \`--prefix=\$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487
  --bindir=DIR            user executables [EPREFIX/bin]
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
  --libexecdir=DIR        program executables [EPREFIX/libexec]
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  --libdir=DIR            object code libraries [EPREFIX/lib]
  --includedir=DIR        C header files [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  --infodir=DIR           info documentation [DATAROOTDIR/info]
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  --mandir=DIR            man documentation [DATAROOTDIR/man]
  --docdir=DIR            documentation root [DATAROOTDIR/doc/libpng]
  --htmldir=DIR           html documentation [DOCDIR]
  --dvidir=DIR            dvi documentation [DOCDIR]
  --pdfdir=DIR            pdf documentation [DOCDIR]
  --psdir=DIR             ps documentation [DOCDIR]
1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504
_ACEOF

  cat <<\_ACEOF

Program names:
  --program-prefix=PREFIX            prepend PREFIX to installed program names
  --program-suffix=SUFFIX            append SUFFIX to installed program names
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names

System types:
  --build=BUILD     configure for building on BUILD [guessed]
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
_ACEOF
fi

if test -n "$ac_init_help"; then
  case $ac_init_help in
1505
     short | recursive ) echo "Configuration of libpng 1.2.41beta16:";;
1506 1507 1508 1509
   esac
  cat <<\_ACEOF

Optional Features:
1510
  --disable-option-checking  ignore unrecognized --enable/--with options
1511 1512
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1513 1514 1515 1516
  --enable-maintainer-mode  enable make rules and dependencies not useful
			  (and sometimes confusing) to the casual installer
  --disable-dependency-tracking  speeds up one-time build
  --enable-dependency-tracking   do not reject slow dependency extractors
1517 1518
  --enable-shared[=PKGS]  build shared libraries [default=yes]
  --enable-static[=PKGS]  build static libraries [default=yes]
1519 1520
  --enable-fast-install[=PKGS]
                          optimize for fast installation [default=yes]
1521 1522 1523 1524 1525
  --disable-libtool-lock  avoid locking (might break parallel builds)

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1526 1527 1528
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  --with-pic              try to use only PIC/non-PIC objects [default=use
                          both]
1529
  --with-pkgconfigdir     Use the specified pkgconfig dir (default is
1530 1531 1532 1533 1534
                          libdir/pkgconfig)
  --with-binconfigs       Generate shell libpng-config scripts as well as
                          pkg-config data [default=yes]
  --with-libpng-compat    Generate the obsolete libpng.so library
                          [default=yes]
1535 1536 1537 1538 1539 1540

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
1541
  LIBS        libraries to pass to the linker, e.g. -l<library>
1542 1543
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
1544 1545 1546 1547 1548
  CPP         C preprocessor

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

1549
Report bugs to <png-mng-implement@lists.sourceforge.net>.
1550
_ACEOF
1551
ac_status=$?
1552 1553 1554 1555 1556
fi

if test "$ac_init_help" = "recursive"; then
  # If there are subdirs, report their specific --help.
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1557 1558 1559
    test -d "$ac_dir" ||
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
      continue
1560 1561
    ac_builddir=.

1562 1563 1564
case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
1565
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1566
  # A ".." for each directory in $ac_dir_suffix.
1567
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1568 1569 1570 1571 1572 1573 1574 1575 1576
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix
1577 1578

case $srcdir in
1579
  .)  # We are building in place.
1580
    ac_srcdir=.
1581 1582 1583
    ac_top_srcdir=$ac_top_builddir_sub
    ac_abs_top_srcdir=$ac_pwd ;;
  [\\/]* | ?:[\\/]* )  # Absolute name.
1584
    ac_srcdir=$srcdir$ac_dir_suffix;
1585 1586 1587 1588 1589 1590
    ac_top_srcdir=$srcdir
    ac_abs_top_srcdir=$srcdir ;;
  *) # Relative name.
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_build_prefix$srcdir
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1591
esac
1592 1593 1594 1595 1596 1597 1598 1599 1600 1601
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix

    cd "$ac_dir" || { ac_status=$?; continue; }
    # Check for guested configure.
    if test -f "$ac_srcdir/configure.gnu"; then
      echo &&
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
    elif test -f "$ac_srcdir/configure"; then
      echo &&
      $SHELL "$ac_srcdir/configure" --help=recursive
1602
    else
1603
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1604 1605
    fi || ac_status=$?
    cd "$ac_pwd" || { ac_status=$?; break; }
1606 1607 1608
  done
fi

1609
test -n "$ac_init_help" && exit $ac_status
1610 1611
if $ac_init_version; then
  cat <<\_ACEOF
1612
libpng configure 1.2.41beta16
1613
generated by GNU Autoconf 2.64
1614

1615
Copyright (C) 2009 Free Software Foundation, Inc.
1616 1617 1618
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
_ACEOF
1619
  exit
1620
fi
1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032

## ------------------------ ##
## Autoconf initialization. ##
## ------------------------ ##

# ac_fn_c_try_compile LINENO
# --------------------------
# Try to compile conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_compile ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext
  if { { ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compile") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  return $ac_retval

} # ac_fn_c_try_compile

# ac_fn_c_try_cpp LINENO
# ----------------------
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_cpp ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if { { ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

    ac_retval=1
fi
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  return $ac_retval

} # ac_fn_c_try_cpp

# ac_fn_c_try_link LINENO
# -----------------------
# Try to link conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_link ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext conftest$ac_exeext
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  # interfere with the next link command; also delete a directory that is
  # left behind by Apple's compiler.  We do this before executing the actions.
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  return $ac_retval

} # ac_fn_c_try_link

# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
# -------------------------------------------------------
# Tests whether HEADER exists and can be compiled using the include files in
# INCLUDES, setting the cache variable VAR accordingly.
ac_fn_c_check_header_compile ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
#include <$2>
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "$3=yes"
else
  eval "$3=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}

} # ac_fn_c_check_header_compile

# ac_fn_c_try_run LINENO
# ----------------------
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
# that executables *can* be run.
ac_fn_c_try_run ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then :
  ac_retval=0
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
       $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

       ac_retval=$ac_status
fi
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  return $ac_retval

} # ac_fn_c_try_run

# ac_fn_c_check_func LINENO FUNC VAR
# ----------------------------------
# Tests whether FUNC exists, setting the cache variable VAR accordingly
ac_fn_c_check_func ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $2 innocuous_$2

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $2 (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $2

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $2 ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$2 || defined __stub___$2
choke me
#endif

int
main ()
{
return $2 ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "$3=yes"
else
  eval "$3=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}

} # ac_fn_c_check_func

# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
# -------------------------------------------------------
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
# the include files in INCLUDES and setting the cache variable VAR
# accordingly.
ac_fn_c_check_header_mongrel ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
$as_echo_n "checking $2 usability... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
#include <$2>
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_header_compiler=yes
else
  ac_header_compiler=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
$as_echo_n "checking $2 presence... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <$2>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  ac_header_preproc=yes
else
  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  yes:no: )
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
    ;;
  no:yes:* )
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
( cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to png-mng-implement@lists.sourceforge.net ##
## ------------------------------------------------------ ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  eval "$3=\$ac_header_compiler"
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
fi
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}

} # ac_fn_c_check_header_mongrel

# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
# -------------------------------------------
# Tests whether TYPE exists after having included INCLUDES, setting cache
# variable VAR accordingly.
ac_fn_c_check_type ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  eval "$3=no"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
if (sizeof ($2))
	 return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
if (sizeof (($2)))
	    return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

else
  eval "$3=yes"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}

} # ac_fn_c_check_type
2033
cat >config.log <<_ACEOF
2034 2035 2036
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

2037
It was created by libpng $as_me 1.2.41beta16, which was
2038
generated by GNU Autoconf 2.64.  Invocation command line was
2039 2040 2041 2042

  $ $0 $@

_ACEOF
2043
exec 5>>config.log
2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061
{
cat <<_ASUNAME
## --------- ##
## Platform. ##
## --------- ##

hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
uname -m = `(uname -m) 2>/dev/null || echo unknown`
uname -r = `(uname -r) 2>/dev/null || echo unknown`
uname -s = `(uname -s) 2>/dev/null || echo unknown`
uname -v = `(uname -v) 2>/dev/null || echo unknown`

/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`

/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2062
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`

_ASUNAME

as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
2074 2075
    $as_echo "PATH: $as_dir"
  done
2076
IFS=$as_save_IFS
2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107

} >&5

cat >&5 <<_ACEOF


## ----------- ##
## Core tests. ##
## ----------- ##

_ACEOF


# Keep a trace of the command line.
# Strip out --no-create and --no-recursion so they do not pile up.
# Strip out --silent because we don't want to record it for future runs.
# Also quote any args containing shell meta-characters.
# Make two passes to allow for proper duplicate-argument suppression.
ac_configure_args=
ac_configure_args0=
ac_configure_args1=
ac_must_keep_next=false
for ac_pass in 1 2
do
  for ac_arg
  do
    case $ac_arg in
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    | -silent | --silent | --silen | --sile | --sil)
      continue ;;
2108
    *\'*)
2109
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2110 2111
    esac
    case $ac_pass in
2112
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2113
    2)
2114
      as_fn_append ac_configure_args1 " '$ac_arg'"
2115
      if test $ac_must_keep_next = true; then
2116
	ac_must_keep_next=false # Got value, back to normal.
2117
      else
2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128
	case $ac_arg in
	  *=* | --config-cache | -C | -disable-* | --disable-* \
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
	  | -with-* | --with-* | -without-* | --without-* | --x)
	    case "$ac_configure_args0 " in
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
	    esac
	    ;;
	  -* ) ac_must_keep_next=true ;;
	esac
2129
      fi
2130
      as_fn_append ac_configure_args " '$ac_arg'"
2131 2132 2133 2134
      ;;
    esac
  done
done
2135 2136
{ ac_configure_args0=; unset ac_configure_args0;}
{ ac_configure_args1=; unset ac_configure_args1;}
2137 2138 2139 2140

# When interrupted or exit'd, cleanup temporary files, and complete
# config.log.  We remove comments because anyway the quotes in there
# would cause problems or look ugly.
2141 2142
# WARNING: Use '\'' to represent an apostrophe within the trap.
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154
trap 'exit_status=$?
  # Save into config.log some information that might help in debugging.
  {
    echo

    cat <<\_ASBOX
## ---------------- ##
## Cache variables. ##
## ---------------- ##
_ASBOX
    echo
    # The following way of writing the cache mishandles newlines in values,
2155 2156 2157 2158 2159 2160
(
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
2161
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2162
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2163 2164 2165
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
2166
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2167
      *) { eval $ac_var=; unset $ac_var;} ;;
2168 2169 2170
      esac ;;
    esac
  done
2171
  (set) 2>&1 |
2172 2173
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
2174
      sed -n \
2175 2176 2177
	"s/'\''/'\''\\\\'\'''\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
      ;; #(
2178
    *)
2179
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2180
      ;;
2181 2182 2183
    esac |
    sort
)
2184 2185 2186 2187 2188 2189 2190 2191 2192 2193
    echo

    cat <<\_ASBOX
## ----------------- ##
## Output variables. ##
## ----------------- ##
_ASBOX
    echo
    for ac_var in $ac_subst_vars
    do
2194 2195
      eval ac_val=\$$ac_var
      case $ac_val in
2196
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2197
      esac
2198
      $as_echo "$ac_var='\''$ac_val'\''"
2199 2200 2201 2202 2203
    done | sort
    echo

    if test -n "$ac_subst_files"; then
      cat <<\_ASBOX
2204 2205 2206
## ------------------- ##
## File substitutions. ##
## ------------------- ##
2207 2208 2209 2210
_ASBOX
      echo
      for ac_var in $ac_subst_files
      do
2211 2212
	eval ac_val=\$$ac_var
	case $ac_val in
2213
	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2214
	esac
2215
	$as_echo "$ac_var='\''$ac_val'\''"
2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226
      done | sort
      echo
    fi

    if test -s confdefs.h; then
      cat <<\_ASBOX
## ----------- ##
## confdefs.h. ##
## ----------- ##
_ASBOX
      echo
2227
      cat confdefs.h
2228 2229 2230
      echo
    fi
    test "$ac_signal" != 0 &&
2231 2232
      $as_echo "$as_me: caught signal $ac_signal"
    $as_echo "$as_me: exit $exit_status"
2233
  } >&5
2234 2235
  rm -f core *.core core.conftest.* &&
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2236
    exit $exit_status
2237
' 0
2238
for ac_signal in 1 2 13 15; do
2239
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2240 2241 2242 2243
done
ac_signal=0

# confdefs.h avoids OS command line length limits that DEFS can exceed.
2244
rm -f -r conftest* confdefs.h
2245

2246 2247
$as_echo "/* confdefs.h */" > confdefs.h

2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265
# Predefined preprocessor variables.

cat >>confdefs.h <<_ACEOF
#define PACKAGE_NAME "$PACKAGE_NAME"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_VERSION "$PACKAGE_VERSION"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_STRING "$PACKAGE_STRING"
_ACEOF

2266 2267 2268
cat >>confdefs.h <<_ACEOF
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
_ACEOF
2269 2270

cat >>confdefs.h <<_ACEOF
2271
#define PACKAGE_URL "$PACKAGE_URL"
2272 2273 2274 2275
_ACEOF


# Let the site file select an alternate cache file if it wants to.
2276 2277 2278
# Prefer an explicitly selected file to automatically selected ones.
ac_site_file1=NONE
ac_site_file2=NONE
2279
if test -n "$CONFIG_SITE"; then
2280
  ac_site_file1=$CONFIG_SITE
2281
elif test "x$prefix" != xNONE; then
2282 2283
  ac_site_file1=$prefix/share/config.site
  ac_site_file2=$prefix/etc/config.site
2284
else
2285 2286
  ac_site_file1=$ac_default_prefix/share/config.site
  ac_site_file2=$ac_default_prefix/etc/config.site
2287
fi
2288
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2289
do
2290
  test "x$ac_site_file" = xNONE && continue
2291
  if test -r "$ac_site_file"; then
2292
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2293
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2294 2295 2296 2297 2298 2299 2300 2301 2302
    sed 's/^/| /' "$ac_site_file" >&5
    . "$ac_site_file"
  fi
done

if test -r "$cache_file"; then
  # Some versions of bash will fail to source /dev/null (special
  # files actually), so we avoid doing that.
  if test -f "$cache_file"; then
2303
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2304
$as_echo "$as_me: loading cache $cache_file" >&6;}
2305
    case $cache_file in
2306 2307
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
      *)                      . "./$cache_file";;
2308 2309 2310
    esac
  fi
else
2311
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2312
$as_echo "$as_me: creating cache $cache_file" >&6;}
2313 2314 2315 2316 2317 2318
  >$cache_file
fi

# Check that the precious variables saved in the cache have kept the same
# value.
ac_cache_corrupted=false
2319
for ac_var in $ac_precious_vars; do
2320 2321
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
  eval ac_new_set=\$ac_env_${ac_var}_set
2322 2323
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
  eval ac_new_val=\$ac_env_${ac_var}_value
2324 2325
  case $ac_old_set,$ac_new_set in
    set,)
2326
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2327
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2328 2329
      ac_cache_corrupted=: ;;
    ,set)
2330
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2331
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2332 2333 2334 2335
      ac_cache_corrupted=: ;;
    ,);;
    *)
      if test "x$ac_old_val" != "x$ac_new_val"; then
2336 2337 2338 2339
	# differences in whitespace do not lead to failure.
	ac_old_val_w=`echo x $ac_old_val`
	ac_new_val_w=`echo x $ac_new_val`
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2340
	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2341 2342 2343
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
	  ac_cache_corrupted=:
	else
2344
	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2345 2346 2347
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
	  eval $ac_var=\$ac_old_val
	fi
2348
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2349
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2350
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2351
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2352 2353 2354 2355 2356
      fi;;
  esac
  # Pass precious variables to config.status.
  if test "$ac_new_set" = set; then
    case $ac_new_val in
2357
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2358 2359 2360 2361
    *) ac_arg=$ac_var=$ac_new_val ;;
    esac
    case " $ac_configure_args " in
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2362
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2363 2364 2365 2366
    esac
  fi
done
if $ac_cache_corrupted; then
2367
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2368
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2369
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2370
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2371
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2372
fi
2373 2374 2375
## -------------------- ##
## Main body of script. ##
## -------------------- ##
2376

2377 2378 2379 2380 2381
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2382 2383


2384
am__api_version='1.11'
2385

2386
ac_aux_dir=
2387
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2388 2389 2390 2391 2392 2393 2394
  for ac_t in install-sh install.sh shtool; do
    if test -f "$ac_dir/$ac_t"; then
      ac_aux_dir=$ac_dir
      ac_install_sh="$ac_aux_dir/$ac_t -c"
      break 2
    fi
  done
2395 2396
done
if test -z "$ac_aux_dir"; then
2397
  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2398
fi
2399 2400 2401 2402 2403 2404 2405 2406 2407

# These three variables are undocumented and unsupported,
# and are intended to be withdrawn in a future Autoconf release.
# They can cause serious problems if a builder's source tree is in a directory
# whose full name contains unusual characters.
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.

2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419

# Find a good install program.  We prefer a C program (faster),
# so one script is as good as another.  But avoid the broken or
# incompatible versions:
# SysV /etc/install, /usr/sbin/install
# SunOS /usr/etc/install
# IRIX /sbin/install
# AIX /bin/install
# AmigaOS /C/install, which installs bootblocks on floppy discs
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2420
# OS/2's system install, which has a completely different semantic
2421
# ./install, which can be erroneously created by make from ./install.sh.
2422
# Reject install programs that cannot install multiple files.
2423
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2424
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2425
if test -z "$INSTALL"; then
2426
if test "${ac_cv_path_install+set}" = set; then :
2427
  $as_echo_n "(cached) " >&6
2428 2429 2430 2431 2432 2433
else
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
2434 2435 2436
    # Account for people who put trailing slashes in PATH elements.
case $as_dir/ in #((
  ./ | .// | /[cC]/* | \
2437
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2438
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2439 2440 2441 2442 2443 2444 2445
  /usr/ucb/* ) ;;
  *)
    # OSF1 and SCO ODT 3.0 have their own names for install.
    # Don't use installbsd from OSF since it installs stuff as root
    # by default.
    for ac_prog in ginstall scoinst install; do
      for ac_exec_ext in '' $ac_executable_extensions; do
2446
	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2447 2448 2449 2450 2451 2452 2453 2454 2455
	  if test $ac_prog = install &&
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
	    # AIX install.  It has an incompatible calling convention.
	    :
	  elif test $ac_prog = install &&
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
	    # program-specific install script used by HP pwplus--don't use.
	    :
	  else
2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467
	    rm -rf conftest.one conftest.two conftest.dir
	    echo one > conftest.one
	    echo two > conftest.two
	    mkdir conftest.dir
	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
	      test -s conftest.one && test -s conftest.two &&
	      test -s conftest.dir/conftest.one &&
	      test -s conftest.dir/conftest.two
	    then
	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
	      break 3
	    fi
2468 2469
	  fi
	fi
2470 2471 2472 2473
      done
    done
    ;;
esac
2474

2475
  done
2476
IFS=$as_save_IFS
2477

2478
rm -rf conftest.one conftest.two conftest.dir
2479 2480 2481 2482 2483

fi
  if test "${ac_cv_path_install+set}" = set; then
    INSTALL=$ac_cv_path_install
  else
2484 2485
    # As a last resort, use the slow shell script.  Don't cache a
    # value for INSTALL within a source directory, because that will
2486
    # break other packages using the cache if that directory is
2487
    # removed, or if the value is a relative name.
2488 2489 2490
    INSTALL=$ac_install_sh
  fi
fi
2491
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2492
$as_echo "$INSTALL" >&6; }
2493 2494 2495 2496 2497 2498 2499 2500 2501

# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'

test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'

test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'

2502
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2503
$as_echo_n "checking whether build environment is sane... " >&6; }
2504 2505 2506
# Just in case
sleep 1
echo timestamp > conftest.file
2507 2508 2509 2510 2511 2512
# Reject unsafe characters in $srcdir or the absolute working directory
# name.  Accept space and tab only in the latter.
am_lf='
'
case `pwd` in
  *[\\\"\#\$\&\'\`$am_lf]*)
2513
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2514 2515 2516
esac
case $srcdir in
  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2517
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2518 2519
esac

2520 2521 2522 2523 2524 2525
# Do `set' in a subshell so we don't clobber the current shell's
# arguments.  Must try -L first in case configure is actually a
# symlink; some systems play weird games with the mod time of symlinks
# (eg FreeBSD returns the mod time of the symlink's containing
# directory).
if (
2526
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2527 2528
   if test "$*" = "X"; then
      # -L didn't work.
2529
      set X `ls -t "$srcdir/configure" conftest.file`
2530 2531 2532 2533 2534 2535 2536 2537 2538
   fi
   rm -f conftest.file
   if test "$*" != "X $srcdir/configure conftest.file" \
      && test "$*" != "X conftest.file $srcdir/configure"; then

      # If neither matched, then we have a broken ls.  This can happen
      # if, for instance, CONFIG_SHELL is bash and it inherits a
      # broken ls alias from the environment.  This has actually
      # happened.  Such a system could not be considered "sane".
2539 2540
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
alias in your environment" "$LINENO" 5
2541 2542 2543 2544 2545 2546 2547 2548
   fi

   test "$2" = conftest.file
   )
then
   # Ok.
   :
else
2549 2550
   as_fn_error "newly created file is older than distributed files!
Check your system clock" "$LINENO" 5
2551
fi
2552
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2553
$as_echo "yes" >&6; }
2554
test "$program_prefix" != NONE &&
2555
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2556 2557
# Use a double $ so make ignores it.
test "$program_suffix" != NONE &&
2558
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2559
# Double any \ or $.
2560
# By default was `s,x,x', remove it if useless.
2561 2562
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2563 2564 2565 2566

# expand $ac_aux_dir to an absolute path
am_aux_dir=`cd $ac_aux_dir && pwd`

2567 2568 2569 2570 2571 2572 2573 2574
if test x"${MISSING+set}" != xset; then
  case $am_aux_dir in
  *\ * | *\	*)
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  *)
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
  esac
fi
2575 2576 2577 2578 2579
# Use eval to expand $SHELL
if eval "$MISSING --run true"; then
  am_missing_run="$MISSING --run "
else
  am_missing_run=
2580
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2581 2582 2583
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
fi

2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600
if test x"${install_sh}" != xset; then
  case $am_aux_dir in
  *\ * | *\	*)
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  *)
    install_sh="\${SHELL} $am_aux_dir/install-sh"
  esac
fi

# Installed binaries are usually stripped using `strip' when the user
# run `make install-strip'.  However `strip' might not be the right
# tool to use in cross-compilation environments, therefore Automake
# will honor the `STRIP' environment variable to overrule this program.
if test "$cross_compiling" != no; then
  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
2601
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2602
$as_echo_n "checking for $ac_word... " >&6; }
2603
if test "${ac_cv_prog_STRIP+set}" = set; then :
2604 2605 2606 2607 2608 2609 2610 2611 2612 2613
  $as_echo_n "(cached) " >&6
else
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
2614
    for ac_exec_ext in '' $ac_executable_extensions; do
2615 2616
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2617
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2618 2619 2620
    break 2
  fi
done
2621
  done
2622 2623 2624 2625 2626 2627
IFS=$as_save_IFS

fi
fi
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
2628
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2629 2630
$as_echo "$STRIP" >&6; }
else
2631
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2632 2633 2634 2635 2636 2637 2638 2639 2640
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_STRIP"; then
  ac_ct_STRIP=$STRIP
  # Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
2641
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2642
$as_echo_n "checking for $ac_word... " >&6; }
2643
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2644 2645 2646 2647 2648 2649 2650 2651 2652 2653
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_STRIP"; then
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
2654
    for ac_exec_ext in '' $ac_executable_extensions; do
2655 2656
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_STRIP="strip"
2657
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2658 2659 2660
    break 2
  fi
done
2661
  done
2662 2663 2664 2665 2666 2667
IFS=$as_save_IFS

fi
fi
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
if test -n "$ac_ct_STRIP"; then
2668
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2669 2670
$as_echo "$ac_ct_STRIP" >&6; }
else
2671
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2672 2673 2674 2675 2676 2677 2678 2679
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_STRIP" = x; then
    STRIP=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
2680
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    STRIP=$ac_ct_STRIP
  fi
else
  STRIP="$ac_cv_prog_STRIP"
fi

fi
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"

2693
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2694 2695
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
if test -z "$MKDIR_P"; then
2696
  if test "${ac_cv_path_mkdir+set}" = set; then :
2697 2698 2699 2700 2701 2702 2703
  $as_echo_n "(cached) " >&6
else
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
2704
    for ac_prog in mkdir gmkdir; do
2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715
	 for ac_exec_ext in '' $ac_executable_extensions; do
	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
	     'mkdir (GNU coreutils) '* | \
	     'mkdir (coreutils) '* | \
	     'mkdir (fileutils) '4.1*)
	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
	       break 3;;
	   esac
	 done
       done
2716
  done
2717 2718 2719 2720 2721 2722
IFS=$as_save_IFS

fi

  if test "${ac_cv_path_mkdir+set}" = set; then
    MKDIR_P="$ac_cv_path_mkdir -p"
2723
  else
2724 2725 2726 2727 2728 2729
    # As a last resort, use the slow shell script.  Don't cache a
    # value for MKDIR_P within a source directory, because that will
    # break other packages using the cache if that directory is
    # removed, or if the value is a relative name.
    test -d ./--version && rmdir ./--version
    MKDIR_P="$ac_install_sh -d"
2730 2731
  fi
fi
2732
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2733 2734 2735 2736 2737 2738 2739
$as_echo "$MKDIR_P" >&6; }

mkdir_p="$MKDIR_P"
case $mkdir_p in
  [\\/$]* | ?:[\\/]*) ;;
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
esac
2740

2741 2742 2743 2744
for ac_prog in gawk mawk nawk awk
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
2745
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2746
$as_echo_n "checking for $ac_word... " >&6; }
2747
if test "${ac_cv_prog_AWK+set}" = set; then :
2748
  $as_echo_n "(cached) " >&6
2749 2750 2751 2752 2753 2754 2755 2756 2757
else
  if test -n "$AWK"; then
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
2758
    for ac_exec_ext in '' $ac_executable_extensions; do
2759
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2760
    ac_cv_prog_AWK="$ac_prog"
2761
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2762 2763 2764
    break 2
  fi
done
2765
  done
2766
IFS=$as_save_IFS
2767 2768 2769 2770 2771

fi
fi
AWK=$ac_cv_prog_AWK
if test -n "$AWK"; then
2772
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2773
$as_echo "$AWK" >&6; }
2774
else
2775
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2776
$as_echo "no" >&6; }
2777 2778
fi

2779

2780 2781 2782
  test -n "$AWK" && break
done

2783
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2784 2785 2786
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
set x ${MAKE-make}
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2787
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2788
  $as_echo_n "(cached) " >&6
2789 2790
else
  cat >conftest.make <<\_ACEOF
2791
SHELL = /bin/sh
2792
all:
2793
	@echo '@@@%%%=$(MAKE)=@@@%%%'
2794 2795
_ACEOF
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2796 2797 2798 2799 2800 2801
case `${MAKE-make} -f conftest.make 2>/dev/null` in
  *@@@%%%=?*=@@@%%%*)
    eval ac_cv_prog_make_${ac_make}_set=yes;;
  *)
    eval ac_cv_prog_make_${ac_make}_set=no;;
esac
2802 2803
rm -f conftest.make
fi
2804
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2805
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2806
$as_echo "yes" >&6; }
2807 2808
  SET_MAKE=
else
2809
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2810
$as_echo "no" >&6; }
2811 2812 2813
  SET_MAKE="MAKE=${MAKE-make}"
fi

2814 2815 2816 2817 2818 2819 2820 2821 2822
rm -rf .tst 2>/dev/null
mkdir .tst 2>/dev/null
if test -d .tst; then
  am__leading_dot=.
else
  am__leading_dot=_
fi
rmdir .tst 2>/dev/null

2823 2824 2825 2826 2827 2828
if test "`cd $srcdir && pwd`" != "`pwd`"; then
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  # is not polluted with repeated "-I."
  am__isrc=' -I$(srcdir)'
  # test to see if srcdir already configured
  if test -f $srcdir/config.status; then
2829
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2830
  fi
2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843
fi

# test whether we have cygpath
if test -z "$CYGPATH_W"; then
  if (cygpath --version) >/dev/null 2>/dev/null; then
    CYGPATH_W='cygpath -w'
  else
    CYGPATH_W=echo
  fi
fi


# Define the identity of the package.
2844
 PACKAGE='libpng'
2845
 VERSION='1.2.41beta16'
2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874


cat >>confdefs.h <<_ACEOF
#define PACKAGE "$PACKAGE"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define VERSION "$VERSION"
_ACEOF

# Some tools Automake needs.

ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}


AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}


AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}


AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}


MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}

# We need awk for the "check" target.  The system "awk" is bad on
# some platforms.
2875 2876 2877 2878 2879 2880
# Always define AMTAR for backward compatibility.

AMTAR=${AMTAR-"${am_missing_run}tar"}

am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'

2881 2882 2883 2884




2885

2886
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2887
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2888
    # Check whether --enable-maintainer-mode was given.
2889
if test "${enable_maintainer_mode+set}" = set; then :
2890
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2891 2892
else
  USE_MAINTAINER_MODE=no
2893 2894
fi

2895
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2896 2897
$as_echo "$USE_MAINTAINER_MODE" >&6; }
   if test $USE_MAINTAINER_MODE = yes; then
2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908
  MAINTAINER_MODE_TRUE=
  MAINTAINER_MODE_FALSE='#'
else
  MAINTAINER_MODE_TRUE='#'
  MAINTAINER_MODE_FALSE=
fi

  MAINT=$MAINTAINER_MODE_TRUE



2909
PNGLIB_VERSION=1.2.41beta16
2910 2911
PNGLIB_MAJOR=1
PNGLIB_MINOR=2
2912
PNGLIB_RELEASE=41
2913 2914 2915



2916
ac_config_headers="$ac_config_headers config.h"
2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927


# Checks for programs.
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2928
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2929
$as_echo_n "checking for $ac_word... " >&6; }
2930
if test "${ac_cv_prog_CC+set}" = set; then :
2931
  $as_echo_n "(cached) " >&6
2932 2933 2934 2935 2936 2937 2938 2939 2940
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
2941
    for ac_exec_ext in '' $ac_executable_extensions; do
2942
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2943
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2944
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2945 2946 2947
    break 2
  fi
done
2948
  done
2949
IFS=$as_save_IFS
2950 2951 2952 2953 2954

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
2955
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2956
$as_echo "$CC" >&6; }
2957
else
2958
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959
$as_echo "no" >&6; }
2960 2961
fi

2962

2963 2964 2965 2966 2967
fi
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
2968
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2969
$as_echo_n "checking for $ac_word... " >&6; }
2970
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2971
  $as_echo_n "(cached) " >&6
2972 2973 2974 2975 2976 2977 2978 2979 2980
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
2981
    for ac_exec_ext in '' $ac_executable_extensions; do
2982
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2983
    ac_cv_prog_ac_ct_CC="gcc"
2984
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2985 2986 2987
    break 2
  fi
done
2988
  done
2989
IFS=$as_save_IFS
2990 2991 2992 2993 2994

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
2995
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2996
$as_echo "$ac_ct_CC" >&6; }
2997
else
2998
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2999
$as_echo "no" >&6; }
3000 3001
fi

3002 3003 3004 3005 3006
  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
3007
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3008
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3009 3010 3011 3012
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
3013 3014 3015 3016 3017
else
  CC="$ac_cv_prog_CC"
fi

if test -z "$CC"; then
3018 3019
          if test -n "$ac_tool_prefix"; then
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3020
set dummy ${ac_tool_prefix}cc; ac_word=$2
3021
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022
$as_echo_n "checking for $ac_word... " >&6; }
3023
if test "${ac_cv_prog_CC+set}" = set; then :
3024
  $as_echo_n "(cached) " >&6
3025 3026 3027 3028 3029 3030 3031 3032 3033
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
3034
    for ac_exec_ext in '' $ac_executable_extensions; do
3035
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3036
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3037
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3038 3039 3040
    break 2
  fi
done
3041
  done
3042
IFS=$as_save_IFS
3043 3044 3045 3046 3047

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
3048
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3049
$as_echo "$CC" >&6; }
3050
else
3051
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052
$as_echo "no" >&6; }
3053 3054 3055
fi


3056
  fi
3057 3058 3059 3060
fi
if test -z "$CC"; then
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
3061
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062
$as_echo_n "checking for $ac_word... " >&6; }
3063
if test "${ac_cv_prog_CC+set}" = set; then :
3064
  $as_echo_n "(cached) " >&6
3065 3066 3067 3068 3069 3070 3071 3072 3073 3074
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  ac_prog_rejected=no
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
3075
    for ac_exec_ext in '' $ac_executable_extensions; do
3076
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3077 3078 3079 3080 3081
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
       ac_prog_rejected=yes
       continue
     fi
    ac_cv_prog_CC="cc"
3082
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3083 3084 3085
    break 2
  fi
done
3086
  done
3087
IFS=$as_save_IFS
3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104

if test $ac_prog_rejected = yes; then
  # We found a bogon in the path, so make sure we never use it.
  set dummy $ac_cv_prog_CC
  shift
  if test $# != 0; then
    # We chose a different compiler from the bogus one.
    # However, it has the same basename, so the bogon will be chosen
    # first if we set CC to just the basename; use the full file name.
    shift
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  fi
fi
fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
3105
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3106
$as_echo "$CC" >&6; }
3107
else
3108
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3109
$as_echo "no" >&6; }
3110 3111
fi

3112

3113 3114 3115
fi
if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
3116
  for ac_prog in cl.exe
3117 3118 3119
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3120
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3121
$as_echo_n "checking for $ac_word... " >&6; }
3122
if test "${ac_cv_prog_CC+set}" = set; then :
3123
  $as_echo_n "(cached) " >&6
3124 3125 3126 3127 3128 3129 3130 3131 3132
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
3133
    for ac_exec_ext in '' $ac_executable_extensions; do
3134
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3135
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3136
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3137 3138 3139
    break 2
  fi
done
3140
  done
3141
IFS=$as_save_IFS
3142 3143 3144 3145 3146

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
3147
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3148
$as_echo "$CC" >&6; }
3149
else
3150
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151
$as_echo "no" >&6; }
3152 3153
fi

3154

3155 3156 3157 3158 3159
    test -n "$CC" && break
  done
fi
if test -z "$CC"; then
  ac_ct_CC=$CC
3160
  for ac_prog in cl.exe
3161 3162 3163
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
3164
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3165
$as_echo_n "checking for $ac_word... " >&6; }
3166
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3167
  $as_echo_n "(cached) " >&6
3168 3169 3170 3171 3172 3173 3174 3175 3176
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
3177
    for ac_exec_ext in '' $ac_executable_extensions; do
3178
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3179
    ac_cv_prog_ac_ct_CC="$ac_prog"
3180
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3181 3182 3183
    break 2
  fi
done
3184
  done
3185
IFS=$as_save_IFS
3186 3187 3188 3189 3190

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
3191
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3192
$as_echo "$ac_ct_CC" >&6; }
3193
else
3194
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3195
$as_echo "no" >&6; }
3196 3197
fi

3198

3199 3200 3201
  test -n "$ac_ct_CC" && break
done

3202 3203 3204 3205 3206
  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
3207
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3208
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3209 3210 3211 3212
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
3213 3214 3215 3216 3217
fi

fi


3218
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3219
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3220 3221
as_fn_error "no acceptable C compiler found in \$PATH
See \`config.log' for more details." "$LINENO" 5; }
3222 3223

# Provide some information about the compiler.
3224
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3225 3226
set X $ac_compile
ac_compiler=$2
3227 3228
for ac_option in --version -v -V -qversion; do
  { { ac_try="$ac_compiler $ac_option >&5"
3229 3230 3231 3232
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
3233 3234 3235
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3236
  ac_status=$?
3237 3238 3239 3240 3241 3242 3243 3244 3245 3246
  if test -s conftest.err; then
    sed '10a\
... rest of stderr output deleted ...
         10q' conftest.err >conftest.er1
    cat conftest.er1 >&5
    rm -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
done
3247

3248
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3249
/* end confdefs.h.  */
3250
#include <stdio.h>
3251 3252 3253
int
main ()
{
3254 3255
FILE *f = fopen ("conftest.out", "w");
 return ferror (f) || fclose (f) != 0;
3256 3257 3258 3259 3260 3261

  ;
  return 0;
}
_ACEOF
ac_clean_files_save=$ac_clean_files
3262
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3263 3264 3265
# Try to create an executable without -o first, disregard a.out.
# It will help us diagnose broken compilers, and finding out an intuition
# of exeext.
3266
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3267 3268 3269 3270 3271 3272
$as_echo_n "checking for C compiler default output file name... " >&6; }
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`

# The possible output files:
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"

3273 3274 3275 3276
ac_rmfiles=
for ac_file in $ac_files
do
  case $ac_file in
3277
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3278 3279 3280 3281 3282
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  esac
done
rm -f $ac_rmfiles

3283
if { { ac_try="$ac_link_default"
3284 3285 3286 3287
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
3288 3289
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
3290
  (eval "$ac_link_default") 2>&5
3291
  ac_status=$?
3292 3293
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then :
3294 3295 3296 3297 3298
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
# so that the user can short-circuit this test for compilers unknown to
# Autoconf.
3299
for ac_file in $ac_files ''
3300 3301 3302
do
  test -f "$ac_file" || continue
  case $ac_file in
3303
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3304
	;;
3305
    [ab].out )
3306 3307 3308
	# We found the default executable, but exeext='' is most
	# certainly right.
	break;;
3309
    *.* )
3310
	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3311 3312 3313 3314 3315 3316 3317 3318
	then :; else
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
	fi
	# We set ac_cv_exeext here because the later test for it is not
	# safe: cross compilers may not add the suffix if given an `-o'
	# argument, so we may need to know it at that point already.
	# Even if this section looks crufty: it has the advantage of
	# actually working.
3319
	break;;
3320
    * )
3321
	break;;
3322 3323
  esac
done
3324 3325
test "$ac_cv_exeext" = no && ac_cv_exeext=

3326
else
3327 3328
  ac_file=''
fi
3329
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3330
$as_echo "$ac_file" >&6; }
3331
if test -z "$ac_file"; then :
3332
  $as_echo "$as_me: failed program was:" >&5
3333 3334
sed 's/^/| /' conftest.$ac_ext >&5

3335
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3336
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3337 3338 3339
{ as_fn_set_status 77
as_fn_error "C compiler cannot create executables
See \`config.log' for more details." "$LINENO" 5; }; }
3340 3341 3342
fi
ac_exeext=$ac_cv_exeext

3343
# Check that the compiler produces executables we can run.  If not, either
3344
# the compiler is broken, or we cross compile.
3345
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3346
$as_echo_n "checking whether the C compiler works... " >&6; }
3347 3348 3349
# If not cross compiling, check that we can run a simple program.
if test "$cross_compiling" != yes; then
  if { ac_try='./$ac_file'
3350
  { { case "(($ac_try" in
3351 3352 3353
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
3354 3355
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
3356
  (eval "$ac_try") 2>&5
3357
  ac_status=$?
3358 3359
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then
3360 3361 3362 3363 3364
    cross_compiling=no
  else
    if test "$cross_compiling" = maybe; then
	cross_compiling=yes
    else
3365
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3366
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3367
as_fn_error "cannot run C compiled programs.
3368
If you meant to cross compile, use \`--host'.
3369
See \`config.log' for more details." "$LINENO" 5; }
3370 3371 3372
    fi
  fi
fi
3373
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3374
$as_echo "yes" >&6; }
3375

3376
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3377
ac_clean_files=$ac_clean_files_save
3378
# Check that the compiler produces executables we can run.  If not, either
3379
# the compiler is broken, or we cross compile.
3380
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3381
$as_echo_n "checking whether we are cross compiling... " >&6; }
3382
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3383
$as_echo "$cross_compiling" >&6; }
3384

3385
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3386
$as_echo_n "checking for suffix of executables... " >&6; }
3387
if { { ac_try="$ac_link"
3388 3389 3390 3391
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
3392 3393
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
3394
  (eval "$ac_link") 2>&5
3395
  ac_status=$?
3396 3397
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then :
3398 3399 3400 3401 3402 3403 3404
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
# work properly (i.e., refer to `conftest.exe'), while it won't with
# `rm'.
for ac_file in conftest.exe conftest conftest.*; do
  test -f "$ac_file" || continue
  case $ac_file in
3405
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3406
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3407
	  break;;
3408 3409 3410 3411
    * ) break;;
  esac
done
else
3412
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3413
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3414 3415
as_fn_error "cannot compute suffix of executables: cannot compile and link
See \`config.log' for more details." "$LINENO" 5; }
3416 3417
fi
rm -f conftest$ac_cv_exeext
3418
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3419
$as_echo "$ac_cv_exeext" >&6; }
3420 3421 3422 3423

rm -f conftest.$ac_ext
EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT
3424
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3425
$as_echo_n "checking for suffix of object files... " >&6; }
3426
if test "${ac_cv_objext+set}" = set; then :
3427
  $as_echo_n "(cached) " >&6
3428
else
3429
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.o conftest.obj
3441
if { { ac_try="$ac_compile"
3442 3443 3444 3445
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
3446 3447
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
3448
  (eval "$ac_compile") 2>&5
3449
  ac_status=$?
3450 3451
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then :
3452 3453
  for ac_file in conftest.o conftest.obj conftest.*; do
  test -f "$ac_file" || continue;
3454
  case $ac_file in
3455
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3456 3457 3458 3459 3460
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
       break;;
  esac
done
else
3461
  $as_echo "$as_me: failed program was:" >&5
3462 3463
sed 's/^/| /' conftest.$ac_ext >&5

3464
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3465
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3466 3467
as_fn_error "cannot compute suffix of object files: cannot compile
See \`config.log' for more details." "$LINENO" 5; }
3468 3469 3470
fi
rm -f conftest.$ac_cv_objext conftest.$ac_ext
fi
3471
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3472
$as_echo "$ac_cv_objext" >&6; }
3473 3474
OBJEXT=$ac_cv_objext
ac_objext=$OBJEXT
3475
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3476
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3477
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3478
  $as_echo_n "(cached) " >&6
3479
else
3480
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493
/* end confdefs.h.  */

int
main ()
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
3494
if ac_fn_c_try_compile "$LINENO"; then :
3495 3496
  ac_compiler_gnu=yes
else
3497
  ac_compiler_gnu=no
3498
fi
3499
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3500 3501 3502
ac_cv_c_compiler_gnu=$ac_compiler_gnu

fi
3503
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3504 3505 3506 3507 3508 3509
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
if test $ac_compiler_gnu = yes; then
  GCC=yes
else
  GCC=
fi
3510 3511
ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
3512
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3513
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3514
if test "${ac_cv_prog_cc_g+set}" = set; then :
3515
  $as_echo_n "(cached) " >&6
3516
else
3517 3518 3519 3520
  ac_save_c_werror_flag=$ac_c_werror_flag
   ac_c_werror_flag=yes
   ac_cv_prog_cc_g=no
   CFLAGS="-g"
3521
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3522 3523 3524 3525 3526 3527 3528 3529 3530 3531
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
3532
if ac_fn_c_try_compile "$LINENO"; then :
3533 3534
  ac_cv_prog_cc_g=yes
else
3535 3536
  CFLAGS=""
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537 3538 3539 3540 3541 3542 3543 3544 3545 3546
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
3547
if ac_fn_c_try_compile "$LINENO"; then :
3548

3549 3550
else
  ac_c_werror_flag=$ac_save_c_werror_flag
3551
	 CFLAGS="-g"
3552
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3553 3554 3555 3556 3557 3558 3559 3560 3561 3562
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
3563
if ac_fn_c_try_compile "$LINENO"; then :
3564
  ac_cv_prog_cc_g=yes
3565 3566
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3567
fi
3568 3569 3570 3571
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_c_werror_flag=$ac_save_c_werror_flag
3572
fi
3573
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3574
$as_echo "$ac_cv_prog_cc_g" >&6; }
3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589
if test "$ac_test_CFLAGS" = set; then
  CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then
  if test "$GCC" = yes; then
    CFLAGS="-g -O2"
  else
    CFLAGS="-g"
  fi
else
  if test "$GCC" = yes; then
    CFLAGS="-O2"
  else
    CFLAGS=
  fi
fi
3590
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3591
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3592
if test "${ac_cv_prog_cc_c89+set}" = set; then :
3593
  $as_echo_n "(cached) " >&6
3594
else
3595
  ac_cv_prog_cc_c89=no
3596
ac_save_CC=$CC
3597
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}
3621 3622 3623 3624

/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not '\xHH' hex character constants.
   These don't provoke an error unfortunately, instead are silently treated
3625
   as 'x'.  The following induces an error, until -std is added to get
3626 3627
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   array size at least.  It's necessary to write '\x00'==0 to get something
3628
   that's true only with -std.  */
3629 3630
int osf4_cc_array ['\x00' == 0 ? 1 : -1];

3631 3632 3633 3634 3635
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) 'x'
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];

3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649
int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
3650 3651
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3652 3653
do
  CC="$ac_save_CC $ac_arg"
3654
  if ac_fn_c_try_compile "$LINENO"; then :
3655
  ac_cv_prog_cc_c89=$ac_arg
3656
fi
3657 3658
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3659
done
3660
rm -f conftest.$ac_ext
3661 3662 3663
CC=$ac_save_CC

fi
3664 3665 3666
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
  x)
3667
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3668
$as_echo "none needed" >&6; } ;;
3669
  xno)
3670
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3671
$as_echo "unsupported" >&6; } ;;
3672
  *)
3673
    CC="$CC $ac_cv_prog_cc_c89"
3674
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3675
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3676
esac
3677
if test "x$ac_cv_prog_cc_c89" != xno; then :
3678

3679
fi
3680 3681 3682 3683 3684 3685

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3686
DEPDIR="${am__leading_dot}deps"
3687

3688
ac_config_commands="$ac_config_commands depfiles"
3689 3690 3691 3692


am_make=${MAKE-make}
cat > confinc << 'END'
3693
am__doit:
3694
	@echo this is the am__doit target
3695
.PHONY: am__doit
3696 3697
END
# If we don't find an include directive, just comment out the code.
3698
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3699
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3700 3701 3702 3703 3704
am__include="#"
am__quote=
_am_result=none
# First try GNU make style include.
echo "include confinc" > confmf
3705 3706 3707 3708 3709 3710 3711 3712
# Ignore all kinds of additional output from `make'.
case `$am_make -s -f confmf 2> /dev/null` in #(
*the\ am__doit\ target*)
  am__include=include
  am__quote=
  _am_result=GNU
  ;;
esac
3713 3714 3715
# Now try BSD make style include.
if test "$am__include" = "#"; then
   echo '.include "confinc"' > confmf
3716 3717 3718 3719 3720 3721 3722
   case `$am_make -s -f confmf 2> /dev/null` in #(
   *the\ am__doit\ target*)
     am__include=.include
     am__quote="\""
     _am_result=BSD
     ;;
   esac
3723 3724 3725
fi


3726
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3727
$as_echo "$_am_result" >&6; }
3728 3729
rm -f confinc confmf

3730
# Check whether --enable-dependency-tracking was given.
3731
if test "${enable_dependency_tracking+set}" = set; then :
3732 3733
  enableval=$enable_dependency_tracking;
fi
3734 3735 3736 3737 3738

if test "x$enable_dependency_tracking" != xno; then
  am_depcomp="$ac_aux_dir/depcomp"
  AMDEPBACKSLASH='\'
fi
3739
 if test "x$enable_dependency_tracking" != xno; then
3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750
  AMDEP_TRUE=
  AMDEP_FALSE='#'
else
  AMDEP_TRUE='#'
  AMDEP_FALSE=
fi



depcc="$CC"   am_compiler_list=

3751
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3752
$as_echo_n "checking dependency style of $depcc... " >&6; }
3753
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3754
  $as_echo_n "(cached) " >&6
3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766
else
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  # We make a subdir and do the tests there.  Otherwise we can end up
  # making bogus files that we don't know about and never remove.  For
  # instance it was reported that on HP-UX the gcc test will end up
  # making a dummy file named `D' -- because `-MD' means `put the output
  # in D'.
  mkdir conftest.dir
  # Copy depcomp to subdir because otherwise we won't find it if we're
  # using a relative directory.
  cp "$am_depcomp" conftest.dir
  cd conftest.dir
3767 3768 3769 3770 3771 3772 3773
  # We will build objects and dependencies in a subdirectory because
  # it helps to detect inapplicable dependency modes.  For instance
  # both Tru64's cc and ICC support -MD to output dependencies as a
  # side effect of compilation, but ICC will put the dependencies in
  # the current directory while Tru64 will put them in the object
  # directory.
  mkdir sub
3774 3775 3776 3777 3778

  am_cv_CC_dependencies_compiler_type=none
  if test "$am_compiler_list" = ""; then
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  fi
3779 3780 3781 3782 3783
  am__universal=false
  case " $depcc " in #(
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
     esac

3784
  for depmode in $am_compiler_list; do
3785 3786 3787 3788
    # Setup a source with many dependencies, because some compilers
    # like to wrap large dependency lists on column 80 (with \), and
    # we should not choose a depcomp mode which is confused by this.
    #
3789 3790 3791
    # We need to recreate these files for each test, as the compiler may
    # overwrite some of them when testing with obscure command lines.
    # This happens at least with the AIX C compiler.
3792 3793 3794 3795 3796 3797 3798 3799
    : > sub/conftest.c
    for i in 1 2 3 4 5 6; do
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
      # Solaris 8's {/usr,}/bin/sh.
      touch sub/conftst$i.h
    done
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3800

3801 3802 3803 3804 3805 3806
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
    # mode.  It turns out that the SunPro C++ compiler does not properly
    # handle `-M -o', and we need to detect this.  Also, some Intel
    # versions had trouble with output in subdirs
    am__obj=sub/conftest.${OBJEXT-o}
    am__minus_obj="-o $am__obj"
3807
    case $depmode in
3808 3809 3810 3811
    gcc)
      # This depmode causes a compiler race in universal mode.
      test "$am__universal" = false || continue
      ;;
3812 3813 3814 3815 3816 3817 3818 3819 3820
    nosideeffect)
      # after this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested
      if test "x$enable_dependency_tracking" = xyes; then
	continue
      else
	break
      fi
      ;;
3821 3822 3823 3824 3825 3826 3827
    msvisualcpp | msvcmsys)
      # This compiler won't grok `-c -o', but also, the minuso test has
      # not run yet.  These depmodes are late enough in the game, and
      # so weak that their functioning should not be impacted.
      am__obj=conftest.${OBJEXT-o}
      am__minus_obj=
      ;;
3828 3829 3830
    none) break ;;
    esac
    if depmode=$depmode \
3831
       source=sub/conftest.c object=$am__obj \
3832
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3833
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3834
         >/dev/null 2>conftest.err &&
3835
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3836
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3837
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3838
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850
      # icc doesn't choke on unknown options, it will just issue warnings
      # or remarks (even with -Werror).  So we grep stderr for any message
      # that says an option was ignored or not supported.
      # When given -MP, icc 7.0 and 7.1 complain thusly:
      #   icc: Command line warning: ignoring option '-M'; no argument required
      # The diagnosis changed in icc 8.0:
      #   icc: Command line remark: option '-MP' not supported
      if (grep 'ignoring option' conftest.err ||
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
        am_cv_CC_dependencies_compiler_type=$depmode
        break
      fi
3851 3852 3853 3854 3855 3856 3857 3858 3859 3860
    fi
  done

  cd ..
  rm -rf conftest.dir
else
  am_cv_CC_dependencies_compiler_type=none
fi

fi
3861
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3862
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3863 3864
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type

3865
 if
3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876
  test "x$enable_dependency_tracking" != xno \
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  am__fastdepCC_TRUE=
  am__fastdepCC_FALSE='#'
else
  am__fastdepCC_TRUE='#'
  am__fastdepCC_FALSE=
fi


# Make sure we can run config.sub.
3877
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3878
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3879

3880
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3881
$as_echo_n "checking build system type... " >&6; }
3882
if test "${ac_cv_build+set}" = set; then :
3883
  $as_echo_n "(cached) " >&6
3884
else
3885 3886 3887 3888
  ac_build_alias=$build_alias
test "x$ac_build_alias" = x &&
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
test "x$ac_build_alias" = x &&
3889
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3890
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3891
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3892 3893

fi
3894
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3895
$as_echo "$ac_cv_build" >&6; }
3896 3897
case $ac_cv_build in
*-*-*) ;;
3898
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3899
esac
3900
build=$ac_cv_build
3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_build
shift
build_cpu=$1
build_vendor=$2
shift; shift
# Remember, the first character of IFS is used to create $*,
# except with old shells:
build_os=$*
IFS=$ac_save_IFS
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac


3914
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3915
$as_echo_n "checking host system type... " >&6; }
3916
if test "${ac_cv_host+set}" = set; then :
3917
  $as_echo_n "(cached) " >&6
3918
else
3919 3920 3921 3922
  if test "x$host_alias" = x; then
  ac_cv_host=$ac_cv_build
else
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3923
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3924
fi
3925 3926

fi
3927
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3928
$as_echo "$ac_cv_host" >&6; }
3929 3930
case $ac_cv_host in
*-*-*) ;;
3931
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3932
esac
3933
host=$ac_cv_host
3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_host
shift
host_cpu=$1
host_vendor=$2
shift; shift
# Remember, the first character of IFS is used to create $*,
# except with old shells:
host_os=$*
IFS=$ac_save_IFS
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac


3947
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3948
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3949
if test "${ac_cv_path_SED+set}" = set; then :
3950 3951 3952 3953 3954 3955 3956
  $as_echo_n "(cached) " >&6
else
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
     for ac_i in 1 2 3 4 5 6 7; do
       ac_script="$ac_script$as_nl$ac_script"
     done
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3957
     { ac_script=; unset ac_script;}
3958 3959 3960 3961 3962 3963 3964 3965
     if test -z "$SED"; then
  ac_path_SED_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
3966
    for ac_prog in sed gsed; do
3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
# Check for GNU ac_path_SED and select it if it is found.
  # Check for GNU $ac_path_SED
case `"$ac_path_SED" --version 2>&1` in
*GNU*)
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo '' >> "conftest.nl"
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3986
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000
    if test $ac_count -gt ${ac_path_SED_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_SED="$ac_path_SED"
      ac_path_SED_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_SED_found && break 3
    done
  done
4001
  done
4002 4003
IFS=$as_save_IFS
  if test -z "$ac_cv_path_SED"; then
4004
    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4005
  fi
4006
else
4007 4008 4009 4010
  ac_cv_path_SED=$SED
fi

fi
4011
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028
$as_echo "$ac_cv_path_SED" >&6; }
 SED="$ac_cv_path_SED"
  rm -f conftest.sed

test -z "$SED" && SED=sed
Xsed="$SED -e 1s/^X//"











4029
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4030
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4031
if test "${ac_cv_path_GREP+set}" = set; then :
4032
  $as_echo_n "(cached) " >&6
4033
else
4034
  if test -z "$GREP"; then
4035
  ac_path_GREP_found=false
4036 4037
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4038 4039 4040 4041
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
4042
    for ac_prog in grep ggrep; do
4043 4044 4045 4046
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
# Check for GNU ac_path_GREP and select it if it is found.
4047 4048 4049 4050 4051 4052
  # Check for GNU $ac_path_GREP
case `"$ac_path_GREP" --version 2>&1` in
*GNU*)
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
*)
  ac_count=0
4053
  $as_echo_n 0123456789 >"conftest.in"
4054 4055 4056 4057 4058
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
4059
    $as_echo 'GREP' >> "conftest.nl"
4060 4061
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4062
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_GREP="$ac_path_GREP"
      ac_path_GREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

4074 4075
      $ac_path_GREP_found && break 3
    done
4076
  done
4077
  done
4078
IFS=$as_save_IFS
4079
  if test -z "$ac_cv_path_GREP"; then
4080
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4081
  fi
4082 4083 4084 4085 4086
else
  ac_cv_path_GREP=$GREP
fi

fi
4087
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4088
$as_echo "$ac_cv_path_GREP" >&6; }
4089
 GREP="$ac_cv_path_GREP"
4090 4091


4092
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4093
$as_echo_n "checking for egrep... " >&6; }
4094
if test "${ac_cv_path_EGREP+set}" = set; then :
4095
  $as_echo_n "(cached) " >&6
4096
else
4097 4098 4099
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   then ac_cv_path_EGREP="$GREP -E"
   else
4100
     if test -z "$EGREP"; then
4101
  ac_path_EGREP_found=false
4102 4103
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4104 4105 4106 4107
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
4108
    for ac_prog in egrep; do
4109 4110 4111 4112
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
# Check for GNU ac_path_EGREP and select it if it is found.
4113 4114 4115 4116 4117 4118
  # Check for GNU $ac_path_EGREP
case `"$ac_path_EGREP" --version 2>&1` in
*GNU*)
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
*)
  ac_count=0
4119
  $as_echo_n 0123456789 >"conftest.in"
4120 4121 4122 4123 4124
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
4125
    $as_echo 'EGREP' >> "conftest.nl"
4126 4127
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4128
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4129 4130 4131 4132
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_EGREP="$ac_path_EGREP"
      ac_path_EGREP_max=$ac_count
4133
    fi
4134 4135 4136 4137 4138 4139
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

4140 4141
      $ac_path_EGREP_found && break 3
    done
4142
  done
4143
  done
4144
IFS=$as_save_IFS
4145
  if test -z "$ac_cv_path_EGREP"; then
4146
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4147
  fi
4148 4149 4150 4151 4152
else
  ac_cv_path_EGREP=$EGREP
fi

   fi
4153
fi
4154
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4155
$as_echo "$ac_cv_path_EGREP" >&6; }
4156
 EGREP="$ac_cv_path_EGREP"
4157 4158


4159
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4160
$as_echo_n "checking for fgrep... " >&6; }
4161
if test "${ac_cv_path_FGREP+set}" = set; then :
4162
  $as_echo_n "(cached) " >&6
4163
else
4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
   then ac_cv_path_FGREP="$GREP -F"
   else
     if test -z "$FGREP"; then
  ac_path_FGREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
4175
    for ac_prog in fgrep; do
4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
# Check for GNU ac_path_FGREP and select it if it is found.
  # Check for GNU $ac_path_FGREP
case `"$ac_path_FGREP" --version 2>&1` in
*GNU*)
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo 'FGREP' >> "conftest.nl"
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4195
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_FGREP="$ac_path_FGREP"
      ac_path_FGREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_FGREP_found && break 3
    done
  done
4210
  done
4211 4212
IFS=$as_save_IFS
  if test -z "$ac_cv_path_FGREP"; then
4213
    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4214 4215 4216 4217 4218 4219 4220
  fi
else
  ac_cv_path_FGREP=$FGREP
fi

   fi
fi
4221
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246
$as_echo "$ac_cv_path_FGREP" >&6; }
 FGREP="$ac_cv_path_FGREP"


test -z "$GREP" && GREP=grep



















# Check whether --with-gnu-ld was given.
4247
if test "${with_gnu_ld+set}" = set; then :
4248 4249 4250 4251 4252 4253 4254 4255
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
else
  with_gnu_ld=no
fi

ac_prog=ld
if test "$GCC" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
4256
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275
$as_echo_n "checking for ld used by $CC... " >&6; }
  case $host in
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  *)
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case $ac_prog in
    # Accept absolute paths.
    [\\/]* | ?:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      # Canonicalize the pathname of ld
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
      done
      test -z "$LD" && LD="$ac_prog"
      ;;
4276 4277 4278 4279 4280 4281 4282 4283 4284 4285
  "")
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ;;
  *)
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    ;;
  esac
elif test "$with_gnu_ld" = yes; then
4286
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4287
$as_echo_n "checking for GNU ld... " >&6; }
4288
else
4289
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4290
$as_echo_n "checking for non-GNU ld... " >&6; }
4291
fi
4292
if test "${lt_cv_path_LD+set}" = set; then :
4293
  $as_echo_n "(cached) " >&6
4294 4295
else
  if test -z "$LD"; then
4296
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4297
  for ac_dir in $PATH; do
4298
    IFS="$lt_save_ifs"
4299 4300 4301 4302
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      lt_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
4303
      # but apparently some variants of GNU ld only accept -v.
4304
      # Break only if it was the GNU/non-GNU ld that we prefer.
4305 4306
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
      *GNU* | *'with BFD'*)
4307
	test "$with_gnu_ld" != no && break
4308 4309
	;;
      *)
4310
	test "$with_gnu_ld" != yes && break
4311 4312
	;;
      esac
4313 4314
    fi
  done
4315
  IFS="$lt_save_ifs"
4316 4317 4318 4319 4320 4321 4322
else
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi

LD="$lt_cv_path_LD"
if test -n "$LD"; then
4323
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4324
$as_echo "$LD" >&6; }
4325
else
4326
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4327
$as_echo "no" >&6; }
4328
fi
4329 4330
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4331
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4332
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4333
  $as_echo_n "(cached) " >&6
4334
else
4335 4336 4337
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
4338
  lt_cv_prog_gnu_ld=yes
4339 4340
  ;;
*)
4341
  lt_cv_prog_gnu_ld=no
4342 4343
  ;;
esac
4344
fi
4345
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4346
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4347 4348 4349
with_gnu_ld=$lt_cv_prog_gnu_ld


4350 4351 4352 4353 4354 4355 4356







4357 4358 4359 4360 4361
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4362
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4363
$as_echo_n "checking how to run the C preprocessor... " >&6; }
4364 4365 4366
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
4367
fi
4368
if test -z "$CPP"; then
4369
  if test "${ac_cv_prog_CPP+set}" = set; then :
4370
  $as_echo_n "(cached) " >&6
4371
else
4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
4384
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385 4386 4387 4388 4389 4390 4391 4392
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
4393
if ac_fn_c_try_cpp "$LINENO"; then :
4394

4395
else
4396 4397 4398 4399
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext
4400

4401
  # OK, works on sane cases.  Now check whether nonexistent headers
4402
  # can be detected and how.
4403
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4404 4405 4406
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
4407
if ac_fn_c_try_cpp "$LINENO"; then :
4408 4409 4410 4411 4412 4413 4414 4415
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext
4416

4417 4418 4419
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
4420
if $ac_preproc_ok; then :
4421 4422
  break
fi
4423

4424 4425
    done
    ac_cv_prog_CPP=$CPP
4426

4427 4428 4429 4430 4431
fi
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
fi
4432
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4433
$as_echo "$CPP" >&6; }
4434 4435 4436 4437 4438 4439 4440 4441 4442
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
4443
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444 4445 4446 4447 4448 4449 4450 4451
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
4452
if ac_fn_c_try_cpp "$LINENO"; then :
4453

4454
else
4455 4456 4457 4458 4459
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext

4460
  # OK, works on sane cases.  Now check whether nonexistent headers
4461
  # can be detected and how.
4462
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4463 4464 4465
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
4466
if ac_fn_c_try_cpp "$LINENO"; then :
4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
4479 4480
if $ac_preproc_ok; then :

4481
else
4482
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4483
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4484 4485
as_fn_error "C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details." "$LINENO" 5; }
4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}sed", so it can be a program name with args.
set dummy ${ac_tool_prefix}sed; ac_word=$2
4497
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4498
$as_echo_n "checking for $ac_word... " >&6; }
4499
if test "${ac_cv_prog_SED+set}" = set; then :
4500
  $as_echo_n "(cached) " >&6
4501 4502 4503 4504 4505 4506 4507 4508 4509
else
  if test -n "$SED"; then
  ac_cv_prog_SED="$SED" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
4510
    for ac_exec_ext in '' $ac_executable_extensions; do
4511
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4512
    ac_cv_prog_SED="${ac_tool_prefix}sed"
4513
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4514 4515 4516
    break 2
  fi
done
4517
  done
4518
IFS=$as_save_IFS
4519 4520 4521 4522 4523

fi
fi
SED=$ac_cv_prog_SED
if test -n "$SED"; then
4524
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4525
$as_echo "$SED" >&6; }
4526
else
4527
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4528
$as_echo "no" >&6; }
4529 4530
fi

4531

4532 4533 4534 4535 4536
fi
if test -z "$ac_cv_prog_SED"; then
  ac_ct_SED=$SED
  # Extract the first word of "sed", so it can be a program name with args.
set dummy sed; ac_word=$2
4537
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4538
$as_echo_n "checking for $ac_word... " >&6; }
4539
if test "${ac_cv_prog_ac_ct_SED+set}" = set; then :
4540
  $as_echo_n "(cached) " >&6
4541 4542 4543 4544 4545 4546 4547 4548 4549
else
  if test -n "$ac_ct_SED"; then
  ac_cv_prog_ac_ct_SED="$ac_ct_SED" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
4550
    for ac_exec_ext in '' $ac_executable_extensions; do
4551
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4552
    ac_cv_prog_ac_ct_SED="sed"
4553
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4554 4555 4556
    break 2
  fi
done
4557
  done
4558
IFS=$as_save_IFS
4559 4560 4561 4562 4563

fi
fi
ac_ct_SED=$ac_cv_prog_ac_ct_SED
if test -n "$ac_ct_SED"; then
4564
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_SED" >&5
4565
$as_echo "$ac_ct_SED" >&6; }
4566
else
4567
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4568
$as_echo "no" >&6; }
4569 4570
fi

4571 4572 4573 4574 4575
  if test "x$ac_ct_SED" = x; then
    SED=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
4576
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4577
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4578 4579 4580 4581
ac_tool_warned=yes ;;
esac
    SED=$ac_ct_SED
  fi
4582 4583 4584 4585
else
  SED="$ac_cv_prog_SED"
fi

4586 4587 4588
enable_win32_dll=yes

case $host in
4589
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
4590 4591 4592
  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
set dummy ${ac_tool_prefix}as; ac_word=$2
4593
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4594
$as_echo_n "checking for $ac_word... " >&6; }
4595
if test "${ac_cv_prog_AS+set}" = set; then :
4596
  $as_echo_n "(cached) " >&6
4597
else
4598 4599 4600 4601
  if test -n "$AS"; then
  ac_cv_prog_AS="$AS" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602 4603 4604 4605
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
4606
    for ac_exec_ext in '' $ac_executable_extensions; do
4607 4608
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AS="${ac_tool_prefix}as"
4609
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4610 4611 4612
    break 2
  fi
done
4613
  done
4614 4615 4616 4617
IFS=$as_save_IFS

fi
fi
4618 4619
AS=$ac_cv_prog_AS
if test -n "$AS"; then
4620
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4621 4622
$as_echo "$AS" >&6; }
else
4623
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4624 4625
$as_echo "no" >&6; }
fi
4626

4627

4628 4629 4630 4631 4632
fi
if test -z "$ac_cv_prog_AS"; then
  ac_ct_AS=$AS
  # Extract the first word of "as", so it can be a program name with args.
set dummy as; ac_word=$2
4633
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4634
$as_echo_n "checking for $ac_word... " >&6; }
4635
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
4636 4637 4638 4639 4640 4641 4642 4643 4644 4645
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_AS"; then
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
4646
    for ac_exec_ext in '' $ac_executable_extensions; do
4647 4648
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_AS="as"
4649
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4650 4651 4652
    break 2
  fi
done
4653
  done
4654
IFS=$as_save_IFS
4655

4656 4657 4658 4659
fi
fi
ac_ct_AS=$ac_cv_prog_ac_ct_AS
if test -n "$ac_ct_AS"; then
4660
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4661
$as_echo "$ac_ct_AS" >&6; }
4662
else
4663
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4664
$as_echo "no" >&6; }
4665
fi
4666

4667 4668 4669 4670 4671
  if test "x$ac_ct_AS" = x; then
    AS="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
4672
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4673
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4674
ac_tool_warned=yes ;;
4675
esac
4676 4677
    AS=$ac_ct_AS
  fi
4678
else
4679
  AS="$ac_cv_prog_AS"
4680 4681
fi

4682 4683 4684
  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4685
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4686
$as_echo_n "checking for $ac_word... " >&6; }
4687
if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
4688
  $as_echo_n "(cached) " >&6
4689
else
4690 4691 4692 4693 4694 4695 4696 4697
  if test -n "$DLLTOOL"; then
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
4698
    for ac_exec_ext in '' $ac_executable_extensions; do
4699 4700
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4701
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4702 4703 4704
    break 2
  fi
done
4705
  done
4706 4707 4708 4709 4710 4711
IFS=$as_save_IFS

fi
fi
DLLTOOL=$ac_cv_prog_DLLTOOL
if test -n "$DLLTOOL"; then
4712
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4713 4714
$as_echo "$DLLTOOL" >&6; }
else
4715
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4716
$as_echo "no" >&6; }
4717
fi
4718

4719

4720
fi
4721 4722 4723 4724
if test -z "$ac_cv_prog_DLLTOOL"; then
  ac_ct_DLLTOOL=$DLLTOOL
  # Extract the first word of "dlltool", so it can be a program name with args.
set dummy dlltool; ac_word=$2
4725
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4726
$as_echo_n "checking for $ac_word... " >&6; }
4727
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
4728 4729 4730 4731 4732 4733 4734 4735 4736 4737
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_DLLTOOL"; then
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
4738
    for ac_exec_ext in '' $ac_executable_extensions; do
4739 4740
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4741
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4742 4743 4744
    break 2
  fi
done
4745
  done
4746
IFS=$as_save_IFS
4747

4748 4749 4750 4751
fi
fi
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
if test -n "$ac_ct_DLLTOOL"; then
4752
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4753 4754
$as_echo "$ac_ct_DLLTOOL" >&6; }
else
4755
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4756 4757
$as_echo "no" >&6; }
fi
4758

4759 4760 4761 4762 4763
  if test "x$ac_ct_DLLTOOL" = x; then
    DLLTOOL="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
4764
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4765
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4766 4767 4768 4769
ac_tool_warned=yes ;;
esac
    DLLTOOL=$ac_ct_DLLTOOL
  fi
4770
else
4771
  DLLTOOL="$ac_cv_prog_DLLTOOL"
4772
fi
4773

4774 4775 4776
  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4777
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4778
$as_echo_n "checking for $ac_word... " >&6; }
4779
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4780 4781 4782 4783 4784 4785 4786 4787 4788 4789
  $as_echo_n "(cached) " >&6
else
  if test -n "$OBJDUMP"; then
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
4790
    for ac_exec_ext in '' $ac_executable_extensions; do
4791 4792
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4793
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4794 4795 4796
    break 2
  fi
done
4797
  done
4798
IFS=$as_save_IFS
4799

4800 4801 4802 4803
fi
fi
OBJDUMP=$ac_cv_prog_OBJDUMP
if test -n "$OBJDUMP"; then
4804
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4805
$as_echo "$OBJDUMP" >&6; }
4806
else
4807
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4808
$as_echo "no" >&6; }
4809
fi
4810

4811 4812 4813 4814 4815 4816

fi
if test -z "$ac_cv_prog_OBJDUMP"; then
  ac_ct_OBJDUMP=$OBJDUMP
  # Extract the first word of "objdump", so it can be a program name with args.
set dummy objdump; ac_word=$2
4817
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4818
$as_echo_n "checking for $ac_word... " >&6; }
4819
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4820
  $as_echo_n "(cached) " >&6
4821
else
4822 4823
  if test -n "$ac_ct_OBJDUMP"; then
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4824
else
4825 4826 4827 4828 4829
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
4830
    for ac_exec_ext in '' $ac_executable_extensions; do
4831 4832
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4833
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4834
    break 2
4835
  fi
4836
done
4837
  done
4838 4839 4840
IFS=$as_save_IFS

fi
4841
fi
4842 4843
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
if test -n "$ac_ct_OBJDUMP"; then
4844
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4845 4846
$as_echo "$ac_ct_OBJDUMP" >&6; }
else
4847
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4848
$as_echo "no" >&6; }
4849
fi
4850

4851 4852 4853 4854 4855
  if test "x$ac_ct_OBJDUMP" = x; then
    OBJDUMP="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
4856
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4857
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4858 4859 4860 4861
ac_tool_warned=yes ;;
esac
    OBJDUMP=$ac_ct_OBJDUMP
  fi
4862
else
4863 4864
  OBJDUMP="$ac_cv_prog_OBJDUMP"
fi
4865

4866
  ;;
4867
esac
4868

4869
test -z "$AS" && AS=as
4870 4871 4872 4873 4874





4875
test -z "$DLLTOOL" && DLLTOOL=dlltool
4876 4877 4878



4879 4880


4881
test -z "$OBJDUMP" && OBJDUMP=objdump
4882 4883 4884 4885




4886 4887


4888 4889


4890
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4891 4892 4893
$as_echo_n "checking whether ln -s works... " >&6; }
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
4894
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4895 4896
$as_echo "yes" >&6; }
else
4897
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4898 4899
$as_echo "no, using $LN_S" >&6; }
fi
4900

4901
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4902 4903 4904
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
set x ${MAKE-make}
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4905
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918
  $as_echo_n "(cached) " >&6
else
  cat >conftest.make <<\_ACEOF
SHELL = /bin/sh
all:
	@echo '@@@%%%=$(MAKE)=@@@%%%'
_ACEOF
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
case `${MAKE-make} -f conftest.make 2>/dev/null` in
  *@@@%%%=?*=@@@%%%*)
    eval ac_cv_prog_make_${ac_make}_set=yes;;
  *)
    eval ac_cv_prog_make_${ac_make}_set=no;;
4919
esac
4920 4921 4922
rm -f conftest.make
fi
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4923
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4924 4925 4926
$as_echo "yes" >&6; }
  SET_MAKE=
else
4927
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4928 4929
$as_echo "no" >&6; }
  SET_MAKE="MAKE=${MAKE-make}"
4930
fi
4931

4932 4933
case `pwd` in
  *\ * | *\	*)
4934
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4935 4936
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
esac
4937

4938

4939

4940 4941
macro_version='2.2.6'
macro_revision='1.3012'
4942 4943 4944



4945

4946 4947


4948

4949 4950 4951



4952

4953 4954


4955
ltmain="$ac_aux_dir/ltmain.sh"
4956

4957
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4958
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4959
if test "${lt_cv_path_NM+set}" = set; then :
4960 4961 4962 4963 4964 4965 4966 4967 4968
  $as_echo_n "(cached) " >&6
else
  if test -n "$NM"; then
  # Let the user override the test.
  lt_cv_path_NM="$NM"
else
  lt_nm_to_check="${ac_tool_prefix}nm"
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
    lt_nm_to_check="$lt_nm_to_check nm"
4969
  fi
4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005
  for lt_tmp_nm in $lt_nm_to_check; do
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
      IFS="$lt_save_ifs"
      test -z "$ac_dir" && ac_dir=.
      tmp_nm="$ac_dir/$lt_tmp_nm"
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
	# Check to see if the nm accepts a BSD-compat flag.
	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
	#   nm: unknown option "B" ignored
	# Tru64's nm complains that /dev/null is an invalid object file
	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
	*/dev/null* | *'Invalid file or object type'*)
	  lt_cv_path_NM="$tmp_nm -B"
	  break
	  ;;
	*)
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
	  */dev/null*)
	    lt_cv_path_NM="$tmp_nm -p"
	    break
	    ;;
	  *)
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
	    continue # so that we can try to find one that supports BSD flags
	    ;;
	  esac
	  ;;
	esac
      fi
    done
    IFS="$lt_save_ifs"
  done
  : ${lt_cv_path_NM=no}
fi
fi
5006
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5007 5008 5009 5010 5011 5012 5013 5014 5015 5016
$as_echo "$lt_cv_path_NM" >&6; }
if test "$lt_cv_path_NM" != "no"; then
  NM="$lt_cv_path_NM"
else
  # Didn't find any BSD compatible name lister, look for dumpbin.
  if test -n "$ac_tool_prefix"; then
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5017
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5018
$as_echo_n "checking for $ac_word... " >&6; }
5019
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5020 5021 5022 5023 5024 5025 5026 5027 5028 5029
  $as_echo_n "(cached) " >&6
else
  if test -n "$DUMPBIN"; then
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
5030
    for ac_exec_ext in '' $ac_executable_extensions; do
5031 5032
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5033
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5034
    break 2
5035
  fi
5036
done
5037
  done
5038
IFS=$as_save_IFS
5039

5040 5041 5042 5043
fi
fi
DUMPBIN=$ac_cv_prog_DUMPBIN
if test -n "$DUMPBIN"; then
5044
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5045 5046
$as_echo "$DUMPBIN" >&6; }
else
5047
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5048 5049
$as_echo "no" >&6; }
fi
5050 5051


5052 5053 5054 5055 5056 5057 5058 5059 5060
    test -n "$DUMPBIN" && break
  done
fi
if test -z "$DUMPBIN"; then
  ac_ct_DUMPBIN=$DUMPBIN
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
5061
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5062
$as_echo_n "checking for $ac_word... " >&6; }
5063
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5064 5065 5066 5067 5068 5069 5070 5071 5072 5073
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_DUMPBIN"; then
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
5074
    for ac_exec_ext in '' $ac_executable_extensions; do
5075 5076
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5077
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5078 5079 5080
    break 2
  fi
done
5081
  done
5082
IFS=$as_save_IFS
5083

5084 5085 5086 5087
fi
fi
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
if test -n "$ac_ct_DUMPBIN"; then
5088
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5089
$as_echo "$ac_ct_DUMPBIN" >&6; }
5090
else
5091
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5092 5093
$as_echo "no" >&6; }
fi
5094 5095


5096 5097 5098 5099 5100 5101 5102 5103
  test -n "$ac_ct_DUMPBIN" && break
done

  if test "x$ac_ct_DUMPBIN" = x; then
    DUMPBIN=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
5104
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5105
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5106
ac_tool_warned=yes ;;
5107
esac
5108 5109 5110
    DUMPBIN=$ac_ct_DUMPBIN
  fi
fi
5111

5112 5113 5114 5115

  if test "$DUMPBIN" != ":"; then
    NM="$DUMPBIN"
  fi
5116
fi
5117
test -z "$NM" && NM=nm
5118 5119 5120 5121 5122 5123






5124
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5125
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5126
if test "${lt_cv_nm_interface+set}" = set; then :
5127
  $as_echo_n "(cached) " >&6
5128
else
5129 5130
  lt_cv_nm_interface="BSD nm"
  echo "int some_variable = 0;" > conftest.$ac_ext
5131
  (eval echo "\"\$as_me:5131: $ac_compile\"" >&5)
5132 5133
  (eval "$ac_compile" 2>conftest.err)
  cat conftest.err >&5
5134
  (eval echo "\"\$as_me:5134: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5135 5136
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  cat conftest.err >&5
5137
  (eval echo "\"\$as_me:5137: output\"" >&5)
5138 5139 5140 5141 5142
  cat conftest.out >&5
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
    lt_cv_nm_interface="MS dumpbin"
  fi
  rm -f conftest*
5143
fi
5144
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5145
$as_echo "$lt_cv_nm_interface" >&6; }
5146

5147
# find the maximum length of command line arguments
5148
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5149
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5150
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5151
  $as_echo_n "(cached) " >&6
5152
else
5153 5154
    i=0
  teststring="ABCD"
5155

5156 5157 5158 5159 5160 5161 5162 5163
  case $build_os in
  msdosdjgpp*)
    # On DJGPP, this test can blow up pretty badly due to problems in libc
    # (any single argument exceeding 2000 bytes causes a buffer overrun
    # during glob expansion).  Even if it were fixed, the result of this
    # check would be larger than it should be.
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
    ;;
5164

5165 5166 5167 5168 5169 5170
  gnu*)
    # Under GNU Hurd, this test is not required because there is
    # no limit to the length of command line arguments.
    # Libtool will interpret -1 as no limit whatsoever
    lt_cv_sys_max_cmd_len=-1;
    ;;
5171

5172
  cygwin* | mingw* | cegcc*)
5173 5174 5175 5176 5177 5178 5179 5180 5181
    # On Win9x/ME, this test blows up -- it succeeds, but takes
    # about 5 minutes as the teststring grows exponentially.
    # Worse, since 9x/ME are not pre-emptively multitasking,
    # you end up with a "frozen" computer, even though with patience
    # the test eventually succeeds (with a max line length of 256k).
    # Instead, let's just punt: use the minimum linelength reported by
    # all of the supported platforms: 8192 (on NT/2K/XP).
    lt_cv_sys_max_cmd_len=8192;
    ;;
5182

5183 5184 5185 5186 5187
  amigaos*)
    # On AmigaOS with pdksh, this test takes hours, literally.
    # So we just punt and use a minimum line length of 8192.
    lt_cv_sys_max_cmd_len=8192;
    ;;
5188

5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
    # This has been around since 386BSD, at least.  Likely further.
    if test -x /sbin/sysctl; then
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
    elif test -x /usr/sbin/sysctl; then
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
    else
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
    fi
    # And add a safety zone
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
    ;;
5202

5203 5204 5205 5206
  interix*)
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
    lt_cv_sys_max_cmd_len=196608
    ;;
5207

5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263
  osf*)
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
    # nice to cause kernel panics so lets avoid the loop below.
    # First set a reasonable default.
    lt_cv_sys_max_cmd_len=16384
    #
    if test -x /sbin/sysconfig; then
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
      esac
    fi
    ;;
  sco3.2v5*)
    lt_cv_sys_max_cmd_len=102400
    ;;
  sysv5* | sco5v6* | sysv4.2uw2*)
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
    if test -n "$kargmax"; then
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
    else
      lt_cv_sys_max_cmd_len=32768
    fi
    ;;
  *)
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
    if test -n "$lt_cv_sys_max_cmd_len"; then
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
    else
      # Make teststring a little bigger before we do anything with it.
      # a 1K string should be a reasonable start.
      for i in 1 2 3 4 5 6 7 8 ; do
        teststring=$teststring$teststring
      done
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
      # If test is not a shell built-in, we'll probably end up computing a
      # maximum length that is only half of the actual maximum length, but
      # we can't tell.
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
	      test $i != 17 # 1/2 MB should be enough
      do
        i=`expr $i + 1`
        teststring=$teststring$teststring
      done
      # Only check the string length outside the loop.
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
      teststring=
      # Add a significant safety factor because C++ compilers can tack on
      # massive amounts of additional arguments before passing them to the
      # linker.  It appears as though 1/2 is a usable value.
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
    fi
    ;;
  esac
5264

5265 5266 5267
fi

if test -n $lt_cv_sys_max_cmd_len ; then
5268
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5269 5270
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
else
5271
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5272 5273 5274
$as_echo "none" >&6; }
fi
max_cmd_len=$lt_cv_sys_max_cmd_len
5275 5276 5277 5278 5279 5280






5281 5282 5283
: ${CP="cp -f"}
: ${MV="mv -f"}
: ${RM="rm -f"}
5284

5285
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5286 5287 5288 5289 5290 5291 5292 5293 5294
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
# Try some XSI features
xsi_shell=no
( _lt_dummy="a/b/c"
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
      = c,a/b,, \
    && eval 'test $(( 1 + 1 )) -eq 2 \
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  && xsi_shell=yes
5295
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5296
$as_echo "$xsi_shell" >&6; }
5297

5298

5299
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5300 5301 5302 5303 5304
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
lt_shell_append=no
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
    >/dev/null 2>&1 \
  && lt_shell_append=yes
5305
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5306
$as_echo "$lt_shell_append" >&6; }
5307

5308

5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  lt_unset=unset
else
  lt_unset=false
fi





# test EBCDIC or ASCII
case `echo X|tr X '\101'` in
 A) # ASCII based system
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  lt_SP2NL='tr \040 \012'
  lt_NL2SP='tr \015\012 \040\040'
  ;;
 *) # EBCDIC based system
  lt_SP2NL='tr \100 \n'
  lt_NL2SP='tr \r\n \100\100'
  ;;
esac









5340
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5341
$as_echo_n "checking for $LD option to reload object files... " >&6; }
5342
if test "${lt_cv_ld_reload_flag+set}" = set; then :
5343 5344 5345 5346
  $as_echo_n "(cached) " >&6
else
  lt_cv_ld_reload_flag='-r'
fi
5347
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375
$as_echo "$lt_cv_ld_reload_flag" >&6; }
reload_flag=$lt_cv_ld_reload_flag
case $reload_flag in
"" | " "*) ;;
*) reload_flag=" $reload_flag" ;;
esac
reload_cmds='$LD$reload_flag -o $output$reload_objs'
case $host_os in
  darwin*)
    if test "$GCC" = yes; then
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
    else
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
    fi
    ;;
esac









if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5376
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5377
$as_echo_n "checking for $ac_word... " >&6; }
5378
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5379 5380 5381 5382 5383 5384 5385 5386 5387 5388
  $as_echo_n "(cached) " >&6
else
  if test -n "$OBJDUMP"; then
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
5389
    for ac_exec_ext in '' $ac_executable_extensions; do
5390 5391
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5392
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5393 5394 5395
    break 2
  fi
done
5396
  done
5397 5398 5399 5400 5401 5402
IFS=$as_save_IFS

fi
fi
OBJDUMP=$ac_cv_prog_OBJDUMP
if test -n "$OBJDUMP"; then
5403
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5404 5405
$as_echo "$OBJDUMP" >&6; }
else
5406
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5407 5408 5409 5410 5411 5412 5413 5414 5415
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_OBJDUMP"; then
  ac_ct_OBJDUMP=$OBJDUMP
  # Extract the first word of "objdump", so it can be a program name with args.
set dummy objdump; ac_word=$2
5416
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5417
$as_echo_n "checking for $ac_word... " >&6; }
5418
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5419 5420 5421 5422 5423 5424 5425 5426 5427 5428
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_OBJDUMP"; then
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
5429
    for ac_exec_ext in '' $ac_executable_extensions; do
5430 5431
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5432
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5433 5434 5435
    break 2
  fi
done
5436
  done
5437 5438 5439 5440 5441 5442
IFS=$as_save_IFS

fi
fi
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
if test -n "$ac_ct_OBJDUMP"; then
5443
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5444
$as_echo "$ac_ct_OBJDUMP" >&6; }
5445
else
5446
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5447
$as_echo "no" >&6; }
5448
fi
5449

5450 5451 5452 5453 5454
  if test "x$ac_ct_OBJDUMP" = x; then
    OBJDUMP="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
5455
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5456 5457
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
5458
esac
5459 5460
    OBJDUMP=$ac_ct_OBJDUMP
  fi
5461
else
5462
  OBJDUMP="$ac_cv_prog_OBJDUMP"
5463
fi
5464

5465
test -z "$OBJDUMP" && OBJDUMP=objdump
5466 5467 5468 5469 5470 5471






5472
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5473
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5474
if test "${lt_cv_deplibs_check_method+set}" = set; then :
5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518
  $as_echo_n "(cached) " >&6
else
  lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
lt_cv_deplibs_check_method='unknown'
# Need to set the preceding variable on all platforms that support
# interlibrary dependencies.
# 'none' -- dependencies not supported.
# `unknown' -- same as none, but documents that we really don't know.
# 'pass_all' -- all dependencies passed with no checks.
# 'test_compile' -- check by making test program.
# 'file_magic [[regex]]' -- check by looking for files in library path
# which responds to the $file_magic_cmd with a given extended regex.
# If you have `file' or equivalent on your system and you're not sure
# whether `pass_all' will *always* work, you probably want this one.

case $host_os in
aix[4-9]*)
  lt_cv_deplibs_check_method=pass_all
  ;;

beos*)
  lt_cv_deplibs_check_method=pass_all
  ;;

bsdi[45]*)
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  lt_cv_file_magic_cmd='/usr/bin/file -L'
  lt_cv_file_magic_test_file=/shlib/libc.so
  ;;

cygwin*)
  # func_win32_libid is a shell function defined in ltmain.sh
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  lt_cv_file_magic_cmd='func_win32_libid'
  ;;

mingw* | pw32*)
  # Base MSYS/MinGW do not provide the 'file' command needed by
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
  # unless we find 'file', for example because we are cross-compiling.
  if ( file / ) >/dev/null 2>&1; then
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
    lt_cv_file_magic_cmd='func_win32_libid'
5519
  else
5520 5521 5522 5523 5524
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
    lt_cv_file_magic_cmd='$OBJDUMP -f'
  fi
  ;;

5525 5526 5527 5528 5529 5530
cegcc)
  # use the weaker test based on 'objdump'. See mingw*.
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  lt_cv_file_magic_cmd='$OBJDUMP -f'
  ;;

5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667
darwin* | rhapsody*)
  lt_cv_deplibs_check_method=pass_all
  ;;

freebsd* | dragonfly*)
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
    case $host_cpu in
    i*86 )
      # Not sure whether the presence of OpenBSD here was a mistake.
      # Let's accept both of them until this is cleared up.
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
      lt_cv_file_magic_cmd=/usr/bin/file
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
      ;;
    esac
  else
    lt_cv_deplibs_check_method=pass_all
  fi
  ;;

gnu*)
  lt_cv_deplibs_check_method=pass_all
  ;;

hpux10.20* | hpux11*)
  lt_cv_file_magic_cmd=/usr/bin/file
  case $host_cpu in
  ia64*)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
    ;;
  hppa*64*)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
    ;;
  *)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
    ;;
  esac
  ;;

interix[3-9]*)
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  ;;

irix5* | irix6* | nonstopux*)
  case $LD in
  *-32|*"-32 ") libmagic=32-bit;;
  *-n32|*"-n32 ") libmagic=N32;;
  *-64|*"-64 ") libmagic=64-bit;;
  *) libmagic=never-match;;
  esac
  lt_cv_deplibs_check_method=pass_all
  ;;

# This must be Linux ELF.
linux* | k*bsd*-gnu)
  lt_cv_deplibs_check_method=pass_all
  ;;

netbsd*)
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  else
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  fi
  ;;

newos6*)
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  lt_cv_file_magic_cmd=/usr/bin/file
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
  ;;

*nto* | *qnx*)
  lt_cv_deplibs_check_method=pass_all
  ;;

openbsd*)
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  else
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  fi
  ;;

osf3* | osf4* | osf5*)
  lt_cv_deplibs_check_method=pass_all
  ;;

rdos*)
  lt_cv_deplibs_check_method=pass_all
  ;;

solaris*)
  lt_cv_deplibs_check_method=pass_all
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  lt_cv_deplibs_check_method=pass_all
  ;;

sysv4 | sysv4.3*)
  case $host_vendor in
  motorola)
    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]'
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
    ;;
  ncr)
    lt_cv_deplibs_check_method=pass_all
    ;;
  sequent)
    lt_cv_file_magic_cmd='/bin/file'
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
    ;;
  sni)
    lt_cv_file_magic_cmd='/bin/file'
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
    lt_cv_file_magic_test_file=/lib/libc.so
    ;;
  siemens)
    lt_cv_deplibs_check_method=pass_all
    ;;
  pc)
    lt_cv_deplibs_check_method=pass_all
    ;;
  esac
  ;;

tpf*)
  lt_cv_deplibs_check_method=pass_all
  ;;
esac

fi
5668
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687
$as_echo "$lt_cv_deplibs_check_method" >&6; }
file_magic_cmd=$lt_cv_file_magic_cmd
deplibs_check_method=$lt_cv_deplibs_check_method
test -z "$deplibs_check_method" && deplibs_check_method=unknown












if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
set dummy ${ac_tool_prefix}ar; ac_word=$2
5688
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5689
$as_echo_n "checking for $ac_word... " >&6; }
5690
if test "${ac_cv_prog_AR+set}" = set; then :
5691
  $as_echo_n "(cached) " >&6
5692
else
5693 5694
  if test -n "$AR"; then
  ac_cv_prog_AR="$AR" # Let the user override the test.
5695 5696 5697 5698 5699 5700
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
5701
    for ac_exec_ext in '' $ac_executable_extensions; do
5702
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5703
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5704
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5705 5706 5707
    break 2
  fi
done
5708
  done
5709
IFS=$as_save_IFS
5710

5711 5712
fi
fi
5713 5714
AR=$ac_cv_prog_AR
if test -n "$AR"; then
5715
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5716
$as_echo "$AR" >&6; }
5717
else
5718
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5719
$as_echo "no" >&6; }
5720
fi
5721

5722

5723
fi
5724 5725 5726 5727
if test -z "$ac_cv_prog_AR"; then
  ac_ct_AR=$AR
  # Extract the first word of "ar", so it can be a program name with args.
set dummy ar; ac_word=$2
5728
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5729
$as_echo_n "checking for $ac_word... " >&6; }
5730
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5731
  $as_echo_n "(cached) " >&6
5732
else
5733 5734
  if test -n "$ac_ct_AR"; then
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5735 5736 5737 5738 5739 5740
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
5741
    for ac_exec_ext in '' $ac_executable_extensions; do
5742
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5743
    ac_cv_prog_ac_ct_AR="ar"
5744
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5745 5746 5747
    break 2
  fi
done
5748
  done
5749
IFS=$as_save_IFS
5750 5751

fi
5752
fi
5753 5754
ac_ct_AR=$ac_cv_prog_ac_ct_AR
if test -n "$ac_ct_AR"; then
5755
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5756
$as_echo "$ac_ct_AR" >&6; }
5757
else
5758
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5759
$as_echo "no" >&6; }
5760 5761
fi

5762 5763
  if test "x$ac_ct_AR" = x; then
    AR="false"
5764
  else
5765 5766
    case $cross_compiling:$ac_tool_warned in
yes:)
5767
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5768
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5769 5770
ac_tool_warned=yes ;;
esac
5771
    AR=$ac_ct_AR
5772
  fi
5773 5774
else
  AR="$ac_cv_prog_AR"
5775
fi
5776

5777 5778
test -z "$AR" && AR=ar
test -z "$AR_FLAGS" && AR_FLAGS=cru
5779

5780 5781


5782 5783


5784 5785


5786 5787 5788 5789




5790 5791 5792
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
5793
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5794
$as_echo_n "checking for $ac_word... " >&6; }
5795
if test "${ac_cv_prog_STRIP+set}" = set; then :
5796 5797 5798 5799 5800 5801 5802 5803 5804 5805
  $as_echo_n "(cached) " >&6
else
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
5806
    for ac_exec_ext in '' $ac_executable_extensions; do
5807 5808
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5809
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5810 5811 5812
    break 2
  fi
done
5813
  done
5814
IFS=$as_save_IFS
5815

5816 5817 5818 5819
fi
fi
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
5820
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5821
$as_echo "$STRIP" >&6; }
5822
else
5823
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5824 5825
$as_echo "no" >&6; }
fi
5826 5827


5828
fi
5829 5830 5831 5832
if test -z "$ac_cv_prog_STRIP"; then
  ac_ct_STRIP=$STRIP
  # Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
5833
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5834
$as_echo_n "checking for $ac_word... " >&6; }
5835
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5836 5837 5838 5839 5840 5841 5842 5843 5844 5845
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_STRIP"; then
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
5846
    for ac_exec_ext in '' $ac_executable_extensions; do
5847 5848
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_STRIP="strip"
5849
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5850 5851 5852
    break 2
  fi
done
5853
  done
5854
IFS=$as_save_IFS
5855

5856
fi
5857 5858 5859
fi
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
if test -n "$ac_ct_STRIP"; then
5860
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5861 5862
$as_echo "$ac_ct_STRIP" >&6; }
else
5863
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5864
$as_echo "no" >&6; }
5865
fi
5866

5867 5868
  if test "x$ac_ct_STRIP" = x; then
    STRIP=":"
5869
  else
5870 5871
    case $cross_compiling:$ac_tool_warned in
yes:)
5872
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5873
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5874 5875 5876
ac_tool_warned=yes ;;
esac
    STRIP=$ac_ct_STRIP
5877 5878
  fi
else
5879
  STRIP="$ac_cv_prog_STRIP"
5880
fi
5881

5882
test -z "$STRIP" && STRIP=:
5883

5884

5885

5886

5887

5888

5889 5890 5891
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5892
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5893
$as_echo_n "checking for $ac_word... " >&6; }
5894
if test "${ac_cv_prog_RANLIB+set}" = set; then :
5895 5896 5897 5898 5899 5900 5901 5902 5903 5904
  $as_echo_n "(cached) " >&6
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
5905
    for ac_exec_ext in '' $ac_executable_extensions; do
5906 5907
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5908
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5909 5910 5911
    break 2
  fi
done
5912
  done
5913
IFS=$as_save_IFS
5914

5915 5916 5917 5918
fi
fi
RANLIB=$ac_cv_prog_RANLIB
if test -n "$RANLIB"; then
5919
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5920
$as_echo "$RANLIB" >&6; }
5921
else
5922
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5923
$as_echo "no" >&6; }
5924
fi
5925 5926


5927 5928 5929 5930 5931
fi
if test -z "$ac_cv_prog_RANLIB"; then
  ac_ct_RANLIB=$RANLIB
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
5932
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5933
$as_echo_n "checking for $ac_word... " >&6; }
5934
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5935
  $as_echo_n "(cached) " >&6
5936
else
5937 5938
  if test -n "$ac_ct_RANLIB"; then
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5939
else
5940 5941 5942 5943 5944
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
5945
    for ac_exec_ext in '' $ac_executable_extensions; do
5946 5947
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5948
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5949 5950 5951
    break 2
  fi
done
5952
  done
5953
IFS=$as_save_IFS
5954

5955 5956 5957 5958
fi
fi
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
if test -n "$ac_ct_RANLIB"; then
5959
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5960 5961
$as_echo "$ac_ct_RANLIB" >&6; }
else
5962
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5963
$as_echo "no" >&6; }
5964
fi
5965

5966 5967 5968 5969 5970
  if test "x$ac_ct_RANLIB" = x; then
    RANLIB=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
5971
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5972
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5973
ac_tool_warned=yes ;;
5974
esac
5975 5976
    RANLIB=$ac_ct_RANLIB
  fi
5977
else
5978
  RANLIB="$ac_cv_prog_RANLIB"
5979
fi
5980

5981
test -z "$RANLIB" && RANLIB=:
5982

5983

5984 5985 5986 5987




5988 5989 5990 5991
# Determine commands to create old-style static archives.
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
old_postinstall_cmds='chmod 644 $oldlib'
old_postuninstall_cmds=
5992

5993 5994 5995 5996 5997 5998 5999 6000 6001 6002
if test -n "$RANLIB"; then
  case $host_os in
  openbsd*)
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
    ;;
  *)
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
    ;;
  esac
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6003
fi
6004 6005


6006 6007 6008 6009




6010

6011 6012 6013



6014 6015 6016 6017 6018





6019

6020 6021 6022



6023

6024

6025 6026


6027

6028 6029


6030 6031 6032 6033 6034 6035 6036 6037








6038 6039
# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}
6040

6041 6042
# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6043

6044 6045
# Allow CC to be a program name with arguments.
compiler=$CC
6046 6047


6048
# Check for command to grab the raw symbol name followed by C symbol from nm.
6049
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6050
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6051
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6052
  $as_echo_n "(cached) " >&6
6053
else
6054

6055 6056
# These are sane defaults that work on at least a few old systems.
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6057

6058 6059
# Character class describing NM global symbol codes.
symcode='[BCDEGRST]'
6060

6061 6062
# Regexp to match symbols that can be accessed directly from C.
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6063

6064 6065 6066 6067 6068
# Define system-specific variables.
case $host_os in
aix*)
  symcode='[BCDT]'
  ;;
6069
cygwin* | mingw* | pw32* | cegcc*)
6070 6071
  symcode='[ABCDGISTW]'
  ;;
6072
hpux*)
6073 6074
  if test "$host_cpu" = ia64; then
    symcode='[ABCDEGRST]'
6075
  fi
6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099
  ;;
irix* | nonstopux*)
  symcode='[BCDEGRST]'
  ;;
osf*)
  symcode='[BCDEGQRST]'
  ;;
solaris*)
  symcode='[BDRT]'
  ;;
sco3.2v5*)
  symcode='[DT]'
  ;;
sysv4.2uw2*)
  symcode='[DT]'
  ;;
sysv5* | sco5v6* | unixware* | OpenUNIX*)
  symcode='[ABDT]'
  ;;
sysv4)
  symcode='[DFNSTU]'
  ;;
esac

6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114
# If we're using GNU nm, then use its standard symbol codes.
case `$NM -V 2>&1` in
*GNU* | *'with BFD'*)
  symcode='[ABCDGIRSTW]' ;;
esac

# Transform an extracted symbol line into a proper C declaration.
# Some systems (esp. on ia64) link data and code symbols differently,
# so use this general approach.
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"

# Transform an extracted symbol line into symbol name and symbol address
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
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'"

6115 6116 6117 6118
# Handle CRLF in mingw tool chain
opt_cr=
case $build_os in
mingw*)
6119
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6120 6121 6122
  ;;
esac

6123
# Try without a prefix underscore, then with it.
6124 6125 6126 6127 6128 6129
for ac_symprfx in "" "_"; do

  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  symxfrm="\\1 $ac_symprfx\\2 \\2"

  # Write the raw and C identifiers.
6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
    # Fake it for dumpbin and say T for any non-static function
    # and D for any global variable.
    # Also find C++ and __fastcall symbols from MSVC++,
    # which start with @ or ?.
    lt_cv_sys_global_symbol_pipe="$AWK '"\
"     {last_section=section; section=\$ 3};"\
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
"     \$ 0!~/External *\|/{next};"\
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
"     {if(hide[section]) next};"\
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
"     ' prfx=^$ac_symprfx"
  else
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  fi
6149 6150 6151 6152 6153

  # Check to see that the pipe works correctly.
  pipe_works=no

  rm -f conftest*
6154
  cat > conftest.$ac_ext <<_LT_EOF
6155 6156 6157 6158
#ifdef __cplusplus
extern "C" {
#endif
char nm_test_var;
6159 6160
void nm_test_func(void);
void nm_test_func(void){}
6161 6162 6163 6164
#ifdef __cplusplus
}
#endif
int main(){nm_test_var='a';nm_test_func();return(0);}
6165
_LT_EOF
6166

6167
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6168 6169
  (eval $ac_compile) 2>&5
  ac_status=$?
6170 6171
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
6172 6173
    # Now try to grab the symbols.
    nlist=conftest.nm
6174
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6175
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6176
  ac_status=$?
6177 6178
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s "$nlist"; then
6179 6180 6181 6182 6183 6184
      # Try sorting and uniquifying the output.
      if sort "$nlist" | uniq > "$nlist"T; then
	mv -f "$nlist"T "$nlist"
      else
	rm -f "$nlist"T
      fi
6185

6186
      # Make sure that we snagged all the symbols we need.
6187 6188 6189
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
	  cat <<_LT_EOF > conftest.$ac_ext
6190 6191 6192
#ifdef __cplusplus
extern "C" {
#endif
6193

6194
_LT_EOF
6195
	  # Now generate the symbol file.
6196
	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6197

6198
	  cat <<_LT_EOF >> conftest.$ac_ext
6199

6200
/* The mapping between symbol names and symbols.  */
6201 6202
const struct {
  const char *name;
6203
  void       *address;
6204
}
6205
lt__PROGRAM__LTX_preloaded_symbols[] =
6206
{
6207 6208 6209 6210 6211
  { "@PROGRAM@", (void *) 0 },
_LT_EOF
	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
	  cat <<\_LT_EOF >> conftest.$ac_ext
  {0, (void *) 0}
6212
};
6213

6214 6215 6216 6217 6218 6219 6220
/* This works around a problem in FreeBSD linker */
#ifdef FREEBSD_WORKAROUND
static const void *lt_preloaded_setup() {
  return lt__PROGRAM__LTX_preloaded_symbols;
}
#endif

6221
#ifdef __cplusplus
6222
}
6223
#endif
6224
_LT_EOF
6225 6226 6227 6228 6229 6230
	  # Now try linking the two files.
	  mv conftest.$ac_objext conftstm.$ac_objext
	  lt_save_LIBS="$LIBS"
	  lt_save_CFLAGS="$CFLAGS"
	  LIBS="conftstm.$ac_objext"
	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6231
	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6232
  (eval $ac_link) 2>&5
6233
  ac_status=$?
6234 6235
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252
	    pipe_works=yes
	  fi
	  LIBS="$lt_save_LIBS"
	  CFLAGS="$lt_save_CFLAGS"
	else
	  echo "cannot find nm_test_func in $nlist" >&5
	fi
      else
	echo "cannot find nm_test_var in $nlist" >&5
      fi
    else
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
    fi
  else
    echo "$progname: failed program was:" >&5
    cat conftest.$ac_ext >&5
  fi
6253
  rm -rf conftest* conftst*
6254 6255 6256 6257 6258 6259 6260 6261

  # Do not use the global_symbol_pipe unless it works.
  if test "$pipe_works" = yes; then
    break
  else
    lt_cv_sys_global_symbol_pipe=
  fi
done
6262 6263 6264

fi

6265 6266 6267 6268
if test -z "$lt_cv_sys_global_symbol_pipe"; then
  lt_cv_sys_global_symbol_to_cdecl=
fi
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6269
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6270
$as_echo "failed" >&6; }
6271
else
6272
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6273
$as_echo "ok" >&6; }
6274
fi
6275 6276 6277 6278 6279





6280 6281 6282



6283 6284 6285 6286 6287





6288 6289


6290

6291 6292 6293 6294 6295 6296






6297

6298
# Check whether --enable-libtool-lock was given.
6299
if test "${enable_libtool_lock+set}" = set; then :
6300
  enableval=$enable_libtool_lock;
6301
fi
6302

6303
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6304

6305 6306 6307 6308 6309 6310
# Some flags need to be propagated to the compiler or linker for good
# libtool support.
case $host in
ia64-*-hpux*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
6311
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6312 6313
  (eval $ac_compile) 2>&5
  ac_status=$?
6314 6315
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328
    case `/usr/bin/file conftest.$ac_objext` in
      *ELF-32*)
	HPUX_IA64_MODE="32"
	;;
      *ELF-64*)
	HPUX_IA64_MODE="64"
	;;
    esac
  fi
  rm -rf conftest*
  ;;
*-*-irix6*)
  # Find out which ABI we are using.
6329 6330
  echo '#line 6329 "configure"' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6331 6332
  (eval $ac_compile) 2>&5
  ac_status=$?
6333 6334
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367
    if test "$lt_cv_prog_gnu_ld" = yes; then
      case `/usr/bin/file conftest.$ac_objext` in
	*32-bit*)
	  LD="${LD-ld} -melf32bsmip"
	  ;;
	*N32*)
	  LD="${LD-ld} -melf32bmipn32"
	  ;;
	*64-bit*)
	  LD="${LD-ld} -melf64bmip"
	;;
      esac
    else
      case `/usr/bin/file conftest.$ac_objext` in
	*32-bit*)
	  LD="${LD-ld} -32"
	  ;;
	*N32*)
	  LD="${LD-ld} -n32"
	  ;;
	*64-bit*)
	  LD="${LD-ld} -64"
	  ;;
      esac
    fi
  fi
  rm -rf conftest*
  ;;

x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
6368
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6369 6370
  (eval $ac_compile) 2>&5
  ac_status=$?
6371 6372
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420
    case `/usr/bin/file conftest.o` in
      *32-bit*)
	case $host in
	  x86_64-*kfreebsd*-gnu)
	    LD="${LD-ld} -m elf_i386_fbsd"
	    ;;
	  x86_64-*linux*)
	    LD="${LD-ld} -m elf_i386"
	    ;;
	  ppc64-*linux*|powerpc64-*linux*)
	    LD="${LD-ld} -m elf32ppclinux"
	    ;;
	  s390x-*linux*)
	    LD="${LD-ld} -m elf_s390"
	    ;;
	  sparc64-*linux*)
	    LD="${LD-ld} -m elf32_sparc"
	    ;;
	esac
	;;
      *64-bit*)
	case $host in
	  x86_64-*kfreebsd*-gnu)
	    LD="${LD-ld} -m elf_x86_64_fbsd"
	    ;;
	  x86_64-*linux*)
	    LD="${LD-ld} -m elf_x86_64"
	    ;;
	  ppc*-*linux*|powerpc*-*linux*)
	    LD="${LD-ld} -m elf64ppc"
	    ;;
	  s390*-*linux*|s390*-*tpf*)
	    LD="${LD-ld} -m elf64_s390"
	    ;;
	  sparc*-*linux*)
	    LD="${LD-ld} -m elf64_sparc"
	    ;;
	esac
	;;
    esac
  fi
  rm -rf conftest*
  ;;

*-*-sco3.2v5*)
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  SAVE_CFLAGS="$CFLAGS"
  CFLAGS="$CFLAGS -belf"
6421
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6422
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6423
if test "${lt_cv_cc_needs_belf+set}" = set; then :
6424
  $as_echo_n "(cached) " >&6
6425
else
6426 6427 6428 6429 6430 6431
  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

6432
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6433 6434 6435 6436 6437 6438 6439 6440 6441 6442
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
6443
if ac_fn_c_try_link "$LINENO"; then :
6444 6445
  lt_cv_cc_needs_belf=yes
else
6446
  lt_cv_cc_needs_belf=no
6447
fi
6448 6449
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
6450 6451 6452 6453 6454 6455 6456
     ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
6457
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6458 6459 6460 6461 6462 6463 6464 6465 6466
$as_echo "$lt_cv_cc_needs_belf" >&6; }
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
    CFLAGS="$SAVE_CFLAGS"
  fi
  ;;
sparc*-*solaris*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
6467
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6468 6469
  (eval $ac_compile) 2>&5
  ac_status=$?
6470 6471
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496
    case `/usr/bin/file conftest.o` in
    *64-bit*)
      case $lt_cv_prog_gnu_ld in
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
      *)
	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
	  LD="${LD-ld} -64"
	fi
	;;
      esac
      ;;
    esac
  fi
  rm -rf conftest*
  ;;
esac

need_locks="$enable_libtool_lock"


  case $host_os in
    rhapsody* | darwin*)
    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6497
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6498
$as_echo_n "checking for $ac_word... " >&6; }
6499
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6500 6501 6502 6503
  $as_echo_n "(cached) " >&6
else
  if test -n "$DSYMUTIL"; then
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6504
else
6505 6506 6507 6508 6509
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
6510
    for ac_exec_ext in '' $ac_executable_extensions; do
6511
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6512
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6513
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6514 6515 6516
    break 2
  fi
done
6517
  done
6518
IFS=$as_save_IFS
6519

6520 6521
fi
fi
6522 6523
DSYMUTIL=$ac_cv_prog_DSYMUTIL
if test -n "$DSYMUTIL"; then
6524
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6525
$as_echo "$DSYMUTIL" >&6; }
6526
else
6527
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6528
$as_echo "no" >&6; }
6529
fi
6530 6531


6532
fi
6533 6534 6535 6536
if test -z "$ac_cv_prog_DSYMUTIL"; then
  ac_ct_DSYMUTIL=$DSYMUTIL
  # Extract the first word of "dsymutil", so it can be a program name with args.
set dummy dsymutil; ac_word=$2
6537
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6538
$as_echo_n "checking for $ac_word... " >&6; }
6539
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6540
  $as_echo_n "(cached) " >&6
6541
else
6542 6543
  if test -n "$ac_ct_DSYMUTIL"; then
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6544
else
6545 6546 6547 6548 6549
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
6550
    for ac_exec_ext in '' $ac_executable_extensions; do
6551
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6552
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6553
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6554 6555 6556
    break 2
  fi
done
6557
  done
6558
IFS=$as_save_IFS
6559

6560
fi
6561
fi
6562 6563
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
if test -n "$ac_ct_DSYMUTIL"; then
6564
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6565
$as_echo "$ac_ct_DSYMUTIL" >&6; }
6566
else
6567
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6568
$as_echo "no" >&6; }
6569
fi
6570

6571 6572
  if test "x$ac_ct_DSYMUTIL" = x; then
    DSYMUTIL=":"
6573 6574 6575
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
6576
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6577
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6578 6579
ac_tool_warned=yes ;;
esac
6580
    DSYMUTIL=$ac_ct_DSYMUTIL
6581 6582
  fi
else
6583
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6584
fi
6585

6586 6587 6588
    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6589
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6590
$as_echo_n "checking for $ac_word... " >&6; }
6591
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6592 6593 6594 6595 6596 6597 6598 6599 6600 6601
  $as_echo_n "(cached) " >&6
else
  if test -n "$NMEDIT"; then
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
6602
    for ac_exec_ext in '' $ac_executable_extensions; do
6603 6604
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6605
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6606 6607 6608
    break 2
  fi
done
6609
  done
6610
IFS=$as_save_IFS
6611

6612 6613 6614 6615
fi
fi
NMEDIT=$ac_cv_prog_NMEDIT
if test -n "$NMEDIT"; then
6616
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6617 6618
$as_echo "$NMEDIT" >&6; }
else
6619
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6620 6621
$as_echo "no" >&6; }
fi
6622

6623

6624
fi
6625 6626 6627 6628
if test -z "$ac_cv_prog_NMEDIT"; then
  ac_ct_NMEDIT=$NMEDIT
  # Extract the first word of "nmedit", so it can be a program name with args.
set dummy nmedit; ac_word=$2
6629
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6630
$as_echo_n "checking for $ac_word... " >&6; }
6631
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6632 6633 6634 6635 6636 6637 6638 6639 6640 6641
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_NMEDIT"; then
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
6642
    for ac_exec_ext in '' $ac_executable_extensions; do
6643 6644
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6645
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6646 6647 6648
    break 2
  fi
done
6649
  done
6650
IFS=$as_save_IFS
6651

6652 6653 6654 6655
fi
fi
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
if test -n "$ac_ct_NMEDIT"; then
6656
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6657 6658
$as_echo "$ac_ct_NMEDIT" >&6; }
else
6659
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6660 6661
$as_echo "no" >&6; }
fi
6662

6663 6664 6665 6666 6667
  if test "x$ac_ct_NMEDIT" = x; then
    NMEDIT=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
6668
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6669
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6670
ac_tool_warned=yes ;;
6671
esac
6672 6673 6674 6675
    NMEDIT=$ac_ct_NMEDIT
  fi
else
  NMEDIT="$ac_cv_prog_NMEDIT"
6676
fi
6677

6678 6679 6680
    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6681
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6682
$as_echo_n "checking for $ac_word... " >&6; }
6683
if test "${ac_cv_prog_LIPO+set}" = set; then :
6684
  $as_echo_n "(cached) " >&6
6685
else
6686 6687 6688 6689 6690 6691 6692 6693
  if test -n "$LIPO"; then
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
6694
    for ac_exec_ext in '' $ac_executable_extensions; do
6695 6696
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6697
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6698 6699 6700
    break 2
  fi
done
6701
  done
6702
IFS=$as_save_IFS
6703

6704 6705 6706 6707
fi
fi
LIPO=$ac_cv_prog_LIPO
if test -n "$LIPO"; then
6708
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6709
$as_echo "$LIPO" >&6; }
6710
else
6711
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6712 6713
$as_echo "no" >&6; }
fi
6714

6715

6716
fi
6717 6718 6719 6720
if test -z "$ac_cv_prog_LIPO"; then
  ac_ct_LIPO=$LIPO
  # Extract the first word of "lipo", so it can be a program name with args.
set dummy lipo; ac_word=$2
6721
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6722
$as_echo_n "checking for $ac_word... " >&6; }
6723
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6724 6725 6726 6727 6728 6729 6730 6731 6732 6733
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_LIPO"; then
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
6734
    for ac_exec_ext in '' $ac_executable_extensions; do
6735 6736
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_LIPO="lipo"
6737
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6738 6739 6740
    break 2
  fi
done
6741
  done
6742
IFS=$as_save_IFS
6743

6744 6745 6746 6747
fi
fi
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
if test -n "$ac_ct_LIPO"; then
6748
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6749
$as_echo "$ac_ct_LIPO" >&6; }
6750
else
6751
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6752
$as_echo "no" >&6; }
6753
fi
6754

6755 6756
  if test "x$ac_ct_LIPO" = x; then
    LIPO=":"
6757
  else
6758 6759
    case $cross_compiling:$ac_tool_warned in
yes:)
6760
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6761
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6762 6763 6764
ac_tool_warned=yes ;;
esac
    LIPO=$ac_ct_LIPO
6765
  fi
6766 6767
else
  LIPO="$ac_cv_prog_LIPO"
6768
fi
6769

6770 6771 6772
    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
set dummy ${ac_tool_prefix}otool; ac_word=$2
6773
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6774
$as_echo_n "checking for $ac_word... " >&6; }
6775
if test "${ac_cv_prog_OTOOL+set}" = set; then :
6776 6777 6778 6779 6780 6781 6782 6783 6784 6785
  $as_echo_n "(cached) " >&6
else
  if test -n "$OTOOL"; then
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
6786
    for ac_exec_ext in '' $ac_executable_extensions; do
6787 6788
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6789
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6790 6791 6792
    break 2
  fi
done
6793
  done
6794 6795 6796 6797 6798 6799
IFS=$as_save_IFS

fi
fi
OTOOL=$ac_cv_prog_OTOOL
if test -n "$OTOOL"; then
6800
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6801 6802
$as_echo "$OTOOL" >&6; }
else
6803
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6804 6805 6806 6807 6808 6809 6810 6811 6812
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_OTOOL"; then
  ac_ct_OTOOL=$OTOOL
  # Extract the first word of "otool", so it can be a program name with args.
set dummy otool; ac_word=$2
6813
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6814
$as_echo_n "checking for $ac_word... " >&6; }
6815
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6816 6817 6818 6819 6820 6821 6822 6823 6824 6825
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_OTOOL"; then
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
6826
    for ac_exec_ext in '' $ac_executable_extensions; do
6827 6828
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_OTOOL="otool"
6829
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6830 6831 6832
    break 2
  fi
done
6833
  done
6834 6835 6836 6837 6838 6839
IFS=$as_save_IFS

fi
fi
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
if test -n "$ac_ct_OTOOL"; then
6840
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6841 6842
$as_echo "$ac_ct_OTOOL" >&6; }
else
6843
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6844 6845 6846 6847 6848 6849 6850 6851
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_OTOOL" = x; then
    OTOOL=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
6852
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    OTOOL=$ac_ct_OTOOL
  fi
else
  OTOOL="$ac_cv_prog_OTOOL"
fi

    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6865
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6866
$as_echo_n "checking for $ac_word... " >&6; }
6867
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6868 6869 6870 6871 6872 6873 6874 6875 6876 6877
  $as_echo_n "(cached) " >&6
else
  if test -n "$OTOOL64"; then
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
6878
    for ac_exec_ext in '' $ac_executable_extensions; do
6879 6880
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6881
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6882 6883 6884
    break 2
  fi
done
6885
  done
6886 6887 6888 6889 6890 6891
IFS=$as_save_IFS

fi
fi
OTOOL64=$ac_cv_prog_OTOOL64
if test -n "$OTOOL64"; then
6892
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6893 6894
$as_echo "$OTOOL64" >&6; }
else
6895
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6896 6897 6898 6899 6900 6901 6902 6903 6904
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_OTOOL64"; then
  ac_ct_OTOOL64=$OTOOL64
  # Extract the first word of "otool64", so it can be a program name with args.
set dummy otool64; ac_word=$2
6905
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6906
$as_echo_n "checking for $ac_word... " >&6; }
6907
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6908 6909 6910 6911 6912 6913 6914 6915 6916 6917
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_OTOOL64"; then
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
6918
    for ac_exec_ext in '' $ac_executable_extensions; do
6919 6920
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_OTOOL64="otool64"
6921
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6922 6923 6924
    break 2
  fi
done
6925
  done
6926 6927 6928 6929 6930 6931
IFS=$as_save_IFS

fi
fi
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
if test -n "$ac_ct_OTOOL64"; then
6932
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6933 6934
$as_echo "$ac_ct_OTOOL64" >&6; }
else
6935
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6936 6937 6938 6939 6940 6941 6942 6943
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_OTOOL64" = x; then
    OTOOL64=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
6944
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    OTOOL64=$ac_ct_OTOOL64
  fi
else
  OTOOL64="$ac_cv_prog_OTOOL64"
fi











6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974











6975

6976 6977 6978 6979




6980
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6981
$as_echo_n "checking for -single_module linker flag... " >&6; }
6982
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006
  $as_echo_n "(cached) " >&6
else
  lt_cv_apple_cc_single_mod=no
      if test -z "${LT_MULTI_MODULE}"; then
	# By default we will add the -single_module flag. You can override
	# by either setting the environment variable LT_MULTI_MODULE
	# non-empty at configure time, or by adding -multi_module to the
	# link flags.
	rm -rf libconftest.dylib*
	echo "int foo(void){return 1;}" > conftest.c
	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
-dynamiclib -Wl,-single_module conftest.c" >&5
	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
        _lt_result=$?
	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
	  lt_cv_apple_cc_single_mod=yes
	else
	  cat conftest.err >&5
	fi
	rm -rf libconftest.dylib*
	rm -f conftest.*
      fi
fi
7007
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7008
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7009
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7010
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7011
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7012 7013 7014 7015 7016 7017
  $as_echo_n "(cached) " >&6
else
  lt_cv_ld_exported_symbols_list=no
      save_LDFLAGS=$LDFLAGS
      echo "_main" > conftest.sym
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7018
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7019
/* end confdefs.h.  */
7020

7021 7022 7023
int
main ()
{
7024

7025 7026 7027 7028
  ;
  return 0;
}
_ACEOF
7029
if ac_fn_c_try_link "$LINENO"; then :
7030 7031
  lt_cv_ld_exported_symbols_list=yes
else
7032
  lt_cv_ld_exported_symbols_list=no
7033
fi
7034 7035
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
7036
	LDFLAGS="$save_LDFLAGS"
7037

7038
fi
7039
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
    case $host_os in
    rhapsody* | darwin1.[012])
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
    darwin1.*)
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
    darwin*) # darwin 5.x on
      # if running on 10.5 or later, the deployment target defaults
      # to the OS version, if on x86, and 10.4, the deployment
      # target defaults to 10.4. Don't you love it?
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
	10.[012]*)
	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
	10.*)
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
      esac
    ;;
  esac
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
      _lt_dar_single_mod='$single_module'
    fi
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
    else
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
    fi
    if test "$DSYMUTIL" != ":"; then
      _lt_dsymutil='~$DSYMUTIL $lib || :'
    else
      _lt_dsymutil=
    fi
    ;;
  esac
7075 7076


7077
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7078
$as_echo_n "checking for ANSI C header files... " >&6; }
7079
if test "${ac_cv_header_stdc+set}" = set; then :
7080
  $as_echo_n "(cached) " >&6
7081
else
7082
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096
/* end confdefs.h.  */
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

int
main ()
{

  ;
  return 0;
}
_ACEOF
7097
if ac_fn_c_try_compile "$LINENO"; then :
7098 7099
  ac_cv_header_stdc=yes
else
7100
  ac_cv_header_stdc=no
7101
fi
7102 7103 7104 7105
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7106
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7107 7108 7109 7110 7111
/* end confdefs.h.  */
#include <string.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7112 7113
  $EGREP "memchr" >/dev/null 2>&1; then :

7114
else
7115
  ac_cv_header_stdc=no
7116
fi
7117
rm -f conftest*
7118

7119
fi
7120

7121 7122
if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7123
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7124 7125
/* end confdefs.h.  */
#include <stdlib.h>
7126

7127 7128
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7129 7130
  $EGREP "free" >/dev/null 2>&1; then :

7131 7132 7133 7134
else
  ac_cv_header_stdc=no
fi
rm -f conftest*
7135

7136
fi
7137

7138 7139
if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7140
  if test "$cross_compiling" = yes; then :
7141 7142
  :
else
7143
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156
/* end confdefs.h.  */
#include <ctype.h>
#include <stdlib.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) \
		   (('a' <= (c) && (c) <= 'i') \
		     || ('j' <= (c) && (c) <= 'r') \
		     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif
7157

7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
	|| toupper (i) != TOUPPER (i))
      return 2;
  return 0;
}
7169 7170 7171
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :

7172
else
7173 7174 7175 7176 7177
  ac_cv_header_stdc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
7178

7179
fi
7180 7181 7182 7183 7184 7185
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
$as_echo "$ac_cv_header_stdc" >&6; }
if test $ac_cv_header_stdc = yes; then

$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7186

7187
fi
7188 7189 7190 7191 7192 7193 7194 7195 7196 7197

# On IRIX 5.3, sys/types and inttypes.h are conflicting.
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
		  inttypes.h stdint.h unistd.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
7198 7199 7200
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
7201

7202
fi
7203

7204
done
7205 7206


7207
for ac_header in dlfcn.h
7208 7209 7210 7211
do :
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
"
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7212
  cat >>confdefs.h <<_ACEOF
7213
#define HAVE_DLFCN_H 1
7214
_ACEOF
7215

7216
fi
7217

7218
done
7219 7220 7221



7222
# Set options
7223 7224 7225



7226
        enable_dlopen=no
7227 7228


7229 7230

            # Check whether --enable-shared was given.
7231
if test "${enable_shared+set}" = set; then :
7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248
  enableval=$enable_shared; p=${PACKAGE-default}
    case $enableval in
    yes) enable_shared=yes ;;
    no) enable_shared=no ;;
    *)
      enable_shared=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_shared=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
7249
else
7250
  enable_shared=yes
7251
fi
7252 7253 7254 7255 7256





7257 7258


7259

7260 7261

  # Check whether --enable-static was given.
7262
if test "${enable_static+set}" = set; then :
7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277
  enableval=$enable_static; p=${PACKAGE-default}
    case $enableval in
    yes) enable_static=yes ;;
    no) enable_static=no ;;
    *)
     enable_static=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_static=yes
	fi
      done
      IFS="$lt_save_ifs"
7278
      ;;
7279 7280 7281 7282
    esac
else
  enable_static=yes
fi
7283 7284 7285 7286 7287 7288 7289 7290 7291 7292










7293
# Check whether --with-pic was given.
7294
if test "${with_pic+set}" = set; then :
7295 7296 7297 7298
  withval=$with_pic; pic_mode="$withval"
else
  pic_mode=default
fi
7299 7300


7301 7302
test -z "$pic_mode" && pic_mode=default

7303 7304 7305 7306 7307





7308 7309

  # Check whether --enable-fast-install was given.
7310
if test "${enable_fast_install+set}" = set; then :
7311 7312 7313 7314
  enableval=$enable_fast_install; p=${PACKAGE-default}
    case $enableval in
    yes) enable_fast_install=yes ;;
    no) enable_fast_install=no ;;
7315
    *)
7316 7317 7318 7319 7320 7321 7322 7323 7324 7325
      enable_fast_install=no
      # Look at the argument we got.  We use all the common list separators.
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
      for pkg in $enableval; do
	IFS="$lt_save_ifs"
	if test "X$pkg" = "X$p"; then
	  enable_fast_install=yes
	fi
      done
      IFS="$lt_save_ifs"
7326 7327
      ;;
    esac
7328 7329 7330
else
  enable_fast_install=yes
fi
7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341











7342 7343
# This can be used to rebuild libtool when needed
LIBTOOL_DEPS="$ltmain"
7344

7345 7346
# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7347 7348 7349 7350 7351 7352






7353

7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365












7366

7367 7368


7369

7370 7371


7372
test -z "$LN_S" && LN_S="ln -s"
7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386














7387 7388 7389
if test -n "${ZSH_VERSION+set}" ; then
   setopt NO_GLOB_SUBST
fi
7390

7391
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7392
$as_echo_n "checking for objdir... " >&6; }
7393
if test "${lt_cv_objdir+set}" = set; then :
7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405
  $as_echo_n "(cached) " >&6
else
  rm -f .libs 2>/dev/null
mkdir .libs 2>/dev/null
if test -d .libs; then
  lt_cv_objdir=.libs
else
  # MS-DOS does not allow filenames that begin with a dot.
  lt_cv_objdir=_libs
fi
rmdir .libs 2>/dev/null
fi
7406
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7407 7408
$as_echo "$lt_cv_objdir" >&6; }
objdir=$lt_cv_objdir
7409

7410 7411 7412 7413




7414 7415 7416
cat >>confdefs.h <<_ACEOF
#define LT_OBJDIR "$lt_cv_objdir/"
_ACEOF
7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430














7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442



case $host_os in
aix3*)
  # AIX sometimes has problems with the GCC collect2 program.  For some
  # reason, if we set the COLLECT_NAMES environment variable, the problems
  # vanish in a puff of smoke.
  if test "X${COLLECT_NAMES+set}" != Xset; then
    COLLECT_NAMES=
    export COLLECT_NAMES
  fi
7443
  ;;
7444
esac
7445

7446 7447 7448
# Sed substitution that helps us do robust quoting.  It backslashifies
# metacharacters that are still active within double-quoted strings.
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7449

7450 7451
# Same as above, but do not quote variable references.
double_quote_subst='s/\(["`\\]\)/\\\1/g'
7452

7453 7454 7455
# Sed substitution to delay expansion of an escaped shell variable in a
# double_quote_subst'ed string.
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7456

7457 7458
# Sed substitution to delay expansion of an escaped single quote.
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7459

7460 7461
# Sed substitution to avoid accidental globbing in evaled expressions
no_glob_subst='s/\*/\\\*/g'
7462

7463 7464 7465
# Global variables:
ofile=libtool
can_build_shared=yes
7466

7467 7468 7469
# All known linkers require a `.a' archive for static linking (except MSVC,
# which needs '.lib').
libext=a
7470

7471
with_gnu_ld="$lt_cv_prog_gnu_ld"
7472

7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488
old_CC="$CC"
old_CFLAGS="$CFLAGS"

# Set sane defaults for various variables
test -z "$CC" && CC=cc
test -z "$LTCC" && LTCC=$CC
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
test -z "$LD" && LD=ld
test -z "$ac_objext" && ac_objext=o

for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
7489
  esac
7490 7491
done
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7492

7493 7494 7495 7496 7497 7498

# Only perform the check for file, if the check method requires it
test -z "$MAGIC_CMD" && MAGIC_CMD=file
case $deplibs_check_method in
file_magic*)
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7499
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7500
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7501
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7502 7503 7504 7505 7506
  $as_echo_n "(cached) " >&6
else
  case $MAGIC_CMD in
[\\/*] |  ?:[\\/]*)
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7507
  ;;
7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526
*)
  lt_save_MAGIC_CMD="$MAGIC_CMD"
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  for ac_dir in $ac_dummy; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/${ac_tool_prefix}file; then
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
      if test -n "$file_magic_test_file"; then
	case $deplibs_check_method in
	"file_magic "*)
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
	    $EGREP "$file_magic_regex" > /dev/null; then
	    :
	  else
	    cat <<_LT_EOF 1>&2
7527

7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541
*** Warning: the command libtool uses to detect shared libraries,
*** $file_magic_cmd, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such.  This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem.  Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** bug-libtool@gnu.org

_LT_EOF
	  fi ;;
	esac
      fi
      break
7542
    fi
7543 7544 7545
  done
  IFS="$lt_save_ifs"
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7546
  ;;
7547 7548
esac
fi
7549

7550 7551
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
if test -n "$MAGIC_CMD"; then
7552
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7553 7554
$as_echo "$MAGIC_CMD" >&6; }
else
7555
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7556 7557
$as_echo "no" >&6; }
fi
7558 7559 7560



7561 7562


7563 7564
if test -z "$lt_cv_path_MAGIC_CMD"; then
  if test -n "$ac_tool_prefix"; then
7565
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7566
$as_echo_n "checking for file... " >&6; }
7567
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7568 7569 7570 7571 7572
  $as_echo_n "(cached) " >&6
else
  case $MAGIC_CMD in
[\\/*] |  ?:[\\/]*)
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7573
  ;;
7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592
*)
  lt_save_MAGIC_CMD="$MAGIC_CMD"
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  for ac_dir in $ac_dummy; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/file; then
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
      if test -n "$file_magic_test_file"; then
	case $deplibs_check_method in
	"file_magic "*)
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
	    $EGREP "$file_magic_regex" > /dev/null; then
	    :
	  else
	    cat <<_LT_EOF 1>&2
7593

7594 7595 7596 7597 7598 7599 7600 7601
*** Warning: the command libtool uses to detect shared libraries,
*** $file_magic_cmd, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such.  This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem.  Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** bug-libtool@gnu.org
7602

7603 7604 7605 7606 7607 7608 7609 7610 7611
_LT_EOF
	  fi ;;
	esac
      fi
      break
    fi
  done
  IFS="$lt_save_ifs"
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7612
  ;;
7613 7614 7615 7616 7617
esac
fi

MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
if test -n "$MAGIC_CMD"; then
7618
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7619 7620
$as_echo "$MAGIC_CMD" >&6; }
else
7621
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7622 7623
$as_echo "no" >&6; }
fi
7624 7625


7626
  else
7627
    MAGIC_CMD=:
7628
  fi
7629
fi
7630

7631
  fi
7632
  ;;
7633
esac
7634

7635
# Use C for the default configuration in the libtool script
7636

7637 7638 7639 7640 7641 7642
lt_save_CC="$CC"
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7643 7644


7645 7646
# Source file extension for C test sources.
ac_ext=c
7647

7648 7649 7650
# Object file extension for compiled C test sources.
objext=o
objext=$objext
7651

7652 7653
# Code to be used in simple compile tests
lt_simple_compile_test_code="int some_variable = 0;"
7654

7655 7656
# Code to be used in simple link tests
lt_simple_link_test_code='int main(){return(0);}'
7657 7658 7659 7660 7661 7662 7663







7664 7665
# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}
7666

7667 7668
# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7669

7670 7671
# Allow CC to be a program name with arguments.
compiler=$CC
7672

7673 7674 7675
# Save the default compiler, since it gets overwritten when the other
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
compiler_DEFAULT=$CC
7676

7677 7678 7679 7680 7681 7682
# save warnings/boilerplate of simple test code
ac_outfile=conftest.$ac_objext
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$RM conftest*
7683

7684 7685 7686 7687 7688
ac_outfile=conftest.$ac_objext
echo "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$RM -r conftest*
7689

7690 7691 7692 7693 7694 7695 7696 7697

if test -n "$compiler"; then

lt_prog_compiler_no_builtin_flag=

if test "$GCC" = yes; then
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'

7698
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7699
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7700
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7701
  $as_echo_n "(cached) " >&6
7702
else
7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715
  lt_cv_prog_compiler_rtti_exceptions=no
   ac_outfile=conftest.$ac_objext
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="-fno-rtti -fno-exceptions"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
7716
   (eval echo "\"\$as_me:7716: $lt_compile\"" >&5)
7717 7718 7719
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
7720
   echo "$as_me:7720: \$? = $ac_status" >&5
7721 7722 7723 7724 7725 7726 7727 7728 7729 7730
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_rtti_exceptions=yes
     fi
   fi
   $RM conftest*
7731

7732
fi
7733
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7734
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7735

7736 7737
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7738
else
7739 7740
    :
fi
7741

7742
fi
7743 7744 7745 7746 7747 7748






7749 7750 7751
  lt_prog_compiler_wl=
lt_prog_compiler_pic=
lt_prog_compiler_static=
7752

7753
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7754
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7755 7756

  if test "$GCC" = yes; then
7757 7758
    lt_prog_compiler_wl='-Wl,'
    lt_prog_compiler_static='-static'
7759 7760 7761 7762 7763 7764

    case $host_os in
      aix*)
      # All AIX code is PIC.
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
7765
	lt_prog_compiler_static='-Bstatic'
7766 7767 7768 7769
      fi
      ;;

    amigaos*)
7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            lt_prog_compiler_pic='-fPIC'
        ;;
      m68k)
            # FIXME: we need at least 68020 code to build shared libraries, but
            # adding the `-m68020' flag to GCC prevents building anything better,
            # like `-m68040'.
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
        ;;
      esac
7782 7783 7784 7785 7786 7787
      ;;

    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;

7788
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7789 7790 7791 7792
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
      # (--disable-auto-import) libraries
7793
      lt_prog_compiler_pic='-DDLL_EXPORT'
7794 7795 7796 7797 7798
      ;;

    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
7799 7800 7801 7802
      lt_prog_compiler_pic='-fno-common'
      ;;

    hpux*)
7803 7804 7805
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
      # sets the default TLS model and affects inlining.
7806
      case $host_cpu in
7807
      hppa*64*)
7808 7809 7810 7811 7812 7813
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic='-fPIC'
	;;
      esac
7814 7815 7816 7817 7818 7819 7820 7821 7822 7823
      ;;

    interix[3-9]*)
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
      # Instead, we relocate shared libraries at runtime.
      ;;

    msdosdjgpp*)
      # Just because we use GCC doesn't mean we suddenly get shared libraries
      # on systems that don't support them.
7824
      lt_prog_compiler_can_build_shared=no
7825 7826 7827
      enable_shared=no
      ;;

7828 7829 7830 7831 7832 7833
    *nto* | *qnx*)
      # QNX uses GNU C++, but need to define -shared option too, otherwise
      # it will coredump.
      lt_prog_compiler_pic='-fPIC -shared'
      ;;

7834 7835
    sysv4*MP*)
      if test -d /usr/nec; then
7836
	lt_prog_compiler_pic=-Kconform_pic
7837 7838 7839 7840
      fi
      ;;

    *)
7841
      lt_prog_compiler_pic='-fPIC'
7842 7843 7844 7845 7846 7847
      ;;
    esac
  else
    # PORTME Check for flag to pass linker flags through the system compiler.
    case $host_os in
    aix*)
7848
      lt_prog_compiler_wl='-Wl,'
7849 7850
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
7851
	lt_prog_compiler_static='-Bstatic'
7852
      else
7853
	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7854 7855 7856
      fi
      ;;

7857
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7858 7859
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
7860
      lt_prog_compiler_pic='-DDLL_EXPORT'
7861 7862 7863
      ;;

    hpux9* | hpux10* | hpux11*)
7864
      lt_prog_compiler_wl='-Wl,'
7865 7866 7867 7868 7869 7870 7871
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case $host_cpu in
      hppa*64*|ia64*)
	# +Z the default
	;;
      *)
7872
	lt_prog_compiler_pic='+Z'
7873 7874 7875
	;;
      esac
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7876
      lt_prog_compiler_static='${wl}-a ${wl}archive'
7877 7878 7879
      ;;

    irix5* | irix6* | nonstopux*)
7880
      lt_prog_compiler_wl='-Wl,'
7881
      # PIC (with -KPIC) is the default.
7882
      lt_prog_compiler_static='-non_shared'
7883 7884 7885 7886
      ;;

    linux* | k*bsd*-gnu)
      case $cc_basename in
7887 7888
      # old Intel for x86_64 which still supported -KPIC.
      ecc*)
7889 7890 7891
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-KPIC'
	lt_prog_compiler_static='-static'
7892
        ;;
7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905
      # icc used to be incompatible with GCC.
      # ICC 10 doesn't accept -KPIC any more.
      icc* | ifort*)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-fPIC'
	lt_prog_compiler_static='-static'
        ;;
      # Lahey Fortran 8.1.
      lf95*)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='--shared'
	lt_prog_compiler_static='--static'
	;;
7906 7907 7908
      pgcc* | pgf77* | pgf90* | pgf95*)
        # Portland Group compilers (*not* the Pentium gcc compiler,
	# which looks to be a dead project)
7909 7910 7911
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-fpic'
	lt_prog_compiler_static='-Bstatic'
7912 7913
        ;;
      ccc*)
7914
        lt_prog_compiler_wl='-Wl,'
7915
        # All Alpha code is PIC.
7916
        lt_prog_compiler_static='-non_shared'
7917
        ;;
7918 7919 7920 7921 7922 7923
      xl*)
	# IBM XL C 8.0/Fortran 10.1 on PPC
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-qpic'
	lt_prog_compiler_static='-qstaticlink'
	;;
7924
      *)
7925
	case `$CC -V 2>&1 | sed 5q` in
7926 7927
	*Sun\ C*)
	  # Sun C 5.9
7928 7929 7930
	  lt_prog_compiler_pic='-KPIC'
	  lt_prog_compiler_static='-Bstatic'
	  lt_prog_compiler_wl='-Wl,'
7931 7932 7933
	  ;;
	*Sun\ F*)
	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7934 7935 7936
	  lt_prog_compiler_pic='-KPIC'
	  lt_prog_compiler_static='-Bstatic'
	  lt_prog_compiler_wl=''
7937 7938 7939 7940 7941 7942
	  ;;
	esac
	;;
      esac
      ;;

7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953
    newsos6)
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      ;;

    *nto* | *qnx*)
      # QNX uses GNU C++, but need to define -shared option too, otherwise
      # it will coredump.
      lt_prog_compiler_pic='-fPIC -shared'
      ;;

7954
    osf3* | osf4* | osf5*)
7955
      lt_prog_compiler_wl='-Wl,'
7956
      # All OSF/1 code is PIC.
7957
      lt_prog_compiler_static='-non_shared'
7958 7959 7960
      ;;

    rdos*)
7961
      lt_prog_compiler_static='-non_shared'
7962 7963 7964
      ;;

    solaris*)
7965 7966
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
7967 7968
      case $cc_basename in
      f77* | f90* | f95*)
7969
	lt_prog_compiler_wl='-Qoption ld ';;
7970
      *)
7971
	lt_prog_compiler_wl='-Wl,';;
7972 7973 7974 7975
      esac
      ;;

    sunos4*)
7976 7977 7978
      lt_prog_compiler_wl='-Qoption ld '
      lt_prog_compiler_pic='-PIC'
      lt_prog_compiler_static='-Bstatic'
7979 7980 7981
      ;;

    sysv4 | sysv4.2uw2* | sysv4.3*)
7982 7983 7984
      lt_prog_compiler_wl='-Wl,'
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
7985 7986 7987 7988
      ;;

    sysv4*MP*)
      if test -d /usr/nec ;then
7989 7990
	lt_prog_compiler_pic='-Kconform_pic'
	lt_prog_compiler_static='-Bstatic'
7991 7992 7993 7994
      fi
      ;;

    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7995 7996 7997
      lt_prog_compiler_wl='-Wl,'
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
7998 7999 8000
      ;;

    unicos*)
8001 8002
      lt_prog_compiler_wl='-Wl,'
      lt_prog_compiler_can_build_shared=no
8003 8004 8005
      ;;

    uts4*)
8006 8007
      lt_prog_compiler_pic='-pic'
      lt_prog_compiler_static='-Bstatic'
8008 8009 8010
      ;;

    *)
8011
      lt_prog_compiler_can_build_shared=no
8012 8013 8014 8015
      ;;
    esac
  fi

8016 8017 8018 8019 8020 8021 8022 8023 8024
case $host_os in
  # For platforms which do not support PIC, -DPIC is meaningless:
  *djgpp*)
    lt_prog_compiler_pic=
    ;;
  *)
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
    ;;
esac
8025
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8026 8027 8028 8029 8030 8031
$as_echo "$lt_prog_compiler_pic" >&6; }





8032 8033 8034 8035

#
# Check to make sure the PIC flag actually works.
#
8036
if test -n "$lt_prog_compiler_pic"; then
8037
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8038
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8039
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8040
  $as_echo_n "(cached) " >&6
8041
else
8042 8043
  lt_cv_prog_compiler_pic_works=no
   ac_outfile=conftest.$ac_objext
8044
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8045
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8046 8047 8048 8049 8050 8051 8052 8053 8054
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
8055
   (eval echo "\"\$as_me:8055: $lt_compile\"" >&5)
8056 8057 8058
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
8059
   echo "$as_me:8059: \$? = $ac_status" >&5
8060 8061 8062
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
8063
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8064 8065
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8066
       lt_cv_prog_compiler_pic_works=yes
8067 8068
     fi
   fi
8069
   $RM conftest*
8070 8071

fi
8072
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8073
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8074

8075 8076
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
    case $lt_prog_compiler_pic in
8077
     "" | " "*) ;;
8078
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8079 8080
     esac
else
8081 8082
    lt_prog_compiler_pic=
     lt_prog_compiler_can_build_shared=no
8083 8084 8085
fi

fi
8086 8087 8088 8089 8090





8091 8092 8093 8094

#
# Check to make sure the static flag actually works.
#
8095
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8096
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8097
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8098
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8099
  $as_echo_n "(cached) " >&6
8100
else
8101
  lt_cv_prog_compiler_static_works=no
8102 8103 8104 8105 8106 8107 8108 8109 8110
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
8111
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8112 8113
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
8114
         lt_cv_prog_compiler_static_works=yes
8115 8116
       fi
     else
8117
       lt_cv_prog_compiler_static_works=yes
8118 8119
     fi
   fi
8120
   $RM -r conftest*
8121 8122 8123
   LDFLAGS="$save_LDFLAGS"

fi
8124
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8125
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8126

8127
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8128 8129
    :
else
8130 8131 8132 8133 8134 8135 8136 8137 8138
    lt_prog_compiler_static=
fi







8139
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8140
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8141
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159
  $as_echo_n "(cached) " >&6
else
  lt_cv_prog_compiler_c_o=no
   $RM -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
8160
   (eval echo "\"\$as_me:8160: $lt_compile\"" >&5)
8161 8162 8163
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
8164
   echo "$as_me:8164: \$? = $ac_status" >&5
8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o=yes
     fi
   fi
   chmod u+w . 2>&5
   $RM conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   $RM out/* && rmdir out
   cd ..
   $RM -r conftest
   $RM conftest*

8185
fi
8186
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8187 8188 8189 8190 8191
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }




8192 8193


8194
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8195
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8196
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8197
  $as_echo_n "(cached) " >&6
8198
else
8199 8200
  lt_cv_prog_compiler_c_o=no
   $RM -r conftest 2>/dev/null
8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214
   mkdir conftest
   cd conftest
   mkdir out
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
8215
   (eval echo "\"\$as_me:8215: $lt_compile\"" >&5)
8216 8217 8218
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
8219
   echo "$as_me:8219: \$? = $ac_status" >&5
8220 8221 8222 8223
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
8224
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8225 8226
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8227
       lt_cv_prog_compiler_c_o=yes
8228 8229 8230
     fi
   fi
   chmod u+w . 2>&5
8231
   $RM conftest*
8232 8233
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
8234 8235
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   $RM out/* && rmdir out
8236
   cd ..
8237 8238
   $RM -r conftest
   $RM conftest*
8239 8240

fi
8241
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8242 8243 8244
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }


8245 8246 8247


hard_links="nottested"
8248
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8249
  # do not overwrite the value of need_locks provided by the user
8250
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8251
$as_echo_n "checking if we can lock with hard links... " >&6; }
8252
  hard_links=yes
8253
  $RM conftest*
8254 8255 8256 8257
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  touch conftest.a
  ln conftest.a conftest.b 2>&5 || hard_links=no
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8258
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8259
$as_echo "$hard_links" >&6; }
8260
  if test "$hard_links" = no; then
8261
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8262
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8263 8264 8265 8266 8267 8268
    need_locks=warn
  fi
else
  need_locks=no
fi

8269 8270 8271 8272 8273





8274
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8275
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8276 8277

  runpath_var=
8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301
  allow_undefined_flag=
  always_export_symbols=no
  archive_cmds=
  archive_expsym_cmds=
  compiler_needs_object=no
  enable_shared_with_static_runtimes=no
  export_dynamic_flag_spec=
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  hardcode_automatic=no
  hardcode_direct=no
  hardcode_direct_absolute=no
  hardcode_libdir_flag_spec=
  hardcode_libdir_flag_spec_ld=
  hardcode_libdir_separator=
  hardcode_minus_L=no
  hardcode_shlibpath_var=unsupported
  inherit_rpath=no
  link_all_deplibs=unknown
  module_cmds=
  module_expsym_cmds=
  old_archive_from_new_cmds=
  old_archive_from_expsyms_cmds=
  thread_safe_flag_spec=
  whole_archive_flag_spec=
8302 8303
  # include_expsyms should be a list of space-separated symbols to be *always*
  # included in the symbol list
8304
  include_expsyms=
8305 8306 8307 8308
  # exclude_expsyms can be an extended regexp of symbols to exclude
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  # as well as any symbol that contains `d'.
8309
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8310 8311 8312 8313 8314
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  # platforms (ab)use it in PIC code, but their linkers get confused if
  # the symbol is explicitly referenced.  Since portable code cannot
  # rely on this symbol name, it's probably fine to never include it in
  # preloaded symbol tables.
8315
  # Exclude shared library initialization/finalization symbols.
8316 8317 8318
  extract_expsyms_cmds=

  case $host_os in
8319
  cygwin* | mingw* | pw32* | cegcc*)
8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
    # When not using gcc, we currently assume that we are using
    # Microsoft Visual C++.
    if test "$GCC" != yes; then
      with_gnu_ld=no
    fi
    ;;
  interix*)
    # we just hope/assume this is gcc and not c89 (= MSVC++)
    with_gnu_ld=yes
    ;;
  openbsd*)
    with_gnu_ld=no
    ;;
  esac

8336
  ld_shlibs=yes
8337 8338 8339 8340 8341 8342 8343 8344
  if test "$with_gnu_ld" = yes; then
    # If archive_cmds runs LD, not CC, wlarc should be empty
    wlarc='${wl}'

    # Set some defaults for GNU ld with shared library support. These
    # are reset later if shared libraries are not supported. Putting them
    # here allows them to be overridden if necessary.
    runpath_var=LD_RUN_PATH
8345 8346
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
    export_dynamic_flag_spec='${wl}--export-dynamic'
8347
    # ancient GNU ld didn't support --whole-archive et. al.
8348 8349 8350 8351
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
    else
      whole_archive_flag_spec=
8352 8353
    fi
    supports_anon_versioning=no
8354
    case `$LD -v 2>&1` in
8355 8356 8357 8358 8359 8360 8361 8362 8363
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
      *\ 2.11.*) ;; # other 2.11 versions
      *) supports_anon_versioning=yes ;;
    esac

    # See if GNU ld supports shared libraries.
    case $host_os in
8364
    aix[3-9]*)
8365 8366
      # On AIX/PPC, the GNU linker is very broken
      if test "$host_cpu" != ia64; then
8367 8368
	ld_shlibs=no
	cat <<_LT_EOF 1>&2
8369 8370 8371 8372 8373 8374 8375

*** Warning: the GNU linker, at least up to release 2.9.1, is reported
*** to be unable to reliably create shared libraries on AIX.
*** Therefore, libtool is disabling shared libraries support.  If you
*** really care for shared libraries, you may want to modify your PATH
*** so that a non-GNU linker is found, and then restart.

8376
_LT_EOF
8377 8378 8379 8380
      fi
      ;;

    amigaos*)
8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
            archive_expsym_cmds=''
        ;;
      m68k)
            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)'
            hardcode_libdir_flag_spec='-L$libdir'
            hardcode_minus_L=yes
        ;;
      esac
8393 8394 8395
      ;;

    beos*)
8396 8397
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	allow_undefined_flag=unsupported
8398 8399
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
	# support --undefined.  This deserves some investigation.  FIXME
8400
	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8401
      else
8402
	ld_shlibs=no
8403 8404 8405
      fi
      ;;

8406
    cygwin* | mingw* | pw32* | cegcc*)
8407
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8408
      # as there is no search path for DLLs.
8409 8410 8411 8412 8413 8414 8415 8416
      hardcode_libdir_flag_spec='-L$libdir'
      allow_undefined_flag=unsupported
      always_export_symbols=no
      enable_shared_with_static_runtimes=yes
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'

      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8417 8418
	# If the export-symbols file already is a .def file (1st line
	# is EXPORTS), use it as is; otherwise, prepend...
8419
	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8420 8421 8422 8423 8424 8425 8426
	  cp $export_symbols $output_objdir/$soname.def;
	else
	  echo EXPORTS > $output_objdir/$soname.def;
	  cat $export_symbols >> $output_objdir/$soname.def;
	fi~
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
      else
8427
	ld_shlibs=no
8428 8429 8430 8431
      fi
      ;;

    interix[3-9]*)
8432 8433 8434 8435
      hardcode_direct=no
      hardcode_shlibpath_var=no
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
      export_dynamic_flag_spec='${wl}-E'
8436 8437 8438 8439 8440 8441
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
      # Instead, shared libraries are loaded at an image base (0x10000000 by
      # default) and relocated if they conflict, which is a slow very memory
      # consuming and fragmenting process.  To avoid this, we pick a random,
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8442 8443
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      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'
8444 8445
      ;;

8446 8447 8448 8449 8450 8451 8452 8453 8454 8455
    gnu* | linux* | tpf* | k*bsd*-gnu)
      tmp_diet=no
      if test "$host_os" = linux-dietlibc; then
	case $cc_basename in
	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
	esac
      fi
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
	 && test "$tmp_diet" = no
      then
8456
	tmp_addflag=
8457
	tmp_sharedflag='-shared'
8458
	case $cc_basename,$host_cpu in
8459 8460
        pgcc*)				# Portland Group C compiler
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8461 8462 8463
	  tmp_addflag=' $pic_flag'
	  ;;
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8464
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8465
	  tmp_addflag=' $pic_flag -Mnomain' ;;
8466
	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8467 8468 8469 8470 8471
	  tmp_addflag=' -i_dynamic' ;;
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
	ifc* | ifort*)			# Intel Fortran compiler
	  tmp_addflag=' -nofor_main' ;;
8472 8473 8474
	lf95*)				# Lahey Fortran 8.1
	  whole_archive_flag_spec=
	  tmp_sharedflag='--shared' ;;
8475 8476 8477
	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
	  tmp_sharedflag='-qmkshrobj'
	  tmp_addflag= ;;
8478 8479 8480
	esac
	case `$CC -V 2>&1 | sed 5q` in
	*Sun\ C*)			# Sun C 5.9
8481 8482
	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
	  compiler_needs_object=yes
8483 8484 8485 8486
	  tmp_sharedflag='-G' ;;
	*Sun\ F*)			# Sun Fortran 8.3
	  tmp_sharedflag='-G' ;;
	esac
8487
	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8488

8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510
        if test "x$supports_anon_versioning" = xyes; then
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
	    echo "local: *; };" >> $output_objdir/$libname.ver~
	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
        fi

	case $cc_basename in
	xlf*)
	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
	  hardcode_libdir_flag_spec=
	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
	  if test "x$supports_anon_versioning" = xyes; then
	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
	      echo "local: *; };" >> $output_objdir/$libname.ver~
	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
	  fi
	  ;;
	esac
8511
      else
8512
        ld_shlibs=no
8513 8514 8515 8516
      fi
      ;;

    netbsd*)
8517 8518
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8519 8520
	wlarc=
      else
8521 8522
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8523 8524 8525 8526
      fi
      ;;

    solaris*)
8527 8528 8529
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
	ld_shlibs=no
	cat <<_LT_EOF 1>&2
8530 8531 8532 8533 8534 8535 8536 8537

*** Warning: The releases 2.8.* of the GNU linker cannot reliably
*** create shared libraries on Solaris systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.9.1 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

8538 8539 8540 8541
_LT_EOF
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8542
      else
8543
	ld_shlibs=no
8544 8545 8546 8547 8548 8549
      fi
      ;;

    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
      case `$LD -v 2>&1` in
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8550
	ld_shlibs=no
8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562
	cat <<_LT_EOF 1>&2

*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
*** reliably create shared libraries on SCO systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

_LT_EOF
	;;
	*)
8563 8564 8565 8566 8567 8568 8569 8570
	  # For security reasons, it is highly recommended that you always
	  # use absolute paths for naming shared libraries, and exclude the
	  # DT_RUNPATH tag from executables and libraries.  But doing so
	  # requires that you compile everything twice, which is a pain.
	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8571
	  else
8572
	    ld_shlibs=no
8573 8574 8575 8576 8577 8578
	  fi
	;;
      esac
      ;;

    sunos4*)
8579
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8580
      wlarc=
8581 8582
      hardcode_direct=yes
      hardcode_shlibpath_var=no
8583 8584 8585
      ;;

    *)
8586 8587 8588
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8589
      else
8590
	ld_shlibs=no
8591 8592 8593 8594
      fi
      ;;
    esac

8595
    if test "$ld_shlibs" = no; then
8596
      runpath_var=
8597 8598 8599
      hardcode_libdir_flag_spec=
      export_dynamic_flag_spec=
      whole_archive_flag_spec=
8600 8601 8602 8603 8604
    fi
  else
    # PORTME fill in a description of your system's linker (not GNU ld)
    case $host_os in
    aix3*)
8605 8606 8607
      allow_undefined_flag=unsupported
      always_export_symbols=yes
      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'
8608 8609
      # Note: this linker hardcodes the directories in LIBPATH if there
      # are no directories specified by -L.
8610
      hardcode_minus_L=yes
8611 8612 8613
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
	# Neither direct hardcoding nor static linking is supported with a
	# broken collect2.
8614
	hardcode_direct=unsupported
8615 8616 8617
      fi
      ;;

8618
    aix[4-9]*)
8619 8620 8621 8622 8623 8624 8625 8626 8627
      if test "$host_cpu" = ia64; then
	# On IA64, the linker does run time linking by default, so we don't
	# have to do anything special.
	aix_use_runtimelinking=no
	exp_sym_flag='-Bexport'
	no_entry_flag=""
      else
	# If we're using GNU nm, then we don't want the "-C" option.
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8628 8629
	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8630
	else
8631
	  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'
8632 8633 8634 8635 8636 8637
	fi
	aix_use_runtimelinking=no

	# Test if we are trying to use run time linking or normal
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
	# need to do runtime linking.
8638
	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8639
	  for ld_flag in $LDFLAGS; do
8640 8641 8642 8643
	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
	    aix_use_runtimelinking=yes
	    break
	  fi
8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657
	  done
	  ;;
	esac

	exp_sym_flag='-bexport'
	no_entry_flag='-bnoentry'
      fi

      # When large executables or shared objects are built, AIX ld can
      # have problems creating the table of contents.  If linking a library
      # or program results in "error TOC overflow" add -mminimal-toc to
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.

8658 8659 8660 8661 8662 8663
      archive_cmds=''
      hardcode_direct=yes
      hardcode_direct_absolute=yes
      hardcode_libdir_separator=':'
      link_all_deplibs=yes
      file_list_spec='${wl}-f,'
8664 8665 8666 8667 8668 8669

      if test "$GCC" = yes; then
	case $host_os in aix4.[012]|aix4.[012].*)
	# We only want to do this on AIX 4.2 and lower, the check
	# below for broken collect2 doesn't work under 4.3+
	  collect2name=`${CC} -print-prog-name=collect2`
8670 8671
	  if test -f "$collect2name" &&
	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8672
	  then
8673 8674
	  # We have reworked collect2
	  :
8675
	  else
8676 8677 8678 8679 8680 8681 8682 8683
	  # We have old collect2
	  hardcode_direct=unsupported
	  # It fails to find uninstalled libraries when the uninstalled
	  # path is not listed in the libpath.  Setting hardcode_minus_L
	  # to unsupported forces relinking
	  hardcode_minus_L=yes
	  hardcode_libdir_flag_spec='-L$libdir'
	  hardcode_libdir_separator=
8684 8685 8686 8687 8688 8689 8690 8691 8692 8693
	  fi
	  ;;
	esac
	shared_flag='-shared'
	if test "$aix_use_runtimelinking" = yes; then
	  shared_flag="$shared_flag "'${wl}-G'
	fi
      else
	# not using gcc
	if test "$host_cpu" = ia64; then
8694 8695
	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
	# chokes on -Wl,-G. The following line is correct:
8696 8697 8698 8699 8700 8701 8702 8703 8704 8705
	  shared_flag='-G'
	else
	  if test "$aix_use_runtimelinking" = yes; then
	    shared_flag='${wl}-G'
	  else
	    shared_flag='${wl}-bM:SRE'
	  fi
	fi
      fi

8706
      export_dynamic_flag_spec='${wl}-bexpall'
8707 8708
      # It seems that -bexpall does not export symbols beginning with
      # underscore (_), so it is better to generate a list of symbols to export.
8709
      always_export_symbols=yes
8710 8711 8712
      if test "$aix_use_runtimelinking" = yes; then
	# Warning - without using the other runtime loading flags (-brtl),
	# -berok will link without error, but may produce a broken library.
8713 8714 8715
	allow_undefined_flag='-berok'
        # Determine the default libpath from the value encoded in an
        # empty executable.
8716
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8717 8718 8719 8720 8721 8722 8723 8724 8725 8726
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
8727
if ac_fn_c_try_link "$LINENO"; then :
8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741

lt_aix_libpath_sed='
    /Import File Strings/,/^$/ {
	/^0/ {
	    s/^0  *\(.*\)$/\1/
	    p
	}
    }'
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
fi
fi
8742 8743
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
8744 8745
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

8746 8747 8748
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
      else
8749
	if test "$host_cpu" = ia64; then
8750 8751 8752
	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
	  allow_undefined_flag="-z nodefs"
	  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"
8753
	else
8754 8755
	 # Determine the default libpath from the value encoded in an
	 # empty executable.
8756
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8757 8758 8759 8760 8761 8762 8763 8764 8765 8766
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
8767
if ac_fn_c_try_link "$LINENO"; then :
8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781

lt_aix_libpath_sed='
    /Import File Strings/,/^$/ {
	/^0/ {
	    s/^0  *\(.*\)$/\1/
	    p
	}
    }'
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
fi
fi
8782 8783
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
8784 8785
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

8786
	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8787 8788
	  # Warning - without using the other run time loading flags,
	  # -berok will link without error, but may produce a broken library.
8789 8790
	  no_undefined_flag=' ${wl}-bernotok'
	  allow_undefined_flag=' ${wl}-berok'
8791
	  # Exported symbols can be pulled into shared objects from archives
8792 8793
	  whole_archive_flag_spec='$convenience'
	  archive_cmds_need_lc=yes
8794
	  # This is similar to how AIX traditionally builds its shared libraries.
8795
	  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'
8796 8797 8798 8799 8800
	fi
      fi
      ;;

    amigaos*)
8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
            archive_expsym_cmds=''
        ;;
      m68k)
            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)'
            hardcode_libdir_flag_spec='-L$libdir'
            hardcode_minus_L=yes
        ;;
      esac
8813 8814 8815
      ;;

    bsdi[45]*)
8816
      export_dynamic_flag_spec=-rdynamic
8817 8818
      ;;

8819
    cygwin* | mingw* | pw32* | cegcc*)
8820 8821 8822 8823
      # When not using gcc, we currently assume that we are using
      # Microsoft Visual C++.
      # hardcode_libdir_flag_spec is actually meaningless, as there is
      # no search path for DLLs.
8824 8825
      hardcode_libdir_flag_spec=' '
      allow_undefined_flag=unsupported
8826 8827 8828 8829 8830
      # Tell ltmain to make .lib files, not .a files.
      libext=lib
      # Tell ltmain to make .dll files, not .so files.
      shrext_cmds=".dll"
      # FIXME: Setting linknames here is a bad hack.
8831
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8832
      # The linker will automatically build a .lib file if we build a DLL.
8833
      old_archive_from_new_cmds='true'
8834
      # FIXME: Should let the user specify the lib program.
8835 8836 8837
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
      fix_srcfile_path='`cygpath -w "$srcfile"`'
      enable_shared_with_static_runtimes=yes
8838 8839 8840
      ;;

    darwin* | rhapsody*)
8841 8842 8843 8844 8845 8846 8847 8848 8849


  archive_cmds_need_lc=no
  hardcode_direct=no
  hardcode_automatic=yes
  hardcode_shlibpath_var=unsupported
  whole_archive_flag_spec=''
  link_all_deplibs=yes
  allow_undefined_flag="$_lt_dar_allow_undefined"
8850 8851 8852 8853 8854
  case $cc_basename in
     ifort*) _lt_dar_can_shared=yes ;;
     *) _lt_dar_can_shared=$GCC ;;
  esac
  if test "$_lt_dar_can_shared" = "yes"; then
8855 8856 8857 8858 8859 8860 8861 8862 8863 8864
    output_verbose_link_cmd=echo
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
    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}"
    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}"

  else
  ld_shlibs=no
  fi

8865 8866 8867
      ;;

    dgux*)
8868 8869 8870
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_shlibpath_var=no
8871 8872 8873
      ;;

    freebsd1*)
8874
      ld_shlibs=no
8875 8876 8877 8878 8879 8880 8881
      ;;

    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
    # support.  Future versions do this automatically, but an explicit c++rt0.o
    # does not break anything, and helps significantly (at the cost of a little
    # extra space).
    freebsd2.2*)
8882 8883 8884 8885
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_direct=yes
      hardcode_shlibpath_var=no
8886 8887 8888 8889
      ;;

    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
    freebsd2*)
8890 8891 8892 8893
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct=yes
      hardcode_minus_L=yes
      hardcode_shlibpath_var=no
8894 8895 8896 8897
      ;;

    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
    freebsd* | dragonfly*)
8898 8899 8900 8901
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_direct=yes
      hardcode_shlibpath_var=no
8902 8903 8904 8905
      ;;

    hpux9*)
      if test "$GCC" = yes; then
8906
	archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8907
      else
8908
	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'
8909
      fi
8910 8911 8912
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
      hardcode_libdir_separator=:
      hardcode_direct=yes
8913 8914 8915

      # hardcode_minus_L: Not really in the search PATH,
      # but as the default location of the library.
8916 8917
      hardcode_minus_L=yes
      export_dynamic_flag_spec='${wl}-E'
8918 8919 8920 8921
      ;;

    hpux10*)
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8922
	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8923
      else
8924
	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8925 8926
      fi
      if test "$with_gnu_ld" = no; then
8927 8928 8929 8930 8931 8932
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
	hardcode_libdir_flag_spec_ld='+b $libdir'
	hardcode_libdir_separator=:
	hardcode_direct=yes
	hardcode_direct_absolute=yes
	export_dynamic_flag_spec='${wl}-E'
8933 8934
	# hardcode_minus_L: Not really in the search PATH,
	# but as the default location of the library.
8935
	hardcode_minus_L=yes
8936 8937 8938 8939 8940 8941 8942
      fi
      ;;

    hpux11*)
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
	case $host_cpu in
	hppa*64*)
8943
	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8944 8945
	  ;;
	ia64*)
8946
	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8947 8948
	  ;;
	*)
8949
	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8950 8951 8952 8953 8954
	  ;;
	esac
      else
	case $host_cpu in
	hppa*64*)
8955
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8956 8957
	  ;;
	ia64*)
8958
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8959 8960
	  ;;
	*)
8961
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8962 8963 8964 8965
	  ;;
	esac
      fi
      if test "$with_gnu_ld" = no; then
8966 8967
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
	hardcode_libdir_separator=:
8968 8969 8970

	case $host_cpu in
	hppa*64*|ia64*)
8971 8972
	  hardcode_direct=no
	  hardcode_shlibpath_var=no
8973 8974
	  ;;
	*)
8975 8976 8977
	  hardcode_direct=yes
	  hardcode_direct_absolute=yes
	  export_dynamic_flag_spec='${wl}-E'
8978 8979 8980

	  # hardcode_minus_L: Not really in the search PATH,
	  # but as the default location of the library.
8981
	  hardcode_minus_L=yes
8982 8983 8984 8985 8986 8987 8988
	  ;;
	esac
      fi
      ;;

    irix5* | irix6* | nonstopux*)
      if test "$GCC" = yes; then
8989 8990 8991 8992 8993 8994
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	# Try to use the -exported_symbol ld option, if it does not
	# work, assume that -exports_file does not work either and
	# implicitly export all symbols.
        save_LDFLAGS="$LDFLAGS"
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8995 8996
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
8997 8998
int foo(void) {}
_ACEOF
8999
if ac_fn_c_try_link "$LINENO"; then :
9000 9001 9002
  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'

fi
9003 9004
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
9005
        LDFLAGS="$save_LDFLAGS"
9006
      else
9007 9008
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9009
      fi
9010 9011 9012 9013 9014
      archive_cmds_need_lc='no'
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator=:
      inherit_rpath=yes
      link_all_deplibs=yes
9015 9016 9017
      ;;

    netbsd*)
9018 9019
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9020
      else
9021
	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9022
      fi
9023 9024 9025
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_direct=yes
      hardcode_shlibpath_var=no
9026 9027 9028
      ;;

    newsos6)
9029 9030 9031 9032 9033 9034 9035 9036
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct=yes
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator=:
      hardcode_shlibpath_var=no
      ;;

    *nto* | *qnx*)
9037 9038 9039 9040
      ;;

    openbsd*)
      if test -f /usr/libexec/ld.so; then
9041 9042 9043 9044 9045 9046 9047 9048
	hardcode_direct=yes
	hardcode_shlibpath_var=no
	hardcode_direct_absolute=yes
	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
	  export_dynamic_flag_spec='${wl}-E'
9049 9050 9051
	else
	  case $host_os in
	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9052 9053
	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
	     hardcode_libdir_flag_spec='-R$libdir'
9054 9055
	     ;;
	   *)
9056 9057
	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9058 9059
	     ;;
	  esac
9060
	fi
9061
      else
9062
	ld_shlibs=no
9063 9064 9065 9066
      fi
      ;;

    os2*)
9067 9068 9069 9070 9071
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_minus_L=yes
      allow_undefined_flag=unsupported
      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'
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9072 9073 9074 9075
      ;;

    osf3*)
      if test "$GCC" = yes; then
9076 9077
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9078
      else
9079 9080
	allow_undefined_flag=' -expect_unresolved \*'
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9081
      fi
9082 9083 9084
      archive_cmds_need_lc='no'
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator=:
9085 9086 9087 9088
      ;;

    osf4* | osf5*)	# as osf3* with the addition of -msym flag
      if test "$GCC" = yes; then
9089 9090 9091
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9092
      else
9093 9094 9095 9096
	allow_undefined_flag=' -expect_unresolved \*'
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
	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~
	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9097 9098

	# Both c and cxx compiler support -rpath directly
9099
	hardcode_libdir_flag_spec='-rpath $libdir'
9100
      fi
9101 9102
      archive_cmds_need_lc='no'
      hardcode_libdir_separator=:
9103 9104 9105
      ;;

    solaris*)
9106
      no_undefined_flag=' -z defs'
9107 9108
      if test "$GCC" = yes; then
	wlarc='${wl}'
9109 9110 9111
	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9112
      else
9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126
	case `$CC -V 2>&1` in
	*"Compilers 5.0"*)
	  wlarc=''
	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
	  ;;
	*)
	  wlarc='${wl}'
	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
	  ;;
	esac
9127
      fi
9128 9129
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_shlibpath_var=no
9130 9131 9132 9133 9134 9135
      case $host_os in
      solaris2.[0-5] | solaris2.[0-5].*) ;;
      *)
	# The compiler driver will combine and reorder linker options,
	# but understands `-z linker_flag'.  GCC discards it without `$wl',
	# but is careful enough not to reorder.
9136
	# Supported since Solaris 2.6 (maybe 2.5.1?)
9137
	if test "$GCC" = yes; then
9138
	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9139
	else
9140
	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9141 9142 9143
	fi
	;;
      esac
9144
      link_all_deplibs=yes
9145 9146 9147 9148 9149 9150
      ;;

    sunos4*)
      if test "x$host_vendor" = xsequent; then
	# Use $CC to link under sequent, because it throws in some extra .o
	# files that make .init and .fini sections work.
9151
	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9152
      else
9153
	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9154
      fi
9155 9156 9157 9158
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_direct=yes
      hardcode_minus_L=yes
      hardcode_shlibpath_var=no
9159 9160 9161 9162 9163
      ;;

    sysv4)
      case $host_vendor in
	sni)
9164 9165
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct=yes # is this really true???
9166 9167 9168 9169
	;;
	siemens)
	  ## LD is ld it makes a PLAMLIB
	  ## CC just makes a GrossModule.
9170 9171 9172
	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
	  reload_cmds='$CC -r -o $output$reload_objs'
	  hardcode_direct=no
9173 9174
        ;;
	motorola)
9175 9176
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9177 9178 9179
	;;
      esac
      runpath_var='LD_RUN_PATH'
9180
      hardcode_shlibpath_var=no
9181 9182 9183
      ;;

    sysv4.3*)
9184 9185 9186
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_shlibpath_var=no
      export_dynamic_flag_spec='-Bexport'
9187 9188 9189 9190
      ;;

    sysv4*MP*)
      if test -d /usr/nec; then
9191 9192
	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	hardcode_shlibpath_var=no
9193 9194
	runpath_var=LD_RUN_PATH
	hardcode_runpath_var=yes
9195
	ld_shlibs=yes
9196 9197 9198 9199
      fi
      ;;

    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9200 9201 9202
      no_undefined_flag='${wl}-z,text'
      archive_cmds_need_lc=no
      hardcode_shlibpath_var=no
9203 9204 9205
      runpath_var='LD_RUN_PATH'

      if test "$GCC" = yes; then
9206 9207
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9208
      else
9209 9210
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9211 9212 9213 9214 9215 9216 9217 9218 9219 9220
      fi
      ;;

    sysv5* | sco3.2v5* | sco5v6*)
      # Note: We can NOT use -z defs as we might desire, because we do not
      # link with -lc, and that would cause any symbols used from libc to
      # always be unresolved, which means just about no library would
      # ever link correctly.  If we're not using GNU ld we use -z text
      # though, which does catch some bad symbols but isn't as heavy-handed
      # as -z defs.
9221 9222 9223 9224 9225 9226 9227 9228
      no_undefined_flag='${wl}-z,text'
      allow_undefined_flag='${wl}-z,nodefs'
      archive_cmds_need_lc=no
      hardcode_shlibpath_var=no
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
      hardcode_libdir_separator=':'
      link_all_deplibs=yes
      export_dynamic_flag_spec='${wl}-Bexport'
9229 9230 9231
      runpath_var='LD_RUN_PATH'

      if test "$GCC" = yes; then
9232 9233
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9234
      else
9235 9236
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9237 9238 9239 9240
      fi
      ;;

    uts4*)
9241 9242 9243
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_shlibpath_var=no
9244 9245 9246
      ;;

    *)
9247
      ld_shlibs=no
9248 9249
      ;;
    esac
9250 9251 9252 9253 9254 9255 9256 9257

    if test x$host_vendor = xsni; then
      case $host in
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
	export_dynamic_flag_spec='${wl}-Blargedynsym'
	;;
      esac
    fi
9258 9259
  fi

9260
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278
$as_echo "$ld_shlibs" >&6; }
test "$ld_shlibs" = no && can_build_shared=no

with_gnu_ld=$with_gnu_ld














9279 9280 9281 9282

#
# Do we need to explicitly link libc?
#
9283
case "x$archive_cmds_need_lc" in
9284 9285
x|xyes)
  # Assume -lc should be added
9286
  archive_cmds_need_lc=yes
9287 9288

  if test "$enable_shared" = yes && test "$GCC" = yes; then
9289
    case $archive_cmds in
9290 9291 9292 9293 9294 9295 9296
    *'~'*)
      # FIXME: we may have to deal with multi-command sequences.
      ;;
    '$CC '*)
      # Test whether the compiler implicitly links with -lc since on some
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
      # to ld, don't add -lc before -lgcc.
9297
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9298 9299
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
      $RM conftest*
9300 9301
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext

9302
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9303 9304
  (eval $ac_compile) 2>&5
  ac_status=$?
9305 9306
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } 2>conftest.err; then
9307 9308 9309 9310
        soname=conftest
        lib=conftest
        libobjs=conftest.$ac_objext
        deplibs=
9311 9312
        wl=$lt_prog_compiler_wl
	pic_flag=$lt_prog_compiler_pic
9313 9314 9315 9316 9317
        compiler_flags=-v
        linker_flags=-v
        verstring=
        output_objdir=.
        libname=conftest
9318 9319
        lt_save_allow_undefined_flag=$allow_undefined_flag
        allow_undefined_flag=
9320
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9321
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9322
  ac_status=$?
9323 9324
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
9325
        then
9326
	  archive_cmds_need_lc=no
9327
        else
9328
	  archive_cmds_need_lc=yes
9329
        fi
9330
        allow_undefined_flag=$lt_save_allow_undefined_flag
9331 9332 9333
      else
        cat conftest.err 1>&5
      fi
9334
      $RM conftest*
9335
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9336
$as_echo "$archive_cmds_need_lc" >&6; }
9337 9338 9339 9340 9341 9342
      ;;
    esac
  fi
  ;;
esac

9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498




























































































































































9499
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552
$as_echo_n "checking dynamic linker characteristics... " >&6; }

if test "$GCC" = yes; then
  case $host_os in
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
    *) lt_awk_arg="/^libraries:/" ;;
  esac
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
    # if the path contains ";" then we assume it to be the separator
    # otherwise default to the standard path separator (i.e. ":") - it is
    # assumed that no part of a normal pathname contains ";" but that should
    # okay in the real world where ";" in dirpaths is itself problematic.
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  else
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  fi
  # Ok, now we have the path, separated by spaces, we can step through it
  # and add multilib dir if necessary.
  lt_tmp_lt_search_path_spec=
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  for lt_sys_path in $lt_search_path_spec; do
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
    else
      test -d "$lt_sys_path" && \
	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
    fi
  done
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
BEGIN {RS=" "; FS="/|\n";} {
  lt_foo="";
  lt_count=0;
  for (lt_i = NF; lt_i > 0; lt_i--) {
    if ($lt_i != "" && $lt_i != ".") {
      if ($lt_i == "..") {
        lt_count++;
      } else {
        if (lt_count == 0) {
          lt_foo="/" $lt_i lt_foo;
        } else {
          lt_count--;
        }
      }
    }
  }
  if (lt_foo != "") { lt_freq[lt_foo]++; }
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
}'`
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
else
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
fi
9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582
library_names_spec=
libname_spec='lib$name'
soname_spec=
shrext_cmds=".so"
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
finish_eval=
shlibpath_var=
shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
sys_lib_dlsearch_path_spec="/lib /usr/lib"
need_lib_prefix=unknown
hardcode_into_libs=no

# when you set need_version to no, make sure it does not cause -set_version
# flags to be left without arguments
need_version=unknown

case $host_os in
aix3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  shlibpath_var=LIBPATH

  # AIX 3 has no versioning support, so we append a major version to the name.
  soname_spec='${libname}${release}${shared_ext}$major'
  ;;

9583
aix[4-9]*)
9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601
  version_type=linux
  need_lib_prefix=no
  need_version=no
  hardcode_into_libs=yes
  if test "$host_cpu" = ia64; then
    # AIX 5 supports IA64
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
    shlibpath_var=LD_LIBRARY_PATH
  else
    # With GCC up to 2.95.x, collect2 would create an import file
    # for dependence libraries.  The import file would start with
    # the line `#! .'.  This would cause the generated library to
    # depend on `.', always an invalid library.  This was fixed in
    # development snapshots of GCC prior to 3.0.
    case $host_os in
      aix4 | aix4.[01] | aix4.[01].*)
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
	   echo ' yes '
9602
	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627
	:
      else
	can_build_shared=no
      fi
      ;;
    esac
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    # soname into executable. Probably we can add versioning support to
    # collect2, so additional links can be useful in future.
    if test "$aix_use_runtimelinking" = yes; then
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
      # instead of lib<name>.a to let people know that these are not
      # typical AIX shared libraries.
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    else
      # We preserve .a as extension for shared libraries through AIX4.2
      # and later when we are not doing run time linking.
      library_names_spec='${libname}${release}.a $libname.a'
      soname_spec='${libname}${release}${shared_ext}$major'
    fi
    shlibpath_var=LIBPATH
  fi
  ;;

amigaos*)
9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639
  case $host_cpu in
  powerpc)
    # Since July 2007 AmigaOS4 officially supports .so libraries.
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    ;;
  m68k)
    library_names_spec='$libname.ixlibrary $libname.a'
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
    ;;
  esac
9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661
  ;;

beos*)
  library_names_spec='${libname}${shared_ext}'
  dynamic_linker="$host_os ld.so"
  shlibpath_var=LIBRARY_PATH
  ;;

bsdi[45]*)
  version_type=linux
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  # the default ld.so.conf also contains /usr/contrib/lib and
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  # libtool to hard-code these into programs
  ;;

9662
cygwin* | mingw* | pw32* | cegcc*)
9663 9664 9665 9666 9667 9668
  version_type=windows
  shrext_cmds=".dll"
  need_version=no
  need_lib_prefix=no

  case $GCC,$host_os in
9669
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9670 9671 9672
    library_names_spec='$libname.dll.a'
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
9673
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9674 9675 9676
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname~
9677 9678 9679 9680
      chmod a+x \$dldir/$dlname~
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
      fi'
9681 9682
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
9683
       $RM \$dlpath'
9684 9685 9686 9687 9688 9689 9690 9691
    shlibpath_overrides_runpath=yes

    case $host_os in
    cygwin*)
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
      ;;
9692
    mingw* | cegcc*)
9693 9694
      # MinGW DLLs use traditional 'lib' prefix
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9695 9696
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9697 9698 9699 9700 9701 9702
        # It is most probably a Windows format PATH printed by
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
        # path with ; separators, and with drive letters. We can handle the
        # drive letters (cygwin fileutils understands them), so leave them,
        # especially as we might pass files found there to a mingw objdump,
        # which wouldn't understand a cygwinified path. Ahh.
9703
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9704
      else
9705
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728
      fi
      ;;
    pw32*)
      # pw32 DLLs use 'pw' prefix rather than 'lib'
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    esac
    ;;

  *)
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
    ;;
  esac
  dynamic_linker='Win32 ld.exe'
  # FIXME: first we should search . and the directory the executable is in
  shlibpath_var=PATH
  ;;

darwin* | rhapsody*)
  dynamic_linker="$host_os dyld"
  version_type=darwin
  need_lib_prefix=no
  need_version=no
9729
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9730 9731 9732 9733 9734
  soname_spec='${libname}${release}${major}$shared_ext'
  shlibpath_overrides_runpath=yes
  shlibpath_var=DYLD_LIBRARY_PATH
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'

9735
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  ;;

dgux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

freebsd1*)
  dynamic_linker=no
  ;;

freebsd* | dragonfly*)
  # DragonFly does not have aout.  When/if they implement a new
  # versioning mechanism, adjust this.
  if test -x /usr/bin/objformat; then
    objformat=`/usr/bin/objformat`
  else
    case $host_os in
    freebsd[123]*) objformat=aout ;;
    *) objformat=elf ;;
    esac
  fi
  version_type=freebsd-$objformat
  case $version_type in
    freebsd-elf*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
      need_version=no
      need_lib_prefix=no
      ;;
    freebsd-*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
      need_version=yes
      ;;
  esac
  shlibpath_var=LD_LIBRARY_PATH
  case $host_os in
  freebsd2*)
    shlibpath_overrides_runpath=yes
    ;;
  freebsd3.[01]* | freebsdelf3.[01]*)
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
    shlibpath_overrides_runpath=no
    hardcode_into_libs=yes
    ;;
  *) # from 4.6 on, and DragonFly
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  esac
  ;;

gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  ;;

hpux9* | hpux10* | hpux11*)
  # Give a soname corresponding to the major version so that dld.sl refuses to
  # link against other versions.
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  case $host_cpu in
  ia64*)
    shrext_cmds='.so'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.so"
    shlibpath_var=LD_LIBRARY_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    if test "X$HPUX_IA64_MODE" = X32; then
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    else
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    fi
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839
  hppa*64*)
    shrext_cmds='.sl'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
  *)
9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915
    shrext_cmds='.sl'
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=SHLIB_PATH
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    ;;
  esac
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
  postinstall_cmds='chmod 555 $lib'
  ;;

interix[3-9]*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

irix5* | irix6* | nonstopux*)
  case $host_os in
    nonstopux*) version_type=nonstopux ;;
    *)
	if test "$lt_cv_prog_gnu_ld" = yes; then
		version_type=linux
	else
		version_type=irix
	fi ;;
  esac
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  case $host_os in
  irix5* | nonstopux*)
    libsuff= shlibsuff=
    ;;
  *)
    case $LD in # libtool.m4 will add one of these switches to LD
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
      libsuff= shlibsuff= libmagic=32-bit;;
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
      libsuff=32 shlibsuff=N32 libmagic=N32;;
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
    *) libsuff= shlibsuff= libmagic=never-match;;
    esac
    ;;
  esac
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  shlibpath_overrides_runpath=no
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  hardcode_into_libs=yes
  ;;

# No shared lib support for Linux oldld, aout, or coff.
linux*oldld* | linux*aout* | linux*coff*)
  dynamic_linker=no
  ;;

# This must be Linux ELF.
linux* | k*bsd*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
9916 9917 9918 9919 9920
  # Some binutils ld are patched to set DT_RUNPATH
  save_LDFLAGS=$LDFLAGS
  save_libdir=$libdir
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9921
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9922 9923 9924 9925 9926 9927 9928 9929 9930 9931
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
9932 9933
if ac_fn_c_try_link "$LINENO"; then :
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9934 9935 9936
  shlibpath_overrides_runpath=yes
fi
fi
9937 9938
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
9939 9940 9941
  LDFLAGS=$save_LDFLAGS
  libdir=$save_libdir

9942 9943 9944 9945 9946 9947 9948
  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
9949
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  fi

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
9966
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

9987 9988
*nto* | *qnx*)
  version_type=qnx
9989 9990 9991 9992 9993
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
9994 9995 9996
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='ldqnx.so'
9997 9998 9999 10000 10001 10002 10003 10004
  ;;

openbsd*)
  version_type=sunos
  sys_lib_dlsearch_path_spec="/usr/lib"
  need_lib_prefix=no
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
10005 10006
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
    *)				need_version=no  ;;
10007 10008 10009 10010
  esac
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
10011
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
  ;;

os2*)
  libname_spec='$name'
  shrext_cmds=".dll"
  need_lib_prefix=no
  library_names_spec='$libname${shared_ext} $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

rdos*)
  dynamic_linker=no
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      need_lib_prefix=no
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
10113
  shlibpath_overrides_runpath=yes
10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
    esac
  fi
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;

10128 10129 10130 10131 10132
tpf*)
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  version_type=linux
  need_lib_prefix=no
  need_version=no
10133
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10134 10135 10136 10137 10138
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149
uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

*)
  dynamic_linker=no
  ;;
esac
10150
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10151
$as_echo "$dynamic_linker" >&6; }
10152 10153 10154 10155 10156 10157 10158
test "$dynamic_linker" = no && can_build_shared=no

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

10159 10160
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10161
fi
10162 10163
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251
fi























































































10252
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
hardcode_action=
if test -n "$hardcode_libdir_flag_spec" ||
   test -n "$runpath_var" ||
   test "X$hardcode_automatic" = "Xyes" ; then

  # We can hardcode non-existent directories.
  if test "$hardcode_direct" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
     test "$hardcode_minus_L" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action=unsupported
fi
10277
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309
$as_echo "$hardcode_action" >&6; }

if test "$hardcode_action" = relink ||
   test "$inherit_rpath" = yes; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi






  if test "x$enable_dlopen" != xyes; then
  enable_dlopen=unknown
  enable_dlopen_self=unknown
  enable_dlopen_self_static=unknown
else
  lt_cv_dlopen=no
  lt_cv_dlopen_libs=

  case $host_os in
  beos*)
    lt_cv_dlopen="load_add_on"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes
    ;;

10310
  mingw* | pw32* | cegcc*)
10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321
    lt_cv_dlopen="LoadLibrary"
    lt_cv_dlopen_libs=
    ;;

  cygwin*)
    lt_cv_dlopen="dlopen"
    lt_cv_dlopen_libs=
    ;;

  darwin*)
  # if libdl is installed we need to link against it
10322
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10323
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10324
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10325 10326 10327 10328
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
10329
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
10347
if ac_fn_c_try_link "$LINENO"; then :
10348 10349
  ac_cv_lib_dl_dlopen=yes
else
10350
  ac_cv_lib_dl_dlopen=no
10351
fi
10352 10353
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
10354 10355
LIBS=$ac_check_lib_save_LIBS
fi
10356
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10357
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10358
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else

    lt_cv_dlopen="dyld"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes

fi

    ;;

10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383
  *)
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
if test "x$ac_cv_func_shl_load" = x""yes; then :
  lt_cv_dlopen="shl_load"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
$as_echo_n "checking for shl_load in -ldld... " >&6; }
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
10384 10385 10386 10387 10388 10389 10390

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
10391
char shl_load ();
10392 10393 10394
int
main ()
{
10395
return shl_load ();
10396 10397 10398 10399
  ;
  return 0;
}
_ACEOF
10400 10401
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_dld_shl_load=yes
10402
else
10403
  ac_cv_lib_dld_shl_load=no
10404
fi
10405 10406 10407
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
10408
fi
10409 10410 10411 10412 10413 10414 10415
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
else
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
if test "x$ac_cv_func_dlopen" = x""yes; then :
10416 10417
  lt_cv_dlopen="dlopen"
else
10418
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10419
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10420
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10421 10422 10423 10424
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
10425
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
10443
if ac_fn_c_try_link "$LINENO"; then :
10444 10445
  ac_cv_lib_dl_dlopen=yes
else
10446
  ac_cv_lib_dl_dlopen=no
10447
fi
10448 10449
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
10450 10451
LIBS=$ac_check_lib_save_LIBS
fi
10452
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10453
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10454
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10455 10456
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else
10457
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10458
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10459
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10460 10461 10462 10463
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsvld  $LIBS"
10464
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
10482
if ac_fn_c_try_link "$LINENO"; then :
10483 10484
  ac_cv_lib_svld_dlopen=yes
else
10485
  ac_cv_lib_svld_dlopen=no
10486
fi
10487 10488
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
10489 10490
LIBS=$ac_check_lib_save_LIBS
fi
10491
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10492
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10493
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10494 10495
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
else
10496
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10497
$as_echo_n "checking for dld_link in -ldld... " >&6; }
10498
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10499 10500 10501 10502
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
10503
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dld_link ();
int
main ()
{
return dld_link ();
  ;
  return 0;
}
_ACEOF
10521
if ac_fn_c_try_link "$LINENO"; then :
10522 10523
  ac_cv_lib_dld_dld_link=yes
else
10524
  ac_cv_lib_dld_dld_link=no
10525
fi
10526 10527
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
10528 10529
LIBS=$ac_check_lib_save_LIBS
fi
10530
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10531
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10532
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
fi


fi


fi


fi


fi


fi

    ;;
  esac
10553

10554 10555 10556 10557 10558
  if test "x$lt_cv_dlopen" != xno; then
    enable_dlopen=yes
  else
    enable_dlopen=no
  fi
10559

10560 10561 10562 10563
  case $lt_cv_dlopen in
  dlopen)
    save_CPPFLAGS="$CPPFLAGS"
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10564

10565 10566
    save_LDFLAGS="$LDFLAGS"
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10567

10568 10569
    save_LIBS="$LIBS"
    LIBS="$lt_cv_dlopen_libs $LIBS"
10570

10571
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10572
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10573
if test "${lt_cv_dlopen_self+set}" = set; then :
10574 10575 10576 10577 10578 10579 10580 10581
  $as_echo_n "(cached) " >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<_LT_EOF
10582
#line 10582 "configure"
10583
#include "confdefs.h"
10584

10585 10586 10587
#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif
10588

10589
#include <stdio.h>
10590

10591 10592 10593 10594 10595 10596 10597 10598 10599
#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif
10600

10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif
10622

10623 10624 10625 10626 10627
void fnord() { int i=42;}
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;
10628

10629 10630 10631 10632 10633 10634 10635 10636
  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
      /* dlclose (self); */
    }
  else
    puts (dlerror ());
10637

10638
  return status;
10639 10640
}
_LT_EOF
10641
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10642 10643
  (eval $ac_link) 2>&5
  ac_status=$?
10644 10645
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10646 10647 10648 10649 10650 10651 10652 10653 10654 10655
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self=no
10656 10657
  fi
fi
10658
rm -fr conftest*
10659 10660


10661
fi
10662
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10663
$as_echo "$lt_cv_dlopen_self" >&6; }
10664

10665 10666
    if test "x$lt_cv_dlopen_self" = xyes; then
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10667
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10668
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10669
if test "${lt_cv_dlopen_self_static+set}" = set; then :
10670 10671 10672 10673 10674 10675 10676 10677
  $as_echo_n "(cached) " >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self_static=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<_LT_EOF
10678
#line 10678 "configure"
10679
#include "confdefs.h"
10680

10681 10682 10683 10684 10685
#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>
10686

10687 10688 10689 10690 10691 10692 10693 10694 10695
#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif
10696

10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif
10718

10719 10720 10721 10722 10723
void fnord() { int i=42;}
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;
10724

10725 10726 10727 10728 10729 10730 10731 10732
  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
      /* dlclose (self); */
    }
  else
    puts (dlerror ());
10733

10734
  return status;
10735 10736
}
_LT_EOF
10737
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10738 10739
  (eval $ac_link) 2>&5
  ac_status=$?
10740 10741
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self_static=no
  fi
fi
rm -fr conftest*
10755 10756


10757
fi
10758
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10759 10760
$as_echo "$lt_cv_dlopen_self_static" >&6; }
    fi
10761

10762 10763 10764 10765 10766
    CPPFLAGS="$save_CPPFLAGS"
    LDFLAGS="$save_LDFLAGS"
    LIBS="$save_LIBS"
    ;;
  esac
10767

10768 10769 10770 10771
  case $lt_cv_dlopen_self in
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  *) enable_dlopen_self=unknown ;;
  esac
10772

10773 10774 10775 10776 10777
  case $lt_cv_dlopen_self_static in
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  *) enable_dlopen_self_static=unknown ;;
  esac
fi
10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794

















10795 10796
striplib=
old_striplib=
10797
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10798 10799 10800 10801
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10802
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10803 10804 10805 10806 10807 10808 10809 10810
$as_echo "yes" >&6; }
else
# FIXME - insert some real tests, host_os isn't really good enough
  case $host_os in
  darwin*)
    if test -n "$STRIP" ; then
      striplib="$STRIP -x"
      old_striplib="$STRIP -S"
10811
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10812 10813
$as_echo "yes" >&6; }
    else
10814
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10815 10816 10817 10818
$as_echo "no" >&6; }
    fi
    ;;
  *)
10819
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10820 10821 10822 10823
$as_echo "no" >&6; }
    ;;
  esac
fi
10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835












10836
  # Report which library types will actually be built
10837
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10838
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10839
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10840
$as_echo "$can_build_shared" >&6; }
10841

10842
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10843 10844
$as_echo_n "checking whether to build shared libraries... " >&6; }
  test "$can_build_shared" = "no" && enable_shared=no
10845

10846 10847 10848 10849 10850 10851 10852 10853 10854 10855
  # On AIX, shared libraries and static libraries use the same namespace, and
  # are all built from PIC.
  case $host_os in
  aix3*)
    test "$enable_shared" = yes && enable_static=no
    if test -n "$RANLIB"; then
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
      postinstall_cmds='$RANLIB $lib'
    fi
    ;;
10856

10857 10858 10859 10860 10861 10862
  aix[4-9]*)
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
      test "$enable_shared" = yes && enable_static=no
    fi
    ;;
  esac
10863
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10864
$as_echo "$enable_shared" >&6; }
10865

10866
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10867 10868 10869
$as_echo_n "checking whether to build static libraries... " >&6; }
  # Make sure either enable_shared or enable_static is yes.
  test "$enable_shared" = yes || enable_static=yes
10870
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10871
$as_echo "$enable_static" >&6; }
10872 10873 10874 10875




10876 10877 10878 10879 10880 10881 10882 10883
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

CC="$lt_save_CC"
10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896













10897
        ac_config_commands="$ac_config_commands libtool"
10898 10899 10900 10901




10902
# Only expand once:
10903 10904 10905



10906
# Checks for header files.
10907
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10908
$as_echo_n "checking for ANSI C header files... " >&6; }
10909
if test "${ac_cv_header_stdc+set}" = set; then :
10910 10911
  $as_echo_n "(cached) " >&6
else
10912
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10913 10914 10915 10916 10917
/* end confdefs.h.  */
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>
10918

10919 10920 10921
int
main ()
{
10922

10923 10924 10925 10926
  ;
  return 0;
}
_ACEOF
10927
if ac_fn_c_try_compile "$LINENO"; then :
10928 10929
  ac_cv_header_stdc=yes
else
10930
  ac_cv_header_stdc=no
10931 10932
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10933

10934 10935
if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10936
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10937 10938
/* end confdefs.h.  */
#include <string.h>
10939

10940 10941
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10942 10943
  $EGREP "memchr" >/dev/null 2>&1; then :

10944 10945 10946 10947
else
  ac_cv_header_stdc=no
fi
rm -f conftest*
10948

10949
fi
10950

10951 10952
if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10953
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10954 10955
/* end confdefs.h.  */
#include <stdlib.h>
10956

10957 10958
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10959 10960
  $EGREP "free" >/dev/null 2>&1; then :

10961 10962 10963 10964
else
  ac_cv_header_stdc=no
fi
rm -f conftest*
10965

10966
fi
10967

10968 10969
if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10970
  if test "$cross_compiling" = yes; then :
10971 10972
  :
else
10973
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986
/* end confdefs.h.  */
#include <ctype.h>
#include <stdlib.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) \
		   (('a' <= (c) && (c) <= 'i') \
		     || ('j' <= (c) && (c) <= 'r') \
		     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif
10987

10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
	|| toupper (i) != TOUPPER (i))
      return 2;
  return 0;
}
_ACEOF
11000
if ac_fn_c_try_run "$LINENO"; then :
11001

11002 11003
else
  ac_cv_header_stdc=no
11004
fi
11005 11006
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
11007
fi
11008

11009 11010
fi
fi
11011
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11012 11013
$as_echo "$ac_cv_header_stdc" >&6; }
if test $ac_cv_header_stdc = yes; then
11014

11015
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
11016

11017
fi
11018

11019
for ac_header in malloc.h stdlib.h string.h strings.h
11020 11021 11022 11023 11024
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
11025 11026 11027
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
11028

11029
fi
11030

11031
done
11032 11033


11034
# Checks for typedefs, structures, and compiler characteristics.
11035
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11036
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11037
if test "${ac_cv_c_const+set}" = set; then :
11038 11039
  $as_echo_n "(cached) " >&6
else
11040
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11041
/* end confdefs.h.  */
11042

11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069
int
main ()
{
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2];
  const charset cs;
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *pcpcc;
  char **ppc;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  pcpcc = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++pcpcc;
  ppc = (char**) pcpcc;
  pcpcc = (char const *const *) ppc;
  { /* SCO 3.2v4 cc rejects this.  */
    char *t;
    char const *s = 0 ? (char *) 0 : (char const *) 0;
11070

11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093
    *t++ = 0;
    if (s) return 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; };
    struct s *b; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
    if (!foo) return 0;
  }
  return !cs[0] && !zero.x;
11094 11095
#endif

11096 11097 11098 11099
  ;
  return 0;
}
_ACEOF
11100 11101
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_const=yes
11102
else
11103
  ac_cv_c_const=no
11104 11105
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11106 11107 11108 11109
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
$as_echo "$ac_cv_c_const" >&6; }
if test $ac_cv_c_const = no; then
11110

11111
$as_echo "#define const /**/" >>confdefs.h
11112 11113 11114

fi

11115 11116 11117
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
if test "x$ac_cv_type_size_t" = x""yes; then :

11118
else
11119

11120 11121 11122
cat >>confdefs.h <<_ACEOF
#define size_t unsigned int
_ACEOF
11123

11124
fi
11125

11126
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
11127
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
11128
if test "${ac_cv_struct_tm+set}" = set; then :
11129 11130
  $as_echo_n "(cached) " >&6
else
11131
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11132 11133 11134
/* end confdefs.h.  */
#include <sys/types.h>
#include <time.h>
11135

11136 11137 11138 11139 11140 11141 11142 11143 11144 11145
int
main ()
{
struct tm tm;
				     int *p = &tm.tm_sec;
				     return !p;
  ;
  return 0;
}
_ACEOF
11146
if ac_fn_c_try_compile "$LINENO"; then :
11147 11148
  ac_cv_struct_tm=time.h
else
11149
  ac_cv_struct_tm=sys/time.h
11150 11151
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11152
fi
11153
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
11154 11155
$as_echo "$ac_cv_struct_tm" >&6; }
if test $ac_cv_struct_tm = sys/time.h; then
11156

11157
$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
11158

11159
fi
11160 11161


11162
# Checks for library functions.
11163
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
11164
$as_echo_n "checking for working strtod... " >&6; }
11165
if test "${ac_cv_func_strtod+set}" = set; then :
11166 11167
  $as_echo_n "(cached) " >&6
else
11168
  if test "$cross_compiling" = yes; then :
11169 11170
  ac_cv_func_strtod=no
else
11171
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11172
/* end confdefs.h.  */
11173

11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189
$ac_includes_default
#ifndef strtod
double strtod ();
#endif
int
main()
{
  {
    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
    char *string = " +69";
    char *term;
    double value;
    value = strtod (string, &term);
    if (value != 69 || term != (string + 4))
      return 1;
  }
11190

11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201
  {
    /* Under Solaris 2.4, strtod returns the wrong value for the
       terminating character under some conditions.  */
    char *string = "NaN";
    char *term;
    strtod (string, &term);
    if (term != string && *(term - 1) == 0)
      return 1;
  }
  return 0;
}
11202

11203
_ACEOF
11204
if ac_fn_c_try_run "$LINENO"; then :
11205 11206
  ac_cv_func_strtod=yes
else
11207
  ac_cv_func_strtod=no
11208
fi
11209 11210
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
11211
fi
11212

11213
fi
11214
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
11215 11216 11217 11218 11219 11220 11221
$as_echo "$ac_cv_func_strtod" >&6; }
if test $ac_cv_func_strtod = no; then
  case " $LIBOBJS " in
  *" strtod.$ac_objext "* ) ;;
  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
 ;;
esac
11222

11223 11224
ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
if test "x$ac_cv_func_pow" = x""yes; then :
11225

11226
fi
11227

11228
if test $ac_cv_func_pow = no; then
11229
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
11230
$as_echo_n "checking for pow in -lm... " >&6; }
11231
if test "${ac_cv_lib_m_pow+set}" = set; then :
11232 11233 11234 11235
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lm  $LIBS"
11236
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11237
/* end confdefs.h.  */
11238

11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char pow ();
int
main ()
{
return pow ();
  ;
  return 0;
}
_ACEOF
11254
if ac_fn_c_try_link "$LINENO"; then :
11255 11256
  ac_cv_lib_m_pow=yes
else
11257
  ac_cv_lib_m_pow=no
11258
fi
11259 11260
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
11261 11262
LIBS=$ac_check_lib_save_LIBS
fi
11263
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
11264
$as_echo "$ac_cv_lib_m_pow" >&6; }
11265
if test "x$ac_cv_lib_m_pow" = x""yes; then :
11266 11267
  POW_LIB=-lm
else
11268
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
11269 11270
$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
fi
11271

11272
fi
11273

11274
fi
11275

11276
for ac_func in memset
11277 11278 11279
do :
  ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
if test "x$ac_cv_func_memset" = x""yes; then :
11280
  cat >>confdefs.h <<_ACEOF
11281
#define HAVE_MEMSET 1
11282 11283 11284
_ACEOF

else
11285
  as_fn_error "memset not found in libc" "$LINENO" 5
11286
fi
11287
done
11288

11289
for ac_func in pow
11290 11291 11292
do :
  ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
if test "x$ac_cv_func_pow" = x""yes; then :
11293
  cat >>confdefs.h <<_ACEOF
11294
#define HAVE_POW 1
11295 11296
_ACEOF

11297
else
11298
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
11299
$as_echo_n "checking for pow in -lm... " >&6; }
11300
if test "${ac_cv_lib_m_pow+set}" = set; then :
11301
  $as_echo_n "(cached) " >&6
11302
else
11303 11304
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lm  $LIBS"
11305
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11306
/* end confdefs.h.  */
11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char pow ();
int
main ()
{
return pow ();
  ;
  return 0;
11321 11322 11323
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
11324
  ac_cv_lib_m_pow=yes
11325
else
11326
  ac_cv_lib_m_pow=no
11327
fi
11328 11329
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
11330 11331
LIBS=$ac_check_lib_save_LIBS
fi
11332
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
11333
$as_echo "$ac_cv_lib_m_pow" >&6; }
11334
if test "x$ac_cv_lib_m_pow" = x""yes; then :
11335 11336 11337
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBM 1
_ACEOF
11338

11339 11340 11341
  LIBS="-lm $LIBS"

else
11342
  as_fn_error "cannot find pow" "$LINENO" 5
11343 11344 11345 11346 11347
fi

fi
done

11348
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
11349
$as_echo_n "checking for zlibVersion in -lz... " >&6; }
11350
if test "${ac_cv_lib_z_zlibVersion+set}" = set; then :
11351 11352 11353 11354
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lz  $LIBS"
11355
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11356
/* end confdefs.h.  */
11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char zlibVersion ();
int
main ()
{
return zlibVersion ();
  ;
  return 0;
}
11372
_ACEOF
11373
if ac_fn_c_try_link "$LINENO"; then :
11374
  ac_cv_lib_z_zlibVersion=yes
11375
else
11376
  ac_cv_lib_z_zlibVersion=no
11377
fi
11378 11379
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
11380
LIBS=$ac_check_lib_save_LIBS
11381
fi
11382
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
11383
$as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
11384
if test "x$ac_cv_lib_z_zlibVersion" = x""yes; then :
11385
  cat >>confdefs.h <<_ACEOF
11386
#define HAVE_LIBZ 1
11387 11388
_ACEOF

11389
  LIBS="-lz $LIBS"
11390

11391
else
11392
  as_fn_error "zlib not installed" "$LINENO" 5
11393
fi
11394 11395


11396
LIBPNG_DEFINES=-DPNG_CONFIGURE_LIBPNG
11397
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler code in pnggccrd.c can be compiled without PNG_NO_MMX_CODE" >&5
11398
$as_echo_n "checking if assembler code in pnggccrd.c can be compiled without PNG_NO_MMX_CODE... " >&6; }
11399
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11400
/* end confdefs.h.  */
11401
#include "$srcdir/pnggccrd.c"
11402 11403 11404
int
main ()
{
11405
return 0;
11406 11407 11408 11409
  ;
  return 0;
}
_ACEOF
11410 11411
if ac_fn_c_try_compile "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11412 11413
$as_echo "yes" >&6; }
  LIBPNG_NO_MMX=""
11414
else
11415
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11416 11417 11418 11419 11420 11421 11422 11423
$as_echo "no" >&6; }
  LIBPNG_NO_MMX=-DPNG_NO_MMX_CODE
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
LIBPNG_DEFINES=$LIBPNG_DEFINES\ $LIBPNG_NO_MMX



11424
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
11425 11426 11427 11428
$as_echo_n "checking if libraries can be versioned... " >&6; }
GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
if test "$GLD"; then
    have_ld_version_script=yes
11429
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11430 11431 11432
$as_echo "yes" >&6; }
else
    have_ld_version_script=no
11433
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11434
$as_echo "no" >&6; }
11435
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** You have not enabled versioned symbols." >&5
11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447
$as_echo "$as_me: WARNING: *** You have not enabled versioned symbols." >&2;}
fi
 if test "$have_ld_version_script" = "yes"; then
  HAVE_LD_VERSION_SCRIPT_TRUE=
  HAVE_LD_VERSION_SCRIPT_FALSE='#'
else
  HAVE_LD_VERSION_SCRIPT_TRUE='#'
  HAVE_LD_VERSION_SCRIPT_FALSE=
fi


if test "$have_ld_version_script" = "yes"; then
11448
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symbol prefix" >&5
11449 11450 11451 11452 11453 11454
$as_echo_n "checking for symbol prefix... " >&6; }
    SYMBOL_PREFIX=`echo "PREFIX=__USER_LABEL_PREFIX__" \
                   | ${CPP-${CC-gcc} -E} - 2>&1 \
                   | ${EGREP-grep} "^PREFIX=" \
                   | ${SED-sed} "s:^PREFIX=::"`

11455
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMBOL_PREFIX" >&5
11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468
$as_echo "$SYMBOL_PREFIX" >&6; }
fi

# Substitutions for .in files





# Additional arguments (and substitutions)
# Allow the pkg-config directory to be set

# Check whether --with-pkgconfigdir was given.
11469
if test "${with_pkgconfigdir+set}" = set; then :
11470 11471 11472 11473 11474 11475 11476
  withval=$with_pkgconfigdir; pkgconfigdir=${withval}
else
  pkgconfigdir='${libdir}/pkgconfig'
fi



11477
{ $as_echo "$as_me:${as_lineno-$LINENO}: pkgconfig directory is ${pkgconfigdir}" >&5
11478 11479 11480 11481 11482
$as_echo "$as_me: pkgconfig directory is ${pkgconfigdir}" >&6;}

# Make the *-config binary config scripts optional

# Check whether --with-binconfigs was given.
11483
if test "${with_binconfigs+set}" = set; then :
11484 11485
  withval=$with_binconfigs; if test "${withval}" = no; then
		binconfigs=
11486
		{ $as_echo "$as_me:${as_lineno-$LINENO}: libpng-config scripts will not be built" >&5
11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500
$as_echo "$as_me: libpng-config scripts will not be built" >&6;}
	else
		binconfigs='${binconfigs}'
	fi
else
  binconfigs='${binconfigs}'
fi



# Allow the old version number library, libpng.so, to be removed from
# the build

# Check whether --with-libpng-compat was given.
11501
if test "${with_libpng_compat+set}" = set; then :
11502 11503
  withval=$with_libpng_compat; if test "${withval}" = no; then
		compatlib=
11504
		{ $as_echo "$as_me:${as_lineno-$LINENO}: libpng.so will not be built" >&5
11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547
$as_echo "$as_me: libpng.so will not be built" >&6;}
	else
		compatlib=libpng.la
	fi
else
  compatlib=libpng.la
fi



# Config files, substituting as above
ac_config_files="$ac_config_files Makefile libpng.pc:scripts/libpng.pc-configure.in"

ac_config_files="$ac_config_files libpng-config:scripts/libpng-config.in"


cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
#
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
# `ac_cv_env_foo' variables (set or unset) will be overridden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.

_ACEOF

# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, we kill variables containing newlines.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
11548
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11549
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11550 11551 11552 11553
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11554
      *) { eval $ac_var=; unset $ac_var;} ;;
11555 11556 11557 11558 11559 11560 11561
      esac ;;
    esac
  done

  (set) 2>&1 |
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
11562 11563
      # `set' does not quote correctly, so add quotes: double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \.
11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585
      sed -n \
	"s/'/'\\\\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;; #(
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
) |
  sed '
     /^ac_cv_env_/b end
     t clear
     :clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     :end' >>confcache
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  if test -w "$cache_file"; then
    test "x$cache_file" != "x/dev/null" &&
11586
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11587 11588 11589
$as_echo "$as_me: updating cache $cache_file" >&6;}
    cat confcache >$cache_file
  else
11590
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  fi
fi
rm -f confcache

test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'

DEFS=-DHAVE_CONFIG_H

ac_libobjs=
ac_ltlibobjs=
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  # 1. Remove the extension, and $U if already installed.
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  #    will be set to the directory where LIBOBJS objects are built.
11610 11611
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11612 11613 11614 11615
done
LIBOBJS=$ac_libobjs

LTLIBOBJS=$ac_ltlibobjs
11616

11617

11618 11619 11620 11621 11622 11623 11624 11625
 if test -n "$EXEEXT"; then
  am__EXEEXT_TRUE=
  am__EXEEXT_FALSE='#'
else
  am__EXEEXT_TRUE='#'
  am__EXEEXT_FALSE=
fi

11626
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11627 11628
  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
11629 11630
fi
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11631 11632
  as_fn_error "conditional \"AMDEP\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
11633 11634
fi
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11635 11636
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
11637 11638
fi
if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
11639 11640
  as_fn_error "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
11641 11642
fi

11643 11644 11645 11646
: ${CONFIG_STATUS=./config.status}
ac_write_fail=0
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11647
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11648
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11649 11650
as_write_fail=0
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11651 11652 11653 11654 11655 11656 11657 11658 11659
#! $SHELL
# Generated by $as_me.
# Run this file to recreate the current configuration.
# Compiler output produced by configure, useful for debugging
# configure, is in config.log if it exists.

debug=false
ac_cs_recheck=false
ac_cs_silent=false
11660

11661 11662 11663 11664 11665 11666 11667
SHELL=\${CONFIG_SHELL-$SHELL}
export SHELL
_ASEOF
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
## -------------------- ##
## M4sh Initialization. ##
## -------------------- ##
11668

11669 11670
# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
11671
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11672 11673 11674 11675 11676 11677
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@"}'='"$@"'
  setopt NO_GLOB_SUBST
11678
else
11679 11680 11681 11682 11683
  case `(set -o) 2>/dev/null` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
11684 11685 11686 11687
esac
fi


11688 11689 11690 11691 11692 11693 11694
as_nl='
'
export as_nl
# Printing a long string crashes Solaris 7 /usr/bin/printf.
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11695 11696 11697 11698 11699 11700 11701
# Prefer a ksh shell builtin over an external printf program on Solaris,
# but without wasting forks for bash or zsh.
if test -z "$BASH_VERSION$ZSH_VERSION" \
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='print -r --'
  as_echo_n='print -rn --'
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11702 11703 11704 11705 11706 11707 11708 11709 11710 11711
  as_echo='printf %s\n'
  as_echo_n='printf %s'
else
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
    as_echo_n='/usr/ucb/echo -n'
  else
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
    as_echo_n_body='eval
      arg=$1;
11712
      case $arg in #(
11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724
      *"$as_nl"*)
	expr "X$arg" : "X\\(.*\\)$as_nl";
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
      esac;
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
    '
    export as_echo_n_body
    as_echo_n='sh -c $as_echo_n_body as_echo'
  fi
  export as_echo_body
  as_echo='sh -c $as_echo_body as_echo'
fi
11725

11726 11727 11728 11729 11730 11731 11732
# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  PATH_SEPARATOR=:
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
      PATH_SEPARATOR=';'
  }
11733 11734 11735
fi


11736 11737 11738 11739 11740 11741
# IFS
# We need space, tab and new line, in precisely that order.  Quoting is
# there to prevent editors from complaining about space-tab.
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
# splitting by setting IFS to empty value.)
IFS=" ""	$as_nl"
11742

11743
# Find who we are.  Look in the path if we contain no directory separator.
11744
case $0 in #((
11745 11746 11747 11748 11749 11750
  *[\\/]* ) as_myself=$0 ;;
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
11751 11752
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  done
11753
IFS=$as_save_IFS
11754

11755 11756 11757 11758 11759 11760 11761 11762 11763
     ;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
  as_myself=$0
fi
if test ! -f "$as_myself"; then
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11764
  exit 1
11765
fi
11766

11767 11768 11769 11770 11771 11772 11773
# Unset variables that we do not need and which cause bugs (e.g. in
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
# suppresses any "Segmentation fault" message there.  '((' could
# trigger a bug in pdksh 5.2.14.
for as_var in BASH_ENV ENV MAIL MAILPATH
do eval test x\${$as_var+set} = xset \
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11774 11775 11776 11777
done
PS1='$ '
PS2='> '
PS4='+ '
11778

11779 11780 11781 11782 11783
# NLS nuisances.
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE
11784

11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867
# CDPATH.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH


# as_fn_error ERROR [LINENO LOG_FD]
# ---------------------------------
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
# script with status $?, using 1 if that was 0.
as_fn_error ()
{
  as_status=$?; test $as_status -eq 0 && as_status=1
  if test "$3"; then
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  fi
  $as_echo "$as_me: error: $1" >&2
  as_fn_exit $as_status
} # as_fn_error


# as_fn_set_status STATUS
# -----------------------
# Set $? to STATUS, without forking.
as_fn_set_status ()
{
  return $1
} # as_fn_set_status

# as_fn_exit STATUS
# -----------------
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
as_fn_exit ()
{
  set +e
  as_fn_set_status $1
  exit $1
} # as_fn_exit

# as_fn_unset VAR
# ---------------
# Portably unset VAR.
as_fn_unset ()
{
  { eval $1=; unset $1;}
}
as_unset=as_fn_unset
# as_fn_append VAR VALUE
# ----------------------
# Append the text in VALUE to the end of the definition contained in VAR. Take
# advantage of any shell optimizations that allow amortized linear growth over
# repeated appends, instead of the typical quadratic growth present in naive
# implementations.
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  eval 'as_fn_append ()
  {
    eval $1+=\$2
  }'
else
  as_fn_append ()
  {
    eval $1=\$$1\$2
  }
fi # as_fn_append

# as_fn_arith ARG...
# ------------------
# Perform arithmetic evaluation on the ARGs, and store the result in the
# global $as_val. Take advantage of shells that can avoid forks. The arguments
# must be portable across $(()) and expr.
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  eval 'as_fn_arith ()
  {
    as_val=$(( $* ))
  }'
else
  as_fn_arith ()
  {
    as_val=`expr "$@" || test $? -eq 1`
  }
fi # as_fn_arith


11868 11869 11870
if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  as_expr=expr
11871
else
11872
  as_expr=false
11873
fi
11874 11875 11876 11877 11878

if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  as_basename=basename
else
  as_basename=false
11879 11880
fi

11881 11882 11883 11884 11885
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  as_dirname=dirname
else
  as_dirname=false
fi
11886

11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904
as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
11905

11906 11907 11908 11909 11910 11911
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits
11912

11913
ECHO_C= ECHO_N= ECHO_T=
11914
case `echo -n x` in #(((((
11915
-n*)
11916
  case `echo 'xy\c'` in
11917
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11918 11919 11920
  xy)  ECHO_C='\c';;
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
       ECHO_T='	';;
11921 11922 11923 11924
  esac;;
*)
  ECHO_N='-n';;
esac
11925

11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948
rm -f conf$$ conf$$.exe conf$$.file
if test -d conf$$.dir; then
  rm -f conf$$.dir/conf$$.file
else
  rm -f conf$$.dir
  mkdir conf$$.dir 2>/dev/null
fi
if (echo >conf$$.file) 2>/dev/null; then
  if ln -s conf$$.file conf$$ 2>/dev/null; then
    as_ln_s='ln -s'
    # ... but there are two gotchas:
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    # In both cases, we have to default to `cp -p'.
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
      as_ln_s='cp -p'
  elif ln conf$$.file conf$$ 2>/dev/null; then
    as_ln_s=ln
  else
    as_ln_s='cp -p'
  fi
else
  as_ln_s='cp -p'
11949
fi
11950 11951
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null
11952

11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000

# as_fn_mkdir_p
# -------------
# Create "$as_dir" as a directory, including parents if necessary.
as_fn_mkdir_p ()
{

  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || eval $as_mkdir_p || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"


} # as_fn_mkdir_p
12001
if mkdir -p . 2>/dev/null; then
12002
  as_mkdir_p='mkdir -p "$as_dir"'
12003
else
12004 12005 12006
  test -d ./-p && rmdir ./-p
  as_mkdir_p=false
fi
12007

12008 12009
if test -x / >/dev/null 2>&1; then
  as_test_x='test -x'
12010
else
12011 12012 12013 12014 12015 12016 12017 12018 12019 12020
  if ls -dL / >/dev/null 2>&1; then
    as_ls_L_option=L
  else
    as_ls_L_option=
  fi
  as_test_x='
    eval sh -c '\''
      if test -d "$1"; then
	test -d "$1/.";
      else
12021
	case $1 in #(
12022 12023
	-*)set "./$1";;
	esac;
12024
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038
	???[sx]*):;;*)false;;esac;fi
    '\'' sh
  '
fi
as_executable_p=$as_test_x

# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"

# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"


exec 6>&1
12039 12040 12041 12042 12043
## ----------------------------------- ##
## Main body of $CONFIG_STATUS script. ##
## ----------------------------------- ##
_ASEOF
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12044

12045 12046
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# Save the log message, to keep $0 and so on meaningful, and to
12047 12048 12049
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
12050
This file was extended by libpng $as_me 1.2.41beta16, which was
12051
generated by GNU Autoconf 2.64.  Invocation command line was
12052 12053 12054 12055 12056 12057 12058 12059 12060

  CONFIG_FILES    = $CONFIG_FILES
  CONFIG_HEADERS  = $CONFIG_HEADERS
  CONFIG_LINKS    = $CONFIG_LINKS
  CONFIG_COMMANDS = $CONFIG_COMMANDS
  $ $0 $@

on `(hostname || uname -n) 2>/dev/null | sed 1q`
"
12061

12062
_ACEOF
12063

12064 12065 12066 12067 12068 12069 12070 12071 12072
case $ac_config_files in *"
"*) set x $ac_config_files; shift; ac_config_files=$*;;
esac

case $ac_config_headers in *"
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
esac


12073 12074 12075 12076 12077
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
# Files that config.status was made for.
config_files="$ac_config_files"
config_headers="$ac_config_headers"
config_commands="$ac_config_commands"
12078

12079
_ACEOF
12080

12081 12082
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ac_cs_usage="\
12083 12084 12085
\`$as_me' instantiates files and other configuration actions
from templates according to the current configuration.  Unless the files
and actions are specified as TAGs, all are instantiated by default.
12086

12087
Usage: $0 [OPTION]... [TAG]...
12088

12089 12090
  -h, --help       print this help, then exit
  -V, --version    print version number and configuration settings, then exit
12091 12092
  -q, --quiet, --silent
                   do not print progress messages
12093 12094
  -d, --debug      don't remove temporary files
      --recheck    update $as_me by reconfiguring in the same conditions
12095
      --file=FILE[:TEMPLATE]
12096
                   instantiate the configuration file FILE
12097
      --header=FILE[:TEMPLATE]
12098
                   instantiate the configuration header FILE
12099

12100 12101
Configuration files:
$config_files
12102

12103 12104
Configuration headers:
$config_headers
12105

12106 12107
Configuration commands:
$config_commands
12108

12109
Report bugs to <png-mng-implement@lists.sourceforge.net>."
12110 12111

_ACEOF
12112 12113
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_version="\\
12114
libpng config.status 1.2.41beta16
12115
configured by $0, generated by GNU Autoconf 2.64,
12116
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12117

12118
Copyright (C) 2009 Free Software Foundation, Inc.
12119 12120
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."
12121

12122 12123 12124 12125 12126 12127
ac_pwd='$ac_pwd'
srcdir='$srcdir'
INSTALL='$INSTALL'
MKDIR_P='$MKDIR_P'
AWK='$AWK'
test -n "\$AWK" || AWK=awk
12128 12129
_ACEOF

12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# The default lists apply if the user does not specify any file.
ac_need_defaults=:
while test $# != 0
do
  case $1 in
  --*=*)
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
    ac_shift=:
    ;;
  *)
    ac_option=$1
    ac_optarg=$2
    ac_shift=shift
    ;;
  esac
12147

12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160
  case $ac_option in
  # Handling of the options.
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    ac_cs_recheck=: ;;
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
    $as_echo "$ac_cs_version"; exit ;;
  --debug | --debu | --deb | --de | --d | -d )
    debug=: ;;
  --file | --fil | --fi | --f )
    $ac_shift
    case $ac_optarg in
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
12161
    as_fn_append CONFIG_FILES " '$ac_optarg'"
12162 12163 12164 12165 12166 12167
    ac_need_defaults=false;;
  --header | --heade | --head | --hea )
    $ac_shift
    case $ac_optarg in
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
12168
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12169 12170 12171
    ac_need_defaults=false;;
  --he | --h)
    # Conflict between --help and --header
12172 12173
    as_fn_error "ambiguous option: \`$1'
Try \`$0 --help' for more information.";;
12174 12175 12176 12177 12178
  --help | --hel | -h )
    $as_echo "$ac_cs_usage"; exit ;;
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
    ac_cs_silent=: ;;
12179

12180
  # This is an error.
12181 12182
  -*) as_fn_error "unrecognized option: \`$1'
Try \`$0 --help' for more information." ;;
12183

12184
  *) as_fn_append ac_config_targets " $1"
12185
     ac_need_defaults=false ;;
12186

12187 12188 12189
  esac
  shift
done
12190

12191
ac_configure_extra_args=
12192

12193 12194 12195 12196
if $ac_cs_silent; then
  exec 6>/dev/null
  ac_configure_extra_args="$ac_configure_extra_args --silent"
fi
12197

12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
if \$ac_cs_recheck; then
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  shift
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  CONFIG_SHELL='$SHELL'
  export CONFIG_SHELL
  exec "\$@"
fi

_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
exec 5>>config.log
12212
{
12213 12214 12215 12216 12217 12218 12219
  echo
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
## Running $as_me. ##
_ASBOX
  $as_echo "$ac_log"
} >&5

12220
_ACEOF
12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 12295
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
#
# INIT-COMMANDS
#
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"


# The HP-UX ksh and POSIX shell print the target directory to stdout
# if CDPATH is set.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH

sed_quote_subst='$sed_quote_subst'
double_quote_subst='$double_quote_subst'
delay_variable_subst='$delay_variable_subst'
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12296 12297
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379 12380 12381 12382 12383 12384 12385 12386 12387 12388 12389 12390 12391 12392 12393 12394
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'

LTCC='$LTCC'
LTCFLAGS='$LTCFLAGS'
compiler='$compiler_DEFAULT'

# Quote evaled strings.
for var in SED \
GREP \
EGREP \
FGREP \
LD \
NM \
LN_S \
lt_SP2NL \
lt_NL2SP \
reload_flag \
deplibs_check_method \
file_magic_cmd \
AR \
AR_FLAGS \
STRIP \
RANLIB \
CC \
CFLAGS \
compiler \
lt_cv_sys_global_symbol_pipe \
lt_cv_sys_global_symbol_to_cdecl \
lt_cv_sys_global_symbol_to_c_name_address \
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
SHELL \
ECHO \
lt_prog_compiler_no_builtin_flag \
lt_prog_compiler_wl \
lt_prog_compiler_pic \
lt_prog_compiler_static \
lt_cv_prog_compiler_c_o \
need_locks \
DSYMUTIL \
NMEDIT \
LIPO \
12395 12396
OTOOL \
OTOOL64 \
12397 12398 12399 12400 12401 12402 12403 12404 12405 12406 12407 12408 12409 12410 12411 12412 12413 12414 12415 12416 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452 12453 12454 12455
shrext_cmds \
export_dynamic_flag_spec \
whole_archive_flag_spec \
compiler_needs_object \
with_gnu_ld \
allow_undefined_flag \
no_undefined_flag \
hardcode_libdir_flag_spec \
hardcode_libdir_flag_spec_ld \
hardcode_libdir_separator \
fix_srcfile_path \
exclude_expsyms \
include_expsyms \
file_list_spec \
variables_saved_for_relink \
libname_spec \
library_names_spec \
soname_spec \
finish_eval \
old_striplib \
striplib; do
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
    *[\\\\\\\`\\"\\\$]*)
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
      ;;
    *)
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
      ;;
    esac
done

# Double-quote double-evaled strings.
for var in reload_cmds \
old_postinstall_cmds \
old_postuninstall_cmds \
old_archive_cmds \
extract_expsyms_cmds \
old_archive_from_new_cmds \
old_archive_from_expsyms_cmds \
archive_cmds \
archive_expsym_cmds \
module_cmds \
module_expsym_cmds \
export_symbols_cmds \
prelink_cmds \
postinstall_cmds \
postuninstall_cmds \
finish_cmds \
sys_lib_search_path_spec \
sys_lib_dlsearch_path_spec; do
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
    *[\\\\\\\`\\"\\\$]*)
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
      ;;
    *)
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
      ;;
    esac
done
12456

12457 12458 12459 12460 12461
# Fix-up fallback echo if it was mangled by the above quoting rules.
case \$lt_ECHO in
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  ;;
esac
12462

12463 12464 12465 12466 12467 12468 12469 12470
ac_aux_dir='$ac_aux_dir'
xsi_shell='$xsi_shell'
lt_shell_append='$lt_shell_append'

# See if we are running on zsh, and set the options which allow our
# commands through without removal of \ escapes INIT.
if test -n "\${ZSH_VERSION+set}" ; then
   setopt NO_GLOB_SUBST
12471 12472 12473
fi


12474 12475 12476 12477 12478 12479
    PACKAGE='$PACKAGE'
    VERSION='$VERSION'
    TIMESTAMP='$TIMESTAMP'
    RM='$RM'
    ofile='$ofile'

12480 12481 12482 12483 12484



_ACEOF

12485
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12486

12487 12488 12489 12490 12491 12492 12493 12494 12495 12496
# Handling of arguments.
for ac_config_target in $ac_config_targets
do
  case $ac_config_target in
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    "libpng.pc") CONFIG_FILES="$CONFIG_FILES libpng.pc:scripts/libpng.pc-configure.in" ;;
    "libpng-config") CONFIG_FILES="$CONFIG_FILES libpng-config:scripts/libpng-config.in" ;;
12497

12498
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12499
  esac
12500
done
12501

12502

12503 12504 12505 12506 12507 12508 12509 12510 12511
# If the user did not use the arguments to specify the items to instantiate,
# then the envvar interface is used.  Set only those that are not.
# We use the long form for the default assignment because of an extremely
# bizarre bug on SunOS 4.1.3.
if $ac_need_defaults; then
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
fi
12512

12513 12514 12515 12516 12517 12518 12519
# Have a temporary directory for convenience.  Make it in the build tree
# simply because there is no reason against having it here, and in addition,
# creating and moving files from /tmp can sometimes cause problems.
# Hook for its removal unless debugging.
# Note that there is a small window in which the directory will not be cleaned:
# after its creation but before its name has been assigned to `$tmp'.
$debug ||
12520
{
12521 12522 12523 12524
  tmp=
  trap 'exit_status=$?
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
' 0
12525
  trap 'as_fn_exit 1' 1 2 13 15
12526
}
12527
# Create a (secure) tmp directory for tmp files.
12528

12529 12530 12531 12532 12533 12534 12535
{
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  test -n "$tmp" && test -d "$tmp"
}  ||
{
  tmp=./conf$$-$RANDOM
  (umask 077 && mkdir "$tmp")
12536
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12537

12538 12539 12540 12541 12542 12543
# Set up the scripts for CONFIG_FILES section.
# No need to generate them if there are no CONFIG_FILES.
# This happens for instance with `./config.status config.h'.
if test -n "$CONFIG_FILES"; then


12544 12545 12546 12547 12548 12549 12550
ac_cr=`echo X | tr X '\015'`
# On cygwin, bash can eat \r inside `` if the user requested igncr.
# But we know of no other shell where ac_cr would be empty at this
# point, so we can use a bashism as a fallback.
if test "x$ac_cr" = x; then
  eval ac_cr=\$\'\\r\'
fi
12551 12552
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12553
  ac_cs_awk_cr='\r'
12554 12555
else
  ac_cs_awk_cr=$ac_cr
12556
fi
12557 12558

echo 'BEGIN {' >"$tmp/subs1.awk" &&
12559 12560 12561
_ACEOF


12562 12563 12564 12565 12566
{
  echo "cat >conf$$subs.awk <<_ACEOF" &&
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  echo "_ACEOF"
} >conf$$subs.sh ||
12567
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12568 12569 12570 12571
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
  . ./conf$$subs.sh ||
12572
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12573

12574 12575
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  if test $ac_delim_n = $ac_delim_num; then
12576 12577
    break
  elif $ac_last_try; then
12578
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12579 12580 12581 12582 12583 12584 12585 12586 12587 12588 12589 12590 12591 12592 12593 12594 12595 12596 12597 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done
rm -f conf$$subs.sh

cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
_ACEOF
sed -n '
h
s/^/S["/; s/!.*/"]=/
p
g
s/^[^!]*!//
:repl
t repl
s/'"$ac_delim"'$//
t delim
:nl
h
s/\(.\{148\}\).*/\1/
t more1
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
p
n
b repl
:more1
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
p
g
s/.\{148\}//
t nl
:delim
h
s/\(.\{148\}\).*/\1/
t more2
s/["\\]/\\&/g; s/^/"/; s/$/"/
p
b
:more2
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
p
g
s/.\{148\}//
t delim
' <conf$$subs.awk | sed '
/^[^""]/{
  N
  s/\n//
}
' >>$CONFIG_STATUS || ac_write_fail=1
rm -f conf$$subs.awk
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
_ACAWK
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  for (key in S) S_is_set[key] = 1
  FS = ""
12637

12638
}
12639
{
12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656
  line = $ 0
  nfields = split(line, field, "@")
  substed = 0
  len = length(field[1])
  for (i = 2; i < nfields; i++) {
    key = field[i]
    keylen = length(key)
    if (S_is_set[key]) {
      value = S[key]
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
      len += length(value) + length(field[++i])
      substed = 1
    } else
      len += 1 + keylen
  }

  print line
12657
}
12658 12659

_ACAWK
12660
_ACEOF
12661 12662 12663
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12664
else
12665 12666
  cat
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12667
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
12668
_ACEOF
12669

12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682
# VPATH may cause trouble with some makes, so we remove $(srcdir),
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
# trailing colons and then remove the whole line if VPATH becomes empty
# (actually we leave an empty line to preserve line numbers).
if test "x$srcdir" = x.; then
  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
s/:*\$(srcdir):*/:/
s/:*\${srcdir}:*/:/
s/:*@srcdir@:*/:/
s/^\([^=]*=[	 ]*\):*/\1/
s/:*$//
s/^[^=]*=[	 ]*$//
}'
12683 12684
fi

12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
fi # test -n "$CONFIG_FILES"

# Set up the scripts for CONFIG_HEADERS section.
# No need to generate them if there are no CONFIG_HEADERS.
# This happens for instance with `./config.status Makefile'.
if test -n "$CONFIG_HEADERS"; then
cat >"$tmp/defines.awk" <<\_ACAWK ||
BEGIN {
_ACEOF

# Transform confdefs.h into an awk script `defines.awk', embedded as
# here-document in config.status, that substitutes the proper values into
# config.h.in to produce config.h.

# Create a delimiter string that does not exist in confdefs.h, to ease
# handling of long lines.
ac_delim='%!_!# '
for ac_last_try in false false :; do
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  if test -z "$ac_t"; then
    break
  elif $ac_last_try; then
12708
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12709 12710 12711 12712 12713 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731 12732 12733 12734 12735 12736 12737 12738 12739 12740 12741 12742 12743 12744 12745 12746 12747 12748 12749 12750 12751 12752 12753 12754 12755 12756 12757 12758 12759 12760 12761 12762 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done

# For the awk script, D is an array of macro values keyed by name,
# likewise P contains macro parameters if any.  Preserve backslash
# newline sequences.

ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
sed -n '
s/.\{148\}/&'"$ac_delim"'/g
t rset
:rset
s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
t def
d
:def
s/\\$//
t bsnl
s/["\\]/\\&/g
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
D["\1"]=" \3"/p
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
d
:bsnl
s/["\\]/\\&/g
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
D["\1"]=" \3\\\\\\n"\\/p
t cont
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
t cont
d
:cont
n
s/.\{148\}/&'"$ac_delim"'/g
t clear
:clear
s/\\$//
t bsnlc
s/["\\]/\\&/g; s/^/"/; s/$/"/p
d
:bsnlc
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
b cont
' <confdefs.h | sed '
s/'"$ac_delim"'/"\\\
"/g' >>$CONFIG_STATUS || ac_write_fail=1

cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  for (key in D) D_is_set[key] = 1
  FS = ""
}
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  line = \$ 0
  split(line, arg, " ")
  if (arg[1] == "#") {
    defundef = arg[2]
    mac1 = arg[3]
  } else {
    defundef = substr(arg[1], 2)
    mac1 = arg[2]
  }
  split(mac1, mac2, "(") #)
  macro = mac2[1]
12774
  prefix = substr(line, 1, index(line, defundef) - 1)
12775 12776 12777 12778 12779 12780 12781 12782 12783
  if (D_is_set[macro]) {
    # Preserve the white space surrounding the "#".
    print prefix "define", macro P[macro] D[macro]
    next
  } else {
    # Replace #undef with comments.  This is necessary, for example,
    # in the case of _POSIX_SOURCE, which is predefined and required
    # on some systems where configure will not decide to define it.
    if (defundef == "undef") {
12784
      print "/*", prefix defundef, macro, "*/"
12785 12786 12787 12788 12789 12790 12791 12792
      next
    }
  }
}
{ print }
_ACAWK
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12793
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
12794
fi # test -n "$CONFIG_HEADERS"
12795 12796


12797 12798 12799 12800 12801 12802 12803 12804 12805
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
shift
for ac_tag
do
  case $ac_tag in
  :[FHLC]) ac_mode=$ac_tag; continue;;
  esac
  case $ac_mode$ac_tag in
  :[FHL]*:*);;
12806
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12807 12808 12809 12810 12811 12812 12813 12814 12815 12816
  :[FH]-) ac_tag=-:-;;
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  esac
  ac_save_IFS=$IFS
  IFS=:
  set x $ac_tag
  IFS=$ac_save_IFS
  shift
  ac_file=$1
  shift
12817

12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833
  case $ac_mode in
  :L) ac_source=$1;;
  :[FH])
    ac_file_inputs=
    for ac_f
    do
      case $ac_f in
      -) ac_f="$tmp/stdin";;
      *) # Look for the file first in the build tree, then in the source tree
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
	 # because $ac_f cannot contain `:'.
	 test -f "$ac_f" ||
	   case $ac_f in
	   [\\/$]*) false;;
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
	   esac ||
12834
	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12835 12836
      esac
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12837
      as_fn_append ac_file_inputs " '$ac_f'"
12838
    done
12839

12840 12841 12842 12843 12844 12845 12846 12847
    # Let's still pretend it is `configure' which instantiates (i.e., don't
    # use $as_me), people would be surprised to read:
    #    /* config.h.  Generated by config.status.  */
    configure_input='Generated from '`
	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
	`' by configure.'
    if test x"$ac_file" != x-; then
      configure_input="$ac_file.  $configure_input"
12848
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12849 12850 12851 12852 12853 12854 12855 12856 12857
$as_echo "$as_me: creating $ac_file" >&6;}
    fi
    # Neutralize special characters interpreted by sed in replacement strings.
    case $configure_input in #(
    *\&* | *\|* | *\\* )
       ac_sed_conf_input=`$as_echo "$configure_input" |
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
    *) ac_sed_conf_input=$configure_input;;
    esac
12858

12859 12860
    case $ac_tag in
    *:-:* | *:-) cat >"$tmp/stdin" \
12861
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12862 12863 12864
    esac
    ;;
  esac
12865

12866 12867 12868 12869 12870 12871 12872 12873 12874 12875 12876 12877 12878 12879 12880 12881 12882 12883 12884 12885 12886 12887 12888
  ac_dir=`$as_dirname -- "$ac_file" ||
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$ac_file" : 'X\(//\)[^/]' \| \
	 X"$ac_file" : 'X\(//\)$' \| \
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$ac_file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
12889
  as_dir="$ac_dir"; as_fn_mkdir_p
12890
  ac_builddir=.
12891

12892 12893 12894 12895 12896 12897 12898 12899 12900 12901 12902 12903 12904 12905 12906
case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix
12907

12908 12909 12910 12911 12912 12913 12914 12915 12916 12917 12918 12919 12920 12921 12922
case $srcdir in
  .)  # We are building in place.
    ac_srcdir=.
    ac_top_srcdir=$ac_top_builddir_sub
    ac_abs_top_srcdir=$ac_pwd ;;
  [\\/]* | ?:[\\/]* )  # Absolute name.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir
    ac_abs_top_srcdir=$srcdir ;;
  *) # Relative name.
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_build_prefix$srcdir
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
esac
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12923 12924


12925 12926 12927 12928 12929
  case $ac_mode in
  :F)
  #
  # CONFIG_FILE
  #
12930

12931 12932 12933 12934 12935 12936 12937 12938 12939 12940
  case $INSTALL in
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  esac
  ac_MKDIR_P=$MKDIR_P
  case $MKDIR_P in
  [\\/$]* | ?:[\\/]* ) ;;
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  esac
_ACEOF
12941

12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# If the template does not know about datarootdir, expand it.
# FIXME: This hack should be removed a few years after 2.60.
ac_datarootdir_hack=; ac_datarootdir_seen=
ac_sed_dataroot='
/datarootdir/ {
  p
  q
}
/@datadir@/p
/@docdir@/p
/@infodir@/p
/@localedir@/p
12955
/@mandir@/p'
12956 12957 12958
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
*datarootdir*) ac_datarootdir_seen=yes;;
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12959
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12960 12961 12962 12963 12964 12965 12966 12967 12968
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  ac_datarootdir_hack='
  s&@datadir@&$datadir&g
  s&@docdir@&$docdir&g
  s&@infodir@&$infodir&g
  s&@localedir@&$localedir&g
  s&@mandir@&$mandir&g
12969
  s&\\\${datarootdir}&$datarootdir&g' ;;
12970 12971
esac
_ACEOF
12972

12973 12974 12975 12976 12977 12978 12979 12980 12981 12982 12983 12984 12985 12986 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997
# Neutralize VPATH when `$srcdir' = `.'.
# Shell code in configure.ac might set extrasub.
# FIXME: do we really want to maintain this feature?
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_sed_extra="$ac_vpsub
$extrasub
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
:t
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
s|@configure_input@|$ac_sed_conf_input|;t t
s&@top_builddir@&$ac_top_builddir_sub&;t t
s&@top_build_prefix@&$ac_top_build_prefix&;t t
s&@srcdir@&$ac_srcdir&;t t
s&@abs_srcdir@&$ac_abs_srcdir&;t t
s&@top_srcdir@&$ac_top_srcdir&;t t
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
s&@builddir@&$ac_builddir&;t t
s&@abs_builddir@&$ac_abs_builddir&;t t
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
s&@INSTALL@&$ac_INSTALL&;t t
s&@MKDIR_P@&$ac_MKDIR_P&;t t
$ac_datarootdir_hack
"
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12998
  || as_fn_error "could not create $ac_file" "$LINENO" 5
12999

13000 13001 13002
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13003
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13004 13005 13006
which seems to be undefined.  Please make sure it is defined." >&5
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined.  Please make sure it is defined." >&2;}
13007

13008 13009 13010 13011 13012
  rm -f "$tmp/stdin"
  case $ac_file in
  -) cat "$tmp/out" && rm -f "$tmp/out";;
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  esac \
13013
  || as_fn_error "could not create $ac_file" "$LINENO" 5
13014 13015 13016 13017 13018 13019 13020 13021 13022 13023
 ;;
  :H)
  #
  # CONFIG_HEADER
  #
  if test x"$ac_file" != x-; then
    {
      $as_echo "/* $configure_input  */" \
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
    } >"$tmp/config.h" \
13024
      || as_fn_error "could not create $ac_file" "$LINENO" 5
13025
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13026
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13027 13028 13029 13030
$as_echo "$as_me: $ac_file is unchanged" >&6;}
    else
      rm -f "$ac_file"
      mv "$tmp/config.h" "$ac_file" \
13031
	|| as_fn_error "could not create $ac_file" "$LINENO" 5
13032 13033 13034 13035
    fi
  else
    $as_echo "/* $configure_input  */" \
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13036
      || as_fn_error "could not create -" "$LINENO" 5
13037 13038 13039 13040 13041 13042 13043 13044 13045 13046 13047 13048 13049 13050 13051 13052 13053 13054 13055 13056 13057 13058 13059 13060 13061 13062 13063 13064 13065 13066 13067 13068 13069 13070 13071 13072
  fi
# Compute "$ac_file"'s index in $config_headers.
_am_arg="$ac_file"
_am_stamp_count=1
for _am_header in $config_headers :; do
  case $_am_header in
    $_am_arg | $_am_arg:* )
      break ;;
    * )
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  esac
done
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$_am_arg" : 'X\(//\)[^/]' \| \
	 X"$_am_arg" : 'X\(//\)$' \| \
	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$_am_arg" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`/stamp-h$_am_stamp_count
 ;;
13073

13074
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13075 13076 13077
$as_echo "$as_me: executing $ac_file commands" >&6;}
 ;;
  esac
13078 13079


13080
  case $ac_file$ac_mode in
13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
  # are listed without --file.  Let's play safe and only enable the eval
  # if we detect the quoting.
  case $CONFIG_FILES in
  *\'*) eval set x "$CONFIG_FILES" ;;
  *)   set x $CONFIG_FILES ;;
  esac
  shift
  for mf
  do
    # Strip MF so we end up with the name of the file.
    mf=`echo "$mf" | sed -e 's/:.*$//'`
    # Check whether this is an Automake generated Makefile or not.
    # We used to match only the files named `Makefile.in', but
    # some people rename them; so instead we look at the file content.
    # Grep'ing the first line is not enough: some people post-process
    # each Makefile.in and add a new line on top of each file to say so.
    # Grep'ing the whole file is not good either: AIX grep has a line
    # limit of 2048, but all sed's we know have understand at least 4000.
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
      dirpart=`$as_dirname -- "$mf" ||
13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$mf" : 'X\(//\)[^/]' \| \
	 X"$mf" : 'X\(//\)$' \| \
	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$mf" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
13125 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146
    else
      continue
    fi
    # Extract the definition of DEPDIR, am__include, and am__quote
    # from the Makefile without running `make'.
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
    test -z "$DEPDIR" && continue
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
    test -z "am__include" && continue
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
    # When using ansi2knr, U may be empty or an underscore; expand it
    U=`sed -n 's/^U = //p' < "$mf"`
    # Find all dependency output files, they are included files with
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
    # simplest approach to changing $(DEPDIR) to its actual value in the
    # expansion.
    for file in `sed -n "
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
      # Make sure the directory exists.
      test -f "$dirpart/$file" && continue
      fdir=`$as_dirname -- "$file" ||
13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$file" : 'X\(//\)[^/]' \| \
	 X"$file" : 'X\(//\)$' \| \
	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
13169
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
13170 13171 13172
      # echo "creating $dirpart/$file"
      echo '# dummy' > "$dirpart/$file"
    done
13173
  done
13174
}
13175 13176
 ;;
    "libtool":C)
13177

13178 13179 13180 13181 13182
    # See if we are running on zsh, and set the options which allow our
    # commands through without removal of \ escapes.
    if test -n "${ZSH_VERSION+set}" ; then
      setopt NO_GLOB_SUBST
    fi
13183

13184 13185 13186
    cfgfile="${ofile}T"
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
    $RM "$cfgfile"
13187

13188 13189
    cat <<_LT_EOF >> "$cfgfile"
#! $SHELL
13190

13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
#
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
#                 2006, 2007, 2008 Free Software Foundation, Inc.
#   Written by Gordon Matzigkeit, 1996
#
#   This file is part of GNU Libtool.
#
# GNU Libtool is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of
# the License, or (at your option) any later version.
#
# As a special exception to the GNU General Public License,
# if you distribute this file as part of a program or library that
# is built using GNU Libtool, you may include this file under the
# same distribution terms that you use for the rest of that program.
#
# GNU Libtool is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GNU Libtool; see the file COPYING.  If not, a copy
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
# obtained by writing to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13222 13223


13224 13225
# The names of the tagged configurations supported by this script.
available_tags=""
13226

13227
# ### BEGIN LIBTOOL CONFIG
13228

13229 13230
# A sed program that does not truncate output.
SED=$lt_SED
13231

13232 13233
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Xsed="\$SED -e 1s/^X//"
13234

13235 13236
# A grep program that handles long lines.
GREP=$lt_GREP
13237

13238 13239
# An ERE matcher.
EGREP=$lt_EGREP
13240

13241 13242
# A literal string matcher.
FGREP=$lt_FGREP
13243

13244 13245
# Assembler program.
AS=$AS
13246

13247 13248
# DLL creation program.
DLLTOOL=$DLLTOOL
13249

13250 13251
# Object dumper program.
OBJDUMP=$OBJDUMP
13252

13253 13254 13255
# Which release of libtool.m4 was used?
macro_version=$macro_version
macro_revision=$macro_revision
13256

13257 13258
# Whether or not to build shared libraries.
build_libtool_libs=$enable_shared
13259

13260 13261
# Whether or not to build static libraries.
build_old_libs=$enable_static
13262

13263 13264
# What type of objects to build.
pic_mode=$pic_mode
13265

13266 13267
# Whether or not to optimize for fast installation.
fast_install=$enable_fast_install
13268

13269 13270 13271 13272
# The host system.
host_alias=$host_alias
host=$host
host_os=$host_os
13273

13274 13275 13276 13277
# The build system.
build_alias=$build_alias
build=$build
build_os=$build_os
13278

13279 13280
# A BSD- or MS-compatible name lister.
NM=$lt_NM
13281

13282 13283
# Whether we need soft or hard links.
LN_S=$lt_LN_S
13284

13285 13286
# What is the maximum length of a command?
max_cmd_len=$max_cmd_len
13287

13288 13289
# Object file suffix (normally "o").
objext=$ac_objext
13290

13291 13292
# Executable file suffix (normally "").
exeext=$exeext
13293

13294 13295
# whether the shell understands "unset".
lt_unset=$lt_unset
13296

13297 13298
# turn spaces into newlines.
SP2NL=$lt_lt_SP2NL
13299

13300 13301
# turn newlines into spaces.
NL2SP=$lt_lt_NL2SP
13302

13303 13304 13305
# How to create reloadable object files.
reload_flag=$lt_reload_flag
reload_cmds=$lt_reload_cmds
13306

13307 13308
# Method to check whether dependent libraries are shared objects.
deplibs_check_method=$lt_deplibs_check_method
13309

13310 13311
# Command to use when deplibs_check_method == "file_magic".
file_magic_cmd=$lt_file_magic_cmd
13312

13313 13314 13315
# The archiver.
AR=$lt_AR
AR_FLAGS=$lt_AR_FLAGS
13316

13317 13318
# A symbol stripping program.
STRIP=$lt_STRIP
13319

13320 13321 13322 13323
# Commands used to install an old-style archive.
RANLIB=$lt_RANLIB
old_postinstall_cmds=$lt_old_postinstall_cmds
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13324

13325 13326
# A C compiler.
LTCC=$lt_CC
13327

13328 13329
# LTCC compiler flags.
LTCFLAGS=$lt_CFLAGS
13330

13331 13332
# Take the output of nm and produce a listing of raw symbols and C names.
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13333

13334 13335
# Transform the output of nm in a proper C declaration.
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13336

13337 13338
# Transform the output of nm in a C name address pair.
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13339

13340 13341
# Transform the output of nm in a C name address pair when lib prefix is needed.
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13342

13343 13344
# The name of the directory that contains temporary libtool files.
objdir=$objdir
13345

13346 13347
# Shell to use when invoking shell scripts.
SHELL=$lt_SHELL
13348

13349 13350
# An echo program that does not interpret backslashes.
ECHO=$lt_ECHO
13351

13352 13353
# Used to examine libraries when file_magic_cmd begins with "file".
MAGIC_CMD=$MAGIC_CMD
13354

13355 13356
# Must we lock files when doing compilation?
need_locks=$lt_need_locks
13357

13358 13359
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
DSYMUTIL=$lt_DSYMUTIL
13360

13361 13362
# Tool to change global to local symbols on Mac OS X.
NMEDIT=$lt_NMEDIT
13363

13364 13365
# Tool to manipulate fat objects and archives on Mac OS X.
LIPO=$lt_LIPO
13366

13367 13368 13369 13370 13371 13372
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
OTOOL=$lt_OTOOL

# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
OTOOL64=$lt_OTOOL64

13373 13374 13375 13376 13377 13378 13379 13380 13381 13382 13383 13384
# Old archive suffix (normally "a").
libext=$libext

# Shared library suffix (normally ".so").
shrext_cmds=$lt_shrext_cmds

# The commands to extract the exported symbol list from a shared archive.
extract_expsyms_cmds=$lt_extract_expsyms_cmds

# Variables whose values should be saved in libtool wrapper scripts and
# restored at link time.
variables_saved_for_relink=$lt_variables_saved_for_relink
13385

13386 13387
# Do we need the "lib" prefix for modules?
need_lib_prefix=$need_lib_prefix
13388

13389 13390
# Do we need a version for libraries?
need_version=$need_version
13391

13392 13393
# Library versioning type.
version_type=$version_type
13394

13395 13396
# Shared library runtime path variable.
runpath_var=$runpath_var
13397

13398 13399
# Shared library path variable.
shlibpath_var=$shlibpath_var
13400

13401 13402
# Is shlibpath searched before the hard-coded library search path?
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13403

13404 13405
# Format of library name prefix.
libname_spec=$lt_libname_spec
13406

13407 13408 13409
# List of archive names.  First name is the real one, the rest are links.
# The last name is the one that the linker finds with -lNAME
library_names_spec=$lt_library_names_spec
13410

13411 13412
# The coded name of the library, if different from the real name.
soname_spec=$lt_soname_spec
13413

13414 13415
# Command to use after installation of a shared archive.
postinstall_cmds=$lt_postinstall_cmds
13416

13417 13418
# Command to use after uninstallation of a shared archive.
postuninstall_cmds=$lt_postuninstall_cmds
13419

13420 13421
# Commands used to finish a libtool library installation in a directory.
finish_cmds=$lt_finish_cmds
13422

13423 13424 13425
# As "finish_cmds", except a single script fragment to be evaled but
# not shown.
finish_eval=$lt_finish_eval
13426

13427 13428
# Whether we should hardcode library paths into libraries.
hardcode_into_libs=$hardcode_into_libs
13429

13430 13431
# Compile-time system search path for libraries.
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13432

13433 13434
# Run-time system search path for libraries.
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13435

13436 13437
# Whether dlopen is supported.
dlopen_support=$enable_dlopen
13438

13439 13440
# Whether dlopen of programs is supported.
dlopen_self=$enable_dlopen_self
13441

13442 13443
# Whether dlopen of statically linked programs is supported.
dlopen_self_static=$enable_dlopen_self_static
13444

13445 13446 13447
# Commands to strip libraries.
old_striplib=$lt_old_striplib
striplib=$lt_striplib
13448 13449


13450 13451
# The linker used to build libraries.
LD=$lt_LD
13452

13453 13454
# Commands used to build an old-style archive.
old_archive_cmds=$lt_old_archive_cmds
13455

13456 13457
# A language specific compiler.
CC=$lt_compiler
13458

13459 13460
# Is the compiler the GNU compiler?
with_gcc=$GCC
13461

13462 13463
# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13464

13465 13466
# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl
13467

13468 13469
# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic
13470

13471 13472
# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static
13473

13474 13475
# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13476

13477 13478
# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc
13479

13480 13481
# Whether or not to disallow shared libs when runtime libs are static.
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13482

13483 13484
# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13485

13486 13487
# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec
13488

13489 13490
# Whether the compiler copes with passing no objects directly.
compiler_needs_object=$lt_compiler_needs_object
13491

13492 13493
# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13494

13495 13496
# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13497

13498 13499 13500
# Commands used to build a shared archive.
archive_cmds=$lt_archive_cmds
archive_expsym_cmds=$lt_archive_expsym_cmds
13501

13502 13503 13504 13505
# Commands used to build a loadable module if different from building
# a shared archive.
module_cmds=$lt_module_cmds
module_expsym_cmds=$lt_module_expsym_cmds
13506

13507 13508 13509 13510 13511 13512 13513 13514
# Whether we are building with GNU ld or not.
with_gnu_ld=$lt_with_gnu_ld

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag

# Flag that enforces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag
13515

13516 13517 13518
# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13519

13520 13521 13522
# If ld is used when linking, flag to hardcode \$libdir into a binary
# during linking.  This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13523

13524 13525
# Whether we need a single "-rpath" flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator
13526

13527 13528 13529
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary.
hardcode_direct=$hardcode_direct
13530

13531 13532 13533 13534 13535
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary and the resulting library dependency is
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
# library is relocated.
hardcode_direct_absolute=$hardcode_direct_absolute
13536

13537 13538 13539
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
# into the resulting binary.
hardcode_minus_L=$hardcode_minus_L
13540

13541 13542 13543
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
# into the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var
13544

13545 13546 13547 13548
# Set to "yes" if building a shared library automatically hardcodes DIR
# into the library and all subsequent libraries and executables linked
# against it.
hardcode_automatic=$hardcode_automatic
13549

13550 13551 13552
# Set to yes if linker adds runtime paths of dependent libraries
# to runtime path list.
inherit_rpath=$inherit_rpath
13553

13554 13555
# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs
13556

13557 13558
# Fix the shell variable \$srcfile for the compiler.
fix_srcfile_path=$lt_fix_srcfile_path
13559

13560 13561
# Set to "yes" if exported symbols are required.
always_export_symbols=$always_export_symbols
13562

13563 13564
# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds
13565

13566 13567
# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms
13568

13569 13570
# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms
13571

13572 13573
# Commands necessary for linking programs (against libraries) with templates.
prelink_cmds=$lt_prelink_cmds
13574

13575 13576 13577 13578 13579 13580 13581 13582 13583 13584 13585 13586 13587 13588 13589 13590 13591 13592 13593
# Specify filename containing input files.
file_list_spec=$lt_file_list_spec

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action

# ### END LIBTOOL CONFIG

_LT_EOF

  case $host_os in
  aix3*)
    cat <<\_LT_EOF >> "$cfgfile"
# AIX sometimes has problems with the GCC collect2 program.  For some
# reason, if we set the COLLECT_NAMES environment variable, the problems
# vanish in a puff of smoke.
if test "X${COLLECT_NAMES+set}" != Xset; then
  COLLECT_NAMES=
  export COLLECT_NAMES
13594
fi
13595 13596 13597
_LT_EOF
    ;;
  esac
13598

13599 13600

ltmain="$ac_aux_dir/ltmain.sh"
13601 13602


13603 13604 13605 13606 13607 13608 13609 13610 13611 13612 13613 13614 13615 13616 13617 13618 13619 13620 13621
  # We use sed instead of cat because bash on DJGPP gets confused if
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
  # text mode, it properly converts lines to CR/LF.  This bash problem
  # is reportedly fixed, but why not run on old versions too?
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
    || (rm -f "$cfgfile"; exit 1)

  case $xsi_shell in
  yes)
    cat << \_LT_EOF >> "$cfgfile"

# func_dirname file append nondir_replacement
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
# otherwise set result to NONDIR_REPLACEMENT.
func_dirname ()
{
  case ${1} in
    */*) func_dirname_result="${1%/*}${2}" ;;
    *  ) func_dirname_result="${3}" ;;
13622
  esac
13623 13624 13625 13626 13627 13628 13629 13630 13631 13632 13633 13634 13635 13636 13637 13638 13639 13640 13641 13642 13643 13644 13645 13646 13647
}

# func_basename file
func_basename ()
{
  func_basename_result="${1##*/}"
}

# func_dirname_and_basename file append nondir_replacement
# perform func_basename and func_dirname in a single function
# call:
#   dirname:  Compute the dirname of FILE.  If nonempty,
#             add APPEND to the result, otherwise set result
#             to NONDIR_REPLACEMENT.
#             value returned in "$func_dirname_result"
#   basename: Compute filename of FILE.
#             value retuned in "$func_basename_result"
# Implementation must be kept synchronized with func_dirname
# and func_basename. For efficiency, we do not delegate to
# those functions but instead duplicate the functionality here.
func_dirname_and_basename ()
{
  case ${1} in
    */*) func_dirname_result="${1%/*}${2}" ;;
    *  ) func_dirname_result="${3}" ;;
13648
  esac
13649 13650
  func_basename_result="${1##*/}"
}
13651

13652 13653 13654 13655 13656 13657 13658 13659 13660 13661 13662 13663 13664
# func_stripname prefix suffix name
# strip PREFIX and SUFFIX off of NAME.
# PREFIX and SUFFIX must not contain globbing or regex special
# characters, hashes, percent signs, but SUFFIX may contain a leading
# dot (in which case that matches only a dot).
func_stripname ()
{
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  # positional parameters, so assign one to ordinary parameter first.
  func_stripname_result=${3}
  func_stripname_result=${func_stripname_result#"${1}"}
  func_stripname_result=${func_stripname_result%"${2}"}
}
13665

13666 13667 13668 13669 13670 13671
# func_opt_split
func_opt_split ()
{
  func_opt_split_opt=${1%%=*}
  func_opt_split_arg=${1#*=}
}
13672

13673 13674 13675 13676 13677 13678
# func_lo2o object
func_lo2o ()
{
  case ${1} in
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
    *)    func_lo2o_result=${1} ;;
13679
  esac
13680
}
13681

13682 13683 13684 13685 13686
# func_xform libobj-or-source
func_xform ()
{
  func_xform_result=${1%.*}.lo
}
13687

13688 13689 13690 13691 13692
# func_arith arithmetic-term...
func_arith ()
{
  func_arith_result=$(( $* ))
}
13693

13694 13695 13696 13697 13698 13699 13700 13701 13702 13703 13704
# func_len string
# STRING may not start with a hyphen.
func_len ()
{
  func_len_result=${#1}
}

_LT_EOF
    ;;
  *) # Bourne compatible functions.
    cat << \_LT_EOF >> "$cfgfile"
13705

13706 13707 13708 13709 13710 13711 13712 13713 13714 13715 13716 13717 13718
# func_dirname file append nondir_replacement
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
# otherwise set result to NONDIR_REPLACEMENT.
func_dirname ()
{
  # Extract subdirectory from the argument.
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  if test "X$func_dirname_result" = "X${1}"; then
    func_dirname_result="${3}"
  else
    func_dirname_result="$func_dirname_result${2}"
  fi
}
13719

13720 13721 13722 13723 13724
# func_basename file
func_basename ()
{
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
}
13725

13726 13727 13728 13729 13730 13731 13732 13733 13734 13735 13736 13737 13738 13739

# func_stripname prefix suffix name
# strip PREFIX and SUFFIX off of NAME.
# PREFIX and SUFFIX must not contain globbing or regex special
# characters, hashes, percent signs, but SUFFIX may contain a leading
# dot (in which case that matches only a dot).
# func_strip_suffix prefix name
func_stripname ()
{
  case ${2} in
    .*) func_stripname_result=`$ECHO "X${3}" \
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
    *)  func_stripname_result=`$ECHO "X${3}" \
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13740
  esac
13741
}
13742

13743 13744 13745
# sed scripts:
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
my_sed_long_arg='1s/^-[^=]*=//'
13746

13747 13748 13749 13750 13751
# func_opt_split
func_opt_split ()
{
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13752 13753
}

13754 13755 13756 13757 13758
# func_lo2o object
func_lo2o ()
{
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
}
13759

13760 13761 13762 13763 13764
# func_xform libobj-or-source
func_xform ()
{
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
}
13765

13766 13767 13768 13769 13770
# func_arith arithmetic-term...
func_arith ()
{
  func_arith_result=`expr "$@"`
}
13771

13772 13773 13774 13775 13776 13777
# func_len string
# STRING may not start with a hyphen.
func_len ()
{
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
}
13778

13779 13780
_LT_EOF
esac
13781

13782 13783 13784 13785 13786 13787 13788 13789 13790 13791 13792 13793 13794 13795
case $lt_shell_append in
  yes)
    cat << \_LT_EOF >> "$cfgfile"

# func_append var value
# Append VALUE to the end of shell variable VAR.
func_append ()
{
  eval "$1+=\$2"
}
_LT_EOF
    ;;
  *)
    cat << \_LT_EOF >> "$cfgfile"
13796

13797 13798 13799 13800 13801 13802
# func_append var value
# Append VALUE to the end of shell variable VAR.
func_append ()
{
  eval "$1=\$$1\$2"
}
13803

13804 13805
_LT_EOF
    ;;
13806
  esac
13807 13808 13809 13810 13811 13812 13813 13814 13815


  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
    || (rm -f "$cfgfile"; exit 1)

  mv -f "$cfgfile" "$ofile" ||
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  chmod +x "$ofile"

13816
 ;;
13817 13818
    "libpng-config":F) chmod +x libpng-config ;;

13819
  esac
13820
done # for ac_tag
13821 13822


13823
as_fn_exit 0
13824 13825 13826
_ACEOF
ac_clean_files=$ac_clean_files_save

13827
test $ac_write_fail = 0 ||
13828
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13829

13830 13831 13832 13833 13834 13835 13836 13837 13838 13839 13840 13841 13842 13843 13844 13845 13846 13847 13848

# configure is writing to config.log, and then calls config.status.
# config.status does its own redirection, appending to config.log.
# Unfortunately, on DOS this fails, as config.log is still kept open
# by configure, so config.status won't be able to write to it; its
# output is simply discarded.  So we exec the FD to /dev/null,
# effectively closing config.log, so it can be properly (re)opened and
# appended to by config.status.  When coming back to configure, we
# need to make the FD available again.
if test "$no_create" != yes; then
  ac_cs_success=:
  ac_config_status_args=
  test "$silent" = yes &&
    ac_config_status_args="$ac_config_status_args --quiet"
  exec 5>/dev/null
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  exec 5>>config.log
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  # would make configure fail if this is the last instruction.
13849
  $ac_cs_success || as_fn_exit $?
13850
fi
13851
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13852
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13853
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13854
fi
13855