xref: /libtiff-4.0.7/configure (revision bfbc7176)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64 for LibTIFF Software 4.0.0beta5.
4#
5# Report bugs to <[email protected]>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9# Foundation, Inc.
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92case $0 in #((
93  *[\\/]* ) as_myself=$0 ;;
94  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97  IFS=$as_save_IFS
98  test -z "$as_dir" && as_dir=.
99    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100  done
101IFS=$as_save_IFS
102
103     ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108  as_myself=$0
109fi
110if test ! -f "$as_myself"; then
111  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112  exit 1
113fi
114
115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there.  '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
132
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138  emulate sh
139  NULLCMD=:
140  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141  # is contrary to our usage.  Disable this feature.
142  alias -g '\${1+\"\$@\"}'='\"\$@\"'
143  setopt NO_GLOB_SUBST
144else
145  case \`(set -o) 2>/dev/null\` in #(
146  *posix*) :
147    set -o posix ;; #(
148  *) :
149     ;;
150esac
151fi
152"
153  as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167  exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175  if (eval "$as_required") 2>/dev/null; then :
176  as_have_required=yes
177else
178  as_have_required=no
179fi
180  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do
187  IFS=$as_save_IFS
188  test -z "$as_dir" && as_dir=.
189  as_found=:
190  case $as_dir in #(
191	 /*)
192	   for as_base in sh bash ksh sh5; do
193	     # Try only shells that exist, to save several forks.
194	     as_shell=$as_dir/$as_base
195	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197  CONFIG_SHELL=$as_shell as_have_required=yes
198		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199  break 2
200fi
201fi
202	   done;;
203       esac
204  as_found=false
205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208  CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS
211
212
213      if test "x$CONFIG_SHELL" != x; then :
214  # We cannot yet assume a decent shell, so we have to provide a
215	# neutralization value for shells without unset; and this also
216	# works around shells that cannot unset nonexistent variables.
217	BASH_ENV=/dev/null
218	ENV=/dev/null
219	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220	export CONFIG_SHELL
221	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
224    if test x$as_have_required = xno; then :
225  $as_echo "$0: This script requires a shell more modern than all"
226  $as_echo "$0: the shells that I found on your system."
227  if test x${ZSH_VERSION+set} = xset ; then
228    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230  else
231    $as_echo "$0: Please tell [email protected] and
232$0: [email protected] about your system, including
233$0: any error possibly output before this message. Then
234$0: install a modern shell, or manually run the script
235$0: under such a shell if you do have one."
236  fi
237  exit 1
238fi
239fi
240fi
241SHELL=${CONFIG_SHELL-/bin/sh}
242export SHELL
243# Unset more variables known to interfere with behavior of common tools.
244CLICOLOR_FORCE= GREP_OPTIONS=
245unset CLICOLOR_FORCE GREP_OPTIONS
246
247## --------------------- ##
248## M4sh Shell Functions. ##
249## --------------------- ##
250# as_fn_unset VAR
251# ---------------
252# Portably unset VAR.
253as_fn_unset ()
254{
255  { eval $1=; unset $1;}
256}
257as_unset=as_fn_unset
258
259# as_fn_set_status STATUS
260# -----------------------
261# Set $? to STATUS, without forking.
262as_fn_set_status ()
263{
264  return $1
265} # as_fn_set_status
266
267# as_fn_exit STATUS
268# -----------------
269# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
270as_fn_exit ()
271{
272  set +e
273  as_fn_set_status $1
274  exit $1
275} # as_fn_exit
276
277# as_fn_mkdir_p
278# -------------
279# Create "$as_dir" as a directory, including parents if necessary.
280as_fn_mkdir_p ()
281{
282
283  case $as_dir in #(
284  -*) as_dir=./$as_dir;;
285  esac
286  test -d "$as_dir" || eval $as_mkdir_p || {
287    as_dirs=
288    while :; do
289      case $as_dir in #(
290      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
291      *) as_qdir=$as_dir;;
292      esac
293      as_dirs="'$as_qdir' $as_dirs"
294      as_dir=`$as_dirname -- "$as_dir" ||
295$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296	 X"$as_dir" : 'X\(//\)[^/]' \| \
297	 X"$as_dir" : 'X\(//\)$' \| \
298	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299$as_echo X"$as_dir" |
300    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
301	    s//\1/
302	    q
303	  }
304	  /^X\(\/\/\)[^/].*/{
305	    s//\1/
306	    q
307	  }
308	  /^X\(\/\/\)$/{
309	    s//\1/
310	    q
311	  }
312	  /^X\(\/\).*/{
313	    s//\1/
314	    q
315	  }
316	  s/.*/./; q'`
317      test -d "$as_dir" && break
318    done
319    test -z "$as_dirs" || eval "mkdir $as_dirs"
320  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321
322
323} # as_fn_mkdir_p
324# as_fn_append VAR VALUE
325# ----------------------
326# Append the text in VALUE to the end of the definition contained in VAR. Take
327# advantage of any shell optimizations that allow amortized linear growth over
328# repeated appends, instead of the typical quadratic growth present in naive
329# implementations.
330if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331  eval 'as_fn_append ()
332  {
333    eval $1+=\$2
334  }'
335else
336  as_fn_append ()
337  {
338    eval $1=\$$1\$2
339  }
340fi # as_fn_append
341
342# as_fn_arith ARG...
343# ------------------
344# Perform arithmetic evaluation on the ARGs, and store the result in the
345# global $as_val. Take advantage of shells that can avoid forks. The arguments
346# must be portable across $(()) and expr.
347if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
348  eval 'as_fn_arith ()
349  {
350    as_val=$(( $* ))
351  }'
352else
353  as_fn_arith ()
354  {
355    as_val=`expr "$@" || test $? -eq 1`
356  }
357fi # as_fn_arith
358
359
360# as_fn_error ERROR [LINENO LOG_FD]
361# ---------------------------------
362# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364# script with status $?, using 1 if that was 0.
365as_fn_error ()
366{
367  as_status=$?; test $as_status -eq 0 && as_status=1
368  if test "$3"; then
369    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371  fi
372  $as_echo "$as_me: error: $1" >&2
373  as_fn_exit $as_status
374} # as_fn_error
375
376if expr a : '\(a\)' >/dev/null 2>&1 &&
377   test "X`expr 00001 : '.*\(...\)'`" = X001; then
378  as_expr=expr
379else
380  as_expr=false
381fi
382
383if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
384  as_basename=basename
385else
386  as_basename=false
387fi
388
389if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
390  as_dirname=dirname
391else
392  as_dirname=false
393fi
394
395as_me=`$as_basename -- "$0" ||
396$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397	 X"$0" : 'X\(//\)$' \| \
398	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399$as_echo X/"$0" |
400    sed '/^.*\/\([^/][^/]*\)\/*$/{
401	    s//\1/
402	    q
403	  }
404	  /^X\/\(\/\/\)$/{
405	    s//\1/
406	    q
407	  }
408	  /^X\/\(\/\).*/{
409	    s//\1/
410	    q
411	  }
412	  s/.*/./; q'`
413
414# Avoid depending upon Character Ranges.
415as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418as_cr_digits='0123456789'
419as_cr_alnum=$as_cr_Letters$as_cr_digits
420
421
422  as_lineno_1=$LINENO as_lineno_1a=$LINENO
423  as_lineno_2=$LINENO as_lineno_2a=$LINENO
424  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
427  sed -n '
428    p
429    /[$]LINENO/=
430  ' <$as_myself |
431    sed '
432      s/[$]LINENO.*/&-/
433      t lineno
434      b
435      :lineno
436      N
437      :loop
438      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  # Don't try to exec as it changes $[0], causing all sort of problems
446  # (the dirname of $[0] is not the place where we might find the
447  # original and so on.  Autoconf is especially sensitive to this).
448  . "./$as_me.lineno"
449  # Exit status is that of the last command.
450  exit
451}
452
453ECHO_C= ECHO_N= ECHO_T=
454case `echo -n x` in #(((((
455-n*)
456  case `echo 'xy\c'` in
457  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
458  xy)  ECHO_C='\c';;
459  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
460       ECHO_T='	';;
461  esac;;
462*)
463  ECHO_N='-n';;
464esac
465
466rm -f conf$$ conf$$.exe conf$$.file
467if test -d conf$$.dir; then
468  rm -f conf$$.dir/conf$$.file
469else
470  rm -f conf$$.dir
471  mkdir conf$$.dir 2>/dev/null
472fi
473if (echo >conf$$.file) 2>/dev/null; then
474  if ln -s conf$$.file conf$$ 2>/dev/null; then
475    as_ln_s='ln -s'
476    # ... but there are two gotchas:
477    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479    # In both cases, we have to default to `cp -p'.
480    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481      as_ln_s='cp -p'
482  elif ln conf$$.file conf$$ 2>/dev/null; then
483    as_ln_s=ln
484  else
485    as_ln_s='cp -p'
486  fi
487else
488  as_ln_s='cp -p'
489fi
490rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491rmdir conf$$.dir 2>/dev/null
492
493if mkdir -p . 2>/dev/null; then
494  as_mkdir_p='mkdir -p "$as_dir"'
495else
496  test -d ./-p && rmdir ./-p
497  as_mkdir_p=false
498fi
499
500if test -x / >/dev/null 2>&1; then
501  as_test_x='test -x'
502else
503  if ls -dL / >/dev/null 2>&1; then
504    as_ls_L_option=L
505  else
506    as_ls_L_option=
507  fi
508  as_test_x='
509    eval sh -c '\''
510      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	???[sx]*):;;*)false;;esac;fi
518    '\'' sh
519  '
520fi
521as_executable_p=$as_test_x
522
523# Sed expression to map a string onto a valid CPP name.
524as_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.
527as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528
529
530
531# Check that we are running under the correct shell.
532SHELL=${CONFIG_SHELL-/bin/sh}
533
534case X$lt_ECHO in
535X*--fallback-echo)
536  # Remove one level of quotation (which was required for Make).
537  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
538  ;;
539esac
540
541ECHO=${lt_ECHO-echo}
542if test "X$1" = X--no-reexec; then
543  # Discard the --no-reexec flag, and continue.
544  shift
545elif test "X$1" = X--fallback-echo; then
546  # Avoid inline document here, it may be left over
547  :
548elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
549  # Yippee, $ECHO works!
550  :
551else
552  # Restart under the correct shell.
553  exec $SHELL "$0" --no-reexec ${1+"$@"}
554fi
555
556if test "X$1" = X--fallback-echo; then
557  # used as fallback echo
558  shift
559  cat <<_LT_EOF
560$*
561_LT_EOF
562  exit 0
563fi
564
565# The HP-UX ksh and POSIX shell print the target directory to stdout
566# if CDPATH is set.
567(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
568
569if test -z "$lt_ECHO"; then
570  if test "X${echo_test_string+set}" != Xset; then
571    # find a string as large as possible, as long as the shell can cope with it
572    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
573      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
574      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
575	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
576      then
577        break
578      fi
579    done
580  fi
581
582  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
583     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
584     test "X$echo_testing_string" = "X$echo_test_string"; then
585    :
586  else
587    # The Solaris, AIX, and Digital Unix default echo programs unquote
588    # backslashes.  This makes it impossible to quote backslashes using
589    #   echo "$something" | sed 's/\\/\\\\/g'
590    #
591    # So, first we look for a working echo in the user's PATH.
592
593    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
594    for dir in $PATH /usr/ucb; do
595      IFS="$lt_save_ifs"
596      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
597         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
598         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
599         test "X$echo_testing_string" = "X$echo_test_string"; then
600        ECHO="$dir/echo"
601        break
602      fi
603    done
604    IFS="$lt_save_ifs"
605
606    if test "X$ECHO" = Xecho; then
607      # We didn't find a better echo, so look for alternatives.
608      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
609         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
610         test "X$echo_testing_string" = "X$echo_test_string"; then
611        # This shell has a builtin print -r that does the trick.
612        ECHO='print -r'
613      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
614	   test "X$CONFIG_SHELL" != X/bin/ksh; then
615        # If we have ksh, try running configure again with it.
616        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
617        export ORIGINAL_CONFIG_SHELL
618        CONFIG_SHELL=/bin/ksh
619        export CONFIG_SHELL
620        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
621      else
622        # Try using printf.
623        ECHO='printf %s\n'
624        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
625	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
626	   test "X$echo_testing_string" = "X$echo_test_string"; then
627	  # Cool, printf works
628	  :
629        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
630	     test "X$echo_testing_string" = 'X\t' &&
631	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
632	     test "X$echo_testing_string" = "X$echo_test_string"; then
633	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
634	  export CONFIG_SHELL
635	  SHELL="$CONFIG_SHELL"
636	  export SHELL
637	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
638        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639	     test "X$echo_testing_string" = 'X\t' &&
640	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641	     test "X$echo_testing_string" = "X$echo_test_string"; then
642	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
643        else
644	  # maybe with a smaller string...
645	  prev=:
646
647	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
648	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
649	    then
650	      break
651	    fi
652	    prev="$cmd"
653	  done
654
655	  if test "$prev" != 'sed 50q "$0"'; then
656	    echo_test_string=`eval $prev`
657	    export echo_test_string
658	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
659	  else
660	    # Oops.  We lost completely, so just stick with echo.
661	    ECHO=echo
662	  fi
663        fi
664      fi
665    fi
666  fi
667fi
668
669# Copy echo and quote the copy suitably for passing to libtool from
670# the Makefile, instead of quoting the original, which is used later.
671lt_ECHO=$ECHO
672if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
673   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
674fi
675
676
677
678
679exec 7<&0 </dev/null 6>&1
680
681# Name of the host.
682# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683# so uname gets run too.
684ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
685
686#
687# Initializations.
688#
689ac_default_prefix=/usr/local
690ac_clean_files=
691ac_config_libobj_dir=.
692LIBOBJS=
693cross_compiling=no
694subdirs=
695MFLAGS=
696MAKEFLAGS=
697
698# Identity of this package.
699PACKAGE_NAME='LibTIFF Software'
700PACKAGE_TARNAME='tiff'
701PACKAGE_VERSION='4.0.0beta5'
702PACKAGE_STRING='LibTIFF Software 4.0.0beta5'
703PACKAGE_BUGREPORT='[email protected]'
704PACKAGE_URL=''
705
706# Factoring default headers for most tests.
707ac_includes_default="\
708#include <stdio.h>
709#ifdef HAVE_SYS_TYPES_H
710# include <sys/types.h>
711#endif
712#ifdef HAVE_SYS_STAT_H
713# include <sys/stat.h>
714#endif
715#ifdef STDC_HEADERS
716# include <stdlib.h>
717# include <stddef.h>
718#else
719# ifdef HAVE_STDLIB_H
720#  include <stdlib.h>
721# endif
722#endif
723#ifdef HAVE_STRING_H
724# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
725#  include <memory.h>
726# endif
727# include <string.h>
728#endif
729#ifdef HAVE_STRINGS_H
730# include <strings.h>
731#endif
732#ifdef HAVE_INTTYPES_H
733# include <inttypes.h>
734#endif
735#ifdef HAVE_STDINT_H
736# include <stdint.h>
737#endif
738#ifdef HAVE_UNISTD_H
739# include <unistd.h>
740#endif"
741
742ac_subst_vars='am__EXEEXT_FALSE
743am__EXEEXT_TRUE
744LTLIBOBJS
745LIBDIR
746HAVE_OPENGL_FALSE
747HAVE_OPENGL_TRUE
748GLUT_LIBS
749GLUT_CFLAGS
750GLU_LIBS
751GLU_CFLAGS
752GL_LIBS
753GL_CFLAGS
754PTHREAD_CFLAGS
755PTHREAD_LIBS
756PTHREAD_CC
757acx_pthread_config
758X_EXTRA_LIBS
759X_LIBS
760X_PRE_LIBS
761X_CFLAGS
762XMKMF
763HAVE_CXX_FALSE
764HAVE_CXX_TRUE
765LIBTIFF_DOCDIR
766HAVE_RPATH_FALSE
767HAVE_RPATH_TRUE
768LIBOBJS
769AM_BACKSLASH
770AM_DEFAULT_VERBOSITY
771CXXCPP
772am__fastdepCXX_FALSE
773am__fastdepCXX_TRUE
774CXXDEPMODE
775ac_ct_CXX
776CXXFLAGS
777CXX
778CPP
779OTOOL64
780OTOOL
781LIPO
782NMEDIT
783DSYMUTIL
784lt_ECHO
785RANLIB
786AR
787NM
788ac_ct_DUMPBIN
789DUMPBIN
790LD
791FGREP
792EGREP
793GREP
794SED
795LIBTOOL
796OBJDUMP
797DLLTOOL
798AS
799LN_S
800am__fastdepCC_FALSE
801am__fastdepCC_TRUE
802CCDEPMODE
803AMDEPBACKSLASH
804AMDEP_FALSE
805AMDEP_TRUE
806am__quote
807am__include
808DEPDIR
809OBJEXT
810EXEEXT
811ac_ct_CC
812CPPFLAGS
813LDFLAGS
814CFLAGS
815CC
816LIBTIFF_RELEASE_DATE
817LIBTIFF_VERSION_INFO
818LIBTIFF_VERSION
819LIBTIFF_ALPHA_VERSION
820LIBTIFF_MICRO_VERSION
821LIBTIFF_MINOR_VERSION
822LIBTIFF_MAJOR_VERSION
823MAINT
824MAINTAINER_MODE_FALSE
825MAINTAINER_MODE_TRUE
826am__untar
827am__tar
828AMTAR
829am__leading_dot
830SET_MAKE
831AWK
832mkdir_p
833MKDIR_P
834INSTALL_STRIP_PROGRAM
835STRIP
836install_sh
837MAKEINFO
838AUTOHEADER
839AUTOMAKE
840AUTOCONF
841ACLOCAL
842VERSION
843PACKAGE
844CYGPATH_W
845am__isrc
846INSTALL_DATA
847INSTALL_SCRIPT
848INSTALL_PROGRAM
849target_os
850target_vendor
851target_cpu
852target
853host_os
854host_vendor
855host_cpu
856host
857build_os
858build_vendor
859build_cpu
860build
861target_alias
862host_alias
863build_alias
864LIBS
865ECHO_T
866ECHO_N
867ECHO_C
868DEFS
869mandir
870localedir
871libdir
872psdir
873pdfdir
874dvidir
875htmldir
876infodir
877docdir
878oldincludedir
879includedir
880localstatedir
881sharedstatedir
882sysconfdir
883datadir
884datarootdir
885libexecdir
886sbindir
887bindir
888program_transform_name
889prefix
890exec_prefix
891PACKAGE_URL
892PACKAGE_BUGREPORT
893PACKAGE_STRING
894PACKAGE_VERSION
895PACKAGE_TARNAME
896PACKAGE_NAME
897PATH_SEPARATOR
898SHELL'
899ac_subst_files=''
900ac_user_opts='
901enable_option_checking
902enable_maintainer_mode
903enable_dependency_tracking
904enable_shared
905enable_static
906with_pic
907enable_fast_install
908with_gnu_ld
909enable_libtool_lock
910enable_silent_rules
911enable_rpath
912enable_largefile
913with_docdir
914enable_ccitt
915enable_packbits
916enable_lzw
917enable_thunder
918enable_next
919enable_logluv
920enable_mdi
921enable_zlib
922with_zlib_include_dir
923with_zlib_lib_dir
924enable_pixarlog
925enable_jpeg
926with_jpeg_include_dir
927with_jpeg_lib_dir
928enable_old_jpeg
929enable_jbig
930with_jbig_include_dir
931with_jbig_lib_dir
932enable_jpeg12
933with_jpeg12_include_dir
934with_jpeg12_lib
935enable_cxx
936with_x
937with_apple_opengl_framework
938enable_strip_chopping
939with_default_strip_size
940enable_extrasample_as_alpha
941enable_check_ycbcr_subsampling
942'
943      ac_precious_vars='build_alias
944host_alias
945target_alias
946CC
947CFLAGS
948LDFLAGS
949LIBS
950CPPFLAGS
951CPP
952CXX
953CXXFLAGS
954CCC
955CXXCPP
956XMKMF'
957
958
959# Initialize some variables set by options.
960ac_init_help=
961ac_init_version=false
962ac_unrecognized_opts=
963ac_unrecognized_sep=
964# The variables have the same names as the options, with
965# dashes changed to underlines.
966cache_file=/dev/null
967exec_prefix=NONE
968no_create=
969no_recursion=
970prefix=NONE
971program_prefix=NONE
972program_suffix=NONE
973program_transform_name=s,x,x,
974silent=
975site=
976srcdir=
977verbose=
978x_includes=NONE
979x_libraries=NONE
980
981# Installation directory options.
982# These are left unexpanded so users can "make install exec_prefix=/foo"
983# and all the variables that are supposed to be based on exec_prefix
984# by default will actually change.
985# Use braces instead of parens because sh, perl, etc. also accept them.
986# (The list follows the same order as the GNU Coding Standards.)
987bindir='${exec_prefix}/bin'
988sbindir='${exec_prefix}/sbin'
989libexecdir='${exec_prefix}/libexec'
990datarootdir='${prefix}/share'
991datadir='${datarootdir}'
992sysconfdir='${prefix}/etc'
993sharedstatedir='${prefix}/com'
994localstatedir='${prefix}/var'
995includedir='${prefix}/include'
996oldincludedir='/usr/include'
997docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
998infodir='${datarootdir}/info'
999htmldir='${docdir}'
1000dvidir='${docdir}'
1001pdfdir='${docdir}'
1002psdir='${docdir}'
1003libdir='${exec_prefix}/lib'
1004localedir='${datarootdir}/locale'
1005mandir='${datarootdir}/man'
1006
1007ac_prev=
1008ac_dashdash=
1009for ac_option
1010do
1011  # If the previous option needs an argument, assign it.
1012  if test -n "$ac_prev"; then
1013    eval $ac_prev=\$ac_option
1014    ac_prev=
1015    continue
1016  fi
1017
1018  case $ac_option in
1019  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1020  *)	ac_optarg=yes ;;
1021  esac
1022
1023  # Accept the important Cygnus configure options, so we can diagnose typos.
1024
1025  case $ac_dashdash$ac_option in
1026  --)
1027    ac_dashdash=yes ;;
1028
1029  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1030    ac_prev=bindir ;;
1031  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1032    bindir=$ac_optarg ;;
1033
1034  -build | --build | --buil | --bui | --bu)
1035    ac_prev=build_alias ;;
1036  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1037    build_alias=$ac_optarg ;;
1038
1039  -cache-file | --cache-file | --cache-fil | --cache-fi \
1040  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1041    ac_prev=cache_file ;;
1042  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1043  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1044    cache_file=$ac_optarg ;;
1045
1046  --config-cache | -C)
1047    cache_file=config.cache ;;
1048
1049  -datadir | --datadir | --datadi | --datad)
1050    ac_prev=datadir ;;
1051  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1052    datadir=$ac_optarg ;;
1053
1054  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1055  | --dataroo | --dataro | --datar)
1056    ac_prev=datarootdir ;;
1057  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1058  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1059    datarootdir=$ac_optarg ;;
1060
1061  -disable-* | --disable-*)
1062    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1063    # Reject names that are not valid shell variable names.
1064    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1065      as_fn_error "invalid feature name: $ac_useropt"
1066    ac_useropt_orig=$ac_useropt
1067    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1068    case $ac_user_opts in
1069      *"
1070"enable_$ac_useropt"
1071"*) ;;
1072      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1073	 ac_unrecognized_sep=', ';;
1074    esac
1075    eval enable_$ac_useropt=no ;;
1076
1077  -docdir | --docdir | --docdi | --doc | --do)
1078    ac_prev=docdir ;;
1079  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1080    docdir=$ac_optarg ;;
1081
1082  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1083    ac_prev=dvidir ;;
1084  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1085    dvidir=$ac_optarg ;;
1086
1087  -enable-* | --enable-*)
1088    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1089    # Reject names that are not valid shell variable names.
1090    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1091      as_fn_error "invalid feature name: $ac_useropt"
1092    ac_useropt_orig=$ac_useropt
1093    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1094    case $ac_user_opts in
1095      *"
1096"enable_$ac_useropt"
1097"*) ;;
1098      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1099	 ac_unrecognized_sep=', ';;
1100    esac
1101    eval enable_$ac_useropt=\$ac_optarg ;;
1102
1103  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1104  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1105  | --exec | --exe | --ex)
1106    ac_prev=exec_prefix ;;
1107  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1108  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1109  | --exec=* | --exe=* | --ex=*)
1110    exec_prefix=$ac_optarg ;;
1111
1112  -gas | --gas | --ga | --g)
1113    # Obsolete; use --with-gas.
1114    with_gas=yes ;;
1115
1116  -help | --help | --hel | --he | -h)
1117    ac_init_help=long ;;
1118  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1119    ac_init_help=recursive ;;
1120  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1121    ac_init_help=short ;;
1122
1123  -host | --host | --hos | --ho)
1124    ac_prev=host_alias ;;
1125  -host=* | --host=* | --hos=* | --ho=*)
1126    host_alias=$ac_optarg ;;
1127
1128  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1129    ac_prev=htmldir ;;
1130  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1131  | --ht=*)
1132    htmldir=$ac_optarg ;;
1133
1134  -includedir | --includedir | --includedi | --included | --include \
1135  | --includ | --inclu | --incl | --inc)
1136    ac_prev=includedir ;;
1137  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1138  | --includ=* | --inclu=* | --incl=* | --inc=*)
1139    includedir=$ac_optarg ;;
1140
1141  -infodir | --infodir | --infodi | --infod | --info | --inf)
1142    ac_prev=infodir ;;
1143  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1144    infodir=$ac_optarg ;;
1145
1146  -libdir | --libdir | --libdi | --libd)
1147    ac_prev=libdir ;;
1148  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1149    libdir=$ac_optarg ;;
1150
1151  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1152  | --libexe | --libex | --libe)
1153    ac_prev=libexecdir ;;
1154  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1155  | --libexe=* | --libex=* | --libe=*)
1156    libexecdir=$ac_optarg ;;
1157
1158  -localedir | --localedir | --localedi | --localed | --locale)
1159    ac_prev=localedir ;;
1160  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1161    localedir=$ac_optarg ;;
1162
1163  -localstatedir | --localstatedir | --localstatedi | --localstated \
1164  | --localstate | --localstat | --localsta | --localst | --locals)
1165    ac_prev=localstatedir ;;
1166  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1167  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1168    localstatedir=$ac_optarg ;;
1169
1170  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1171    ac_prev=mandir ;;
1172  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1173    mandir=$ac_optarg ;;
1174
1175  -nfp | --nfp | --nf)
1176    # Obsolete; use --without-fp.
1177    with_fp=no ;;
1178
1179  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1180  | --no-cr | --no-c | -n)
1181    no_create=yes ;;
1182
1183  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1184  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1185    no_recursion=yes ;;
1186
1187  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1188  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1189  | --oldin | --oldi | --old | --ol | --o)
1190    ac_prev=oldincludedir ;;
1191  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1192  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1193  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1194    oldincludedir=$ac_optarg ;;
1195
1196  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1197    ac_prev=prefix ;;
1198  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1199    prefix=$ac_optarg ;;
1200
1201  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1202  | --program-pre | --program-pr | --program-p)
1203    ac_prev=program_prefix ;;
1204  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1205  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1206    program_prefix=$ac_optarg ;;
1207
1208  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1209  | --program-suf | --program-su | --program-s)
1210    ac_prev=program_suffix ;;
1211  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1212  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1213    program_suffix=$ac_optarg ;;
1214
1215  -program-transform-name | --program-transform-name \
1216  | --program-transform-nam | --program-transform-na \
1217  | --program-transform-n | --program-transform- \
1218  | --program-transform | --program-transfor \
1219  | --program-transfo | --program-transf \
1220  | --program-trans | --program-tran \
1221  | --progr-tra | --program-tr | --program-t)
1222    ac_prev=program_transform_name ;;
1223  -program-transform-name=* | --program-transform-name=* \
1224  | --program-transform-nam=* | --program-transform-na=* \
1225  | --program-transform-n=* | --program-transform-=* \
1226  | --program-transform=* | --program-transfor=* \
1227  | --program-transfo=* | --program-transf=* \
1228  | --program-trans=* | --program-tran=* \
1229  | --progr-tra=* | --program-tr=* | --program-t=*)
1230    program_transform_name=$ac_optarg ;;
1231
1232  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1233    ac_prev=pdfdir ;;
1234  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1235    pdfdir=$ac_optarg ;;
1236
1237  -psdir | --psdir | --psdi | --psd | --ps)
1238    ac_prev=psdir ;;
1239  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1240    psdir=$ac_optarg ;;
1241
1242  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1243  | -silent | --silent | --silen | --sile | --sil)
1244    silent=yes ;;
1245
1246  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1247    ac_prev=sbindir ;;
1248  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1249  | --sbi=* | --sb=*)
1250    sbindir=$ac_optarg ;;
1251
1252  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1253  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1254  | --sharedst | --shareds | --shared | --share | --shar \
1255  | --sha | --sh)
1256    ac_prev=sharedstatedir ;;
1257  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1258  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1259  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1260  | --sha=* | --sh=*)
1261    sharedstatedir=$ac_optarg ;;
1262
1263  -site | --site | --sit)
1264    ac_prev=site ;;
1265  -site=* | --site=* | --sit=*)
1266    site=$ac_optarg ;;
1267
1268  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1269    ac_prev=srcdir ;;
1270  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1271    srcdir=$ac_optarg ;;
1272
1273  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1274  | --syscon | --sysco | --sysc | --sys | --sy)
1275    ac_prev=sysconfdir ;;
1276  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1277  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1278    sysconfdir=$ac_optarg ;;
1279
1280  -target | --target | --targe | --targ | --tar | --ta | --t)
1281    ac_prev=target_alias ;;
1282  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1283    target_alias=$ac_optarg ;;
1284
1285  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1286    verbose=yes ;;
1287
1288  -version | --version | --versio | --versi | --vers | -V)
1289    ac_init_version=: ;;
1290
1291  -with-* | --with-*)
1292    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1293    # Reject names that are not valid shell variable names.
1294    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1295      as_fn_error "invalid package name: $ac_useropt"
1296    ac_useropt_orig=$ac_useropt
1297    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298    case $ac_user_opts in
1299      *"
1300"with_$ac_useropt"
1301"*) ;;
1302      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1303	 ac_unrecognized_sep=', ';;
1304    esac
1305    eval with_$ac_useropt=\$ac_optarg ;;
1306
1307  -without-* | --without-*)
1308    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1309    # Reject names that are not valid shell variable names.
1310    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1311      as_fn_error "invalid package name: $ac_useropt"
1312    ac_useropt_orig=$ac_useropt
1313    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1314    case $ac_user_opts in
1315      *"
1316"with_$ac_useropt"
1317"*) ;;
1318      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1319	 ac_unrecognized_sep=', ';;
1320    esac
1321    eval with_$ac_useropt=no ;;
1322
1323  --x)
1324    # Obsolete; use --with-x.
1325    with_x=yes ;;
1326
1327  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1328  | --x-incl | --x-inc | --x-in | --x-i)
1329    ac_prev=x_includes ;;
1330  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1331  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1332    x_includes=$ac_optarg ;;
1333
1334  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1335  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1336    ac_prev=x_libraries ;;
1337  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1338  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1339    x_libraries=$ac_optarg ;;
1340
1341  -*) as_fn_error "unrecognized option: \`$ac_option'
1342Try \`$0 --help' for more information."
1343    ;;
1344
1345  *=*)
1346    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1347    # Reject names that are not valid shell variable names.
1348    case $ac_envvar in #(
1349      '' | [0-9]* | *[!_$as_cr_alnum]* )
1350      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1351    esac
1352    eval $ac_envvar=\$ac_optarg
1353    export $ac_envvar ;;
1354
1355  *)
1356    # FIXME: should be removed in autoconf 3.0.
1357    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1358    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1359      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1360    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1361    ;;
1362
1363  esac
1364done
1365
1366if test -n "$ac_prev"; then
1367  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1368  as_fn_error "missing argument to $ac_option"
1369fi
1370
1371if test -n "$ac_unrecognized_opts"; then
1372  case $enable_option_checking in
1373    no) ;;
1374    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1375    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1376  esac
1377fi
1378
1379# Check all directory arguments for consistency.
1380for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1381		datadir sysconfdir sharedstatedir localstatedir includedir \
1382		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1383		libdir localedir mandir
1384do
1385  eval ac_val=\$$ac_var
1386  # Remove trailing slashes.
1387  case $ac_val in
1388    */ )
1389      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1390      eval $ac_var=\$ac_val;;
1391  esac
1392  # Be sure to have absolute directory names.
1393  case $ac_val in
1394    [\\/$]* | ?:[\\/]* )  continue;;
1395    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1396  esac
1397  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1398done
1399
1400# There might be people who depend on the old broken behavior: `$host'
1401# used to hold the argument of --host etc.
1402# FIXME: To remove some day.
1403build=$build_alias
1404host=$host_alias
1405target=$target_alias
1406
1407# FIXME: To remove some day.
1408if test "x$host_alias" != x; then
1409  if test "x$build_alias" = x; then
1410    cross_compiling=maybe
1411    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1412    If a cross compiler is detected then cross compile mode will be used." >&2
1413  elif test "x$build_alias" != "x$host_alias"; then
1414    cross_compiling=yes
1415  fi
1416fi
1417
1418ac_tool_prefix=
1419test -n "$host_alias" && ac_tool_prefix=$host_alias-
1420
1421test "$silent" = yes && exec 6>/dev/null
1422
1423
1424ac_pwd=`pwd` && test -n "$ac_pwd" &&
1425ac_ls_di=`ls -di .` &&
1426ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1427  as_fn_error "working directory cannot be determined"
1428test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1429  as_fn_error "pwd does not report name of working directory"
1430
1431
1432# Find the source files, if location was not specified.
1433if test -z "$srcdir"; then
1434  ac_srcdir_defaulted=yes
1435  # Try the directory containing this script, then the parent directory.
1436  ac_confdir=`$as_dirname -- "$as_myself" ||
1437$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1438	 X"$as_myself" : 'X\(//\)[^/]' \| \
1439	 X"$as_myself" : 'X\(//\)$' \| \
1440	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1441$as_echo X"$as_myself" |
1442    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1443	    s//\1/
1444	    q
1445	  }
1446	  /^X\(\/\/\)[^/].*/{
1447	    s//\1/
1448	    q
1449	  }
1450	  /^X\(\/\/\)$/{
1451	    s//\1/
1452	    q
1453	  }
1454	  /^X\(\/\).*/{
1455	    s//\1/
1456	    q
1457	  }
1458	  s/.*/./; q'`
1459  srcdir=$ac_confdir
1460  if test ! -r "$srcdir/$ac_unique_file"; then
1461    srcdir=..
1462  fi
1463else
1464  ac_srcdir_defaulted=no
1465fi
1466if test ! -r "$srcdir/$ac_unique_file"; then
1467  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1468  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1469fi
1470ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1471ac_abs_confdir=`(
1472	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1473	pwd)`
1474# When building in place, set srcdir=.
1475if test "$ac_abs_confdir" = "$ac_pwd"; then
1476  srcdir=.
1477fi
1478# Remove unnecessary trailing slashes from srcdir.
1479# Double slashes in file names in object file debugging info
1480# mess up M-x gdb in Emacs.
1481case $srcdir in
1482*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1483esac
1484for ac_var in $ac_precious_vars; do
1485  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1486  eval ac_env_${ac_var}_value=\$${ac_var}
1487  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1488  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1489done
1490
1491#
1492# Report the --help message.
1493#
1494if test "$ac_init_help" = "long"; then
1495  # Omit some internal or obsolete options to make the list less imposing.
1496  # This message is too long to be a string in the A/UX 3.1 sh.
1497  cat <<_ACEOF
1498\`configure' configures LibTIFF Software 4.0.0beta5 to adapt to many kinds of systems.
1499
1500Usage: $0 [OPTION]... [VAR=VALUE]...
1501
1502To assign environment variables (e.g., CC, CFLAGS...), specify them as
1503VAR=VALUE.  See below for descriptions of some of the useful variables.
1504
1505Defaults for the options are specified in brackets.
1506
1507Configuration:
1508  -h, --help              display this help and exit
1509      --help=short        display options specific to this package
1510      --help=recursive    display the short help of all the included packages
1511  -V, --version           display version information and exit
1512  -q, --quiet, --silent   do not print \`checking...' messages
1513      --cache-file=FILE   cache test results in FILE [disabled]
1514  -C, --config-cache      alias for \`--cache-file=config.cache'
1515  -n, --no-create         do not create output files
1516      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1517
1518Installation directories:
1519  --prefix=PREFIX         install architecture-independent files in PREFIX
1520                          [$ac_default_prefix]
1521  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1522                          [PREFIX]
1523
1524By default, \`make install' will install all the files in
1525\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1526an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1527for instance \`--prefix=\$HOME'.
1528
1529For better control, use the options below.
1530
1531Fine tuning of the installation directories:
1532  --bindir=DIR            user executables [EPREFIX/bin]
1533  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1534  --libexecdir=DIR        program executables [EPREFIX/libexec]
1535  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1536  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1537  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1538  --libdir=DIR            object code libraries [EPREFIX/lib]
1539  --includedir=DIR        C header files [PREFIX/include]
1540  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1541  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1542  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1543  --infodir=DIR           info documentation [DATAROOTDIR/info]
1544  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1545  --mandir=DIR            man documentation [DATAROOTDIR/man]
1546  --docdir=DIR            documentation root [DATAROOTDIR/doc/tiff]
1547  --htmldir=DIR           html documentation [DOCDIR]
1548  --dvidir=DIR            dvi documentation [DOCDIR]
1549  --pdfdir=DIR            pdf documentation [DOCDIR]
1550  --psdir=DIR             ps documentation [DOCDIR]
1551_ACEOF
1552
1553  cat <<\_ACEOF
1554
1555Program names:
1556  --program-prefix=PREFIX            prepend PREFIX to installed program names
1557  --program-suffix=SUFFIX            append SUFFIX to installed program names
1558  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1559
1560X features:
1561  --x-includes=DIR    X include files are in DIR
1562  --x-libraries=DIR   X library files are in DIR
1563
1564System types:
1565  --build=BUILD     configure for building on BUILD [guessed]
1566  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1567  --target=TARGET   configure for building compilers for TARGET [HOST]
1568_ACEOF
1569fi
1570
1571if test -n "$ac_init_help"; then
1572  case $ac_init_help in
1573     short | recursive ) echo "Configuration of LibTIFF Software 4.0.0beta5:";;
1574   esac
1575  cat <<\_ACEOF
1576
1577Optional Features:
1578  --disable-option-checking  ignore unrecognized --enable/--with options
1579  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1580  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1581  --enable-maintainer-mode  enable make rules and dependencies not useful
1582			  (and sometimes confusing) to the casual installer
1583  --disable-dependency-tracking  speeds up one-time build
1584  --enable-dependency-tracking   do not reject slow dependency extractors
1585  --enable-shared[=PKGS]  build shared libraries [default=yes]
1586  --enable-static[=PKGS]  build static libraries [default=yes]
1587  --enable-fast-install[=PKGS]
1588                          optimize for fast installation [default=yes]
1589  --disable-libtool-lock  avoid locking (might break parallel builds)
1590  --enable-silent-rules          less verbose build output (undo: `make V=1')
1591  --disable-silent-rules         verbose build output (undo: `make V=0')
1592  --enable-rpath          Enable runtime linker paths (-R libtool option)
1593  --disable-largefile     omit support for large files
1594  --disable-ccitt         disable support for CCITT Group 3 & 4 algorithms
1595  --disable-packbits      disable support for Macintosh PackBits algorithm
1596  --disable-lzw           disable support for LZW algorithm
1597  --disable-thunder       disable support for ThunderScan 4-bit RLE algorithm
1598  --disable-next          disable support for NeXT 2-bit RLE algorithm
1599  --disable-logluv        disable support for LogLuv high dynamic range
1600                          encoding
1601  --disable-mdi           disable support for Microsoft Document Imaging
1602  --disable-zlib          disable Zlib usage (required for Deflate
1603                          compression, enabled by default)
1604  --disable-pixarlog      disable support for Pixar log-format algorithm
1605                          (requires Zlib)
1606  --disable-jpeg          disable IJG JPEG library usage (required for JPEG
1607                          compression, enabled by default)
1608  --disable-old-jpeg      disable support for Old JPEG compresson (read-only,
1609                          enabled by default)
1610  --disable-jbig          disable JBIG-KIT usage (required for ISO JBIG
1611                          compression, enabled by default)
1612  --enable-jpeg12         enable libjpeg 8/12bit dual mode
1613  --enable-cxx            enable C++ stream API building (requires C++
1614                          compiler)
1615  --disable-strip-chopping
1616                          disable support for strip chopping (whether or not
1617                          to convert single-strip uncompressed images to
1618                          mutiple strips of specified size to reduce memory
1619                          usage)
1620  --disable-extrasample-as-alpha
1621                          the RGBA interface will treat a fourth sample with
1622                          no EXTRASAMPLE_ value as being ASSOCALPHA. Many
1623                          packages produce RGBA files but don't mark the alpha
1624                          properly
1625  --disable-check-ycbcr-subsampling
1626                          disable picking up YCbCr subsampling info from the
1627                          JPEG data stream to support files lacking the tag
1628
1629Optional Packages:
1630  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1631  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1632  --with-pic              try to use only PIC/non-PIC objects [default=use
1633                          both]
1634  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1635  --with-docdir=DIR       directory where documentation should be installed
1636  --with-zlib-include-dir=DIR
1637                          location of Zlib headers
1638  --with-zlib-lib-dir=DIR location of Zlib library binary
1639  --with-jpeg-include-dir=DIR
1640                          location of IJG JPEG library headers
1641  --with-jpeg-lib-dir=DIR location of IJG JPEG library binary
1642  --with-jbig-include-dir=DIR
1643                          location of JBIG-KIT headers
1644  --with-jbig-lib-dir=DIR location of JBIG-KIT library binary
1645  --with-jpeg12-include-dir=DIR
1646                          location of libjpeg 12bit headers
1647  --with-jpeg12-lib=LIBRARY
1648                          path to libjpeg 12bit library
1649  --with-x                use the X Window System
1650  --with-apple-opengl-framework
1651                          use Apple OpenGL framework (Mac OS X only)
1652  --with-default-strip-size=SIZE
1653                          default size of the strip in bytes (when strip
1654                          chopping enabled) [default=8192]
1655
1656Some influential environment variables:
1657  CC          C compiler command
1658  CFLAGS      C compiler flags
1659  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1660              nonstandard directory <lib dir>
1661  LIBS        libraries to pass to the linker, e.g. -l<library>
1662  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1663              you have headers in a nonstandard directory <include dir>
1664  CPP         C preprocessor
1665  CXX         C++ compiler command
1666  CXXFLAGS    C++ compiler flags
1667  CXXCPP      C++ preprocessor
1668  XMKMF       Path to xmkmf, Makefile generator for X Window System
1669
1670Use these variables to override the choices made by `configure' or to help
1671it to find libraries and programs with nonstandard names/locations.
1672
1673Report bugs to <tiff@lists.maptools.org>.
1674_ACEOF
1675ac_status=$?
1676fi
1677
1678if test "$ac_init_help" = "recursive"; then
1679  # If there are subdirs, report their specific --help.
1680  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1681    test -d "$ac_dir" ||
1682      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1683      continue
1684    ac_builddir=.
1685
1686case "$ac_dir" in
1687.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1688*)
1689  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1690  # A ".." for each directory in $ac_dir_suffix.
1691  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1692  case $ac_top_builddir_sub in
1693  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1694  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1695  esac ;;
1696esac
1697ac_abs_top_builddir=$ac_pwd
1698ac_abs_builddir=$ac_pwd$ac_dir_suffix
1699# for backward compatibility:
1700ac_top_builddir=$ac_top_build_prefix
1701
1702case $srcdir in
1703  .)  # We are building in place.
1704    ac_srcdir=.
1705    ac_top_srcdir=$ac_top_builddir_sub
1706    ac_abs_top_srcdir=$ac_pwd ;;
1707  [\\/]* | ?:[\\/]* )  # Absolute name.
1708    ac_srcdir=$srcdir$ac_dir_suffix;
1709    ac_top_srcdir=$srcdir
1710    ac_abs_top_srcdir=$srcdir ;;
1711  *) # Relative name.
1712    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1713    ac_top_srcdir=$ac_top_build_prefix$srcdir
1714    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1715esac
1716ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1717
1718    cd "$ac_dir" || { ac_status=$?; continue; }
1719    # Check for guested configure.
1720    if test -f "$ac_srcdir/configure.gnu"; then
1721      echo &&
1722      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1723    elif test -f "$ac_srcdir/configure"; then
1724      echo &&
1725      $SHELL "$ac_srcdir/configure" --help=recursive
1726    else
1727      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1728    fi || ac_status=$?
1729    cd "$ac_pwd" || { ac_status=$?; break; }
1730  done
1731fi
1732
1733test -n "$ac_init_help" && exit $ac_status
1734if $ac_init_version; then
1735  cat <<\_ACEOF
1736LibTIFF Software configure 4.0.0beta5
1737generated by GNU Autoconf 2.64
1738
1739Copyright (C) 2009 Free Software Foundation, Inc.
1740This configure script is free software; the Free Software Foundation
1741gives unlimited permission to copy, distribute and modify it.
1742_ACEOF
1743  exit
1744fi
1745
1746## ------------------------ ##
1747## Autoconf initialization. ##
1748## ------------------------ ##
1749
1750# ac_fn_c_try_compile LINENO
1751# --------------------------
1752# Try to compile conftest.$ac_ext, and return whether this succeeded.
1753ac_fn_c_try_compile ()
1754{
1755  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756  rm -f conftest.$ac_objext
1757  if { { ac_try="$ac_compile"
1758case "(($ac_try" in
1759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760  *) ac_try_echo=$ac_try;;
1761esac
1762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763$as_echo "$ac_try_echo"; } >&5
1764  (eval "$ac_compile") 2>conftest.err
1765  ac_status=$?
1766  if test -s conftest.err; then
1767    grep -v '^ *+' conftest.err >conftest.er1
1768    cat conftest.er1 >&5
1769    mv -f conftest.er1 conftest.err
1770  fi
1771  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772  test $ac_status = 0; } && {
1773	 test -z "$ac_c_werror_flag" ||
1774	 test ! -s conftest.err
1775       } && test -s conftest.$ac_objext; then :
1776  ac_retval=0
1777else
1778  $as_echo "$as_me: failed program was:" >&5
1779sed 's/^/| /' conftest.$ac_ext >&5
1780
1781	ac_retval=1
1782fi
1783  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1784  return $ac_retval
1785
1786} # ac_fn_c_try_compile
1787
1788# ac_fn_c_try_link LINENO
1789# -----------------------
1790# Try to link conftest.$ac_ext, and return whether this succeeded.
1791ac_fn_c_try_link ()
1792{
1793  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794  rm -f conftest.$ac_objext conftest$ac_exeext
1795  if { { ac_try="$ac_link"
1796case "(($ac_try" in
1797  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798  *) ac_try_echo=$ac_try;;
1799esac
1800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801$as_echo "$ac_try_echo"; } >&5
1802  (eval "$ac_link") 2>conftest.err
1803  ac_status=$?
1804  if test -s conftest.err; then
1805    grep -v '^ *+' conftest.err >conftest.er1
1806    cat conftest.er1 >&5
1807    mv -f conftest.er1 conftest.err
1808  fi
1809  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1810  test $ac_status = 0; } && {
1811	 test -z "$ac_c_werror_flag" ||
1812	 test ! -s conftest.err
1813       } && test -s conftest$ac_exeext && {
1814	 test "$cross_compiling" = yes ||
1815	 $as_test_x conftest$ac_exeext
1816       }; then :
1817  ac_retval=0
1818else
1819  $as_echo "$as_me: failed program was:" >&5
1820sed 's/^/| /' conftest.$ac_ext >&5
1821
1822	ac_retval=1
1823fi
1824  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1825  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1826  # interfere with the next link command; also delete a directory that is
1827  # left behind by Apple's compiler.  We do this before executing the actions.
1828  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1829  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1830  return $ac_retval
1831
1832} # ac_fn_c_try_link
1833
1834# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1835# -------------------------------------------------------
1836# Tests whether HEADER exists and can be compiled using the include files in
1837# INCLUDES, setting the cache variable VAR accordingly.
1838ac_fn_c_check_header_compile ()
1839{
1840  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842$as_echo_n "checking for $2... " >&6; }
1843if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1844  $as_echo_n "(cached) " >&6
1845else
1846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847/* end confdefs.h.  */
1848$4
1849#include <$2>
1850_ACEOF
1851if ac_fn_c_try_compile "$LINENO"; then :
1852  eval "$3=yes"
1853else
1854  eval "$3=no"
1855fi
1856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1857fi
1858eval ac_res=\$$3
1859	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1860$as_echo "$ac_res" >&6; }
1861  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1862
1863} # ac_fn_c_check_header_compile
1864
1865# ac_fn_c_try_cpp LINENO
1866# ----------------------
1867# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1868ac_fn_c_try_cpp ()
1869{
1870  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871  if { { ac_try="$ac_cpp conftest.$ac_ext"
1872case "(($ac_try" in
1873  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874  *) ac_try_echo=$ac_try;;
1875esac
1876eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877$as_echo "$ac_try_echo"; } >&5
1878  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1879  ac_status=$?
1880  if test -s conftest.err; then
1881    grep -v '^ *+' conftest.err >conftest.er1
1882    cat conftest.er1 >&5
1883    mv -f conftest.er1 conftest.err
1884  fi
1885  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1886  test $ac_status = 0; } >/dev/null && {
1887	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1888	 test ! -s conftest.err
1889       }; then :
1890  ac_retval=0
1891else
1892  $as_echo "$as_me: failed program was:" >&5
1893sed 's/^/| /' conftest.$ac_ext >&5
1894
1895    ac_retval=1
1896fi
1897  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1898  return $ac_retval
1899
1900} # ac_fn_c_try_cpp
1901
1902# ac_fn_c_try_run LINENO
1903# ----------------------
1904# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1905# that executables *can* be run.
1906ac_fn_c_try_run ()
1907{
1908  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909  if { { ac_try="$ac_link"
1910case "(($ac_try" in
1911  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1912  *) ac_try_echo=$ac_try;;
1913esac
1914eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1915$as_echo "$ac_try_echo"; } >&5
1916  (eval "$ac_link") 2>&5
1917  ac_status=$?
1918  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1919  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1920  { { case "(($ac_try" in
1921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1922  *) ac_try_echo=$ac_try;;
1923esac
1924eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1925$as_echo "$ac_try_echo"; } >&5
1926  (eval "$ac_try") 2>&5
1927  ac_status=$?
1928  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929  test $ac_status = 0; }; }; then :
1930  ac_retval=0
1931else
1932  $as_echo "$as_me: program exited with status $ac_status" >&5
1933       $as_echo "$as_me: failed program was:" >&5
1934sed 's/^/| /' conftest.$ac_ext >&5
1935
1936       ac_retval=$ac_status
1937fi
1938  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1939  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1940  return $ac_retval
1941
1942} # ac_fn_c_try_run
1943
1944# ac_fn_c_check_func LINENO FUNC VAR
1945# ----------------------------------
1946# Tests whether FUNC exists, setting the cache variable VAR accordingly
1947ac_fn_c_check_func ()
1948{
1949  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1951$as_echo_n "checking for $2... " >&6; }
1952if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1953  $as_echo_n "(cached) " >&6
1954else
1955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956/* end confdefs.h.  */
1957/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1958   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1959#define $2 innocuous_$2
1960
1961/* System header to define __stub macros and hopefully few prototypes,
1962    which can conflict with char $2 (); below.
1963    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1964    <limits.h> exists even on freestanding compilers.  */
1965
1966#ifdef __STDC__
1967# include <limits.h>
1968#else
1969# include <assert.h>
1970#endif
1971
1972#undef $2
1973
1974/* Override any GCC internal prototype to avoid an error.
1975   Use char because int might match the return type of a GCC
1976   builtin and then its argument prototype would still apply.  */
1977#ifdef __cplusplus
1978extern "C"
1979#endif
1980char $2 ();
1981/* The GNU C library defines this for functions which it implements
1982    to always fail with ENOSYS.  Some functions are actually named
1983    something starting with __ and the normal name is an alias.  */
1984#if defined __stub_$2 || defined __stub___$2
1985choke me
1986#endif
1987
1988int
1989main ()
1990{
1991return $2 ();
1992  ;
1993  return 0;
1994}
1995_ACEOF
1996if ac_fn_c_try_link "$LINENO"; then :
1997  eval "$3=yes"
1998else
1999  eval "$3=no"
2000fi
2001rm -f core conftest.err conftest.$ac_objext \
2002    conftest$ac_exeext conftest.$ac_ext
2003fi
2004eval ac_res=\$$3
2005	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2006$as_echo "$ac_res" >&6; }
2007  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2008
2009} # ac_fn_c_check_func
2010
2011# ac_fn_cxx_try_compile LINENO
2012# ----------------------------
2013# Try to compile conftest.$ac_ext, and return whether this succeeded.
2014ac_fn_cxx_try_compile ()
2015{
2016  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017  rm -f conftest.$ac_objext
2018  if { { ac_try="$ac_compile"
2019case "(($ac_try" in
2020  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2021  *) ac_try_echo=$ac_try;;
2022esac
2023eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2024$as_echo "$ac_try_echo"; } >&5
2025  (eval "$ac_compile") 2>conftest.err
2026  ac_status=$?
2027  if test -s conftest.err; then
2028    grep -v '^ *+' conftest.err >conftest.er1
2029    cat conftest.er1 >&5
2030    mv -f conftest.er1 conftest.err
2031  fi
2032  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2033  test $ac_status = 0; } && {
2034	 test -z "$ac_cxx_werror_flag" ||
2035	 test ! -s conftest.err
2036       } && test -s conftest.$ac_objext; then :
2037  ac_retval=0
2038else
2039  $as_echo "$as_me: failed program was:" >&5
2040sed 's/^/| /' conftest.$ac_ext >&5
2041
2042	ac_retval=1
2043fi
2044  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2045  return $ac_retval
2046
2047} # ac_fn_cxx_try_compile
2048
2049# ac_fn_cxx_try_cpp LINENO
2050# ------------------------
2051# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2052ac_fn_cxx_try_cpp ()
2053{
2054  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055  if { { ac_try="$ac_cpp conftest.$ac_ext"
2056case "(($ac_try" in
2057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2058  *) ac_try_echo=$ac_try;;
2059esac
2060eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2061$as_echo "$ac_try_echo"; } >&5
2062  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2063  ac_status=$?
2064  if test -s conftest.err; then
2065    grep -v '^ *+' conftest.err >conftest.er1
2066    cat conftest.er1 >&5
2067    mv -f conftest.er1 conftest.err
2068  fi
2069  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2070  test $ac_status = 0; } >/dev/null && {
2071	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2072	 test ! -s conftest.err
2073       }; then :
2074  ac_retval=0
2075else
2076  $as_echo "$as_me: failed program was:" >&5
2077sed 's/^/| /' conftest.$ac_ext >&5
2078
2079    ac_retval=1
2080fi
2081  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2082  return $ac_retval
2083
2084} # ac_fn_cxx_try_cpp
2085
2086# ac_fn_cxx_try_link LINENO
2087# -------------------------
2088# Try to link conftest.$ac_ext, and return whether this succeeded.
2089ac_fn_cxx_try_link ()
2090{
2091  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2092  rm -f conftest.$ac_objext conftest$ac_exeext
2093  if { { ac_try="$ac_link"
2094case "(($ac_try" in
2095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2096  *) ac_try_echo=$ac_try;;
2097esac
2098eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2099$as_echo "$ac_try_echo"; } >&5
2100  (eval "$ac_link") 2>conftest.err
2101  ac_status=$?
2102  if test -s conftest.err; then
2103    grep -v '^ *+' conftest.err >conftest.er1
2104    cat conftest.er1 >&5
2105    mv -f conftest.er1 conftest.err
2106  fi
2107  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2108  test $ac_status = 0; } && {
2109	 test -z "$ac_cxx_werror_flag" ||
2110	 test ! -s conftest.err
2111       } && test -s conftest$ac_exeext && {
2112	 test "$cross_compiling" = yes ||
2113	 $as_test_x conftest$ac_exeext
2114       }; then :
2115  ac_retval=0
2116else
2117  $as_echo "$as_me: failed program was:" >&5
2118sed 's/^/| /' conftest.$ac_ext >&5
2119
2120	ac_retval=1
2121fi
2122  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2123  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2124  # interfere with the next link command; also delete a directory that is
2125  # left behind by Apple's compiler.  We do this before executing the actions.
2126  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2127  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2128  return $ac_retval
2129
2130} # ac_fn_cxx_try_link
2131
2132# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2133# -------------------------------------------------------
2134# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2135# the include files in INCLUDES and setting the cache variable VAR
2136# accordingly.
2137ac_fn_c_check_header_mongrel ()
2138{
2139  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2140  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2141  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2142$as_echo_n "checking for $2... " >&6; }
2143if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2144  $as_echo_n "(cached) " >&6
2145fi
2146eval ac_res=\$$3
2147	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2148$as_echo "$ac_res" >&6; }
2149else
2150  # Is the header compilable?
2151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2152$as_echo_n "checking $2 usability... " >&6; }
2153cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2154/* end confdefs.h.  */
2155$4
2156#include <$2>
2157_ACEOF
2158if ac_fn_c_try_compile "$LINENO"; then :
2159  ac_header_compiler=yes
2160else
2161  ac_header_compiler=no
2162fi
2163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2165$as_echo "$ac_header_compiler" >&6; }
2166
2167# Is the header present?
2168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2169$as_echo_n "checking $2 presence... " >&6; }
2170cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2171/* end confdefs.h.  */
2172#include <$2>
2173_ACEOF
2174if ac_fn_c_try_cpp "$LINENO"; then :
2175  ac_header_preproc=yes
2176else
2177  ac_header_preproc=no
2178fi
2179rm -f conftest.err conftest.$ac_ext
2180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2181$as_echo "$ac_header_preproc" >&6; }
2182
2183# So?  What about this header?
2184case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2185  yes:no: )
2186    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2187$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2188    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2189$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2190    ;;
2191  no:yes:* )
2192    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2193$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2194    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2195$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2196    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2197$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2198    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2199$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2200    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2201$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2202( cat <<\_ASBOX
2203## -------------------------------------- ##
2204## Report this to [email protected] ##
2205## -------------------------------------- ##
2206_ASBOX
2207     ) | sed "s/^/$as_me: WARNING:     /" >&2
2208    ;;
2209esac
2210  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2211$as_echo_n "checking for $2... " >&6; }
2212if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2213  $as_echo_n "(cached) " >&6
2214else
2215  eval "$3=\$ac_header_compiler"
2216fi
2217eval ac_res=\$$3
2218	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2219$as_echo "$ac_res" >&6; }
2220fi
2221  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2222
2223} # ac_fn_c_check_header_mongrel
2224
2225# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2226# -------------------------------------------
2227# Tests whether TYPE exists after having included INCLUDES, setting cache
2228# variable VAR accordingly.
2229ac_fn_c_check_type ()
2230{
2231  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2233$as_echo_n "checking for $2... " >&6; }
2234if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2235  $as_echo_n "(cached) " >&6
2236else
2237  eval "$3=no"
2238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239/* end confdefs.h.  */
2240$4
2241int
2242main ()
2243{
2244if (sizeof ($2))
2245	 return 0;
2246  ;
2247  return 0;
2248}
2249_ACEOF
2250if ac_fn_c_try_compile "$LINENO"; then :
2251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252/* end confdefs.h.  */
2253$4
2254int
2255main ()
2256{
2257if (sizeof (($2)))
2258	    return 0;
2259  ;
2260  return 0;
2261}
2262_ACEOF
2263if ac_fn_c_try_compile "$LINENO"; then :
2264
2265else
2266  eval "$3=yes"
2267fi
2268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2269fi
2270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2271fi
2272eval ac_res=\$$3
2273	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2274$as_echo "$ac_res" >&6; }
2275  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2276
2277} # ac_fn_c_check_type
2278
2279# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2280# --------------------------------------------
2281# Tries to find the compile-time value of EXPR in a program that includes
2282# INCLUDES, setting VAR accordingly. Returns whether the value could be
2283# computed
2284ac_fn_c_compute_int ()
2285{
2286  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2287  if test "$cross_compiling" = yes; then
2288    # Depending upon the size, compute the lo and hi bounds.
2289cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2290/* end confdefs.h.  */
2291$4
2292int
2293main ()
2294{
2295static int test_array [1 - 2 * !(($2) >= 0)];
2296test_array [0] = 0
2297
2298  ;
2299  return 0;
2300}
2301_ACEOF
2302if ac_fn_c_try_compile "$LINENO"; then :
2303  ac_lo=0 ac_mid=0
2304  while :; do
2305    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2306/* end confdefs.h.  */
2307$4
2308int
2309main ()
2310{
2311static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2312test_array [0] = 0
2313
2314  ;
2315  return 0;
2316}
2317_ACEOF
2318if ac_fn_c_try_compile "$LINENO"; then :
2319  ac_hi=$ac_mid; break
2320else
2321  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2322			if test $ac_lo -le $ac_mid; then
2323			  ac_lo= ac_hi=
2324			  break
2325			fi
2326			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2327fi
2328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2329  done
2330else
2331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2332/* end confdefs.h.  */
2333$4
2334int
2335main ()
2336{
2337static int test_array [1 - 2 * !(($2) < 0)];
2338test_array [0] = 0
2339
2340  ;
2341  return 0;
2342}
2343_ACEOF
2344if ac_fn_c_try_compile "$LINENO"; then :
2345  ac_hi=-1 ac_mid=-1
2346  while :; do
2347    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2348/* end confdefs.h.  */
2349$4
2350int
2351main ()
2352{
2353static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2354test_array [0] = 0
2355
2356  ;
2357  return 0;
2358}
2359_ACEOF
2360if ac_fn_c_try_compile "$LINENO"; then :
2361  ac_lo=$ac_mid; break
2362else
2363  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2364			if test $ac_mid -le $ac_hi; then
2365			  ac_lo= ac_hi=
2366			  break
2367			fi
2368			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2369fi
2370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2371  done
2372else
2373  ac_lo= ac_hi=
2374fi
2375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2376fi
2377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2378# Binary search between lo and hi bounds.
2379while test "x$ac_lo" != "x$ac_hi"; do
2380  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2382/* end confdefs.h.  */
2383$4
2384int
2385main ()
2386{
2387static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2388test_array [0] = 0
2389
2390  ;
2391  return 0;
2392}
2393_ACEOF
2394if ac_fn_c_try_compile "$LINENO"; then :
2395  ac_hi=$ac_mid
2396else
2397  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2398fi
2399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2400done
2401case $ac_lo in #((
2402?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2403'') ac_retval=1 ;;
2404esac
2405  else
2406    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2407/* end confdefs.h.  */
2408$4
2409static long int longval () { return $2; }
2410static unsigned long int ulongval () { return $2; }
2411#include <stdio.h>
2412#include <stdlib.h>
2413int
2414main ()
2415{
2416
2417  FILE *f = fopen ("conftest.val", "w");
2418  if (! f)
2419    return 1;
2420  if (($2) < 0)
2421    {
2422      long int i = longval ();
2423      if (i != ($2))
2424	return 1;
2425      fprintf (f, "%ld", i);
2426    }
2427  else
2428    {
2429      unsigned long int i = ulongval ();
2430      if (i != ($2))
2431	return 1;
2432      fprintf (f, "%lu", i);
2433    }
2434  /* Do not output a trailing newline, as this causes \r\n confusion
2435     on some platforms.  */
2436  return ferror (f) || fclose (f) != 0;
2437
2438  ;
2439  return 0;
2440}
2441_ACEOF
2442if ac_fn_c_try_run "$LINENO"; then :
2443  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2444else
2445  ac_retval=1
2446fi
2447rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2448  conftest.$ac_objext conftest.beam conftest.$ac_ext
2449rm -f conftest.val
2450
2451  fi
2452  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2453  return $ac_retval
2454
2455} # ac_fn_c_compute_int
2456cat >config.log <<_ACEOF
2457This file contains any messages produced by compilers while
2458running configure, to aid debugging if configure makes a mistake.
2459
2460It was created by LibTIFF Software $as_me 4.0.0beta5, which was
2461generated by GNU Autoconf 2.64.  Invocation command line was
2462
2463  $ $0 $@
2464
2465_ACEOF
2466exec 5>>config.log
2467{
2468cat <<_ASUNAME
2469## --------- ##
2470## Platform. ##
2471## --------- ##
2472
2473hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2474uname -m = `(uname -m) 2>/dev/null || echo unknown`
2475uname -r = `(uname -r) 2>/dev/null || echo unknown`
2476uname -s = `(uname -s) 2>/dev/null || echo unknown`
2477uname -v = `(uname -v) 2>/dev/null || echo unknown`
2478
2479/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2480/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2481
2482/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2483/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2484/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2485/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2486/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2487/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2488/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2489
2490_ASUNAME
2491
2492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493for as_dir in $PATH
2494do
2495  IFS=$as_save_IFS
2496  test -z "$as_dir" && as_dir=.
2497    $as_echo "PATH: $as_dir"
2498  done
2499IFS=$as_save_IFS
2500
2501} >&5
2502
2503cat >&5 <<_ACEOF
2504
2505
2506## ----------- ##
2507## Core tests. ##
2508## ----------- ##
2509
2510_ACEOF
2511
2512
2513# Keep a trace of the command line.
2514# Strip out --no-create and --no-recursion so they do not pile up.
2515# Strip out --silent because we don't want to record it for future runs.
2516# Also quote any args containing shell meta-characters.
2517# Make two passes to allow for proper duplicate-argument suppression.
2518ac_configure_args=
2519ac_configure_args0=
2520ac_configure_args1=
2521ac_must_keep_next=false
2522for ac_pass in 1 2
2523do
2524  for ac_arg
2525  do
2526    case $ac_arg in
2527    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2528    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2529    | -silent | --silent | --silen | --sile | --sil)
2530      continue ;;
2531    *\'*)
2532      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2533    esac
2534    case $ac_pass in
2535    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2536    2)
2537      as_fn_append ac_configure_args1 " '$ac_arg'"
2538      if test $ac_must_keep_next = true; then
2539	ac_must_keep_next=false # Got value, back to normal.
2540      else
2541	case $ac_arg in
2542	  *=* | --config-cache | -C | -disable-* | --disable-* \
2543	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2544	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2545	  | -with-* | --with-* | -without-* | --without-* | --x)
2546	    case "$ac_configure_args0 " in
2547	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2548	    esac
2549	    ;;
2550	  -* ) ac_must_keep_next=true ;;
2551	esac
2552      fi
2553      as_fn_append ac_configure_args " '$ac_arg'"
2554      ;;
2555    esac
2556  done
2557done
2558{ ac_configure_args0=; unset ac_configure_args0;}
2559{ ac_configure_args1=; unset ac_configure_args1;}
2560
2561# When interrupted or exit'd, cleanup temporary files, and complete
2562# config.log.  We remove comments because anyway the quotes in there
2563# would cause problems or look ugly.
2564# WARNING: Use '\'' to represent an apostrophe within the trap.
2565# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2566trap 'exit_status=$?
2567  # Save into config.log some information that might help in debugging.
2568  {
2569    echo
2570
2571    cat <<\_ASBOX
2572## ---------------- ##
2573## Cache variables. ##
2574## ---------------- ##
2575_ASBOX
2576    echo
2577    # The following way of writing the cache mishandles newlines in values,
2578(
2579  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2580    eval ac_val=\$$ac_var
2581    case $ac_val in #(
2582    *${as_nl}*)
2583      case $ac_var in #(
2584      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2585$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2586      esac
2587      case $ac_var in #(
2588      _ | IFS | as_nl) ;; #(
2589      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2590      *) { eval $ac_var=; unset $ac_var;} ;;
2591      esac ;;
2592    esac
2593  done
2594  (set) 2>&1 |
2595    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2596    *${as_nl}ac_space=\ *)
2597      sed -n \
2598	"s/'\''/'\''\\\\'\'''\''/g;
2599	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2600      ;; #(
2601    *)
2602      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2603      ;;
2604    esac |
2605    sort
2606)
2607    echo
2608
2609    cat <<\_ASBOX
2610## ----------------- ##
2611## Output variables. ##
2612## ----------------- ##
2613_ASBOX
2614    echo
2615    for ac_var in $ac_subst_vars
2616    do
2617      eval ac_val=\$$ac_var
2618      case $ac_val in
2619      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2620      esac
2621      $as_echo "$ac_var='\''$ac_val'\''"
2622    done | sort
2623    echo
2624
2625    if test -n "$ac_subst_files"; then
2626      cat <<\_ASBOX
2627## ------------------- ##
2628## File substitutions. ##
2629## ------------------- ##
2630_ASBOX
2631      echo
2632      for ac_var in $ac_subst_files
2633      do
2634	eval ac_val=\$$ac_var
2635	case $ac_val in
2636	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2637	esac
2638	$as_echo "$ac_var='\''$ac_val'\''"
2639      done | sort
2640      echo
2641    fi
2642
2643    if test -s confdefs.h; then
2644      cat <<\_ASBOX
2645## ----------- ##
2646## confdefs.h. ##
2647## ----------- ##
2648_ASBOX
2649      echo
2650      cat confdefs.h
2651      echo
2652    fi
2653    test "$ac_signal" != 0 &&
2654      $as_echo "$as_me: caught signal $ac_signal"
2655    $as_echo "$as_me: exit $exit_status"
2656  } >&5
2657  rm -f core *.core core.conftest.* &&
2658    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2659    exit $exit_status
2660' 0
2661for ac_signal in 1 2 13 15; do
2662  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2663done
2664ac_signal=0
2665
2666# confdefs.h avoids OS command line length limits that DEFS can exceed.
2667rm -f -r conftest* confdefs.h
2668
2669$as_echo "/* confdefs.h */" > confdefs.h
2670
2671# Predefined preprocessor variables.
2672
2673cat >>confdefs.h <<_ACEOF
2674#define PACKAGE_NAME "$PACKAGE_NAME"
2675_ACEOF
2676
2677cat >>confdefs.h <<_ACEOF
2678#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2679_ACEOF
2680
2681cat >>confdefs.h <<_ACEOF
2682#define PACKAGE_VERSION "$PACKAGE_VERSION"
2683_ACEOF
2684
2685cat >>confdefs.h <<_ACEOF
2686#define PACKAGE_STRING "$PACKAGE_STRING"
2687_ACEOF
2688
2689cat >>confdefs.h <<_ACEOF
2690#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2691_ACEOF
2692
2693cat >>confdefs.h <<_ACEOF
2694#define PACKAGE_URL "$PACKAGE_URL"
2695_ACEOF
2696
2697
2698# Let the site file select an alternate cache file if it wants to.
2699# Prefer an explicitly selected file to automatically selected ones.
2700ac_site_file1=NONE
2701ac_site_file2=NONE
2702if test -n "$CONFIG_SITE"; then
2703  ac_site_file1=$CONFIG_SITE
2704elif test "x$prefix" != xNONE; then
2705  ac_site_file1=$prefix/share/config.site
2706  ac_site_file2=$prefix/etc/config.site
2707else
2708  ac_site_file1=$ac_default_prefix/share/config.site
2709  ac_site_file2=$ac_default_prefix/etc/config.site
2710fi
2711for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2712do
2713  test "x$ac_site_file" = xNONE && continue
2714  if test -r "$ac_site_file"; then
2715    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2716$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2717    sed 's/^/| /' "$ac_site_file" >&5
2718    . "$ac_site_file"
2719  fi
2720done
2721
2722if test -r "$cache_file"; then
2723  # Some versions of bash will fail to source /dev/null (special
2724  # files actually), so we avoid doing that.
2725  if test -f "$cache_file"; then
2726    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2727$as_echo "$as_me: loading cache $cache_file" >&6;}
2728    case $cache_file in
2729      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2730      *)                      . "./$cache_file";;
2731    esac
2732  fi
2733else
2734  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2735$as_echo "$as_me: creating cache $cache_file" >&6;}
2736  >$cache_file
2737fi
2738
2739# Check that the precious variables saved in the cache have kept the same
2740# value.
2741ac_cache_corrupted=false
2742for ac_var in $ac_precious_vars; do
2743  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2744  eval ac_new_set=\$ac_env_${ac_var}_set
2745  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2746  eval ac_new_val=\$ac_env_${ac_var}_value
2747  case $ac_old_set,$ac_new_set in
2748    set,)
2749      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2750$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2751      ac_cache_corrupted=: ;;
2752    ,set)
2753      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2754$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2755      ac_cache_corrupted=: ;;
2756    ,);;
2757    *)
2758      if test "x$ac_old_val" != "x$ac_new_val"; then
2759	# differences in whitespace do not lead to failure.
2760	ac_old_val_w=`echo x $ac_old_val`
2761	ac_new_val_w=`echo x $ac_new_val`
2762	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2763	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2764$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2765	  ac_cache_corrupted=:
2766	else
2767	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2768$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2769	  eval $ac_var=\$ac_old_val
2770	fi
2771	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2772$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2773	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2774$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2775      fi;;
2776  esac
2777  # Pass precious variables to config.status.
2778  if test "$ac_new_set" = set; then
2779    case $ac_new_val in
2780    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2781    *) ac_arg=$ac_var=$ac_new_val ;;
2782    esac
2783    case " $ac_configure_args " in
2784      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2785      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2786    esac
2787  fi
2788done
2789if $ac_cache_corrupted; then
2790  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2791$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2792  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2793$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2794  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2795fi
2796## -------------------- ##
2797## Main body of script. ##
2798## -------------------- ##
2799
2800ac_ext=c
2801ac_cpp='$CPP $CPPFLAGS'
2802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2804ac_compiler_gnu=$ac_cv_c_compiler_gnu
2805
2806
2807ac_aux_dir=
2808for ac_dir in config "$srcdir"/config; do
2809  for ac_t in install-sh install.sh shtool; do
2810    if test -f "$ac_dir/$ac_t"; then
2811      ac_aux_dir=$ac_dir
2812      ac_install_sh="$ac_aux_dir/$ac_t -c"
2813      break 2
2814    fi
2815  done
2816done
2817if test -z "$ac_aux_dir"; then
2818  as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2819fi
2820
2821# These three variables are undocumented and unsupported,
2822# and are intended to be withdrawn in a future Autoconf release.
2823# They can cause serious problems if a builder's source tree is in a directory
2824# whose full name contains unusual characters.
2825ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2826ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2827ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2828
2829
2830
2831ac_ext=c
2832ac_cpp='$CPP $CPPFLAGS'
2833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2835ac_compiler_gnu=$ac_cv_c_compiler_gnu
2836
2837
2838# Make sure we can run config.sub.
2839$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2840  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2841
2842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2843$as_echo_n "checking build system type... " >&6; }
2844if test "${ac_cv_build+set}" = set; then :
2845  $as_echo_n "(cached) " >&6
2846else
2847  ac_build_alias=$build_alias
2848test "x$ac_build_alias" = x &&
2849  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2850test "x$ac_build_alias" = x &&
2851  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2852ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2853  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2854
2855fi
2856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2857$as_echo "$ac_cv_build" >&6; }
2858case $ac_cv_build in
2859*-*-*) ;;
2860*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2861esac
2862build=$ac_cv_build
2863ac_save_IFS=$IFS; IFS='-'
2864set x $ac_cv_build
2865shift
2866build_cpu=$1
2867build_vendor=$2
2868shift; shift
2869# Remember, the first character of IFS is used to create $*,
2870# except with old shells:
2871build_os=$*
2872IFS=$ac_save_IFS
2873case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2874
2875
2876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2877$as_echo_n "checking host system type... " >&6; }
2878if test "${ac_cv_host+set}" = set; then :
2879  $as_echo_n "(cached) " >&6
2880else
2881  if test "x$host_alias" = x; then
2882  ac_cv_host=$ac_cv_build
2883else
2884  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2885    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2886fi
2887
2888fi
2889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2890$as_echo "$ac_cv_host" >&6; }
2891case $ac_cv_host in
2892*-*-*) ;;
2893*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2894esac
2895host=$ac_cv_host
2896ac_save_IFS=$IFS; IFS='-'
2897set x $ac_cv_host
2898shift
2899host_cpu=$1
2900host_vendor=$2
2901shift; shift
2902# Remember, the first character of IFS is used to create $*,
2903# except with old shells:
2904host_os=$*
2905IFS=$ac_save_IFS
2906case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2907
2908
2909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2910$as_echo_n "checking target system type... " >&6; }
2911if test "${ac_cv_target+set}" = set; then :
2912  $as_echo_n "(cached) " >&6
2913else
2914  if test "x$target_alias" = x; then
2915  ac_cv_target=$ac_cv_host
2916else
2917  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2918    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2919fi
2920
2921fi
2922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2923$as_echo "$ac_cv_target" >&6; }
2924case $ac_cv_target in
2925*-*-*) ;;
2926*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2927esac
2928target=$ac_cv_target
2929ac_save_IFS=$IFS; IFS='-'
2930set x $ac_cv_target
2931shift
2932target_cpu=$1
2933target_vendor=$2
2934shift; shift
2935# Remember, the first character of IFS is used to create $*,
2936# except with old shells:
2937target_os=$*
2938IFS=$ac_save_IFS
2939case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2940
2941
2942# The aliases save the names the user supplied, while $host etc.
2943# will get canonicalized.
2944test -n "$target_alias" &&
2945  test "$program_prefix$program_suffix$program_transform_name" = \
2946    NONENONEs,x,x, &&
2947  program_prefix=${target_alias}-
2948
2949am__api_version='1.11'
2950
2951# Find a good install program.  We prefer a C program (faster),
2952# so one script is as good as another.  But avoid the broken or
2953# incompatible versions:
2954# SysV /etc/install, /usr/sbin/install
2955# SunOS /usr/etc/install
2956# IRIX /sbin/install
2957# AIX /bin/install
2958# AmigaOS /C/install, which installs bootblocks on floppy discs
2959# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2960# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2961# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2962# OS/2's system install, which has a completely different semantic
2963# ./install, which can be erroneously created by make from ./install.sh.
2964# Reject install programs that cannot install multiple files.
2965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2966$as_echo_n "checking for a BSD-compatible install... " >&6; }
2967if test -z "$INSTALL"; then
2968if test "${ac_cv_path_install+set}" = set; then :
2969  $as_echo_n "(cached) " >&6
2970else
2971  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972for as_dir in $PATH
2973do
2974  IFS=$as_save_IFS
2975  test -z "$as_dir" && as_dir=.
2976    # Account for people who put trailing slashes in PATH elements.
2977case $as_dir/ in #((
2978  ./ | .// | /[cC]/* | \
2979  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2980  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2981  /usr/ucb/* ) ;;
2982  *)
2983    # OSF1 and SCO ODT 3.0 have their own names for install.
2984    # Don't use installbsd from OSF since it installs stuff as root
2985    # by default.
2986    for ac_prog in ginstall scoinst install; do
2987      for ac_exec_ext in '' $ac_executable_extensions; do
2988	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2989	  if test $ac_prog = install &&
2990	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2991	    # AIX install.  It has an incompatible calling convention.
2992	    :
2993	  elif test $ac_prog = install &&
2994	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2995	    # program-specific install script used by HP pwplus--don't use.
2996	    :
2997	  else
2998	    rm -rf conftest.one conftest.two conftest.dir
2999	    echo one > conftest.one
3000	    echo two > conftest.two
3001	    mkdir conftest.dir
3002	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3003	      test -s conftest.one && test -s conftest.two &&
3004	      test -s conftest.dir/conftest.one &&
3005	      test -s conftest.dir/conftest.two
3006	    then
3007	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3008	      break 3
3009	    fi
3010	  fi
3011	fi
3012      done
3013    done
3014    ;;
3015esac
3016
3017  done
3018IFS=$as_save_IFS
3019
3020rm -rf conftest.one conftest.two conftest.dir
3021
3022fi
3023  if test "${ac_cv_path_install+set}" = set; then
3024    INSTALL=$ac_cv_path_install
3025  else
3026    # As a last resort, use the slow shell script.  Don't cache a
3027    # value for INSTALL within a source directory, because that will
3028    # break other packages using the cache if that directory is
3029    # removed, or if the value is a relative name.
3030    INSTALL=$ac_install_sh
3031  fi
3032fi
3033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3034$as_echo "$INSTALL" >&6; }
3035
3036# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3037# It thinks the first close brace ends the variable substitution.
3038test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3039
3040test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3041
3042test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3043
3044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3045$as_echo_n "checking whether build environment is sane... " >&6; }
3046# Just in case
3047sleep 1
3048echo timestamp > conftest.file
3049# Reject unsafe characters in $srcdir or the absolute working directory
3050# name.  Accept space and tab only in the latter.
3051am_lf='
3052'
3053case `pwd` in
3054  *[\\\"\#\$\&\'\`$am_lf]*)
3055    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3056esac
3057case $srcdir in
3058  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3059    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3060esac
3061
3062# Do `set' in a subshell so we don't clobber the current shell's
3063# arguments.  Must try -L first in case configure is actually a
3064# symlink; some systems play weird games with the mod time of symlinks
3065# (eg FreeBSD returns the mod time of the symlink's containing
3066# directory).
3067if (
3068   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3069   if test "$*" = "X"; then
3070      # -L didn't work.
3071      set X `ls -t "$srcdir/configure" conftest.file`
3072   fi
3073   rm -f conftest.file
3074   if test "$*" != "X $srcdir/configure conftest.file" \
3075      && test "$*" != "X conftest.file $srcdir/configure"; then
3076
3077      # If neither matched, then we have a broken ls.  This can happen
3078      # if, for instance, CONFIG_SHELL is bash and it inherits a
3079      # broken ls alias from the environment.  This has actually
3080      # happened.  Such a system could not be considered "sane".
3081      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
3082alias in your environment" "$LINENO" 5
3083   fi
3084
3085   test "$2" = conftest.file
3086   )
3087then
3088   # Ok.
3089   :
3090else
3091   as_fn_error "newly created file is older than distributed files!
3092Check your system clock" "$LINENO" 5
3093fi
3094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3095$as_echo "yes" >&6; }
3096test "$program_prefix" != NONE &&
3097  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3098# Use a double $ so make ignores it.
3099test "$program_suffix" != NONE &&
3100  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3101# Double any \ or $.
3102# By default was `s,x,x', remove it if useless.
3103ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3104program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3105
3106# expand $ac_aux_dir to an absolute path
3107am_aux_dir=`cd $ac_aux_dir && pwd`
3108
3109if test x"${MISSING+set}" != xset; then
3110  case $am_aux_dir in
3111  *\ * | *\	*)
3112    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3113  *)
3114    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3115  esac
3116fi
3117# Use eval to expand $SHELL
3118if eval "$MISSING --run true"; then
3119  am_missing_run="$MISSING --run "
3120else
3121  am_missing_run=
3122  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3123$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3124fi
3125
3126if test x"${install_sh}" != xset; then
3127  case $am_aux_dir in
3128  *\ * | *\	*)
3129    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3130  *)
3131    install_sh="\${SHELL} $am_aux_dir/install-sh"
3132  esac
3133fi
3134
3135# Installed binaries are usually stripped using `strip' when the user
3136# run `make install-strip'.  However `strip' might not be the right
3137# tool to use in cross-compilation environments, therefore Automake
3138# will honor the `STRIP' environment variable to overrule this program.
3139if test "$cross_compiling" != no; then
3140  if test -n "$ac_tool_prefix"; then
3141  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3142set dummy ${ac_tool_prefix}strip; ac_word=$2
3143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3144$as_echo_n "checking for $ac_word... " >&6; }
3145if test "${ac_cv_prog_STRIP+set}" = set; then :
3146  $as_echo_n "(cached) " >&6
3147else
3148  if test -n "$STRIP"; then
3149  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3150else
3151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152for as_dir in $PATH
3153do
3154  IFS=$as_save_IFS
3155  test -z "$as_dir" && as_dir=.
3156    for ac_exec_ext in '' $ac_executable_extensions; do
3157  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3158    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3159    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3160    break 2
3161  fi
3162done
3163  done
3164IFS=$as_save_IFS
3165
3166fi
3167fi
3168STRIP=$ac_cv_prog_STRIP
3169if test -n "$STRIP"; then
3170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3171$as_echo "$STRIP" >&6; }
3172else
3173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174$as_echo "no" >&6; }
3175fi
3176
3177
3178fi
3179if test -z "$ac_cv_prog_STRIP"; then
3180  ac_ct_STRIP=$STRIP
3181  # Extract the first word of "strip", so it can be a program name with args.
3182set dummy strip; ac_word=$2
3183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184$as_echo_n "checking for $ac_word... " >&6; }
3185if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3186  $as_echo_n "(cached) " >&6
3187else
3188  if test -n "$ac_ct_STRIP"; then
3189  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3190else
3191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3192for as_dir in $PATH
3193do
3194  IFS=$as_save_IFS
3195  test -z "$as_dir" && as_dir=.
3196    for ac_exec_ext in '' $ac_executable_extensions; do
3197  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3198    ac_cv_prog_ac_ct_STRIP="strip"
3199    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3200    break 2
3201  fi
3202done
3203  done
3204IFS=$as_save_IFS
3205
3206fi
3207fi
3208ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3209if test -n "$ac_ct_STRIP"; then
3210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3211$as_echo "$ac_ct_STRIP" >&6; }
3212else
3213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3214$as_echo "no" >&6; }
3215fi
3216
3217  if test "x$ac_ct_STRIP" = x; then
3218    STRIP=":"
3219  else
3220    case $cross_compiling:$ac_tool_warned in
3221yes:)
3222{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3223$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3224ac_tool_warned=yes ;;
3225esac
3226    STRIP=$ac_ct_STRIP
3227  fi
3228else
3229  STRIP="$ac_cv_prog_STRIP"
3230fi
3231
3232fi
3233INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3234
3235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3236$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3237if test -z "$MKDIR_P"; then
3238  if test "${ac_cv_path_mkdir+set}" = set; then :
3239  $as_echo_n "(cached) " >&6
3240else
3241  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3243do
3244  IFS=$as_save_IFS
3245  test -z "$as_dir" && as_dir=.
3246    for ac_prog in mkdir gmkdir; do
3247	 for ac_exec_ext in '' $ac_executable_extensions; do
3248	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3249	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3250	     'mkdir (GNU coreutils) '* | \
3251	     'mkdir (coreutils) '* | \
3252	     'mkdir (fileutils) '4.1*)
3253	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3254	       break 3;;
3255	   esac
3256	 done
3257       done
3258  done
3259IFS=$as_save_IFS
3260
3261fi
3262
3263  if test "${ac_cv_path_mkdir+set}" = set; then
3264    MKDIR_P="$ac_cv_path_mkdir -p"
3265  else
3266    # As a last resort, use the slow shell script.  Don't cache a
3267    # value for MKDIR_P within a source directory, because that will
3268    # break other packages using the cache if that directory is
3269    # removed, or if the value is a relative name.
3270    test -d ./--version && rmdir ./--version
3271    MKDIR_P="$ac_install_sh -d"
3272  fi
3273fi
3274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3275$as_echo "$MKDIR_P" >&6; }
3276
3277mkdir_p="$MKDIR_P"
3278case $mkdir_p in
3279  [\\/$]* | ?:[\\/]*) ;;
3280  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3281esac
3282
3283for ac_prog in gawk mawk nawk awk
3284do
3285  # Extract the first word of "$ac_prog", so it can be a program name with args.
3286set dummy $ac_prog; ac_word=$2
3287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3288$as_echo_n "checking for $ac_word... " >&6; }
3289if test "${ac_cv_prog_AWK+set}" = set; then :
3290  $as_echo_n "(cached) " >&6
3291else
3292  if test -n "$AWK"; then
3293  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3294else
3295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296for as_dir in $PATH
3297do
3298  IFS=$as_save_IFS
3299  test -z "$as_dir" && as_dir=.
3300    for ac_exec_ext in '' $ac_executable_extensions; do
3301  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3302    ac_cv_prog_AWK="$ac_prog"
3303    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3304    break 2
3305  fi
3306done
3307  done
3308IFS=$as_save_IFS
3309
3310fi
3311fi
3312AWK=$ac_cv_prog_AWK
3313if test -n "$AWK"; then
3314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3315$as_echo "$AWK" >&6; }
3316else
3317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318$as_echo "no" >&6; }
3319fi
3320
3321
3322  test -n "$AWK" && break
3323done
3324
3325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3326$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3327set x ${MAKE-make}
3328ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3329if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3330  $as_echo_n "(cached) " >&6
3331else
3332  cat >conftest.make <<\_ACEOF
3333SHELL = /bin/sh
3334all:
3335	@echo '@@@%%%=$(MAKE)=@@@%%%'
3336_ACEOF
3337# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3338case `${MAKE-make} -f conftest.make 2>/dev/null` in
3339  *@@@%%%=?*=@@@%%%*)
3340    eval ac_cv_prog_make_${ac_make}_set=yes;;
3341  *)
3342    eval ac_cv_prog_make_${ac_make}_set=no;;
3343esac
3344rm -f conftest.make
3345fi
3346if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3348$as_echo "yes" >&6; }
3349  SET_MAKE=
3350else
3351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3352$as_echo "no" >&6; }
3353  SET_MAKE="MAKE=${MAKE-make}"
3354fi
3355
3356rm -rf .tst 2>/dev/null
3357mkdir .tst 2>/dev/null
3358if test -d .tst; then
3359  am__leading_dot=.
3360else
3361  am__leading_dot=_
3362fi
3363rmdir .tst 2>/dev/null
3364
3365if test "`cd $srcdir && pwd`" != "`pwd`"; then
3366  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3367  # is not polluted with repeated "-I."
3368  am__isrc=' -I$(srcdir)'
3369  # test to see if srcdir already configured
3370  if test -f $srcdir/config.status; then
3371    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3372  fi
3373fi
3374
3375# test whether we have cygpath
3376if test -z "$CYGPATH_W"; then
3377  if (cygpath --version) >/dev/null 2>/dev/null; then
3378    CYGPATH_W='cygpath -w'
3379  else
3380    CYGPATH_W=echo
3381  fi
3382fi
3383
3384
3385# Define the identity of the package.
3386 PACKAGE='tiff'
3387 VERSION='4.0.0beta5'
3388
3389
3390cat >>confdefs.h <<_ACEOF
3391#define PACKAGE "$PACKAGE"
3392_ACEOF
3393
3394
3395cat >>confdefs.h <<_ACEOF
3396#define VERSION "$VERSION"
3397_ACEOF
3398
3399# Some tools Automake needs.
3400
3401ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3402
3403
3404AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3405
3406
3407AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3408
3409
3410AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3411
3412
3413MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3414
3415# We need awk for the "check" target.  The system "awk" is bad on
3416# some platforms.
3417# Always define AMTAR for backward compatibility.
3418
3419AMTAR=${AMTAR-"${am_missing_run}tar"}
3420
3421am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3422
3423
3424
3425
3426
3427
3428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3429$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3430    # Check whether --enable-maintainer-mode was given.
3431if test "${enable_maintainer_mode+set}" = set; then :
3432  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3433else
3434  USE_MAINTAINER_MODE=no
3435fi
3436
3437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3438$as_echo "$USE_MAINTAINER_MODE" >&6; }
3439   if test $USE_MAINTAINER_MODE = yes; then
3440  MAINTAINER_MODE_TRUE=
3441  MAINTAINER_MODE_FALSE='#'
3442else
3443  MAINTAINER_MODE_TRUE='#'
3444  MAINTAINER_MODE_FALSE=
3445fi
3446
3447  MAINT=$MAINTAINER_MODE_TRUE
3448
3449
3450
3451LIBTIFF_MAJOR_VERSION=4
3452LIBTIFF_MINOR_VERSION=0
3453LIBTIFF_MICRO_VERSION=0
3454LIBTIFF_ALPHA_VERSION=beta5
3455LIBTIFF_VERSION=$LIBTIFF_MAJOR_VERSION.$LIBTIFF_MINOR_VERSION.$LIBTIFF_MICRO_VERSION$LIBTIFF_ALPHA_VERSION
3456LIBTIFF_RELEASE_DATE=`date +"%Y%m%d"`
3457
3458LIBTIFF_CURRENT=5
3459LIBTIFF_REVISION=2
3460LIBTIFF_AGE=0
3461LIBTIFF_VERSION_INFO=$LIBTIFF_CURRENT:$LIBTIFF_REVISION:$LIBTIFF_AGE
3462
3463# This is a special hack for OpenBSD and MirOS systems. The dynamic linker
3464# in OpenBSD uses some special semantics for shared libraries. Their soname
3465# contains only two numbers, major and minor.
3466# See http://bugzilla.remotesensing.org/show_bug.cgi?id=838 for details.
3467#case "$target_os" in
3468#    openbsd* | mirbsd*)
3469#	LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION:0
3470#	;;
3471#    *)
3472#	LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION:$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION
3473#	;;
3474#esac
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484ac_ext=c
3485ac_cpp='$CPP $CPPFLAGS'
3486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3488ac_compiler_gnu=$ac_cv_c_compiler_gnu
3489if test -n "$ac_tool_prefix"; then
3490  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3491set dummy ${ac_tool_prefix}gcc; ac_word=$2
3492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3493$as_echo_n "checking for $ac_word... " >&6; }
3494if test "${ac_cv_prog_CC+set}" = set; then :
3495  $as_echo_n "(cached) " >&6
3496else
3497  if test -n "$CC"; then
3498  ac_cv_prog_CC="$CC" # Let the user override the test.
3499else
3500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501for as_dir in $PATH
3502do
3503  IFS=$as_save_IFS
3504  test -z "$as_dir" && as_dir=.
3505    for ac_exec_ext in '' $ac_executable_extensions; do
3506  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3507    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3508    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3509    break 2
3510  fi
3511done
3512  done
3513IFS=$as_save_IFS
3514
3515fi
3516fi
3517CC=$ac_cv_prog_CC
3518if test -n "$CC"; then
3519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3520$as_echo "$CC" >&6; }
3521else
3522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3523$as_echo "no" >&6; }
3524fi
3525
3526
3527fi
3528if test -z "$ac_cv_prog_CC"; then
3529  ac_ct_CC=$CC
3530  # Extract the first word of "gcc", so it can be a program name with args.
3531set dummy gcc; ac_word=$2
3532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3533$as_echo_n "checking for $ac_word... " >&6; }
3534if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3535  $as_echo_n "(cached) " >&6
3536else
3537  if test -n "$ac_ct_CC"; then
3538  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3539else
3540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541for as_dir in $PATH
3542do
3543  IFS=$as_save_IFS
3544  test -z "$as_dir" && as_dir=.
3545    for ac_exec_ext in '' $ac_executable_extensions; do
3546  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3547    ac_cv_prog_ac_ct_CC="gcc"
3548    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3549    break 2
3550  fi
3551done
3552  done
3553IFS=$as_save_IFS
3554
3555fi
3556fi
3557ac_ct_CC=$ac_cv_prog_ac_ct_CC
3558if test -n "$ac_ct_CC"; then
3559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3560$as_echo "$ac_ct_CC" >&6; }
3561else
3562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3563$as_echo "no" >&6; }
3564fi
3565
3566  if test "x$ac_ct_CC" = x; then
3567    CC=""
3568  else
3569    case $cross_compiling:$ac_tool_warned in
3570yes:)
3571{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3572$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3573ac_tool_warned=yes ;;
3574esac
3575    CC=$ac_ct_CC
3576  fi
3577else
3578  CC="$ac_cv_prog_CC"
3579fi
3580
3581if test -z "$CC"; then
3582          if test -n "$ac_tool_prefix"; then
3583    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3584set dummy ${ac_tool_prefix}cc; ac_word=$2
3585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3586$as_echo_n "checking for $ac_word... " >&6; }
3587if test "${ac_cv_prog_CC+set}" = set; then :
3588  $as_echo_n "(cached) " >&6
3589else
3590  if test -n "$CC"; then
3591  ac_cv_prog_CC="$CC" # Let the user override the test.
3592else
3593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594for as_dir in $PATH
3595do
3596  IFS=$as_save_IFS
3597  test -z "$as_dir" && as_dir=.
3598    for ac_exec_ext in '' $ac_executable_extensions; do
3599  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3600    ac_cv_prog_CC="${ac_tool_prefix}cc"
3601    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3602    break 2
3603  fi
3604done
3605  done
3606IFS=$as_save_IFS
3607
3608fi
3609fi
3610CC=$ac_cv_prog_CC
3611if test -n "$CC"; then
3612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3613$as_echo "$CC" >&6; }
3614else
3615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3616$as_echo "no" >&6; }
3617fi
3618
3619
3620  fi
3621fi
3622if test -z "$CC"; then
3623  # Extract the first word of "cc", so it can be a program name with args.
3624set dummy cc; ac_word=$2
3625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3626$as_echo_n "checking for $ac_word... " >&6; }
3627if test "${ac_cv_prog_CC+set}" = set; then :
3628  $as_echo_n "(cached) " >&6
3629else
3630  if test -n "$CC"; then
3631  ac_cv_prog_CC="$CC" # Let the user override the test.
3632else
3633  ac_prog_rejected=no
3634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635for as_dir in $PATH
3636do
3637  IFS=$as_save_IFS
3638  test -z "$as_dir" && as_dir=.
3639    for ac_exec_ext in '' $ac_executable_extensions; do
3640  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3641    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3642       ac_prog_rejected=yes
3643       continue
3644     fi
3645    ac_cv_prog_CC="cc"
3646    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3647    break 2
3648  fi
3649done
3650  done
3651IFS=$as_save_IFS
3652
3653if test $ac_prog_rejected = yes; then
3654  # We found a bogon in the path, so make sure we never use it.
3655  set dummy $ac_cv_prog_CC
3656  shift
3657  if test $# != 0; then
3658    # We chose a different compiler from the bogus one.
3659    # However, it has the same basename, so the bogon will be chosen
3660    # first if we set CC to just the basename; use the full file name.
3661    shift
3662    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3663  fi
3664fi
3665fi
3666fi
3667CC=$ac_cv_prog_CC
3668if test -n "$CC"; then
3669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3670$as_echo "$CC" >&6; }
3671else
3672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3673$as_echo "no" >&6; }
3674fi
3675
3676
3677fi
3678if test -z "$CC"; then
3679  if test -n "$ac_tool_prefix"; then
3680  for ac_prog in cl.exe
3681  do
3682    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3683set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3685$as_echo_n "checking for $ac_word... " >&6; }
3686if test "${ac_cv_prog_CC+set}" = set; then :
3687  $as_echo_n "(cached) " >&6
3688else
3689  if test -n "$CC"; then
3690  ac_cv_prog_CC="$CC" # Let the user override the test.
3691else
3692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3693for as_dir in $PATH
3694do
3695  IFS=$as_save_IFS
3696  test -z "$as_dir" && as_dir=.
3697    for ac_exec_ext in '' $ac_executable_extensions; do
3698  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3699    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3700    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3701    break 2
3702  fi
3703done
3704  done
3705IFS=$as_save_IFS
3706
3707fi
3708fi
3709CC=$ac_cv_prog_CC
3710if test -n "$CC"; then
3711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3712$as_echo "$CC" >&6; }
3713else
3714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3715$as_echo "no" >&6; }
3716fi
3717
3718
3719    test -n "$CC" && break
3720  done
3721fi
3722if test -z "$CC"; then
3723  ac_ct_CC=$CC
3724  for ac_prog in cl.exe
3725do
3726  # Extract the first word of "$ac_prog", so it can be a program name with args.
3727set dummy $ac_prog; ac_word=$2
3728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3729$as_echo_n "checking for $ac_word... " >&6; }
3730if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3731  $as_echo_n "(cached) " >&6
3732else
3733  if test -n "$ac_ct_CC"; then
3734  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3735else
3736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3737for as_dir in $PATH
3738do
3739  IFS=$as_save_IFS
3740  test -z "$as_dir" && as_dir=.
3741    for ac_exec_ext in '' $ac_executable_extensions; do
3742  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3743    ac_cv_prog_ac_ct_CC="$ac_prog"
3744    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3745    break 2
3746  fi
3747done
3748  done
3749IFS=$as_save_IFS
3750
3751fi
3752fi
3753ac_ct_CC=$ac_cv_prog_ac_ct_CC
3754if test -n "$ac_ct_CC"; then
3755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3756$as_echo "$ac_ct_CC" >&6; }
3757else
3758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3759$as_echo "no" >&6; }
3760fi
3761
3762
3763  test -n "$ac_ct_CC" && break
3764done
3765
3766  if test "x$ac_ct_CC" = x; then
3767    CC=""
3768  else
3769    case $cross_compiling:$ac_tool_warned in
3770yes:)
3771{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3772$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3773ac_tool_warned=yes ;;
3774esac
3775    CC=$ac_ct_CC
3776  fi
3777fi
3778
3779fi
3780
3781
3782test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3783$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3784as_fn_error "no acceptable C compiler found in \$PATH
3785See \`config.log' for more details." "$LINENO" 5; }
3786
3787# Provide some information about the compiler.
3788$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3789set X $ac_compile
3790ac_compiler=$2
3791for ac_option in --version -v -V -qversion; do
3792  { { ac_try="$ac_compiler $ac_option >&5"
3793case "(($ac_try" in
3794  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795  *) ac_try_echo=$ac_try;;
3796esac
3797eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3798$as_echo "$ac_try_echo"; } >&5
3799  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3800  ac_status=$?
3801  if test -s conftest.err; then
3802    sed '10a\
3803... rest of stderr output deleted ...
3804         10q' conftest.err >conftest.er1
3805    cat conftest.er1 >&5
3806    rm -f conftest.er1 conftest.err
3807  fi
3808  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3809  test $ac_status = 0; }
3810done
3811
3812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813/* end confdefs.h.  */
3814#include <stdio.h>
3815int
3816main ()
3817{
3818FILE *f = fopen ("conftest.out", "w");
3819 return ferror (f) || fclose (f) != 0;
3820
3821  ;
3822  return 0;
3823}
3824_ACEOF
3825ac_clean_files_save=$ac_clean_files
3826ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3827# Try to create an executable without -o first, disregard a.out.
3828# It will help us diagnose broken compilers, and finding out an intuition
3829# of exeext.
3830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3831$as_echo_n "checking for C compiler default output file name... " >&6; }
3832ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3833
3834# The possible output files:
3835ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3836
3837ac_rmfiles=
3838for ac_file in $ac_files
3839do
3840  case $ac_file in
3841    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3842    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3843  esac
3844done
3845rm -f $ac_rmfiles
3846
3847if { { ac_try="$ac_link_default"
3848case "(($ac_try" in
3849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850  *) ac_try_echo=$ac_try;;
3851esac
3852eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3853$as_echo "$ac_try_echo"; } >&5
3854  (eval "$ac_link_default") 2>&5
3855  ac_status=$?
3856  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3857  test $ac_status = 0; }; then :
3858  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3859# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3860# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3861# so that the user can short-circuit this test for compilers unknown to
3862# Autoconf.
3863for ac_file in $ac_files ''
3864do
3865  test -f "$ac_file" || continue
3866  case $ac_file in
3867    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3868	;;
3869    [ab].out )
3870	# We found the default executable, but exeext='' is most
3871	# certainly right.
3872	break;;
3873    *.* )
3874	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3875	then :; else
3876	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3877	fi
3878	# We set ac_cv_exeext here because the later test for it is not
3879	# safe: cross compilers may not add the suffix if given an `-o'
3880	# argument, so we may need to know it at that point already.
3881	# Even if this section looks crufty: it has the advantage of
3882	# actually working.
3883	break;;
3884    * )
3885	break;;
3886  esac
3887done
3888test "$ac_cv_exeext" = no && ac_cv_exeext=
3889
3890else
3891  ac_file=''
3892fi
3893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3894$as_echo "$ac_file" >&6; }
3895if test -z "$ac_file"; then :
3896  $as_echo "$as_me: failed program was:" >&5
3897sed 's/^/| /' conftest.$ac_ext >&5
3898
3899{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3900$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3901{ as_fn_set_status 77
3902as_fn_error "C compiler cannot create executables
3903See \`config.log' for more details." "$LINENO" 5; }; }
3904fi
3905ac_exeext=$ac_cv_exeext
3906
3907# Check that the compiler produces executables we can run.  If not, either
3908# the compiler is broken, or we cross compile.
3909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3910$as_echo_n "checking whether the C compiler works... " >&6; }
3911# If not cross compiling, check that we can run a simple program.
3912if test "$cross_compiling" != yes; then
3913  if { ac_try='./$ac_file'
3914  { { case "(($ac_try" in
3915  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916  *) ac_try_echo=$ac_try;;
3917esac
3918eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3919$as_echo "$ac_try_echo"; } >&5
3920  (eval "$ac_try") 2>&5
3921  ac_status=$?
3922  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3923  test $ac_status = 0; }; }; then
3924    cross_compiling=no
3925  else
3926    if test "$cross_compiling" = maybe; then
3927	cross_compiling=yes
3928    else
3929	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3930$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3931as_fn_error "cannot run C compiled programs.
3932If you meant to cross compile, use \`--host'.
3933See \`config.log' for more details." "$LINENO" 5; }
3934    fi
3935  fi
3936fi
3937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3938$as_echo "yes" >&6; }
3939
3940rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3941ac_clean_files=$ac_clean_files_save
3942# Check that the compiler produces executables we can run.  If not, either
3943# the compiler is broken, or we cross compile.
3944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3945$as_echo_n "checking whether we are cross compiling... " >&6; }
3946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3947$as_echo "$cross_compiling" >&6; }
3948
3949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3950$as_echo_n "checking for suffix of executables... " >&6; }
3951if { { ac_try="$ac_link"
3952case "(($ac_try" in
3953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954  *) ac_try_echo=$ac_try;;
3955esac
3956eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3957$as_echo "$ac_try_echo"; } >&5
3958  (eval "$ac_link") 2>&5
3959  ac_status=$?
3960  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3961  test $ac_status = 0; }; then :
3962  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3963# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3964# work properly (i.e., refer to `conftest.exe'), while it won't with
3965# `rm'.
3966for ac_file in conftest.exe conftest conftest.*; do
3967  test -f "$ac_file" || continue
3968  case $ac_file in
3969    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3970    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3971	  break;;
3972    * ) break;;
3973  esac
3974done
3975else
3976  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3977$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3978as_fn_error "cannot compute suffix of executables: cannot compile and link
3979See \`config.log' for more details." "$LINENO" 5; }
3980fi
3981rm -f conftest$ac_cv_exeext
3982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3983$as_echo "$ac_cv_exeext" >&6; }
3984
3985rm -f conftest.$ac_ext
3986EXEEXT=$ac_cv_exeext
3987ac_exeext=$EXEEXT
3988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3989$as_echo_n "checking for suffix of object files... " >&6; }
3990if test "${ac_cv_objext+set}" = set; then :
3991  $as_echo_n "(cached) " >&6
3992else
3993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994/* end confdefs.h.  */
3995
3996int
3997main ()
3998{
3999
4000  ;
4001  return 0;
4002}
4003_ACEOF
4004rm -f conftest.o conftest.obj
4005if { { ac_try="$ac_compile"
4006case "(($ac_try" in
4007  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4008  *) ac_try_echo=$ac_try;;
4009esac
4010eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4011$as_echo "$ac_try_echo"; } >&5
4012  (eval "$ac_compile") 2>&5
4013  ac_status=$?
4014  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4015  test $ac_status = 0; }; then :
4016  for ac_file in conftest.o conftest.obj conftest.*; do
4017  test -f "$ac_file" || continue;
4018  case $ac_file in
4019    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4020    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4021       break;;
4022  esac
4023done
4024else
4025  $as_echo "$as_me: failed program was:" >&5
4026sed 's/^/| /' conftest.$ac_ext >&5
4027
4028{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4029$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4030as_fn_error "cannot compute suffix of object files: cannot compile
4031See \`config.log' for more details." "$LINENO" 5; }
4032fi
4033rm -f conftest.$ac_cv_objext conftest.$ac_ext
4034fi
4035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4036$as_echo "$ac_cv_objext" >&6; }
4037OBJEXT=$ac_cv_objext
4038ac_objext=$OBJEXT
4039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4040$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4041if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4042  $as_echo_n "(cached) " >&6
4043else
4044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045/* end confdefs.h.  */
4046
4047int
4048main ()
4049{
4050#ifndef __GNUC__
4051       choke me
4052#endif
4053
4054  ;
4055  return 0;
4056}
4057_ACEOF
4058if ac_fn_c_try_compile "$LINENO"; then :
4059  ac_compiler_gnu=yes
4060else
4061  ac_compiler_gnu=no
4062fi
4063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4064ac_cv_c_compiler_gnu=$ac_compiler_gnu
4065
4066fi
4067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4068$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4069if test $ac_compiler_gnu = yes; then
4070  GCC=yes
4071else
4072  GCC=
4073fi
4074ac_test_CFLAGS=${CFLAGS+set}
4075ac_save_CFLAGS=$CFLAGS
4076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4077$as_echo_n "checking whether $CC accepts -g... " >&6; }
4078if test "${ac_cv_prog_cc_g+set}" = set; then :
4079  $as_echo_n "(cached) " >&6
4080else
4081  ac_save_c_werror_flag=$ac_c_werror_flag
4082   ac_c_werror_flag=yes
4083   ac_cv_prog_cc_g=no
4084   CFLAGS="-g"
4085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086/* end confdefs.h.  */
4087
4088int
4089main ()
4090{
4091
4092  ;
4093  return 0;
4094}
4095_ACEOF
4096if ac_fn_c_try_compile "$LINENO"; then :
4097  ac_cv_prog_cc_g=yes
4098else
4099  CFLAGS=""
4100      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101/* end confdefs.h.  */
4102
4103int
4104main ()
4105{
4106
4107  ;
4108  return 0;
4109}
4110_ACEOF
4111if ac_fn_c_try_compile "$LINENO"; then :
4112
4113else
4114  ac_c_werror_flag=$ac_save_c_werror_flag
4115	 CFLAGS="-g"
4116	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4117/* end confdefs.h.  */
4118
4119int
4120main ()
4121{
4122
4123  ;
4124  return 0;
4125}
4126_ACEOF
4127if ac_fn_c_try_compile "$LINENO"; then :
4128  ac_cv_prog_cc_g=yes
4129fi
4130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4131fi
4132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4133fi
4134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135   ac_c_werror_flag=$ac_save_c_werror_flag
4136fi
4137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4138$as_echo "$ac_cv_prog_cc_g" >&6; }
4139if test "$ac_test_CFLAGS" = set; then
4140  CFLAGS=$ac_save_CFLAGS
4141elif test $ac_cv_prog_cc_g = yes; then
4142  if test "$GCC" = yes; then
4143    CFLAGS="-g -O2"
4144  else
4145    CFLAGS="-g"
4146  fi
4147else
4148  if test "$GCC" = yes; then
4149    CFLAGS="-O2"
4150  else
4151    CFLAGS=
4152  fi
4153fi
4154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4155$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4156if test "${ac_cv_prog_cc_c89+set}" = set; then :
4157  $as_echo_n "(cached) " >&6
4158else
4159  ac_cv_prog_cc_c89=no
4160ac_save_CC=$CC
4161cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162/* end confdefs.h.  */
4163#include <stdarg.h>
4164#include <stdio.h>
4165#include <sys/types.h>
4166#include <sys/stat.h>
4167/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4168struct buf { int x; };
4169FILE * (*rcsopen) (struct buf *, struct stat *, int);
4170static char *e (p, i)
4171     char **p;
4172     int i;
4173{
4174  return p[i];
4175}
4176static char *f (char * (*g) (char **, int), char **p, ...)
4177{
4178  char *s;
4179  va_list v;
4180  va_start (v,p);
4181  s = g (p, va_arg (v,int));
4182  va_end (v);
4183  return s;
4184}
4185
4186/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4187   function prototypes and stuff, but not '\xHH' hex character constants.
4188   These don't provoke an error unfortunately, instead are silently treated
4189   as 'x'.  The following induces an error, until -std is added to get
4190   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4191   array size at least.  It's necessary to write '\x00'==0 to get something
4192   that's true only with -std.  */
4193int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4194
4195/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4196   inside strings and character constants.  */
4197#define FOO(x) 'x'
4198int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4199
4200int test (int i, double x);
4201struct s1 {int (*f) (int a);};
4202struct s2 {int (*f) (double a);};
4203int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4204int argc;
4205char **argv;
4206int
4207main ()
4208{
4209return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4210  ;
4211  return 0;
4212}
4213_ACEOF
4214for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4215	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4216do
4217  CC="$ac_save_CC $ac_arg"
4218  if ac_fn_c_try_compile "$LINENO"; then :
4219  ac_cv_prog_cc_c89=$ac_arg
4220fi
4221rm -f core conftest.err conftest.$ac_objext
4222  test "x$ac_cv_prog_cc_c89" != "xno" && break
4223done
4224rm -f conftest.$ac_ext
4225CC=$ac_save_CC
4226
4227fi
4228# AC_CACHE_VAL
4229case "x$ac_cv_prog_cc_c89" in
4230  x)
4231    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4232$as_echo "none needed" >&6; } ;;
4233  xno)
4234    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4235$as_echo "unsupported" >&6; } ;;
4236  *)
4237    CC="$CC $ac_cv_prog_cc_c89"
4238    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4239$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4240esac
4241if test "x$ac_cv_prog_cc_c89" != xno; then :
4242
4243fi
4244
4245ac_ext=c
4246ac_cpp='$CPP $CPPFLAGS'
4247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4249ac_compiler_gnu=$ac_cv_c_compiler_gnu
4250DEPDIR="${am__leading_dot}deps"
4251
4252ac_config_commands="$ac_config_commands depfiles"
4253
4254
4255am_make=${MAKE-make}
4256cat > confinc << 'END'
4257am__doit:
4258	@echo this is the am__doit target
4259.PHONY: am__doit
4260END
4261# If we don't find an include directive, just comment out the code.
4262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4263$as_echo_n "checking for style of include used by $am_make... " >&6; }
4264am__include="#"
4265am__quote=
4266_am_result=none
4267# First try GNU make style include.
4268echo "include confinc" > confmf
4269# Ignore all kinds of additional output from `make'.
4270case `$am_make -s -f confmf 2> /dev/null` in #(
4271*the\ am__doit\ target*)
4272  am__include=include
4273  am__quote=
4274  _am_result=GNU
4275  ;;
4276esac
4277# Now try BSD make style include.
4278if test "$am__include" = "#"; then
4279   echo '.include "confinc"' > confmf
4280   case `$am_make -s -f confmf 2> /dev/null` in #(
4281   *the\ am__doit\ target*)
4282     am__include=.include
4283     am__quote="\""
4284     _am_result=BSD
4285     ;;
4286   esac
4287fi
4288
4289
4290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4291$as_echo "$_am_result" >&6; }
4292rm -f confinc confmf
4293
4294# Check whether --enable-dependency-tracking was given.
4295if test "${enable_dependency_tracking+set}" = set; then :
4296  enableval=$enable_dependency_tracking;
4297fi
4298
4299if test "x$enable_dependency_tracking" != xno; then
4300  am_depcomp="$ac_aux_dir/depcomp"
4301  AMDEPBACKSLASH='\'
4302fi
4303 if test "x$enable_dependency_tracking" != xno; then
4304  AMDEP_TRUE=
4305  AMDEP_FALSE='#'
4306else
4307  AMDEP_TRUE='#'
4308  AMDEP_FALSE=
4309fi
4310
4311
4312
4313depcc="$CC"   am_compiler_list=
4314
4315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4316$as_echo_n "checking dependency style of $depcc... " >&6; }
4317if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4318  $as_echo_n "(cached) " >&6
4319else
4320  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4321  # We make a subdir and do the tests there.  Otherwise we can end up
4322  # making bogus files that we don't know about and never remove.  For
4323  # instance it was reported that on HP-UX the gcc test will end up
4324  # making a dummy file named `D' -- because `-MD' means `put the output
4325  # in D'.
4326  mkdir conftest.dir
4327  # Copy depcomp to subdir because otherwise we won't find it if we're
4328  # using a relative directory.
4329  cp "$am_depcomp" conftest.dir
4330  cd conftest.dir
4331  # We will build objects and dependencies in a subdirectory because
4332  # it helps to detect inapplicable dependency modes.  For instance
4333  # both Tru64's cc and ICC support -MD to output dependencies as a
4334  # side effect of compilation, but ICC will put the dependencies in
4335  # the current directory while Tru64 will put them in the object
4336  # directory.
4337  mkdir sub
4338
4339  am_cv_CC_dependencies_compiler_type=none
4340  if test "$am_compiler_list" = ""; then
4341     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4342  fi
4343  am__universal=false
4344  case " $depcc " in #(
4345     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4346     esac
4347
4348  for depmode in $am_compiler_list; do
4349    # Setup a source with many dependencies, because some compilers
4350    # like to wrap large dependency lists on column 80 (with \), and
4351    # we should not choose a depcomp mode which is confused by this.
4352    #
4353    # We need to recreate these files for each test, as the compiler may
4354    # overwrite some of them when testing with obscure command lines.
4355    # This happens at least with the AIX C compiler.
4356    : > sub/conftest.c
4357    for i in 1 2 3 4 5 6; do
4358      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4359      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4360      # Solaris 8's {/usr,}/bin/sh.
4361      touch sub/conftst$i.h
4362    done
4363    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4364
4365    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4366    # mode.  It turns out that the SunPro C++ compiler does not properly
4367    # handle `-M -o', and we need to detect this.  Also, some Intel
4368    # versions had trouble with output in subdirs
4369    am__obj=sub/conftest.${OBJEXT-o}
4370    am__minus_obj="-o $am__obj"
4371    case $depmode in
4372    gcc)
4373      # This depmode causes a compiler race in universal mode.
4374      test "$am__universal" = false || continue
4375      ;;
4376    nosideeffect)
4377      # after this tag, mechanisms are not by side-effect, so they'll
4378      # only be used when explicitly requested
4379      if test "x$enable_dependency_tracking" = xyes; then
4380	continue
4381      else
4382	break
4383      fi
4384      ;;
4385    msvisualcpp | msvcmsys)
4386      # This compiler won't grok `-c -o', but also, the minuso test has
4387      # not run yet.  These depmodes are late enough in the game, and
4388      # so weak that their functioning should not be impacted.
4389      am__obj=conftest.${OBJEXT-o}
4390      am__minus_obj=
4391      ;;
4392    none) break ;;
4393    esac
4394    if depmode=$depmode \
4395       source=sub/conftest.c object=$am__obj \
4396       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4397       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4398         >/dev/null 2>conftest.err &&
4399       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4400       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4401       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4402       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4403      # icc doesn't choke on unknown options, it will just issue warnings
4404      # or remarks (even with -Werror).  So we grep stderr for any message
4405      # that says an option was ignored or not supported.
4406      # When given -MP, icc 7.0 and 7.1 complain thusly:
4407      #   icc: Command line warning: ignoring option '-M'; no argument required
4408      # The diagnosis changed in icc 8.0:
4409      #   icc: Command line remark: option '-MP' not supported
4410      if (grep 'ignoring option' conftest.err ||
4411          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4412        am_cv_CC_dependencies_compiler_type=$depmode
4413        break
4414      fi
4415    fi
4416  done
4417
4418  cd ..
4419  rm -rf conftest.dir
4420else
4421  am_cv_CC_dependencies_compiler_type=none
4422fi
4423
4424fi
4425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4426$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4427CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4428
4429 if
4430  test "x$enable_dependency_tracking" != xno \
4431  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4432  am__fastdepCC_TRUE=
4433  am__fastdepCC_FALSE='#'
4434else
4435  am__fastdepCC_TRUE='#'
4436  am__fastdepCC_FALSE=
4437fi
4438
4439
4440if test "x$CC" != xcc; then
4441  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4442$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4443else
4444  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4445$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4446fi
4447set dummy $CC; ac_cc=`$as_echo "$2" |
4448		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4449if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4450  $as_echo_n "(cached) " >&6
4451else
4452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4453/* end confdefs.h.  */
4454
4455int
4456main ()
4457{
4458
4459  ;
4460  return 0;
4461}
4462_ACEOF
4463# Make sure it works both with $CC and with simple cc.
4464# We do the test twice because some compilers refuse to overwrite an
4465# existing .o file with -o, though they will create one.
4466ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4467rm -f conftest2.*
4468if { { case "(($ac_try" in
4469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4470  *) ac_try_echo=$ac_try;;
4471esac
4472eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4473$as_echo "$ac_try_echo"; } >&5
4474  (eval "$ac_try") 2>&5
4475  ac_status=$?
4476  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4477  test $ac_status = 0; } &&
4478   test -f conftest2.$ac_objext && { { case "(($ac_try" in
4479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4480  *) ac_try_echo=$ac_try;;
4481esac
4482eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4483$as_echo "$ac_try_echo"; } >&5
4484  (eval "$ac_try") 2>&5
4485  ac_status=$?
4486  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4487  test $ac_status = 0; };
4488then
4489  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4490  if test "x$CC" != xcc; then
4491    # Test first that cc exists at all.
4492    if { ac_try='cc -c conftest.$ac_ext >&5'
4493  { { case "(($ac_try" in
4494  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4495  *) ac_try_echo=$ac_try;;
4496esac
4497eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4498$as_echo "$ac_try_echo"; } >&5
4499  (eval "$ac_try") 2>&5
4500  ac_status=$?
4501  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4502  test $ac_status = 0; }; }; then
4503      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4504      rm -f conftest2.*
4505      if { { case "(($ac_try" in
4506  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4507  *) ac_try_echo=$ac_try;;
4508esac
4509eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4510$as_echo "$ac_try_echo"; } >&5
4511  (eval "$ac_try") 2>&5
4512  ac_status=$?
4513  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4514  test $ac_status = 0; } &&
4515	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4516  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4517  *) ac_try_echo=$ac_try;;
4518esac
4519eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4520$as_echo "$ac_try_echo"; } >&5
4521  (eval "$ac_try") 2>&5
4522  ac_status=$?
4523  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4524  test $ac_status = 0; };
4525      then
4526	# cc works too.
4527	:
4528      else
4529	# cc exists but doesn't like -o.
4530	eval ac_cv_prog_cc_${ac_cc}_c_o=no
4531      fi
4532    fi
4533  fi
4534else
4535  eval ac_cv_prog_cc_${ac_cc}_c_o=no
4536fi
4537rm -f core conftest*
4538
4539fi
4540if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4542$as_echo "yes" >&6; }
4543else
4544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4545$as_echo "no" >&6; }
4546
4547$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4548
4549fi
4550
4551# FIXME: we rely on the cache variable name because
4552# there is no other way.
4553set dummy $CC
4554am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4555eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4556if test "$am_t" != yes; then
4557   # Losing compiler, so override with the script.
4558   # FIXME: It is wrong to rewrite CC.
4559   # But if we don't then we get into trouble of one sort or another.
4560   # A longer-term fix would be to have automake use am__CC in this case,
4561   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4562   CC="$am_aux_dir/compile $CC"
4563fi
4564
4565
4566
4567
4568  ansi=
4569  if test -z "$ansi"; then
4570    msg="for C compiler warning flags"
4571  else
4572    msg="for C compiler warning and ANSI conformance flags"
4573  fi
4574  { $as_echo "$as_me:${as_lineno-$LINENO}: checking $msg" >&5
4575$as_echo_n "checking $msg... " >&6; }
4576if test "${vl_cv_prog_cc_warnings+set}" = set; then :
4577  $as_echo_n "(cached) " >&6
4578else
4579
4580    if test -n "$CC"; then
4581      cat > conftest.c <<EOF
4582int main(int argc, char **argv) { return 0; }
4583EOF
4584
4585            if test "$GCC" = "yes"; then
4586        if test -z "$ansi"; then
4587          vl_cv_prog_cc_warnings="-Wall -W"
4588        else
4589          vl_cv_prog_cc_warnings="-Wall -W -ansi -pedantic"
4590        fi
4591
4592
4593            elif $CC -V 2>&1 | grep -i "WorkShop" > /dev/null 2>&1 &&
4594           $CC -c -v -Xc conftest.c > /dev/null 2>&1 &&
4595           test -f conftest.o; then
4596        if test -z "$ansi"; then
4597          vl_cv_prog_cc_warnings="-v"
4598        else
4599          vl_cv_prog_cc_warnings="-v -Xc"
4600        fi
4601
4602            elif $CC -V 2>&1 | grep -i "Digital UNIX Compiler" > /dev/null 2>&1 &&
4603           $CC -c -verbose -w0 -warnprotos -std1 conftest.c > /dev/null 2>&1 &&
4604           test -f conftest.o; then
4605        if test -z "$ansi"; then
4606          vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos"
4607        else
4608          vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos -std1"
4609        fi
4610
4611            elif $CC 2>&1 | grep -i "C for AIX Compiler" > /dev/null 2>&1 &&
4612           $CC -c -qlanglvl=ansi -qinfo=all conftest.c > /dev/null 2>&1 &&
4613           test -f conftest.o; then
4614        if test -z "$ansi"; then
4615          vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd"
4616        else
4617          vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd -qlanglvl=ansi"
4618        fi
4619
4620            elif $CC -version 2>&1 | grep -i "MIPSpro Compilers" > /dev/null 2>&1 &&
4621           $CC -c -fullwarn -ansi -ansiE conftest.c > /dev/null 2>&1 &&
4622           test -f conftest.o; then
4623        if test -z "$ansi"; then
4624          vl_cv_prog_cc_warnings="-fullwarn"
4625        else
4626          vl_cv_prog_cc_warnings="-fullwarn -ansi -ansiE"
4627        fi
4628
4629            elif what $CC 2>&1 | grep -i "HP C Compiler" > /dev/null 2>&1 &&
4630           $CC -c -Aa +w1 conftest.c > /dev/null 2>&1 &&
4631           test -f conftest.o; then
4632        if test -z "$ansi"; then
4633          vl_cv_prog_cc_warnings="+w1"
4634        else
4635          vl_cv_prog_cc_warnings="+w1 -Aa"
4636        fi
4637
4638            elif $CC -V 2>&1 | grep "/SX" > /dev/null 2>&1 &&
4639           $CC -c -pvctl,fullmsg -Xc conftest.c > /dev/null 2>&1 &&
4640           test -f conftest.o; then
4641        if test -z "$ansi"; then
4642          vl_cv_prog_cc_warnings="-pvctl,fullmsg"
4643        else
4644          vl_cv_prog_cc_warnings="-pvctl,fullmsg -Xc"
4645        fi
4646
4647            elif $CC -V 2>&1 | grep -i "Cray" > /dev/null 2>&1 &&
4648           $CC -c -h msglevel 2 conftest.c > /dev/null 2>&1 &&
4649           test -f conftest.o; then
4650        if test -z "$ansi"; then
4651          vl_cv_prog_cc_warnings="-h msglevel 2"
4652        else
4653          vl_cv_prog_cc_warnings="-h msglevel 2 -h conform"
4654        fi
4655
4656      fi
4657      rm -f conftest.*
4658    fi
4659    if test -n "$vl_cv_prog_cc_warnings"; then
4660      CFLAGS="$CFLAGS $vl_cv_prog_cc_warnings"
4661    else
4662      vl_cv_prog_cc_warnings="unknown"
4663    fi
4664
4665fi
4666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_prog_cc_warnings" >&5
4667$as_echo "$vl_cv_prog_cc_warnings" >&6; }
4668
4669
4670
4671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4672$as_echo_n "checking whether ln -s works... " >&6; }
4673LN_S=$as_ln_s
4674if test "$LN_S" = "ln -s"; then
4675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4676$as_echo "yes" >&6; }
4677else
4678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4679$as_echo "no, using $LN_S" >&6; }
4680fi
4681
4682
4683
4684
4685
4686case `pwd` in
4687  *\ * | *\	*)
4688    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4689$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4690esac
4691
4692
4693
4694macro_version='2.2.6'
4695macro_revision='1.3012'
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709ltmain="$ac_aux_dir/ltmain.sh"
4710
4711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4712$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4713if test "${ac_cv_path_SED+set}" = set; then :
4714  $as_echo_n "(cached) " >&6
4715else
4716            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4717     for ac_i in 1 2 3 4 5 6 7; do
4718       ac_script="$ac_script$as_nl$ac_script"
4719     done
4720     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4721     { ac_script=; unset ac_script;}
4722     if test -z "$SED"; then
4723  ac_path_SED_found=false
4724  # Loop through the user's path and test for each of PROGNAME-LIST
4725  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726for as_dir in $PATH
4727do
4728  IFS=$as_save_IFS
4729  test -z "$as_dir" && as_dir=.
4730    for ac_prog in sed gsed; do
4731    for ac_exec_ext in '' $ac_executable_extensions; do
4732      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4733      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4734# Check for GNU ac_path_SED and select it if it is found.
4735  # Check for GNU $ac_path_SED
4736case `"$ac_path_SED" --version 2>&1` in
4737*GNU*)
4738  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4739*)
4740  ac_count=0
4741  $as_echo_n 0123456789 >"conftest.in"
4742  while :
4743  do
4744    cat "conftest.in" "conftest.in" >"conftest.tmp"
4745    mv "conftest.tmp" "conftest.in"
4746    cp "conftest.in" "conftest.nl"
4747    $as_echo '' >> "conftest.nl"
4748    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4749    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4750    as_fn_arith $ac_count + 1 && ac_count=$as_val
4751    if test $ac_count -gt ${ac_path_SED_max-0}; then
4752      # Best one so far, save it but keep looking for a better one
4753      ac_cv_path_SED="$ac_path_SED"
4754      ac_path_SED_max=$ac_count
4755    fi
4756    # 10*(2^10) chars as input seems more than enough
4757    test $ac_count -gt 10 && break
4758  done
4759  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4760esac
4761
4762      $ac_path_SED_found && break 3
4763    done
4764  done
4765  done
4766IFS=$as_save_IFS
4767  if test -z "$ac_cv_path_SED"; then
4768    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4769  fi
4770else
4771  ac_cv_path_SED=$SED
4772fi
4773
4774fi
4775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4776$as_echo "$ac_cv_path_SED" >&6; }
4777 SED="$ac_cv_path_SED"
4778  rm -f conftest.sed
4779
4780test -z "$SED" && SED=sed
4781Xsed="$SED -e 1s/^X//"
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4794$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4795if test "${ac_cv_path_GREP+set}" = set; then :
4796  $as_echo_n "(cached) " >&6
4797else
4798  if test -z "$GREP"; then
4799  ac_path_GREP_found=false
4800  # Loop through the user's path and test for each of PROGNAME-LIST
4801  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4803do
4804  IFS=$as_save_IFS
4805  test -z "$as_dir" && as_dir=.
4806    for ac_prog in grep ggrep; do
4807    for ac_exec_ext in '' $ac_executable_extensions; do
4808      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4809      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4810# Check for GNU ac_path_GREP and select it if it is found.
4811  # Check for GNU $ac_path_GREP
4812case `"$ac_path_GREP" --version 2>&1` in
4813*GNU*)
4814  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4815*)
4816  ac_count=0
4817  $as_echo_n 0123456789 >"conftest.in"
4818  while :
4819  do
4820    cat "conftest.in" "conftest.in" >"conftest.tmp"
4821    mv "conftest.tmp" "conftest.in"
4822    cp "conftest.in" "conftest.nl"
4823    $as_echo 'GREP' >> "conftest.nl"
4824    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4825    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4826    as_fn_arith $ac_count + 1 && ac_count=$as_val
4827    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4828      # Best one so far, save it but keep looking for a better one
4829      ac_cv_path_GREP="$ac_path_GREP"
4830      ac_path_GREP_max=$ac_count
4831    fi
4832    # 10*(2^10) chars as input seems more than enough
4833    test $ac_count -gt 10 && break
4834  done
4835  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4836esac
4837
4838      $ac_path_GREP_found && break 3
4839    done
4840  done
4841  done
4842IFS=$as_save_IFS
4843  if test -z "$ac_cv_path_GREP"; then
4844    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4845  fi
4846else
4847  ac_cv_path_GREP=$GREP
4848fi
4849
4850fi
4851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4852$as_echo "$ac_cv_path_GREP" >&6; }
4853 GREP="$ac_cv_path_GREP"
4854
4855
4856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4857$as_echo_n "checking for egrep... " >&6; }
4858if test "${ac_cv_path_EGREP+set}" = set; then :
4859  $as_echo_n "(cached) " >&6
4860else
4861  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4862   then ac_cv_path_EGREP="$GREP -E"
4863   else
4864     if test -z "$EGREP"; then
4865  ac_path_EGREP_found=false
4866  # Loop through the user's path and test for each of PROGNAME-LIST
4867  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4869do
4870  IFS=$as_save_IFS
4871  test -z "$as_dir" && as_dir=.
4872    for ac_prog in egrep; do
4873    for ac_exec_ext in '' $ac_executable_extensions; do
4874      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4875      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4876# Check for GNU ac_path_EGREP and select it if it is found.
4877  # Check for GNU $ac_path_EGREP
4878case `"$ac_path_EGREP" --version 2>&1` in
4879*GNU*)
4880  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4881*)
4882  ac_count=0
4883  $as_echo_n 0123456789 >"conftest.in"
4884  while :
4885  do
4886    cat "conftest.in" "conftest.in" >"conftest.tmp"
4887    mv "conftest.tmp" "conftest.in"
4888    cp "conftest.in" "conftest.nl"
4889    $as_echo 'EGREP' >> "conftest.nl"
4890    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4891    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4892    as_fn_arith $ac_count + 1 && ac_count=$as_val
4893    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4894      # Best one so far, save it but keep looking for a better one
4895      ac_cv_path_EGREP="$ac_path_EGREP"
4896      ac_path_EGREP_max=$ac_count
4897    fi
4898    # 10*(2^10) chars as input seems more than enough
4899    test $ac_count -gt 10 && break
4900  done
4901  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4902esac
4903
4904      $ac_path_EGREP_found && break 3
4905    done
4906  done
4907  done
4908IFS=$as_save_IFS
4909  if test -z "$ac_cv_path_EGREP"; then
4910    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4911  fi
4912else
4913  ac_cv_path_EGREP=$EGREP
4914fi
4915
4916   fi
4917fi
4918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4919$as_echo "$ac_cv_path_EGREP" >&6; }
4920 EGREP="$ac_cv_path_EGREP"
4921
4922
4923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4924$as_echo_n "checking for fgrep... " >&6; }
4925if test "${ac_cv_path_FGREP+set}" = set; then :
4926  $as_echo_n "(cached) " >&6
4927else
4928  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4929   then ac_cv_path_FGREP="$GREP -F"
4930   else
4931     if test -z "$FGREP"; then
4932  ac_path_FGREP_found=false
4933  # Loop through the user's path and test for each of PROGNAME-LIST
4934  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4936do
4937  IFS=$as_save_IFS
4938  test -z "$as_dir" && as_dir=.
4939    for ac_prog in fgrep; do
4940    for ac_exec_ext in '' $ac_executable_extensions; do
4941      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4942      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4943# Check for GNU ac_path_FGREP and select it if it is found.
4944  # Check for GNU $ac_path_FGREP
4945case `"$ac_path_FGREP" --version 2>&1` in
4946*GNU*)
4947  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4948*)
4949  ac_count=0
4950  $as_echo_n 0123456789 >"conftest.in"
4951  while :
4952  do
4953    cat "conftest.in" "conftest.in" >"conftest.tmp"
4954    mv "conftest.tmp" "conftest.in"
4955    cp "conftest.in" "conftest.nl"
4956    $as_echo 'FGREP' >> "conftest.nl"
4957    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4958    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4959    as_fn_arith $ac_count + 1 && ac_count=$as_val
4960    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4961      # Best one so far, save it but keep looking for a better one
4962      ac_cv_path_FGREP="$ac_path_FGREP"
4963      ac_path_FGREP_max=$ac_count
4964    fi
4965    # 10*(2^10) chars as input seems more than enough
4966    test $ac_count -gt 10 && break
4967  done
4968  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4969esac
4970
4971      $ac_path_FGREP_found && break 3
4972    done
4973  done
4974  done
4975IFS=$as_save_IFS
4976  if test -z "$ac_cv_path_FGREP"; then
4977    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4978  fi
4979else
4980  ac_cv_path_FGREP=$FGREP
4981fi
4982
4983   fi
4984fi
4985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4986$as_echo "$ac_cv_path_FGREP" >&6; }
4987 FGREP="$ac_cv_path_FGREP"
4988
4989
4990test -z "$GREP" && GREP=grep
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010# Check whether --with-gnu-ld was given.
5011if test "${with_gnu_ld+set}" = set; then :
5012  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5013else
5014  with_gnu_ld=no
5015fi
5016
5017ac_prog=ld
5018if test "$GCC" = yes; then
5019  # Check if gcc -print-prog-name=ld gives a path.
5020  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5021$as_echo_n "checking for ld used by $CC... " >&6; }
5022  case $host in
5023  *-*-mingw*)
5024    # gcc leaves a trailing carriage return which upsets mingw
5025    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5026  *)
5027    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5028  esac
5029  case $ac_prog in
5030    # Accept absolute paths.
5031    [\\/]* | ?:[\\/]*)
5032      re_direlt='/[^/][^/]*/\.\./'
5033      # Canonicalize the pathname of ld
5034      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5035      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5036	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5037      done
5038      test -z "$LD" && LD="$ac_prog"
5039      ;;
5040  "")
5041    # If it fails, then pretend we aren't using GCC.
5042    ac_prog=ld
5043    ;;
5044  *)
5045    # If it is relative, then search for the first ld in PATH.
5046    with_gnu_ld=unknown
5047    ;;
5048  esac
5049elif test "$with_gnu_ld" = yes; then
5050  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5051$as_echo_n "checking for GNU ld... " >&6; }
5052else
5053  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5054$as_echo_n "checking for non-GNU ld... " >&6; }
5055fi
5056if test "${lt_cv_path_LD+set}" = set; then :
5057  $as_echo_n "(cached) " >&6
5058else
5059  if test -z "$LD"; then
5060  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5061  for ac_dir in $PATH; do
5062    IFS="$lt_save_ifs"
5063    test -z "$ac_dir" && ac_dir=.
5064    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5065      lt_cv_path_LD="$ac_dir/$ac_prog"
5066      # Check to see if the program is GNU ld.  I'd rather use --version,
5067      # but apparently some variants of GNU ld only accept -v.
5068      # Break only if it was the GNU/non-GNU ld that we prefer.
5069      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5070      *GNU* | *'with BFD'*)
5071	test "$with_gnu_ld" != no && break
5072	;;
5073      *)
5074	test "$with_gnu_ld" != yes && break
5075	;;
5076      esac
5077    fi
5078  done
5079  IFS="$lt_save_ifs"
5080else
5081  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5082fi
5083fi
5084
5085LD="$lt_cv_path_LD"
5086if test -n "$LD"; then
5087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5088$as_echo "$LD" >&6; }
5089else
5090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5091$as_echo "no" >&6; }
5092fi
5093test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5095$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5096if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5097  $as_echo_n "(cached) " >&6
5098else
5099  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5100case `$LD -v 2>&1 </dev/null` in
5101*GNU* | *'with BFD'*)
5102  lt_cv_prog_gnu_ld=yes
5103  ;;
5104*)
5105  lt_cv_prog_gnu_ld=no
5106  ;;
5107esac
5108fi
5109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5110$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5111with_gnu_ld=$lt_cv_prog_gnu_ld
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5122$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5123if test "${lt_cv_path_NM+set}" = set; then :
5124  $as_echo_n "(cached) " >&6
5125else
5126  if test -n "$NM"; then
5127  # Let the user override the test.
5128  lt_cv_path_NM="$NM"
5129else
5130  lt_nm_to_check="${ac_tool_prefix}nm"
5131  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5132    lt_nm_to_check="$lt_nm_to_check nm"
5133  fi
5134  for lt_tmp_nm in $lt_nm_to_check; do
5135    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5136    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5137      IFS="$lt_save_ifs"
5138      test -z "$ac_dir" && ac_dir=.
5139      tmp_nm="$ac_dir/$lt_tmp_nm"
5140      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5141	# Check to see if the nm accepts a BSD-compat flag.
5142	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5143	#   nm: unknown option "B" ignored
5144	# Tru64's nm complains that /dev/null is an invalid object file
5145	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5146	*/dev/null* | *'Invalid file or object type'*)
5147	  lt_cv_path_NM="$tmp_nm -B"
5148	  break
5149	  ;;
5150	*)
5151	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5152	  */dev/null*)
5153	    lt_cv_path_NM="$tmp_nm -p"
5154	    break
5155	    ;;
5156	  *)
5157	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5158	    continue # so that we can try to find one that supports BSD flags
5159	    ;;
5160	  esac
5161	  ;;
5162	esac
5163      fi
5164    done
5165    IFS="$lt_save_ifs"
5166  done
5167  : ${lt_cv_path_NM=no}
5168fi
5169fi
5170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5171$as_echo "$lt_cv_path_NM" >&6; }
5172if test "$lt_cv_path_NM" != "no"; then
5173  NM="$lt_cv_path_NM"
5174else
5175  # Didn't find any BSD compatible name lister, look for dumpbin.
5176  if test -n "$ac_tool_prefix"; then
5177  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5178  do
5179    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5180set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5182$as_echo_n "checking for $ac_word... " >&6; }
5183if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5184  $as_echo_n "(cached) " >&6
5185else
5186  if test -n "$DUMPBIN"; then
5187  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5188else
5189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190for as_dir in $PATH
5191do
5192  IFS=$as_save_IFS
5193  test -z "$as_dir" && as_dir=.
5194    for ac_exec_ext in '' $ac_executable_extensions; do
5195  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5196    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5197    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5198    break 2
5199  fi
5200done
5201  done
5202IFS=$as_save_IFS
5203
5204fi
5205fi
5206DUMPBIN=$ac_cv_prog_DUMPBIN
5207if test -n "$DUMPBIN"; then
5208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5209$as_echo "$DUMPBIN" >&6; }
5210else
5211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212$as_echo "no" >&6; }
5213fi
5214
5215
5216    test -n "$DUMPBIN" && break
5217  done
5218fi
5219if test -z "$DUMPBIN"; then
5220  ac_ct_DUMPBIN=$DUMPBIN
5221  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5222do
5223  # Extract the first word of "$ac_prog", so it can be a program name with args.
5224set dummy $ac_prog; ac_word=$2
5225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5226$as_echo_n "checking for $ac_word... " >&6; }
5227if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5228  $as_echo_n "(cached) " >&6
5229else
5230  if test -n "$ac_ct_DUMPBIN"; then
5231  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5232else
5233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234for as_dir in $PATH
5235do
5236  IFS=$as_save_IFS
5237  test -z "$as_dir" && as_dir=.
5238    for ac_exec_ext in '' $ac_executable_extensions; do
5239  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5240    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5241    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5242    break 2
5243  fi
5244done
5245  done
5246IFS=$as_save_IFS
5247
5248fi
5249fi
5250ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5251if test -n "$ac_ct_DUMPBIN"; then
5252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5253$as_echo "$ac_ct_DUMPBIN" >&6; }
5254else
5255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5256$as_echo "no" >&6; }
5257fi
5258
5259
5260  test -n "$ac_ct_DUMPBIN" && break
5261done
5262
5263  if test "x$ac_ct_DUMPBIN" = x; then
5264    DUMPBIN=":"
5265  else
5266    case $cross_compiling:$ac_tool_warned in
5267yes:)
5268{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5269$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5270ac_tool_warned=yes ;;
5271esac
5272    DUMPBIN=$ac_ct_DUMPBIN
5273  fi
5274fi
5275
5276
5277  if test "$DUMPBIN" != ":"; then
5278    NM="$DUMPBIN"
5279  fi
5280fi
5281test -z "$NM" && NM=nm
5282
5283
5284
5285
5286
5287
5288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5289$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5290if test "${lt_cv_nm_interface+set}" = set; then :
5291  $as_echo_n "(cached) " >&6
5292else
5293  lt_cv_nm_interface="BSD nm"
5294  echo "int some_variable = 0;" > conftest.$ac_ext
5295  (eval echo "\"\$as_me:5295: $ac_compile\"" >&5)
5296  (eval "$ac_compile" 2>conftest.err)
5297  cat conftest.err >&5
5298  (eval echo "\"\$as_me:5298: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5299  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5300  cat conftest.err >&5
5301  (eval echo "\"\$as_me:5301: output\"" >&5)
5302  cat conftest.out >&5
5303  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5304    lt_cv_nm_interface="MS dumpbin"
5305  fi
5306  rm -f conftest*
5307fi
5308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5309$as_echo "$lt_cv_nm_interface" >&6; }
5310
5311# find the maximum length of command line arguments
5312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5313$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5314if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5315  $as_echo_n "(cached) " >&6
5316else
5317    i=0
5318  teststring="ABCD"
5319
5320  case $build_os in
5321  msdosdjgpp*)
5322    # On DJGPP, this test can blow up pretty badly due to problems in libc
5323    # (any single argument exceeding 2000 bytes causes a buffer overrun
5324    # during glob expansion).  Even if it were fixed, the result of this
5325    # check would be larger than it should be.
5326    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5327    ;;
5328
5329  gnu*)
5330    # Under GNU Hurd, this test is not required because there is
5331    # no limit to the length of command line arguments.
5332    # Libtool will interpret -1 as no limit whatsoever
5333    lt_cv_sys_max_cmd_len=-1;
5334    ;;
5335
5336  cygwin* | mingw* | cegcc*)
5337    # On Win9x/ME, this test blows up -- it succeeds, but takes
5338    # about 5 minutes as the teststring grows exponentially.
5339    # Worse, since 9x/ME are not pre-emptively multitasking,
5340    # you end up with a "frozen" computer, even though with patience
5341    # the test eventually succeeds (with a max line length of 256k).
5342    # Instead, let's just punt: use the minimum linelength reported by
5343    # all of the supported platforms: 8192 (on NT/2K/XP).
5344    lt_cv_sys_max_cmd_len=8192;
5345    ;;
5346
5347  amigaos*)
5348    # On AmigaOS with pdksh, this test takes hours, literally.
5349    # So we just punt and use a minimum line length of 8192.
5350    lt_cv_sys_max_cmd_len=8192;
5351    ;;
5352
5353  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5354    # This has been around since 386BSD, at least.  Likely further.
5355    if test -x /sbin/sysctl; then
5356      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5357    elif test -x /usr/sbin/sysctl; then
5358      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5359    else
5360      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5361    fi
5362    # And add a safety zone
5363    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5364    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5365    ;;
5366
5367  interix*)
5368    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5369    lt_cv_sys_max_cmd_len=196608
5370    ;;
5371
5372  osf*)
5373    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5374    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5375    # nice to cause kernel panics so lets avoid the loop below.
5376    # First set a reasonable default.
5377    lt_cv_sys_max_cmd_len=16384
5378    #
5379    if test -x /sbin/sysconfig; then
5380      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5381        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5382      esac
5383    fi
5384    ;;
5385  sco3.2v5*)
5386    lt_cv_sys_max_cmd_len=102400
5387    ;;
5388  sysv5* | sco5v6* | sysv4.2uw2*)
5389    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5390    if test -n "$kargmax"; then
5391      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5392    else
5393      lt_cv_sys_max_cmd_len=32768
5394    fi
5395    ;;
5396  *)
5397    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5398    if test -n "$lt_cv_sys_max_cmd_len"; then
5399      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5400      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5401    else
5402      # Make teststring a little bigger before we do anything with it.
5403      # a 1K string should be a reasonable start.
5404      for i in 1 2 3 4 5 6 7 8 ; do
5405        teststring=$teststring$teststring
5406      done
5407      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5408      # If test is not a shell built-in, we'll probably end up computing a
5409      # maximum length that is only half of the actual maximum length, but
5410      # we can't tell.
5411      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5412	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5413	      test $i != 17 # 1/2 MB should be enough
5414      do
5415        i=`expr $i + 1`
5416        teststring=$teststring$teststring
5417      done
5418      # Only check the string length outside the loop.
5419      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5420      teststring=
5421      # Add a significant safety factor because C++ compilers can tack on
5422      # massive amounts of additional arguments before passing them to the
5423      # linker.  It appears as though 1/2 is a usable value.
5424      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5425    fi
5426    ;;
5427  esac
5428
5429fi
5430
5431if test -n $lt_cv_sys_max_cmd_len ; then
5432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5433$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5434else
5435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5436$as_echo "none" >&6; }
5437fi
5438max_cmd_len=$lt_cv_sys_max_cmd_len
5439
5440
5441
5442
5443
5444
5445: ${CP="cp -f"}
5446: ${MV="mv -f"}
5447: ${RM="rm -f"}
5448
5449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5450$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5451# Try some XSI features
5452xsi_shell=no
5453( _lt_dummy="a/b/c"
5454  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5455      = c,a/b,, \
5456    && eval 'test $(( 1 + 1 )) -eq 2 \
5457    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5458  && xsi_shell=yes
5459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5460$as_echo "$xsi_shell" >&6; }
5461
5462
5463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5464$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5465lt_shell_append=no
5466( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5467    >/dev/null 2>&1 \
5468  && lt_shell_append=yes
5469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5470$as_echo "$lt_shell_append" >&6; }
5471
5472
5473if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5474  lt_unset=unset
5475else
5476  lt_unset=false
5477fi
5478
5479
5480
5481
5482
5483# test EBCDIC or ASCII
5484case `echo X|tr X '\101'` in
5485 A) # ASCII based system
5486    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5487  lt_SP2NL='tr \040 \012'
5488  lt_NL2SP='tr \015\012 \040\040'
5489  ;;
5490 *) # EBCDIC based system
5491  lt_SP2NL='tr \100 \n'
5492  lt_NL2SP='tr \r\n \100\100'
5493  ;;
5494esac
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5505$as_echo_n "checking for $LD option to reload object files... " >&6; }
5506if test "${lt_cv_ld_reload_flag+set}" = set; then :
5507  $as_echo_n "(cached) " >&6
5508else
5509  lt_cv_ld_reload_flag='-r'
5510fi
5511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5512$as_echo "$lt_cv_ld_reload_flag" >&6; }
5513reload_flag=$lt_cv_ld_reload_flag
5514case $reload_flag in
5515"" | " "*) ;;
5516*) reload_flag=" $reload_flag" ;;
5517esac
5518reload_cmds='$LD$reload_flag -o $output$reload_objs'
5519case $host_os in
5520  darwin*)
5521    if test "$GCC" = yes; then
5522      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5523    else
5524      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5525    fi
5526    ;;
5527esac
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537if test -n "$ac_tool_prefix"; then
5538  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5539set dummy ${ac_tool_prefix}objdump; ac_word=$2
5540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5541$as_echo_n "checking for $ac_word... " >&6; }
5542if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5543  $as_echo_n "(cached) " >&6
5544else
5545  if test -n "$OBJDUMP"; then
5546  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5547else
5548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549for as_dir in $PATH
5550do
5551  IFS=$as_save_IFS
5552  test -z "$as_dir" && as_dir=.
5553    for ac_exec_ext in '' $ac_executable_extensions; do
5554  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5555    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5556    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5557    break 2
5558  fi
5559done
5560  done
5561IFS=$as_save_IFS
5562
5563fi
5564fi
5565OBJDUMP=$ac_cv_prog_OBJDUMP
5566if test -n "$OBJDUMP"; then
5567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5568$as_echo "$OBJDUMP" >&6; }
5569else
5570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571$as_echo "no" >&6; }
5572fi
5573
5574
5575fi
5576if test -z "$ac_cv_prog_OBJDUMP"; then
5577  ac_ct_OBJDUMP=$OBJDUMP
5578  # Extract the first word of "objdump", so it can be a program name with args.
5579set dummy objdump; ac_word=$2
5580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5581$as_echo_n "checking for $ac_word... " >&6; }
5582if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5583  $as_echo_n "(cached) " >&6
5584else
5585  if test -n "$ac_ct_OBJDUMP"; then
5586  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5587else
5588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589for as_dir in $PATH
5590do
5591  IFS=$as_save_IFS
5592  test -z "$as_dir" && as_dir=.
5593    for ac_exec_ext in '' $ac_executable_extensions; do
5594  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5595    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5596    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5597    break 2
5598  fi
5599done
5600  done
5601IFS=$as_save_IFS
5602
5603fi
5604fi
5605ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5606if test -n "$ac_ct_OBJDUMP"; then
5607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5608$as_echo "$ac_ct_OBJDUMP" >&6; }
5609else
5610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5611$as_echo "no" >&6; }
5612fi
5613
5614  if test "x$ac_ct_OBJDUMP" = x; then
5615    OBJDUMP="false"
5616  else
5617    case $cross_compiling:$ac_tool_warned in
5618yes:)
5619{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5620$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5621ac_tool_warned=yes ;;
5622esac
5623    OBJDUMP=$ac_ct_OBJDUMP
5624  fi
5625else
5626  OBJDUMP="$ac_cv_prog_OBJDUMP"
5627fi
5628
5629test -z "$OBJDUMP" && OBJDUMP=objdump
5630
5631
5632
5633
5634
5635
5636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5637$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5638if test "${lt_cv_deplibs_check_method+set}" = set; then :
5639  $as_echo_n "(cached) " >&6
5640else
5641  lt_cv_file_magic_cmd='$MAGIC_CMD'
5642lt_cv_file_magic_test_file=
5643lt_cv_deplibs_check_method='unknown'
5644# Need to set the preceding variable on all platforms that support
5645# interlibrary dependencies.
5646# 'none' -- dependencies not supported.
5647# `unknown' -- same as none, but documents that we really don't know.
5648# 'pass_all' -- all dependencies passed with no checks.
5649# 'test_compile' -- check by making test program.
5650# 'file_magic [[regex]]' -- check by looking for files in library path
5651# which responds to the $file_magic_cmd with a given extended regex.
5652# If you have `file' or equivalent on your system and you're not sure
5653# whether `pass_all' will *always* work, you probably want this one.
5654
5655case $host_os in
5656aix[4-9]*)
5657  lt_cv_deplibs_check_method=pass_all
5658  ;;
5659
5660beos*)
5661  lt_cv_deplibs_check_method=pass_all
5662  ;;
5663
5664bsdi[45]*)
5665  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5666  lt_cv_file_magic_cmd='/usr/bin/file -L'
5667  lt_cv_file_magic_test_file=/shlib/libc.so
5668  ;;
5669
5670cygwin*)
5671  # func_win32_libid is a shell function defined in ltmain.sh
5672  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5673  lt_cv_file_magic_cmd='func_win32_libid'
5674  ;;
5675
5676mingw* | pw32*)
5677  # Base MSYS/MinGW do not provide the 'file' command needed by
5678  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5679  # unless we find 'file', for example because we are cross-compiling.
5680  if ( file / ) >/dev/null 2>&1; then
5681    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5682    lt_cv_file_magic_cmd='func_win32_libid'
5683  else
5684    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5685    lt_cv_file_magic_cmd='$OBJDUMP -f'
5686  fi
5687  ;;
5688
5689cegcc)
5690  # use the weaker test based on 'objdump'. See mingw*.
5691  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5692  lt_cv_file_magic_cmd='$OBJDUMP -f'
5693  ;;
5694
5695darwin* | rhapsody*)
5696  lt_cv_deplibs_check_method=pass_all
5697  ;;
5698
5699freebsd* | dragonfly*)
5700  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5701    case $host_cpu in
5702    i*86 )
5703      # Not sure whether the presence of OpenBSD here was a mistake.
5704      # Let's accept both of them until this is cleared up.
5705      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5706      lt_cv_file_magic_cmd=/usr/bin/file
5707      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5708      ;;
5709    esac
5710  else
5711    lt_cv_deplibs_check_method=pass_all
5712  fi
5713  ;;
5714
5715gnu*)
5716  lt_cv_deplibs_check_method=pass_all
5717  ;;
5718
5719hpux10.20* | hpux11*)
5720  lt_cv_file_magic_cmd=/usr/bin/file
5721  case $host_cpu in
5722  ia64*)
5723    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5724    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5725    ;;
5726  hppa*64*)
5727    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]'
5728    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5729    ;;
5730  *)
5731    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5732    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5733    ;;
5734  esac
5735  ;;
5736
5737interix[3-9]*)
5738  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5739  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5740  ;;
5741
5742irix5* | irix6* | nonstopux*)
5743  case $LD in
5744  *-32|*"-32 ") libmagic=32-bit;;
5745  *-n32|*"-n32 ") libmagic=N32;;
5746  *-64|*"-64 ") libmagic=64-bit;;
5747  *) libmagic=never-match;;
5748  esac
5749  lt_cv_deplibs_check_method=pass_all
5750  ;;
5751
5752# This must be Linux ELF.
5753linux* | k*bsd*-gnu)
5754  lt_cv_deplibs_check_method=pass_all
5755  ;;
5756
5757netbsd*)
5758  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5759    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5760  else
5761    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5762  fi
5763  ;;
5764
5765newos6*)
5766  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5767  lt_cv_file_magic_cmd=/usr/bin/file
5768  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5769  ;;
5770
5771*nto* | *qnx*)
5772  lt_cv_deplibs_check_method=pass_all
5773  ;;
5774
5775openbsd*)
5776  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5777    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5778  else
5779    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5780  fi
5781  ;;
5782
5783osf3* | osf4* | osf5*)
5784  lt_cv_deplibs_check_method=pass_all
5785  ;;
5786
5787rdos*)
5788  lt_cv_deplibs_check_method=pass_all
5789  ;;
5790
5791solaris*)
5792  lt_cv_deplibs_check_method=pass_all
5793  ;;
5794
5795sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5796  lt_cv_deplibs_check_method=pass_all
5797  ;;
5798
5799sysv4 | sysv4.3*)
5800  case $host_vendor in
5801  motorola)
5802    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]'
5803    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5804    ;;
5805  ncr)
5806    lt_cv_deplibs_check_method=pass_all
5807    ;;
5808  sequent)
5809    lt_cv_file_magic_cmd='/bin/file'
5810    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5811    ;;
5812  sni)
5813    lt_cv_file_magic_cmd='/bin/file'
5814    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5815    lt_cv_file_magic_test_file=/lib/libc.so
5816    ;;
5817  siemens)
5818    lt_cv_deplibs_check_method=pass_all
5819    ;;
5820  pc)
5821    lt_cv_deplibs_check_method=pass_all
5822    ;;
5823  esac
5824  ;;
5825
5826tpf*)
5827  lt_cv_deplibs_check_method=pass_all
5828  ;;
5829esac
5830
5831fi
5832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5833$as_echo "$lt_cv_deplibs_check_method" >&6; }
5834file_magic_cmd=$lt_cv_file_magic_cmd
5835deplibs_check_method=$lt_cv_deplibs_check_method
5836test -z "$deplibs_check_method" && deplibs_check_method=unknown
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849if test -n "$ac_tool_prefix"; then
5850  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5851set dummy ${ac_tool_prefix}ar; ac_word=$2
5852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5853$as_echo_n "checking for $ac_word... " >&6; }
5854if test "${ac_cv_prog_AR+set}" = set; then :
5855  $as_echo_n "(cached) " >&6
5856else
5857  if test -n "$AR"; then
5858  ac_cv_prog_AR="$AR" # Let the user override the test.
5859else
5860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5861for as_dir in $PATH
5862do
5863  IFS=$as_save_IFS
5864  test -z "$as_dir" && as_dir=.
5865    for ac_exec_ext in '' $ac_executable_extensions; do
5866  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5867    ac_cv_prog_AR="${ac_tool_prefix}ar"
5868    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5869    break 2
5870  fi
5871done
5872  done
5873IFS=$as_save_IFS
5874
5875fi
5876fi
5877AR=$ac_cv_prog_AR
5878if test -n "$AR"; then
5879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5880$as_echo "$AR" >&6; }
5881else
5882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5883$as_echo "no" >&6; }
5884fi
5885
5886
5887fi
5888if test -z "$ac_cv_prog_AR"; then
5889  ac_ct_AR=$AR
5890  # Extract the first word of "ar", so it can be a program name with args.
5891set dummy ar; 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; }
5894if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5895  $as_echo_n "(cached) " >&6
5896else
5897  if test -n "$ac_ct_AR"; then
5898  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5899else
5900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901for as_dir in $PATH
5902do
5903  IFS=$as_save_IFS
5904  test -z "$as_dir" && as_dir=.
5905    for ac_exec_ext in '' $ac_executable_extensions; do
5906  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5907    ac_cv_prog_ac_ct_AR="ar"
5908    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5909    break 2
5910  fi
5911done
5912  done
5913IFS=$as_save_IFS
5914
5915fi
5916fi
5917ac_ct_AR=$ac_cv_prog_ac_ct_AR
5918if test -n "$ac_ct_AR"; then
5919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5920$as_echo "$ac_ct_AR" >&6; }
5921else
5922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5923$as_echo "no" >&6; }
5924fi
5925
5926  if test "x$ac_ct_AR" = x; then
5927    AR="false"
5928  else
5929    case $cross_compiling:$ac_tool_warned in
5930yes:)
5931{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5932$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5933ac_tool_warned=yes ;;
5934esac
5935    AR=$ac_ct_AR
5936  fi
5937else
5938  AR="$ac_cv_prog_AR"
5939fi
5940
5941test -z "$AR" && AR=ar
5942test -z "$AR_FLAGS" && AR_FLAGS=cru
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954if test -n "$ac_tool_prefix"; then
5955  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5956set dummy ${ac_tool_prefix}strip; ac_word=$2
5957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5958$as_echo_n "checking for $ac_word... " >&6; }
5959if test "${ac_cv_prog_STRIP+set}" = set; then :
5960  $as_echo_n "(cached) " >&6
5961else
5962  if test -n "$STRIP"; then
5963  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5964else
5965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966for as_dir in $PATH
5967do
5968  IFS=$as_save_IFS
5969  test -z "$as_dir" && as_dir=.
5970    for ac_exec_ext in '' $ac_executable_extensions; do
5971  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5972    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5973    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5974    break 2
5975  fi
5976done
5977  done
5978IFS=$as_save_IFS
5979
5980fi
5981fi
5982STRIP=$ac_cv_prog_STRIP
5983if test -n "$STRIP"; then
5984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5985$as_echo "$STRIP" >&6; }
5986else
5987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5988$as_echo "no" >&6; }
5989fi
5990
5991
5992fi
5993if test -z "$ac_cv_prog_STRIP"; then
5994  ac_ct_STRIP=$STRIP
5995  # Extract the first word of "strip", so it can be a program name with args.
5996set dummy strip; ac_word=$2
5997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5998$as_echo_n "checking for $ac_word... " >&6; }
5999if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6000  $as_echo_n "(cached) " >&6
6001else
6002  if test -n "$ac_ct_STRIP"; then
6003  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6004else
6005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6006for as_dir in $PATH
6007do
6008  IFS=$as_save_IFS
6009  test -z "$as_dir" && as_dir=.
6010    for ac_exec_ext in '' $ac_executable_extensions; do
6011  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6012    ac_cv_prog_ac_ct_STRIP="strip"
6013    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6014    break 2
6015  fi
6016done
6017  done
6018IFS=$as_save_IFS
6019
6020fi
6021fi
6022ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6023if test -n "$ac_ct_STRIP"; then
6024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6025$as_echo "$ac_ct_STRIP" >&6; }
6026else
6027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6028$as_echo "no" >&6; }
6029fi
6030
6031  if test "x$ac_ct_STRIP" = x; then
6032    STRIP=":"
6033  else
6034    case $cross_compiling:$ac_tool_warned in
6035yes:)
6036{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6037$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6038ac_tool_warned=yes ;;
6039esac
6040    STRIP=$ac_ct_STRIP
6041  fi
6042else
6043  STRIP="$ac_cv_prog_STRIP"
6044fi
6045
6046test -z "$STRIP" && STRIP=:
6047
6048
6049
6050
6051
6052
6053if test -n "$ac_tool_prefix"; then
6054  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6055set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6057$as_echo_n "checking for $ac_word... " >&6; }
6058if test "${ac_cv_prog_RANLIB+set}" = set; then :
6059  $as_echo_n "(cached) " >&6
6060else
6061  if test -n "$RANLIB"; then
6062  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6063else
6064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065for as_dir in $PATH
6066do
6067  IFS=$as_save_IFS
6068  test -z "$as_dir" && as_dir=.
6069    for ac_exec_ext in '' $ac_executable_extensions; do
6070  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6071    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6072    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6073    break 2
6074  fi
6075done
6076  done
6077IFS=$as_save_IFS
6078
6079fi
6080fi
6081RANLIB=$ac_cv_prog_RANLIB
6082if test -n "$RANLIB"; then
6083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6084$as_echo "$RANLIB" >&6; }
6085else
6086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6087$as_echo "no" >&6; }
6088fi
6089
6090
6091fi
6092if test -z "$ac_cv_prog_RANLIB"; then
6093  ac_ct_RANLIB=$RANLIB
6094  # Extract the first word of "ranlib", so it can be a program name with args.
6095set dummy ranlib; ac_word=$2
6096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6097$as_echo_n "checking for $ac_word... " >&6; }
6098if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6099  $as_echo_n "(cached) " >&6
6100else
6101  if test -n "$ac_ct_RANLIB"; then
6102  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6103else
6104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6105for as_dir in $PATH
6106do
6107  IFS=$as_save_IFS
6108  test -z "$as_dir" && as_dir=.
6109    for ac_exec_ext in '' $ac_executable_extensions; do
6110  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6111    ac_cv_prog_ac_ct_RANLIB="ranlib"
6112    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6113    break 2
6114  fi
6115done
6116  done
6117IFS=$as_save_IFS
6118
6119fi
6120fi
6121ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6122if test -n "$ac_ct_RANLIB"; then
6123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6124$as_echo "$ac_ct_RANLIB" >&6; }
6125else
6126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6127$as_echo "no" >&6; }
6128fi
6129
6130  if test "x$ac_ct_RANLIB" = x; then
6131    RANLIB=":"
6132  else
6133    case $cross_compiling:$ac_tool_warned in
6134yes:)
6135{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6136$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6137ac_tool_warned=yes ;;
6138esac
6139    RANLIB=$ac_ct_RANLIB
6140  fi
6141else
6142  RANLIB="$ac_cv_prog_RANLIB"
6143fi
6144
6145test -z "$RANLIB" && RANLIB=:
6146
6147
6148
6149
6150
6151
6152# Determine commands to create old-style static archives.
6153old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6154old_postinstall_cmds='chmod 644 $oldlib'
6155old_postuninstall_cmds=
6156
6157if test -n "$RANLIB"; then
6158  case $host_os in
6159  openbsd*)
6160    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6161    ;;
6162  *)
6163    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6164    ;;
6165  esac
6166  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6167fi
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202# If no C compiler was specified, use CC.
6203LTCC=${LTCC-"$CC"}
6204
6205# If no C compiler flags were specified, use CFLAGS.
6206LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6207
6208# Allow CC to be a program name with arguments.
6209compiler=$CC
6210
6211
6212# Check for command to grab the raw symbol name followed by C symbol from nm.
6213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6214$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6215if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6216  $as_echo_n "(cached) " >&6
6217else
6218
6219# These are sane defaults that work on at least a few old systems.
6220# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6221
6222# Character class describing NM global symbol codes.
6223symcode='[BCDEGRST]'
6224
6225# Regexp to match symbols that can be accessed directly from C.
6226sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6227
6228# Define system-specific variables.
6229case $host_os in
6230aix*)
6231  symcode='[BCDT]'
6232  ;;
6233cygwin* | mingw* | pw32* | cegcc*)
6234  symcode='[ABCDGISTW]'
6235  ;;
6236hpux*)
6237  if test "$host_cpu" = ia64; then
6238    symcode='[ABCDEGRST]'
6239  fi
6240  ;;
6241irix* | nonstopux*)
6242  symcode='[BCDEGRST]'
6243  ;;
6244osf*)
6245  symcode='[BCDEGQRST]'
6246  ;;
6247solaris*)
6248  symcode='[BDRT]'
6249  ;;
6250sco3.2v5*)
6251  symcode='[DT]'
6252  ;;
6253sysv4.2uw2*)
6254  symcode='[DT]'
6255  ;;
6256sysv5* | sco5v6* | unixware* | OpenUNIX*)
6257  symcode='[ABDT]'
6258  ;;
6259sysv4)
6260  symcode='[DFNSTU]'
6261  ;;
6262esac
6263
6264# If we're using GNU nm, then use its standard symbol codes.
6265case `$NM -V 2>&1` in
6266*GNU* | *'with BFD'*)
6267  symcode='[ABCDGIRSTW]' ;;
6268esac
6269
6270# Transform an extracted symbol line into a proper C declaration.
6271# Some systems (esp. on ia64) link data and code symbols differently,
6272# so use this general approach.
6273lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6274
6275# Transform an extracted symbol line into symbol name and symbol address
6276lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6277lt_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'"
6278
6279# Handle CRLF in mingw tool chain
6280opt_cr=
6281case $build_os in
6282mingw*)
6283  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6284  ;;
6285esac
6286
6287# Try without a prefix underscore, then with it.
6288for ac_symprfx in "" "_"; do
6289
6290  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6291  symxfrm="\\1 $ac_symprfx\\2 \\2"
6292
6293  # Write the raw and C identifiers.
6294  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6295    # Fake it for dumpbin and say T for any non-static function
6296    # and D for any global variable.
6297    # Also find C++ and __fastcall symbols from MSVC++,
6298    # which start with @ or ?.
6299    lt_cv_sys_global_symbol_pipe="$AWK '"\
6300"     {last_section=section; section=\$ 3};"\
6301"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6302"     \$ 0!~/External *\|/{next};"\
6303"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6304"     {if(hide[section]) next};"\
6305"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6306"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6307"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6308"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6309"     ' prfx=^$ac_symprfx"
6310  else
6311    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6312  fi
6313
6314  # Check to see that the pipe works correctly.
6315  pipe_works=no
6316
6317  rm -f conftest*
6318  cat > conftest.$ac_ext <<_LT_EOF
6319#ifdef __cplusplus
6320extern "C" {
6321#endif
6322char nm_test_var;
6323void nm_test_func(void);
6324void nm_test_func(void){}
6325#ifdef __cplusplus
6326}
6327#endif
6328int main(){nm_test_var='a';nm_test_func();return(0);}
6329_LT_EOF
6330
6331  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6332  (eval $ac_compile) 2>&5
6333  ac_status=$?
6334  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6335  test $ac_status = 0; }; then
6336    # Now try to grab the symbols.
6337    nlist=conftest.nm
6338    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6339  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6340  ac_status=$?
6341  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6342  test $ac_status = 0; } && test -s "$nlist"; then
6343      # Try sorting and uniquifying the output.
6344      if sort "$nlist" | uniq > "$nlist"T; then
6345	mv -f "$nlist"T "$nlist"
6346      else
6347	rm -f "$nlist"T
6348      fi
6349
6350      # Make sure that we snagged all the symbols we need.
6351      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6352	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6353	  cat <<_LT_EOF > conftest.$ac_ext
6354#ifdef __cplusplus
6355extern "C" {
6356#endif
6357
6358_LT_EOF
6359	  # Now generate the symbol file.
6360	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6361
6362	  cat <<_LT_EOF >> conftest.$ac_ext
6363
6364/* The mapping between symbol names and symbols.  */
6365const struct {
6366  const char *name;
6367  void       *address;
6368}
6369lt__PROGRAM__LTX_preloaded_symbols[] =
6370{
6371  { "@PROGRAM@", (void *) 0 },
6372_LT_EOF
6373	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6374	  cat <<\_LT_EOF >> conftest.$ac_ext
6375  {0, (void *) 0}
6376};
6377
6378/* This works around a problem in FreeBSD linker */
6379#ifdef FREEBSD_WORKAROUND
6380static const void *lt_preloaded_setup() {
6381  return lt__PROGRAM__LTX_preloaded_symbols;
6382}
6383#endif
6384
6385#ifdef __cplusplus
6386}
6387#endif
6388_LT_EOF
6389	  # Now try linking the two files.
6390	  mv conftest.$ac_objext conftstm.$ac_objext
6391	  lt_save_LIBS="$LIBS"
6392	  lt_save_CFLAGS="$CFLAGS"
6393	  LIBS="conftstm.$ac_objext"
6394	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6395	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6396  (eval $ac_link) 2>&5
6397  ac_status=$?
6398  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6399  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6400	    pipe_works=yes
6401	  fi
6402	  LIBS="$lt_save_LIBS"
6403	  CFLAGS="$lt_save_CFLAGS"
6404	else
6405	  echo "cannot find nm_test_func in $nlist" >&5
6406	fi
6407      else
6408	echo "cannot find nm_test_var in $nlist" >&5
6409      fi
6410    else
6411      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6412    fi
6413  else
6414    echo "$progname: failed program was:" >&5
6415    cat conftest.$ac_ext >&5
6416  fi
6417  rm -rf conftest* conftst*
6418
6419  # Do not use the global_symbol_pipe unless it works.
6420  if test "$pipe_works" = yes; then
6421    break
6422  else
6423    lt_cv_sys_global_symbol_pipe=
6424  fi
6425done
6426
6427fi
6428
6429if test -z "$lt_cv_sys_global_symbol_pipe"; then
6430  lt_cv_sys_global_symbol_to_cdecl=
6431fi
6432if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6434$as_echo "failed" >&6; }
6435else
6436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6437$as_echo "ok" >&6; }
6438fi
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462# Check whether --enable-libtool-lock was given.
6463if test "${enable_libtool_lock+set}" = set; then :
6464  enableval=$enable_libtool_lock;
6465fi
6466
6467test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6468
6469# Some flags need to be propagated to the compiler or linker for good
6470# libtool support.
6471case $host in
6472ia64-*-hpux*)
6473  # Find out which ABI we are using.
6474  echo 'int i;' > conftest.$ac_ext
6475  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6476  (eval $ac_compile) 2>&5
6477  ac_status=$?
6478  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6479  test $ac_status = 0; }; then
6480    case `/usr/bin/file conftest.$ac_objext` in
6481      *ELF-32*)
6482	HPUX_IA64_MODE="32"
6483	;;
6484      *ELF-64*)
6485	HPUX_IA64_MODE="64"
6486	;;
6487    esac
6488  fi
6489  rm -rf conftest*
6490  ;;
6491*-*-irix6*)
6492  # Find out which ABI we are using.
6493  echo '#line 6493 "configure"' > conftest.$ac_ext
6494  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6495  (eval $ac_compile) 2>&5
6496  ac_status=$?
6497  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6498  test $ac_status = 0; }; then
6499    if test "$lt_cv_prog_gnu_ld" = yes; then
6500      case `/usr/bin/file conftest.$ac_objext` in
6501	*32-bit*)
6502	  LD="${LD-ld} -melf32bsmip"
6503	  ;;
6504	*N32*)
6505	  LD="${LD-ld} -melf32bmipn32"
6506	  ;;
6507	*64-bit*)
6508	  LD="${LD-ld} -melf64bmip"
6509	;;
6510      esac
6511    else
6512      case `/usr/bin/file conftest.$ac_objext` in
6513	*32-bit*)
6514	  LD="${LD-ld} -32"
6515	  ;;
6516	*N32*)
6517	  LD="${LD-ld} -n32"
6518	  ;;
6519	*64-bit*)
6520	  LD="${LD-ld} -64"
6521	  ;;
6522      esac
6523    fi
6524  fi
6525  rm -rf conftest*
6526  ;;
6527
6528x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6529s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6530  # Find out which ABI we are using.
6531  echo 'int i;' > conftest.$ac_ext
6532  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6533  (eval $ac_compile) 2>&5
6534  ac_status=$?
6535  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6536  test $ac_status = 0; }; then
6537    case `/usr/bin/file conftest.o` in
6538      *32-bit*)
6539	case $host in
6540	  x86_64-*kfreebsd*-gnu)
6541	    LD="${LD-ld} -m elf_i386_fbsd"
6542	    ;;
6543	  x86_64-*linux*)
6544	    LD="${LD-ld} -m elf_i386"
6545	    ;;
6546	  ppc64-*linux*|powerpc64-*linux*)
6547	    LD="${LD-ld} -m elf32ppclinux"
6548	    ;;
6549	  s390x-*linux*)
6550	    LD="${LD-ld} -m elf_s390"
6551	    ;;
6552	  sparc64-*linux*)
6553	    LD="${LD-ld} -m elf32_sparc"
6554	    ;;
6555	esac
6556	;;
6557      *64-bit*)
6558	case $host in
6559	  x86_64-*kfreebsd*-gnu)
6560	    LD="${LD-ld} -m elf_x86_64_fbsd"
6561	    ;;
6562	  x86_64-*linux*)
6563	    LD="${LD-ld} -m elf_x86_64"
6564	    ;;
6565	  ppc*-*linux*|powerpc*-*linux*)
6566	    LD="${LD-ld} -m elf64ppc"
6567	    ;;
6568	  s390*-*linux*|s390*-*tpf*)
6569	    LD="${LD-ld} -m elf64_s390"
6570	    ;;
6571	  sparc*-*linux*)
6572	    LD="${LD-ld} -m elf64_sparc"
6573	    ;;
6574	esac
6575	;;
6576    esac
6577  fi
6578  rm -rf conftest*
6579  ;;
6580
6581*-*-sco3.2v5*)
6582  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6583  SAVE_CFLAGS="$CFLAGS"
6584  CFLAGS="$CFLAGS -belf"
6585  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6586$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6587if test "${lt_cv_cc_needs_belf+set}" = set; then :
6588  $as_echo_n "(cached) " >&6
6589else
6590  ac_ext=c
6591ac_cpp='$CPP $CPPFLAGS'
6592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6594ac_compiler_gnu=$ac_cv_c_compiler_gnu
6595
6596     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6597/* end confdefs.h.  */
6598
6599int
6600main ()
6601{
6602
6603  ;
6604  return 0;
6605}
6606_ACEOF
6607if ac_fn_c_try_link "$LINENO"; then :
6608  lt_cv_cc_needs_belf=yes
6609else
6610  lt_cv_cc_needs_belf=no
6611fi
6612rm -f core conftest.err conftest.$ac_objext \
6613    conftest$ac_exeext conftest.$ac_ext
6614     ac_ext=c
6615ac_cpp='$CPP $CPPFLAGS'
6616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6618ac_compiler_gnu=$ac_cv_c_compiler_gnu
6619
6620fi
6621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6622$as_echo "$lt_cv_cc_needs_belf" >&6; }
6623  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6624    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6625    CFLAGS="$SAVE_CFLAGS"
6626  fi
6627  ;;
6628sparc*-*solaris*)
6629  # Find out which ABI we are using.
6630  echo 'int i;' > conftest.$ac_ext
6631  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6632  (eval $ac_compile) 2>&5
6633  ac_status=$?
6634  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6635  test $ac_status = 0; }; then
6636    case `/usr/bin/file conftest.o` in
6637    *64-bit*)
6638      case $lt_cv_prog_gnu_ld in
6639      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6640      *)
6641	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6642	  LD="${LD-ld} -64"
6643	fi
6644	;;
6645      esac
6646      ;;
6647    esac
6648  fi
6649  rm -rf conftest*
6650  ;;
6651esac
6652
6653need_locks="$enable_libtool_lock"
6654
6655
6656  case $host_os in
6657    rhapsody* | darwin*)
6658    if test -n "$ac_tool_prefix"; then
6659  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6660set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6662$as_echo_n "checking for $ac_word... " >&6; }
6663if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6664  $as_echo_n "(cached) " >&6
6665else
6666  if test -n "$DSYMUTIL"; then
6667  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6668else
6669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670for as_dir in $PATH
6671do
6672  IFS=$as_save_IFS
6673  test -z "$as_dir" && as_dir=.
6674    for ac_exec_ext in '' $ac_executable_extensions; do
6675  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6676    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6677    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6678    break 2
6679  fi
6680done
6681  done
6682IFS=$as_save_IFS
6683
6684fi
6685fi
6686DSYMUTIL=$ac_cv_prog_DSYMUTIL
6687if test -n "$DSYMUTIL"; then
6688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6689$as_echo "$DSYMUTIL" >&6; }
6690else
6691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6692$as_echo "no" >&6; }
6693fi
6694
6695
6696fi
6697if test -z "$ac_cv_prog_DSYMUTIL"; then
6698  ac_ct_DSYMUTIL=$DSYMUTIL
6699  # Extract the first word of "dsymutil", so it can be a program name with args.
6700set dummy dsymutil; ac_word=$2
6701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6702$as_echo_n "checking for $ac_word... " >&6; }
6703if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6704  $as_echo_n "(cached) " >&6
6705else
6706  if test -n "$ac_ct_DSYMUTIL"; then
6707  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6708else
6709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710for as_dir in $PATH
6711do
6712  IFS=$as_save_IFS
6713  test -z "$as_dir" && as_dir=.
6714    for ac_exec_ext in '' $ac_executable_extensions; do
6715  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6716    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6717    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6718    break 2
6719  fi
6720done
6721  done
6722IFS=$as_save_IFS
6723
6724fi
6725fi
6726ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6727if test -n "$ac_ct_DSYMUTIL"; then
6728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6729$as_echo "$ac_ct_DSYMUTIL" >&6; }
6730else
6731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6732$as_echo "no" >&6; }
6733fi
6734
6735  if test "x$ac_ct_DSYMUTIL" = x; then
6736    DSYMUTIL=":"
6737  else
6738    case $cross_compiling:$ac_tool_warned in
6739yes:)
6740{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6741$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6742ac_tool_warned=yes ;;
6743esac
6744    DSYMUTIL=$ac_ct_DSYMUTIL
6745  fi
6746else
6747  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6748fi
6749
6750    if test -n "$ac_tool_prefix"; then
6751  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6752set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6754$as_echo_n "checking for $ac_word... " >&6; }
6755if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6756  $as_echo_n "(cached) " >&6
6757else
6758  if test -n "$NMEDIT"; then
6759  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6760else
6761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762for as_dir in $PATH
6763do
6764  IFS=$as_save_IFS
6765  test -z "$as_dir" && as_dir=.
6766    for ac_exec_ext in '' $ac_executable_extensions; do
6767  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6768    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6769    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6770    break 2
6771  fi
6772done
6773  done
6774IFS=$as_save_IFS
6775
6776fi
6777fi
6778NMEDIT=$ac_cv_prog_NMEDIT
6779if test -n "$NMEDIT"; then
6780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6781$as_echo "$NMEDIT" >&6; }
6782else
6783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6784$as_echo "no" >&6; }
6785fi
6786
6787
6788fi
6789if test -z "$ac_cv_prog_NMEDIT"; then
6790  ac_ct_NMEDIT=$NMEDIT
6791  # Extract the first word of "nmedit", so it can be a program name with args.
6792set dummy nmedit; ac_word=$2
6793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6794$as_echo_n "checking for $ac_word... " >&6; }
6795if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6796  $as_echo_n "(cached) " >&6
6797else
6798  if test -n "$ac_ct_NMEDIT"; then
6799  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6800else
6801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802for as_dir in $PATH
6803do
6804  IFS=$as_save_IFS
6805  test -z "$as_dir" && as_dir=.
6806    for ac_exec_ext in '' $ac_executable_extensions; do
6807  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6808    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6809    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6810    break 2
6811  fi
6812done
6813  done
6814IFS=$as_save_IFS
6815
6816fi
6817fi
6818ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6819if test -n "$ac_ct_NMEDIT"; then
6820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6821$as_echo "$ac_ct_NMEDIT" >&6; }
6822else
6823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824$as_echo "no" >&6; }
6825fi
6826
6827  if test "x$ac_ct_NMEDIT" = x; then
6828    NMEDIT=":"
6829  else
6830    case $cross_compiling:$ac_tool_warned in
6831yes:)
6832{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6833$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6834ac_tool_warned=yes ;;
6835esac
6836    NMEDIT=$ac_ct_NMEDIT
6837  fi
6838else
6839  NMEDIT="$ac_cv_prog_NMEDIT"
6840fi
6841
6842    if test -n "$ac_tool_prefix"; then
6843  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6844set dummy ${ac_tool_prefix}lipo; ac_word=$2
6845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6846$as_echo_n "checking for $ac_word... " >&6; }
6847if test "${ac_cv_prog_LIPO+set}" = set; then :
6848  $as_echo_n "(cached) " >&6
6849else
6850  if test -n "$LIPO"; then
6851  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6852else
6853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854for as_dir in $PATH
6855do
6856  IFS=$as_save_IFS
6857  test -z "$as_dir" && as_dir=.
6858    for ac_exec_ext in '' $ac_executable_extensions; do
6859  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6860    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6861    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6862    break 2
6863  fi
6864done
6865  done
6866IFS=$as_save_IFS
6867
6868fi
6869fi
6870LIPO=$ac_cv_prog_LIPO
6871if test -n "$LIPO"; then
6872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6873$as_echo "$LIPO" >&6; }
6874else
6875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6876$as_echo "no" >&6; }
6877fi
6878
6879
6880fi
6881if test -z "$ac_cv_prog_LIPO"; then
6882  ac_ct_LIPO=$LIPO
6883  # Extract the first word of "lipo", so it can be a program name with args.
6884set dummy lipo; ac_word=$2
6885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6886$as_echo_n "checking for $ac_word... " >&6; }
6887if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6888  $as_echo_n "(cached) " >&6
6889else
6890  if test -n "$ac_ct_LIPO"; then
6891  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6892else
6893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6894for as_dir in $PATH
6895do
6896  IFS=$as_save_IFS
6897  test -z "$as_dir" && as_dir=.
6898    for ac_exec_ext in '' $ac_executable_extensions; do
6899  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6900    ac_cv_prog_ac_ct_LIPO="lipo"
6901    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6902    break 2
6903  fi
6904done
6905  done
6906IFS=$as_save_IFS
6907
6908fi
6909fi
6910ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6911if test -n "$ac_ct_LIPO"; then
6912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6913$as_echo "$ac_ct_LIPO" >&6; }
6914else
6915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6916$as_echo "no" >&6; }
6917fi
6918
6919  if test "x$ac_ct_LIPO" = x; then
6920    LIPO=":"
6921  else
6922    case $cross_compiling:$ac_tool_warned in
6923yes:)
6924{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6925$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6926ac_tool_warned=yes ;;
6927esac
6928    LIPO=$ac_ct_LIPO
6929  fi
6930else
6931  LIPO="$ac_cv_prog_LIPO"
6932fi
6933
6934    if test -n "$ac_tool_prefix"; then
6935  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6936set dummy ${ac_tool_prefix}otool; ac_word=$2
6937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6938$as_echo_n "checking for $ac_word... " >&6; }
6939if test "${ac_cv_prog_OTOOL+set}" = set; then :
6940  $as_echo_n "(cached) " >&6
6941else
6942  if test -n "$OTOOL"; then
6943  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6944else
6945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946for as_dir in $PATH
6947do
6948  IFS=$as_save_IFS
6949  test -z "$as_dir" && as_dir=.
6950    for ac_exec_ext in '' $ac_executable_extensions; do
6951  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6952    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6953    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6954    break 2
6955  fi
6956done
6957  done
6958IFS=$as_save_IFS
6959
6960fi
6961fi
6962OTOOL=$ac_cv_prog_OTOOL
6963if test -n "$OTOOL"; then
6964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6965$as_echo "$OTOOL" >&6; }
6966else
6967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6968$as_echo "no" >&6; }
6969fi
6970
6971
6972fi
6973if test -z "$ac_cv_prog_OTOOL"; then
6974  ac_ct_OTOOL=$OTOOL
6975  # Extract the first word of "otool", so it can be a program name with args.
6976set dummy otool; ac_word=$2
6977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6978$as_echo_n "checking for $ac_word... " >&6; }
6979if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6980  $as_echo_n "(cached) " >&6
6981else
6982  if test -n "$ac_ct_OTOOL"; then
6983  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6984else
6985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986for as_dir in $PATH
6987do
6988  IFS=$as_save_IFS
6989  test -z "$as_dir" && as_dir=.
6990    for ac_exec_ext in '' $ac_executable_extensions; do
6991  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6992    ac_cv_prog_ac_ct_OTOOL="otool"
6993    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6994    break 2
6995  fi
6996done
6997  done
6998IFS=$as_save_IFS
6999
7000fi
7001fi
7002ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7003if test -n "$ac_ct_OTOOL"; then
7004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7005$as_echo "$ac_ct_OTOOL" >&6; }
7006else
7007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7008$as_echo "no" >&6; }
7009fi
7010
7011  if test "x$ac_ct_OTOOL" = x; then
7012    OTOOL=":"
7013  else
7014    case $cross_compiling:$ac_tool_warned in
7015yes:)
7016{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7017$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7018ac_tool_warned=yes ;;
7019esac
7020    OTOOL=$ac_ct_OTOOL
7021  fi
7022else
7023  OTOOL="$ac_cv_prog_OTOOL"
7024fi
7025
7026    if test -n "$ac_tool_prefix"; then
7027  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7028set dummy ${ac_tool_prefix}otool64; ac_word=$2
7029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7030$as_echo_n "checking for $ac_word... " >&6; }
7031if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7032  $as_echo_n "(cached) " >&6
7033else
7034  if test -n "$OTOOL64"; then
7035  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7036else
7037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038for as_dir in $PATH
7039do
7040  IFS=$as_save_IFS
7041  test -z "$as_dir" && as_dir=.
7042    for ac_exec_ext in '' $ac_executable_extensions; do
7043  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7044    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7045    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7046    break 2
7047  fi
7048done
7049  done
7050IFS=$as_save_IFS
7051
7052fi
7053fi
7054OTOOL64=$ac_cv_prog_OTOOL64
7055if test -n "$OTOOL64"; then
7056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7057$as_echo "$OTOOL64" >&6; }
7058else
7059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7060$as_echo "no" >&6; }
7061fi
7062
7063
7064fi
7065if test -z "$ac_cv_prog_OTOOL64"; then
7066  ac_ct_OTOOL64=$OTOOL64
7067  # Extract the first word of "otool64", so it can be a program name with args.
7068set dummy otool64; ac_word=$2
7069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7070$as_echo_n "checking for $ac_word... " >&6; }
7071if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7072  $as_echo_n "(cached) " >&6
7073else
7074  if test -n "$ac_ct_OTOOL64"; then
7075  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7076else
7077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078for as_dir in $PATH
7079do
7080  IFS=$as_save_IFS
7081  test -z "$as_dir" && as_dir=.
7082    for ac_exec_ext in '' $ac_executable_extensions; do
7083  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7084    ac_cv_prog_ac_ct_OTOOL64="otool64"
7085    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7086    break 2
7087  fi
7088done
7089  done
7090IFS=$as_save_IFS
7091
7092fi
7093fi
7094ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7095if test -n "$ac_ct_OTOOL64"; then
7096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7097$as_echo "$ac_ct_OTOOL64" >&6; }
7098else
7099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7100$as_echo "no" >&6; }
7101fi
7102
7103  if test "x$ac_ct_OTOOL64" = x; then
7104    OTOOL64=":"
7105  else
7106    case $cross_compiling:$ac_tool_warned in
7107yes:)
7108{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7109$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7110ac_tool_warned=yes ;;
7111esac
7112    OTOOL64=$ac_ct_OTOOL64
7113  fi
7114else
7115  OTOOL64="$ac_cv_prog_OTOOL64"
7116fi
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7145$as_echo_n "checking for -single_module linker flag... " >&6; }
7146if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7147  $as_echo_n "(cached) " >&6
7148else
7149  lt_cv_apple_cc_single_mod=no
7150      if test -z "${LT_MULTI_MODULE}"; then
7151	# By default we will add the -single_module flag. You can override
7152	# by either setting the environment variable LT_MULTI_MODULE
7153	# non-empty at configure time, or by adding -multi_module to the
7154	# link flags.
7155	rm -rf libconftest.dylib*
7156	echo "int foo(void){return 1;}" > conftest.c
7157	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7158-dynamiclib -Wl,-single_module conftest.c" >&5
7159	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7160	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7161        _lt_result=$?
7162	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7163	  lt_cv_apple_cc_single_mod=yes
7164	else
7165	  cat conftest.err >&5
7166	fi
7167	rm -rf libconftest.dylib*
7168	rm -f conftest.*
7169      fi
7170fi
7171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7172$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7173    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7174$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7175if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7176  $as_echo_n "(cached) " >&6
7177else
7178  lt_cv_ld_exported_symbols_list=no
7179      save_LDFLAGS=$LDFLAGS
7180      echo "_main" > conftest.sym
7181      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7182      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7183/* end confdefs.h.  */
7184
7185int
7186main ()
7187{
7188
7189  ;
7190  return 0;
7191}
7192_ACEOF
7193if ac_fn_c_try_link "$LINENO"; then :
7194  lt_cv_ld_exported_symbols_list=yes
7195else
7196  lt_cv_ld_exported_symbols_list=no
7197fi
7198rm -f core conftest.err conftest.$ac_objext \
7199    conftest$ac_exeext conftest.$ac_ext
7200	LDFLAGS="$save_LDFLAGS"
7201
7202fi
7203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7204$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7205    case $host_os in
7206    rhapsody* | darwin1.[012])
7207      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7208    darwin1.*)
7209      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7210    darwin*) # darwin 5.x on
7211      # if running on 10.5 or later, the deployment target defaults
7212      # to the OS version, if on x86, and 10.4, the deployment
7213      # target defaults to 10.4. Don't you love it?
7214      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7215	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7216	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7217	10.[012]*)
7218	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7219	10.*)
7220	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7221      esac
7222    ;;
7223  esac
7224    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7225      _lt_dar_single_mod='$single_module'
7226    fi
7227    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7228      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7229    else
7230      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7231    fi
7232    if test "$DSYMUTIL" != ":"; then
7233      _lt_dsymutil='~$DSYMUTIL $lib || :'
7234    else
7235      _lt_dsymutil=
7236    fi
7237    ;;
7238  esac
7239
7240ac_ext=c
7241ac_cpp='$CPP $CPPFLAGS'
7242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7244ac_compiler_gnu=$ac_cv_c_compiler_gnu
7245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7246$as_echo_n "checking how to run the C preprocessor... " >&6; }
7247# On Suns, sometimes $CPP names a directory.
7248if test -n "$CPP" && test -d "$CPP"; then
7249  CPP=
7250fi
7251if test -z "$CPP"; then
7252  if test "${ac_cv_prog_CPP+set}" = set; then :
7253  $as_echo_n "(cached) " >&6
7254else
7255      # Double quotes because CPP needs to be expanded
7256    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7257    do
7258      ac_preproc_ok=false
7259for ac_c_preproc_warn_flag in '' yes
7260do
7261  # Use a header file that comes with gcc, so configuring glibc
7262  # with a fresh cross-compiler works.
7263  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7264  # <limits.h> exists even on freestanding compilers.
7265  # On the NeXT, cc -E runs the code through the compiler's parser,
7266  # not just through cpp. "Syntax error" is here to catch this case.
7267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7268/* end confdefs.h.  */
7269#ifdef __STDC__
7270# include <limits.h>
7271#else
7272# include <assert.h>
7273#endif
7274		     Syntax error
7275_ACEOF
7276if ac_fn_c_try_cpp "$LINENO"; then :
7277
7278else
7279  # Broken: fails on valid input.
7280continue
7281fi
7282rm -f conftest.err conftest.$ac_ext
7283
7284  # OK, works on sane cases.  Now check whether nonexistent headers
7285  # can be detected and how.
7286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287/* end confdefs.h.  */
7288#include <ac_nonexistent.h>
7289_ACEOF
7290if ac_fn_c_try_cpp "$LINENO"; then :
7291  # Broken: success on invalid input.
7292continue
7293else
7294  # Passes both tests.
7295ac_preproc_ok=:
7296break
7297fi
7298rm -f conftest.err conftest.$ac_ext
7299
7300done
7301# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7302rm -f conftest.err conftest.$ac_ext
7303if $ac_preproc_ok; then :
7304  break
7305fi
7306
7307    done
7308    ac_cv_prog_CPP=$CPP
7309
7310fi
7311  CPP=$ac_cv_prog_CPP
7312else
7313  ac_cv_prog_CPP=$CPP
7314fi
7315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7316$as_echo "$CPP" >&6; }
7317ac_preproc_ok=false
7318for ac_c_preproc_warn_flag in '' yes
7319do
7320  # Use a header file that comes with gcc, so configuring glibc
7321  # with a fresh cross-compiler works.
7322  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7323  # <limits.h> exists even on freestanding compilers.
7324  # On the NeXT, cc -E runs the code through the compiler's parser,
7325  # not just through cpp. "Syntax error" is here to catch this case.
7326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7327/* end confdefs.h.  */
7328#ifdef __STDC__
7329# include <limits.h>
7330#else
7331# include <assert.h>
7332#endif
7333		     Syntax error
7334_ACEOF
7335if ac_fn_c_try_cpp "$LINENO"; then :
7336
7337else
7338  # Broken: fails on valid input.
7339continue
7340fi
7341rm -f conftest.err conftest.$ac_ext
7342
7343  # OK, works on sane cases.  Now check whether nonexistent headers
7344  # can be detected and how.
7345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7346/* end confdefs.h.  */
7347#include <ac_nonexistent.h>
7348_ACEOF
7349if ac_fn_c_try_cpp "$LINENO"; then :
7350  # Broken: success on invalid input.
7351continue
7352else
7353  # Passes both tests.
7354ac_preproc_ok=:
7355break
7356fi
7357rm -f conftest.err conftest.$ac_ext
7358
7359done
7360# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7361rm -f conftest.err conftest.$ac_ext
7362if $ac_preproc_ok; then :
7363
7364else
7365  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7366$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7367as_fn_error "C preprocessor \"$CPP\" fails sanity check
7368See \`config.log' for more details." "$LINENO" 5; }
7369fi
7370
7371ac_ext=c
7372ac_cpp='$CPP $CPPFLAGS'
7373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7375ac_compiler_gnu=$ac_cv_c_compiler_gnu
7376
7377
7378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7379$as_echo_n "checking for ANSI C header files... " >&6; }
7380if test "${ac_cv_header_stdc+set}" = set; then :
7381  $as_echo_n "(cached) " >&6
7382else
7383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7384/* end confdefs.h.  */
7385#include <stdlib.h>
7386#include <stdarg.h>
7387#include <string.h>
7388#include <float.h>
7389
7390int
7391main ()
7392{
7393
7394  ;
7395  return 0;
7396}
7397_ACEOF
7398if ac_fn_c_try_compile "$LINENO"; then :
7399  ac_cv_header_stdc=yes
7400else
7401  ac_cv_header_stdc=no
7402fi
7403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7404
7405if test $ac_cv_header_stdc = yes; then
7406  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7408/* end confdefs.h.  */
7409#include <string.h>
7410
7411_ACEOF
7412if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7413  $EGREP "memchr" >/dev/null 2>&1; then :
7414
7415else
7416  ac_cv_header_stdc=no
7417fi
7418rm -f conftest*
7419
7420fi
7421
7422if test $ac_cv_header_stdc = yes; then
7423  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7425/* end confdefs.h.  */
7426#include <stdlib.h>
7427
7428_ACEOF
7429if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7430  $EGREP "free" >/dev/null 2>&1; then :
7431
7432else
7433  ac_cv_header_stdc=no
7434fi
7435rm -f conftest*
7436
7437fi
7438
7439if test $ac_cv_header_stdc = yes; then
7440  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7441  if test "$cross_compiling" = yes; then :
7442  :
7443else
7444  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7445/* end confdefs.h.  */
7446#include <ctype.h>
7447#include <stdlib.h>
7448#if ((' ' & 0x0FF) == 0x020)
7449# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7450# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7451#else
7452# define ISLOWER(c) \
7453		   (('a' <= (c) && (c) <= 'i') \
7454		     || ('j' <= (c) && (c) <= 'r') \
7455		     || ('s' <= (c) && (c) <= 'z'))
7456# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7457#endif
7458
7459#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7460int
7461main ()
7462{
7463  int i;
7464  for (i = 0; i < 256; i++)
7465    if (XOR (islower (i), ISLOWER (i))
7466	|| toupper (i) != TOUPPER (i))
7467      return 2;
7468  return 0;
7469}
7470_ACEOF
7471if ac_fn_c_try_run "$LINENO"; then :
7472
7473else
7474  ac_cv_header_stdc=no
7475fi
7476rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7477  conftest.$ac_objext conftest.beam conftest.$ac_ext
7478fi
7479
7480fi
7481fi
7482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7483$as_echo "$ac_cv_header_stdc" >&6; }
7484if test $ac_cv_header_stdc = yes; then
7485
7486$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7487
7488fi
7489
7490# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7491for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7492		  inttypes.h stdint.h unistd.h
7493do :
7494  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7495ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7496"
7497eval as_val=\$$as_ac_Header
7498   if test "x$as_val" = x""yes; then :
7499  cat >>confdefs.h <<_ACEOF
7500#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7501_ACEOF
7502
7503fi
7504
7505done
7506
7507
7508for ac_header in dlfcn.h
7509do :
7510  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7511"
7512if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7513  cat >>confdefs.h <<_ACEOF
7514#define HAVE_DLFCN_H 1
7515_ACEOF
7516
7517fi
7518
7519done
7520
7521
7522
7523# Set options
7524enable_win32_dll=yes
7525
7526case $host in
7527*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
7528  if test -n "$ac_tool_prefix"; then
7529  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7530set dummy ${ac_tool_prefix}as; ac_word=$2
7531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7532$as_echo_n "checking for $ac_word... " >&6; }
7533if test "${ac_cv_prog_AS+set}" = set; then :
7534  $as_echo_n "(cached) " >&6
7535else
7536  if test -n "$AS"; then
7537  ac_cv_prog_AS="$AS" # Let the user override the test.
7538else
7539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7540for as_dir in $PATH
7541do
7542  IFS=$as_save_IFS
7543  test -z "$as_dir" && as_dir=.
7544    for ac_exec_ext in '' $ac_executable_extensions; do
7545  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7546    ac_cv_prog_AS="${ac_tool_prefix}as"
7547    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7548    break 2
7549  fi
7550done
7551  done
7552IFS=$as_save_IFS
7553
7554fi
7555fi
7556AS=$ac_cv_prog_AS
7557if test -n "$AS"; then
7558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7559$as_echo "$AS" >&6; }
7560else
7561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7562$as_echo "no" >&6; }
7563fi
7564
7565
7566fi
7567if test -z "$ac_cv_prog_AS"; then
7568  ac_ct_AS=$AS
7569  # Extract the first word of "as", so it can be a program name with args.
7570set dummy as; ac_word=$2
7571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7572$as_echo_n "checking for $ac_word... " >&6; }
7573if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
7574  $as_echo_n "(cached) " >&6
7575else
7576  if test -n "$ac_ct_AS"; then
7577  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7578else
7579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7580for as_dir in $PATH
7581do
7582  IFS=$as_save_IFS
7583  test -z "$as_dir" && as_dir=.
7584    for ac_exec_ext in '' $ac_executable_extensions; do
7585  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7586    ac_cv_prog_ac_ct_AS="as"
7587    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7588    break 2
7589  fi
7590done
7591  done
7592IFS=$as_save_IFS
7593
7594fi
7595fi
7596ac_ct_AS=$ac_cv_prog_ac_ct_AS
7597if test -n "$ac_ct_AS"; then
7598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7599$as_echo "$ac_ct_AS" >&6; }
7600else
7601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7602$as_echo "no" >&6; }
7603fi
7604
7605  if test "x$ac_ct_AS" = x; then
7606    AS="false"
7607  else
7608    case $cross_compiling:$ac_tool_warned in
7609yes:)
7610{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7611$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7612ac_tool_warned=yes ;;
7613esac
7614    AS=$ac_ct_AS
7615  fi
7616else
7617  AS="$ac_cv_prog_AS"
7618fi
7619
7620  if test -n "$ac_tool_prefix"; then
7621  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7622set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7624$as_echo_n "checking for $ac_word... " >&6; }
7625if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7626  $as_echo_n "(cached) " >&6
7627else
7628  if test -n "$DLLTOOL"; then
7629  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7630else
7631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7632for as_dir in $PATH
7633do
7634  IFS=$as_save_IFS
7635  test -z "$as_dir" && as_dir=.
7636    for ac_exec_ext in '' $ac_executable_extensions; do
7637  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7638    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7639    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7640    break 2
7641  fi
7642done
7643  done
7644IFS=$as_save_IFS
7645
7646fi
7647fi
7648DLLTOOL=$ac_cv_prog_DLLTOOL
7649if test -n "$DLLTOOL"; then
7650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7651$as_echo "$DLLTOOL" >&6; }
7652else
7653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7654$as_echo "no" >&6; }
7655fi
7656
7657
7658fi
7659if test -z "$ac_cv_prog_DLLTOOL"; then
7660  ac_ct_DLLTOOL=$DLLTOOL
7661  # Extract the first word of "dlltool", so it can be a program name with args.
7662set dummy dlltool; ac_word=$2
7663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7664$as_echo_n "checking for $ac_word... " >&6; }
7665if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
7666  $as_echo_n "(cached) " >&6
7667else
7668  if test -n "$ac_ct_DLLTOOL"; then
7669  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7670else
7671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672for as_dir in $PATH
7673do
7674  IFS=$as_save_IFS
7675  test -z "$as_dir" && as_dir=.
7676    for ac_exec_ext in '' $ac_executable_extensions; do
7677  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7678    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7679    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7680    break 2
7681  fi
7682done
7683  done
7684IFS=$as_save_IFS
7685
7686fi
7687fi
7688ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7689if test -n "$ac_ct_DLLTOOL"; then
7690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7691$as_echo "$ac_ct_DLLTOOL" >&6; }
7692else
7693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7694$as_echo "no" >&6; }
7695fi
7696
7697  if test "x$ac_ct_DLLTOOL" = x; then
7698    DLLTOOL="false"
7699  else
7700    case $cross_compiling:$ac_tool_warned in
7701yes:)
7702{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7703$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7704ac_tool_warned=yes ;;
7705esac
7706    DLLTOOL=$ac_ct_DLLTOOL
7707  fi
7708else
7709  DLLTOOL="$ac_cv_prog_DLLTOOL"
7710fi
7711
7712  if test -n "$ac_tool_prefix"; then
7713  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7714set dummy ${ac_tool_prefix}objdump; ac_word=$2
7715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7716$as_echo_n "checking for $ac_word... " >&6; }
7717if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7718  $as_echo_n "(cached) " >&6
7719else
7720  if test -n "$OBJDUMP"; then
7721  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7722else
7723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7724for as_dir in $PATH
7725do
7726  IFS=$as_save_IFS
7727  test -z "$as_dir" && as_dir=.
7728    for ac_exec_ext in '' $ac_executable_extensions; do
7729  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7730    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7731    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7732    break 2
7733  fi
7734done
7735  done
7736IFS=$as_save_IFS
7737
7738fi
7739fi
7740OBJDUMP=$ac_cv_prog_OBJDUMP
7741if test -n "$OBJDUMP"; then
7742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7743$as_echo "$OBJDUMP" >&6; }
7744else
7745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7746$as_echo "no" >&6; }
7747fi
7748
7749
7750fi
7751if test -z "$ac_cv_prog_OBJDUMP"; then
7752  ac_ct_OBJDUMP=$OBJDUMP
7753  # Extract the first word of "objdump", so it can be a program name with args.
7754set dummy objdump; ac_word=$2
7755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7756$as_echo_n "checking for $ac_word... " >&6; }
7757if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7758  $as_echo_n "(cached) " >&6
7759else
7760  if test -n "$ac_ct_OBJDUMP"; then
7761  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7762else
7763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7764for as_dir in $PATH
7765do
7766  IFS=$as_save_IFS
7767  test -z "$as_dir" && as_dir=.
7768    for ac_exec_ext in '' $ac_executable_extensions; do
7769  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7770    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7771    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7772    break 2
7773  fi
7774done
7775  done
7776IFS=$as_save_IFS
7777
7778fi
7779fi
7780ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7781if test -n "$ac_ct_OBJDUMP"; then
7782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7783$as_echo "$ac_ct_OBJDUMP" >&6; }
7784else
7785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7786$as_echo "no" >&6; }
7787fi
7788
7789  if test "x$ac_ct_OBJDUMP" = x; then
7790    OBJDUMP="false"
7791  else
7792    case $cross_compiling:$ac_tool_warned in
7793yes:)
7794{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7795$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7796ac_tool_warned=yes ;;
7797esac
7798    OBJDUMP=$ac_ct_OBJDUMP
7799  fi
7800else
7801  OBJDUMP="$ac_cv_prog_OBJDUMP"
7802fi
7803
7804  ;;
7805esac
7806
7807test -z "$AS" && AS=as
7808
7809
7810
7811
7812
7813test -z "$DLLTOOL" && DLLTOOL=dlltool
7814
7815
7816
7817
7818
7819test -z "$OBJDUMP" && OBJDUMP=objdump
7820
7821
7822
7823
7824
7825
7826
7827        enable_dlopen=no
7828
7829
7830
7831            # Check whether --enable-shared was given.
7832if test "${enable_shared+set}" = set; then :
7833  enableval=$enable_shared; p=${PACKAGE-default}
7834    case $enableval in
7835    yes) enable_shared=yes ;;
7836    no) enable_shared=no ;;
7837    *)
7838      enable_shared=no
7839      # Look at the argument we got.  We use all the common list separators.
7840      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7841      for pkg in $enableval; do
7842	IFS="$lt_save_ifs"
7843	if test "X$pkg" = "X$p"; then
7844	  enable_shared=yes
7845	fi
7846      done
7847      IFS="$lt_save_ifs"
7848      ;;
7849    esac
7850else
7851  enable_shared=yes
7852fi
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862  # Check whether --enable-static was given.
7863if test "${enable_static+set}" = set; then :
7864  enableval=$enable_static; p=${PACKAGE-default}
7865    case $enableval in
7866    yes) enable_static=yes ;;
7867    no) enable_static=no ;;
7868    *)
7869     enable_static=no
7870      # Look at the argument we got.  We use all the common list separators.
7871      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7872      for pkg in $enableval; do
7873	IFS="$lt_save_ifs"
7874	if test "X$pkg" = "X$p"; then
7875	  enable_static=yes
7876	fi
7877      done
7878      IFS="$lt_save_ifs"
7879      ;;
7880    esac
7881else
7882  enable_static=yes
7883fi
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894# Check whether --with-pic was given.
7895if test "${with_pic+set}" = set; then :
7896  withval=$with_pic; pic_mode="$withval"
7897else
7898  pic_mode=default
7899fi
7900
7901
7902test -z "$pic_mode" && pic_mode=default
7903
7904
7905
7906
7907
7908
7909
7910  # Check whether --enable-fast-install was given.
7911if test "${enable_fast_install+set}" = set; then :
7912  enableval=$enable_fast_install; p=${PACKAGE-default}
7913    case $enableval in
7914    yes) enable_fast_install=yes ;;
7915    no) enable_fast_install=no ;;
7916    *)
7917      enable_fast_install=no
7918      # Look at the argument we got.  We use all the common list separators.
7919      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7920      for pkg in $enableval; do
7921	IFS="$lt_save_ifs"
7922	if test "X$pkg" = "X$p"; then
7923	  enable_fast_install=yes
7924	fi
7925      done
7926      IFS="$lt_save_ifs"
7927      ;;
7928    esac
7929else
7930  enable_fast_install=yes
7931fi
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943# This can be used to rebuild libtool when needed
7944LIBTOOL_DEPS="$ltmain"
7945
7946# Always use our own libtool.
7947LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973test -z "$LN_S" && LN_S="ln -s"
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988if test -n "${ZSH_VERSION+set}" ; then
7989   setopt NO_GLOB_SUBST
7990fi
7991
7992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7993$as_echo_n "checking for objdir... " >&6; }
7994if test "${lt_cv_objdir+set}" = set; then :
7995  $as_echo_n "(cached) " >&6
7996else
7997  rm -f .libs 2>/dev/null
7998mkdir .libs 2>/dev/null
7999if test -d .libs; then
8000  lt_cv_objdir=.libs
8001else
8002  # MS-DOS does not allow filenames that begin with a dot.
8003  lt_cv_objdir=_libs
8004fi
8005rmdir .libs 2>/dev/null
8006fi
8007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8008$as_echo "$lt_cv_objdir" >&6; }
8009objdir=$lt_cv_objdir
8010
8011
8012
8013
8014
8015cat >>confdefs.h <<_ACEOF
8016#define LT_OBJDIR "$lt_cv_objdir/"
8017_ACEOF
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035case $host_os in
8036aix3*)
8037  # AIX sometimes has problems with the GCC collect2 program.  For some
8038  # reason, if we set the COLLECT_NAMES environment variable, the problems
8039  # vanish in a puff of smoke.
8040  if test "X${COLLECT_NAMES+set}" != Xset; then
8041    COLLECT_NAMES=
8042    export COLLECT_NAMES
8043  fi
8044  ;;
8045esac
8046
8047# Sed substitution that helps us do robust quoting.  It backslashifies
8048# metacharacters that are still active within double-quoted strings.
8049sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8050
8051# Same as above, but do not quote variable references.
8052double_quote_subst='s/\(["`\\]\)/\\\1/g'
8053
8054# Sed substitution to delay expansion of an escaped shell variable in a
8055# double_quote_subst'ed string.
8056delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8057
8058# Sed substitution to delay expansion of an escaped single quote.
8059delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8060
8061# Sed substitution to avoid accidental globbing in evaled expressions
8062no_glob_subst='s/\*/\\\*/g'
8063
8064# Global variables:
8065ofile=libtool
8066can_build_shared=yes
8067
8068# All known linkers require a `.a' archive for static linking (except MSVC,
8069# which needs '.lib').
8070libext=a
8071
8072with_gnu_ld="$lt_cv_prog_gnu_ld"
8073
8074old_CC="$CC"
8075old_CFLAGS="$CFLAGS"
8076
8077# Set sane defaults for various variables
8078test -z "$CC" && CC=cc
8079test -z "$LTCC" && LTCC=$CC
8080test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8081test -z "$LD" && LD=ld
8082test -z "$ac_objext" && ac_objext=o
8083
8084for cc_temp in $compiler""; do
8085  case $cc_temp in
8086    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8087    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8088    \-*) ;;
8089    *) break;;
8090  esac
8091done
8092cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8093
8094
8095# Only perform the check for file, if the check method requires it
8096test -z "$MAGIC_CMD" && MAGIC_CMD=file
8097case $deplibs_check_method in
8098file_magic*)
8099  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8100    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8101$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8102if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8103  $as_echo_n "(cached) " >&6
8104else
8105  case $MAGIC_CMD in
8106[\\/*] |  ?:[\\/]*)
8107  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8108  ;;
8109*)
8110  lt_save_MAGIC_CMD="$MAGIC_CMD"
8111  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8112  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8113  for ac_dir in $ac_dummy; do
8114    IFS="$lt_save_ifs"
8115    test -z "$ac_dir" && ac_dir=.
8116    if test -f $ac_dir/${ac_tool_prefix}file; then
8117      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8118      if test -n "$file_magic_test_file"; then
8119	case $deplibs_check_method in
8120	"file_magic "*)
8121	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8122	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8123	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8124	    $EGREP "$file_magic_regex" > /dev/null; then
8125	    :
8126	  else
8127	    cat <<_LT_EOF 1>&2
8128
8129*** Warning: the command libtool uses to detect shared libraries,
8130*** $file_magic_cmd, produces output that libtool cannot recognize.
8131*** The result is that libtool may fail to recognize shared libraries
8132*** as such.  This will affect the creation of libtool libraries that
8133*** depend on shared libraries, but programs linked with such libtool
8134*** libraries will work regardless of this problem.  Nevertheless, you
8135*** may want to report the problem to your system manager and/or to
8136*** [email protected]
8137
8138_LT_EOF
8139	  fi ;;
8140	esac
8141      fi
8142      break
8143    fi
8144  done
8145  IFS="$lt_save_ifs"
8146  MAGIC_CMD="$lt_save_MAGIC_CMD"
8147  ;;
8148esac
8149fi
8150
8151MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8152if test -n "$MAGIC_CMD"; then
8153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8154$as_echo "$MAGIC_CMD" >&6; }
8155else
8156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8157$as_echo "no" >&6; }
8158fi
8159
8160
8161
8162
8163
8164if test -z "$lt_cv_path_MAGIC_CMD"; then
8165  if test -n "$ac_tool_prefix"; then
8166    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8167$as_echo_n "checking for file... " >&6; }
8168if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8169  $as_echo_n "(cached) " >&6
8170else
8171  case $MAGIC_CMD in
8172[\\/*] |  ?:[\\/]*)
8173  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8174  ;;
8175*)
8176  lt_save_MAGIC_CMD="$MAGIC_CMD"
8177  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8178  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8179  for ac_dir in $ac_dummy; do
8180    IFS="$lt_save_ifs"
8181    test -z "$ac_dir" && ac_dir=.
8182    if test -f $ac_dir/file; then
8183      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8184      if test -n "$file_magic_test_file"; then
8185	case $deplibs_check_method in
8186	"file_magic "*)
8187	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8188	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8189	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8190	    $EGREP "$file_magic_regex" > /dev/null; then
8191	    :
8192	  else
8193	    cat <<_LT_EOF 1>&2
8194
8195*** Warning: the command libtool uses to detect shared libraries,
8196*** $file_magic_cmd, produces output that libtool cannot recognize.
8197*** The result is that libtool may fail to recognize shared libraries
8198*** as such.  This will affect the creation of libtool libraries that
8199*** depend on shared libraries, but programs linked with such libtool
8200*** libraries will work regardless of this problem.  Nevertheless, you
8201*** may want to report the problem to your system manager and/or to
8202*** [email protected]
8203
8204_LT_EOF
8205	  fi ;;
8206	esac
8207      fi
8208      break
8209    fi
8210  done
8211  IFS="$lt_save_ifs"
8212  MAGIC_CMD="$lt_save_MAGIC_CMD"
8213  ;;
8214esac
8215fi
8216
8217MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8218if test -n "$MAGIC_CMD"; then
8219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8220$as_echo "$MAGIC_CMD" >&6; }
8221else
8222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8223$as_echo "no" >&6; }
8224fi
8225
8226
8227  else
8228    MAGIC_CMD=:
8229  fi
8230fi
8231
8232  fi
8233  ;;
8234esac
8235
8236# Use C for the default configuration in the libtool script
8237
8238lt_save_CC="$CC"
8239ac_ext=c
8240ac_cpp='$CPP $CPPFLAGS'
8241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8243ac_compiler_gnu=$ac_cv_c_compiler_gnu
8244
8245
8246# Source file extension for C test sources.
8247ac_ext=c
8248
8249# Object file extension for compiled C test sources.
8250objext=o
8251objext=$objext
8252
8253# Code to be used in simple compile tests
8254lt_simple_compile_test_code="int some_variable = 0;"
8255
8256# Code to be used in simple link tests
8257lt_simple_link_test_code='int main(){return(0);}'
8258
8259
8260
8261
8262
8263
8264
8265# If no C compiler was specified, use CC.
8266LTCC=${LTCC-"$CC"}
8267
8268# If no C compiler flags were specified, use CFLAGS.
8269LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8270
8271# Allow CC to be a program name with arguments.
8272compiler=$CC
8273
8274# Save the default compiler, since it gets overwritten when the other
8275# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8276compiler_DEFAULT=$CC
8277
8278# save warnings/boilerplate of simple test code
8279ac_outfile=conftest.$ac_objext
8280echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8281eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8282_lt_compiler_boilerplate=`cat conftest.err`
8283$RM conftest*
8284
8285ac_outfile=conftest.$ac_objext
8286echo "$lt_simple_link_test_code" >conftest.$ac_ext
8287eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8288_lt_linker_boilerplate=`cat conftest.err`
8289$RM -r conftest*
8290
8291
8292## CAVEAT EMPTOR:
8293## There is no encapsulation within the following macros, do not change
8294## the running order or otherwise move them around unless you know exactly
8295## what you are doing...
8296if test -n "$compiler"; then
8297
8298lt_prog_compiler_no_builtin_flag=
8299
8300if test "$GCC" = yes; then
8301  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8302
8303  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8304$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8305if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8306  $as_echo_n "(cached) " >&6
8307else
8308  lt_cv_prog_compiler_rtti_exceptions=no
8309   ac_outfile=conftest.$ac_objext
8310   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8311   lt_compiler_flag="-fno-rtti -fno-exceptions"
8312   # Insert the option either (1) after the last *FLAGS variable, or
8313   # (2) before a word containing "conftest.", or (3) at the end.
8314   # Note that $ac_compile itself does not contain backslashes and begins
8315   # with a dollar sign (not a hyphen), so the echo should work correctly.
8316   # The option is referenced via a variable to avoid confusing sed.
8317   lt_compile=`echo "$ac_compile" | $SED \
8318   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8319   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8320   -e 's:$: $lt_compiler_flag:'`
8321   (eval echo "\"\$as_me:8321: $lt_compile\"" >&5)
8322   (eval "$lt_compile" 2>conftest.err)
8323   ac_status=$?
8324   cat conftest.err >&5
8325   echo "$as_me:8325: \$? = $ac_status" >&5
8326   if (exit $ac_status) && test -s "$ac_outfile"; then
8327     # The compiler can only warn and ignore the option if not recognized
8328     # So say no if there are warnings other than the usual output.
8329     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8330     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8331     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8332       lt_cv_prog_compiler_rtti_exceptions=yes
8333     fi
8334   fi
8335   $RM conftest*
8336
8337fi
8338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8339$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8340
8341if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8342    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8343else
8344    :
8345fi
8346
8347fi
8348
8349
8350
8351
8352
8353
8354  lt_prog_compiler_wl=
8355lt_prog_compiler_pic=
8356lt_prog_compiler_static=
8357
8358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8359$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8360
8361  if test "$GCC" = yes; then
8362    lt_prog_compiler_wl='-Wl,'
8363    lt_prog_compiler_static='-static'
8364
8365    case $host_os in
8366      aix*)
8367      # All AIX code is PIC.
8368      if test "$host_cpu" = ia64; then
8369	# AIX 5 now supports IA64 processor
8370	lt_prog_compiler_static='-Bstatic'
8371      fi
8372      ;;
8373
8374    amigaos*)
8375      case $host_cpu in
8376      powerpc)
8377            # see comment about AmigaOS4 .so support
8378            lt_prog_compiler_pic='-fPIC'
8379        ;;
8380      m68k)
8381            # FIXME: we need at least 68020 code to build shared libraries, but
8382            # adding the `-m68020' flag to GCC prevents building anything better,
8383            # like `-m68040'.
8384            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8385        ;;
8386      esac
8387      ;;
8388
8389    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8390      # PIC is the default for these OSes.
8391      ;;
8392
8393    mingw* | cygwin* | pw32* | os2* | cegcc*)
8394      # This hack is so that the source file can tell whether it is being
8395      # built for inclusion in a dll (and should export symbols for example).
8396      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8397      # (--disable-auto-import) libraries
8398      lt_prog_compiler_pic='-DDLL_EXPORT'
8399      ;;
8400
8401    darwin* | rhapsody*)
8402      # PIC is the default on this platform
8403      # Common symbols not allowed in MH_DYLIB files
8404      lt_prog_compiler_pic='-fno-common'
8405      ;;
8406
8407    hpux*)
8408      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8409      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8410      # sets the default TLS model and affects inlining.
8411      case $host_cpu in
8412      hppa*64*)
8413	# +Z the default
8414	;;
8415      *)
8416	lt_prog_compiler_pic='-fPIC'
8417	;;
8418      esac
8419      ;;
8420
8421    interix[3-9]*)
8422      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8423      # Instead, we relocate shared libraries at runtime.
8424      ;;
8425
8426    msdosdjgpp*)
8427      # Just because we use GCC doesn't mean we suddenly get shared libraries
8428      # on systems that don't support them.
8429      lt_prog_compiler_can_build_shared=no
8430      enable_shared=no
8431      ;;
8432
8433    *nto* | *qnx*)
8434      # QNX uses GNU C++, but need to define -shared option too, otherwise
8435      # it will coredump.
8436      lt_prog_compiler_pic='-fPIC -shared'
8437      ;;
8438
8439    sysv4*MP*)
8440      if test -d /usr/nec; then
8441	lt_prog_compiler_pic=-Kconform_pic
8442      fi
8443      ;;
8444
8445    *)
8446      lt_prog_compiler_pic='-fPIC'
8447      ;;
8448    esac
8449  else
8450    # PORTME Check for flag to pass linker flags through the system compiler.
8451    case $host_os in
8452    aix*)
8453      lt_prog_compiler_wl='-Wl,'
8454      if test "$host_cpu" = ia64; then
8455	# AIX 5 now supports IA64 processor
8456	lt_prog_compiler_static='-Bstatic'
8457      else
8458	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8459      fi
8460      ;;
8461
8462    mingw* | cygwin* | pw32* | os2* | cegcc*)
8463      # This hack is so that the source file can tell whether it is being
8464      # built for inclusion in a dll (and should export symbols for example).
8465      lt_prog_compiler_pic='-DDLL_EXPORT'
8466      ;;
8467
8468    hpux9* | hpux10* | hpux11*)
8469      lt_prog_compiler_wl='-Wl,'
8470      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8471      # not for PA HP-UX.
8472      case $host_cpu in
8473      hppa*64*|ia64*)
8474	# +Z the default
8475	;;
8476      *)
8477	lt_prog_compiler_pic='+Z'
8478	;;
8479      esac
8480      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8481      lt_prog_compiler_static='${wl}-a ${wl}archive'
8482      ;;
8483
8484    irix5* | irix6* | nonstopux*)
8485      lt_prog_compiler_wl='-Wl,'
8486      # PIC (with -KPIC) is the default.
8487      lt_prog_compiler_static='-non_shared'
8488      ;;
8489
8490    linux* | k*bsd*-gnu)
8491      case $cc_basename in
8492      # old Intel for x86_64 which still supported -KPIC.
8493      ecc*)
8494	lt_prog_compiler_wl='-Wl,'
8495	lt_prog_compiler_pic='-KPIC'
8496	lt_prog_compiler_static='-static'
8497        ;;
8498      # icc used to be incompatible with GCC.
8499      # ICC 10 doesn't accept -KPIC any more.
8500      icc* | ifort*)
8501	lt_prog_compiler_wl='-Wl,'
8502	lt_prog_compiler_pic='-fPIC'
8503	lt_prog_compiler_static='-static'
8504        ;;
8505      # Lahey Fortran 8.1.
8506      lf95*)
8507	lt_prog_compiler_wl='-Wl,'
8508	lt_prog_compiler_pic='--shared'
8509	lt_prog_compiler_static='--static'
8510	;;
8511      pgcc* | pgf77* | pgf90* | pgf95*)
8512        # Portland Group compilers (*not* the Pentium gcc compiler,
8513	# which looks to be a dead project)
8514	lt_prog_compiler_wl='-Wl,'
8515	lt_prog_compiler_pic='-fpic'
8516	lt_prog_compiler_static='-Bstatic'
8517        ;;
8518      ccc*)
8519        lt_prog_compiler_wl='-Wl,'
8520        # All Alpha code is PIC.
8521        lt_prog_compiler_static='-non_shared'
8522        ;;
8523      xl*)
8524	# IBM XL C 8.0/Fortran 10.1 on PPC
8525	lt_prog_compiler_wl='-Wl,'
8526	lt_prog_compiler_pic='-qpic'
8527	lt_prog_compiler_static='-qstaticlink'
8528	;;
8529      *)
8530	case `$CC -V 2>&1 | sed 5q` in
8531	*Sun\ C*)
8532	  # Sun C 5.9
8533	  lt_prog_compiler_pic='-KPIC'
8534	  lt_prog_compiler_static='-Bstatic'
8535	  lt_prog_compiler_wl='-Wl,'
8536	  ;;
8537	*Sun\ F*)
8538	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8539	  lt_prog_compiler_pic='-KPIC'
8540	  lt_prog_compiler_static='-Bstatic'
8541	  lt_prog_compiler_wl=''
8542	  ;;
8543	esac
8544	;;
8545      esac
8546      ;;
8547
8548    newsos6)
8549      lt_prog_compiler_pic='-KPIC'
8550      lt_prog_compiler_static='-Bstatic'
8551      ;;
8552
8553    *nto* | *qnx*)
8554      # QNX uses GNU C++, but need to define -shared option too, otherwise
8555      # it will coredump.
8556      lt_prog_compiler_pic='-fPIC -shared'
8557      ;;
8558
8559    osf3* | osf4* | osf5*)
8560      lt_prog_compiler_wl='-Wl,'
8561      # All OSF/1 code is PIC.
8562      lt_prog_compiler_static='-non_shared'
8563      ;;
8564
8565    rdos*)
8566      lt_prog_compiler_static='-non_shared'
8567      ;;
8568
8569    solaris*)
8570      lt_prog_compiler_pic='-KPIC'
8571      lt_prog_compiler_static='-Bstatic'
8572      case $cc_basename in
8573      f77* | f90* | f95*)
8574	lt_prog_compiler_wl='-Qoption ld ';;
8575      *)
8576	lt_prog_compiler_wl='-Wl,';;
8577      esac
8578      ;;
8579
8580    sunos4*)
8581      lt_prog_compiler_wl='-Qoption ld '
8582      lt_prog_compiler_pic='-PIC'
8583      lt_prog_compiler_static='-Bstatic'
8584      ;;
8585
8586    sysv4 | sysv4.2uw2* | sysv4.3*)
8587      lt_prog_compiler_wl='-Wl,'
8588      lt_prog_compiler_pic='-KPIC'
8589      lt_prog_compiler_static='-Bstatic'
8590      ;;
8591
8592    sysv4*MP*)
8593      if test -d /usr/nec ;then
8594	lt_prog_compiler_pic='-Kconform_pic'
8595	lt_prog_compiler_static='-Bstatic'
8596      fi
8597      ;;
8598
8599    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8600      lt_prog_compiler_wl='-Wl,'
8601      lt_prog_compiler_pic='-KPIC'
8602      lt_prog_compiler_static='-Bstatic'
8603      ;;
8604
8605    unicos*)
8606      lt_prog_compiler_wl='-Wl,'
8607      lt_prog_compiler_can_build_shared=no
8608      ;;
8609
8610    uts4*)
8611      lt_prog_compiler_pic='-pic'
8612      lt_prog_compiler_static='-Bstatic'
8613      ;;
8614
8615    *)
8616      lt_prog_compiler_can_build_shared=no
8617      ;;
8618    esac
8619  fi
8620
8621case $host_os in
8622  # For platforms which do not support PIC, -DPIC is meaningless:
8623  *djgpp*)
8624    lt_prog_compiler_pic=
8625    ;;
8626  *)
8627    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8628    ;;
8629esac
8630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8631$as_echo "$lt_prog_compiler_pic" >&6; }
8632
8633
8634
8635
8636
8637
8638#
8639# Check to make sure the PIC flag actually works.
8640#
8641if test -n "$lt_prog_compiler_pic"; then
8642  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8643$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8644if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8645  $as_echo_n "(cached) " >&6
8646else
8647  lt_cv_prog_compiler_pic_works=no
8648   ac_outfile=conftest.$ac_objext
8649   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8650   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8651   # Insert the option either (1) after the last *FLAGS variable, or
8652   # (2) before a word containing "conftest.", or (3) at the end.
8653   # Note that $ac_compile itself does not contain backslashes and begins
8654   # with a dollar sign (not a hyphen), so the echo should work correctly.
8655   # The option is referenced via a variable to avoid confusing sed.
8656   lt_compile=`echo "$ac_compile" | $SED \
8657   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8658   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8659   -e 's:$: $lt_compiler_flag:'`
8660   (eval echo "\"\$as_me:8660: $lt_compile\"" >&5)
8661   (eval "$lt_compile" 2>conftest.err)
8662   ac_status=$?
8663   cat conftest.err >&5
8664   echo "$as_me:8664: \$? = $ac_status" >&5
8665   if (exit $ac_status) && test -s "$ac_outfile"; then
8666     # The compiler can only warn and ignore the option if not recognized
8667     # So say no if there are warnings other than the usual output.
8668     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8669     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8670     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8671       lt_cv_prog_compiler_pic_works=yes
8672     fi
8673   fi
8674   $RM conftest*
8675
8676fi
8677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8678$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8679
8680if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8681    case $lt_prog_compiler_pic in
8682     "" | " "*) ;;
8683     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8684     esac
8685else
8686    lt_prog_compiler_pic=
8687     lt_prog_compiler_can_build_shared=no
8688fi
8689
8690fi
8691
8692
8693
8694
8695
8696
8697#
8698# Check to make sure the static flag actually works.
8699#
8700wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8702$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8703if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8704  $as_echo_n "(cached) " >&6
8705else
8706  lt_cv_prog_compiler_static_works=no
8707   save_LDFLAGS="$LDFLAGS"
8708   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8709   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8710   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8711     # The linker can only warn and ignore the option if not recognized
8712     # So say no if there are warnings
8713     if test -s conftest.err; then
8714       # Append any errors to the config.log.
8715       cat conftest.err 1>&5
8716       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8717       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8718       if diff conftest.exp conftest.er2 >/dev/null; then
8719         lt_cv_prog_compiler_static_works=yes
8720       fi
8721     else
8722       lt_cv_prog_compiler_static_works=yes
8723     fi
8724   fi
8725   $RM -r conftest*
8726   LDFLAGS="$save_LDFLAGS"
8727
8728fi
8729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8730$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8731
8732if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8733    :
8734else
8735    lt_prog_compiler_static=
8736fi
8737
8738
8739
8740
8741
8742
8743
8744  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8745$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8746if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8747  $as_echo_n "(cached) " >&6
8748else
8749  lt_cv_prog_compiler_c_o=no
8750   $RM -r conftest 2>/dev/null
8751   mkdir conftest
8752   cd conftest
8753   mkdir out
8754   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8755
8756   lt_compiler_flag="-o out/conftest2.$ac_objext"
8757   # Insert the option either (1) after the last *FLAGS variable, or
8758   # (2) before a word containing "conftest.", or (3) at the end.
8759   # Note that $ac_compile itself does not contain backslashes and begins
8760   # with a dollar sign (not a hyphen), so the echo should work correctly.
8761   lt_compile=`echo "$ac_compile" | $SED \
8762   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8763   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8764   -e 's:$: $lt_compiler_flag:'`
8765   (eval echo "\"\$as_me:8765: $lt_compile\"" >&5)
8766   (eval "$lt_compile" 2>out/conftest.err)
8767   ac_status=$?
8768   cat out/conftest.err >&5
8769   echo "$as_me:8769: \$? = $ac_status" >&5
8770   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8771   then
8772     # The compiler can only warn and ignore the option if not recognized
8773     # So say no if there are warnings
8774     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8775     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8776     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8777       lt_cv_prog_compiler_c_o=yes
8778     fi
8779   fi
8780   chmod u+w . 2>&5
8781   $RM conftest*
8782   # SGI C++ compiler will create directory out/ii_files/ for
8783   # template instantiation
8784   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8785   $RM out/* && rmdir out
8786   cd ..
8787   $RM -r conftest
8788   $RM conftest*
8789
8790fi
8791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8792$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8793
8794
8795
8796
8797
8798
8799  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8800$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8801if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8802  $as_echo_n "(cached) " >&6
8803else
8804  lt_cv_prog_compiler_c_o=no
8805   $RM -r conftest 2>/dev/null
8806   mkdir conftest
8807   cd conftest
8808   mkdir out
8809   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8810
8811   lt_compiler_flag="-o out/conftest2.$ac_objext"
8812   # Insert the option either (1) after the last *FLAGS variable, or
8813   # (2) before a word containing "conftest.", or (3) at the end.
8814   # Note that $ac_compile itself does not contain backslashes and begins
8815   # with a dollar sign (not a hyphen), so the echo should work correctly.
8816   lt_compile=`echo "$ac_compile" | $SED \
8817   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8818   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8819   -e 's:$: $lt_compiler_flag:'`
8820   (eval echo "\"\$as_me:8820: $lt_compile\"" >&5)
8821   (eval "$lt_compile" 2>out/conftest.err)
8822   ac_status=$?
8823   cat out/conftest.err >&5
8824   echo "$as_me:8824: \$? = $ac_status" >&5
8825   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8826   then
8827     # The compiler can only warn and ignore the option if not recognized
8828     # So say no if there are warnings
8829     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8830     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8831     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8832       lt_cv_prog_compiler_c_o=yes
8833     fi
8834   fi
8835   chmod u+w . 2>&5
8836   $RM conftest*
8837   # SGI C++ compiler will create directory out/ii_files/ for
8838   # template instantiation
8839   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8840   $RM out/* && rmdir out
8841   cd ..
8842   $RM -r conftest
8843   $RM conftest*
8844
8845fi
8846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8847$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8848
8849
8850
8851
8852hard_links="nottested"
8853if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8854  # do not overwrite the value of need_locks provided by the user
8855  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8856$as_echo_n "checking if we can lock with hard links... " >&6; }
8857  hard_links=yes
8858  $RM conftest*
8859  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8860  touch conftest.a
8861  ln conftest.a conftest.b 2>&5 || hard_links=no
8862  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8864$as_echo "$hard_links" >&6; }
8865  if test "$hard_links" = no; then
8866    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8867$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8868    need_locks=warn
8869  fi
8870else
8871  need_locks=no
8872fi
8873
8874
8875
8876
8877
8878
8879  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8880$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8881
8882  runpath_var=
8883  allow_undefined_flag=
8884  always_export_symbols=no
8885  archive_cmds=
8886  archive_expsym_cmds=
8887  compiler_needs_object=no
8888  enable_shared_with_static_runtimes=no
8889  export_dynamic_flag_spec=
8890  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8891  hardcode_automatic=no
8892  hardcode_direct=no
8893  hardcode_direct_absolute=no
8894  hardcode_libdir_flag_spec=
8895  hardcode_libdir_flag_spec_ld=
8896  hardcode_libdir_separator=
8897  hardcode_minus_L=no
8898  hardcode_shlibpath_var=unsupported
8899  inherit_rpath=no
8900  link_all_deplibs=unknown
8901  module_cmds=
8902  module_expsym_cmds=
8903  old_archive_from_new_cmds=
8904  old_archive_from_expsyms_cmds=
8905  thread_safe_flag_spec=
8906  whole_archive_flag_spec=
8907  # include_expsyms should be a list of space-separated symbols to be *always*
8908  # included in the symbol list
8909  include_expsyms=
8910  # exclude_expsyms can be an extended regexp of symbols to exclude
8911  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8912  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8913  # as well as any symbol that contains `d'.
8914  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8915  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8916  # platforms (ab)use it in PIC code, but their linkers get confused if
8917  # the symbol is explicitly referenced.  Since portable code cannot
8918  # rely on this symbol name, it's probably fine to never include it in
8919  # preloaded symbol tables.
8920  # Exclude shared library initialization/finalization symbols.
8921  extract_expsyms_cmds=
8922
8923  case $host_os in
8924  cygwin* | mingw* | pw32* | cegcc*)
8925    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8926    # When not using gcc, we currently assume that we are using
8927    # Microsoft Visual C++.
8928    if test "$GCC" != yes; then
8929      with_gnu_ld=no
8930    fi
8931    ;;
8932  interix*)
8933    # we just hope/assume this is gcc and not c89 (= MSVC++)
8934    with_gnu_ld=yes
8935    ;;
8936  openbsd*)
8937    with_gnu_ld=no
8938    ;;
8939  esac
8940
8941  ld_shlibs=yes
8942  if test "$with_gnu_ld" = yes; then
8943    # If archive_cmds runs LD, not CC, wlarc should be empty
8944    wlarc='${wl}'
8945
8946    # Set some defaults for GNU ld with shared library support. These
8947    # are reset later if shared libraries are not supported. Putting them
8948    # here allows them to be overridden if necessary.
8949    runpath_var=LD_RUN_PATH
8950    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8951    export_dynamic_flag_spec='${wl}--export-dynamic'
8952    # ancient GNU ld didn't support --whole-archive et. al.
8953    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8954      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8955    else
8956      whole_archive_flag_spec=
8957    fi
8958    supports_anon_versioning=no
8959    case `$LD -v 2>&1` in
8960      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8961      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8962      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8963      *\ 2.11.*) ;; # other 2.11 versions
8964      *) supports_anon_versioning=yes ;;
8965    esac
8966
8967    # See if GNU ld supports shared libraries.
8968    case $host_os in
8969    aix[3-9]*)
8970      # On AIX/PPC, the GNU linker is very broken
8971      if test "$host_cpu" != ia64; then
8972	ld_shlibs=no
8973	cat <<_LT_EOF 1>&2
8974
8975*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8976*** to be unable to reliably create shared libraries on AIX.
8977*** Therefore, libtool is disabling shared libraries support.  If you
8978*** really care for shared libraries, you may want to modify your PATH
8979*** so that a non-GNU linker is found, and then restart.
8980
8981_LT_EOF
8982      fi
8983      ;;
8984
8985    amigaos*)
8986      case $host_cpu in
8987      powerpc)
8988            # see comment about AmigaOS4 .so support
8989            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8990            archive_expsym_cmds=''
8991        ;;
8992      m68k)
8993            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)'
8994            hardcode_libdir_flag_spec='-L$libdir'
8995            hardcode_minus_L=yes
8996        ;;
8997      esac
8998      ;;
8999
9000    beos*)
9001      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9002	allow_undefined_flag=unsupported
9003	# Joseph Beckenbach <[email protected]> says some releases of gcc
9004	# support --undefined.  This deserves some investigation.  FIXME
9005	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9006      else
9007	ld_shlibs=no
9008      fi
9009      ;;
9010
9011    cygwin* | mingw* | pw32* | cegcc*)
9012      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9013      # as there is no search path for DLLs.
9014      hardcode_libdir_flag_spec='-L$libdir'
9015      allow_undefined_flag=unsupported
9016      always_export_symbols=no
9017      enable_shared_with_static_runtimes=yes
9018      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9019
9020      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9021        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9022	# If the export-symbols file already is a .def file (1st line
9023	# is EXPORTS), use it as is; otherwise, prepend...
9024	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9025	  cp $export_symbols $output_objdir/$soname.def;
9026	else
9027	  echo EXPORTS > $output_objdir/$soname.def;
9028	  cat $export_symbols >> $output_objdir/$soname.def;
9029	fi~
9030	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9031      else
9032	ld_shlibs=no
9033      fi
9034      ;;
9035
9036    interix[3-9]*)
9037      hardcode_direct=no
9038      hardcode_shlibpath_var=no
9039      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9040      export_dynamic_flag_spec='${wl}-E'
9041      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9042      # Instead, shared libraries are loaded at an image base (0x10000000 by
9043      # default) and relocated if they conflict, which is a slow very memory
9044      # consuming and fragmenting process.  To avoid this, we pick a random,
9045      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9046      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9047      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9048      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'
9049      ;;
9050
9051    gnu* | linux* | tpf* | k*bsd*-gnu)
9052      tmp_diet=no
9053      if test "$host_os" = linux-dietlibc; then
9054	case $cc_basename in
9055	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9056	esac
9057      fi
9058      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9059	 && test "$tmp_diet" = no
9060      then
9061	tmp_addflag=
9062	tmp_sharedflag='-shared'
9063	case $cc_basename,$host_cpu in
9064        pgcc*)				# Portland Group C compiler
9065	  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'
9066	  tmp_addflag=' $pic_flag'
9067	  ;;
9068	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
9069	  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'
9070	  tmp_addflag=' $pic_flag -Mnomain' ;;
9071	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9072	  tmp_addflag=' -i_dynamic' ;;
9073	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9074	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9075	ifc* | ifort*)			# Intel Fortran compiler
9076	  tmp_addflag=' -nofor_main' ;;
9077	lf95*)				# Lahey Fortran 8.1
9078	  whole_archive_flag_spec=
9079	  tmp_sharedflag='--shared' ;;
9080	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
9081	  tmp_sharedflag='-qmkshrobj'
9082	  tmp_addflag= ;;
9083	esac
9084	case `$CC -V 2>&1 | sed 5q` in
9085	*Sun\ C*)			# Sun C 5.9
9086	  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'
9087	  compiler_needs_object=yes
9088	  tmp_sharedflag='-G' ;;
9089	*Sun\ F*)			# Sun Fortran 8.3
9090	  tmp_sharedflag='-G' ;;
9091	esac
9092	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9093
9094        if test "x$supports_anon_versioning" = xyes; then
9095          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9096	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9097	    echo "local: *; };" >> $output_objdir/$libname.ver~
9098	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9099        fi
9100
9101	case $cc_basename in
9102	xlf*)
9103	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9104	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9105	  hardcode_libdir_flag_spec=
9106	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9107	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9108	  if test "x$supports_anon_versioning" = xyes; then
9109	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9110	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9111	      echo "local: *; };" >> $output_objdir/$libname.ver~
9112	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9113	  fi
9114	  ;;
9115	esac
9116      else
9117        ld_shlibs=no
9118      fi
9119      ;;
9120
9121    netbsd*)
9122      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9123	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9124	wlarc=
9125      else
9126	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9127	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9128      fi
9129      ;;
9130
9131    solaris*)
9132      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9133	ld_shlibs=no
9134	cat <<_LT_EOF 1>&2
9135
9136*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9137*** create shared libraries on Solaris systems.  Therefore, libtool
9138*** is disabling shared libraries support.  We urge you to upgrade GNU
9139*** binutils to release 2.9.1 or newer.  Another option is to modify
9140*** your PATH or compiler configuration so that the native linker is
9141*** used, and then restart.
9142
9143_LT_EOF
9144      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9145	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9146	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9147      else
9148	ld_shlibs=no
9149      fi
9150      ;;
9151
9152    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9153      case `$LD -v 2>&1` in
9154        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9155	ld_shlibs=no
9156	cat <<_LT_EOF 1>&2
9157
9158*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9159*** reliably create shared libraries on SCO systems.  Therefore, libtool
9160*** is disabling shared libraries support.  We urge you to upgrade GNU
9161*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9162*** your PATH or compiler configuration so that the native linker is
9163*** used, and then restart.
9164
9165_LT_EOF
9166	;;
9167	*)
9168	  # For security reasons, it is highly recommended that you always
9169	  # use absolute paths for naming shared libraries, and exclude the
9170	  # DT_RUNPATH tag from executables and libraries.  But doing so
9171	  # requires that you compile everything twice, which is a pain.
9172	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9173	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9174	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9175	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9176	  else
9177	    ld_shlibs=no
9178	  fi
9179	;;
9180      esac
9181      ;;
9182
9183    sunos4*)
9184      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9185      wlarc=
9186      hardcode_direct=yes
9187      hardcode_shlibpath_var=no
9188      ;;
9189
9190    *)
9191      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9192	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9193	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9194      else
9195	ld_shlibs=no
9196      fi
9197      ;;
9198    esac
9199
9200    if test "$ld_shlibs" = no; then
9201      runpath_var=
9202      hardcode_libdir_flag_spec=
9203      export_dynamic_flag_spec=
9204      whole_archive_flag_spec=
9205    fi
9206  else
9207    # PORTME fill in a description of your system's linker (not GNU ld)
9208    case $host_os in
9209    aix3*)
9210      allow_undefined_flag=unsupported
9211      always_export_symbols=yes
9212      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'
9213      # Note: this linker hardcodes the directories in LIBPATH if there
9214      # are no directories specified by -L.
9215      hardcode_minus_L=yes
9216      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9217	# Neither direct hardcoding nor static linking is supported with a
9218	# broken collect2.
9219	hardcode_direct=unsupported
9220      fi
9221      ;;
9222
9223    aix[4-9]*)
9224      if test "$host_cpu" = ia64; then
9225	# On IA64, the linker does run time linking by default, so we don't
9226	# have to do anything special.
9227	aix_use_runtimelinking=no
9228	exp_sym_flag='-Bexport'
9229	no_entry_flag=""
9230      else
9231	# If we're using GNU nm, then we don't want the "-C" option.
9232	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9233	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9234	  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'
9235	else
9236	  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'
9237	fi
9238	aix_use_runtimelinking=no
9239
9240	# Test if we are trying to use run time linking or normal
9241	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9242	# need to do runtime linking.
9243	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9244	  for ld_flag in $LDFLAGS; do
9245	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9246	    aix_use_runtimelinking=yes
9247	    break
9248	  fi
9249	  done
9250	  ;;
9251	esac
9252
9253	exp_sym_flag='-bexport'
9254	no_entry_flag='-bnoentry'
9255      fi
9256
9257      # When large executables or shared objects are built, AIX ld can
9258      # have problems creating the table of contents.  If linking a library
9259      # or program results in "error TOC overflow" add -mminimal-toc to
9260      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9261      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9262
9263      archive_cmds=''
9264      hardcode_direct=yes
9265      hardcode_direct_absolute=yes
9266      hardcode_libdir_separator=':'
9267      link_all_deplibs=yes
9268      file_list_spec='${wl}-f,'
9269
9270      if test "$GCC" = yes; then
9271	case $host_os in aix4.[012]|aix4.[012].*)
9272	# We only want to do this on AIX 4.2 and lower, the check
9273	# below for broken collect2 doesn't work under 4.3+
9274	  collect2name=`${CC} -print-prog-name=collect2`
9275	  if test -f "$collect2name" &&
9276	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9277	  then
9278	  # We have reworked collect2
9279	  :
9280	  else
9281	  # We have old collect2
9282	  hardcode_direct=unsupported
9283	  # It fails to find uninstalled libraries when the uninstalled
9284	  # path is not listed in the libpath.  Setting hardcode_minus_L
9285	  # to unsupported forces relinking
9286	  hardcode_minus_L=yes
9287	  hardcode_libdir_flag_spec='-L$libdir'
9288	  hardcode_libdir_separator=
9289	  fi
9290	  ;;
9291	esac
9292	shared_flag='-shared'
9293	if test "$aix_use_runtimelinking" = yes; then
9294	  shared_flag="$shared_flag "'${wl}-G'
9295	fi
9296      else
9297	# not using gcc
9298	if test "$host_cpu" = ia64; then
9299	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9300	# chokes on -Wl,-G. The following line is correct:
9301	  shared_flag='-G'
9302	else
9303	  if test "$aix_use_runtimelinking" = yes; then
9304	    shared_flag='${wl}-G'
9305	  else
9306	    shared_flag='${wl}-bM:SRE'
9307	  fi
9308	fi
9309      fi
9310
9311      export_dynamic_flag_spec='${wl}-bexpall'
9312      # It seems that -bexpall does not export symbols beginning with
9313      # underscore (_), so it is better to generate a list of symbols to export.
9314      always_export_symbols=yes
9315      if test "$aix_use_runtimelinking" = yes; then
9316	# Warning - without using the other runtime loading flags (-brtl),
9317	# -berok will link without error, but may produce a broken library.
9318	allow_undefined_flag='-berok'
9319        # Determine the default libpath from the value encoded in an
9320        # empty executable.
9321        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9322/* end confdefs.h.  */
9323
9324int
9325main ()
9326{
9327
9328  ;
9329  return 0;
9330}
9331_ACEOF
9332if ac_fn_c_try_link "$LINENO"; then :
9333
9334lt_aix_libpath_sed='
9335    /Import File Strings/,/^$/ {
9336	/^0/ {
9337	    s/^0  *\(.*\)$/\1/
9338	    p
9339	}
9340    }'
9341aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9342# Check for a 64-bit object if we didn't find anything.
9343if test -z "$aix_libpath"; then
9344  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9345fi
9346fi
9347rm -f core conftest.err conftest.$ac_objext \
9348    conftest$ac_exeext conftest.$ac_ext
9349if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9350
9351        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9352        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"
9353      else
9354	if test "$host_cpu" = ia64; then
9355	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9356	  allow_undefined_flag="-z nodefs"
9357	  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"
9358	else
9359	 # Determine the default libpath from the value encoded in an
9360	 # empty executable.
9361	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9362/* end confdefs.h.  */
9363
9364int
9365main ()
9366{
9367
9368  ;
9369  return 0;
9370}
9371_ACEOF
9372if ac_fn_c_try_link "$LINENO"; then :
9373
9374lt_aix_libpath_sed='
9375    /Import File Strings/,/^$/ {
9376	/^0/ {
9377	    s/^0  *\(.*\)$/\1/
9378	    p
9379	}
9380    }'
9381aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9382# Check for a 64-bit object if we didn't find anything.
9383if test -z "$aix_libpath"; then
9384  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9385fi
9386fi
9387rm -f core conftest.err conftest.$ac_objext \
9388    conftest$ac_exeext conftest.$ac_ext
9389if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9390
9391	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9392	  # Warning - without using the other run time loading flags,
9393	  # -berok will link without error, but may produce a broken library.
9394	  no_undefined_flag=' ${wl}-bernotok'
9395	  allow_undefined_flag=' ${wl}-berok'
9396	  # Exported symbols can be pulled into shared objects from archives
9397	  whole_archive_flag_spec='$convenience'
9398	  archive_cmds_need_lc=yes
9399	  # This is similar to how AIX traditionally builds its shared libraries.
9400	  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'
9401	fi
9402      fi
9403      ;;
9404
9405    amigaos*)
9406      case $host_cpu in
9407      powerpc)
9408            # see comment about AmigaOS4 .so support
9409            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9410            archive_expsym_cmds=''
9411        ;;
9412      m68k)
9413            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)'
9414            hardcode_libdir_flag_spec='-L$libdir'
9415            hardcode_minus_L=yes
9416        ;;
9417      esac
9418      ;;
9419
9420    bsdi[45]*)
9421      export_dynamic_flag_spec=-rdynamic
9422      ;;
9423
9424    cygwin* | mingw* | pw32* | cegcc*)
9425      # When not using gcc, we currently assume that we are using
9426      # Microsoft Visual C++.
9427      # hardcode_libdir_flag_spec is actually meaningless, as there is
9428      # no search path for DLLs.
9429      hardcode_libdir_flag_spec=' '
9430      allow_undefined_flag=unsupported
9431      # Tell ltmain to make .lib files, not .a files.
9432      libext=lib
9433      # Tell ltmain to make .dll files, not .so files.
9434      shrext_cmds=".dll"
9435      # FIXME: Setting linknames here is a bad hack.
9436      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9437      # The linker will automatically build a .lib file if we build a DLL.
9438      old_archive_from_new_cmds='true'
9439      # FIXME: Should let the user specify the lib program.
9440      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9441      fix_srcfile_path='`cygpath -w "$srcfile"`'
9442      enable_shared_with_static_runtimes=yes
9443      ;;
9444
9445    darwin* | rhapsody*)
9446
9447
9448  archive_cmds_need_lc=no
9449  hardcode_direct=no
9450  hardcode_automatic=yes
9451  hardcode_shlibpath_var=unsupported
9452  whole_archive_flag_spec=''
9453  link_all_deplibs=yes
9454  allow_undefined_flag="$_lt_dar_allow_undefined"
9455  case $cc_basename in
9456     ifort*) _lt_dar_can_shared=yes ;;
9457     *) _lt_dar_can_shared=$GCC ;;
9458  esac
9459  if test "$_lt_dar_can_shared" = "yes"; then
9460    output_verbose_link_cmd=echo
9461    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9462    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9463    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}"
9464    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}"
9465
9466  else
9467  ld_shlibs=no
9468  fi
9469
9470      ;;
9471
9472    dgux*)
9473      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9474      hardcode_libdir_flag_spec='-L$libdir'
9475      hardcode_shlibpath_var=no
9476      ;;
9477
9478    freebsd1*)
9479      ld_shlibs=no
9480      ;;
9481
9482    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9483    # support.  Future versions do this automatically, but an explicit c++rt0.o
9484    # does not break anything, and helps significantly (at the cost of a little
9485    # extra space).
9486    freebsd2.2*)
9487      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9488      hardcode_libdir_flag_spec='-R$libdir'
9489      hardcode_direct=yes
9490      hardcode_shlibpath_var=no
9491      ;;
9492
9493    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9494    freebsd2*)
9495      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9496      hardcode_direct=yes
9497      hardcode_minus_L=yes
9498      hardcode_shlibpath_var=no
9499      ;;
9500
9501    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9502    freebsd* | dragonfly*)
9503      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9504      hardcode_libdir_flag_spec='-R$libdir'
9505      hardcode_direct=yes
9506      hardcode_shlibpath_var=no
9507      ;;
9508
9509    hpux9*)
9510      if test "$GCC" = yes; then
9511	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'
9512      else
9513	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'
9514      fi
9515      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9516      hardcode_libdir_separator=:
9517      hardcode_direct=yes
9518
9519      # hardcode_minus_L: Not really in the search PATH,
9520      # but as the default location of the library.
9521      hardcode_minus_L=yes
9522      export_dynamic_flag_spec='${wl}-E'
9523      ;;
9524
9525    hpux10*)
9526      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9527	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9528      else
9529	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9530      fi
9531      if test "$with_gnu_ld" = no; then
9532	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9533	hardcode_libdir_flag_spec_ld='+b $libdir'
9534	hardcode_libdir_separator=:
9535	hardcode_direct=yes
9536	hardcode_direct_absolute=yes
9537	export_dynamic_flag_spec='${wl}-E'
9538	# hardcode_minus_L: Not really in the search PATH,
9539	# but as the default location of the library.
9540	hardcode_minus_L=yes
9541      fi
9542      ;;
9543
9544    hpux11*)
9545      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9546	case $host_cpu in
9547	hppa*64*)
9548	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9549	  ;;
9550	ia64*)
9551	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9552	  ;;
9553	*)
9554	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9555	  ;;
9556	esac
9557      else
9558	case $host_cpu in
9559	hppa*64*)
9560	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9561	  ;;
9562	ia64*)
9563	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9564	  ;;
9565	*)
9566	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9567	  ;;
9568	esac
9569      fi
9570      if test "$with_gnu_ld" = no; then
9571	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9572	hardcode_libdir_separator=:
9573
9574	case $host_cpu in
9575	hppa*64*|ia64*)
9576	  hardcode_direct=no
9577	  hardcode_shlibpath_var=no
9578	  ;;
9579	*)
9580	  hardcode_direct=yes
9581	  hardcode_direct_absolute=yes
9582	  export_dynamic_flag_spec='${wl}-E'
9583
9584	  # hardcode_minus_L: Not really in the search PATH,
9585	  # but as the default location of the library.
9586	  hardcode_minus_L=yes
9587	  ;;
9588	esac
9589      fi
9590      ;;
9591
9592    irix5* | irix6* | nonstopux*)
9593      if test "$GCC" = yes; then
9594	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'
9595	# Try to use the -exported_symbol ld option, if it does not
9596	# work, assume that -exports_file does not work either and
9597	# implicitly export all symbols.
9598        save_LDFLAGS="$LDFLAGS"
9599        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9600        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9601/* end confdefs.h.  */
9602int foo(void) {}
9603_ACEOF
9604if ac_fn_c_try_link "$LINENO"; then :
9605  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'
9606
9607fi
9608rm -f core conftest.err conftest.$ac_objext \
9609    conftest$ac_exeext conftest.$ac_ext
9610        LDFLAGS="$save_LDFLAGS"
9611      else
9612	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'
9613	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'
9614      fi
9615      archive_cmds_need_lc='no'
9616      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9617      hardcode_libdir_separator=:
9618      inherit_rpath=yes
9619      link_all_deplibs=yes
9620      ;;
9621
9622    netbsd*)
9623      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9624	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9625      else
9626	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9627      fi
9628      hardcode_libdir_flag_spec='-R$libdir'
9629      hardcode_direct=yes
9630      hardcode_shlibpath_var=no
9631      ;;
9632
9633    newsos6)
9634      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9635      hardcode_direct=yes
9636      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9637      hardcode_libdir_separator=:
9638      hardcode_shlibpath_var=no
9639      ;;
9640
9641    *nto* | *qnx*)
9642      ;;
9643
9644    openbsd*)
9645      if test -f /usr/libexec/ld.so; then
9646	hardcode_direct=yes
9647	hardcode_shlibpath_var=no
9648	hardcode_direct_absolute=yes
9649	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9650	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9651	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9652	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9653	  export_dynamic_flag_spec='${wl}-E'
9654	else
9655	  case $host_os in
9656	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9657	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9658	     hardcode_libdir_flag_spec='-R$libdir'
9659	     ;;
9660	   *)
9661	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9662	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9663	     ;;
9664	  esac
9665	fi
9666      else
9667	ld_shlibs=no
9668      fi
9669      ;;
9670
9671    os2*)
9672      hardcode_libdir_flag_spec='-L$libdir'
9673      hardcode_minus_L=yes
9674      allow_undefined_flag=unsupported
9675      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'
9676      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9677      ;;
9678
9679    osf3*)
9680      if test "$GCC" = yes; then
9681	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9682	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'
9683      else
9684	allow_undefined_flag=' -expect_unresolved \*'
9685	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'
9686      fi
9687      archive_cmds_need_lc='no'
9688      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9689      hardcode_libdir_separator=:
9690      ;;
9691
9692    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9693      if test "$GCC" = yes; then
9694	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9695	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'
9696	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9697      else
9698	allow_undefined_flag=' -expect_unresolved \*'
9699	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'
9700	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~
9701	$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'
9702
9703	# Both c and cxx compiler support -rpath directly
9704	hardcode_libdir_flag_spec='-rpath $libdir'
9705      fi
9706      archive_cmds_need_lc='no'
9707      hardcode_libdir_separator=:
9708      ;;
9709
9710    solaris*)
9711      no_undefined_flag=' -z defs'
9712      if test "$GCC" = yes; then
9713	wlarc='${wl}'
9714	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9715	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9716	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9717      else
9718	case `$CC -V 2>&1` in
9719	*"Compilers 5.0"*)
9720	  wlarc=''
9721	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9722	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9723	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9724	  ;;
9725	*)
9726	  wlarc='${wl}'
9727	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9728	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9729	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9730	  ;;
9731	esac
9732      fi
9733      hardcode_libdir_flag_spec='-R$libdir'
9734      hardcode_shlibpath_var=no
9735      case $host_os in
9736      solaris2.[0-5] | solaris2.[0-5].*) ;;
9737      *)
9738	# The compiler driver will combine and reorder linker options,
9739	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9740	# but is careful enough not to reorder.
9741	# Supported since Solaris 2.6 (maybe 2.5.1?)
9742	if test "$GCC" = yes; then
9743	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9744	else
9745	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9746	fi
9747	;;
9748      esac
9749      link_all_deplibs=yes
9750      ;;
9751
9752    sunos4*)
9753      if test "x$host_vendor" = xsequent; then
9754	# Use $CC to link under sequent, because it throws in some extra .o
9755	# files that make .init and .fini sections work.
9756	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9757      else
9758	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9759      fi
9760      hardcode_libdir_flag_spec='-L$libdir'
9761      hardcode_direct=yes
9762      hardcode_minus_L=yes
9763      hardcode_shlibpath_var=no
9764      ;;
9765
9766    sysv4)
9767      case $host_vendor in
9768	sni)
9769	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9770	  hardcode_direct=yes # is this really true???
9771	;;
9772	siemens)
9773	  ## LD is ld it makes a PLAMLIB
9774	  ## CC just makes a GrossModule.
9775	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9776	  reload_cmds='$CC -r -o $output$reload_objs'
9777	  hardcode_direct=no
9778        ;;
9779	motorola)
9780	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9781	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9782	;;
9783      esac
9784      runpath_var='LD_RUN_PATH'
9785      hardcode_shlibpath_var=no
9786      ;;
9787
9788    sysv4.3*)
9789      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9790      hardcode_shlibpath_var=no
9791      export_dynamic_flag_spec='-Bexport'
9792      ;;
9793
9794    sysv4*MP*)
9795      if test -d /usr/nec; then
9796	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9797	hardcode_shlibpath_var=no
9798	runpath_var=LD_RUN_PATH
9799	hardcode_runpath_var=yes
9800	ld_shlibs=yes
9801      fi
9802      ;;
9803
9804    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9805      no_undefined_flag='${wl}-z,text'
9806      archive_cmds_need_lc=no
9807      hardcode_shlibpath_var=no
9808      runpath_var='LD_RUN_PATH'
9809
9810      if test "$GCC" = yes; then
9811	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9812	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9813      else
9814	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9815	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9816      fi
9817      ;;
9818
9819    sysv5* | sco3.2v5* | sco5v6*)
9820      # Note: We can NOT use -z defs as we might desire, because we do not
9821      # link with -lc, and that would cause any symbols used from libc to
9822      # always be unresolved, which means just about no library would
9823      # ever link correctly.  If we're not using GNU ld we use -z text
9824      # though, which does catch some bad symbols but isn't as heavy-handed
9825      # as -z defs.
9826      no_undefined_flag='${wl}-z,text'
9827      allow_undefined_flag='${wl}-z,nodefs'
9828      archive_cmds_need_lc=no
9829      hardcode_shlibpath_var=no
9830      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9831      hardcode_libdir_separator=':'
9832      link_all_deplibs=yes
9833      export_dynamic_flag_spec='${wl}-Bexport'
9834      runpath_var='LD_RUN_PATH'
9835
9836      if test "$GCC" = yes; then
9837	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9838	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9839      else
9840	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9841	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9842      fi
9843      ;;
9844
9845    uts4*)
9846      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9847      hardcode_libdir_flag_spec='-L$libdir'
9848      hardcode_shlibpath_var=no
9849      ;;
9850
9851    *)
9852      ld_shlibs=no
9853      ;;
9854    esac
9855
9856    if test x$host_vendor = xsni; then
9857      case $host in
9858      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9859	export_dynamic_flag_spec='${wl}-Blargedynsym'
9860	;;
9861      esac
9862    fi
9863  fi
9864
9865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9866$as_echo "$ld_shlibs" >&6; }
9867test "$ld_shlibs" = no && can_build_shared=no
9868
9869with_gnu_ld=$with_gnu_ld
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885#
9886# Do we need to explicitly link libc?
9887#
9888case "x$archive_cmds_need_lc" in
9889x|xyes)
9890  # Assume -lc should be added
9891  archive_cmds_need_lc=yes
9892
9893  if test "$enable_shared" = yes && test "$GCC" = yes; then
9894    case $archive_cmds in
9895    *'~'*)
9896      # FIXME: we may have to deal with multi-command sequences.
9897      ;;
9898    '$CC '*)
9899      # Test whether the compiler implicitly links with -lc since on some
9900      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9901      # to ld, don't add -lc before -lgcc.
9902      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9903$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9904      $RM conftest*
9905      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9906
9907      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9908  (eval $ac_compile) 2>&5
9909  ac_status=$?
9910  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9911  test $ac_status = 0; } 2>conftest.err; then
9912        soname=conftest
9913        lib=conftest
9914        libobjs=conftest.$ac_objext
9915        deplibs=
9916        wl=$lt_prog_compiler_wl
9917	pic_flag=$lt_prog_compiler_pic
9918        compiler_flags=-v
9919        linker_flags=-v
9920        verstring=
9921        output_objdir=.
9922        libname=conftest
9923        lt_save_allow_undefined_flag=$allow_undefined_flag
9924        allow_undefined_flag=
9925        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9926  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9927  ac_status=$?
9928  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9929  test $ac_status = 0; }
9930        then
9931	  archive_cmds_need_lc=no
9932        else
9933	  archive_cmds_need_lc=yes
9934        fi
9935        allow_undefined_flag=$lt_save_allow_undefined_flag
9936      else
9937        cat conftest.err 1>&5
9938      fi
9939      $RM conftest*
9940      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9941$as_echo "$archive_cmds_need_lc" >&6; }
9942      ;;
9943    esac
9944  fi
9945  ;;
9946esac
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10105$as_echo_n "checking dynamic linker characteristics... " >&6; }
10106
10107if test "$GCC" = yes; then
10108  case $host_os in
10109    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10110    *) lt_awk_arg="/^libraries:/" ;;
10111  esac
10112  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10113  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10114    # if the path contains ";" then we assume it to be the separator
10115    # otherwise default to the standard path separator (i.e. ":") - it is
10116    # assumed that no part of a normal pathname contains ";" but that should
10117    # okay in the real world where ";" in dirpaths is itself problematic.
10118    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10119  else
10120    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10121  fi
10122  # Ok, now we have the path, separated by spaces, we can step through it
10123  # and add multilib dir if necessary.
10124  lt_tmp_lt_search_path_spec=
10125  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10126  for lt_sys_path in $lt_search_path_spec; do
10127    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10128      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10129    else
10130      test -d "$lt_sys_path" && \
10131	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10132    fi
10133  done
10134  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10135BEGIN {RS=" "; FS="/|\n";} {
10136  lt_foo="";
10137  lt_count=0;
10138  for (lt_i = NF; lt_i > 0; lt_i--) {
10139    if ($lt_i != "" && $lt_i != ".") {
10140      if ($lt_i == "..") {
10141        lt_count++;
10142      } else {
10143        if (lt_count == 0) {
10144          lt_foo="/" $lt_i lt_foo;
10145        } else {
10146          lt_count--;
10147        }
10148      }
10149    }
10150  }
10151  if (lt_foo != "") { lt_freq[lt_foo]++; }
10152  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10153}'`
10154  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10155else
10156  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10157fi
10158library_names_spec=
10159libname_spec='lib$name'
10160soname_spec=
10161shrext_cmds=".so"
10162postinstall_cmds=
10163postuninstall_cmds=
10164finish_cmds=
10165finish_eval=
10166shlibpath_var=
10167shlibpath_overrides_runpath=unknown
10168version_type=none
10169dynamic_linker="$host_os ld.so"
10170sys_lib_dlsearch_path_spec="/lib /usr/lib"
10171need_lib_prefix=unknown
10172hardcode_into_libs=no
10173
10174# when you set need_version to no, make sure it does not cause -set_version
10175# flags to be left without arguments
10176need_version=unknown
10177
10178case $host_os in
10179aix3*)
10180  version_type=linux
10181  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10182  shlibpath_var=LIBPATH
10183
10184  # AIX 3 has no versioning support, so we append a major version to the name.
10185  soname_spec='${libname}${release}${shared_ext}$major'
10186  ;;
10187
10188aix[4-9]*)
10189  version_type=linux
10190  need_lib_prefix=no
10191  need_version=no
10192  hardcode_into_libs=yes
10193  if test "$host_cpu" = ia64; then
10194    # AIX 5 supports IA64
10195    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10196    shlibpath_var=LD_LIBRARY_PATH
10197  else
10198    # With GCC up to 2.95.x, collect2 would create an import file
10199    # for dependence libraries.  The import file would start with
10200    # the line `#! .'.  This would cause the generated library to
10201    # depend on `.', always an invalid library.  This was fixed in
10202    # development snapshots of GCC prior to 3.0.
10203    case $host_os in
10204      aix4 | aix4.[01] | aix4.[01].*)
10205      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10206	   echo ' yes '
10207	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10208	:
10209      else
10210	can_build_shared=no
10211      fi
10212      ;;
10213    esac
10214    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10215    # soname into executable. Probably we can add versioning support to
10216    # collect2, so additional links can be useful in future.
10217    if test "$aix_use_runtimelinking" = yes; then
10218      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10219      # instead of lib<name>.a to let people know that these are not
10220      # typical AIX shared libraries.
10221      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10222    else
10223      # We preserve .a as extension for shared libraries through AIX4.2
10224      # and later when we are not doing run time linking.
10225      library_names_spec='${libname}${release}.a $libname.a'
10226      soname_spec='${libname}${release}${shared_ext}$major'
10227    fi
10228    shlibpath_var=LIBPATH
10229  fi
10230  ;;
10231
10232amigaos*)
10233  case $host_cpu in
10234  powerpc)
10235    # Since July 2007 AmigaOS4 officially supports .so libraries.
10236    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10237    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10238    ;;
10239  m68k)
10240    library_names_spec='$libname.ixlibrary $libname.a'
10241    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10242    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'
10243    ;;
10244  esac
10245  ;;
10246
10247beos*)
10248  library_names_spec='${libname}${shared_ext}'
10249  dynamic_linker="$host_os ld.so"
10250  shlibpath_var=LIBRARY_PATH
10251  ;;
10252
10253bsdi[45]*)
10254  version_type=linux
10255  need_version=no
10256  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10257  soname_spec='${libname}${release}${shared_ext}$major'
10258  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10259  shlibpath_var=LD_LIBRARY_PATH
10260  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10261  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10262  # the default ld.so.conf also contains /usr/contrib/lib and
10263  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10264  # libtool to hard-code these into programs
10265  ;;
10266
10267cygwin* | mingw* | pw32* | cegcc*)
10268  version_type=windows
10269  shrext_cmds=".dll"
10270  need_version=no
10271  need_lib_prefix=no
10272
10273  case $GCC,$host_os in
10274  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10275    library_names_spec='$libname.dll.a'
10276    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10277    postinstall_cmds='base_file=`basename \${file}`~
10278      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10279      dldir=$destdir/`dirname \$dlpath`~
10280      test -d \$dldir || mkdir -p \$dldir~
10281      $install_prog $dir/$dlname \$dldir/$dlname~
10282      chmod a+x \$dldir/$dlname~
10283      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10284        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10285      fi'
10286    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10287      dlpath=$dir/\$dldll~
10288       $RM \$dlpath'
10289    shlibpath_overrides_runpath=yes
10290
10291    case $host_os in
10292    cygwin*)
10293      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10294      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10295      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10296      ;;
10297    mingw* | cegcc*)
10298      # MinGW DLLs use traditional 'lib' prefix
10299      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10300      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10301      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10302        # It is most probably a Windows format PATH printed by
10303        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10304        # path with ; separators, and with drive letters. We can handle the
10305        # drive letters (cygwin fileutils understands them), so leave them,
10306        # especially as we might pass files found there to a mingw objdump,
10307        # which wouldn't understand a cygwinified path. Ahh.
10308        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10309      else
10310        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10311      fi
10312      ;;
10313    pw32*)
10314      # pw32 DLLs use 'pw' prefix rather than 'lib'
10315      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10316      ;;
10317    esac
10318    ;;
10319
10320  *)
10321    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10322    ;;
10323  esac
10324  dynamic_linker='Win32 ld.exe'
10325  # FIXME: first we should search . and the directory the executable is in
10326  shlibpath_var=PATH
10327  ;;
10328
10329darwin* | rhapsody*)
10330  dynamic_linker="$host_os dyld"
10331  version_type=darwin
10332  need_lib_prefix=no
10333  need_version=no
10334  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10335  soname_spec='${libname}${release}${major}$shared_ext'
10336  shlibpath_overrides_runpath=yes
10337  shlibpath_var=DYLD_LIBRARY_PATH
10338  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10339
10340  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10341  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10342  ;;
10343
10344dgux*)
10345  version_type=linux
10346  need_lib_prefix=no
10347  need_version=no
10348  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10349  soname_spec='${libname}${release}${shared_ext}$major'
10350  shlibpath_var=LD_LIBRARY_PATH
10351  ;;
10352
10353freebsd1*)
10354  dynamic_linker=no
10355  ;;
10356
10357freebsd* | dragonfly*)
10358  # DragonFly does not have aout.  When/if they implement a new
10359  # versioning mechanism, adjust this.
10360  if test -x /usr/bin/objformat; then
10361    objformat=`/usr/bin/objformat`
10362  else
10363    case $host_os in
10364    freebsd[123]*) objformat=aout ;;
10365    *) objformat=elf ;;
10366    esac
10367  fi
10368  version_type=freebsd-$objformat
10369  case $version_type in
10370    freebsd-elf*)
10371      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10372      need_version=no
10373      need_lib_prefix=no
10374      ;;
10375    freebsd-*)
10376      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10377      need_version=yes
10378      ;;
10379  esac
10380  shlibpath_var=LD_LIBRARY_PATH
10381  case $host_os in
10382  freebsd2*)
10383    shlibpath_overrides_runpath=yes
10384    ;;
10385  freebsd3.[01]* | freebsdelf3.[01]*)
10386    shlibpath_overrides_runpath=yes
10387    hardcode_into_libs=yes
10388    ;;
10389  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10390  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10391    shlibpath_overrides_runpath=no
10392    hardcode_into_libs=yes
10393    ;;
10394  *) # from 4.6 on, and DragonFly
10395    shlibpath_overrides_runpath=yes
10396    hardcode_into_libs=yes
10397    ;;
10398  esac
10399  ;;
10400
10401gnu*)
10402  version_type=linux
10403  need_lib_prefix=no
10404  need_version=no
10405  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10406  soname_spec='${libname}${release}${shared_ext}$major'
10407  shlibpath_var=LD_LIBRARY_PATH
10408  hardcode_into_libs=yes
10409  ;;
10410
10411hpux9* | hpux10* | hpux11*)
10412  # Give a soname corresponding to the major version so that dld.sl refuses to
10413  # link against other versions.
10414  version_type=sunos
10415  need_lib_prefix=no
10416  need_version=no
10417  case $host_cpu in
10418  ia64*)
10419    shrext_cmds='.so'
10420    hardcode_into_libs=yes
10421    dynamic_linker="$host_os dld.so"
10422    shlibpath_var=LD_LIBRARY_PATH
10423    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10424    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10425    soname_spec='${libname}${release}${shared_ext}$major'
10426    if test "X$HPUX_IA64_MODE" = X32; then
10427      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10428    else
10429      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10430    fi
10431    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10432    ;;
10433  hppa*64*)
10434    shrext_cmds='.sl'
10435    hardcode_into_libs=yes
10436    dynamic_linker="$host_os dld.sl"
10437    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10438    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10439    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10440    soname_spec='${libname}${release}${shared_ext}$major'
10441    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10442    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10443    ;;
10444  *)
10445    shrext_cmds='.sl'
10446    dynamic_linker="$host_os dld.sl"
10447    shlibpath_var=SHLIB_PATH
10448    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10449    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10450    soname_spec='${libname}${release}${shared_ext}$major'
10451    ;;
10452  esac
10453  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10454  postinstall_cmds='chmod 555 $lib'
10455  ;;
10456
10457interix[3-9]*)
10458  version_type=linux
10459  need_lib_prefix=no
10460  need_version=no
10461  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10462  soname_spec='${libname}${release}${shared_ext}$major'
10463  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10464  shlibpath_var=LD_LIBRARY_PATH
10465  shlibpath_overrides_runpath=no
10466  hardcode_into_libs=yes
10467  ;;
10468
10469irix5* | irix6* | nonstopux*)
10470  case $host_os in
10471    nonstopux*) version_type=nonstopux ;;
10472    *)
10473	if test "$lt_cv_prog_gnu_ld" = yes; then
10474		version_type=linux
10475	else
10476		version_type=irix
10477	fi ;;
10478  esac
10479  need_lib_prefix=no
10480  need_version=no
10481  soname_spec='${libname}${release}${shared_ext}$major'
10482  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10483  case $host_os in
10484  irix5* | nonstopux*)
10485    libsuff= shlibsuff=
10486    ;;
10487  *)
10488    case $LD in # libtool.m4 will add one of these switches to LD
10489    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10490      libsuff= shlibsuff= libmagic=32-bit;;
10491    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10492      libsuff=32 shlibsuff=N32 libmagic=N32;;
10493    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10494      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10495    *) libsuff= shlibsuff= libmagic=never-match;;
10496    esac
10497    ;;
10498  esac
10499  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10500  shlibpath_overrides_runpath=no
10501  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10502  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10503  hardcode_into_libs=yes
10504  ;;
10505
10506# No shared lib support for Linux oldld, aout, or coff.
10507linux*oldld* | linux*aout* | linux*coff*)
10508  dynamic_linker=no
10509  ;;
10510
10511# This must be Linux ELF.
10512linux* | k*bsd*-gnu)
10513  version_type=linux
10514  need_lib_prefix=no
10515  need_version=no
10516  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10517  soname_spec='${libname}${release}${shared_ext}$major'
10518  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10519  shlibpath_var=LD_LIBRARY_PATH
10520  shlibpath_overrides_runpath=no
10521  # Some binutils ld are patched to set DT_RUNPATH
10522  save_LDFLAGS=$LDFLAGS
10523  save_libdir=$libdir
10524  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10525       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10527/* end confdefs.h.  */
10528
10529int
10530main ()
10531{
10532
10533  ;
10534  return 0;
10535}
10536_ACEOF
10537if ac_fn_c_try_link "$LINENO"; then :
10538  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10539  shlibpath_overrides_runpath=yes
10540fi
10541fi
10542rm -f core conftest.err conftest.$ac_objext \
10543    conftest$ac_exeext conftest.$ac_ext
10544  LDFLAGS=$save_LDFLAGS
10545  libdir=$save_libdir
10546
10547  # This implies no fast_install, which is unacceptable.
10548  # Some rework will be needed to allow for fast_install
10549  # before this can be enabled.
10550  hardcode_into_libs=yes
10551
10552  # Append ld.so.conf contents to the search path
10553  if test -f /etc/ld.so.conf; then
10554    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' ' '`
10555    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10556  fi
10557
10558  # We used to test for /lib/ld.so.1 and disable shared libraries on
10559  # powerpc, because MkLinux only supported shared libraries with the
10560  # GNU dynamic linker.  Since this was broken with cross compilers,
10561  # most powerpc-linux boxes support dynamic linking these days and
10562  # people can always --disable-shared, the test was removed, and we
10563  # assume the GNU/Linux dynamic linker is in use.
10564  dynamic_linker='GNU/Linux ld.so'
10565  ;;
10566
10567netbsd*)
10568  version_type=sunos
10569  need_lib_prefix=no
10570  need_version=no
10571  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10572    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10573    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10574    dynamic_linker='NetBSD (a.out) ld.so'
10575  else
10576    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10577    soname_spec='${libname}${release}${shared_ext}$major'
10578    dynamic_linker='NetBSD ld.elf_so'
10579  fi
10580  shlibpath_var=LD_LIBRARY_PATH
10581  shlibpath_overrides_runpath=yes
10582  hardcode_into_libs=yes
10583  ;;
10584
10585newsos6)
10586  version_type=linux
10587  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10588  shlibpath_var=LD_LIBRARY_PATH
10589  shlibpath_overrides_runpath=yes
10590  ;;
10591
10592*nto* | *qnx*)
10593  version_type=qnx
10594  need_lib_prefix=no
10595  need_version=no
10596  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10597  soname_spec='${libname}${release}${shared_ext}$major'
10598  shlibpath_var=LD_LIBRARY_PATH
10599  shlibpath_overrides_runpath=no
10600  hardcode_into_libs=yes
10601  dynamic_linker='ldqnx.so'
10602  ;;
10603
10604openbsd*)
10605  version_type=sunos
10606  sys_lib_dlsearch_path_spec="/usr/lib"
10607  need_lib_prefix=no
10608  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10609  case $host_os in
10610    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10611    *)				need_version=no  ;;
10612  esac
10613  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10614  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10615  shlibpath_var=LD_LIBRARY_PATH
10616  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10617    case $host_os in
10618      openbsd2.[89] | openbsd2.[89].*)
10619	shlibpath_overrides_runpath=no
10620	;;
10621      *)
10622	shlibpath_overrides_runpath=yes
10623	;;
10624      esac
10625  else
10626    shlibpath_overrides_runpath=yes
10627  fi
10628  ;;
10629
10630os2*)
10631  libname_spec='$name'
10632  shrext_cmds=".dll"
10633  need_lib_prefix=no
10634  library_names_spec='$libname${shared_ext} $libname.a'
10635  dynamic_linker='OS/2 ld.exe'
10636  shlibpath_var=LIBPATH
10637  ;;
10638
10639osf3* | osf4* | osf5*)
10640  version_type=osf
10641  need_lib_prefix=no
10642  need_version=no
10643  soname_spec='${libname}${release}${shared_ext}$major'
10644  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10645  shlibpath_var=LD_LIBRARY_PATH
10646  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10647  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10648  ;;
10649
10650rdos*)
10651  dynamic_linker=no
10652  ;;
10653
10654solaris*)
10655  version_type=linux
10656  need_lib_prefix=no
10657  need_version=no
10658  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10659  soname_spec='${libname}${release}${shared_ext}$major'
10660  shlibpath_var=LD_LIBRARY_PATH
10661  shlibpath_overrides_runpath=yes
10662  hardcode_into_libs=yes
10663  # ldd complains unless libraries are executable
10664  postinstall_cmds='chmod +x $lib'
10665  ;;
10666
10667sunos4*)
10668  version_type=sunos
10669  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10670  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10671  shlibpath_var=LD_LIBRARY_PATH
10672  shlibpath_overrides_runpath=yes
10673  if test "$with_gnu_ld" = yes; then
10674    need_lib_prefix=no
10675  fi
10676  need_version=yes
10677  ;;
10678
10679sysv4 | sysv4.3*)
10680  version_type=linux
10681  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10682  soname_spec='${libname}${release}${shared_ext}$major'
10683  shlibpath_var=LD_LIBRARY_PATH
10684  case $host_vendor in
10685    sni)
10686      shlibpath_overrides_runpath=no
10687      need_lib_prefix=no
10688      runpath_var=LD_RUN_PATH
10689      ;;
10690    siemens)
10691      need_lib_prefix=no
10692      ;;
10693    motorola)
10694      need_lib_prefix=no
10695      need_version=no
10696      shlibpath_overrides_runpath=no
10697      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10698      ;;
10699  esac
10700  ;;
10701
10702sysv4*MP*)
10703  if test -d /usr/nec ;then
10704    version_type=linux
10705    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10706    soname_spec='$libname${shared_ext}.$major'
10707    shlibpath_var=LD_LIBRARY_PATH
10708  fi
10709  ;;
10710
10711sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10712  version_type=freebsd-elf
10713  need_lib_prefix=no
10714  need_version=no
10715  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10716  soname_spec='${libname}${release}${shared_ext}$major'
10717  shlibpath_var=LD_LIBRARY_PATH
10718  shlibpath_overrides_runpath=yes
10719  hardcode_into_libs=yes
10720  if test "$with_gnu_ld" = yes; then
10721    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10722  else
10723    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10724    case $host_os in
10725      sco3.2v5*)
10726        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10727	;;
10728    esac
10729  fi
10730  sys_lib_dlsearch_path_spec='/usr/lib'
10731  ;;
10732
10733tpf*)
10734  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10735  version_type=linux
10736  need_lib_prefix=no
10737  need_version=no
10738  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10739  shlibpath_var=LD_LIBRARY_PATH
10740  shlibpath_overrides_runpath=no
10741  hardcode_into_libs=yes
10742  ;;
10743
10744uts4*)
10745  version_type=linux
10746  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10747  soname_spec='${libname}${release}${shared_ext}$major'
10748  shlibpath_var=LD_LIBRARY_PATH
10749  ;;
10750
10751*)
10752  dynamic_linker=no
10753  ;;
10754esac
10755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10756$as_echo "$dynamic_linker" >&6; }
10757test "$dynamic_linker" = no && can_build_shared=no
10758
10759variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10760if test "$GCC" = yes; then
10761  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10762fi
10763
10764if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10765  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10766fi
10767if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10768  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10769fi
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10858$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10859hardcode_action=
10860if test -n "$hardcode_libdir_flag_spec" ||
10861   test -n "$runpath_var" ||
10862   test "X$hardcode_automatic" = "Xyes" ; then
10863
10864  # We can hardcode non-existent directories.
10865  if test "$hardcode_direct" != no &&
10866     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10867     # have to relink, otherwise we might link with an installed library
10868     # when we should be linking with a yet-to-be-installed one
10869     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10870     test "$hardcode_minus_L" != no; then
10871    # Linking always hardcodes the temporary library directory.
10872    hardcode_action=relink
10873  else
10874    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10875    hardcode_action=immediate
10876  fi
10877else
10878  # We cannot hardcode anything, or else we can only hardcode existing
10879  # directories.
10880  hardcode_action=unsupported
10881fi
10882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10883$as_echo "$hardcode_action" >&6; }
10884
10885if test "$hardcode_action" = relink ||
10886   test "$inherit_rpath" = yes; then
10887  # Fast installation is not supported
10888  enable_fast_install=no
10889elif test "$shlibpath_overrides_runpath" = yes ||
10890     test "$enable_shared" = no; then
10891  # Fast installation is not necessary
10892  enable_fast_install=needless
10893fi
10894
10895
10896
10897
10898
10899
10900  if test "x$enable_dlopen" != xyes; then
10901  enable_dlopen=unknown
10902  enable_dlopen_self=unknown
10903  enable_dlopen_self_static=unknown
10904else
10905  lt_cv_dlopen=no
10906  lt_cv_dlopen_libs=
10907
10908  case $host_os in
10909  beos*)
10910    lt_cv_dlopen="load_add_on"
10911    lt_cv_dlopen_libs=
10912    lt_cv_dlopen_self=yes
10913    ;;
10914
10915  mingw* | pw32* | cegcc*)
10916    lt_cv_dlopen="LoadLibrary"
10917    lt_cv_dlopen_libs=
10918    ;;
10919
10920  cygwin*)
10921    lt_cv_dlopen="dlopen"
10922    lt_cv_dlopen_libs=
10923    ;;
10924
10925  darwin*)
10926  # if libdl is installed we need to link against it
10927    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10928$as_echo_n "checking for dlopen in -ldl... " >&6; }
10929if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10930  $as_echo_n "(cached) " >&6
10931else
10932  ac_check_lib_save_LIBS=$LIBS
10933LIBS="-ldl  $LIBS"
10934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10935/* end confdefs.h.  */
10936
10937/* Override any GCC internal prototype to avoid an error.
10938   Use char because int might match the return type of a GCC
10939   builtin and then its argument prototype would still apply.  */
10940#ifdef __cplusplus
10941extern "C"
10942#endif
10943char dlopen ();
10944int
10945main ()
10946{
10947return dlopen ();
10948  ;
10949  return 0;
10950}
10951_ACEOF
10952if ac_fn_c_try_link "$LINENO"; then :
10953  ac_cv_lib_dl_dlopen=yes
10954else
10955  ac_cv_lib_dl_dlopen=no
10956fi
10957rm -f core conftest.err conftest.$ac_objext \
10958    conftest$ac_exeext conftest.$ac_ext
10959LIBS=$ac_check_lib_save_LIBS
10960fi
10961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10962$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10963if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10964  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10965else
10966
10967    lt_cv_dlopen="dyld"
10968    lt_cv_dlopen_libs=
10969    lt_cv_dlopen_self=yes
10970
10971fi
10972
10973    ;;
10974
10975  *)
10976    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10977if test "x$ac_cv_func_shl_load" = x""yes; then :
10978  lt_cv_dlopen="shl_load"
10979else
10980  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10981$as_echo_n "checking for shl_load in -ldld... " >&6; }
10982if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10983  $as_echo_n "(cached) " >&6
10984else
10985  ac_check_lib_save_LIBS=$LIBS
10986LIBS="-ldld  $LIBS"
10987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10988/* end confdefs.h.  */
10989
10990/* Override any GCC internal prototype to avoid an error.
10991   Use char because int might match the return type of a GCC
10992   builtin and then its argument prototype would still apply.  */
10993#ifdef __cplusplus
10994extern "C"
10995#endif
10996char shl_load ();
10997int
10998main ()
10999{
11000return shl_load ();
11001  ;
11002  return 0;
11003}
11004_ACEOF
11005if ac_fn_c_try_link "$LINENO"; then :
11006  ac_cv_lib_dld_shl_load=yes
11007else
11008  ac_cv_lib_dld_shl_load=no
11009fi
11010rm -f core conftest.err conftest.$ac_objext \
11011    conftest$ac_exeext conftest.$ac_ext
11012LIBS=$ac_check_lib_save_LIBS
11013fi
11014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11015$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11016if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11017  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11018else
11019  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11020if test "x$ac_cv_func_dlopen" = x""yes; then :
11021  lt_cv_dlopen="dlopen"
11022else
11023  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11024$as_echo_n "checking for dlopen in -ldl... " >&6; }
11025if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11026  $as_echo_n "(cached) " >&6
11027else
11028  ac_check_lib_save_LIBS=$LIBS
11029LIBS="-ldl  $LIBS"
11030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11031/* end confdefs.h.  */
11032
11033/* Override any GCC internal prototype to avoid an error.
11034   Use char because int might match the return type of a GCC
11035   builtin and then its argument prototype would still apply.  */
11036#ifdef __cplusplus
11037extern "C"
11038#endif
11039char dlopen ();
11040int
11041main ()
11042{
11043return dlopen ();
11044  ;
11045  return 0;
11046}
11047_ACEOF
11048if ac_fn_c_try_link "$LINENO"; then :
11049  ac_cv_lib_dl_dlopen=yes
11050else
11051  ac_cv_lib_dl_dlopen=no
11052fi
11053rm -f core conftest.err conftest.$ac_objext \
11054    conftest$ac_exeext conftest.$ac_ext
11055LIBS=$ac_check_lib_save_LIBS
11056fi
11057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11058$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11059if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11060  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11061else
11062  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11063$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11064if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11065  $as_echo_n "(cached) " >&6
11066else
11067  ac_check_lib_save_LIBS=$LIBS
11068LIBS="-lsvld  $LIBS"
11069cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11070/* end confdefs.h.  */
11071
11072/* Override any GCC internal prototype to avoid an error.
11073   Use char because int might match the return type of a GCC
11074   builtin and then its argument prototype would still apply.  */
11075#ifdef __cplusplus
11076extern "C"
11077#endif
11078char dlopen ();
11079int
11080main ()
11081{
11082return dlopen ();
11083  ;
11084  return 0;
11085}
11086_ACEOF
11087if ac_fn_c_try_link "$LINENO"; then :
11088  ac_cv_lib_svld_dlopen=yes
11089else
11090  ac_cv_lib_svld_dlopen=no
11091fi
11092rm -f core conftest.err conftest.$ac_objext \
11093    conftest$ac_exeext conftest.$ac_ext
11094LIBS=$ac_check_lib_save_LIBS
11095fi
11096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11097$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11098if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11099  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11100else
11101  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11102$as_echo_n "checking for dld_link in -ldld... " >&6; }
11103if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11104  $as_echo_n "(cached) " >&6
11105else
11106  ac_check_lib_save_LIBS=$LIBS
11107LIBS="-ldld  $LIBS"
11108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11109/* end confdefs.h.  */
11110
11111/* Override any GCC internal prototype to avoid an error.
11112   Use char because int might match the return type of a GCC
11113   builtin and then its argument prototype would still apply.  */
11114#ifdef __cplusplus
11115extern "C"
11116#endif
11117char dld_link ();
11118int
11119main ()
11120{
11121return dld_link ();
11122  ;
11123  return 0;
11124}
11125_ACEOF
11126if ac_fn_c_try_link "$LINENO"; then :
11127  ac_cv_lib_dld_dld_link=yes
11128else
11129  ac_cv_lib_dld_dld_link=no
11130fi
11131rm -f core conftest.err conftest.$ac_objext \
11132    conftest$ac_exeext conftest.$ac_ext
11133LIBS=$ac_check_lib_save_LIBS
11134fi
11135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11136$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11137if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11138  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11139fi
11140
11141
11142fi
11143
11144
11145fi
11146
11147
11148fi
11149
11150
11151fi
11152
11153
11154fi
11155
11156    ;;
11157  esac
11158
11159  if test "x$lt_cv_dlopen" != xno; then
11160    enable_dlopen=yes
11161  else
11162    enable_dlopen=no
11163  fi
11164
11165  case $lt_cv_dlopen in
11166  dlopen)
11167    save_CPPFLAGS="$CPPFLAGS"
11168    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11169
11170    save_LDFLAGS="$LDFLAGS"
11171    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11172
11173    save_LIBS="$LIBS"
11174    LIBS="$lt_cv_dlopen_libs $LIBS"
11175
11176    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11177$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11178if test "${lt_cv_dlopen_self+set}" = set; then :
11179  $as_echo_n "(cached) " >&6
11180else
11181  	  if test "$cross_compiling" = yes; then :
11182  lt_cv_dlopen_self=cross
11183else
11184  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11185  lt_status=$lt_dlunknown
11186  cat > conftest.$ac_ext <<_LT_EOF
11187#line 11187 "configure"
11188#include "confdefs.h"
11189
11190#if HAVE_DLFCN_H
11191#include <dlfcn.h>
11192#endif
11193
11194#include <stdio.h>
11195
11196#ifdef RTLD_GLOBAL
11197#  define LT_DLGLOBAL		RTLD_GLOBAL
11198#else
11199#  ifdef DL_GLOBAL
11200#    define LT_DLGLOBAL		DL_GLOBAL
11201#  else
11202#    define LT_DLGLOBAL		0
11203#  endif
11204#endif
11205
11206/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11207   find out it does not work in some platform. */
11208#ifndef LT_DLLAZY_OR_NOW
11209#  ifdef RTLD_LAZY
11210#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11211#  else
11212#    ifdef DL_LAZY
11213#      define LT_DLLAZY_OR_NOW		DL_LAZY
11214#    else
11215#      ifdef RTLD_NOW
11216#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11217#      else
11218#        ifdef DL_NOW
11219#          define LT_DLLAZY_OR_NOW	DL_NOW
11220#        else
11221#          define LT_DLLAZY_OR_NOW	0
11222#        endif
11223#      endif
11224#    endif
11225#  endif
11226#endif
11227
11228void fnord() { int i=42;}
11229int main ()
11230{
11231  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11232  int status = $lt_dlunknown;
11233
11234  if (self)
11235    {
11236      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11237      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11238      /* dlclose (self); */
11239    }
11240  else
11241    puts (dlerror ());
11242
11243  return status;
11244}
11245_LT_EOF
11246  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11247  (eval $ac_link) 2>&5
11248  ac_status=$?
11249  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11250  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11251    (./conftest; exit; ) >&5 2>/dev/null
11252    lt_status=$?
11253    case x$lt_status in
11254      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11255      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11256      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11257    esac
11258  else :
11259    # compilation failed
11260    lt_cv_dlopen_self=no
11261  fi
11262fi
11263rm -fr conftest*
11264
11265
11266fi
11267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11268$as_echo "$lt_cv_dlopen_self" >&6; }
11269
11270    if test "x$lt_cv_dlopen_self" = xyes; then
11271      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11272      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11273$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11274if test "${lt_cv_dlopen_self_static+set}" = set; then :
11275  $as_echo_n "(cached) " >&6
11276else
11277  	  if test "$cross_compiling" = yes; then :
11278  lt_cv_dlopen_self_static=cross
11279else
11280  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11281  lt_status=$lt_dlunknown
11282  cat > conftest.$ac_ext <<_LT_EOF
11283#line 11283 "configure"
11284#include "confdefs.h"
11285
11286#if HAVE_DLFCN_H
11287#include <dlfcn.h>
11288#endif
11289
11290#include <stdio.h>
11291
11292#ifdef RTLD_GLOBAL
11293#  define LT_DLGLOBAL		RTLD_GLOBAL
11294#else
11295#  ifdef DL_GLOBAL
11296#    define LT_DLGLOBAL		DL_GLOBAL
11297#  else
11298#    define LT_DLGLOBAL		0
11299#  endif
11300#endif
11301
11302/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11303   find out it does not work in some platform. */
11304#ifndef LT_DLLAZY_OR_NOW
11305#  ifdef RTLD_LAZY
11306#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11307#  else
11308#    ifdef DL_LAZY
11309#      define LT_DLLAZY_OR_NOW		DL_LAZY
11310#    else
11311#      ifdef RTLD_NOW
11312#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11313#      else
11314#        ifdef DL_NOW
11315#          define LT_DLLAZY_OR_NOW	DL_NOW
11316#        else
11317#          define LT_DLLAZY_OR_NOW	0
11318#        endif
11319#      endif
11320#    endif
11321#  endif
11322#endif
11323
11324void fnord() { int i=42;}
11325int main ()
11326{
11327  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11328  int status = $lt_dlunknown;
11329
11330  if (self)
11331    {
11332      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11333      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11334      /* dlclose (self); */
11335    }
11336  else
11337    puts (dlerror ());
11338
11339  return status;
11340}
11341_LT_EOF
11342  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11343  (eval $ac_link) 2>&5
11344  ac_status=$?
11345  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11346  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11347    (./conftest; exit; ) >&5 2>/dev/null
11348    lt_status=$?
11349    case x$lt_status in
11350      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11351      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11352      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11353    esac
11354  else :
11355    # compilation failed
11356    lt_cv_dlopen_self_static=no
11357  fi
11358fi
11359rm -fr conftest*
11360
11361
11362fi
11363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11364$as_echo "$lt_cv_dlopen_self_static" >&6; }
11365    fi
11366
11367    CPPFLAGS="$save_CPPFLAGS"
11368    LDFLAGS="$save_LDFLAGS"
11369    LIBS="$save_LIBS"
11370    ;;
11371  esac
11372
11373  case $lt_cv_dlopen_self in
11374  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11375  *) enable_dlopen_self=unknown ;;
11376  esac
11377
11378  case $lt_cv_dlopen_self_static in
11379  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11380  *) enable_dlopen_self_static=unknown ;;
11381  esac
11382fi
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400striplib=
11401old_striplib=
11402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11403$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11404if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11405  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11406  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11408$as_echo "yes" >&6; }
11409else
11410# FIXME - insert some real tests, host_os isn't really good enough
11411  case $host_os in
11412  darwin*)
11413    if test -n "$STRIP" ; then
11414      striplib="$STRIP -x"
11415      old_striplib="$STRIP -S"
11416      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11417$as_echo "yes" >&6; }
11418    else
11419      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11420$as_echo "no" >&6; }
11421    fi
11422    ;;
11423  *)
11424    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11425$as_echo "no" >&6; }
11426    ;;
11427  esac
11428fi
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441  # Report which library types will actually be built
11442  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11443$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11445$as_echo "$can_build_shared" >&6; }
11446
11447  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11448$as_echo_n "checking whether to build shared libraries... " >&6; }
11449  test "$can_build_shared" = "no" && enable_shared=no
11450
11451  # On AIX, shared libraries and static libraries use the same namespace, and
11452  # are all built from PIC.
11453  case $host_os in
11454  aix3*)
11455    test "$enable_shared" = yes && enable_static=no
11456    if test -n "$RANLIB"; then
11457      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11458      postinstall_cmds='$RANLIB $lib'
11459    fi
11460    ;;
11461
11462  aix[4-9]*)
11463    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11464      test "$enable_shared" = yes && enable_static=no
11465    fi
11466    ;;
11467  esac
11468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11469$as_echo "$enable_shared" >&6; }
11470
11471  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11472$as_echo_n "checking whether to build static libraries... " >&6; }
11473  # Make sure either enable_shared or enable_static is yes.
11474  test "$enable_shared" = yes || enable_static=yes
11475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11476$as_echo "$enable_static" >&6; }
11477
11478
11479
11480
11481fi
11482ac_ext=c
11483ac_cpp='$CPP $CPPFLAGS'
11484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11486ac_compiler_gnu=$ac_cv_c_compiler_gnu
11487
11488CC="$lt_save_CC"
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502        ac_config_commands="$ac_config_commands libtool"
11503
11504
11505
11506
11507# Only expand once:
11508
11509
11510
11511
11512ac_ext=cpp
11513ac_cpp='$CXXCPP $CPPFLAGS'
11514ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11515ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11516ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11517if test -z "$CXX"; then
11518  if test -n "$CCC"; then
11519    CXX=$CCC
11520  else
11521    if test -n "$ac_tool_prefix"; then
11522  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11523  do
11524    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11525set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11527$as_echo_n "checking for $ac_word... " >&6; }
11528if test "${ac_cv_prog_CXX+set}" = set; then :
11529  $as_echo_n "(cached) " >&6
11530else
11531  if test -n "$CXX"; then
11532  ac_cv_prog_CXX="$CXX" # Let the user override the test.
11533else
11534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11535for as_dir in $PATH
11536do
11537  IFS=$as_save_IFS
11538  test -z "$as_dir" && as_dir=.
11539    for ac_exec_ext in '' $ac_executable_extensions; do
11540  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11541    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11542    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11543    break 2
11544  fi
11545done
11546  done
11547IFS=$as_save_IFS
11548
11549fi
11550fi
11551CXX=$ac_cv_prog_CXX
11552if test -n "$CXX"; then
11553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11554$as_echo "$CXX" >&6; }
11555else
11556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11557$as_echo "no" >&6; }
11558fi
11559
11560
11561    test -n "$CXX" && break
11562  done
11563fi
11564if test -z "$CXX"; then
11565  ac_ct_CXX=$CXX
11566  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11567do
11568  # Extract the first word of "$ac_prog", so it can be a program name with args.
11569set dummy $ac_prog; ac_word=$2
11570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11571$as_echo_n "checking for $ac_word... " >&6; }
11572if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11573  $as_echo_n "(cached) " >&6
11574else
11575  if test -n "$ac_ct_CXX"; then
11576  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11577else
11578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11579for as_dir in $PATH
11580do
11581  IFS=$as_save_IFS
11582  test -z "$as_dir" && as_dir=.
11583    for ac_exec_ext in '' $ac_executable_extensions; do
11584  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11585    ac_cv_prog_ac_ct_CXX="$ac_prog"
11586    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11587    break 2
11588  fi
11589done
11590  done
11591IFS=$as_save_IFS
11592
11593fi
11594fi
11595ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11596if test -n "$ac_ct_CXX"; then
11597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11598$as_echo "$ac_ct_CXX" >&6; }
11599else
11600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11601$as_echo "no" >&6; }
11602fi
11603
11604
11605  test -n "$ac_ct_CXX" && break
11606done
11607
11608  if test "x$ac_ct_CXX" = x; then
11609    CXX="g++"
11610  else
11611    case $cross_compiling:$ac_tool_warned in
11612yes:)
11613{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11614$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11615ac_tool_warned=yes ;;
11616esac
11617    CXX=$ac_ct_CXX
11618  fi
11619fi
11620
11621  fi
11622fi
11623# Provide some information about the compiler.
11624$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11625set X $ac_compile
11626ac_compiler=$2
11627for ac_option in --version -v -V -qversion; do
11628  { { ac_try="$ac_compiler $ac_option >&5"
11629case "(($ac_try" in
11630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11631  *) ac_try_echo=$ac_try;;
11632esac
11633eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11634$as_echo "$ac_try_echo"; } >&5
11635  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11636  ac_status=$?
11637  if test -s conftest.err; then
11638    sed '10a\
11639... rest of stderr output deleted ...
11640         10q' conftest.err >conftest.er1
11641    cat conftest.er1 >&5
11642    rm -f conftest.er1 conftest.err
11643  fi
11644  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11645  test $ac_status = 0; }
11646done
11647
11648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11649$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11650if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11651  $as_echo_n "(cached) " >&6
11652else
11653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11654/* end confdefs.h.  */
11655
11656int
11657main ()
11658{
11659#ifndef __GNUC__
11660       choke me
11661#endif
11662
11663  ;
11664  return 0;
11665}
11666_ACEOF
11667if ac_fn_cxx_try_compile "$LINENO"; then :
11668  ac_compiler_gnu=yes
11669else
11670  ac_compiler_gnu=no
11671fi
11672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11673ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11674
11675fi
11676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11677$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11678if test $ac_compiler_gnu = yes; then
11679  GXX=yes
11680else
11681  GXX=
11682fi
11683ac_test_CXXFLAGS=${CXXFLAGS+set}
11684ac_save_CXXFLAGS=$CXXFLAGS
11685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11686$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11687if test "${ac_cv_prog_cxx_g+set}" = set; then :
11688  $as_echo_n "(cached) " >&6
11689else
11690  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11691   ac_cxx_werror_flag=yes
11692   ac_cv_prog_cxx_g=no
11693   CXXFLAGS="-g"
11694   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11695/* end confdefs.h.  */
11696
11697int
11698main ()
11699{
11700
11701  ;
11702  return 0;
11703}
11704_ACEOF
11705if ac_fn_cxx_try_compile "$LINENO"; then :
11706  ac_cv_prog_cxx_g=yes
11707else
11708  CXXFLAGS=""
11709      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11710/* end confdefs.h.  */
11711
11712int
11713main ()
11714{
11715
11716  ;
11717  return 0;
11718}
11719_ACEOF
11720if ac_fn_cxx_try_compile "$LINENO"; then :
11721
11722else
11723  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11724	 CXXFLAGS="-g"
11725	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11726/* end confdefs.h.  */
11727
11728int
11729main ()
11730{
11731
11732  ;
11733  return 0;
11734}
11735_ACEOF
11736if ac_fn_cxx_try_compile "$LINENO"; then :
11737  ac_cv_prog_cxx_g=yes
11738fi
11739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11740fi
11741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11742fi
11743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11744   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11745fi
11746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11747$as_echo "$ac_cv_prog_cxx_g" >&6; }
11748if test "$ac_test_CXXFLAGS" = set; then
11749  CXXFLAGS=$ac_save_CXXFLAGS
11750elif test $ac_cv_prog_cxx_g = yes; then
11751  if test "$GXX" = yes; then
11752    CXXFLAGS="-g -O2"
11753  else
11754    CXXFLAGS="-g"
11755  fi
11756else
11757  if test "$GXX" = yes; then
11758    CXXFLAGS="-O2"
11759  else
11760    CXXFLAGS=
11761  fi
11762fi
11763ac_ext=c
11764ac_cpp='$CPP $CPPFLAGS'
11765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11767ac_compiler_gnu=$ac_cv_c_compiler_gnu
11768
11769depcc="$CXX"  am_compiler_list=
11770
11771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11772$as_echo_n "checking dependency style of $depcc... " >&6; }
11773if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11774  $as_echo_n "(cached) " >&6
11775else
11776  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11777  # We make a subdir and do the tests there.  Otherwise we can end up
11778  # making bogus files that we don't know about and never remove.  For
11779  # instance it was reported that on HP-UX the gcc test will end up
11780  # making a dummy file named `D' -- because `-MD' means `put the output
11781  # in D'.
11782  mkdir conftest.dir
11783  # Copy depcomp to subdir because otherwise we won't find it if we're
11784  # using a relative directory.
11785  cp "$am_depcomp" conftest.dir
11786  cd conftest.dir
11787  # We will build objects and dependencies in a subdirectory because
11788  # it helps to detect inapplicable dependency modes.  For instance
11789  # both Tru64's cc and ICC support -MD to output dependencies as a
11790  # side effect of compilation, but ICC will put the dependencies in
11791  # the current directory while Tru64 will put them in the object
11792  # directory.
11793  mkdir sub
11794
11795  am_cv_CXX_dependencies_compiler_type=none
11796  if test "$am_compiler_list" = ""; then
11797     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11798  fi
11799  am__universal=false
11800  case " $depcc " in #(
11801     *\ -arch\ *\ -arch\ *) am__universal=true ;;
11802     esac
11803
11804  for depmode in $am_compiler_list; do
11805    # Setup a source with many dependencies, because some compilers
11806    # like to wrap large dependency lists on column 80 (with \), and
11807    # we should not choose a depcomp mode which is confused by this.
11808    #
11809    # We need to recreate these files for each test, as the compiler may
11810    # overwrite some of them when testing with obscure command lines.
11811    # This happens at least with the AIX C compiler.
11812    : > sub/conftest.c
11813    for i in 1 2 3 4 5 6; do
11814      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11815      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11816      # Solaris 8's {/usr,}/bin/sh.
11817      touch sub/conftst$i.h
11818    done
11819    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11820
11821    # We check with `-c' and `-o' for the sake of the "dashmstdout"
11822    # mode.  It turns out that the SunPro C++ compiler does not properly
11823    # handle `-M -o', and we need to detect this.  Also, some Intel
11824    # versions had trouble with output in subdirs
11825    am__obj=sub/conftest.${OBJEXT-o}
11826    am__minus_obj="-o $am__obj"
11827    case $depmode in
11828    gcc)
11829      # This depmode causes a compiler race in universal mode.
11830      test "$am__universal" = false || continue
11831      ;;
11832    nosideeffect)
11833      # after this tag, mechanisms are not by side-effect, so they'll
11834      # only be used when explicitly requested
11835      if test "x$enable_dependency_tracking" = xyes; then
11836	continue
11837      else
11838	break
11839      fi
11840      ;;
11841    msvisualcpp | msvcmsys)
11842      # This compiler won't grok `-c -o', but also, the minuso test has
11843      # not run yet.  These depmodes are late enough in the game, and
11844      # so weak that their functioning should not be impacted.
11845      am__obj=conftest.${OBJEXT-o}
11846      am__minus_obj=
11847      ;;
11848    none) break ;;
11849    esac
11850    if depmode=$depmode \
11851       source=sub/conftest.c object=$am__obj \
11852       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11853       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11854         >/dev/null 2>conftest.err &&
11855       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11856       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11857       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11858       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11859      # icc doesn't choke on unknown options, it will just issue warnings
11860      # or remarks (even with -Werror).  So we grep stderr for any message
11861      # that says an option was ignored or not supported.
11862      # When given -MP, icc 7.0 and 7.1 complain thusly:
11863      #   icc: Command line warning: ignoring option '-M'; no argument required
11864      # The diagnosis changed in icc 8.0:
11865      #   icc: Command line remark: option '-MP' not supported
11866      if (grep 'ignoring option' conftest.err ||
11867          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11868        am_cv_CXX_dependencies_compiler_type=$depmode
11869        break
11870      fi
11871    fi
11872  done
11873
11874  cd ..
11875  rm -rf conftest.dir
11876else
11877  am_cv_CXX_dependencies_compiler_type=none
11878fi
11879
11880fi
11881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11882$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11883CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11884
11885 if
11886  test "x$enable_dependency_tracking" != xno \
11887  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11888  am__fastdepCXX_TRUE=
11889  am__fastdepCXX_FALSE='#'
11890else
11891  am__fastdepCXX_TRUE='#'
11892  am__fastdepCXX_FALSE=
11893fi
11894
11895
11896if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11897    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11898    (test "X$CXX" != "Xg++"))) ; then
11899  ac_ext=cpp
11900ac_cpp='$CXXCPP $CPPFLAGS'
11901ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11902ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11903ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11905$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11906if test -z "$CXXCPP"; then
11907  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11908  $as_echo_n "(cached) " >&6
11909else
11910      # Double quotes because CXXCPP needs to be expanded
11911    for CXXCPP in "$CXX -E" "/lib/cpp"
11912    do
11913      ac_preproc_ok=false
11914for ac_cxx_preproc_warn_flag in '' yes
11915do
11916  # Use a header file that comes with gcc, so configuring glibc
11917  # with a fresh cross-compiler works.
11918  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11919  # <limits.h> exists even on freestanding compilers.
11920  # On the NeXT, cc -E runs the code through the compiler's parser,
11921  # not just through cpp. "Syntax error" is here to catch this case.
11922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11923/* end confdefs.h.  */
11924#ifdef __STDC__
11925# include <limits.h>
11926#else
11927# include <assert.h>
11928#endif
11929		     Syntax error
11930_ACEOF
11931if ac_fn_cxx_try_cpp "$LINENO"; then :
11932
11933else
11934  # Broken: fails on valid input.
11935continue
11936fi
11937rm -f conftest.err conftest.$ac_ext
11938
11939  # OK, works on sane cases.  Now check whether nonexistent headers
11940  # can be detected and how.
11941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11942/* end confdefs.h.  */
11943#include <ac_nonexistent.h>
11944_ACEOF
11945if ac_fn_cxx_try_cpp "$LINENO"; then :
11946  # Broken: success on invalid input.
11947continue
11948else
11949  # Passes both tests.
11950ac_preproc_ok=:
11951break
11952fi
11953rm -f conftest.err conftest.$ac_ext
11954
11955done
11956# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11957rm -f conftest.err conftest.$ac_ext
11958if $ac_preproc_ok; then :
11959  break
11960fi
11961
11962    done
11963    ac_cv_prog_CXXCPP=$CXXCPP
11964
11965fi
11966  CXXCPP=$ac_cv_prog_CXXCPP
11967else
11968  ac_cv_prog_CXXCPP=$CXXCPP
11969fi
11970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11971$as_echo "$CXXCPP" >&6; }
11972ac_preproc_ok=false
11973for ac_cxx_preproc_warn_flag in '' yes
11974do
11975  # Use a header file that comes with gcc, so configuring glibc
11976  # with a fresh cross-compiler works.
11977  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11978  # <limits.h> exists even on freestanding compilers.
11979  # On the NeXT, cc -E runs the code through the compiler's parser,
11980  # not just through cpp. "Syntax error" is here to catch this case.
11981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11982/* end confdefs.h.  */
11983#ifdef __STDC__
11984# include <limits.h>
11985#else
11986# include <assert.h>
11987#endif
11988		     Syntax error
11989_ACEOF
11990if ac_fn_cxx_try_cpp "$LINENO"; then :
11991
11992else
11993  # Broken: fails on valid input.
11994continue
11995fi
11996rm -f conftest.err conftest.$ac_ext
11997
11998  # OK, works on sane cases.  Now check whether nonexistent headers
11999  # can be detected and how.
12000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12001/* end confdefs.h.  */
12002#include <ac_nonexistent.h>
12003_ACEOF
12004if ac_fn_cxx_try_cpp "$LINENO"; then :
12005  # Broken: success on invalid input.
12006continue
12007else
12008  # Passes both tests.
12009ac_preproc_ok=:
12010break
12011fi
12012rm -f conftest.err conftest.$ac_ext
12013
12014done
12015# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12016rm -f conftest.err conftest.$ac_ext
12017if $ac_preproc_ok; then :
12018
12019else
12020  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12021$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12022_lt_caught_CXX_error=yes; }
12023fi
12024
12025ac_ext=c
12026ac_cpp='$CPP $CPPFLAGS'
12027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12029ac_compiler_gnu=$ac_cv_c_compiler_gnu
12030
12031else
12032  _lt_caught_CXX_error=yes
12033fi
12034
12035
12036
12037
12038ac_ext=cpp
12039ac_cpp='$CXXCPP $CPPFLAGS'
12040ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12041ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12042ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12043
12044archive_cmds_need_lc_CXX=no
12045allow_undefined_flag_CXX=
12046always_export_symbols_CXX=no
12047archive_expsym_cmds_CXX=
12048compiler_needs_object_CXX=no
12049export_dynamic_flag_spec_CXX=
12050hardcode_direct_CXX=no
12051hardcode_direct_absolute_CXX=no
12052hardcode_libdir_flag_spec_CXX=
12053hardcode_libdir_flag_spec_ld_CXX=
12054hardcode_libdir_separator_CXX=
12055hardcode_minus_L_CXX=no
12056hardcode_shlibpath_var_CXX=unsupported
12057hardcode_automatic_CXX=no
12058inherit_rpath_CXX=no
12059module_cmds_CXX=
12060module_expsym_cmds_CXX=
12061link_all_deplibs_CXX=unknown
12062old_archive_cmds_CXX=$old_archive_cmds
12063no_undefined_flag_CXX=
12064whole_archive_flag_spec_CXX=
12065enable_shared_with_static_runtimes_CXX=no
12066
12067# Source file extension for C++ test sources.
12068ac_ext=cpp
12069
12070# Object file extension for compiled C++ test sources.
12071objext=o
12072objext_CXX=$objext
12073
12074# No sense in running all these tests if we already determined that
12075# the CXX compiler isn't working.  Some variables (like enable_shared)
12076# are currently assumed to apply to all compilers on this platform,
12077# and will be corrupted by setting them based on a non-working compiler.
12078if test "$_lt_caught_CXX_error" != yes; then
12079  # Code to be used in simple compile tests
12080  lt_simple_compile_test_code="int some_variable = 0;"
12081
12082  # Code to be used in simple link tests
12083  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12084
12085  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12086
12087
12088
12089
12090
12091
12092# If no C compiler was specified, use CC.
12093LTCC=${LTCC-"$CC"}
12094
12095# If no C compiler flags were specified, use CFLAGS.
12096LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12097
12098# Allow CC to be a program name with arguments.
12099compiler=$CC
12100
12101
12102  # save warnings/boilerplate of simple test code
12103  ac_outfile=conftest.$ac_objext
12104echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12105eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12106_lt_compiler_boilerplate=`cat conftest.err`
12107$RM conftest*
12108
12109  ac_outfile=conftest.$ac_objext
12110echo "$lt_simple_link_test_code" >conftest.$ac_ext
12111eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12112_lt_linker_boilerplate=`cat conftest.err`
12113$RM -r conftest*
12114
12115
12116  # Allow CC to be a program name with arguments.
12117  lt_save_CC=$CC
12118  lt_save_LD=$LD
12119  lt_save_GCC=$GCC
12120  GCC=$GXX
12121  lt_save_with_gnu_ld=$with_gnu_ld
12122  lt_save_path_LD=$lt_cv_path_LD
12123  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12124    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12125  else
12126    $as_unset lt_cv_prog_gnu_ld
12127  fi
12128  if test -n "${lt_cv_path_LDCXX+set}"; then
12129    lt_cv_path_LD=$lt_cv_path_LDCXX
12130  else
12131    $as_unset lt_cv_path_LD
12132  fi
12133  test -z "${LDCXX+set}" || LD=$LDCXX
12134  CC=${CXX-"c++"}
12135  compiler=$CC
12136  compiler_CXX=$CC
12137  for cc_temp in $compiler""; do
12138  case $cc_temp in
12139    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12140    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12141    \-*) ;;
12142    *) break;;
12143  esac
12144done
12145cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12146
12147
12148  if test -n "$compiler"; then
12149    # We don't want -fno-exception when compiling C++ code, so set the
12150    # no_builtin_flag separately
12151    if test "$GXX" = yes; then
12152      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12153    else
12154      lt_prog_compiler_no_builtin_flag_CXX=
12155    fi
12156
12157    if test "$GXX" = yes; then
12158      # Set up default GNU C++ configuration
12159
12160
12161
12162# Check whether --with-gnu-ld was given.
12163if test "${with_gnu_ld+set}" = set; then :
12164  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12165else
12166  with_gnu_ld=no
12167fi
12168
12169ac_prog=ld
12170if test "$GCC" = yes; then
12171  # Check if gcc -print-prog-name=ld gives a path.
12172  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12173$as_echo_n "checking for ld used by $CC... " >&6; }
12174  case $host in
12175  *-*-mingw*)
12176    # gcc leaves a trailing carriage return which upsets mingw
12177    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12178  *)
12179    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12180  esac
12181  case $ac_prog in
12182    # Accept absolute paths.
12183    [\\/]* | ?:[\\/]*)
12184      re_direlt='/[^/][^/]*/\.\./'
12185      # Canonicalize the pathname of ld
12186      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12187      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12188	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12189      done
12190      test -z "$LD" && LD="$ac_prog"
12191      ;;
12192  "")
12193    # If it fails, then pretend we aren't using GCC.
12194    ac_prog=ld
12195    ;;
12196  *)
12197    # If it is relative, then search for the first ld in PATH.
12198    with_gnu_ld=unknown
12199    ;;
12200  esac
12201elif test "$with_gnu_ld" = yes; then
12202  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12203$as_echo_n "checking for GNU ld... " >&6; }
12204else
12205  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12206$as_echo_n "checking for non-GNU ld... " >&6; }
12207fi
12208if test "${lt_cv_path_LD+set}" = set; then :
12209  $as_echo_n "(cached) " >&6
12210else
12211  if test -z "$LD"; then
12212  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12213  for ac_dir in $PATH; do
12214    IFS="$lt_save_ifs"
12215    test -z "$ac_dir" && ac_dir=.
12216    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12217      lt_cv_path_LD="$ac_dir/$ac_prog"
12218      # Check to see if the program is GNU ld.  I'd rather use --version,
12219      # but apparently some variants of GNU ld only accept -v.
12220      # Break only if it was the GNU/non-GNU ld that we prefer.
12221      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12222      *GNU* | *'with BFD'*)
12223	test "$with_gnu_ld" != no && break
12224	;;
12225      *)
12226	test "$with_gnu_ld" != yes && break
12227	;;
12228      esac
12229    fi
12230  done
12231  IFS="$lt_save_ifs"
12232else
12233  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12234fi
12235fi
12236
12237LD="$lt_cv_path_LD"
12238if test -n "$LD"; then
12239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12240$as_echo "$LD" >&6; }
12241else
12242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12243$as_echo "no" >&6; }
12244fi
12245test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12247$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12248if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12249  $as_echo_n "(cached) " >&6
12250else
12251  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12252case `$LD -v 2>&1 </dev/null` in
12253*GNU* | *'with BFD'*)
12254  lt_cv_prog_gnu_ld=yes
12255  ;;
12256*)
12257  lt_cv_prog_gnu_ld=no
12258  ;;
12259esac
12260fi
12261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12262$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12263with_gnu_ld=$lt_cv_prog_gnu_ld
12264
12265
12266
12267
12268
12269
12270
12271      # Check if GNU C++ uses GNU ld as the underlying linker, since the
12272      # archiving commands below assume that GNU ld is being used.
12273      if test "$with_gnu_ld" = yes; then
12274        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12275        archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12276
12277        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12278        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12279
12280        # If archive_cmds runs LD, not CC, wlarc should be empty
12281        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12282        #     investigate it a little bit more. (MM)
12283        wlarc='${wl}'
12284
12285        # ancient GNU ld didn't support --whole-archive et. al.
12286        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12287	  $GREP 'no-whole-archive' > /dev/null; then
12288          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12289        else
12290          whole_archive_flag_spec_CXX=
12291        fi
12292      else
12293        with_gnu_ld=no
12294        wlarc=
12295
12296        # A generic and very simple default shared library creation
12297        # command for GNU C++ for the case where it uses the native
12298        # linker, instead of GNU ld.  If possible, this setting should
12299        # overridden to take advantage of the native linker features on
12300        # the platform it is being used on.
12301        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12302      fi
12303
12304      # Commands to make compiler produce verbose output that lists
12305      # what "hidden" libraries, object files and flags are used when
12306      # linking a shared library.
12307      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12308
12309    else
12310      GXX=no
12311      with_gnu_ld=no
12312      wlarc=
12313    fi
12314
12315    # PORTME: fill in a description of your system's C++ link characteristics
12316    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12317$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12318    ld_shlibs_CXX=yes
12319    case $host_os in
12320      aix3*)
12321        # FIXME: insert proper C++ library support
12322        ld_shlibs_CXX=no
12323        ;;
12324      aix[4-9]*)
12325        if test "$host_cpu" = ia64; then
12326          # On IA64, the linker does run time linking by default, so we don't
12327          # have to do anything special.
12328          aix_use_runtimelinking=no
12329          exp_sym_flag='-Bexport'
12330          no_entry_flag=""
12331        else
12332          aix_use_runtimelinking=no
12333
12334          # Test if we are trying to use run time linking or normal
12335          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12336          # need to do runtime linking.
12337          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12338	    for ld_flag in $LDFLAGS; do
12339	      case $ld_flag in
12340	      *-brtl*)
12341	        aix_use_runtimelinking=yes
12342	        break
12343	        ;;
12344	      esac
12345	    done
12346	    ;;
12347          esac
12348
12349          exp_sym_flag='-bexport'
12350          no_entry_flag='-bnoentry'
12351        fi
12352
12353        # When large executables or shared objects are built, AIX ld can
12354        # have problems creating the table of contents.  If linking a library
12355        # or program results in "error TOC overflow" add -mminimal-toc to
12356        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12357        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12358
12359        archive_cmds_CXX=''
12360        hardcode_direct_CXX=yes
12361        hardcode_direct_absolute_CXX=yes
12362        hardcode_libdir_separator_CXX=':'
12363        link_all_deplibs_CXX=yes
12364        file_list_spec_CXX='${wl}-f,'
12365
12366        if test "$GXX" = yes; then
12367          case $host_os in aix4.[012]|aix4.[012].*)
12368          # We only want to do this on AIX 4.2 and lower, the check
12369          # below for broken collect2 doesn't work under 4.3+
12370	  collect2name=`${CC} -print-prog-name=collect2`
12371	  if test -f "$collect2name" &&
12372	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12373	  then
12374	    # We have reworked collect2
12375	    :
12376	  else
12377	    # We have old collect2
12378	    hardcode_direct_CXX=unsupported
12379	    # It fails to find uninstalled libraries when the uninstalled
12380	    # path is not listed in the libpath.  Setting hardcode_minus_L
12381	    # to unsupported forces relinking
12382	    hardcode_minus_L_CXX=yes
12383	    hardcode_libdir_flag_spec_CXX='-L$libdir'
12384	    hardcode_libdir_separator_CXX=
12385	  fi
12386          esac
12387          shared_flag='-shared'
12388	  if test "$aix_use_runtimelinking" = yes; then
12389	    shared_flag="$shared_flag "'${wl}-G'
12390	  fi
12391        else
12392          # not using gcc
12393          if test "$host_cpu" = ia64; then
12394	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12395	  # chokes on -Wl,-G. The following line is correct:
12396	  shared_flag='-G'
12397          else
12398	    if test "$aix_use_runtimelinking" = yes; then
12399	      shared_flag='${wl}-G'
12400	    else
12401	      shared_flag='${wl}-bM:SRE'
12402	    fi
12403          fi
12404        fi
12405
12406        export_dynamic_flag_spec_CXX='${wl}-bexpall'
12407        # It seems that -bexpall does not export symbols beginning with
12408        # underscore (_), so it is better to generate a list of symbols to
12409	# export.
12410        always_export_symbols_CXX=yes
12411        if test "$aix_use_runtimelinking" = yes; then
12412          # Warning - without using the other runtime loading flags (-brtl),
12413          # -berok will link without error, but may produce a broken library.
12414          allow_undefined_flag_CXX='-berok'
12415          # Determine the default libpath from the value encoded in an empty
12416          # executable.
12417          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12418/* end confdefs.h.  */
12419
12420int
12421main ()
12422{
12423
12424  ;
12425  return 0;
12426}
12427_ACEOF
12428if ac_fn_cxx_try_link "$LINENO"; then :
12429
12430lt_aix_libpath_sed='
12431    /Import File Strings/,/^$/ {
12432	/^0/ {
12433	    s/^0  *\(.*\)$/\1/
12434	    p
12435	}
12436    }'
12437aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12438# Check for a 64-bit object if we didn't find anything.
12439if test -z "$aix_libpath"; then
12440  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12441fi
12442fi
12443rm -f core conftest.err conftest.$ac_objext \
12444    conftest$ac_exeext conftest.$ac_ext
12445if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12446
12447          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12448
12449          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12450        else
12451          if test "$host_cpu" = ia64; then
12452	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12453	    allow_undefined_flag_CXX="-z nodefs"
12454	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12455          else
12456	    # Determine the default libpath from the value encoded in an
12457	    # empty executable.
12458	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12459/* end confdefs.h.  */
12460
12461int
12462main ()
12463{
12464
12465  ;
12466  return 0;
12467}
12468_ACEOF
12469if ac_fn_cxx_try_link "$LINENO"; then :
12470
12471lt_aix_libpath_sed='
12472    /Import File Strings/,/^$/ {
12473	/^0/ {
12474	    s/^0  *\(.*\)$/\1/
12475	    p
12476	}
12477    }'
12478aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12479# Check for a 64-bit object if we didn't find anything.
12480if test -z "$aix_libpath"; then
12481  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12482fi
12483fi
12484rm -f core conftest.err conftest.$ac_objext \
12485    conftest$ac_exeext conftest.$ac_ext
12486if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12487
12488	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12489	    # Warning - without using the other run time loading flags,
12490	    # -berok will link without error, but may produce a broken library.
12491	    no_undefined_flag_CXX=' ${wl}-bernotok'
12492	    allow_undefined_flag_CXX=' ${wl}-berok'
12493	    # Exported symbols can be pulled into shared objects from archives
12494	    whole_archive_flag_spec_CXX='$convenience'
12495	    archive_cmds_need_lc_CXX=yes
12496	    # This is similar to how AIX traditionally builds its shared
12497	    # libraries.
12498	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12499          fi
12500        fi
12501        ;;
12502
12503      beos*)
12504	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12505	  allow_undefined_flag_CXX=unsupported
12506	  # Joseph Beckenbach <[email protected]> says some releases of gcc
12507	  # support --undefined.  This deserves some investigation.  FIXME
12508	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12509	else
12510	  ld_shlibs_CXX=no
12511	fi
12512	;;
12513
12514      chorus*)
12515        case $cc_basename in
12516          *)
12517	  # FIXME: insert proper C++ library support
12518	  ld_shlibs_CXX=no
12519	  ;;
12520        esac
12521        ;;
12522
12523      cygwin* | mingw* | pw32* | cegcc*)
12524        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12525        # as there is no search path for DLLs.
12526        hardcode_libdir_flag_spec_CXX='-L$libdir'
12527        allow_undefined_flag_CXX=unsupported
12528        always_export_symbols_CXX=no
12529        enable_shared_with_static_runtimes_CXX=yes
12530
12531        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12532          archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12533          # If the export-symbols file already is a .def file (1st line
12534          # is EXPORTS), use it as is; otherwise, prepend...
12535          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12536	    cp $export_symbols $output_objdir/$soname.def;
12537          else
12538	    echo EXPORTS > $output_objdir/$soname.def;
12539	    cat $export_symbols >> $output_objdir/$soname.def;
12540          fi~
12541          $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12542        else
12543          ld_shlibs_CXX=no
12544        fi
12545        ;;
12546      darwin* | rhapsody*)
12547
12548
12549  archive_cmds_need_lc_CXX=no
12550  hardcode_direct_CXX=no
12551  hardcode_automatic_CXX=yes
12552  hardcode_shlibpath_var_CXX=unsupported
12553  whole_archive_flag_spec_CXX=''
12554  link_all_deplibs_CXX=yes
12555  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12556  case $cc_basename in
12557     ifort*) _lt_dar_can_shared=yes ;;
12558     *) _lt_dar_can_shared=$GCC ;;
12559  esac
12560  if test "$_lt_dar_can_shared" = "yes"; then
12561    output_verbose_link_cmd=echo
12562    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12563    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12564    archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12565    module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12566       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12567      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12568      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12569    fi
12570
12571  else
12572  ld_shlibs_CXX=no
12573  fi
12574
12575	;;
12576
12577      dgux*)
12578        case $cc_basename in
12579          ec++*)
12580	    # FIXME: insert proper C++ library support
12581	    ld_shlibs_CXX=no
12582	    ;;
12583          ghcx*)
12584	    # Green Hills C++ Compiler
12585	    # FIXME: insert proper C++ library support
12586	    ld_shlibs_CXX=no
12587	    ;;
12588          *)
12589	    # FIXME: insert proper C++ library support
12590	    ld_shlibs_CXX=no
12591	    ;;
12592        esac
12593        ;;
12594
12595      freebsd[12]*)
12596        # C++ shared libraries reported to be fairly broken before
12597	# switch to ELF
12598        ld_shlibs_CXX=no
12599        ;;
12600
12601      freebsd-elf*)
12602        archive_cmds_need_lc_CXX=no
12603        ;;
12604
12605      freebsd* | dragonfly*)
12606        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12607        # conventions
12608        ld_shlibs_CXX=yes
12609        ;;
12610
12611      gnu*)
12612        ;;
12613
12614      hpux9*)
12615        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12616        hardcode_libdir_separator_CXX=:
12617        export_dynamic_flag_spec_CXX='${wl}-E'
12618        hardcode_direct_CXX=yes
12619        hardcode_minus_L_CXX=yes # Not in the search PATH,
12620				             # but as the default
12621				             # location of the library.
12622
12623        case $cc_basename in
12624          CC*)
12625            # FIXME: insert proper C++ library support
12626            ld_shlibs_CXX=no
12627            ;;
12628          aCC*)
12629            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12630            # Commands to make compiler produce verbose output that lists
12631            # what "hidden" libraries, object files and flags are used when
12632            # linking a shared library.
12633            #
12634            # There doesn't appear to be a way to prevent this compiler from
12635            # explicitly linking system object files so we need to strip them
12636            # from the output so that they don't get included in the library
12637            # dependencies.
12638            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12639            ;;
12640          *)
12641            if test "$GXX" = yes; then
12642              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12643            else
12644              # FIXME: insert proper C++ library support
12645              ld_shlibs_CXX=no
12646            fi
12647            ;;
12648        esac
12649        ;;
12650
12651      hpux10*|hpux11*)
12652        if test $with_gnu_ld = no; then
12653	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12654	  hardcode_libdir_separator_CXX=:
12655
12656          case $host_cpu in
12657            hppa*64*|ia64*)
12658              ;;
12659            *)
12660	      export_dynamic_flag_spec_CXX='${wl}-E'
12661              ;;
12662          esac
12663        fi
12664        case $host_cpu in
12665          hppa*64*|ia64*)
12666            hardcode_direct_CXX=no
12667            hardcode_shlibpath_var_CXX=no
12668            ;;
12669          *)
12670            hardcode_direct_CXX=yes
12671            hardcode_direct_absolute_CXX=yes
12672            hardcode_minus_L_CXX=yes # Not in the search PATH,
12673					         # but as the default
12674					         # location of the library.
12675            ;;
12676        esac
12677
12678        case $cc_basename in
12679          CC*)
12680	    # FIXME: insert proper C++ library support
12681	    ld_shlibs_CXX=no
12682	    ;;
12683          aCC*)
12684	    case $host_cpu in
12685	      hppa*64*)
12686	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12687	        ;;
12688	      ia64*)
12689	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12690	        ;;
12691	      *)
12692	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12693	        ;;
12694	    esac
12695	    # Commands to make compiler produce verbose output that lists
12696	    # what "hidden" libraries, object files and flags are used when
12697	    # linking a shared library.
12698	    #
12699	    # There doesn't appear to be a way to prevent this compiler from
12700	    # explicitly linking system object files so we need to strip them
12701	    # from the output so that they don't get included in the library
12702	    # dependencies.
12703	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12704	    ;;
12705          *)
12706	    if test "$GXX" = yes; then
12707	      if test $with_gnu_ld = no; then
12708	        case $host_cpu in
12709	          hppa*64*)
12710	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12711	            ;;
12712	          ia64*)
12713	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12714	            ;;
12715	          *)
12716	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12717	            ;;
12718	        esac
12719	      fi
12720	    else
12721	      # FIXME: insert proper C++ library support
12722	      ld_shlibs_CXX=no
12723	    fi
12724	    ;;
12725        esac
12726        ;;
12727
12728      interix[3-9]*)
12729	hardcode_direct_CXX=no
12730	hardcode_shlibpath_var_CXX=no
12731	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12732	export_dynamic_flag_spec_CXX='${wl}-E'
12733	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12734	# Instead, shared libraries are loaded at an image base (0x10000000 by
12735	# default) and relocated if they conflict, which is a slow very memory
12736	# consuming and fragmenting process.  To avoid this, we pick a random,
12737	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12738	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12739	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12740	archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12741	;;
12742      irix5* | irix6*)
12743        case $cc_basename in
12744          CC*)
12745	    # SGI C++
12746	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12747
12748	    # Archives containing C++ object files must be created using
12749	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12750	    # necessary to make sure instantiated templates are included
12751	    # in the archive.
12752	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12753	    ;;
12754          *)
12755	    if test "$GXX" = yes; then
12756	      if test "$with_gnu_ld" = no; then
12757	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12758	      else
12759	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12760	      fi
12761	    fi
12762	    link_all_deplibs_CXX=yes
12763	    ;;
12764        esac
12765        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12766        hardcode_libdir_separator_CXX=:
12767        inherit_rpath_CXX=yes
12768        ;;
12769
12770      linux* | k*bsd*-gnu)
12771        case $cc_basename in
12772          KCC*)
12773	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12774
12775	    # KCC will only create a shared library if the output file
12776	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12777	    # to its proper name (with version) after linking.
12778	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12779	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12780	    # Commands to make compiler produce verbose output that lists
12781	    # what "hidden" libraries, object files and flags are used when
12782	    # linking a shared library.
12783	    #
12784	    # There doesn't appear to be a way to prevent this compiler from
12785	    # explicitly linking system object files so we need to strip them
12786	    # from the output so that they don't get included in the library
12787	    # dependencies.
12788	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12789
12790	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12791	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12792
12793	    # Archives containing C++ object files must be created using
12794	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12795	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12796	    ;;
12797	  icpc* | ecpc* )
12798	    # Intel C++
12799	    with_gnu_ld=yes
12800	    # version 8.0 and above of icpc choke on multiply defined symbols
12801	    # if we add $predep_objects and $postdep_objects, however 7.1 and
12802	    # earlier do not add the objects themselves.
12803	    case `$CC -V 2>&1` in
12804	      *"Version 7."*)
12805	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12806		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12807		;;
12808	      *)  # Version 8.0 or newer
12809	        tmp_idyn=
12810	        case $host_cpu in
12811		  ia64*) tmp_idyn=' -i_dynamic';;
12812		esac
12813	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12814		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12815		;;
12816	    esac
12817	    archive_cmds_need_lc_CXX=no
12818	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12819	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12820	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12821	    ;;
12822          pgCC* | pgcpp*)
12823            # Portland Group C++ compiler
12824	    case `$CC -V` in
12825	    *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12826	      prelink_cmds_CXX='tpldir=Template.dir~
12827		rm -rf $tpldir~
12828		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12829		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12830	      old_archive_cmds_CXX='tpldir=Template.dir~
12831		rm -rf $tpldir~
12832		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12833		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12834		$RANLIB $oldlib'
12835	      archive_cmds_CXX='tpldir=Template.dir~
12836		rm -rf $tpldir~
12837		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12838		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12839	      archive_expsym_cmds_CXX='tpldir=Template.dir~
12840		rm -rf $tpldir~
12841		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12842		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12843	      ;;
12844	    *) # Version 6 will use weak symbols
12845	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12846	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12847	      ;;
12848	    esac
12849
12850	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12851	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12852	    whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12853            ;;
12854	  cxx*)
12855	    # Compaq C++
12856	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12857	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12858
12859	    runpath_var=LD_RUN_PATH
12860	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12861	    hardcode_libdir_separator_CXX=:
12862
12863	    # Commands to make compiler produce verbose output that lists
12864	    # what "hidden" libraries, object files and flags are used when
12865	    # linking a shared library.
12866	    #
12867	    # There doesn't appear to be a way to prevent this compiler from
12868	    # explicitly linking system object files so we need to strip them
12869	    # from the output so that they don't get included in the library
12870	    # dependencies.
12871	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12872	    ;;
12873	  xl*)
12874	    # IBM XL 8.0 on PPC, with GNU ld
12875	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12876	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12877	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12878	    if test "x$supports_anon_versioning" = xyes; then
12879	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12880		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12881		echo "local: *; };" >> $output_objdir/$libname.ver~
12882		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12883	    fi
12884	    ;;
12885	  *)
12886	    case `$CC -V 2>&1 | sed 5q` in
12887	    *Sun\ C*)
12888	      # Sun C++ 5.9
12889	      no_undefined_flag_CXX=' -zdefs'
12890	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12891	      archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12892	      hardcode_libdir_flag_spec_CXX='-R$libdir'
12893	      whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12894	      compiler_needs_object_CXX=yes
12895
12896	      # Not sure whether something based on
12897	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12898	      # would be better.
12899	      output_verbose_link_cmd='echo'
12900
12901	      # Archives containing C++ object files must be created using
12902	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12903	      # necessary to make sure instantiated templates are included
12904	      # in the archive.
12905	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12906	      ;;
12907	    esac
12908	    ;;
12909	esac
12910	;;
12911
12912      lynxos*)
12913        # FIXME: insert proper C++ library support
12914	ld_shlibs_CXX=no
12915	;;
12916
12917      m88k*)
12918        # FIXME: insert proper C++ library support
12919        ld_shlibs_CXX=no
12920	;;
12921
12922      mvs*)
12923        case $cc_basename in
12924          cxx*)
12925	    # FIXME: insert proper C++ library support
12926	    ld_shlibs_CXX=no
12927	    ;;
12928	  *)
12929	    # FIXME: insert proper C++ library support
12930	    ld_shlibs_CXX=no
12931	    ;;
12932	esac
12933	;;
12934
12935      netbsd*)
12936        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12937	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12938	  wlarc=
12939	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12940	  hardcode_direct_CXX=yes
12941	  hardcode_shlibpath_var_CXX=no
12942	fi
12943	# Workaround some broken pre-1.5 toolchains
12944	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12945	;;
12946
12947      *nto* | *qnx*)
12948        ld_shlibs_CXX=yes
12949	;;
12950
12951      openbsd2*)
12952        # C++ shared libraries are fairly broken
12953	ld_shlibs_CXX=no
12954	;;
12955
12956      openbsd*)
12957	if test -f /usr/libexec/ld.so; then
12958	  hardcode_direct_CXX=yes
12959	  hardcode_shlibpath_var_CXX=no
12960	  hardcode_direct_absolute_CXX=yes
12961	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12962	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12963	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12964	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12965	    export_dynamic_flag_spec_CXX='${wl}-E'
12966	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12967	  fi
12968	  output_verbose_link_cmd=echo
12969	else
12970	  ld_shlibs_CXX=no
12971	fi
12972	;;
12973
12974      osf3* | osf4* | osf5*)
12975        case $cc_basename in
12976          KCC*)
12977	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12978
12979	    # KCC will only create a shared library if the output file
12980	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12981	    # to its proper name (with version) after linking.
12982	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12983
12984	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12985	    hardcode_libdir_separator_CXX=:
12986
12987	    # Archives containing C++ object files must be created using
12988	    # the KAI C++ compiler.
12989	    case $host in
12990	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12991	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12992	    esac
12993	    ;;
12994          RCC*)
12995	    # Rational C++ 2.4.1
12996	    # FIXME: insert proper C++ library support
12997	    ld_shlibs_CXX=no
12998	    ;;
12999          cxx*)
13000	    case $host in
13001	      osf3*)
13002	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13003	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13004	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13005		;;
13006	      *)
13007	        allow_undefined_flag_CXX=' -expect_unresolved \*'
13008	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13009	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13010	          echo "-hidden">> $lib.exp~
13011	          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13012	          $RM $lib.exp'
13013	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13014		;;
13015	    esac
13016
13017	    hardcode_libdir_separator_CXX=:
13018
13019	    # Commands to make compiler produce verbose output that lists
13020	    # what "hidden" libraries, object files and flags are used when
13021	    # linking a shared library.
13022	    #
13023	    # There doesn't appear to be a way to prevent this compiler from
13024	    # explicitly linking system object files so we need to strip them
13025	    # from the output so that they don't get included in the library
13026	    # dependencies.
13027	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13028	    ;;
13029	  *)
13030	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13031	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13032	      case $host in
13033	        osf3*)
13034	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13035		  ;;
13036	        *)
13037	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13038		  ;;
13039	      esac
13040
13041	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13042	      hardcode_libdir_separator_CXX=:
13043
13044	      # Commands to make compiler produce verbose output that lists
13045	      # what "hidden" libraries, object files and flags are used when
13046	      # linking a shared library.
13047	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13048
13049	    else
13050	      # FIXME: insert proper C++ library support
13051	      ld_shlibs_CXX=no
13052	    fi
13053	    ;;
13054        esac
13055        ;;
13056
13057      psos*)
13058        # FIXME: insert proper C++ library support
13059        ld_shlibs_CXX=no
13060        ;;
13061
13062      sunos4*)
13063        case $cc_basename in
13064          CC*)
13065	    # Sun C++ 4.x
13066	    # FIXME: insert proper C++ library support
13067	    ld_shlibs_CXX=no
13068	    ;;
13069          lcc*)
13070	    # Lucid
13071	    # FIXME: insert proper C++ library support
13072	    ld_shlibs_CXX=no
13073	    ;;
13074          *)
13075	    # FIXME: insert proper C++ library support
13076	    ld_shlibs_CXX=no
13077	    ;;
13078        esac
13079        ;;
13080
13081      solaris*)
13082        case $cc_basename in
13083          CC*)
13084	    # Sun C++ 4.2, 5.x and Centerline C++
13085            archive_cmds_need_lc_CXX=yes
13086	    no_undefined_flag_CXX=' -zdefs'
13087	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13088	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13089	      $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13090
13091	    hardcode_libdir_flag_spec_CXX='-R$libdir'
13092	    hardcode_shlibpath_var_CXX=no
13093	    case $host_os in
13094	      solaris2.[0-5] | solaris2.[0-5].*) ;;
13095	      *)
13096		# The compiler driver will combine and reorder linker options,
13097		# but understands `-z linker_flag'.
13098	        # Supported since Solaris 2.6 (maybe 2.5.1?)
13099		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13100	        ;;
13101	    esac
13102	    link_all_deplibs_CXX=yes
13103
13104	    output_verbose_link_cmd='echo'
13105
13106	    # Archives containing C++ object files must be created using
13107	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13108	    # necessary to make sure instantiated templates are included
13109	    # in the archive.
13110	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13111	    ;;
13112          gcx*)
13113	    # Green Hills C++ Compiler
13114	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13115
13116	    # The C++ compiler must be used to create the archive.
13117	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13118	    ;;
13119          *)
13120	    # GNU C++ compiler with Solaris linker
13121	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13122	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13123	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13124	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13125	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13126		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13127
13128	        # Commands to make compiler produce verbose output that lists
13129	        # what "hidden" libraries, object files and flags are used when
13130	        # linking a shared library.
13131	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13132	      else
13133	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
13134	        # platform.
13135	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13136	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13137		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13138
13139	        # Commands to make compiler produce verbose output that lists
13140	        # what "hidden" libraries, object files and flags are used when
13141	        # linking a shared library.
13142	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13143	      fi
13144
13145	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13146	      case $host_os in
13147		solaris2.[0-5] | solaris2.[0-5].*) ;;
13148		*)
13149		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13150		  ;;
13151	      esac
13152	    fi
13153	    ;;
13154        esac
13155        ;;
13156
13157    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13158      no_undefined_flag_CXX='${wl}-z,text'
13159      archive_cmds_need_lc_CXX=no
13160      hardcode_shlibpath_var_CXX=no
13161      runpath_var='LD_RUN_PATH'
13162
13163      case $cc_basename in
13164        CC*)
13165	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13166	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13167	  ;;
13168	*)
13169	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13170	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13171	  ;;
13172      esac
13173      ;;
13174
13175      sysv5* | sco3.2v5* | sco5v6*)
13176	# Note: We can NOT use -z defs as we might desire, because we do not
13177	# link with -lc, and that would cause any symbols used from libc to
13178	# always be unresolved, which means just about no library would
13179	# ever link correctly.  If we're not using GNU ld we use -z text
13180	# though, which does catch some bad symbols but isn't as heavy-handed
13181	# as -z defs.
13182	no_undefined_flag_CXX='${wl}-z,text'
13183	allow_undefined_flag_CXX='${wl}-z,nodefs'
13184	archive_cmds_need_lc_CXX=no
13185	hardcode_shlibpath_var_CXX=no
13186	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13187	hardcode_libdir_separator_CXX=':'
13188	link_all_deplibs_CXX=yes
13189	export_dynamic_flag_spec_CXX='${wl}-Bexport'
13190	runpath_var='LD_RUN_PATH'
13191
13192	case $cc_basename in
13193          CC*)
13194	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13195	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13196	    ;;
13197	  *)
13198	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13199	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13200	    ;;
13201	esac
13202      ;;
13203
13204      tandem*)
13205        case $cc_basename in
13206          NCC*)
13207	    # NonStop-UX NCC 3.20
13208	    # FIXME: insert proper C++ library support
13209	    ld_shlibs_CXX=no
13210	    ;;
13211          *)
13212	    # FIXME: insert proper C++ library support
13213	    ld_shlibs_CXX=no
13214	    ;;
13215        esac
13216        ;;
13217
13218      vxworks*)
13219        # FIXME: insert proper C++ library support
13220        ld_shlibs_CXX=no
13221        ;;
13222
13223      *)
13224        # FIXME: insert proper C++ library support
13225        ld_shlibs_CXX=no
13226        ;;
13227    esac
13228
13229    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13230$as_echo "$ld_shlibs_CXX" >&6; }
13231    test "$ld_shlibs_CXX" = no && can_build_shared=no
13232
13233    GCC_CXX="$GXX"
13234    LD_CXX="$LD"
13235
13236    ## CAVEAT EMPTOR:
13237    ## There is no encapsulation within the following macros, do not change
13238    ## the running order or otherwise move them around unless you know exactly
13239    ## what you are doing...
13240    # Dependencies to place before and after the object being linked:
13241predep_objects_CXX=
13242postdep_objects_CXX=
13243predeps_CXX=
13244postdeps_CXX=
13245compiler_lib_search_path_CXX=
13246
13247cat > conftest.$ac_ext <<_LT_EOF
13248class Foo
13249{
13250public:
13251  Foo (void) { a = 0; }
13252private:
13253  int a;
13254};
13255_LT_EOF
13256
13257if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13258  (eval $ac_compile) 2>&5
13259  ac_status=$?
13260  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13261  test $ac_status = 0; }; then
13262  # Parse the compiler output and extract the necessary
13263  # objects, libraries and library flags.
13264
13265  # Sentinel used to keep track of whether or not we are before
13266  # the conftest object file.
13267  pre_test_object_deps_done=no
13268
13269  for p in `eval "$output_verbose_link_cmd"`; do
13270    case $p in
13271
13272    -L* | -R* | -l*)
13273       # Some compilers place space between "-{L,R}" and the path.
13274       # Remove the space.
13275       if test $p = "-L" ||
13276          test $p = "-R"; then
13277	 prev=$p
13278	 continue
13279       else
13280	 prev=
13281       fi
13282
13283       if test "$pre_test_object_deps_done" = no; then
13284	 case $p in
13285	 -L* | -R*)
13286	   # Internal compiler library paths should come after those
13287	   # provided the user.  The postdeps already come after the
13288	   # user supplied libs so there is no need to process them.
13289	   if test -z "$compiler_lib_search_path_CXX"; then
13290	     compiler_lib_search_path_CXX="${prev}${p}"
13291	   else
13292	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13293	   fi
13294	   ;;
13295	 # The "-l" case would never come before the object being
13296	 # linked, so don't bother handling this case.
13297	 esac
13298       else
13299	 if test -z "$postdeps_CXX"; then
13300	   postdeps_CXX="${prev}${p}"
13301	 else
13302	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13303	 fi
13304       fi
13305       ;;
13306
13307    *.$objext)
13308       # This assumes that the test object file only shows up
13309       # once in the compiler output.
13310       if test "$p" = "conftest.$objext"; then
13311	 pre_test_object_deps_done=yes
13312	 continue
13313       fi
13314
13315       if test "$pre_test_object_deps_done" = no; then
13316	 if test -z "$predep_objects_CXX"; then
13317	   predep_objects_CXX="$p"
13318	 else
13319	   predep_objects_CXX="$predep_objects_CXX $p"
13320	 fi
13321       else
13322	 if test -z "$postdep_objects_CXX"; then
13323	   postdep_objects_CXX="$p"
13324	 else
13325	   postdep_objects_CXX="$postdep_objects_CXX $p"
13326	 fi
13327       fi
13328       ;;
13329
13330    *) ;; # Ignore the rest.
13331
13332    esac
13333  done
13334
13335  # Clean up.
13336  rm -f a.out a.exe
13337else
13338  echo "libtool.m4: error: problem compiling CXX test program"
13339fi
13340
13341$RM -f confest.$objext
13342
13343# PORTME: override above test on systems where it is broken
13344case $host_os in
13345interix[3-9]*)
13346  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13347  # hack all around it, let's just trust "g++" to DTRT.
13348  predep_objects_CXX=
13349  postdep_objects_CXX=
13350  postdeps_CXX=
13351  ;;
13352
13353linux*)
13354  case `$CC -V 2>&1 | sed 5q` in
13355  *Sun\ C*)
13356    # Sun C++ 5.9
13357
13358    # The more standards-conforming stlport4 library is
13359    # incompatible with the Cstd library. Avoid specifying
13360    # it if it's in CXXFLAGS. Ignore libCrun as
13361    # -library=stlport4 depends on it.
13362    case " $CXX $CXXFLAGS " in
13363    *" -library=stlport4 "*)
13364      solaris_use_stlport4=yes
13365      ;;
13366    esac
13367
13368    if test "$solaris_use_stlport4" != yes; then
13369      postdeps_CXX='-library=Cstd -library=Crun'
13370    fi
13371    ;;
13372  esac
13373  ;;
13374
13375solaris*)
13376  case $cc_basename in
13377  CC*)
13378    # The more standards-conforming stlport4 library is
13379    # incompatible with the Cstd library. Avoid specifying
13380    # it if it's in CXXFLAGS. Ignore libCrun as
13381    # -library=stlport4 depends on it.
13382    case " $CXX $CXXFLAGS " in
13383    *" -library=stlport4 "*)
13384      solaris_use_stlport4=yes
13385      ;;
13386    esac
13387
13388    # Adding this requires a known-good setup of shared libraries for
13389    # Sun compiler versions before 5.6, else PIC objects from an old
13390    # archive will be linked into the output, leading to subtle bugs.
13391    if test "$solaris_use_stlport4" != yes; then
13392      postdeps_CXX='-library=Cstd -library=Crun'
13393    fi
13394    ;;
13395  esac
13396  ;;
13397esac
13398
13399
13400case " $postdeps_CXX " in
13401*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13402esac
13403 compiler_lib_search_dirs_CXX=
13404if test -n "${compiler_lib_search_path_CXX}"; then
13405 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13406fi
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438    lt_prog_compiler_wl_CXX=
13439lt_prog_compiler_pic_CXX=
13440lt_prog_compiler_static_CXX=
13441
13442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13443$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13444
13445  # C++ specific cases for pic, static, wl, etc.
13446  if test "$GXX" = yes; then
13447    lt_prog_compiler_wl_CXX='-Wl,'
13448    lt_prog_compiler_static_CXX='-static'
13449
13450    case $host_os in
13451    aix*)
13452      # All AIX code is PIC.
13453      if test "$host_cpu" = ia64; then
13454	# AIX 5 now supports IA64 processor
13455	lt_prog_compiler_static_CXX='-Bstatic'
13456      fi
13457      ;;
13458
13459    amigaos*)
13460      case $host_cpu in
13461      powerpc)
13462            # see comment about AmigaOS4 .so support
13463            lt_prog_compiler_pic_CXX='-fPIC'
13464        ;;
13465      m68k)
13466            # FIXME: we need at least 68020 code to build shared libraries, but
13467            # adding the `-m68020' flag to GCC prevents building anything better,
13468            # like `-m68040'.
13469            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13470        ;;
13471      esac
13472      ;;
13473
13474    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13475      # PIC is the default for these OSes.
13476      ;;
13477    mingw* | cygwin* | os2* | pw32* | cegcc*)
13478      # This hack is so that the source file can tell whether it is being
13479      # built for inclusion in a dll (and should export symbols for example).
13480      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13481      # (--disable-auto-import) libraries
13482      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13483      ;;
13484    darwin* | rhapsody*)
13485      # PIC is the default on this platform
13486      # Common symbols not allowed in MH_DYLIB files
13487      lt_prog_compiler_pic_CXX='-fno-common'
13488      ;;
13489    *djgpp*)
13490      # DJGPP does not support shared libraries at all
13491      lt_prog_compiler_pic_CXX=
13492      ;;
13493    interix[3-9]*)
13494      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13495      # Instead, we relocate shared libraries at runtime.
13496      ;;
13497    sysv4*MP*)
13498      if test -d /usr/nec; then
13499	lt_prog_compiler_pic_CXX=-Kconform_pic
13500      fi
13501      ;;
13502    hpux*)
13503      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13504      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13505      # sets the default TLS model and affects inlining.
13506      case $host_cpu in
13507      hppa*64*)
13508	;;
13509      *)
13510	lt_prog_compiler_pic_CXX='-fPIC'
13511	;;
13512      esac
13513      ;;
13514    *qnx* | *nto*)
13515      # QNX uses GNU C++, but need to define -shared option too, otherwise
13516      # it will coredump.
13517      lt_prog_compiler_pic_CXX='-fPIC -shared'
13518      ;;
13519    *)
13520      lt_prog_compiler_pic_CXX='-fPIC'
13521      ;;
13522    esac
13523  else
13524    case $host_os in
13525      aix[4-9]*)
13526	# All AIX code is PIC.
13527	if test "$host_cpu" = ia64; then
13528	  # AIX 5 now supports IA64 processor
13529	  lt_prog_compiler_static_CXX='-Bstatic'
13530	else
13531	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13532	fi
13533	;;
13534      chorus*)
13535	case $cc_basename in
13536	cxch68*)
13537	  # Green Hills C++ Compiler
13538	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13539	  ;;
13540	esac
13541	;;
13542      dgux*)
13543	case $cc_basename in
13544	  ec++*)
13545	    lt_prog_compiler_pic_CXX='-KPIC'
13546	    ;;
13547	  ghcx*)
13548	    # Green Hills C++ Compiler
13549	    lt_prog_compiler_pic_CXX='-pic'
13550	    ;;
13551	  *)
13552	    ;;
13553	esac
13554	;;
13555      freebsd* | dragonfly*)
13556	# FreeBSD uses GNU C++
13557	;;
13558      hpux9* | hpux10* | hpux11*)
13559	case $cc_basename in
13560	  CC*)
13561	    lt_prog_compiler_wl_CXX='-Wl,'
13562	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13563	    if test "$host_cpu" != ia64; then
13564	      lt_prog_compiler_pic_CXX='+Z'
13565	    fi
13566	    ;;
13567	  aCC*)
13568	    lt_prog_compiler_wl_CXX='-Wl,'
13569	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13570	    case $host_cpu in
13571	    hppa*64*|ia64*)
13572	      # +Z the default
13573	      ;;
13574	    *)
13575	      lt_prog_compiler_pic_CXX='+Z'
13576	      ;;
13577	    esac
13578	    ;;
13579	  *)
13580	    ;;
13581	esac
13582	;;
13583      interix*)
13584	# This is c89, which is MS Visual C++ (no shared libs)
13585	# Anyone wants to do a port?
13586	;;
13587      irix5* | irix6* | nonstopux*)
13588	case $cc_basename in
13589	  CC*)
13590	    lt_prog_compiler_wl_CXX='-Wl,'
13591	    lt_prog_compiler_static_CXX='-non_shared'
13592	    # CC pic flag -KPIC is the default.
13593	    ;;
13594	  *)
13595	    ;;
13596	esac
13597	;;
13598      linux* | k*bsd*-gnu)
13599	case $cc_basename in
13600	  KCC*)
13601	    # KAI C++ Compiler
13602	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13603	    lt_prog_compiler_pic_CXX='-fPIC'
13604	    ;;
13605	  ecpc* )
13606	    # old Intel C++ for x86_64 which still supported -KPIC.
13607	    lt_prog_compiler_wl_CXX='-Wl,'
13608	    lt_prog_compiler_pic_CXX='-KPIC'
13609	    lt_prog_compiler_static_CXX='-static'
13610	    ;;
13611	  icpc* )
13612	    # Intel C++, used to be incompatible with GCC.
13613	    # ICC 10 doesn't accept -KPIC any more.
13614	    lt_prog_compiler_wl_CXX='-Wl,'
13615	    lt_prog_compiler_pic_CXX='-fPIC'
13616	    lt_prog_compiler_static_CXX='-static'
13617	    ;;
13618	  pgCC* | pgcpp*)
13619	    # Portland Group C++ compiler
13620	    lt_prog_compiler_wl_CXX='-Wl,'
13621	    lt_prog_compiler_pic_CXX='-fpic'
13622	    lt_prog_compiler_static_CXX='-Bstatic'
13623	    ;;
13624	  cxx*)
13625	    # Compaq C++
13626	    # Make sure the PIC flag is empty.  It appears that all Alpha
13627	    # Linux and Compaq Tru64 Unix objects are PIC.
13628	    lt_prog_compiler_pic_CXX=
13629	    lt_prog_compiler_static_CXX='-non_shared'
13630	    ;;
13631	  xlc* | xlC*)
13632	    # IBM XL 8.0 on PPC
13633	    lt_prog_compiler_wl_CXX='-Wl,'
13634	    lt_prog_compiler_pic_CXX='-qpic'
13635	    lt_prog_compiler_static_CXX='-qstaticlink'
13636	    ;;
13637	  *)
13638	    case `$CC -V 2>&1 | sed 5q` in
13639	    *Sun\ C*)
13640	      # Sun C++ 5.9
13641	      lt_prog_compiler_pic_CXX='-KPIC'
13642	      lt_prog_compiler_static_CXX='-Bstatic'
13643	      lt_prog_compiler_wl_CXX='-Qoption ld '
13644	      ;;
13645	    esac
13646	    ;;
13647	esac
13648	;;
13649      lynxos*)
13650	;;
13651      m88k*)
13652	;;
13653      mvs*)
13654	case $cc_basename in
13655	  cxx*)
13656	    lt_prog_compiler_pic_CXX='-W c,exportall'
13657	    ;;
13658	  *)
13659	    ;;
13660	esac
13661	;;
13662      netbsd*)
13663	;;
13664      *qnx* | *nto*)
13665        # QNX uses GNU C++, but need to define -shared option too, otherwise
13666        # it will coredump.
13667        lt_prog_compiler_pic_CXX='-fPIC -shared'
13668        ;;
13669      osf3* | osf4* | osf5*)
13670	case $cc_basename in
13671	  KCC*)
13672	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13673	    ;;
13674	  RCC*)
13675	    # Rational C++ 2.4.1
13676	    lt_prog_compiler_pic_CXX='-pic'
13677	    ;;
13678	  cxx*)
13679	    # Digital/Compaq C++
13680	    lt_prog_compiler_wl_CXX='-Wl,'
13681	    # Make sure the PIC flag is empty.  It appears that all Alpha
13682	    # Linux and Compaq Tru64 Unix objects are PIC.
13683	    lt_prog_compiler_pic_CXX=
13684	    lt_prog_compiler_static_CXX='-non_shared'
13685	    ;;
13686	  *)
13687	    ;;
13688	esac
13689	;;
13690      psos*)
13691	;;
13692      solaris*)
13693	case $cc_basename in
13694	  CC*)
13695	    # Sun C++ 4.2, 5.x and Centerline C++
13696	    lt_prog_compiler_pic_CXX='-KPIC'
13697	    lt_prog_compiler_static_CXX='-Bstatic'
13698	    lt_prog_compiler_wl_CXX='-Qoption ld '
13699	    ;;
13700	  gcx*)
13701	    # Green Hills C++ Compiler
13702	    lt_prog_compiler_pic_CXX='-PIC'
13703	    ;;
13704	  *)
13705	    ;;
13706	esac
13707	;;
13708      sunos4*)
13709	case $cc_basename in
13710	  CC*)
13711	    # Sun C++ 4.x
13712	    lt_prog_compiler_pic_CXX='-pic'
13713	    lt_prog_compiler_static_CXX='-Bstatic'
13714	    ;;
13715	  lcc*)
13716	    # Lucid
13717	    lt_prog_compiler_pic_CXX='-pic'
13718	    ;;
13719	  *)
13720	    ;;
13721	esac
13722	;;
13723      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13724	case $cc_basename in
13725	  CC*)
13726	    lt_prog_compiler_wl_CXX='-Wl,'
13727	    lt_prog_compiler_pic_CXX='-KPIC'
13728	    lt_prog_compiler_static_CXX='-Bstatic'
13729	    ;;
13730	esac
13731	;;
13732      tandem*)
13733	case $cc_basename in
13734	  NCC*)
13735	    # NonStop-UX NCC 3.20
13736	    lt_prog_compiler_pic_CXX='-KPIC'
13737	    ;;
13738	  *)
13739	    ;;
13740	esac
13741	;;
13742      vxworks*)
13743	;;
13744      *)
13745	lt_prog_compiler_can_build_shared_CXX=no
13746	;;
13747    esac
13748  fi
13749
13750case $host_os in
13751  # For platforms which do not support PIC, -DPIC is meaningless:
13752  *djgpp*)
13753    lt_prog_compiler_pic_CXX=
13754    ;;
13755  *)
13756    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13757    ;;
13758esac
13759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13760$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13761
13762
13763
13764#
13765# Check to make sure the PIC flag actually works.
13766#
13767if test -n "$lt_prog_compiler_pic_CXX"; then
13768  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13769$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13770if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13771  $as_echo_n "(cached) " >&6
13772else
13773  lt_cv_prog_compiler_pic_works_CXX=no
13774   ac_outfile=conftest.$ac_objext
13775   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13776   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13777   # Insert the option either (1) after the last *FLAGS variable, or
13778   # (2) before a word containing "conftest.", or (3) at the end.
13779   # Note that $ac_compile itself does not contain backslashes and begins
13780   # with a dollar sign (not a hyphen), so the echo should work correctly.
13781   # The option is referenced via a variable to avoid confusing sed.
13782   lt_compile=`echo "$ac_compile" | $SED \
13783   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13784   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13785   -e 's:$: $lt_compiler_flag:'`
13786   (eval echo "\"\$as_me:13786: $lt_compile\"" >&5)
13787   (eval "$lt_compile" 2>conftest.err)
13788   ac_status=$?
13789   cat conftest.err >&5
13790   echo "$as_me:13790: \$? = $ac_status" >&5
13791   if (exit $ac_status) && test -s "$ac_outfile"; then
13792     # The compiler can only warn and ignore the option if not recognized
13793     # So say no if there are warnings other than the usual output.
13794     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13795     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13796     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13797       lt_cv_prog_compiler_pic_works_CXX=yes
13798     fi
13799   fi
13800   $RM conftest*
13801
13802fi
13803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13804$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13805
13806if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13807    case $lt_prog_compiler_pic_CXX in
13808     "" | " "*) ;;
13809     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13810     esac
13811else
13812    lt_prog_compiler_pic_CXX=
13813     lt_prog_compiler_can_build_shared_CXX=no
13814fi
13815
13816fi
13817
13818
13819
13820#
13821# Check to make sure the static flag actually works.
13822#
13823wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13825$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13826if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13827  $as_echo_n "(cached) " >&6
13828else
13829  lt_cv_prog_compiler_static_works_CXX=no
13830   save_LDFLAGS="$LDFLAGS"
13831   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13832   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13833   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13834     # The linker can only warn and ignore the option if not recognized
13835     # So say no if there are warnings
13836     if test -s conftest.err; then
13837       # Append any errors to the config.log.
13838       cat conftest.err 1>&5
13839       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13840       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13841       if diff conftest.exp conftest.er2 >/dev/null; then
13842         lt_cv_prog_compiler_static_works_CXX=yes
13843       fi
13844     else
13845       lt_cv_prog_compiler_static_works_CXX=yes
13846     fi
13847   fi
13848   $RM -r conftest*
13849   LDFLAGS="$save_LDFLAGS"
13850
13851fi
13852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13853$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13854
13855if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13856    :
13857else
13858    lt_prog_compiler_static_CXX=
13859fi
13860
13861
13862
13863
13864    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13865$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13866if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13867  $as_echo_n "(cached) " >&6
13868else
13869  lt_cv_prog_compiler_c_o_CXX=no
13870   $RM -r conftest 2>/dev/null
13871   mkdir conftest
13872   cd conftest
13873   mkdir out
13874   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13875
13876   lt_compiler_flag="-o out/conftest2.$ac_objext"
13877   # Insert the option either (1) after the last *FLAGS variable, or
13878   # (2) before a word containing "conftest.", or (3) at the end.
13879   # Note that $ac_compile itself does not contain backslashes and begins
13880   # with a dollar sign (not a hyphen), so the echo should work correctly.
13881   lt_compile=`echo "$ac_compile" | $SED \
13882   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13883   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13884   -e 's:$: $lt_compiler_flag:'`
13885   (eval echo "\"\$as_me:13885: $lt_compile\"" >&5)
13886   (eval "$lt_compile" 2>out/conftest.err)
13887   ac_status=$?
13888   cat out/conftest.err >&5
13889   echo "$as_me:13889: \$? = $ac_status" >&5
13890   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13891   then
13892     # The compiler can only warn and ignore the option if not recognized
13893     # So say no if there are warnings
13894     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13895     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13896     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13897       lt_cv_prog_compiler_c_o_CXX=yes
13898     fi
13899   fi
13900   chmod u+w . 2>&5
13901   $RM conftest*
13902   # SGI C++ compiler will create directory out/ii_files/ for
13903   # template instantiation
13904   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13905   $RM out/* && rmdir out
13906   cd ..
13907   $RM -r conftest
13908   $RM conftest*
13909
13910fi
13911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13912$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13913
13914
13915
13916    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13917$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13918if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13919  $as_echo_n "(cached) " >&6
13920else
13921  lt_cv_prog_compiler_c_o_CXX=no
13922   $RM -r conftest 2>/dev/null
13923   mkdir conftest
13924   cd conftest
13925   mkdir out
13926   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13927
13928   lt_compiler_flag="-o out/conftest2.$ac_objext"
13929   # Insert the option either (1) after the last *FLAGS variable, or
13930   # (2) before a word containing "conftest.", or (3) at the end.
13931   # Note that $ac_compile itself does not contain backslashes and begins
13932   # with a dollar sign (not a hyphen), so the echo should work correctly.
13933   lt_compile=`echo "$ac_compile" | $SED \
13934   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13935   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13936   -e 's:$: $lt_compiler_flag:'`
13937   (eval echo "\"\$as_me:13937: $lt_compile\"" >&5)
13938   (eval "$lt_compile" 2>out/conftest.err)
13939   ac_status=$?
13940   cat out/conftest.err >&5
13941   echo "$as_me:13941: \$? = $ac_status" >&5
13942   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13943   then
13944     # The compiler can only warn and ignore the option if not recognized
13945     # So say no if there are warnings
13946     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13947     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13948     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13949       lt_cv_prog_compiler_c_o_CXX=yes
13950     fi
13951   fi
13952   chmod u+w . 2>&5
13953   $RM conftest*
13954   # SGI C++ compiler will create directory out/ii_files/ for
13955   # template instantiation
13956   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13957   $RM out/* && rmdir out
13958   cd ..
13959   $RM -r conftest
13960   $RM conftest*
13961
13962fi
13963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13964$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13965
13966
13967
13968
13969hard_links="nottested"
13970if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13971  # do not overwrite the value of need_locks provided by the user
13972  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13973$as_echo_n "checking if we can lock with hard links... " >&6; }
13974  hard_links=yes
13975  $RM conftest*
13976  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13977  touch conftest.a
13978  ln conftest.a conftest.b 2>&5 || hard_links=no
13979  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13981$as_echo "$hard_links" >&6; }
13982  if test "$hard_links" = no; then
13983    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13984$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13985    need_locks=warn
13986  fi
13987else
13988  need_locks=no
13989fi
13990
13991
13992
13993    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13994$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13995
13996  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13997  case $host_os in
13998  aix[4-9]*)
13999    # If we're using GNU nm, then we don't want the "-C" option.
14000    # -C means demangle to AIX nm, but means don't demangle with GNU nm
14001    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14002      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14003    else
14004      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14005    fi
14006    ;;
14007  pw32*)
14008    export_symbols_cmds_CXX="$ltdll_cmds"
14009  ;;
14010  cygwin* | mingw* | cegcc*)
14011    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14012  ;;
14013  *)
14014    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14015  ;;
14016  esac
14017  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14018
14019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14020$as_echo "$ld_shlibs_CXX" >&6; }
14021test "$ld_shlibs_CXX" = no && can_build_shared=no
14022
14023with_gnu_ld_CXX=$with_gnu_ld
14024
14025
14026
14027
14028
14029
14030#
14031# Do we need to explicitly link libc?
14032#
14033case "x$archive_cmds_need_lc_CXX" in
14034x|xyes)
14035  # Assume -lc should be added
14036  archive_cmds_need_lc_CXX=yes
14037
14038  if test "$enable_shared" = yes && test "$GCC" = yes; then
14039    case $archive_cmds_CXX in
14040    *'~'*)
14041      # FIXME: we may have to deal with multi-command sequences.
14042      ;;
14043    '$CC '*)
14044      # Test whether the compiler implicitly links with -lc since on some
14045      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14046      # to ld, don't add -lc before -lgcc.
14047      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14048$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14049      $RM conftest*
14050      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14051
14052      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14053  (eval $ac_compile) 2>&5
14054  ac_status=$?
14055  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14056  test $ac_status = 0; } 2>conftest.err; then
14057        soname=conftest
14058        lib=conftest
14059        libobjs=conftest.$ac_objext
14060        deplibs=
14061        wl=$lt_prog_compiler_wl_CXX
14062	pic_flag=$lt_prog_compiler_pic_CXX
14063        compiler_flags=-v
14064        linker_flags=-v
14065        verstring=
14066        output_objdir=.
14067        libname=conftest
14068        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14069        allow_undefined_flag_CXX=
14070        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14071  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14072  ac_status=$?
14073  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14074  test $ac_status = 0; }
14075        then
14076	  archive_cmds_need_lc_CXX=no
14077        else
14078	  archive_cmds_need_lc_CXX=yes
14079        fi
14080        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14081      else
14082        cat conftest.err 1>&5
14083      fi
14084      $RM conftest*
14085      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14086$as_echo "$archive_cmds_need_lc_CXX" >&6; }
14087      ;;
14088    esac
14089  fi
14090  ;;
14091esac
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14157$as_echo_n "checking dynamic linker characteristics... " >&6; }
14158
14159library_names_spec=
14160libname_spec='lib$name'
14161soname_spec=
14162shrext_cmds=".so"
14163postinstall_cmds=
14164postuninstall_cmds=
14165finish_cmds=
14166finish_eval=
14167shlibpath_var=
14168shlibpath_overrides_runpath=unknown
14169version_type=none
14170dynamic_linker="$host_os ld.so"
14171sys_lib_dlsearch_path_spec="/lib /usr/lib"
14172need_lib_prefix=unknown
14173hardcode_into_libs=no
14174
14175# when you set need_version to no, make sure it does not cause -set_version
14176# flags to be left without arguments
14177need_version=unknown
14178
14179case $host_os in
14180aix3*)
14181  version_type=linux
14182  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14183  shlibpath_var=LIBPATH
14184
14185  # AIX 3 has no versioning support, so we append a major version to the name.
14186  soname_spec='${libname}${release}${shared_ext}$major'
14187  ;;
14188
14189aix[4-9]*)
14190  version_type=linux
14191  need_lib_prefix=no
14192  need_version=no
14193  hardcode_into_libs=yes
14194  if test "$host_cpu" = ia64; then
14195    # AIX 5 supports IA64
14196    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14197    shlibpath_var=LD_LIBRARY_PATH
14198  else
14199    # With GCC up to 2.95.x, collect2 would create an import file
14200    # for dependence libraries.  The import file would start with
14201    # the line `#! .'.  This would cause the generated library to
14202    # depend on `.', always an invalid library.  This was fixed in
14203    # development snapshots of GCC prior to 3.0.
14204    case $host_os in
14205      aix4 | aix4.[01] | aix4.[01].*)
14206      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14207	   echo ' yes '
14208	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14209	:
14210      else
14211	can_build_shared=no
14212      fi
14213      ;;
14214    esac
14215    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14216    # soname into executable. Probably we can add versioning support to
14217    # collect2, so additional links can be useful in future.
14218    if test "$aix_use_runtimelinking" = yes; then
14219      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14220      # instead of lib<name>.a to let people know that these are not
14221      # typical AIX shared libraries.
14222      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14223    else
14224      # We preserve .a as extension for shared libraries through AIX4.2
14225      # and later when we are not doing run time linking.
14226      library_names_spec='${libname}${release}.a $libname.a'
14227      soname_spec='${libname}${release}${shared_ext}$major'
14228    fi
14229    shlibpath_var=LIBPATH
14230  fi
14231  ;;
14232
14233amigaos*)
14234  case $host_cpu in
14235  powerpc)
14236    # Since July 2007 AmigaOS4 officially supports .so libraries.
14237    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14238    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14239    ;;
14240  m68k)
14241    library_names_spec='$libname.ixlibrary $libname.a'
14242    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14243    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'
14244    ;;
14245  esac
14246  ;;
14247
14248beos*)
14249  library_names_spec='${libname}${shared_ext}'
14250  dynamic_linker="$host_os ld.so"
14251  shlibpath_var=LIBRARY_PATH
14252  ;;
14253
14254bsdi[45]*)
14255  version_type=linux
14256  need_version=no
14257  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14258  soname_spec='${libname}${release}${shared_ext}$major'
14259  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14260  shlibpath_var=LD_LIBRARY_PATH
14261  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14262  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14263  # the default ld.so.conf also contains /usr/contrib/lib and
14264  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14265  # libtool to hard-code these into programs
14266  ;;
14267
14268cygwin* | mingw* | pw32* | cegcc*)
14269  version_type=windows
14270  shrext_cmds=".dll"
14271  need_version=no
14272  need_lib_prefix=no
14273
14274  case $GCC,$host_os in
14275  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14276    library_names_spec='$libname.dll.a'
14277    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14278    postinstall_cmds='base_file=`basename \${file}`~
14279      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14280      dldir=$destdir/`dirname \$dlpath`~
14281      test -d \$dldir || mkdir -p \$dldir~
14282      $install_prog $dir/$dlname \$dldir/$dlname~
14283      chmod a+x \$dldir/$dlname~
14284      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14285        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14286      fi'
14287    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14288      dlpath=$dir/\$dldll~
14289       $RM \$dlpath'
14290    shlibpath_overrides_runpath=yes
14291
14292    case $host_os in
14293    cygwin*)
14294      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14295      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14296      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14297      ;;
14298    mingw* | cegcc*)
14299      # MinGW DLLs use traditional 'lib' prefix
14300      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14301      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14302      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14303        # It is most probably a Windows format PATH printed by
14304        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14305        # path with ; separators, and with drive letters. We can handle the
14306        # drive letters (cygwin fileutils understands them), so leave them,
14307        # especially as we might pass files found there to a mingw objdump,
14308        # which wouldn't understand a cygwinified path. Ahh.
14309        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14310      else
14311        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14312      fi
14313      ;;
14314    pw32*)
14315      # pw32 DLLs use 'pw' prefix rather than 'lib'
14316      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14317      ;;
14318    esac
14319    ;;
14320
14321  *)
14322    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14323    ;;
14324  esac
14325  dynamic_linker='Win32 ld.exe'
14326  # FIXME: first we should search . and the directory the executable is in
14327  shlibpath_var=PATH
14328  ;;
14329
14330darwin* | rhapsody*)
14331  dynamic_linker="$host_os dyld"
14332  version_type=darwin
14333  need_lib_prefix=no
14334  need_version=no
14335  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14336  soname_spec='${libname}${release}${major}$shared_ext'
14337  shlibpath_overrides_runpath=yes
14338  shlibpath_var=DYLD_LIBRARY_PATH
14339  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14340
14341  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14342  ;;
14343
14344dgux*)
14345  version_type=linux
14346  need_lib_prefix=no
14347  need_version=no
14348  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14349  soname_spec='${libname}${release}${shared_ext}$major'
14350  shlibpath_var=LD_LIBRARY_PATH
14351  ;;
14352
14353freebsd1*)
14354  dynamic_linker=no
14355  ;;
14356
14357freebsd* | dragonfly*)
14358  # DragonFly does not have aout.  When/if they implement a new
14359  # versioning mechanism, adjust this.
14360  if test -x /usr/bin/objformat; then
14361    objformat=`/usr/bin/objformat`
14362  else
14363    case $host_os in
14364    freebsd[123]*) objformat=aout ;;
14365    *) objformat=elf ;;
14366    esac
14367  fi
14368  version_type=freebsd-$objformat
14369  case $version_type in
14370    freebsd-elf*)
14371      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14372      need_version=no
14373      need_lib_prefix=no
14374      ;;
14375    freebsd-*)
14376      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14377      need_version=yes
14378      ;;
14379  esac
14380  shlibpath_var=LD_LIBRARY_PATH
14381  case $host_os in
14382  freebsd2*)
14383    shlibpath_overrides_runpath=yes
14384    ;;
14385  freebsd3.[01]* | freebsdelf3.[01]*)
14386    shlibpath_overrides_runpath=yes
14387    hardcode_into_libs=yes
14388    ;;
14389  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14390  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14391    shlibpath_overrides_runpath=no
14392    hardcode_into_libs=yes
14393    ;;
14394  *) # from 4.6 on, and DragonFly
14395    shlibpath_overrides_runpath=yes
14396    hardcode_into_libs=yes
14397    ;;
14398  esac
14399  ;;
14400
14401gnu*)
14402  version_type=linux
14403  need_lib_prefix=no
14404  need_version=no
14405  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14406  soname_spec='${libname}${release}${shared_ext}$major'
14407  shlibpath_var=LD_LIBRARY_PATH
14408  hardcode_into_libs=yes
14409  ;;
14410
14411hpux9* | hpux10* | hpux11*)
14412  # Give a soname corresponding to the major version so that dld.sl refuses to
14413  # link against other versions.
14414  version_type=sunos
14415  need_lib_prefix=no
14416  need_version=no
14417  case $host_cpu in
14418  ia64*)
14419    shrext_cmds='.so'
14420    hardcode_into_libs=yes
14421    dynamic_linker="$host_os dld.so"
14422    shlibpath_var=LD_LIBRARY_PATH
14423    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14424    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14425    soname_spec='${libname}${release}${shared_ext}$major'
14426    if test "X$HPUX_IA64_MODE" = X32; then
14427      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14428    else
14429      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14430    fi
14431    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14432    ;;
14433  hppa*64*)
14434    shrext_cmds='.sl'
14435    hardcode_into_libs=yes
14436    dynamic_linker="$host_os dld.sl"
14437    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14438    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14439    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14440    soname_spec='${libname}${release}${shared_ext}$major'
14441    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14442    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14443    ;;
14444  *)
14445    shrext_cmds='.sl'
14446    dynamic_linker="$host_os dld.sl"
14447    shlibpath_var=SHLIB_PATH
14448    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14449    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14450    soname_spec='${libname}${release}${shared_ext}$major'
14451    ;;
14452  esac
14453  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14454  postinstall_cmds='chmod 555 $lib'
14455  ;;
14456
14457interix[3-9]*)
14458  version_type=linux
14459  need_lib_prefix=no
14460  need_version=no
14461  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14462  soname_spec='${libname}${release}${shared_ext}$major'
14463  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14464  shlibpath_var=LD_LIBRARY_PATH
14465  shlibpath_overrides_runpath=no
14466  hardcode_into_libs=yes
14467  ;;
14468
14469irix5* | irix6* | nonstopux*)
14470  case $host_os in
14471    nonstopux*) version_type=nonstopux ;;
14472    *)
14473	if test "$lt_cv_prog_gnu_ld" = yes; then
14474		version_type=linux
14475	else
14476		version_type=irix
14477	fi ;;
14478  esac
14479  need_lib_prefix=no
14480  need_version=no
14481  soname_spec='${libname}${release}${shared_ext}$major'
14482  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14483  case $host_os in
14484  irix5* | nonstopux*)
14485    libsuff= shlibsuff=
14486    ;;
14487  *)
14488    case $LD in # libtool.m4 will add one of these switches to LD
14489    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14490      libsuff= shlibsuff= libmagic=32-bit;;
14491    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14492      libsuff=32 shlibsuff=N32 libmagic=N32;;
14493    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14494      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14495    *) libsuff= shlibsuff= libmagic=never-match;;
14496    esac
14497    ;;
14498  esac
14499  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14500  shlibpath_overrides_runpath=no
14501  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14502  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14503  hardcode_into_libs=yes
14504  ;;
14505
14506# No shared lib support for Linux oldld, aout, or coff.
14507linux*oldld* | linux*aout* | linux*coff*)
14508  dynamic_linker=no
14509  ;;
14510
14511# This must be Linux ELF.
14512linux* | k*bsd*-gnu)
14513  version_type=linux
14514  need_lib_prefix=no
14515  need_version=no
14516  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14517  soname_spec='${libname}${release}${shared_ext}$major'
14518  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14519  shlibpath_var=LD_LIBRARY_PATH
14520  shlibpath_overrides_runpath=no
14521  # Some binutils ld are patched to set DT_RUNPATH
14522  save_LDFLAGS=$LDFLAGS
14523  save_libdir=$libdir
14524  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14525       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14527/* end confdefs.h.  */
14528
14529int
14530main ()
14531{
14532
14533  ;
14534  return 0;
14535}
14536_ACEOF
14537if ac_fn_cxx_try_link "$LINENO"; then :
14538  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14539  shlibpath_overrides_runpath=yes
14540fi
14541fi
14542rm -f core conftest.err conftest.$ac_objext \
14543    conftest$ac_exeext conftest.$ac_ext
14544  LDFLAGS=$save_LDFLAGS
14545  libdir=$save_libdir
14546
14547  # This implies no fast_install, which is unacceptable.
14548  # Some rework will be needed to allow for fast_install
14549  # before this can be enabled.
14550  hardcode_into_libs=yes
14551
14552  # Append ld.so.conf contents to the search path
14553  if test -f /etc/ld.so.conf; then
14554    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' ' '`
14555    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14556  fi
14557
14558  # We used to test for /lib/ld.so.1 and disable shared libraries on
14559  # powerpc, because MkLinux only supported shared libraries with the
14560  # GNU dynamic linker.  Since this was broken with cross compilers,
14561  # most powerpc-linux boxes support dynamic linking these days and
14562  # people can always --disable-shared, the test was removed, and we
14563  # assume the GNU/Linux dynamic linker is in use.
14564  dynamic_linker='GNU/Linux ld.so'
14565  ;;
14566
14567netbsd*)
14568  version_type=sunos
14569  need_lib_prefix=no
14570  need_version=no
14571  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14572    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14573    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14574    dynamic_linker='NetBSD (a.out) ld.so'
14575  else
14576    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14577    soname_spec='${libname}${release}${shared_ext}$major'
14578    dynamic_linker='NetBSD ld.elf_so'
14579  fi
14580  shlibpath_var=LD_LIBRARY_PATH
14581  shlibpath_overrides_runpath=yes
14582  hardcode_into_libs=yes
14583  ;;
14584
14585newsos6)
14586  version_type=linux
14587  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14588  shlibpath_var=LD_LIBRARY_PATH
14589  shlibpath_overrides_runpath=yes
14590  ;;
14591
14592*nto* | *qnx*)
14593  version_type=qnx
14594  need_lib_prefix=no
14595  need_version=no
14596  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14597  soname_spec='${libname}${release}${shared_ext}$major'
14598  shlibpath_var=LD_LIBRARY_PATH
14599  shlibpath_overrides_runpath=no
14600  hardcode_into_libs=yes
14601  dynamic_linker='ldqnx.so'
14602  ;;
14603
14604openbsd*)
14605  version_type=sunos
14606  sys_lib_dlsearch_path_spec="/usr/lib"
14607  need_lib_prefix=no
14608  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14609  case $host_os in
14610    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
14611    *)				need_version=no  ;;
14612  esac
14613  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14614  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14615  shlibpath_var=LD_LIBRARY_PATH
14616  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14617    case $host_os in
14618      openbsd2.[89] | openbsd2.[89].*)
14619	shlibpath_overrides_runpath=no
14620	;;
14621      *)
14622	shlibpath_overrides_runpath=yes
14623	;;
14624      esac
14625  else
14626    shlibpath_overrides_runpath=yes
14627  fi
14628  ;;
14629
14630os2*)
14631  libname_spec='$name'
14632  shrext_cmds=".dll"
14633  need_lib_prefix=no
14634  library_names_spec='$libname${shared_ext} $libname.a'
14635  dynamic_linker='OS/2 ld.exe'
14636  shlibpath_var=LIBPATH
14637  ;;
14638
14639osf3* | osf4* | osf5*)
14640  version_type=osf
14641  need_lib_prefix=no
14642  need_version=no
14643  soname_spec='${libname}${release}${shared_ext}$major'
14644  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14645  shlibpath_var=LD_LIBRARY_PATH
14646  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14647  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14648  ;;
14649
14650rdos*)
14651  dynamic_linker=no
14652  ;;
14653
14654solaris*)
14655  version_type=linux
14656  need_lib_prefix=no
14657  need_version=no
14658  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14659  soname_spec='${libname}${release}${shared_ext}$major'
14660  shlibpath_var=LD_LIBRARY_PATH
14661  shlibpath_overrides_runpath=yes
14662  hardcode_into_libs=yes
14663  # ldd complains unless libraries are executable
14664  postinstall_cmds='chmod +x $lib'
14665  ;;
14666
14667sunos4*)
14668  version_type=sunos
14669  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14670  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14671  shlibpath_var=LD_LIBRARY_PATH
14672  shlibpath_overrides_runpath=yes
14673  if test "$with_gnu_ld" = yes; then
14674    need_lib_prefix=no
14675  fi
14676  need_version=yes
14677  ;;
14678
14679sysv4 | sysv4.3*)
14680  version_type=linux
14681  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14682  soname_spec='${libname}${release}${shared_ext}$major'
14683  shlibpath_var=LD_LIBRARY_PATH
14684  case $host_vendor in
14685    sni)
14686      shlibpath_overrides_runpath=no
14687      need_lib_prefix=no
14688      runpath_var=LD_RUN_PATH
14689      ;;
14690    siemens)
14691      need_lib_prefix=no
14692      ;;
14693    motorola)
14694      need_lib_prefix=no
14695      need_version=no
14696      shlibpath_overrides_runpath=no
14697      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14698      ;;
14699  esac
14700  ;;
14701
14702sysv4*MP*)
14703  if test -d /usr/nec ;then
14704    version_type=linux
14705    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14706    soname_spec='$libname${shared_ext}.$major'
14707    shlibpath_var=LD_LIBRARY_PATH
14708  fi
14709  ;;
14710
14711sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14712  version_type=freebsd-elf
14713  need_lib_prefix=no
14714  need_version=no
14715  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14716  soname_spec='${libname}${release}${shared_ext}$major'
14717  shlibpath_var=LD_LIBRARY_PATH
14718  shlibpath_overrides_runpath=yes
14719  hardcode_into_libs=yes
14720  if test "$with_gnu_ld" = yes; then
14721    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14722  else
14723    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14724    case $host_os in
14725      sco3.2v5*)
14726        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14727	;;
14728    esac
14729  fi
14730  sys_lib_dlsearch_path_spec='/usr/lib'
14731  ;;
14732
14733tpf*)
14734  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14735  version_type=linux
14736  need_lib_prefix=no
14737  need_version=no
14738  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14739  shlibpath_var=LD_LIBRARY_PATH
14740  shlibpath_overrides_runpath=no
14741  hardcode_into_libs=yes
14742  ;;
14743
14744uts4*)
14745  version_type=linux
14746  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14747  soname_spec='${libname}${release}${shared_ext}$major'
14748  shlibpath_var=LD_LIBRARY_PATH
14749  ;;
14750
14751*)
14752  dynamic_linker=no
14753  ;;
14754esac
14755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14756$as_echo "$dynamic_linker" >&6; }
14757test "$dynamic_linker" = no && can_build_shared=no
14758
14759variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14760if test "$GCC" = yes; then
14761  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14762fi
14763
14764if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14765  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14766fi
14767if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14768  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14769fi
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14807$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14808hardcode_action_CXX=
14809if test -n "$hardcode_libdir_flag_spec_CXX" ||
14810   test -n "$runpath_var_CXX" ||
14811   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14812
14813  # We can hardcode non-existent directories.
14814  if test "$hardcode_direct_CXX" != no &&
14815     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14816     # have to relink, otherwise we might link with an installed library
14817     # when we should be linking with a yet-to-be-installed one
14818     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14819     test "$hardcode_minus_L_CXX" != no; then
14820    # Linking always hardcodes the temporary library directory.
14821    hardcode_action_CXX=relink
14822  else
14823    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14824    hardcode_action_CXX=immediate
14825  fi
14826else
14827  # We cannot hardcode anything, or else we can only hardcode existing
14828  # directories.
14829  hardcode_action_CXX=unsupported
14830fi
14831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14832$as_echo "$hardcode_action_CXX" >&6; }
14833
14834if test "$hardcode_action_CXX" = relink ||
14835   test "$inherit_rpath_CXX" = yes; then
14836  # Fast installation is not supported
14837  enable_fast_install=no
14838elif test "$shlibpath_overrides_runpath" = yes ||
14839     test "$enable_shared" = no; then
14840  # Fast installation is not necessary
14841  enable_fast_install=needless
14842fi
14843
14844
14845
14846
14847
14848
14849
14850  fi # test -n "$compiler"
14851
14852  CC=$lt_save_CC
14853  LDCXX=$LD
14854  LD=$lt_save_LD
14855  GCC=$lt_save_GCC
14856  with_gnu_ld=$lt_save_with_gnu_ld
14857  lt_cv_path_LDCXX=$lt_cv_path_LD
14858  lt_cv_path_LD=$lt_save_path_LD
14859  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14860  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14861fi # test "$_lt_caught_CXX_error" != yes
14862
14863ac_ext=c
14864ac_cpp='$CPP $CPPFLAGS'
14865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14867ac_compiler_gnu=$ac_cv_c_compiler_gnu
14868
14869
14870
14871# Enable support for silent build rules
14872# Check whether --enable-silent-rules was given.
14873if test "${enable_silent_rules+set}" = set; then :
14874  enableval=$enable_silent_rules;
14875fi
14876
14877case $enable_silent_rules in
14878yes) AM_DEFAULT_VERBOSITY=0;;
14879no)  AM_DEFAULT_VERBOSITY=1;;
14880*)   AM_DEFAULT_VERBOSITY=1;;
14881esac
14882AM_BACKSLASH='\'
14883
14884
14885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lc" >&5
14886$as_echo_n "checking for main in -lc... " >&6; }
14887if test "${ac_cv_lib_c_main+set}" = set; then :
14888  $as_echo_n "(cached) " >&6
14889else
14890  ac_check_lib_save_LIBS=$LIBS
14891LIBS="-lc  $LIBS"
14892cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14893/* end confdefs.h.  */
14894
14895
14896int
14897main ()
14898{
14899return main ();
14900  ;
14901  return 0;
14902}
14903_ACEOF
14904if ac_fn_c_try_link "$LINENO"; then :
14905  ac_cv_lib_c_main=yes
14906else
14907  ac_cv_lib_c_main=no
14908fi
14909rm -f core conftest.err conftest.$ac_objext \
14910    conftest$ac_exeext conftest.$ac_ext
14911LIBS=$ac_check_lib_save_LIBS
14912fi
14913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_main" >&5
14914$as_echo "$ac_cv_lib_c_main" >&6; }
14915if test "x$ac_cv_lib_c_main" = x""yes; then :
14916  cat >>confdefs.h <<_ACEOF
14917#define HAVE_LIBC 1
14918_ACEOF
14919
14920  LIBS="-lc $LIBS"
14921
14922fi
14923
14924
14925case "${host_os}" in
14926    cygwin* | mingw32* | beos* | darwin*)
14927        ;;
14928    *)
14929	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
14930$as_echo_n "checking for sin in -lm... " >&6; }
14931if test "${ac_cv_lib_m_sin+set}" = set; then :
14932  $as_echo_n "(cached) " >&6
14933else
14934  ac_check_lib_save_LIBS=$LIBS
14935LIBS="-lm  $LIBS"
14936cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14937/* end confdefs.h.  */
14938
14939/* Override any GCC internal prototype to avoid an error.
14940   Use char because int might match the return type of a GCC
14941   builtin and then its argument prototype would still apply.  */
14942#ifdef __cplusplus
14943extern "C"
14944#endif
14945char sin ();
14946int
14947main ()
14948{
14949return sin ();
14950  ;
14951  return 0;
14952}
14953_ACEOF
14954if ac_fn_c_try_link "$LINENO"; then :
14955  ac_cv_lib_m_sin=yes
14956else
14957  ac_cv_lib_m_sin=no
14958fi
14959rm -f core conftest.err conftest.$ac_objext \
14960    conftest$ac_exeext conftest.$ac_ext
14961LIBS=$ac_check_lib_save_LIBS
14962fi
14963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
14964$as_echo "$ac_cv_lib_m_sin" >&6; }
14965if test "x$ac_cv_lib_m_sin" = x""yes; then :
14966  cat >>confdefs.h <<_ACEOF
14967#define HAVE_LIBM 1
14968_ACEOF
14969
14970  LIBS="-lm $LIBS"
14971
14972fi
14973
14974        ;;
14975esac
14976
14977for ac_header in assert.h fcntl.h io.h limits.h malloc.h search.h sys/time.h unistd.h
14978do :
14979  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14980ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14981eval as_val=\$$as_ac_Header
14982   if test "x$as_val" = x""yes; then :
14983  cat >>confdefs.h <<_ACEOF
14984#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14985_ACEOF
14986
14987fi
14988
14989done
14990
14991
14992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14993$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14994if test "${ac_cv_c_const+set}" = set; then :
14995  $as_echo_n "(cached) " >&6
14996else
14997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14998/* end confdefs.h.  */
14999
15000int
15001main ()
15002{
15003/* FIXME: Include the comments suggested by Paul. */
15004#ifndef __cplusplus
15005  /* Ultrix mips cc rejects this.  */
15006  typedef int charset[2];
15007  const charset cs;
15008  /* SunOS 4.1.1 cc rejects this.  */
15009  char const *const *pcpcc;
15010  char **ppc;
15011  /* NEC SVR4.0.2 mips cc rejects this.  */
15012  struct point {int x, y;};
15013  static struct point const zero = {0,0};
15014  /* AIX XL C 1.02.0.0 rejects this.
15015     It does not let you subtract one const X* pointer from another in
15016     an arm of an if-expression whose if-part is not a constant
15017     expression */
15018  const char *g = "string";
15019  pcpcc = &g + (g ? g-g : 0);
15020  /* HPUX 7.0 cc rejects these. */
15021  ++pcpcc;
15022  ppc = (char**) pcpcc;
15023  pcpcc = (char const *const *) ppc;
15024  { /* SCO 3.2v4 cc rejects this.  */
15025    char *t;
15026    char const *s = 0 ? (char *) 0 : (char const *) 0;
15027
15028    *t++ = 0;
15029    if (s) return 0;
15030  }
15031  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
15032    int x[] = {25, 17};
15033    const int *foo = &x[0];
15034    ++foo;
15035  }
15036  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15037    typedef const int *iptr;
15038    iptr p = 0;
15039    ++p;
15040  }
15041  { /* AIX XL C 1.02.0.0 rejects this saying
15042       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15043    struct s { int j; const int *ap[3]; };
15044    struct s *b; b->j = 5;
15045  }
15046  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15047    const int foo = 10;
15048    if (!foo) return 0;
15049  }
15050  return !cs[0] && !zero.x;
15051#endif
15052
15053  ;
15054  return 0;
15055}
15056_ACEOF
15057if ac_fn_c_try_compile "$LINENO"; then :
15058  ac_cv_c_const=yes
15059else
15060  ac_cv_c_const=no
15061fi
15062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15063fi
15064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15065$as_echo "$ac_cv_c_const" >&6; }
15066if test $ac_cv_c_const = no; then
15067
15068$as_echo "#define const /**/" >>confdefs.h
15069
15070fi
15071
15072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15073$as_echo_n "checking for inline... " >&6; }
15074if test "${ac_cv_c_inline+set}" = set; then :
15075  $as_echo_n "(cached) " >&6
15076else
15077  ac_cv_c_inline=no
15078for ac_kw in inline __inline__ __inline; do
15079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15080/* end confdefs.h.  */
15081#ifndef __cplusplus
15082typedef int foo_t;
15083static $ac_kw foo_t static_foo () {return 0; }
15084$ac_kw foo_t foo () {return 0; }
15085#endif
15086
15087_ACEOF
15088if ac_fn_c_try_compile "$LINENO"; then :
15089  ac_cv_c_inline=$ac_kw
15090fi
15091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15092  test "$ac_cv_c_inline" != no && break
15093done
15094
15095fi
15096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15097$as_echo "$ac_cv_c_inline" >&6; }
15098
15099case $ac_cv_c_inline in
15100  inline | yes) ;;
15101  *)
15102    case $ac_cv_c_inline in
15103      no) ac_val=;;
15104      *) ac_val=$ac_cv_c_inline;;
15105    esac
15106    cat >>confdefs.h <<_ACEOF
15107#ifndef __cplusplus
15108#define inline $ac_val
15109#endif
15110_ACEOF
15111    ;;
15112esac
15113
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15115$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15116if test "${ac_cv_c_bigendian+set}" = set; then :
15117  $as_echo_n "(cached) " >&6
15118else
15119  ac_cv_c_bigendian=unknown
15120    # See if we're dealing with a universal compiler.
15121    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15122/* end confdefs.h.  */
15123#ifndef __APPLE_CC__
15124	       not a universal capable compiler
15125	     #endif
15126	     typedef int dummy;
15127
15128_ACEOF
15129if ac_fn_c_try_compile "$LINENO"; then :
15130
15131	# Check for potential -arch flags.  It is not universal unless
15132	# there are at least two -arch flags with different values.
15133	ac_arch=
15134	ac_prev=
15135	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15136	 if test -n "$ac_prev"; then
15137	   case $ac_word in
15138	     i?86 | x86_64 | ppc | ppc64)
15139	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15140		 ac_arch=$ac_word
15141	       else
15142		 ac_cv_c_bigendian=universal
15143		 break
15144	       fi
15145	       ;;
15146	   esac
15147	   ac_prev=
15148	 elif test "x$ac_word" = "x-arch"; then
15149	   ac_prev=arch
15150	 fi
15151       done
15152fi
15153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15154    if test $ac_cv_c_bigendian = unknown; then
15155      # See if sys/param.h defines the BYTE_ORDER macro.
15156      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15157/* end confdefs.h.  */
15158#include <sys/types.h>
15159	     #include <sys/param.h>
15160
15161int
15162main ()
15163{
15164#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15165		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15166		     && LITTLE_ENDIAN)
15167	      bogus endian macros
15168	     #endif
15169
15170  ;
15171  return 0;
15172}
15173_ACEOF
15174if ac_fn_c_try_compile "$LINENO"; then :
15175  # It does; now see whether it defined to BIG_ENDIAN or not.
15176	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15177/* end confdefs.h.  */
15178#include <sys/types.h>
15179		#include <sys/param.h>
15180
15181int
15182main ()
15183{
15184#if BYTE_ORDER != BIG_ENDIAN
15185		 not big endian
15186		#endif
15187
15188  ;
15189  return 0;
15190}
15191_ACEOF
15192if ac_fn_c_try_compile "$LINENO"; then :
15193  ac_cv_c_bigendian=yes
15194else
15195  ac_cv_c_bigendian=no
15196fi
15197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15198fi
15199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15200    fi
15201    if test $ac_cv_c_bigendian = unknown; then
15202      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15203      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15204/* end confdefs.h.  */
15205#include <limits.h>
15206
15207int
15208main ()
15209{
15210#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15211	      bogus endian macros
15212	     #endif
15213
15214  ;
15215  return 0;
15216}
15217_ACEOF
15218if ac_fn_c_try_compile "$LINENO"; then :
15219  # It does; now see whether it defined to _BIG_ENDIAN or not.
15220	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15221/* end confdefs.h.  */
15222#include <limits.h>
15223
15224int
15225main ()
15226{
15227#ifndef _BIG_ENDIAN
15228		 not big endian
15229		#endif
15230
15231  ;
15232  return 0;
15233}
15234_ACEOF
15235if ac_fn_c_try_compile "$LINENO"; then :
15236  ac_cv_c_bigendian=yes
15237else
15238  ac_cv_c_bigendian=no
15239fi
15240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15241fi
15242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15243    fi
15244    if test $ac_cv_c_bigendian = unknown; then
15245      # Compile a test program.
15246      if test "$cross_compiling" = yes; then :
15247  # Try to guess by grepping values from an object file.
15248	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15249/* end confdefs.h.  */
15250short int ascii_mm[] =
15251		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15252		short int ascii_ii[] =
15253		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15254		int use_ascii (int i) {
15255		  return ascii_mm[i] + ascii_ii[i];
15256		}
15257		short int ebcdic_ii[] =
15258		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15259		short int ebcdic_mm[] =
15260		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15261		int use_ebcdic (int i) {
15262		  return ebcdic_mm[i] + ebcdic_ii[i];
15263		}
15264		extern int foo;
15265
15266int
15267main ()
15268{
15269return use_ascii (foo) == use_ebcdic (foo);
15270  ;
15271  return 0;
15272}
15273_ACEOF
15274if ac_fn_c_try_compile "$LINENO"; then :
15275  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15276	      ac_cv_c_bigendian=yes
15277	    fi
15278	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15279	      if test "$ac_cv_c_bigendian" = unknown; then
15280		ac_cv_c_bigendian=no
15281	      else
15282		# finding both strings is unlikely to happen, but who knows?
15283		ac_cv_c_bigendian=unknown
15284	      fi
15285	    fi
15286fi
15287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15288else
15289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15290/* end confdefs.h.  */
15291$ac_includes_default
15292int
15293main ()
15294{
15295
15296	     /* Are we little or big endian?  From Harbison&Steele.  */
15297	     union
15298	     {
15299	       long int l;
15300	       char c[sizeof (long int)];
15301	     } u;
15302	     u.l = 1;
15303	     return u.c[sizeof (long int) - 1] == 1;
15304
15305  ;
15306  return 0;
15307}
15308_ACEOF
15309if ac_fn_c_try_run "$LINENO"; then :
15310  ac_cv_c_bigendian=no
15311else
15312  ac_cv_c_bigendian=yes
15313fi
15314rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15315  conftest.$ac_objext conftest.beam conftest.$ac_ext
15316fi
15317
15318    fi
15319fi
15320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15321$as_echo "$ac_cv_c_bigendian" >&6; }
15322 case $ac_cv_c_bigendian in #(
15323   yes)
15324     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15325;; #(
15326   no)
15327      ;; #(
15328   universal)
15329
15330$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15331
15332     ;; #(
15333   *)
15334     as_fn_error "unknown endianness
15335 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15336 esac
15337
15338ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15339if test "x$ac_cv_type_off_t" = x""yes; then :
15340
15341else
15342
15343cat >>confdefs.h <<_ACEOF
15344#define off_t long int
15345_ACEOF
15346
15347fi
15348
15349ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15350if test "x$ac_cv_type_size_t" = x""yes; then :
15351
15352else
15353
15354cat >>confdefs.h <<_ACEOF
15355#define size_t unsigned int
15356_ACEOF
15357
15358fi
15359
15360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15361$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15362if test "${ac_cv_header_time+set}" = set; then :
15363  $as_echo_n "(cached) " >&6
15364else
15365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15366/* end confdefs.h.  */
15367#include <sys/types.h>
15368#include <sys/time.h>
15369#include <time.h>
15370
15371int
15372main ()
15373{
15374if ((struct tm *) 0)
15375return 0;
15376  ;
15377  return 0;
15378}
15379_ACEOF
15380if ac_fn_c_try_compile "$LINENO"; then :
15381  ac_cv_header_time=yes
15382else
15383  ac_cv_header_time=no
15384fi
15385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15386fi
15387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15388$as_echo "$ac_cv_header_time" >&6; }
15389if test $ac_cv_header_time = yes; then
15390
15391$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15392
15393fi
15394
15395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
15396$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
15397if test "${ac_cv_struct_tm+set}" = set; then :
15398  $as_echo_n "(cached) " >&6
15399else
15400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15401/* end confdefs.h.  */
15402#include <sys/types.h>
15403#include <time.h>
15404
15405int
15406main ()
15407{
15408struct tm tm;
15409				     int *p = &tm.tm_sec;
15410				     return !p;
15411  ;
15412  return 0;
15413}
15414_ACEOF
15415if ac_fn_c_try_compile "$LINENO"; then :
15416  ac_cv_struct_tm=time.h
15417else
15418  ac_cv_struct_tm=sys/time.h
15419fi
15420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15421fi
15422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
15423$as_echo "$ac_cv_struct_tm" >&6; }
15424if test $ac_cv_struct_tm = sys/time.h; then
15425
15426$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
15427
15428fi
15429
15430
15431
15432# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
15433# The cast to long int works around a bug in the HP C Compiler
15434# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15435# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15436# This bug is HP SR number 8606223364.
15437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
15438$as_echo_n "checking size of signed short... " >&6; }
15439if test "${ac_cv_sizeof_signed_short+set}" = set; then :
15440  $as_echo_n "(cached) " >&6
15441else
15442  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short"        "$ac_includes_default"; then :
15443
15444else
15445  if test "$ac_cv_type_signed_short" = yes; then
15446     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15447$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15448{ as_fn_set_status 77
15449as_fn_error "cannot compute sizeof (signed short)
15450See \`config.log' for more details." "$LINENO" 5; }; }
15451   else
15452     ac_cv_sizeof_signed_short=0
15453   fi
15454fi
15455
15456fi
15457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
15458$as_echo "$ac_cv_sizeof_signed_short" >&6; }
15459
15460
15461
15462cat >>confdefs.h <<_ACEOF
15463#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
15464_ACEOF
15465
15466
15467
15468# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
15469# The cast to long int works around a bug in the HP C Compiler
15470# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15471# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15472# This bug is HP SR number 8606223364.
15473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
15474$as_echo_n "checking size of unsigned short... " >&6; }
15475if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
15476  $as_echo_n "(cached) " >&6
15477else
15478  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short"        "$ac_includes_default"; then :
15479
15480else
15481  if test "$ac_cv_type_unsigned_short" = yes; then
15482     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15483$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15484{ as_fn_set_status 77
15485as_fn_error "cannot compute sizeof (unsigned short)
15486See \`config.log' for more details." "$LINENO" 5; }; }
15487   else
15488     ac_cv_sizeof_unsigned_short=0
15489   fi
15490fi
15491
15492fi
15493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
15494$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
15495
15496
15497
15498cat >>confdefs.h <<_ACEOF
15499#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
15500_ACEOF
15501
15502
15503
15504# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
15505# The cast to long int works around a bug in the HP C Compiler
15506# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15507# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15508# This bug is HP SR number 8606223364.
15509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
15510$as_echo_n "checking size of signed int... " >&6; }
15511if test "${ac_cv_sizeof_signed_int+set}" = set; then :
15512  $as_echo_n "(cached) " >&6
15513else
15514  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int"        "$ac_includes_default"; then :
15515
15516else
15517  if test "$ac_cv_type_signed_int" = yes; then
15518     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15519$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15520{ as_fn_set_status 77
15521as_fn_error "cannot compute sizeof (signed int)
15522See \`config.log' for more details." "$LINENO" 5; }; }
15523   else
15524     ac_cv_sizeof_signed_int=0
15525   fi
15526fi
15527
15528fi
15529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
15530$as_echo "$ac_cv_sizeof_signed_int" >&6; }
15531
15532
15533
15534cat >>confdefs.h <<_ACEOF
15535#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
15536_ACEOF
15537
15538
15539
15540# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
15541# The cast to long int works around a bug in the HP C Compiler
15542# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15543# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15544# This bug is HP SR number 8606223364.
15545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
15546$as_echo_n "checking size of unsigned int... " >&6; }
15547if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
15548  $as_echo_n "(cached) " >&6
15549else
15550  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
15551
15552else
15553  if test "$ac_cv_type_unsigned_int" = yes; then
15554     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15555$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15556{ as_fn_set_status 77
15557as_fn_error "cannot compute sizeof (unsigned int)
15558See \`config.log' for more details." "$LINENO" 5; }; }
15559   else
15560     ac_cv_sizeof_unsigned_int=0
15561   fi
15562fi
15563
15564fi
15565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
15566$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
15567
15568
15569
15570cat >>confdefs.h <<_ACEOF
15571#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
15572_ACEOF
15573
15574
15575
15576# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
15577# The cast to long int works around a bug in the HP C Compiler
15578# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15579# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15580# This bug is HP SR number 8606223364.
15581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
15582$as_echo_n "checking size of signed long... " >&6; }
15583if test "${ac_cv_sizeof_signed_long+set}" = set; then :
15584  $as_echo_n "(cached) " >&6
15585else
15586  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long"        "$ac_includes_default"; then :
15587
15588else
15589  if test "$ac_cv_type_signed_long" = yes; then
15590     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15591$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15592{ as_fn_set_status 77
15593as_fn_error "cannot compute sizeof (signed long)
15594See \`config.log' for more details." "$LINENO" 5; }; }
15595   else
15596     ac_cv_sizeof_signed_long=0
15597   fi
15598fi
15599
15600fi
15601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
15602$as_echo "$ac_cv_sizeof_signed_long" >&6; }
15603
15604
15605
15606cat >>confdefs.h <<_ACEOF
15607#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
15608_ACEOF
15609
15610
15611
15612# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
15613# The cast to long int works around a bug in the HP C Compiler
15614# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15615# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15616# This bug is HP SR number 8606223364.
15617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
15618$as_echo_n "checking size of unsigned long... " >&6; }
15619if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
15620  $as_echo_n "(cached) " >&6
15621else
15622  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
15623
15624else
15625  if test "$ac_cv_type_unsigned_long" = yes; then
15626     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15627$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15628{ as_fn_set_status 77
15629as_fn_error "cannot compute sizeof (unsigned long)
15630See \`config.log' for more details." "$LINENO" 5; }; }
15631   else
15632     ac_cv_sizeof_unsigned_long=0
15633   fi
15634fi
15635
15636fi
15637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
15638$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
15639
15640
15641
15642cat >>confdefs.h <<_ACEOF
15643#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
15644_ACEOF
15645
15646
15647
15648# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG.
15649# If 'long long' is not supported then the value defined is zero.
15650# The cast to long int works around a bug in the HP C Compiler
15651# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15652# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15653# This bug is HP SR number 8606223364.
15654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
15655$as_echo_n "checking size of signed long long... " >&6; }
15656if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
15657  $as_echo_n "(cached) " >&6
15658else
15659  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long"        "$ac_includes_default"; then :
15660
15661else
15662  if test "$ac_cv_type_signed_long_long" = yes; then
15663     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15664$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15665{ as_fn_set_status 77
15666as_fn_error "cannot compute sizeof (signed long long)
15667See \`config.log' for more details." "$LINENO" 5; }; }
15668   else
15669     ac_cv_sizeof_signed_long_long=0
15670   fi
15671fi
15672
15673fi
15674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
15675$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
15676
15677
15678
15679cat >>confdefs.h <<_ACEOF
15680#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
15681_ACEOF
15682
15683
15684
15685# Obtain size of a 'unsigned long long' and define as
15686# SIZEOF_UNSIGNED_LONG_LONG.  If 'unsigned long long' is not
15687# supported then the value defined is zero.
15688# The cast to long int works around a bug in the HP C Compiler
15689# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15690# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15691# This bug is HP SR number 8606223364.
15692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
15693$as_echo_n "checking size of unsigned long long... " >&6; }
15694if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
15695  $as_echo_n "(cached) " >&6
15696else
15697  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
15698
15699else
15700  if test "$ac_cv_type_unsigned_long_long" = yes; then
15701     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15702$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15703{ as_fn_set_status 77
15704as_fn_error "cannot compute sizeof (unsigned long long)
15705See \`config.log' for more details." "$LINENO" 5; }; }
15706   else
15707     ac_cv_sizeof_unsigned_long_long=0
15708   fi
15709fi
15710
15711fi
15712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
15713$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
15714
15715
15716
15717cat >>confdefs.h <<_ACEOF
15718#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
15719_ACEOF
15720
15721
15722
15723# Obtain the size of an 'unsigned char *' and define as
15724# SIZEOF_UNSIGNED_CHAR_P.  Result is available in
15725# ac_cv_sizeof_unsigned_char_p.
15726# The cast to long int works around a bug in the HP C Compiler
15727# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15728# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15729# This bug is HP SR number 8606223364.
15730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned char *" >&5
15731$as_echo_n "checking size of unsigned char *... " >&6; }
15732if test "${ac_cv_sizeof_unsigned_char_p+set}" = set; then :
15733  $as_echo_n "(cached) " >&6
15734else
15735  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned char *))" "ac_cv_sizeof_unsigned_char_p"        "$ac_includes_default"; then :
15736
15737else
15738  if test "$ac_cv_type_unsigned_char_p" = yes; then
15739     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15740$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15741{ as_fn_set_status 77
15742as_fn_error "cannot compute sizeof (unsigned char *)
15743See \`config.log' for more details." "$LINENO" 5; }; }
15744   else
15745     ac_cv_sizeof_unsigned_char_p=0
15746   fi
15747fi
15748
15749fi
15750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_char_p" >&5
15751$as_echo "$ac_cv_sizeof_unsigned_char_p" >&6; }
15752
15753
15754
15755cat >>confdefs.h <<_ACEOF
15756#define SIZEOF_UNSIGNED_CHAR_P $ac_cv_sizeof_unsigned_char_p
15757_ACEOF
15758
15759
15760
15761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
15762$as_echo_n "checking for signed 8-bit type... " >&6; }
15763INT8_T='signed char'
15764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
15765$as_echo "$INT8_T" >&6; }
15766
15767cat >>confdefs.h <<_ACEOF
15768#define TIFF_INT8_T $INT8_T
15769_ACEOF
15770
15771
15772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
15773$as_echo_n "checking for unsigned 8-bit type... " >&6; }
15774UINT8_T='unsigned char'
15775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
15776$as_echo "$UINT8_T" >&6; }
15777
15778cat >>confdefs.h <<_ACEOF
15779#define TIFF_UINT8_T $UINT8_T
15780_ACEOF
15781
15782
15783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
15784$as_echo_n "checking for signed 16-bit type... " >&6; }
15785INT16_T='signed short'
15786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
15787$as_echo "$INT16_T" >&6; }
15788
15789cat >>confdefs.h <<_ACEOF
15790#define TIFF_INT16_T $INT16_T
15791_ACEOF
15792
15793
15794
15795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
15796$as_echo_n "checking for unsigned 16-bit type... " >&6; }
15797UINT16_T='unsigned short'
15798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
15799$as_echo "$UINT16_T" >&6; }
15800
15801cat >>confdefs.h <<_ACEOF
15802#define TIFF_UINT16_T $UINT16_T
15803_ACEOF
15804
15805
15806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
15807$as_echo_n "checking for signed 32-bit type... " >&6; }
15808INT32_T='none'
15809INT32_FORMAT='none'
15810if test $ac_cv_sizeof_signed_int -eq 4
15811then
15812  INT32_T='signed int'
15813  INT32_FORMAT='"%d"'
15814elif test $ac_cv_sizeof_signed_long -eq 4
15815then
15816  INT32_T='signed long'
15817  INT32_FORMAT='"%ld"'
15818fi
15819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
15820$as_echo "$INT32_T" >&6; }
15821
15822cat >>confdefs.h <<_ACEOF
15823#define TIFF_INT32_T $INT32_T
15824_ACEOF
15825
15826
15827cat >>confdefs.h <<_ACEOF
15828#define TIFF_INT32_FORMAT $INT32_FORMAT
15829_ACEOF
15830
15831
15832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
15833$as_echo_n "checking for unsigned 32-bit type... " >&6; }
15834UINT32_T='none'
15835UINT32_FORMAT='none'
15836if test $ac_cv_sizeof_unsigned_int -eq 4
15837then
15838  UINT32_T='unsigned int'
15839  UINT32_FORMAT='"%u"'
15840elif test $ac_cv_sizeof_unsigned_long -eq 4
15841then
15842  UINT32_T='unsigned long'
15843  UINT32_FORMAT='"%lu"'
15844fi
15845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
15846$as_echo "$UINT32_T" >&6; }
15847
15848cat >>confdefs.h <<_ACEOF
15849#define TIFF_UINT32_T $UINT32_T
15850_ACEOF
15851
15852
15853cat >>confdefs.h <<_ACEOF
15854#define TIFF_UINT32_FORMAT $UINT32_FORMAT
15855_ACEOF
15856
15857
15858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
15859$as_echo_n "checking for signed 64-bit type... " >&6; }
15860INT64_T='none'
15861INT64_FORMAT='none'
15862if test $ac_cv_sizeof_signed_long -eq 8
15863then
15864  INT64_T='signed long'
15865  INT64_FORMAT='"%ld"'
15866elif test $ac_cv_sizeof_signed_long_long -eq 8
15867then
15868  INT64_FORMAT='"%lld"'
15869  INT64_T='signed long long'
15870fi
15871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
15872$as_echo "$INT64_T" >&6; }
15873
15874cat >>confdefs.h <<_ACEOF
15875#define TIFF_INT64_T $INT64_T
15876_ACEOF
15877
15878
15879cat >>confdefs.h <<_ACEOF
15880#define TIFF_INT64_FORMAT $INT64_FORMAT
15881_ACEOF
15882
15883
15884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
15885$as_echo_n "checking for unsigned 64-bit type... " >&6; }
15886UINT64_T='none'
15887UINT64_FORMAT='none'
15888if test $ac_cv_sizeof_unsigned_long -eq 8
15889then
15890  UINT64_T='unsigned long'
15891  UINT64_FORMAT='"%lu"'
15892elif test $ac_cv_sizeof_unsigned_long_long -eq 8
15893then
15894  UINT64_T='unsigned long long'
15895  UINT64_FORMAT='"%llu"'
15896fi
15897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
15898$as_echo "$UINT64_T" >&6; }
15899
15900cat >>confdefs.h <<_ACEOF
15901#define TIFF_UINT64_T $UINT64_T
15902_ACEOF
15903
15904
15905cat >>confdefs.h <<_ACEOF
15906#define TIFF_UINT64_FORMAT $UINT64_FORMAT
15907_ACEOF
15908
15909
15910# Determine TIFF equivalent of ssize_t
15911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed size type" >&5
15912$as_echo_n "checking for signed size type... " >&6; }
15913SSIZE_T='unknown'
15914SSIZE_FORMAT='unknown'
15915if test $ac_cv_sizeof_signed_long -eq $ac_cv_sizeof_unsigned_char_p
15916then
15917  SSIZE_T='signed long'
15918  SSIZE_FORMAT='"%ld"'
15919elif test $ac_cv_sizeof_signed_long_long -eq $ac_cv_sizeof_unsigned_char_p
15920then
15921  SSIZE_T='signed long long'
15922  SSIZE_FORMAT='"%lld"'
15923fi
15924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSIZE_T" >&5
15925$as_echo "$SSIZE_T" >&6; }
15926
15927cat >>confdefs.h <<_ACEOF
15928#define TIFF_SSIZE_T $SSIZE_T
15929_ACEOF
15930
15931
15932cat >>confdefs.h <<_ACEOF
15933#define TIFF_SSIZE_FORMAT $SSIZE_FORMAT
15934_ACEOF
15935
15936
15937# Determine the type to use for the difference between two pointers.
15938# We will default to the POSIX ptrdiff_t if it is available, but will
15939# be prepared for the case when it is not.
15940PTRDIFF_T='unknown'
15941PTRDIFF_FORMAT='"%ld"'
15942ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
15943if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
15944  PTRDIFF_T=ptrdiff_t
15945fi
15946
15947if test $PTRDIFF_T = unknown
15948then
15949  PTRDIFF_T=$SSIZE_T
15950  PTRDIFF_FORMAT=$SSIZE_FORMAT
15951fi
15952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
15953$as_echo_n "checking for pointer difference type... " >&6; }
15954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTRDIFF_T" >&5
15955$as_echo "$PTRDIFF_T" >&6; }
15956
15957cat >>confdefs.h <<_ACEOF
15958#define TIFF_PTRDIFF_T $PTRDIFF_T
15959_ACEOF
15960
15961
15962cat >>confdefs.h <<_ACEOF
15963#define TIFF_PTRDIFF_FORMAT $PTRDIFF_FORMAT
15964_ACEOF
15965
15966
15967ac_fn_c_check_type "$LINENO" "int8" "ac_cv_type_int8" "
15968#if HAVE_INTTYPES_H
15969# include <inttypes.h>
15970#endif
15971
15972"
15973if test "x$ac_cv_type_int8" = x""yes; then :
15974
15975cat >>confdefs.h <<_ACEOF
15976#define HAVE_INT8 1
15977_ACEOF
15978
15979
15980fi
15981ac_fn_c_check_type "$LINENO" "int16" "ac_cv_type_int16" "
15982#if HAVE_INTTYPES_H
15983# include <inttypes.h>
15984#endif
15985
15986"
15987if test "x$ac_cv_type_int16" = x""yes; then :
15988
15989cat >>confdefs.h <<_ACEOF
15990#define HAVE_INT16 1
15991_ACEOF
15992
15993
15994fi
15995ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "
15996#if HAVE_INTTYPES_H
15997# include <inttypes.h>
15998#endif
15999
16000"
16001if test "x$ac_cv_type_int32" = x""yes; then :
16002
16003cat >>confdefs.h <<_ACEOF
16004#define HAVE_INT32 1
16005_ACEOF
16006
16007
16008fi
16009
16010
16011for ac_func in floor isascii memmove memset mmap pow setmode sqrt strchr strrchr strstr strtol strtoull
16012do :
16013  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16014ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16015eval as_val=\$$as_ac_var
16016   if test "x$as_val" = x""yes; then :
16017  cat >>confdefs.h <<_ACEOF
16018#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16019_ACEOF
16020
16021fi
16022done
16023
16024
16025for ac_func in getopt
16026do :
16027  ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
16028if test "x$ac_cv_func_getopt" = x""yes; then :
16029  cat >>confdefs.h <<_ACEOF
16030#define HAVE_GETOPT 1
16031_ACEOF
16032
16033else
16034  case " $LIBOBJS " in
16035  *" $ac_func.$ac_objext "* ) ;;
16036  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16037 ;;
16038esac
16039
16040fi
16041done
16042
16043
16044for ac_func in strcasecmp
16045do :
16046  ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
16047if test "x$ac_cv_func_strcasecmp" = x""yes; then :
16048  cat >>confdefs.h <<_ACEOF
16049#define HAVE_STRCASECMP 1
16050_ACEOF
16051
16052else
16053  case " $LIBOBJS " in
16054  *" $ac_func.$ac_objext "* ) ;;
16055  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16056 ;;
16057esac
16058
16059fi
16060done
16061
16062
16063for ac_func in strtoul
16064do :
16065  ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
16066if test "x$ac_cv_func_strtoul" = x""yes; then :
16067  cat >>confdefs.h <<_ACEOF
16068#define HAVE_STRTOUL 1
16069_ACEOF
16070
16071else
16072  case " $LIBOBJS " in
16073  *" $ac_func.$ac_objext "* ) ;;
16074  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16075 ;;
16076esac
16077
16078fi
16079done
16080
16081
16082for ac_func in strtoull
16083do :
16084  ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
16085if test "x$ac_cv_func_strtoull" = x""yes; then :
16086  cat >>confdefs.h <<_ACEOF
16087#define HAVE_STRTOULL 1
16088_ACEOF
16089
16090else
16091  case " $LIBOBJS " in
16092  *" $ac_func.$ac_objext "* ) ;;
16093  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16094 ;;
16095esac
16096
16097fi
16098done
16099
16100
16101for ac_func in lfind
16102do :
16103  ac_fn_c_check_func "$LINENO" "lfind" "ac_cv_func_lfind"
16104if test "x$ac_cv_func_lfind" = x""yes; then :
16105  cat >>confdefs.h <<_ACEOF
16106#define HAVE_LFIND 1
16107_ACEOF
16108
16109else
16110  case " $LIBOBJS " in
16111  *" $ac_func.$ac_objext "* ) ;;
16112  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16113 ;;
16114esac
16115
16116fi
16117done
16118
16119
16120
16121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking native cpu bit order" >&5
16122$as_echo_n "checking native cpu bit order... " >&6; }
16123case "$target_cpu" in
16124    i*86*|x86_64*)
16125        HOST_FILLORDER=FILLORDER_LSB2MSB
16126	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: lsb2msb" >&5
16127$as_echo "lsb2msb" >&6; }
16128	;;
16129    *)
16130	HOST_FILLORDER=FILLORDER_MSB2LSB
16131	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: msb2lsb" >&5
16132$as_echo "msb2lsb" >&6; }
16133        ;;
16134esac
16135
16136cat >>confdefs.h <<_ACEOF
16137#define HOST_FILLORDER $HOST_FILLORDER
16138_ACEOF
16139
16140
16141if test "$ac_cv_c_bigendian" = yes ; then
16142    HOST_BIGENDIAN=1
16143else
16144    HOST_BIGENDIAN=0
16145fi
16146
16147cat >>confdefs.h <<_ACEOF
16148#define HOST_BIGENDIAN $HOST_BIGENDIAN
16149_ACEOF
16150
16151
16152#_POSIX_C_SOURCE=2
16153#AC_DEFINE_UNQUOTED(_POSIX_C_SOURCE, $_POSIX_C_SOURCE, [Define this macro to a positive integer to control which POSIX functionality is made available.])
16154
16155HAVE_IEEEFP=1
16156
16157cat >>confdefs.h <<_ACEOF
16158#define HAVE_IEEEFP $HAVE_IEEEFP
16159_ACEOF
16160
16161
16162
16163# Check whether --enable-rpath was given.
16164if test "${enable_rpath+set}" = set; then :
16165  enableval=$enable_rpath; HAVE_RPATH=$enableval
16166else
16167  HAVE_RPATH=no
16168fi
16169
16170 if test "$HAVE_RPATH" = "yes"; then
16171  HAVE_RPATH_TRUE=
16172  HAVE_RPATH_FALSE='#'
16173else
16174  HAVE_RPATH_TRUE='#'
16175  HAVE_RPATH_FALSE=
16176fi
16177
16178
16179
16180# Check whether --enable-largefile was given.
16181if test "${enable_largefile+set}" = set; then :
16182  enableval=$enable_largefile;
16183fi
16184
16185if test "$enable_largefile" != no; then
16186
16187  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
16188$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
16189if test "${ac_cv_sys_largefile_CC+set}" = set; then :
16190  $as_echo_n "(cached) " >&6
16191else
16192  ac_cv_sys_largefile_CC=no
16193     if test "$GCC" != yes; then
16194       ac_save_CC=$CC
16195       while :; do
16196	 # IRIX 6.2 and later do not support large files by default,
16197	 # so use the C compiler's -n32 option if that helps.
16198	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16199/* end confdefs.h.  */
16200#include <sys/types.h>
16201 /* Check that off_t can represent 2**63 - 1 correctly.
16202    We can't simply define LARGE_OFF_T to be 9223372036854775807,
16203    since some C++ compilers masquerading as C compilers
16204    incorrectly reject 9223372036854775807.  */
16205#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16206  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16207		       && LARGE_OFF_T % 2147483647 == 1)
16208		      ? 1 : -1];
16209int
16210main ()
16211{
16212
16213  ;
16214  return 0;
16215}
16216_ACEOF
16217	 if ac_fn_c_try_compile "$LINENO"; then :
16218  break
16219fi
16220rm -f core conftest.err conftest.$ac_objext
16221	 CC="$CC -n32"
16222	 if ac_fn_c_try_compile "$LINENO"; then :
16223  ac_cv_sys_largefile_CC=' -n32'; break
16224fi
16225rm -f core conftest.err conftest.$ac_objext
16226	 break
16227       done
16228       CC=$ac_save_CC
16229       rm -f conftest.$ac_ext
16230    fi
16231fi
16232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
16233$as_echo "$ac_cv_sys_largefile_CC" >&6; }
16234  if test "$ac_cv_sys_largefile_CC" != no; then
16235    CC=$CC$ac_cv_sys_largefile_CC
16236  fi
16237
16238  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16239$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
16240if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
16241  $as_echo_n "(cached) " >&6
16242else
16243  while :; do
16244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16245/* end confdefs.h.  */
16246#include <sys/types.h>
16247 /* Check that off_t can represent 2**63 - 1 correctly.
16248    We can't simply define LARGE_OFF_T to be 9223372036854775807,
16249    since some C++ compilers masquerading as C compilers
16250    incorrectly reject 9223372036854775807.  */
16251#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16252  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16253		       && LARGE_OFF_T % 2147483647 == 1)
16254		      ? 1 : -1];
16255int
16256main ()
16257{
16258
16259  ;
16260  return 0;
16261}
16262_ACEOF
16263if ac_fn_c_try_compile "$LINENO"; then :
16264  ac_cv_sys_file_offset_bits=no; break
16265fi
16266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16268/* end confdefs.h.  */
16269#define _FILE_OFFSET_BITS 64
16270#include <sys/types.h>
16271 /* Check that off_t can represent 2**63 - 1 correctly.
16272    We can't simply define LARGE_OFF_T to be 9223372036854775807,
16273    since some C++ compilers masquerading as C compilers
16274    incorrectly reject 9223372036854775807.  */
16275#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16276  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16277		       && LARGE_OFF_T % 2147483647 == 1)
16278		      ? 1 : -1];
16279int
16280main ()
16281{
16282
16283  ;
16284  return 0;
16285}
16286_ACEOF
16287if ac_fn_c_try_compile "$LINENO"; then :
16288  ac_cv_sys_file_offset_bits=64; break
16289fi
16290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16291  ac_cv_sys_file_offset_bits=unknown
16292  break
16293done
16294fi
16295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
16296$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
16297case $ac_cv_sys_file_offset_bits in #(
16298  no | unknown) ;;
16299  *)
16300cat >>confdefs.h <<_ACEOF
16301#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16302_ACEOF
16303;;
16304esac
16305rm -rf conftest*
16306  if test $ac_cv_sys_file_offset_bits = unknown; then
16307    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
16308$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
16309if test "${ac_cv_sys_large_files+set}" = set; then :
16310  $as_echo_n "(cached) " >&6
16311else
16312  while :; do
16313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16314/* end confdefs.h.  */
16315#include <sys/types.h>
16316 /* Check that off_t can represent 2**63 - 1 correctly.
16317    We can't simply define LARGE_OFF_T to be 9223372036854775807,
16318    since some C++ compilers masquerading as C compilers
16319    incorrectly reject 9223372036854775807.  */
16320#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16321  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16322		       && LARGE_OFF_T % 2147483647 == 1)
16323		      ? 1 : -1];
16324int
16325main ()
16326{
16327
16328  ;
16329  return 0;
16330}
16331_ACEOF
16332if ac_fn_c_try_compile "$LINENO"; then :
16333  ac_cv_sys_large_files=no; break
16334fi
16335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16337/* end confdefs.h.  */
16338#define _LARGE_FILES 1
16339#include <sys/types.h>
16340 /* Check that off_t can represent 2**63 - 1 correctly.
16341    We can't simply define LARGE_OFF_T to be 9223372036854775807,
16342    since some C++ compilers masquerading as C compilers
16343    incorrectly reject 9223372036854775807.  */
16344#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16345  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16346		       && LARGE_OFF_T % 2147483647 == 1)
16347		      ? 1 : -1];
16348int
16349main ()
16350{
16351
16352  ;
16353  return 0;
16354}
16355_ACEOF
16356if ac_fn_c_try_compile "$LINENO"; then :
16357  ac_cv_sys_large_files=1; break
16358fi
16359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16360  ac_cv_sys_large_files=unknown
16361  break
16362done
16363fi
16364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
16365$as_echo "$ac_cv_sys_large_files" >&6; }
16366case $ac_cv_sys_large_files in #(
16367  no | unknown) ;;
16368  *)
16369cat >>confdefs.h <<_ACEOF
16370#define _LARGE_FILES $ac_cv_sys_large_files
16371_ACEOF
16372;;
16373esac
16374rm -rf conftest*
16375  fi
16376fi
16377
16378
16379
16380LIBTIFF_DOCDIR=\${prefix}/share/doc/${PACKAGE}-${LIBTIFF_VERSION}
16381
16382
16383# Check whether --with-docdir was given.
16384if test "${with_docdir+set}" = set; then :
16385  withval=$with_docdir;
16386fi
16387
16388if test "x$with_docdir" != "x" ; then
16389  LIBTIFF_DOCDIR=$with_docdir
16390fi
16391
16392
16393
16394
16395# Check whether --enable-ccitt was given.
16396if test "${enable_ccitt+set}" = set; then :
16397  enableval=$enable_ccitt; HAVE_CCITT=$enableval
16398else
16399  HAVE_CCITT=yes
16400fi
16401
16402
16403if test "$HAVE_CCITT" = "yes" ; then
16404
16405$as_echo "#define CCITT_SUPPORT 1" >>confdefs.h
16406
16407fi
16408
16409# Check whether --enable-packbits was given.
16410if test "${enable_packbits+set}" = set; then :
16411  enableval=$enable_packbits; HAVE_PACKBITS=$enableval
16412else
16413  HAVE_PACKBITS=yes
16414fi
16415
16416
16417if test "$HAVE_PACKBITS" = "yes" ; then
16418
16419$as_echo "#define PACKBITS_SUPPORT 1" >>confdefs.h
16420
16421fi
16422
16423# Check whether --enable-lzw was given.
16424if test "${enable_lzw+set}" = set; then :
16425  enableval=$enable_lzw; HAVE_LZW=$enableval
16426else
16427  HAVE_LZW=yes
16428fi
16429
16430
16431if test "$HAVE_LZW" = "yes" ; then
16432
16433$as_echo "#define LZW_SUPPORT 1" >>confdefs.h
16434
16435fi
16436
16437# Check whether --enable-thunder was given.
16438if test "${enable_thunder+set}" = set; then :
16439  enableval=$enable_thunder; HAVE_THUNDER=$enableval
16440else
16441  HAVE_THUNDER=yes
16442fi
16443
16444
16445if test "$HAVE_THUNDER" = "yes" ; then
16446
16447$as_echo "#define THUNDER_SUPPORT 1" >>confdefs.h
16448
16449fi
16450
16451HAVE_NEXT=yes
16452
16453# Check whether --enable-next was given.
16454if test "${enable_next+set}" = set; then :
16455  enableval=$enable_next; HAVE_NEXT=$enableval
16456else
16457  HAVE_NEXT=yes
16458fi
16459
16460
16461if test "$HAVE_NEXT" = "yes" ; then
16462
16463$as_echo "#define NEXT_SUPPORT 1" >>confdefs.h
16464
16465fi
16466
16467# Check whether --enable-logluv was given.
16468if test "${enable_logluv+set}" = set; then :
16469  enableval=$enable_logluv; HAVE_LOGLUV=$enableval
16470else
16471  HAVE_LOGLUV=yes
16472fi
16473
16474
16475if test "$HAVE_LOGLUV" = "yes" ; then
16476
16477$as_echo "#define LOGLUV_SUPPORT 1" >>confdefs.h
16478
16479fi
16480
16481
16482# Check whether --enable-mdi was given.
16483if test "${enable_mdi+set}" = set; then :
16484  enableval=$enable_mdi; HAVE_MDI=$enableval
16485else
16486  HAVE_MDI=yes
16487fi
16488
16489
16490if test "$HAVE_MDI" = "yes" ; then
16491
16492$as_echo "#define MDI_SUPPORT 1" >>confdefs.h
16493
16494fi
16495
16496
16497HAVE_ZLIB=no
16498
16499# Check whether --enable-zlib was given.
16500if test "${enable_zlib+set}" = set; then :
16501  enableval=$enable_zlib;
16502fi
16503
16504
16505# Check whether --with-zlib-include-dir was given.
16506if test "${with_zlib_include_dir+set}" = set; then :
16507  withval=$with_zlib_include_dir;
16508fi
16509
16510
16511# Check whether --with-zlib-lib-dir was given.
16512if test "${with_zlib_lib_dir+set}" = set; then :
16513  withval=$with_zlib_lib_dir;
16514fi
16515
16516
16517if test "x$enable_zlib" != "xno" ; then
16518
16519  if test "x$with_zlib_lib_dir" != "x" ; then
16520    LDFLAGS="-L$with_zlib_lib_dir $LDFLAGS"
16521  fi
16522
16523  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
16524$as_echo_n "checking for inflateEnd in -lz... " >&6; }
16525if test "${ac_cv_lib_z_inflateEnd+set}" = set; then :
16526  $as_echo_n "(cached) " >&6
16527else
16528  ac_check_lib_save_LIBS=$LIBS
16529LIBS="-lz  $LIBS"
16530cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16531/* end confdefs.h.  */
16532
16533/* Override any GCC internal prototype to avoid an error.
16534   Use char because int might match the return type of a GCC
16535   builtin and then its argument prototype would still apply.  */
16536#ifdef __cplusplus
16537extern "C"
16538#endif
16539char inflateEnd ();
16540int
16541main ()
16542{
16543return inflateEnd ();
16544  ;
16545  return 0;
16546}
16547_ACEOF
16548if ac_fn_c_try_link "$LINENO"; then :
16549  ac_cv_lib_z_inflateEnd=yes
16550else
16551  ac_cv_lib_z_inflateEnd=no
16552fi
16553rm -f core conftest.err conftest.$ac_objext \
16554    conftest$ac_exeext conftest.$ac_ext
16555LIBS=$ac_check_lib_save_LIBS
16556fi
16557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
16558$as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
16559if test "x$ac_cv_lib_z_inflateEnd" = x""yes; then :
16560  zlib_lib=yes
16561else
16562  zlib_lib=no
16563fi
16564
16565  if test "$zlib_lib" = "no" -a "x$with_zlib_lib_dir" != "x"; then
16566    as_fn_error "Zlib library not found at $with_zlib_lib_dir" "$LINENO" 5
16567  fi
16568
16569  if test "x$with_zlib_include_dir" != "x" ; then
16570    CPPFLAGS="-I$with_zlib_include_dir $CPPFLAGS"
16571  fi
16572  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
16573if test "x$ac_cv_header_zlib_h" = x""yes; then :
16574  zlib_h=yes
16575else
16576  zlib_h=no
16577fi
16578
16579
16580  if test "$zlib_h" = "no" -a "x$with_zlib_include_dir" != "x" ; then
16581    as_fn_error "Zlib headers not found at $with_zlib_include_dir" "$LINENO" 5
16582  fi
16583
16584  if test "$zlib_lib" = "yes" -a "$zlib_h" = "yes" ; then
16585    HAVE_ZLIB=yes
16586  fi
16587
16588fi
16589
16590if test "$HAVE_ZLIB" = "yes" ; then
16591
16592$as_echo "#define ZIP_SUPPORT 1" >>confdefs.h
16593
16594  LIBS="-lz $LIBS"
16595
16596  if test "$HAVE_RPATH" = "yes" -a "x$with_zlib_lib_dir" != "x" ; then
16597    LIBDIR="-R $with_zlib_lib_dir $LIBDIR"
16598  fi
16599
16600fi
16601
16602
16603# Check whether --enable-pixarlog was given.
16604if test "${enable_pixarlog+set}" = set; then :
16605  enableval=$enable_pixarlog; HAVE_PIXARLOG=$enableval
16606else
16607  HAVE_PIXARLOG=yes
16608fi
16609
16610
16611if test "$HAVE_ZLIB" = "yes" -a "$HAVE_PIXARLOG" = "yes" ; then
16612
16613$as_echo "#define PIXARLOG_SUPPORT 1" >>confdefs.h
16614
16615else
16616  HAVE_PIXARLOG=no
16617fi
16618
16619
16620HAVE_JPEG=no
16621
16622# Check whether --enable-jpeg was given.
16623if test "${enable_jpeg+set}" = set; then :
16624  enableval=$enable_jpeg;
16625fi
16626
16627
16628# Check whether --with-jpeg-include-dir was given.
16629if test "${with_jpeg_include_dir+set}" = set; then :
16630  withval=$with_jpeg_include_dir;
16631fi
16632
16633
16634# Check whether --with-jpeg-lib-dir was given.
16635if test "${with_jpeg_lib_dir+set}" = set; then :
16636  withval=$with_jpeg_lib_dir;
16637fi
16638
16639
16640if test "x$enable_jpeg" != "xno" ; then
16641
16642  if test "x$with_jpeg_lib_dir" != "x" ; then
16643    LDFLAGS="-L$with_jpeg_lib_dir $LDFLAGS"
16644
16645  fi
16646
16647  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_scanlines in -ljpeg" >&5
16648$as_echo_n "checking for jpeg_read_scanlines in -ljpeg... " >&6; }
16649if test "${ac_cv_lib_jpeg_jpeg_read_scanlines+set}" = set; then :
16650  $as_echo_n "(cached) " >&6
16651else
16652  ac_check_lib_save_LIBS=$LIBS
16653LIBS="-ljpeg  $LIBS"
16654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16655/* end confdefs.h.  */
16656
16657/* Override any GCC internal prototype to avoid an error.
16658   Use char because int might match the return type of a GCC
16659   builtin and then its argument prototype would still apply.  */
16660#ifdef __cplusplus
16661extern "C"
16662#endif
16663char jpeg_read_scanlines ();
16664int
16665main ()
16666{
16667return jpeg_read_scanlines ();
16668  ;
16669  return 0;
16670}
16671_ACEOF
16672if ac_fn_c_try_link "$LINENO"; then :
16673  ac_cv_lib_jpeg_jpeg_read_scanlines=yes
16674else
16675  ac_cv_lib_jpeg_jpeg_read_scanlines=no
16676fi
16677rm -f core conftest.err conftest.$ac_objext \
16678    conftest$ac_exeext conftest.$ac_ext
16679LIBS=$ac_check_lib_save_LIBS
16680fi
16681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_scanlines" >&5
16682$as_echo "$ac_cv_lib_jpeg_jpeg_read_scanlines" >&6; }
16683if test "x$ac_cv_lib_jpeg_jpeg_read_scanlines" = x""yes; then :
16684  jpeg_lib=yes
16685else
16686  jpeg_lib=no
16687fi
16688
16689  if test "$jpeg_lib" = "no" -a "x$with_jpeg_lib_dir" != "x" ; then
16690    as_fn_error "IJG JPEG library not found at $with_jpeg_lib_dir" "$LINENO" 5
16691  fi
16692
16693  if test "x$with_jpeg_include_dir" != "x" ; then
16694    CPPFLAGS="-I$with_jpeg_include_dir $CPPFLAGS"
16695  fi
16696  ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
16697if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
16698  jpeg_h=yes
16699else
16700  jpeg_h=no
16701fi
16702
16703
16704  if test "$jpeg_h" = "no" -a "x$with_jpeg_include_dir" != "x" ; then
16705    as_fn_error "IJG JPEG library headers not found at $with_jpeg_include_dir" "$LINENO" 5
16706  fi
16707
16708  if test "$jpeg_lib" = "yes" -a "$jpeg_h" = "yes" ; then
16709    HAVE_JPEG=yes
16710  fi
16711
16712fi
16713
16714if test "$HAVE_JPEG" = "yes" ; then
16715
16716$as_echo "#define JPEG_SUPPORT 1" >>confdefs.h
16717
16718  LIBS="-ljpeg $LIBS"
16719
16720  if test "$HAVE_RPATH" = "yes" -a "x$with_jpeg_lib_dir" != "x" ; then
16721    LIBDIR="-R $with_jpeg_lib_dir $LIBDIR"
16722  fi
16723
16724fi
16725
16726
16727# Check whether --enable-old-jpeg was given.
16728if test "${enable_old_jpeg+set}" = set; then :
16729  enableval=$enable_old_jpeg; HAVE_OJPEG=${enableval}
16730else
16731  HAVE_OJPEG=yes
16732fi
16733
16734
16735if test "$HAVE_JPEG" = "yes" -a "$HAVE_OJPEG" = "yes" ; then
16736
16737$as_echo "#define OJPEG_SUPPORT 1" >>confdefs.h
16738
16739else
16740  HAVE_OJPEG=no
16741fi
16742
16743
16744HAVE_JBIG=no
16745
16746# Check whether --enable-jbig was given.
16747if test "${enable_jbig+set}" = set; then :
16748  enableval=$enable_jbig;
16749fi
16750
16751
16752# Check whether --with-jbig-include-dir was given.
16753if test "${with_jbig_include_dir+set}" = set; then :
16754  withval=$with_jbig_include_dir;
16755fi
16756
16757
16758# Check whether --with-jbig-lib-dir was given.
16759if test "${with_jbig_lib_dir+set}" = set; then :
16760  withval=$with_jbig_lib_dir;
16761fi
16762
16763
16764if test "x$enable_jbig" != "xno" ; then
16765
16766  if test "x$with_jbig_lib_dir" != "x" ; then
16767    LDFLAGS="-L$with_jbig_lib_dir $LDFLAGS"
16768
16769  fi
16770
16771  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
16772$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
16773if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
16774  $as_echo_n "(cached) " >&6
16775else
16776  ac_check_lib_save_LIBS=$LIBS
16777LIBS="-ljbig  $LIBS"
16778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16779/* end confdefs.h.  */
16780
16781/* Override any GCC internal prototype to avoid an error.
16782   Use char because int might match the return type of a GCC
16783   builtin and then its argument prototype would still apply.  */
16784#ifdef __cplusplus
16785extern "C"
16786#endif
16787char jbg_dec_init ();
16788int
16789main ()
16790{
16791return jbg_dec_init ();
16792  ;
16793  return 0;
16794}
16795_ACEOF
16796if ac_fn_c_try_link "$LINENO"; then :
16797  ac_cv_lib_jbig_jbg_dec_init=yes
16798else
16799  ac_cv_lib_jbig_jbg_dec_init=no
16800fi
16801rm -f core conftest.err conftest.$ac_objext \
16802    conftest$ac_exeext conftest.$ac_ext
16803LIBS=$ac_check_lib_save_LIBS
16804fi
16805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
16806$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
16807if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
16808  jbig_lib=yes
16809else
16810  jbig_lib=no
16811fi
16812
16813  if test "$jbig_lib" = "no" -a "x$with_jbig_lib_dir" != "x" ; then
16814    as_fn_error "JBIG-KIT library not found at $with_jbig_lib_dir" "$LINENO" 5
16815  fi
16816
16817  if test "x$with_jbig_include_dir" != "x" ; then
16818    CPPFLAGS="-I$with_jbig_include_dir $CPPFLAGS"
16819  fi
16820  ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
16821if test "x$ac_cv_header_jbig_h" = x""yes; then :
16822  jbig_h=yes
16823else
16824  jbig_h=no
16825fi
16826
16827
16828  if test "$jbig_h" = "no" -a "x$with_jbig_include_dir" != "x" ; then
16829    as_fn_error "JBIG-KIT library headers not found at $with_jbig_include_dir" "$LINENO" 5
16830  fi
16831
16832  if test "$jbig_lib" = "yes" -a "$jbig_h" = "yes" ; then
16833    HAVE_JBIG=yes
16834  fi
16835
16836fi
16837
16838if test "$HAVE_JBIG" = "yes" ; then
16839
16840$as_echo "#define JBIG_SUPPORT 1" >>confdefs.h
16841
16842  LIBS="-ljbig $LIBS"
16843
16844  if test "$HAVE_RPATH" = "yes" -a "x$with_jbig_lib_dir" != "x" ; then
16845    LIBDIR="-R $with_jbig_lib_dir $LIBDIR"
16846  fi
16847
16848  # Older versions of jbigkit lack jbg_newlen
16849  for ac_func in jbg_newlen
16850do :
16851  ac_fn_c_check_func "$LINENO" "jbg_newlen" "ac_cv_func_jbg_newlen"
16852if test "x$ac_cv_func_jbg_newlen" = x""yes; then :
16853  cat >>confdefs.h <<_ACEOF
16854#define HAVE_JBG_NEWLEN 1
16855_ACEOF
16856
16857fi
16858done
16859
16860
16861fi
16862
16863
16864HAVE_JPEG12=no
16865
16866# Check whether --enable-jpeg12 was given.
16867if test "${enable_jpeg12+set}" = set; then :
16868  enableval=$enable_jpeg12;
16869fi
16870
16871
16872# Check whether --with-jpeg12-include-dir was given.
16873if test "${with_jpeg12_include_dir+set}" = set; then :
16874  withval=$with_jpeg12_include_dir;
16875fi
16876
16877
16878# Check whether --with-jpeg12-lib was given.
16879if test "${with_jpeg12_lib+set}" = set; then :
16880  withval=$with_jpeg12_lib;
16881fi
16882
16883
16884if test "x$enable_jpeg12" == "xyes" ; then
16885
16886  if test "x$with_jpeg12_lib" != "x" ; then
16887    LIBS="$with_jpeg12_lib $LIBS"
16888  fi
16889
16890  HAVE_JPEG12=yes
16891
16892
16893$as_echo "#define JPEG_DUAL_MODE_8_12 1" >>confdefs.h
16894
16895  if test "x$with_jpeg12_include_dir" != "x" ; then
16896
16897cat >>confdefs.h <<_ACEOF
16898#define LIBJPEG_12_PATH "$with_jpeg12_include_dir/jpeglib.h"
16899_ACEOF
16900
16901  fi
16902fi
16903
16904
16905
16906# Check whether --enable-cxx was given.
16907if test "${enable_cxx+set}" = set; then :
16908  enableval=$enable_cxx; HAVE_CXX=$enableval
16909else
16910  HAVE_CXX=yes
16911fi
16912
16913
16914if test "$HAVE_CXX" = "yes" ; then
16915
16916$as_echo "#define CXX_SUPPORT 1" >>confdefs.h
16917
16918else
16919  HAVE_CXX=no
16920fi
16921
16922 if test "$HAVE_CXX" = "yes"; then
16923  HAVE_CXX_TRUE=
16924  HAVE_CXX_FALSE='#'
16925else
16926  HAVE_CXX_TRUE='#'
16927  HAVE_CXX_FALSE=
16928fi
16929
16930
16931
16932HAVE_OPENGL=no
16933
16934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
16935$as_echo_n "checking for X... " >&6; }
16936
16937
16938# Check whether --with-x was given.
16939if test "${with_x+set}" = set; then :
16940  withval=$with_x;
16941fi
16942
16943# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
16944if test "x$with_x" = xno; then
16945  # The user explicitly disabled X.
16946  have_x=disabled
16947else
16948  case $x_includes,$x_libraries in #(
16949    *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
16950    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
16951  $as_echo_n "(cached) " >&6
16952else
16953  # One or both of the vars are not set, and there is no cached value.
16954ac_x_includes=no ac_x_libraries=no
16955rm -f -r conftest.dir
16956if mkdir conftest.dir; then
16957  cd conftest.dir
16958  cat >Imakefile <<'_ACEOF'
16959incroot:
16960	@echo incroot='${INCROOT}'
16961usrlibdir:
16962	@echo usrlibdir='${USRLIBDIR}'
16963libdir:
16964	@echo libdir='${LIBDIR}'
16965_ACEOF
16966  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
16967    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16968    for ac_var in incroot usrlibdir libdir; do
16969      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
16970    done
16971    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
16972    for ac_extension in a so sl dylib la dll; do
16973      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
16974	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
16975	ac_im_usrlibdir=$ac_im_libdir; break
16976      fi
16977    done
16978    # Screen out bogus values from the imake configuration.  They are
16979    # bogus both because they are the default anyway, and because
16980    # using them would break gcc on systems where it needs fixed includes.
16981    case $ac_im_incroot in
16982	/usr/include) ac_x_includes= ;;
16983	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
16984    esac
16985    case $ac_im_usrlibdir in
16986	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
16987	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
16988    esac
16989  fi
16990  cd ..
16991  rm -f -r conftest.dir
16992fi
16993
16994# Standard set of common directories for X headers.
16995# Check X11 before X11Rn because it is often a symlink to the current release.
16996ac_x_header_dirs='
16997/usr/X11/include
16998/usr/X11R7/include
16999/usr/X11R6/include
17000/usr/X11R5/include
17001/usr/X11R4/include
17002
17003/usr/include/X11
17004/usr/include/X11R7
17005/usr/include/X11R6
17006/usr/include/X11R5
17007/usr/include/X11R4
17008
17009/usr/local/X11/include
17010/usr/local/X11R7/include
17011/usr/local/X11R6/include
17012/usr/local/X11R5/include
17013/usr/local/X11R4/include
17014
17015/usr/local/include/X11
17016/usr/local/include/X11R7
17017/usr/local/include/X11R6
17018/usr/local/include/X11R5
17019/usr/local/include/X11R4
17020
17021/usr/X386/include
17022/usr/x386/include
17023/usr/XFree86/include/X11
17024
17025/usr/include
17026/usr/local/include
17027/usr/unsupported/include
17028/usr/athena/include
17029/usr/local/x11r5/include
17030/usr/lpp/Xamples/include
17031
17032/usr/openwin/include
17033/usr/openwin/share/include'
17034
17035if test "$ac_x_includes" = no; then
17036  # Guess where to find include files, by looking for Xlib.h.
17037  # First, try using that file with no special directory specified.
17038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17039/* end confdefs.h.  */
17040#include <X11/Xlib.h>
17041_ACEOF
17042if ac_fn_c_try_cpp "$LINENO"; then :
17043  # We can compile using X headers with no special include directory.
17044ac_x_includes=
17045else
17046  for ac_dir in $ac_x_header_dirs; do
17047  if test -r "$ac_dir/X11/Xlib.h"; then
17048    ac_x_includes=$ac_dir
17049    break
17050  fi
17051done
17052fi
17053rm -f conftest.err conftest.$ac_ext
17054fi # $ac_x_includes = no
17055
17056if test "$ac_x_libraries" = no; then
17057  # Check for the libraries.
17058  # See if we find them without any special options.
17059  # Don't add to $LIBS permanently.
17060  ac_save_LIBS=$LIBS
17061  LIBS="-lX11 $LIBS"
17062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17063/* end confdefs.h.  */
17064#include <X11/Xlib.h>
17065int
17066main ()
17067{
17068XrmInitialize ()
17069  ;
17070  return 0;
17071}
17072_ACEOF
17073if ac_fn_c_try_link "$LINENO"; then :
17074  LIBS=$ac_save_LIBS
17075# We can link X programs with no special library path.
17076ac_x_libraries=
17077else
17078  LIBS=$ac_save_LIBS
17079for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
17080do
17081  # Don't even attempt the hair of trying to link an X program!
17082  for ac_extension in a so sl dylib la dll; do
17083    if test -r "$ac_dir/libX11.$ac_extension"; then
17084      ac_x_libraries=$ac_dir
17085      break 2
17086    fi
17087  done
17088done
17089fi
17090rm -f core conftest.err conftest.$ac_objext \
17091    conftest$ac_exeext conftest.$ac_ext
17092fi # $ac_x_libraries = no
17093
17094case $ac_x_includes,$ac_x_libraries in #(
17095  no,* | *,no | *\'*)
17096    # Didn't find X, or a directory has "'" in its name.
17097    ac_cv_have_x="have_x=no";; #(
17098  *)
17099    # Record where we found X for the cache.
17100    ac_cv_have_x="have_x=yes\
17101	ac_x_includes='$ac_x_includes'\
17102	ac_x_libraries='$ac_x_libraries'"
17103esac
17104fi
17105;; #(
17106    *) have_x=yes;;
17107  esac
17108  eval "$ac_cv_have_x"
17109fi # $with_x != no
17110
17111if test "$have_x" != yes; then
17112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
17113$as_echo "$have_x" >&6; }
17114  no_x=yes
17115else
17116  # If each of the values was on the command line, it overrides each guess.
17117  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
17118  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
17119  # Update the cache value to reflect the command line values.
17120  ac_cv_have_x="have_x=yes\
17121	ac_x_includes='$x_includes'\
17122	ac_x_libraries='$x_libraries'"
17123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
17124$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
17125fi
17126
17127if test "$no_x" = yes; then
17128  # Not all programs may use this symbol, but it does not hurt to define it.
17129
17130$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
17131
17132  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
17133else
17134  if test -n "$x_includes"; then
17135    X_CFLAGS="$X_CFLAGS -I$x_includes"
17136  fi
17137
17138  # It would also be nice to do this for all -L options, not just this one.
17139  if test -n "$x_libraries"; then
17140    X_LIBS="$X_LIBS -L$x_libraries"
17141    # For Solaris; some versions of Sun CC require a space after -R and
17142    # others require no space.  Words are not sufficient . . . .
17143    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
17144$as_echo_n "checking whether -R must be followed by a space... " >&6; }
17145    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
17146    ac_xsave_c_werror_flag=$ac_c_werror_flag
17147    ac_c_werror_flag=yes
17148    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17149/* end confdefs.h.  */
17150
17151int
17152main ()
17153{
17154
17155  ;
17156  return 0;
17157}
17158_ACEOF
17159if ac_fn_c_try_link "$LINENO"; then :
17160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17161$as_echo "no" >&6; }
17162       X_LIBS="$X_LIBS -R$x_libraries"
17163else
17164  LIBS="$ac_xsave_LIBS -R $x_libraries"
17165       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17166/* end confdefs.h.  */
17167
17168int
17169main ()
17170{
17171
17172  ;
17173  return 0;
17174}
17175_ACEOF
17176if ac_fn_c_try_link "$LINENO"; then :
17177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17178$as_echo "yes" >&6; }
17179	  X_LIBS="$X_LIBS -R $x_libraries"
17180else
17181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
17182$as_echo "neither works" >&6; }
17183fi
17184rm -f core conftest.err conftest.$ac_objext \
17185    conftest$ac_exeext conftest.$ac_ext
17186fi
17187rm -f core conftest.err conftest.$ac_objext \
17188    conftest$ac_exeext conftest.$ac_ext
17189    ac_c_werror_flag=$ac_xsave_c_werror_flag
17190    LIBS=$ac_xsave_LIBS
17191  fi
17192
17193  # Check for system-dependent libraries X programs must link with.
17194  # Do this before checking for the system-independent R6 libraries
17195  # (-lICE), since we may need -lsocket or whatever for X linking.
17196
17197  if test "$ISC" = yes; then
17198    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
17199  else
17200    # Martyn Johnson says this is needed for Ultrix, if the X
17201    # libraries were built with DECnet support.  And Karl Berry says
17202    # the Alpha needs dnet_stub (dnet does not exist).
17203    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
17204    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17205/* end confdefs.h.  */
17206
17207/* Override any GCC internal prototype to avoid an error.
17208   Use char because int might match the return type of a GCC
17209   builtin and then its argument prototype would still apply.  */
17210#ifdef __cplusplus
17211extern "C"
17212#endif
17213char XOpenDisplay ();
17214int
17215main ()
17216{
17217return XOpenDisplay ();
17218  ;
17219  return 0;
17220}
17221_ACEOF
17222if ac_fn_c_try_link "$LINENO"; then :
17223
17224else
17225  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
17226$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
17227if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
17228  $as_echo_n "(cached) " >&6
17229else
17230  ac_check_lib_save_LIBS=$LIBS
17231LIBS="-ldnet  $LIBS"
17232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17233/* end confdefs.h.  */
17234
17235/* Override any GCC internal prototype to avoid an error.
17236   Use char because int might match the return type of a GCC
17237   builtin and then its argument prototype would still apply.  */
17238#ifdef __cplusplus
17239extern "C"
17240#endif
17241char dnet_ntoa ();
17242int
17243main ()
17244{
17245return dnet_ntoa ();
17246  ;
17247  return 0;
17248}
17249_ACEOF
17250if ac_fn_c_try_link "$LINENO"; then :
17251  ac_cv_lib_dnet_dnet_ntoa=yes
17252else
17253  ac_cv_lib_dnet_dnet_ntoa=no
17254fi
17255rm -f core conftest.err conftest.$ac_objext \
17256    conftest$ac_exeext conftest.$ac_ext
17257LIBS=$ac_check_lib_save_LIBS
17258fi
17259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
17260$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
17261if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
17262  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
17263fi
17264
17265    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
17266      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
17267$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
17268if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
17269  $as_echo_n "(cached) " >&6
17270else
17271  ac_check_lib_save_LIBS=$LIBS
17272LIBS="-ldnet_stub  $LIBS"
17273cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17274/* end confdefs.h.  */
17275
17276/* Override any GCC internal prototype to avoid an error.
17277   Use char because int might match the return type of a GCC
17278   builtin and then its argument prototype would still apply.  */
17279#ifdef __cplusplus
17280extern "C"
17281#endif
17282char dnet_ntoa ();
17283int
17284main ()
17285{
17286return dnet_ntoa ();
17287  ;
17288  return 0;
17289}
17290_ACEOF
17291if ac_fn_c_try_link "$LINENO"; then :
17292  ac_cv_lib_dnet_stub_dnet_ntoa=yes
17293else
17294  ac_cv_lib_dnet_stub_dnet_ntoa=no
17295fi
17296rm -f core conftest.err conftest.$ac_objext \
17297    conftest$ac_exeext conftest.$ac_ext
17298LIBS=$ac_check_lib_save_LIBS
17299fi
17300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
17301$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
17302if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
17303  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
17304fi
17305
17306    fi
17307fi
17308rm -f core conftest.err conftest.$ac_objext \
17309    conftest$ac_exeext conftest.$ac_ext
17310    LIBS="$ac_xsave_LIBS"
17311
17312    # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
17313    # to get the SysV transport functions.
17314    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
17315    # needs -lnsl.
17316    # The nsl library prevents programs from opening the X display
17317    # on Irix 5.2, according to T.E. Dickey.
17318    # The functions gethostbyname, getservbyname, and inet_addr are
17319    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
17320    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
17321if test "x$ac_cv_func_gethostbyname" = x""yes; then :
17322
17323fi
17324
17325    if test $ac_cv_func_gethostbyname = no; then
17326      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
17327$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
17328if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
17329  $as_echo_n "(cached) " >&6
17330else
17331  ac_check_lib_save_LIBS=$LIBS
17332LIBS="-lnsl  $LIBS"
17333cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17334/* end confdefs.h.  */
17335
17336/* Override any GCC internal prototype to avoid an error.
17337   Use char because int might match the return type of a GCC
17338   builtin and then its argument prototype would still apply.  */
17339#ifdef __cplusplus
17340extern "C"
17341#endif
17342char gethostbyname ();
17343int
17344main ()
17345{
17346return gethostbyname ();
17347  ;
17348  return 0;
17349}
17350_ACEOF
17351if ac_fn_c_try_link "$LINENO"; then :
17352  ac_cv_lib_nsl_gethostbyname=yes
17353else
17354  ac_cv_lib_nsl_gethostbyname=no
17355fi
17356rm -f core conftest.err conftest.$ac_objext \
17357    conftest$ac_exeext conftest.$ac_ext
17358LIBS=$ac_check_lib_save_LIBS
17359fi
17360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
17361$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
17362if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
17363  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
17364fi
17365
17366      if test $ac_cv_lib_nsl_gethostbyname = no; then
17367	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
17368$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
17369if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
17370  $as_echo_n "(cached) " >&6
17371else
17372  ac_check_lib_save_LIBS=$LIBS
17373LIBS="-lbsd  $LIBS"
17374cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17375/* end confdefs.h.  */
17376
17377/* Override any GCC internal prototype to avoid an error.
17378   Use char because int might match the return type of a GCC
17379   builtin and then its argument prototype would still apply.  */
17380#ifdef __cplusplus
17381extern "C"
17382#endif
17383char gethostbyname ();
17384int
17385main ()
17386{
17387return gethostbyname ();
17388  ;
17389  return 0;
17390}
17391_ACEOF
17392if ac_fn_c_try_link "$LINENO"; then :
17393  ac_cv_lib_bsd_gethostbyname=yes
17394else
17395  ac_cv_lib_bsd_gethostbyname=no
17396fi
17397rm -f core conftest.err conftest.$ac_objext \
17398    conftest$ac_exeext conftest.$ac_ext
17399LIBS=$ac_check_lib_save_LIBS
17400fi
17401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
17402$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
17403if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
17404  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
17405fi
17406
17407      fi
17408    fi
17409
17410    # [email protected] says without -lsocket,
17411    # socket/setsockopt and other routines are undefined under SCO ODT
17412    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
17413    # on later versions), says Simon Leinen: it contains gethostby*
17414    # variants that don't use the name server (or something).  -lsocket
17415    # must be given before -lnsl if both are needed.  We assume that
17416    # if connect needs -lnsl, so does gethostbyname.
17417    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
17418if test "x$ac_cv_func_connect" = x""yes; then :
17419
17420fi
17421
17422    if test $ac_cv_func_connect = no; then
17423      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
17424$as_echo_n "checking for connect in -lsocket... " >&6; }
17425if test "${ac_cv_lib_socket_connect+set}" = set; then :
17426  $as_echo_n "(cached) " >&6
17427else
17428  ac_check_lib_save_LIBS=$LIBS
17429LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
17430cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17431/* end confdefs.h.  */
17432
17433/* Override any GCC internal prototype to avoid an error.
17434   Use char because int might match the return type of a GCC
17435   builtin and then its argument prototype would still apply.  */
17436#ifdef __cplusplus
17437extern "C"
17438#endif
17439char connect ();
17440int
17441main ()
17442{
17443return connect ();
17444  ;
17445  return 0;
17446}
17447_ACEOF
17448if ac_fn_c_try_link "$LINENO"; then :
17449  ac_cv_lib_socket_connect=yes
17450else
17451  ac_cv_lib_socket_connect=no
17452fi
17453rm -f core conftest.err conftest.$ac_objext \
17454    conftest$ac_exeext conftest.$ac_ext
17455LIBS=$ac_check_lib_save_LIBS
17456fi
17457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
17458$as_echo "$ac_cv_lib_socket_connect" >&6; }
17459if test "x$ac_cv_lib_socket_connect" = x""yes; then :
17460  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
17461fi
17462
17463    fi
17464
17465    # Guillermo Gomez says -lposix is necessary on A/UX.
17466    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
17467if test "x$ac_cv_func_remove" = x""yes; then :
17468
17469fi
17470
17471    if test $ac_cv_func_remove = no; then
17472      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
17473$as_echo_n "checking for remove in -lposix... " >&6; }
17474if test "${ac_cv_lib_posix_remove+set}" = set; then :
17475  $as_echo_n "(cached) " >&6
17476else
17477  ac_check_lib_save_LIBS=$LIBS
17478LIBS="-lposix  $LIBS"
17479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17480/* end confdefs.h.  */
17481
17482/* Override any GCC internal prototype to avoid an error.
17483   Use char because int might match the return type of a GCC
17484   builtin and then its argument prototype would still apply.  */
17485#ifdef __cplusplus
17486extern "C"
17487#endif
17488char remove ();
17489int
17490main ()
17491{
17492return remove ();
17493  ;
17494  return 0;
17495}
17496_ACEOF
17497if ac_fn_c_try_link "$LINENO"; then :
17498  ac_cv_lib_posix_remove=yes
17499else
17500  ac_cv_lib_posix_remove=no
17501fi
17502rm -f core conftest.err conftest.$ac_objext \
17503    conftest$ac_exeext conftest.$ac_ext
17504LIBS=$ac_check_lib_save_LIBS
17505fi
17506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
17507$as_echo "$ac_cv_lib_posix_remove" >&6; }
17508if test "x$ac_cv_lib_posix_remove" = x""yes; then :
17509  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
17510fi
17511
17512    fi
17513
17514    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
17515    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
17516if test "x$ac_cv_func_shmat" = x""yes; then :
17517
17518fi
17519
17520    if test $ac_cv_func_shmat = no; then
17521      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
17522$as_echo_n "checking for shmat in -lipc... " >&6; }
17523if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
17524  $as_echo_n "(cached) " >&6
17525else
17526  ac_check_lib_save_LIBS=$LIBS
17527LIBS="-lipc  $LIBS"
17528cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17529/* end confdefs.h.  */
17530
17531/* Override any GCC internal prototype to avoid an error.
17532   Use char because int might match the return type of a GCC
17533   builtin and then its argument prototype would still apply.  */
17534#ifdef __cplusplus
17535extern "C"
17536#endif
17537char shmat ();
17538int
17539main ()
17540{
17541return shmat ();
17542  ;
17543  return 0;
17544}
17545_ACEOF
17546if ac_fn_c_try_link "$LINENO"; then :
17547  ac_cv_lib_ipc_shmat=yes
17548else
17549  ac_cv_lib_ipc_shmat=no
17550fi
17551rm -f core conftest.err conftest.$ac_objext \
17552    conftest$ac_exeext conftest.$ac_ext
17553LIBS=$ac_check_lib_save_LIBS
17554fi
17555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
17556$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
17557if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
17558  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
17559fi
17560
17561    fi
17562  fi
17563
17564  # Check for libraries that X11R6 Xt/Xaw programs need.
17565  ac_save_LDFLAGS=$LDFLAGS
17566  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
17567  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
17568  # check for ICE first), but we must link in the order -lSM -lICE or
17569  # we get undefined symbols.  So assume we have SM if we have ICE.
17570  # These have to be linked with before -lX11, unlike the other
17571  # libraries we check for below, so use a different variable.
17572  # John Interrante, Karl Berry
17573  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
17574$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
17575if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
17576  $as_echo_n "(cached) " >&6
17577else
17578  ac_check_lib_save_LIBS=$LIBS
17579LIBS="-lICE $X_EXTRA_LIBS $LIBS"
17580cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17581/* end confdefs.h.  */
17582
17583/* Override any GCC internal prototype to avoid an error.
17584   Use char because int might match the return type of a GCC
17585   builtin and then its argument prototype would still apply.  */
17586#ifdef __cplusplus
17587extern "C"
17588#endif
17589char IceConnectionNumber ();
17590int
17591main ()
17592{
17593return IceConnectionNumber ();
17594  ;
17595  return 0;
17596}
17597_ACEOF
17598if ac_fn_c_try_link "$LINENO"; then :
17599  ac_cv_lib_ICE_IceConnectionNumber=yes
17600else
17601  ac_cv_lib_ICE_IceConnectionNumber=no
17602fi
17603rm -f core conftest.err conftest.$ac_objext \
17604    conftest$ac_exeext conftest.$ac_ext
17605LIBS=$ac_check_lib_save_LIBS
17606fi
17607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
17608$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
17609if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
17610  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
17611fi
17612
17613  LDFLAGS=$ac_save_LDFLAGS
17614
17615fi
17616
17617
17618
17619
17620
17621ac_ext=c
17622ac_cpp='$CPP $CPPFLAGS'
17623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17625ac_compiler_gnu=$ac_cv_c_compiler_gnu
17626
17627acx_pthread_ok=no
17628
17629# We used to check for pthread.h first, but this fails if pthread.h
17630# requires special compiler flags (e.g. on True64 or Sequent).
17631# It gets checked for in the link test anyway.
17632
17633# First of all, check if the user has set any of the PTHREAD_LIBS,
17634# etcetera environment variables, and if threads linking works using
17635# them:
17636if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
17637        save_CFLAGS="$CFLAGS"
17638        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17639        save_LIBS="$LIBS"
17640        LIBS="$PTHREAD_LIBS $LIBS"
17641        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
17642$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
17643        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17644/* end confdefs.h.  */
17645
17646/* Override any GCC internal prototype to avoid an error.
17647   Use char because int might match the return type of a GCC
17648   builtin and then its argument prototype would still apply.  */
17649#ifdef __cplusplus
17650extern "C"
17651#endif
17652char pthread_join ();
17653int
17654main ()
17655{
17656return pthread_join ();
17657  ;
17658  return 0;
17659}
17660_ACEOF
17661if ac_fn_c_try_link "$LINENO"; then :
17662  acx_pthread_ok=yes
17663fi
17664rm -f core conftest.err conftest.$ac_objext \
17665    conftest$ac_exeext conftest.$ac_ext
17666        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
17667$as_echo "$acx_pthread_ok" >&6; }
17668        if test x"$acx_pthread_ok" = xno; then
17669                PTHREAD_LIBS=""
17670                PTHREAD_CFLAGS=""
17671        fi
17672        LIBS="$save_LIBS"
17673        CFLAGS="$save_CFLAGS"
17674fi
17675
17676# We must check for the threads library under a number of different
17677# names; the ordering is very important because some systems
17678# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
17679# libraries is broken (non-POSIX).
17680
17681# Create a list of thread flags to try.  Items starting with a "-" are
17682# C compiler flags, and other items are library names, except for "none"
17683# which indicates that we try without any flags at all, and "pthread-config"
17684# which is a program returning the flags for the Pth emulation library.
17685
17686acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
17687
17688# The ordering *is* (sometimes) important.  Some notes on the
17689# individual items follow:
17690
17691# pthreads: AIX (must check this before -lpthread)
17692# none: in case threads are in libc; should be tried before -Kthread and
17693#       other compiler flags to prevent continual compiler warnings
17694# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
17695# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
17696# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
17697# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
17698# -pthreads: Solaris/gcc
17699# -mthreads: Mingw32/gcc, Lynx/gcc
17700# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
17701#      doesn't hurt to check since this sometimes defines pthreads too;
17702#      also defines -D_REENTRANT)
17703# pthread: Linux, etcetera
17704# --thread-safe: KAI C++
17705# pthread-config: use pthread-config program (for GNU Pth library)
17706
17707case "${host_cpu}-${host_os}" in
17708        *solaris*)
17709
17710        # On Solaris (at least, for some versions), libc contains stubbed
17711        # (non-functional) versions of the pthreads routines, so link-based
17712        # tests will erroneously succeed.  (We need to link with -pthread or
17713        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
17714        # a function called by this macro, so we could check for that, but
17715        # who knows whether they'll stub that too in a future libc.)  So,
17716        # we'll just look for -pthreads and -lpthread first:
17717
17718        acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
17719        ;;
17720esac
17721
17722if test x"$acx_pthread_ok" = xno; then
17723for flag in $acx_pthread_flags; do
17724
17725        case $flag in
17726                none)
17727                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
17728$as_echo_n "checking whether pthreads work without any flags... " >&6; }
17729                ;;
17730
17731                -*)
17732                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
17733$as_echo_n "checking whether pthreads work with $flag... " >&6; }
17734                PTHREAD_CFLAGS="$flag"
17735                ;;
17736
17737		pthread-config)
17738		# Extract the first word of "pthread-config", so it can be a program name with args.
17739set dummy pthread-config; ac_word=$2
17740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17741$as_echo_n "checking for $ac_word... " >&6; }
17742if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
17743  $as_echo_n "(cached) " >&6
17744else
17745  if test -n "$acx_pthread_config"; then
17746  ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
17747else
17748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17749for as_dir in $PATH
17750do
17751  IFS=$as_save_IFS
17752  test -z "$as_dir" && as_dir=.
17753    for ac_exec_ext in '' $ac_executable_extensions; do
17754  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17755    ac_cv_prog_acx_pthread_config="yes"
17756    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17757    break 2
17758  fi
17759done
17760  done
17761IFS=$as_save_IFS
17762
17763  test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
17764fi
17765fi
17766acx_pthread_config=$ac_cv_prog_acx_pthread_config
17767if test -n "$acx_pthread_config"; then
17768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
17769$as_echo "$acx_pthread_config" >&6; }
17770else
17771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17772$as_echo "no" >&6; }
17773fi
17774
17775
17776		if test x"$acx_pthread_config" = xno; then continue; fi
17777		PTHREAD_CFLAGS="`pthread-config --cflags`"
17778		PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
17779		;;
17780
17781                *)
17782                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
17783$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
17784                PTHREAD_LIBS="-l$flag"
17785                ;;
17786        esac
17787
17788        save_LIBS="$LIBS"
17789        save_CFLAGS="$CFLAGS"
17790        LIBS="$PTHREAD_LIBS $LIBS"
17791        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17792
17793        # Check for various functions.  We must include pthread.h,
17794        # since some functions may be macros.  (On the Sequent, we
17795        # need a special flag -Kthread to make this header compile.)
17796        # We check for pthread_join because it is in -lpthread on IRIX
17797        # while pthread_create is in libc.  We check for pthread_attr_init
17798        # due to DEC craziness with -lpthreads.  We check for
17799        # pthread_cleanup_push because it is one of the few pthread
17800        # functions on Solaris that doesn't have a non-functional libc stub.
17801        # We try pthread_create on general principles.
17802        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17803/* end confdefs.h.  */
17804#include <pthread.h>
17805int
17806main ()
17807{
17808pthread_t th; pthread_join(th, 0);
17809                     pthread_attr_init(0); pthread_cleanup_push(0, 0);
17810                     pthread_create(0,0,0,0); pthread_cleanup_pop(0);
17811  ;
17812  return 0;
17813}
17814_ACEOF
17815if ac_fn_c_try_link "$LINENO"; then :
17816  acx_pthread_ok=yes
17817fi
17818rm -f core conftest.err conftest.$ac_objext \
17819    conftest$ac_exeext conftest.$ac_ext
17820
17821        LIBS="$save_LIBS"
17822        CFLAGS="$save_CFLAGS"
17823
17824        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
17825$as_echo "$acx_pthread_ok" >&6; }
17826        if test "x$acx_pthread_ok" = xyes; then
17827                break;
17828        fi
17829
17830        PTHREAD_LIBS=""
17831        PTHREAD_CFLAGS=""
17832done
17833fi
17834
17835# Various other checks:
17836if test "x$acx_pthread_ok" = xyes; then
17837        save_LIBS="$LIBS"
17838        LIBS="$PTHREAD_LIBS $LIBS"
17839        save_CFLAGS="$CFLAGS"
17840        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17841
17842        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
17843	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
17844$as_echo_n "checking for joinable pthread attribute... " >&6; }
17845	attr_name=unknown
17846	for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
17847	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17848/* end confdefs.h.  */
17849#include <pthread.h>
17850int
17851main ()
17852{
17853int attr=$attr;
17854  ;
17855  return 0;
17856}
17857_ACEOF
17858if ac_fn_c_try_link "$LINENO"; then :
17859  attr_name=$attr; break
17860fi
17861rm -f core conftest.err conftest.$ac_objext \
17862    conftest$ac_exeext conftest.$ac_ext
17863	done
17864        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
17865$as_echo "$attr_name" >&6; }
17866        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
17867
17868cat >>confdefs.h <<_ACEOF
17869#define PTHREAD_CREATE_JOINABLE $attr_name
17870_ACEOF
17871
17872        fi
17873
17874        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
17875$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
17876        flag=no
17877        case "${host_cpu}-${host_os}" in
17878            *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
17879            *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
17880        esac
17881        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
17882$as_echo "${flag}" >&6; }
17883        if test "x$flag" != xno; then
17884            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
17885        fi
17886
17887        LIBS="$save_LIBS"
17888        CFLAGS="$save_CFLAGS"
17889
17890        # More AIX lossage: must compile with cc_r
17891        # Extract the first word of "cc_r", so it can be a program name with args.
17892set dummy cc_r; ac_word=$2
17893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17894$as_echo_n "checking for $ac_word... " >&6; }
17895if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
17896  $as_echo_n "(cached) " >&6
17897else
17898  if test -n "$PTHREAD_CC"; then
17899  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
17900else
17901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17902for as_dir in $PATH
17903do
17904  IFS=$as_save_IFS
17905  test -z "$as_dir" && as_dir=.
17906    for ac_exec_ext in '' $ac_executable_extensions; do
17907  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17908    ac_cv_prog_PTHREAD_CC="cc_r"
17909    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17910    break 2
17911  fi
17912done
17913  done
17914IFS=$as_save_IFS
17915
17916  test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
17917fi
17918fi
17919PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
17920if test -n "$PTHREAD_CC"; then
17921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
17922$as_echo "$PTHREAD_CC" >&6; }
17923else
17924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17925$as_echo "no" >&6; }
17926fi
17927
17928
17929else
17930        PTHREAD_CC="$CC"
17931fi
17932
17933
17934
17935
17936
17937# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
17938if test x"$acx_pthread_ok" = xyes; then
17939
17940$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
17941
17942        :
17943else
17944        acx_pthread_ok=no
17945
17946fi
17947ac_ext=c
17948ac_cpp='$CPP $CPPFLAGS'
17949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17951ac_compiler_gnu=$ac_cv_c_compiler_gnu
17952
17953
17954
17955#
17956# There isn't a reliable way to know we should use the Apple OpenGL framework
17957# without a configure option.  A Mac OS X user may have installed an
17958# alternative GL implementation (e.g., Mesa), which may or may not depend on X.
17959#
17960
17961# Check whether --with-apple-opengl-framework was given.
17962if test "${with_apple_opengl_framework+set}" = set; then :
17963  withval=$with_apple_opengl_framework;
17964fi
17965
17966if test "X$with_apple_opengl_framework" = "Xyes"; then
17967
17968$as_echo "#define HAVE_APPLE_OPENGL_FRAMEWORK 1" >>confdefs.h
17969
17970  GL_LIBS="-framework OpenGL"
17971else
17972  ac_ext=c
17973ac_cpp='$CPP $CPPFLAGS'
17974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17976ac_compiler_gnu=$ac_cv_c_compiler_gnu
17977
17978
17979  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
17980$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
17981if test "${ax_cv_c_compiler_ms+set}" = set; then :
17982  $as_echo_n "(cached) " >&6
17983else
17984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17985/* end confdefs.h.  */
17986
17987int
17988main ()
17989{
17990#ifndef _MSC_VER
17991       choke me
17992#endif
17993
17994  ;
17995  return 0;
17996}
17997_ACEOF
17998if ac_fn_c_try_compile "$LINENO"; then :
17999  ax_compiler_ms=yes
18000else
18001  ax_compiler_ms=no
18002fi
18003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18004ax_cv_c_compiler_ms=$ax_compiler_ms
18005
18006fi
18007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
18008$as_echo "$ax_cv_c_compiler_ms" >&6; }
18009  if test X$ax_compiler_ms = Xno; then
18010    GL_CFLAGS="${PTHREAD_CFLAGS}"
18011    GL_LIBS="${PTHREAD_LIBS} -lm"
18012  fi
18013
18014  #
18015  # Use x_includes and x_libraries if they have been set (presumably by
18016  # AC_PATH_X).
18017  #
18018  if test "X$no_x" != "Xyes"; then
18019    if test -n "$x_includes"; then
18020      GL_CFLAGS="-I${x_includes} ${GL_CFLAGS}"
18021    fi
18022    if test -n "$x_libraries"; then
18023      GL_LIBS="-L${x_libraries} -lX11 ${GL_LIBS}"
18024    fi
18025  fi
18026
18027  for ac_header in windows.h
18028do :
18029  ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
18030if test "x$ac_cv_header_windows_h" = x""yes; then :
18031  cat >>confdefs.h <<_ACEOF
18032#define HAVE_WINDOWS_H 1
18033_ACEOF
18034
18035fi
18036
18037done
18038
18039
18040  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL library" >&5
18041$as_echo_n "checking for OpenGL library... " >&6; }
18042if test "${ax_cv_check_gl_libgl+set}" = set; then :
18043  $as_echo_n "(cached) " >&6
18044else
18045  ax_cv_check_gl_libgl="no"
18046  ax_save_CPPFLAGS="${CPPFLAGS}"
18047  CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
18048  ax_save_LIBS="${LIBS}"
18049  LIBS=""
18050  ax_check_libs="-lopengl32 -lGL"
18051  for ax_lib in ${ax_check_libs}; do
18052    if test X$ax_compiler_ms = Xyes; then
18053      ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`
18054    else
18055      ax_try_lib="${ax_lib}"
18056    fi
18057    LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}"
18058    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18059/* end confdefs.h.  */
18060
18061# if HAVE_WINDOWS_H && defined(_WIN32)
18062#   include <windows.h>
18063# endif
18064# include <GL/gl.h>
18065int
18066main ()
18067{
18068glBegin(0)
18069  ;
18070  return 0;
18071}
18072_ACEOF
18073if ac_fn_c_try_link "$LINENO"; then :
18074  ax_cv_check_gl_libgl="${ax_try_lib}"; break
18075fi
18076rm -f core conftest.err conftest.$ac_objext \
18077    conftest$ac_exeext conftest.$ac_ext
18078  done
18079  LIBS=${ax_save_LIBS}
18080  CPPFLAGS=${ax_save_CPPFLAGS}
18081fi
18082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_gl_libgl" >&5
18083$as_echo "$ax_cv_check_gl_libgl" >&6; }
18084
18085  if test "X${ax_cv_check_gl_libgl}" = "Xno"; then
18086    no_gl="yes"
18087    GL_CFLAGS=""
18088    GL_LIBS=""
18089  else
18090    GL_LIBS="${ax_cv_check_gl_libgl} ${GL_LIBS}"
18091  fi
18092  ac_ext=c
18093ac_cpp='$CPP $CPPFLAGS'
18094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18096ac_compiler_gnu=$ac_cv_c_compiler_gnu
18097
18098fi
18099
18100
18101
18102
18103GLU_CFLAGS="${GL_CFLAGS}"
18104if test "X${with_apple_opengl_framework}" != "Xyes"; then
18105  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL Utility library" >&5
18106$as_echo_n "checking for OpenGL Utility library... " >&6; }
18107if test "${ax_cv_check_glu_libglu+set}" = set; then :
18108  $as_echo_n "(cached) " >&6
18109else
18110  ax_cv_check_glu_libglu="no"
18111  ax_save_CPPFLAGS="${CPPFLAGS}"
18112  CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
18113  ax_save_LIBS="${LIBS}"
18114  LIBS=""
18115  ax_check_libs="-lglu32 -lGLU"
18116  for ax_lib in ${ax_check_libs}; do
18117    if test X$ax_compiler_ms = Xyes; then
18118      ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`
18119    else
18120      ax_try_lib="${ax_lib}"
18121    fi
18122    LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}"
18123    #
18124    # libGLU typically links with libstdc++ on POSIX platforms. However,
18125    # setting the language to C++ means that test program source is named
18126    # "conftest.cc"; and Microsoft cl doesn't know what to do with such a
18127    # file.
18128    #
18129    ac_ext=cpp
18130ac_cpp='$CXXCPP $CPPFLAGS'
18131ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18132ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18133ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18134
18135    if test X$ax_compiler_ms = Xyes; then
18136      ac_ext=c
18137ac_cpp='$CPP $CPPFLAGS'
18138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18140ac_compiler_gnu=$ac_cv_c_compiler_gnu
18141
18142    fi
18143    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18144/* end confdefs.h.  */
18145
18146# if HAVE_WINDOWS_H && defined(_WIN32)
18147#   include <windows.h>
18148# endif
18149# include <GL/glu.h>
18150int
18151main ()
18152{
18153gluBeginCurve(0)
18154  ;
18155  return 0;
18156}
18157_ACEOF
18158if ac_fn_c_try_link "$LINENO"; then :
18159  ax_cv_check_glu_libglu="${ax_try_lib}"; break
18160fi
18161rm -f core conftest.err conftest.$ac_objext \
18162    conftest$ac_exeext conftest.$ac_ext
18163    if test X$ax_compiler_ms = Xyes; then
18164      ac_ext=cpp
18165ac_cpp='$CXXCPP $CPPFLAGS'
18166ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18167ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18168ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18169
18170    fi
18171    ac_ext=c
18172ac_cpp='$CPP $CPPFLAGS'
18173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18175ac_compiler_gnu=$ac_cv_c_compiler_gnu
18176
18177  done
18178  LIBS=${ax_save_LIBS}
18179  CPPFLAGS=${ax_save_CPPFLAGS}
18180fi
18181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glu_libglu" >&5
18182$as_echo "$ax_cv_check_glu_libglu" >&6; }
18183  if test "X${ax_cv_check_glu_libglu}" = "Xno"; then
18184    no_glu="yes"
18185    GLU_CFLAGS=""
18186    GLU_LIBS=""
18187  else
18188    GLU_LIBS="${ax_cv_check_glu_libglu} ${GL_LIBS}"
18189  fi
18190fi
18191
18192
18193
18194
18195if test "X$with_apple_opengl_framework" = "Xyes"; then
18196  GLUT_CFLAGS="${GLU_CFLAGS}"
18197  GLUT_LIBS="-framework GLUT -lobjc ${GL_LIBS}"
18198else
18199  GLUT_CFLAGS=${GLU_CFLAGS}
18200  GLUT_LIBS=${GLU_LIBS}
18201
18202  #
18203  # If X is present, assume GLUT depends on it.
18204  #
18205  if test "X${no_x}" != "Xyes"; then
18206    GLUT_LIBS="${X_PRE_LIBS} -lXmu -lXi ${X_EXTRA_LIBS} ${GLUT_LIBS}"
18207  fi
18208
18209  ac_ext=c
18210ac_cpp='$CPP $CPPFLAGS'
18211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18213ac_compiler_gnu=$ac_cv_c_compiler_gnu
18214
18215
18216  ax_save_CPPFLAGS="${CPPFLAGS}"
18217  CPPFLAGS="${GLUT_CFLAGS} ${CPPFLAGS}"
18218
18219  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLUT library" >&5
18220$as_echo_n "checking for GLUT library... " >&6; }
18221if test "${ax_cv_check_glut_libglut+set}" = set; then :
18222  $as_echo_n "(cached) " >&6
18223else
18224  ax_cv_check_glut_libglut="no"
18225  ax_save_LIBS="${LIBS}"
18226  LIBS=""
18227  ax_check_libs="-lglut32 -lglut"
18228  for ax_lib in ${ax_check_libs}; do
18229    if test X$ax_compiler_ms = Xyes; then
18230      ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`
18231    else
18232      ax_try_lib="${ax_lib}"
18233    fi
18234    LIBS="${ax_try_lib} ${GLUT_LIBS} ${ax_save_LIBS}"
18235    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18236/* end confdefs.h.  */
18237
18238# if HAVE_WINDOWS_H && defined(_WIN32)
18239#   include <windows.h>
18240# endif
18241# include <GL/glut.h>
18242int
18243main ()
18244{
18245glutMainLoop()
18246  ;
18247  return 0;
18248}
18249_ACEOF
18250if ac_fn_c_try_link "$LINENO"; then :
18251  ax_cv_check_glut_libglut="${ax_try_lib}"; break
18252fi
18253rm -f core conftest.err conftest.$ac_objext \
18254    conftest$ac_exeext conftest.$ac_ext
18255
18256  done
18257  LIBS=${ax_save_LIBS}
18258
18259fi
18260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glut_libglut" >&5
18261$as_echo "$ax_cv_check_glut_libglut" >&6; }
18262  CPPFLAGS="${ax_save_CPPFLAGS}"
18263  ac_ext=c
18264ac_cpp='$CPP $CPPFLAGS'
18265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18267ac_compiler_gnu=$ac_cv_c_compiler_gnu
18268
18269
18270  if test "X${ax_cv_check_glut_libglut}" = "Xno"; then
18271    no_glut="yes"
18272    GLUT_CFLAGS=""
18273    GLUT_LIBS=""
18274  else
18275    GLUT_LIBS="${ax_cv_check_glut_libglut} ${GLUT_LIBS}"
18276  fi
18277fi
18278
18279
18280
18281
18282
18283if test "$no_x" != "yes" -a "$no_gl" != "yes" \
18284	-a "$no_glu" != "yes" -a "$no_glut" != "yes" ; then
18285  HAVE_OPENGL=yes
18286fi
18287
18288 if test "$HAVE_OPENGL" = "yes"; then
18289  HAVE_OPENGL_TRUE=
18290  HAVE_OPENGL_FALSE='#'
18291else
18292  HAVE_OPENGL_TRUE='#'
18293  HAVE_OPENGL_FALSE=
18294fi
18295
18296
18297
18298
18299
18300
18301
18302
18303
18304# Check whether --enable-strip-chopping was given.
18305if test "${enable_strip_chopping+set}" = set; then :
18306  enableval=$enable_strip_chopping; HAVE_STRIPCHOP=$enableval
18307else
18308  HAVE_STRIPCHOP=yes
18309fi
18310
18311
18312# Check whether --with-default-strip-size was given.
18313if test "${with_default_strip_size+set}" = set; then :
18314  withval=$with_default_strip_size;
18315fi
18316
18317
18318if test "$HAVE_STRIPCHOP" = "yes" \
18319	-a "x$with_default_strip_size" != "xno"; then
18320
18321$as_echo "#define STRIPCHOP_DEFAULT TIFF_STRIPCHOP" >>confdefs.h
18322
18323
18324  if test "x$with_default_strip_size" = "x" \
18325	  -o "x$with_default_strip_size" = "xyes"; then
18326    with_default_strip_size="8192"
18327  fi
18328
18329
18330cat >>confdefs.h <<_ACEOF
18331#define STRIP_SIZE_DEFAULT $with_default_strip_size
18332_ACEOF
18333
18334
18335fi
18336
18337
18338$as_echo "#define SUBIFD_SUPPORT 1" >>confdefs.h
18339
18340
18341
18342# Check whether --enable-extrasample-as-alpha was given.
18343if test "${enable_extrasample_as_alpha+set}" = set; then :
18344  enableval=$enable_extrasample_as_alpha; HAVE_EXTRASAMPLE_AS_ALPHA=$enableval
18345else
18346  HAVE_EXTRASAMPLE_AS_ALPHA=yes
18347fi
18348
18349
18350if test "$HAVE_EXTRASAMPLE_AS_ALPHA" = "yes" ; then
18351
18352$as_echo "#define DEFAULT_EXTRASAMPLE_AS_ALPHA 1" >>confdefs.h
18353
18354fi
18355
18356
18357# Check whether --enable-check-ycbcr-subsampling was given.
18358if test "${enable_check_ycbcr_subsampling+set}" = set; then :
18359  enableval=$enable_check_ycbcr_subsampling; CHECK_JPEG_YCBCR_SUBSAMPLING=$enableval
18360else
18361  CHECK_JPEG_YCBCR_SUBSAMPLING=yes
18362fi
18363
18364
18365if test "$CHECK_JPEG_YCBCR_SUBSAMPLING" = "yes" ; then
18366
18367$as_echo "#define CHECK_JPEG_YCBCR_SUBSAMPLING 1" >>confdefs.h
18368
18369fi
18370
18371
18372
18373
18374ac_config_headers="$ac_config_headers libtiff/tif_config.h libtiff/tiffconf.h"
18375
18376
18377ac_config_files="$ac_config_files Makefile build/Makefile contrib/Makefile contrib/addtiffo/Makefile contrib/dbs/Makefile contrib/dbs/xtiff/Makefile contrib/iptcutil/Makefile contrib/mfs/Makefile contrib/pds/Makefile contrib/ras/Makefile contrib/stream/Makefile contrib/tags/Makefile contrib/win_dib/Makefile html/Makefile html/images/Makefile html/man/Makefile libtiff/Makefile man/Makefile port/Makefile test/Makefile tools/Makefile"
18378
18379cat >confcache <<\_ACEOF
18380# This file is a shell script that caches the results of configure
18381# tests run on this system so they can be shared between configure
18382# scripts and configure runs, see configure's option --config-cache.
18383# It is not useful on other systems.  If it contains results you don't
18384# want to keep, you may remove or edit it.
18385#
18386# config.status only pays attention to the cache file if you give it
18387# the --recheck option to rerun configure.
18388#
18389# `ac_cv_env_foo' variables (set or unset) will be overridden when
18390# loading this file, other *unset* `ac_cv_foo' will be assigned the
18391# following values.
18392
18393_ACEOF
18394
18395# The following way of writing the cache mishandles newlines in values,
18396# but we know of no workaround that is simple, portable, and efficient.
18397# So, we kill variables containing newlines.
18398# Ultrix sh set writes to stderr and can't be redirected directly,
18399# and sets the high bit in the cache file unless we assign to the vars.
18400(
18401  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18402    eval ac_val=\$$ac_var
18403    case $ac_val in #(
18404    *${as_nl}*)
18405      case $ac_var in #(
18406      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18407$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18408      esac
18409      case $ac_var in #(
18410      _ | IFS | as_nl) ;; #(
18411      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18412      *) { eval $ac_var=; unset $ac_var;} ;;
18413      esac ;;
18414    esac
18415  done
18416
18417  (set) 2>&1 |
18418    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18419    *${as_nl}ac_space=\ *)
18420      # `set' does not quote correctly, so add quotes: double-quote
18421      # substitution turns \\\\ into \\, and sed turns \\ into \.
18422      sed -n \
18423	"s/'/'\\\\''/g;
18424	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18425      ;; #(
18426    *)
18427      # `set' quotes correctly as required by POSIX, so do not add quotes.
18428      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18429      ;;
18430    esac |
18431    sort
18432) |
18433  sed '
18434     /^ac_cv_env_/b end
18435     t clear
18436     :clear
18437     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18438     t end
18439     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18440     :end' >>confcache
18441if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18442  if test -w "$cache_file"; then
18443    test "x$cache_file" != "x/dev/null" &&
18444      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18445$as_echo "$as_me: updating cache $cache_file" >&6;}
18446    cat confcache >$cache_file
18447  else
18448    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18449$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18450  fi
18451fi
18452rm -f confcache
18453
18454test "x$prefix" = xNONE && prefix=$ac_default_prefix
18455# Let make expand exec_prefix.
18456test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18457
18458DEFS=-DHAVE_CONFIG_H
18459
18460ac_libobjs=
18461ac_ltlibobjs=
18462for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18463  # 1. Remove the extension, and $U if already installed.
18464  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18465  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18466  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18467  #    will be set to the directory where LIBOBJS objects are built.
18468  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18469  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18470done
18471LIBOBJS=$ac_libobjs
18472
18473LTLIBOBJS=$ac_ltlibobjs
18474
18475
18476 if test -n "$EXEEXT"; then
18477  am__EXEEXT_TRUE=
18478  am__EXEEXT_FALSE='#'
18479else
18480  am__EXEEXT_TRUE='#'
18481  am__EXEEXT_FALSE=
18482fi
18483
18484if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18485  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
18486Usually this means the macro was only invoked conditionally." "$LINENO" 5
18487fi
18488if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18489  as_fn_error "conditional \"AMDEP\" was never defined.
18490Usually this means the macro was only invoked conditionally." "$LINENO" 5
18491fi
18492if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18493  as_fn_error "conditional \"am__fastdepCC\" was never defined.
18494Usually this means the macro was only invoked conditionally." "$LINENO" 5
18495fi
18496if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18497  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
18498Usually this means the macro was only invoked conditionally." "$LINENO" 5
18499fi
18500
18501if test -z "${HAVE_RPATH_TRUE}" && test -z "${HAVE_RPATH_FALSE}"; then
18502  as_fn_error "conditional \"HAVE_RPATH\" was never defined.
18503Usually this means the macro was only invoked conditionally." "$LINENO" 5
18504fi
18505if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then
18506  as_fn_error "conditional \"HAVE_CXX\" was never defined.
18507Usually this means the macro was only invoked conditionally." "$LINENO" 5
18508fi
18509if test -z "${HAVE_OPENGL_TRUE}" && test -z "${HAVE_OPENGL_FALSE}"; then
18510  as_fn_error "conditional \"HAVE_OPENGL\" was never defined.
18511Usually this means the macro was only invoked conditionally." "$LINENO" 5
18512fi
18513
18514: ${CONFIG_STATUS=./config.status}
18515ac_write_fail=0
18516ac_clean_files_save=$ac_clean_files
18517ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18518{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18519$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18520as_write_fail=0
18521cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18522#! $SHELL
18523# Generated by $as_me.
18524# Run this file to recreate the current configuration.
18525# Compiler output produced by configure, useful for debugging
18526# configure, is in config.log if it exists.
18527
18528debug=false
18529ac_cs_recheck=false
18530ac_cs_silent=false
18531
18532SHELL=\${CONFIG_SHELL-$SHELL}
18533export SHELL
18534_ASEOF
18535cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18536## -------------------- ##
18537## M4sh Initialization. ##
18538## -------------------- ##
18539
18540# Be more Bourne compatible
18541DUALCASE=1; export DUALCASE # for MKS sh
18542if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18543  emulate sh
18544  NULLCMD=:
18545  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18546  # is contrary to our usage.  Disable this feature.
18547  alias -g '${1+"$@"}'='"$@"'
18548  setopt NO_GLOB_SUBST
18549else
18550  case `(set -o) 2>/dev/null` in #(
18551  *posix*) :
18552    set -o posix ;; #(
18553  *) :
18554     ;;
18555esac
18556fi
18557
18558
18559as_nl='
18560'
18561export as_nl
18562# Printing a long string crashes Solaris 7 /usr/bin/printf.
18563as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18564as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18565as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18566# Prefer a ksh shell builtin over an external printf program on Solaris,
18567# but without wasting forks for bash or zsh.
18568if test -z "$BASH_VERSION$ZSH_VERSION" \
18569    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18570  as_echo='print -r --'
18571  as_echo_n='print -rn --'
18572elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18573  as_echo='printf %s\n'
18574  as_echo_n='printf %s'
18575else
18576  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18577    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18578    as_echo_n='/usr/ucb/echo -n'
18579  else
18580    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18581    as_echo_n_body='eval
18582      arg=$1;
18583      case $arg in #(
18584      *"$as_nl"*)
18585	expr "X$arg" : "X\\(.*\\)$as_nl";
18586	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18587      esac;
18588      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18589    '
18590    export as_echo_n_body
18591    as_echo_n='sh -c $as_echo_n_body as_echo'
18592  fi
18593  export as_echo_body
18594  as_echo='sh -c $as_echo_body as_echo'
18595fi
18596
18597# The user is always right.
18598if test "${PATH_SEPARATOR+set}" != set; then
18599  PATH_SEPARATOR=:
18600  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18601    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18602      PATH_SEPARATOR=';'
18603  }
18604fi
18605
18606
18607# IFS
18608# We need space, tab and new line, in precisely that order.  Quoting is
18609# there to prevent editors from complaining about space-tab.
18610# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18611# splitting by setting IFS to empty value.)
18612IFS=" ""	$as_nl"
18613
18614# Find who we are.  Look in the path if we contain no directory separator.
18615case $0 in #((
18616  *[\\/]* ) as_myself=$0 ;;
18617  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18618for as_dir in $PATH
18619do
18620  IFS=$as_save_IFS
18621  test -z "$as_dir" && as_dir=.
18622    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18623  done
18624IFS=$as_save_IFS
18625
18626     ;;
18627esac
18628# We did not find ourselves, most probably we were run as `sh COMMAND'
18629# in which case we are not to be found in the path.
18630if test "x$as_myself" = x; then
18631  as_myself=$0
18632fi
18633if test ! -f "$as_myself"; then
18634  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18635  exit 1
18636fi
18637
18638# Unset variables that we do not need and which cause bugs (e.g. in
18639# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18640# suppresses any "Segmentation fault" message there.  '((' could
18641# trigger a bug in pdksh 5.2.14.
18642for as_var in BASH_ENV ENV MAIL MAILPATH
18643do eval test x\${$as_var+set} = xset \
18644  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18645done
18646PS1='$ '
18647PS2='> '
18648PS4='+ '
18649
18650# NLS nuisances.
18651LC_ALL=C
18652export LC_ALL
18653LANGUAGE=C
18654export LANGUAGE
18655
18656# CDPATH.
18657(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18658
18659
18660# as_fn_error ERROR [LINENO LOG_FD]
18661# ---------------------------------
18662# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18663# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18664# script with status $?, using 1 if that was 0.
18665as_fn_error ()
18666{
18667  as_status=$?; test $as_status -eq 0 && as_status=1
18668  if test "$3"; then
18669    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18670    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
18671  fi
18672  $as_echo "$as_me: error: $1" >&2
18673  as_fn_exit $as_status
18674} # as_fn_error
18675
18676
18677# as_fn_set_status STATUS
18678# -----------------------
18679# Set $? to STATUS, without forking.
18680as_fn_set_status ()
18681{
18682  return $1
18683} # as_fn_set_status
18684
18685# as_fn_exit STATUS
18686# -----------------
18687# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18688as_fn_exit ()
18689{
18690  set +e
18691  as_fn_set_status $1
18692  exit $1
18693} # as_fn_exit
18694
18695# as_fn_unset VAR
18696# ---------------
18697# Portably unset VAR.
18698as_fn_unset ()
18699{
18700  { eval $1=; unset $1;}
18701}
18702as_unset=as_fn_unset
18703# as_fn_append VAR VALUE
18704# ----------------------
18705# Append the text in VALUE to the end of the definition contained in VAR. Take
18706# advantage of any shell optimizations that allow amortized linear growth over
18707# repeated appends, instead of the typical quadratic growth present in naive
18708# implementations.
18709if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18710  eval 'as_fn_append ()
18711  {
18712    eval $1+=\$2
18713  }'
18714else
18715  as_fn_append ()
18716  {
18717    eval $1=\$$1\$2
18718  }
18719fi # as_fn_append
18720
18721# as_fn_arith ARG...
18722# ------------------
18723# Perform arithmetic evaluation on the ARGs, and store the result in the
18724# global $as_val. Take advantage of shells that can avoid forks. The arguments
18725# must be portable across $(()) and expr.
18726if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18727  eval 'as_fn_arith ()
18728  {
18729    as_val=$(( $* ))
18730  }'
18731else
18732  as_fn_arith ()
18733  {
18734    as_val=`expr "$@" || test $? -eq 1`
18735  }
18736fi # as_fn_arith
18737
18738
18739if expr a : '\(a\)' >/dev/null 2>&1 &&
18740   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18741  as_expr=expr
18742else
18743  as_expr=false
18744fi
18745
18746if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18747  as_basename=basename
18748else
18749  as_basename=false
18750fi
18751
18752if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18753  as_dirname=dirname
18754else
18755  as_dirname=false
18756fi
18757
18758as_me=`$as_basename -- "$0" ||
18759$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18760	 X"$0" : 'X\(//\)$' \| \
18761	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18762$as_echo X/"$0" |
18763    sed '/^.*\/\([^/][^/]*\)\/*$/{
18764	    s//\1/
18765	    q
18766	  }
18767	  /^X\/\(\/\/\)$/{
18768	    s//\1/
18769	    q
18770	  }
18771	  /^X\/\(\/\).*/{
18772	    s//\1/
18773	    q
18774	  }
18775	  s/.*/./; q'`
18776
18777# Avoid depending upon Character Ranges.
18778as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18779as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18780as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18781as_cr_digits='0123456789'
18782as_cr_alnum=$as_cr_Letters$as_cr_digits
18783
18784ECHO_C= ECHO_N= ECHO_T=
18785case `echo -n x` in #(((((
18786-n*)
18787  case `echo 'xy\c'` in
18788  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18789  xy)  ECHO_C='\c';;
18790  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18791       ECHO_T='	';;
18792  esac;;
18793*)
18794  ECHO_N='-n';;
18795esac
18796
18797rm -f conf$$ conf$$.exe conf$$.file
18798if test -d conf$$.dir; then
18799  rm -f conf$$.dir/conf$$.file
18800else
18801  rm -f conf$$.dir
18802  mkdir conf$$.dir 2>/dev/null
18803fi
18804if (echo >conf$$.file) 2>/dev/null; then
18805  if ln -s conf$$.file conf$$ 2>/dev/null; then
18806    as_ln_s='ln -s'
18807    # ... but there are two gotchas:
18808    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18809    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18810    # In both cases, we have to default to `cp -p'.
18811    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18812      as_ln_s='cp -p'
18813  elif ln conf$$.file conf$$ 2>/dev/null; then
18814    as_ln_s=ln
18815  else
18816    as_ln_s='cp -p'
18817  fi
18818else
18819  as_ln_s='cp -p'
18820fi
18821rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18822rmdir conf$$.dir 2>/dev/null
18823
18824
18825# as_fn_mkdir_p
18826# -------------
18827# Create "$as_dir" as a directory, including parents if necessary.
18828as_fn_mkdir_p ()
18829{
18830
18831  case $as_dir in #(
18832  -*) as_dir=./$as_dir;;
18833  esac
18834  test -d "$as_dir" || eval $as_mkdir_p || {
18835    as_dirs=
18836    while :; do
18837      case $as_dir in #(
18838      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18839      *) as_qdir=$as_dir;;
18840      esac
18841      as_dirs="'$as_qdir' $as_dirs"
18842      as_dir=`$as_dirname -- "$as_dir" ||
18843$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18844	 X"$as_dir" : 'X\(//\)[^/]' \| \
18845	 X"$as_dir" : 'X\(//\)$' \| \
18846	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18847$as_echo X"$as_dir" |
18848    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18849	    s//\1/
18850	    q
18851	  }
18852	  /^X\(\/\/\)[^/].*/{
18853	    s//\1/
18854	    q
18855	  }
18856	  /^X\(\/\/\)$/{
18857	    s//\1/
18858	    q
18859	  }
18860	  /^X\(\/\).*/{
18861	    s//\1/
18862	    q
18863	  }
18864	  s/.*/./; q'`
18865      test -d "$as_dir" && break
18866    done
18867    test -z "$as_dirs" || eval "mkdir $as_dirs"
18868  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
18869
18870
18871} # as_fn_mkdir_p
18872if mkdir -p . 2>/dev/null; then
18873  as_mkdir_p='mkdir -p "$as_dir"'
18874else
18875  test -d ./-p && rmdir ./-p
18876  as_mkdir_p=false
18877fi
18878
18879if test -x / >/dev/null 2>&1; then
18880  as_test_x='test -x'
18881else
18882  if ls -dL / >/dev/null 2>&1; then
18883    as_ls_L_option=L
18884  else
18885    as_ls_L_option=
18886  fi
18887  as_test_x='
18888    eval sh -c '\''
18889      if test -d "$1"; then
18890	test -d "$1/.";
18891      else
18892	case $1 in #(
18893	-*)set "./$1";;
18894	esac;
18895	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18896	???[sx]*):;;*)false;;esac;fi
18897    '\'' sh
18898  '
18899fi
18900as_executable_p=$as_test_x
18901
18902# Sed expression to map a string onto a valid CPP name.
18903as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18904
18905# Sed expression to map a string onto a valid variable name.
18906as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18907
18908
18909exec 6>&1
18910## ----------------------------------- ##
18911## Main body of $CONFIG_STATUS script. ##
18912## ----------------------------------- ##
18913_ASEOF
18914test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18915
18916cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18917# Save the log message, to keep $0 and so on meaningful, and to
18918# report actual input values of CONFIG_FILES etc. instead of their
18919# values after options handling.
18920ac_log="
18921This file was extended by LibTIFF Software $as_me 4.0.0beta5, which was
18922generated by GNU Autoconf 2.64.  Invocation command line was
18923
18924  CONFIG_FILES    = $CONFIG_FILES
18925  CONFIG_HEADERS  = $CONFIG_HEADERS
18926  CONFIG_LINKS    = $CONFIG_LINKS
18927  CONFIG_COMMANDS = $CONFIG_COMMANDS
18928  $ $0 $@
18929
18930on `(hostname || uname -n) 2>/dev/null | sed 1q`
18931"
18932
18933_ACEOF
18934
18935case $ac_config_files in *"
18936"*) set x $ac_config_files; shift; ac_config_files=$*;;
18937esac
18938
18939case $ac_config_headers in *"
18940"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18941esac
18942
18943
18944cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18945# Files that config.status was made for.
18946config_files="$ac_config_files"
18947config_headers="$ac_config_headers"
18948config_commands="$ac_config_commands"
18949
18950_ACEOF
18951
18952cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18953ac_cs_usage="\
18954\`$as_me' instantiates files and other configuration actions
18955from templates according to the current configuration.  Unless the files
18956and actions are specified as TAGs, all are instantiated by default.
18957
18958Usage: $0 [OPTION]... [TAG]...
18959
18960  -h, --help       print this help, then exit
18961  -V, --version    print version number and configuration settings, then exit
18962  -q, --quiet, --silent
18963                   do not print progress messages
18964  -d, --debug      don't remove temporary files
18965      --recheck    update $as_me by reconfiguring in the same conditions
18966      --file=FILE[:TEMPLATE]
18967                   instantiate the configuration file FILE
18968      --header=FILE[:TEMPLATE]
18969                   instantiate the configuration header FILE
18970
18971Configuration files:
18972$config_files
18973
18974Configuration headers:
18975$config_headers
18976
18977Configuration commands:
18978$config_commands
18979
18980Report bugs to <[email protected]>."
18981
18982_ACEOF
18983cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18984ac_cs_version="\\
18985LibTIFF Software config.status 4.0.0beta5
18986configured by $0, generated by GNU Autoconf 2.64,
18987  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18988
18989Copyright (C) 2009 Free Software Foundation, Inc.
18990This config.status script is free software; the Free Software Foundation
18991gives unlimited permission to copy, distribute and modify it."
18992
18993ac_pwd='$ac_pwd'
18994srcdir='$srcdir'
18995INSTALL='$INSTALL'
18996MKDIR_P='$MKDIR_P'
18997AWK='$AWK'
18998test -n "\$AWK" || AWK=awk
18999_ACEOF
19000
19001cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19002# The default lists apply if the user does not specify any file.
19003ac_need_defaults=:
19004while test $# != 0
19005do
19006  case $1 in
19007  --*=*)
19008    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19009    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19010    ac_shift=:
19011    ;;
19012  *)
19013    ac_option=$1
19014    ac_optarg=$2
19015    ac_shift=shift
19016    ;;
19017  esac
19018
19019  case $ac_option in
19020  # Handling of the options.
19021  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19022    ac_cs_recheck=: ;;
19023  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19024    $as_echo "$ac_cs_version"; exit ;;
19025  --debug | --debu | --deb | --de | --d | -d )
19026    debug=: ;;
19027  --file | --fil | --fi | --f )
19028    $ac_shift
19029    case $ac_optarg in
19030    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19031    esac
19032    as_fn_append CONFIG_FILES " '$ac_optarg'"
19033    ac_need_defaults=false;;
19034  --header | --heade | --head | --hea )
19035    $ac_shift
19036    case $ac_optarg in
19037    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19038    esac
19039    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19040    ac_need_defaults=false;;
19041  --he | --h)
19042    # Conflict between --help and --header
19043    as_fn_error "ambiguous option: \`$1'
19044Try \`$0 --help' for more information.";;
19045  --help | --hel | -h )
19046    $as_echo "$ac_cs_usage"; exit ;;
19047  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19048  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19049    ac_cs_silent=: ;;
19050
19051  # This is an error.
19052  -*) as_fn_error "unrecognized option: \`$1'
19053Try \`$0 --help' for more information." ;;
19054
19055  *) as_fn_append ac_config_targets " $1"
19056     ac_need_defaults=false ;;
19057
19058  esac
19059  shift
19060done
19061
19062ac_configure_extra_args=
19063
19064if $ac_cs_silent; then
19065  exec 6>/dev/null
19066  ac_configure_extra_args="$ac_configure_extra_args --silent"
19067fi
19068
19069_ACEOF
19070cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19071if \$ac_cs_recheck; then
19072  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19073  shift
19074  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19075  CONFIG_SHELL='$SHELL'
19076  export CONFIG_SHELL
19077  exec "\$@"
19078fi
19079
19080_ACEOF
19081cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19082exec 5>>config.log
19083{
19084  echo
19085  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19086## Running $as_me. ##
19087_ASBOX
19088  $as_echo "$ac_log"
19089} >&5
19090
19091_ACEOF
19092cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19093#
19094# INIT-COMMANDS
19095#
19096AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19097
19098
19099# The HP-UX ksh and POSIX shell print the target directory to stdout
19100# if CDPATH is set.
19101(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19102
19103sed_quote_subst='$sed_quote_subst'
19104double_quote_subst='$double_quote_subst'
19105delay_variable_subst='$delay_variable_subst'
19106macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
19107macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
19108AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
19109DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
19110OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
19111enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
19112enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
19113pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
19114enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
19115host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
19116host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
19117host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
19118build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
19119build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
19120build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
19121SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
19122Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
19123GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
19124EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
19125FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
19126LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
19127NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
19128LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
19129max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
19130ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
19131exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
19132lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
19133lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
19134lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
19135reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
19136reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19137deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
19138file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
19139AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
19140AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19141STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
19142RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
19143old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19144old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19145old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19146CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
19147CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19148compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
19149GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
19150lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
19151lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
19152lt_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"`'
19153lt_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"`'
19154objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
19155SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
19156ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
19157MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
19158lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
19159lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
19160lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
19161lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
19162lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
19163need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
19164DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
19165NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
19166LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
19167OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
19168OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
19169libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
19170shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19171extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19172archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
19173enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
19174export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19175whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19176compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
19177old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19178old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19179archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19180archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19181module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19182module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19183with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
19184allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19185no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19186hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19187hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
19188hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
19189hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
19190hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
19191hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
19192hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19193hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
19194inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
19195link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
19196fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
19197always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
19198export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19199exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19200include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19201prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19202file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
19203variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
19204need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19205need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
19206version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
19207runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19208shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19209shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
19210libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19211library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
19212soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19213postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19214postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19215finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19216finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
19217hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
19218sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19219sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19220hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
19221enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
19222enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
19223enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
19224old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
19225striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
19226compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
19227predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
19228postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
19229predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
19230postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
19231compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
19232LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19233old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19234compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19235GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19236lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19237lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19238lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19239lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19240lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19241archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19242enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19243export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19244whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19245compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19246old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19247old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19248archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19249archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19250module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19251module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19252with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19253allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19254no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19255hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19256hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19257hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19258hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19259hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19260hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19261hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19262hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19263inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19264link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19265fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19266always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19267export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19268exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19269include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19270prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19271file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19272hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19273compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19274predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19275postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19276predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19277postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19278compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19279
19280LTCC='$LTCC'
19281LTCFLAGS='$LTCFLAGS'
19282compiler='$compiler_DEFAULT'
19283
19284# Quote evaled strings.
19285for var in SED \
19286GREP \
19287EGREP \
19288FGREP \
19289LD \
19290NM \
19291LN_S \
19292lt_SP2NL \
19293lt_NL2SP \
19294reload_flag \
19295deplibs_check_method \
19296file_magic_cmd \
19297AR \
19298AR_FLAGS \
19299STRIP \
19300RANLIB \
19301CC \
19302CFLAGS \
19303compiler \
19304lt_cv_sys_global_symbol_pipe \
19305lt_cv_sys_global_symbol_to_cdecl \
19306lt_cv_sys_global_symbol_to_c_name_address \
19307lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19308SHELL \
19309ECHO \
19310lt_prog_compiler_no_builtin_flag \
19311lt_prog_compiler_wl \
19312lt_prog_compiler_pic \
19313lt_prog_compiler_static \
19314lt_cv_prog_compiler_c_o \
19315need_locks \
19316DSYMUTIL \
19317NMEDIT \
19318LIPO \
19319OTOOL \
19320OTOOL64 \
19321shrext_cmds \
19322export_dynamic_flag_spec \
19323whole_archive_flag_spec \
19324compiler_needs_object \
19325with_gnu_ld \
19326allow_undefined_flag \
19327no_undefined_flag \
19328hardcode_libdir_flag_spec \
19329hardcode_libdir_flag_spec_ld \
19330hardcode_libdir_separator \
19331fix_srcfile_path \
19332exclude_expsyms \
19333include_expsyms \
19334file_list_spec \
19335variables_saved_for_relink \
19336libname_spec \
19337library_names_spec \
19338soname_spec \
19339finish_eval \
19340old_striplib \
19341striplib \
19342compiler_lib_search_dirs \
19343predep_objects \
19344postdep_objects \
19345predeps \
19346postdeps \
19347compiler_lib_search_path \
19348LD_CXX \
19349compiler_CXX \
19350lt_prog_compiler_no_builtin_flag_CXX \
19351lt_prog_compiler_wl_CXX \
19352lt_prog_compiler_pic_CXX \
19353lt_prog_compiler_static_CXX \
19354lt_cv_prog_compiler_c_o_CXX \
19355export_dynamic_flag_spec_CXX \
19356whole_archive_flag_spec_CXX \
19357compiler_needs_object_CXX \
19358with_gnu_ld_CXX \
19359allow_undefined_flag_CXX \
19360no_undefined_flag_CXX \
19361hardcode_libdir_flag_spec_CXX \
19362hardcode_libdir_flag_spec_ld_CXX \
19363hardcode_libdir_separator_CXX \
19364fix_srcfile_path_CXX \
19365exclude_expsyms_CXX \
19366include_expsyms_CXX \
19367file_list_spec_CXX \
19368compiler_lib_search_dirs_CXX \
19369predep_objects_CXX \
19370postdep_objects_CXX \
19371predeps_CXX \
19372postdeps_CXX \
19373compiler_lib_search_path_CXX; do
19374    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19375    *[\\\\\\\`\\"\\\$]*)
19376      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19377      ;;
19378    *)
19379      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19380      ;;
19381    esac
19382done
19383
19384# Double-quote double-evaled strings.
19385for var in reload_cmds \
19386old_postinstall_cmds \
19387old_postuninstall_cmds \
19388old_archive_cmds \
19389extract_expsyms_cmds \
19390old_archive_from_new_cmds \
19391old_archive_from_expsyms_cmds \
19392archive_cmds \
19393archive_expsym_cmds \
19394module_cmds \
19395module_expsym_cmds \
19396export_symbols_cmds \
19397prelink_cmds \
19398postinstall_cmds \
19399postuninstall_cmds \
19400finish_cmds \
19401sys_lib_search_path_spec \
19402sys_lib_dlsearch_path_spec \
19403old_archive_cmds_CXX \
19404old_archive_from_new_cmds_CXX \
19405old_archive_from_expsyms_cmds_CXX \
19406archive_cmds_CXX \
19407archive_expsym_cmds_CXX \
19408module_cmds_CXX \
19409module_expsym_cmds_CXX \
19410export_symbols_cmds_CXX \
19411prelink_cmds_CXX; do
19412    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19413    *[\\\\\\\`\\"\\\$]*)
19414      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19415      ;;
19416    *)
19417      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19418      ;;
19419    esac
19420done
19421
19422# Fix-up fallback echo if it was mangled by the above quoting rules.
19423case \$lt_ECHO in
19424*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
19425  ;;
19426esac
19427
19428ac_aux_dir='$ac_aux_dir'
19429xsi_shell='$xsi_shell'
19430lt_shell_append='$lt_shell_append'
19431
19432# See if we are running on zsh, and set the options which allow our
19433# commands through without removal of \ escapes INIT.
19434if test -n "\${ZSH_VERSION+set}" ; then
19435   setopt NO_GLOB_SUBST
19436fi
19437
19438
19439    PACKAGE='$PACKAGE'
19440    VERSION='$VERSION'
19441    TIMESTAMP='$TIMESTAMP'
19442    RM='$RM'
19443    ofile='$ofile'
19444
19445
19446
19447
19448
19449
19450_ACEOF
19451
19452cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19453
19454# Handling of arguments.
19455for ac_config_target in $ac_config_targets
19456do
19457  case $ac_config_target in
19458    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19459    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19460    "libtiff/tif_config.h") CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tif_config.h" ;;
19461    "libtiff/tiffconf.h") CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tiffconf.h" ;;
19462    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19463    "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
19464    "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
19465    "contrib/addtiffo/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/addtiffo/Makefile" ;;
19466    "contrib/dbs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dbs/Makefile" ;;
19467    "contrib/dbs/xtiff/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dbs/xtiff/Makefile" ;;
19468    "contrib/iptcutil/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/iptcutil/Makefile" ;;
19469    "contrib/mfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/mfs/Makefile" ;;
19470    "contrib/pds/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/pds/Makefile" ;;
19471    "contrib/ras/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/ras/Makefile" ;;
19472    "contrib/stream/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/stream/Makefile" ;;
19473    "contrib/tags/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/tags/Makefile" ;;
19474    "contrib/win_dib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/win_dib/Makefile" ;;
19475    "html/Makefile") CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
19476    "html/images/Makefile") CONFIG_FILES="$CONFIG_FILES html/images/Makefile" ;;
19477    "html/man/Makefile") CONFIG_FILES="$CONFIG_FILES html/man/Makefile" ;;
19478    "libtiff/Makefile") CONFIG_FILES="$CONFIG_FILES libtiff/Makefile" ;;
19479    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19480    "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;;
19481    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
19482    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
19483
19484  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19485  esac
19486done
19487
19488
19489# If the user did not use the arguments to specify the items to instantiate,
19490# then the envvar interface is used.  Set only those that are not.
19491# We use the long form for the default assignment because of an extremely
19492# bizarre bug on SunOS 4.1.3.
19493if $ac_need_defaults; then
19494  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19495  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19496  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19497fi
19498
19499# Have a temporary directory for convenience.  Make it in the build tree
19500# simply because there is no reason against having it here, and in addition,
19501# creating and moving files from /tmp can sometimes cause problems.
19502# Hook for its removal unless debugging.
19503# Note that there is a small window in which the directory will not be cleaned:
19504# after its creation but before its name has been assigned to `$tmp'.
19505$debug ||
19506{
19507  tmp=
19508  trap 'exit_status=$?
19509  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19510' 0
19511  trap 'as_fn_exit 1' 1 2 13 15
19512}
19513# Create a (secure) tmp directory for tmp files.
19514
19515{
19516  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19517  test -n "$tmp" && test -d "$tmp"
19518}  ||
19519{
19520  tmp=./conf$$-$RANDOM
19521  (umask 077 && mkdir "$tmp")
19522} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
19523
19524# Set up the scripts for CONFIG_FILES section.
19525# No need to generate them if there are no CONFIG_FILES.
19526# This happens for instance with `./config.status config.h'.
19527if test -n "$CONFIG_FILES"; then
19528
19529
19530ac_cr=`echo X | tr X '\015'`
19531# On cygwin, bash can eat \r inside `` if the user requested igncr.
19532# But we know of no other shell where ac_cr would be empty at this
19533# point, so we can use a bashism as a fallback.
19534if test "x$ac_cr" = x; then
19535  eval ac_cr=\$\'\\r\'
19536fi
19537ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19538if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19539  ac_cs_awk_cr='\r'
19540else
19541  ac_cs_awk_cr=$ac_cr
19542fi
19543
19544echo 'BEGIN {' >"$tmp/subs1.awk" &&
19545_ACEOF
19546
19547
19548{
19549  echo "cat >conf$$subs.awk <<_ACEOF" &&
19550  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19551  echo "_ACEOF"
19552} >conf$$subs.sh ||
19553  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19554ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
19555ac_delim='%!_!# '
19556for ac_last_try in false false false false false :; do
19557  . ./conf$$subs.sh ||
19558    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19559
19560  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19561  if test $ac_delim_n = $ac_delim_num; then
19562    break
19563  elif $ac_last_try; then
19564    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19565  else
19566    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19567  fi
19568done
19569rm -f conf$$subs.sh
19570
19571cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19572cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
19573_ACEOF
19574sed -n '
19575h
19576s/^/S["/; s/!.*/"]=/
19577p
19578g
19579s/^[^!]*!//
19580:repl
19581t repl
19582s/'"$ac_delim"'$//
19583t delim
19584:nl
19585h
19586s/\(.\{148\}\).*/\1/
19587t more1
19588s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19589p
19590n
19591b repl
19592:more1
19593s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19594p
19595g
19596s/.\{148\}//
19597t nl
19598:delim
19599h
19600s/\(.\{148\}\).*/\1/
19601t more2
19602s/["\\]/\\&/g; s/^/"/; s/$/"/
19603p
19604b
19605:more2
19606s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19607p
19608g
19609s/.\{148\}//
19610t delim
19611' <conf$$subs.awk | sed '
19612/^[^""]/{
19613  N
19614  s/\n//
19615}
19616' >>$CONFIG_STATUS || ac_write_fail=1
19617rm -f conf$$subs.awk
19618cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19619_ACAWK
19620cat >>"\$tmp/subs1.awk" <<_ACAWK &&
19621  for (key in S) S_is_set[key] = 1
19622  FS = ""
19623
19624}
19625{
19626  line = $ 0
19627  nfields = split(line, field, "@")
19628  substed = 0
19629  len = length(field[1])
19630  for (i = 2; i < nfields; i++) {
19631    key = field[i]
19632    keylen = length(key)
19633    if (S_is_set[key]) {
19634      value = S[key]
19635      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19636      len += length(value) + length(field[++i])
19637      substed = 1
19638    } else
19639      len += 1 + keylen
19640  }
19641
19642  print line
19643}
19644
19645_ACAWK
19646_ACEOF
19647cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19648if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19649  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19650else
19651  cat
19652fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
19653  || as_fn_error "could not setup config files machinery" "$LINENO" 5
19654_ACEOF
19655
19656# VPATH may cause trouble with some makes, so we remove $(srcdir),
19657# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19658# trailing colons and then remove the whole line if VPATH becomes empty
19659# (actually we leave an empty line to preserve line numbers).
19660if test "x$srcdir" = x.; then
19661  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
19662s/:*\$(srcdir):*/:/
19663s/:*\${srcdir}:*/:/
19664s/:*@srcdir@:*/:/
19665s/^\([^=]*=[	 ]*\):*/\1/
19666s/:*$//
19667s/^[^=]*=[	 ]*$//
19668}'
19669fi
19670
19671cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19672fi # test -n "$CONFIG_FILES"
19673
19674# Set up the scripts for CONFIG_HEADERS section.
19675# No need to generate them if there are no CONFIG_HEADERS.
19676# This happens for instance with `./config.status Makefile'.
19677if test -n "$CONFIG_HEADERS"; then
19678cat >"$tmp/defines.awk" <<\_ACAWK ||
19679BEGIN {
19680_ACEOF
19681
19682# Transform confdefs.h into an awk script `defines.awk', embedded as
19683# here-document in config.status, that substitutes the proper values into
19684# config.h.in to produce config.h.
19685
19686# Create a delimiter string that does not exist in confdefs.h, to ease
19687# handling of long lines.
19688ac_delim='%!_!# '
19689for ac_last_try in false false :; do
19690  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19691  if test -z "$ac_t"; then
19692    break
19693  elif $ac_last_try; then
19694    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
19695  else
19696    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19697  fi
19698done
19699
19700# For the awk script, D is an array of macro values keyed by name,
19701# likewise P contains macro parameters if any.  Preserve backslash
19702# newline sequences.
19703
19704ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19705sed -n '
19706s/.\{148\}/&'"$ac_delim"'/g
19707t rset
19708:rset
19709s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19710t def
19711d
19712:def
19713s/\\$//
19714t bsnl
19715s/["\\]/\\&/g
19716s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19717D["\1"]=" \3"/p
19718s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19719d
19720:bsnl
19721s/["\\]/\\&/g
19722s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19723D["\1"]=" \3\\\\\\n"\\/p
19724t cont
19725s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19726t cont
19727d
19728:cont
19729n
19730s/.\{148\}/&'"$ac_delim"'/g
19731t clear
19732:clear
19733s/\\$//
19734t bsnlc
19735s/["\\]/\\&/g; s/^/"/; s/$/"/p
19736d
19737:bsnlc
19738s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19739b cont
19740' <confdefs.h | sed '
19741s/'"$ac_delim"'/"\\\
19742"/g' >>$CONFIG_STATUS || ac_write_fail=1
19743
19744cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19745  for (key in D) D_is_set[key] = 1
19746  FS = ""
19747}
19748/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19749  line = \$ 0
19750  split(line, arg, " ")
19751  if (arg[1] == "#") {
19752    defundef = arg[2]
19753    mac1 = arg[3]
19754  } else {
19755    defundef = substr(arg[1], 2)
19756    mac1 = arg[2]
19757  }
19758  split(mac1, mac2, "(") #)
19759  macro = mac2[1]
19760  prefix = substr(line, 1, index(line, defundef) - 1)
19761  if (D_is_set[macro]) {
19762    # Preserve the white space surrounding the "#".
19763    print prefix "define", macro P[macro] D[macro]
19764    next
19765  } else {
19766    # Replace #undef with comments.  This is necessary, for example,
19767    # in the case of _POSIX_SOURCE, which is predefined and required
19768    # on some systems where configure will not decide to define it.
19769    if (defundef == "undef") {
19770      print "/*", prefix defundef, macro, "*/"
19771      next
19772    }
19773  }
19774}
19775{ print }
19776_ACAWK
19777_ACEOF
19778cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19779  as_fn_error "could not setup config headers machinery" "$LINENO" 5
19780fi # test -n "$CONFIG_HEADERS"
19781
19782
19783eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19784shift
19785for ac_tag
19786do
19787  case $ac_tag in
19788  :[FHLC]) ac_mode=$ac_tag; continue;;
19789  esac
19790  case $ac_mode$ac_tag in
19791  :[FHL]*:*);;
19792  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
19793  :[FH]-) ac_tag=-:-;;
19794  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19795  esac
19796  ac_save_IFS=$IFS
19797  IFS=:
19798  set x $ac_tag
19799  IFS=$ac_save_IFS
19800  shift
19801  ac_file=$1
19802  shift
19803
19804  case $ac_mode in
19805  :L) ac_source=$1;;
19806  :[FH])
19807    ac_file_inputs=
19808    for ac_f
19809    do
19810      case $ac_f in
19811      -) ac_f="$tmp/stdin";;
19812      *) # Look for the file first in the build tree, then in the source tree
19813	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19814	 # because $ac_f cannot contain `:'.
19815	 test -f "$ac_f" ||
19816	   case $ac_f in
19817	   [\\/$]*) false;;
19818	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19819	   esac ||
19820	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19821      esac
19822      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19823      as_fn_append ac_file_inputs " '$ac_f'"
19824    done
19825
19826    # Let's still pretend it is `configure' which instantiates (i.e., don't
19827    # use $as_me), people would be surprised to read:
19828    #    /* config.h.  Generated by config.status.  */
19829    configure_input='Generated from '`
19830	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19831	`' by configure.'
19832    if test x"$ac_file" != x-; then
19833      configure_input="$ac_file.  $configure_input"
19834      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19835$as_echo "$as_me: creating $ac_file" >&6;}
19836    fi
19837    # Neutralize special characters interpreted by sed in replacement strings.
19838    case $configure_input in #(
19839    *\&* | *\|* | *\\* )
19840       ac_sed_conf_input=`$as_echo "$configure_input" |
19841       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19842    *) ac_sed_conf_input=$configure_input;;
19843    esac
19844
19845    case $ac_tag in
19846    *:-:* | *:-) cat >"$tmp/stdin" \
19847      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
19848    esac
19849    ;;
19850  esac
19851
19852  ac_dir=`$as_dirname -- "$ac_file" ||
19853$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19854	 X"$ac_file" : 'X\(//\)[^/]' \| \
19855	 X"$ac_file" : 'X\(//\)$' \| \
19856	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19857$as_echo X"$ac_file" |
19858    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19859	    s//\1/
19860	    q
19861	  }
19862	  /^X\(\/\/\)[^/].*/{
19863	    s//\1/
19864	    q
19865	  }
19866	  /^X\(\/\/\)$/{
19867	    s//\1/
19868	    q
19869	  }
19870	  /^X\(\/\).*/{
19871	    s//\1/
19872	    q
19873	  }
19874	  s/.*/./; q'`
19875  as_dir="$ac_dir"; as_fn_mkdir_p
19876  ac_builddir=.
19877
19878case "$ac_dir" in
19879.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19880*)
19881  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19882  # A ".." for each directory in $ac_dir_suffix.
19883  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19884  case $ac_top_builddir_sub in
19885  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19886  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19887  esac ;;
19888esac
19889ac_abs_top_builddir=$ac_pwd
19890ac_abs_builddir=$ac_pwd$ac_dir_suffix
19891# for backward compatibility:
19892ac_top_builddir=$ac_top_build_prefix
19893
19894case $srcdir in
19895  .)  # We are building in place.
19896    ac_srcdir=.
19897    ac_top_srcdir=$ac_top_builddir_sub
19898    ac_abs_top_srcdir=$ac_pwd ;;
19899  [\\/]* | ?:[\\/]* )  # Absolute name.
19900    ac_srcdir=$srcdir$ac_dir_suffix;
19901    ac_top_srcdir=$srcdir
19902    ac_abs_top_srcdir=$srcdir ;;
19903  *) # Relative name.
19904    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19905    ac_top_srcdir=$ac_top_build_prefix$srcdir
19906    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19907esac
19908ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19909
19910
19911  case $ac_mode in
19912  :F)
19913  #
19914  # CONFIG_FILE
19915  #
19916
19917  case $INSTALL in
19918  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19919  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19920  esac
19921  ac_MKDIR_P=$MKDIR_P
19922  case $MKDIR_P in
19923  [\\/$]* | ?:[\\/]* ) ;;
19924  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19925  esac
19926_ACEOF
19927
19928cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19929# If the template does not know about datarootdir, expand it.
19930# FIXME: This hack should be removed a few years after 2.60.
19931ac_datarootdir_hack=; ac_datarootdir_seen=
19932ac_sed_dataroot='
19933/datarootdir/ {
19934  p
19935  q
19936}
19937/@datadir@/p
19938/@docdir@/p
19939/@infodir@/p
19940/@localedir@/p
19941/@mandir@/p'
19942case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19943*datarootdir*) ac_datarootdir_seen=yes;;
19944*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19945  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19946$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19947_ACEOF
19948cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19949  ac_datarootdir_hack='
19950  s&@datadir@&$datadir&g
19951  s&@docdir@&$docdir&g
19952  s&@infodir@&$infodir&g
19953  s&@localedir@&$localedir&g
19954  s&@mandir@&$mandir&g
19955  s&\\\${datarootdir}&$datarootdir&g' ;;
19956esac
19957_ACEOF
19958
19959# Neutralize VPATH when `$srcdir' = `.'.
19960# Shell code in configure.ac might set extrasub.
19961# FIXME: do we really want to maintain this feature?
19962cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19963ac_sed_extra="$ac_vpsub
19964$extrasub
19965_ACEOF
19966cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19967:t
19968/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19969s|@configure_input@|$ac_sed_conf_input|;t t
19970s&@top_builddir@&$ac_top_builddir_sub&;t t
19971s&@top_build_prefix@&$ac_top_build_prefix&;t t
19972s&@srcdir@&$ac_srcdir&;t t
19973s&@abs_srcdir@&$ac_abs_srcdir&;t t
19974s&@top_srcdir@&$ac_top_srcdir&;t t
19975s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19976s&@builddir@&$ac_builddir&;t t
19977s&@abs_builddir@&$ac_abs_builddir&;t t
19978s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19979s&@INSTALL@&$ac_INSTALL&;t t
19980s&@MKDIR_P@&$ac_MKDIR_P&;t t
19981$ac_datarootdir_hack
19982"
19983eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19984  || as_fn_error "could not create $ac_file" "$LINENO" 5
19985
19986test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19987  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19988  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19989  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19990which seems to be undefined.  Please make sure it is defined." >&5
19991$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19992which seems to be undefined.  Please make sure it is defined." >&2;}
19993
19994  rm -f "$tmp/stdin"
19995  case $ac_file in
19996  -) cat "$tmp/out" && rm -f "$tmp/out";;
19997  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19998  esac \
19999  || as_fn_error "could not create $ac_file" "$LINENO" 5
20000 ;;
20001  :H)
20002  #
20003  # CONFIG_HEADER
20004  #
20005  if test x"$ac_file" != x-; then
20006    {
20007      $as_echo "/* $configure_input  */" \
20008      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
20009    } >"$tmp/config.h" \
20010      || as_fn_error "could not create $ac_file" "$LINENO" 5
20011    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
20012      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20013$as_echo "$as_me: $ac_file is unchanged" >&6;}
20014    else
20015      rm -f "$ac_file"
20016      mv "$tmp/config.h" "$ac_file" \
20017	|| as_fn_error "could not create $ac_file" "$LINENO" 5
20018    fi
20019  else
20020    $as_echo "/* $configure_input  */" \
20021      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
20022      || as_fn_error "could not create -" "$LINENO" 5
20023  fi
20024# Compute "$ac_file"'s index in $config_headers.
20025_am_arg="$ac_file"
20026_am_stamp_count=1
20027for _am_header in $config_headers :; do
20028  case $_am_header in
20029    $_am_arg | $_am_arg:* )
20030      break ;;
20031    * )
20032      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20033  esac
20034done
20035echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20036$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20037	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20038	 X"$_am_arg" : 'X\(//\)$' \| \
20039	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20040$as_echo X"$_am_arg" |
20041    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20042	    s//\1/
20043	    q
20044	  }
20045	  /^X\(\/\/\)[^/].*/{
20046	    s//\1/
20047	    q
20048	  }
20049	  /^X\(\/\/\)$/{
20050	    s//\1/
20051	    q
20052	  }
20053	  /^X\(\/\).*/{
20054	    s//\1/
20055	    q
20056	  }
20057	  s/.*/./; q'`/stamp-h$_am_stamp_count
20058 ;;
20059
20060  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20061$as_echo "$as_me: executing $ac_file commands" >&6;}
20062 ;;
20063  esac
20064
20065
20066  case $ac_file$ac_mode in
20067    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20068  # Autoconf 2.62 quotes --file arguments for eval, but not when files
20069  # are listed without --file.  Let's play safe and only enable the eval
20070  # if we detect the quoting.
20071  case $CONFIG_FILES in
20072  *\'*) eval set x "$CONFIG_FILES" ;;
20073  *)   set x $CONFIG_FILES ;;
20074  esac
20075  shift
20076  for mf
20077  do
20078    # Strip MF so we end up with the name of the file.
20079    mf=`echo "$mf" | sed -e 's/:.*$//'`
20080    # Check whether this is an Automake generated Makefile or not.
20081    # We used to match only the files named `Makefile.in', but
20082    # some people rename them; so instead we look at the file content.
20083    # Grep'ing the first line is not enough: some people post-process
20084    # each Makefile.in and add a new line on top of each file to say so.
20085    # Grep'ing the whole file is not good either: AIX grep has a line
20086    # limit of 2048, but all sed's we know have understand at least 4000.
20087    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20088      dirpart=`$as_dirname -- "$mf" ||
20089$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20090	 X"$mf" : 'X\(//\)[^/]' \| \
20091	 X"$mf" : 'X\(//\)$' \| \
20092	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20093$as_echo X"$mf" |
20094    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20095	    s//\1/
20096	    q
20097	  }
20098	  /^X\(\/\/\)[^/].*/{
20099	    s//\1/
20100	    q
20101	  }
20102	  /^X\(\/\/\)$/{
20103	    s//\1/
20104	    q
20105	  }
20106	  /^X\(\/\).*/{
20107	    s//\1/
20108	    q
20109	  }
20110	  s/.*/./; q'`
20111    else
20112      continue
20113    fi
20114    # Extract the definition of DEPDIR, am__include, and am__quote
20115    # from the Makefile without running `make'.
20116    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20117    test -z "$DEPDIR" && continue
20118    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20119    test -z "am__include" && continue
20120    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20121    # When using ansi2knr, U may be empty or an underscore; expand it
20122    U=`sed -n 's/^U = //p' < "$mf"`
20123    # Find all dependency output files, they are included files with
20124    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20125    # simplest approach to changing $(DEPDIR) to its actual value in the
20126    # expansion.
20127    for file in `sed -n "
20128      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20129	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20130      # Make sure the directory exists.
20131      test -f "$dirpart/$file" && continue
20132      fdir=`$as_dirname -- "$file" ||
20133$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20134	 X"$file" : 'X\(//\)[^/]' \| \
20135	 X"$file" : 'X\(//\)$' \| \
20136	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20137$as_echo X"$file" |
20138    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20139	    s//\1/
20140	    q
20141	  }
20142	  /^X\(\/\/\)[^/].*/{
20143	    s//\1/
20144	    q
20145	  }
20146	  /^X\(\/\/\)$/{
20147	    s//\1/
20148	    q
20149	  }
20150	  /^X\(\/\).*/{
20151	    s//\1/
20152	    q
20153	  }
20154	  s/.*/./; q'`
20155      as_dir=$dirpart/$fdir; as_fn_mkdir_p
20156      # echo "creating $dirpart/$file"
20157      echo '# dummy' > "$dirpart/$file"
20158    done
20159  done
20160}
20161 ;;
20162    "libtool":C)
20163
20164    # See if we are running on zsh, and set the options which allow our
20165    # commands through without removal of \ escapes.
20166    if test -n "${ZSH_VERSION+set}" ; then
20167      setopt NO_GLOB_SUBST
20168    fi
20169
20170    cfgfile="${ofile}T"
20171    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20172    $RM "$cfgfile"
20173
20174    cat <<_LT_EOF >> "$cfgfile"
20175#! $SHELL
20176
20177# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20178# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20179# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20180# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20181#
20182#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20183#                 2006, 2007, 2008 Free Software Foundation, Inc.
20184#   Written by Gordon Matzigkeit, 1996
20185#
20186#   This file is part of GNU Libtool.
20187#
20188# GNU Libtool is free software; you can redistribute it and/or
20189# modify it under the terms of the GNU General Public License as
20190# published by the Free Software Foundation; either version 2 of
20191# the License, or (at your option) any later version.
20192#
20193# As a special exception to the GNU General Public License,
20194# if you distribute this file as part of a program or library that
20195# is built using GNU Libtool, you may include this file under the
20196# same distribution terms that you use for the rest of that program.
20197#
20198# GNU Libtool is distributed in the hope that it will be useful,
20199# but WITHOUT ANY WARRANTY; without even the implied warranty of
20200# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20201# GNU General Public License for more details.
20202#
20203# You should have received a copy of the GNU General Public License
20204# along with GNU Libtool; see the file COPYING.  If not, a copy
20205# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20206# obtained by writing to the Free Software Foundation, Inc.,
20207# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20208
20209
20210# The names of the tagged configurations supported by this script.
20211available_tags="CXX "
20212
20213# ### BEGIN LIBTOOL CONFIG
20214
20215# Which release of libtool.m4 was used?
20216macro_version=$macro_version
20217macro_revision=$macro_revision
20218
20219# Assembler program.
20220AS=$AS
20221
20222# DLL creation program.
20223DLLTOOL=$DLLTOOL
20224
20225# Object dumper program.
20226OBJDUMP=$OBJDUMP
20227
20228# Whether or not to build shared libraries.
20229build_libtool_libs=$enable_shared
20230
20231# Whether or not to build static libraries.
20232build_old_libs=$enable_static
20233
20234# What type of objects to build.
20235pic_mode=$pic_mode
20236
20237# Whether or not to optimize for fast installation.
20238fast_install=$enable_fast_install
20239
20240# The host system.
20241host_alias=$host_alias
20242host=$host
20243host_os=$host_os
20244
20245# The build system.
20246build_alias=$build_alias
20247build=$build
20248build_os=$build_os
20249
20250# A sed program that does not truncate output.
20251SED=$lt_SED
20252
20253# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20254Xsed="\$SED -e 1s/^X//"
20255
20256# A grep program that handles long lines.
20257GREP=$lt_GREP
20258
20259# An ERE matcher.
20260EGREP=$lt_EGREP
20261
20262# A literal string matcher.
20263FGREP=$lt_FGREP
20264
20265# A BSD- or MS-compatible name lister.
20266NM=$lt_NM
20267
20268# Whether we need soft or hard links.
20269LN_S=$lt_LN_S
20270
20271# What is the maximum length of a command?
20272max_cmd_len=$max_cmd_len
20273
20274# Object file suffix (normally "o").
20275objext=$ac_objext
20276
20277# Executable file suffix (normally "").
20278exeext=$exeext
20279
20280# whether the shell understands "unset".
20281lt_unset=$lt_unset
20282
20283# turn spaces into newlines.
20284SP2NL=$lt_lt_SP2NL
20285
20286# turn newlines into spaces.
20287NL2SP=$lt_lt_NL2SP
20288
20289# How to create reloadable object files.
20290reload_flag=$lt_reload_flag
20291reload_cmds=$lt_reload_cmds
20292
20293# Method to check whether dependent libraries are shared objects.
20294deplibs_check_method=$lt_deplibs_check_method
20295
20296# Command to use when deplibs_check_method == "file_magic".
20297file_magic_cmd=$lt_file_magic_cmd
20298
20299# The archiver.
20300AR=$lt_AR
20301AR_FLAGS=$lt_AR_FLAGS
20302
20303# A symbol stripping program.
20304STRIP=$lt_STRIP
20305
20306# Commands used to install an old-style archive.
20307RANLIB=$lt_RANLIB
20308old_postinstall_cmds=$lt_old_postinstall_cmds
20309old_postuninstall_cmds=$lt_old_postuninstall_cmds
20310
20311# A C compiler.
20312LTCC=$lt_CC
20313
20314# LTCC compiler flags.
20315LTCFLAGS=$lt_CFLAGS
20316
20317# Take the output of nm and produce a listing of raw symbols and C names.
20318global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20319
20320# Transform the output of nm in a proper C declaration.
20321global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20322
20323# Transform the output of nm in a C name address pair.
20324global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20325
20326# Transform the output of nm in a C name address pair when lib prefix is needed.
20327global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20328
20329# The name of the directory that contains temporary libtool files.
20330objdir=$objdir
20331
20332# Shell to use when invoking shell scripts.
20333SHELL=$lt_SHELL
20334
20335# An echo program that does not interpret backslashes.
20336ECHO=$lt_ECHO
20337
20338# Used to examine libraries when file_magic_cmd begins with "file".
20339MAGIC_CMD=$MAGIC_CMD
20340
20341# Must we lock files when doing compilation?
20342need_locks=$lt_need_locks
20343
20344# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20345DSYMUTIL=$lt_DSYMUTIL
20346
20347# Tool to change global to local symbols on Mac OS X.
20348NMEDIT=$lt_NMEDIT
20349
20350# Tool to manipulate fat objects and archives on Mac OS X.
20351LIPO=$lt_LIPO
20352
20353# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20354OTOOL=$lt_OTOOL
20355
20356# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20357OTOOL64=$lt_OTOOL64
20358
20359# Old archive suffix (normally "a").
20360libext=$libext
20361
20362# Shared library suffix (normally ".so").
20363shrext_cmds=$lt_shrext_cmds
20364
20365# The commands to extract the exported symbol list from a shared archive.
20366extract_expsyms_cmds=$lt_extract_expsyms_cmds
20367
20368# Variables whose values should be saved in libtool wrapper scripts and
20369# restored at link time.
20370variables_saved_for_relink=$lt_variables_saved_for_relink
20371
20372# Do we need the "lib" prefix for modules?
20373need_lib_prefix=$need_lib_prefix
20374
20375# Do we need a version for libraries?
20376need_version=$need_version
20377
20378# Library versioning type.
20379version_type=$version_type
20380
20381# Shared library runtime path variable.
20382runpath_var=$runpath_var
20383
20384# Shared library path variable.
20385shlibpath_var=$shlibpath_var
20386
20387# Is shlibpath searched before the hard-coded library search path?
20388shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20389
20390# Format of library name prefix.
20391libname_spec=$lt_libname_spec
20392
20393# List of archive names.  First name is the real one, the rest are links.
20394# The last name is the one that the linker finds with -lNAME
20395library_names_spec=$lt_library_names_spec
20396
20397# The coded name of the library, if different from the real name.
20398soname_spec=$lt_soname_spec
20399
20400# Command to use after installation of a shared archive.
20401postinstall_cmds=$lt_postinstall_cmds
20402
20403# Command to use after uninstallation of a shared archive.
20404postuninstall_cmds=$lt_postuninstall_cmds
20405
20406# Commands used to finish a libtool library installation in a directory.
20407finish_cmds=$lt_finish_cmds
20408
20409# As "finish_cmds", except a single script fragment to be evaled but
20410# not shown.
20411finish_eval=$lt_finish_eval
20412
20413# Whether we should hardcode library paths into libraries.
20414hardcode_into_libs=$hardcode_into_libs
20415
20416# Compile-time system search path for libraries.
20417sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20418
20419# Run-time system search path for libraries.
20420sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20421
20422# Whether dlopen is supported.
20423dlopen_support=$enable_dlopen
20424
20425# Whether dlopen of programs is supported.
20426dlopen_self=$enable_dlopen_self
20427
20428# Whether dlopen of statically linked programs is supported.
20429dlopen_self_static=$enable_dlopen_self_static
20430
20431# Commands to strip libraries.
20432old_striplib=$lt_old_striplib
20433striplib=$lt_striplib
20434
20435
20436# The linker used to build libraries.
20437LD=$lt_LD
20438
20439# Commands used to build an old-style archive.
20440old_archive_cmds=$lt_old_archive_cmds
20441
20442# A language specific compiler.
20443CC=$lt_compiler
20444
20445# Is the compiler the GNU compiler?
20446with_gcc=$GCC
20447
20448# Compiler flag to turn off builtin functions.
20449no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20450
20451# How to pass a linker flag through the compiler.
20452wl=$lt_lt_prog_compiler_wl
20453
20454# Additional compiler flags for building library objects.
20455pic_flag=$lt_lt_prog_compiler_pic
20456
20457# Compiler flag to prevent dynamic linking.
20458link_static_flag=$lt_lt_prog_compiler_static
20459
20460# Does compiler simultaneously support -c and -o options?
20461compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20462
20463# Whether or not to add -lc for building shared libraries.
20464build_libtool_need_lc=$archive_cmds_need_lc
20465
20466# Whether or not to disallow shared libs when runtime libs are static.
20467allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20468
20469# Compiler flag to allow reflexive dlopens.
20470export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20471
20472# Compiler flag to generate shared objects directly from archives.
20473whole_archive_flag_spec=$lt_whole_archive_flag_spec
20474
20475# Whether the compiler copes with passing no objects directly.
20476compiler_needs_object=$lt_compiler_needs_object
20477
20478# Create an old-style archive from a shared archive.
20479old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20480
20481# Create a temporary old-style archive to link instead of a shared archive.
20482old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20483
20484# Commands used to build a shared archive.
20485archive_cmds=$lt_archive_cmds
20486archive_expsym_cmds=$lt_archive_expsym_cmds
20487
20488# Commands used to build a loadable module if different from building
20489# a shared archive.
20490module_cmds=$lt_module_cmds
20491module_expsym_cmds=$lt_module_expsym_cmds
20492
20493# Whether we are building with GNU ld or not.
20494with_gnu_ld=$lt_with_gnu_ld
20495
20496# Flag that allows shared libraries with undefined symbols to be built.
20497allow_undefined_flag=$lt_allow_undefined_flag
20498
20499# Flag that enforces no undefined symbols.
20500no_undefined_flag=$lt_no_undefined_flag
20501
20502# Flag to hardcode \$libdir into a binary during linking.
20503# This must work even if \$libdir does not exist
20504hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20505
20506# If ld is used when linking, flag to hardcode \$libdir into a binary
20507# during linking.  This must work even if \$libdir does not exist.
20508hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20509
20510# Whether we need a single "-rpath" flag with a separated argument.
20511hardcode_libdir_separator=$lt_hardcode_libdir_separator
20512
20513# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20514# DIR into the resulting binary.
20515hardcode_direct=$hardcode_direct
20516
20517# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20518# DIR into the resulting binary and the resulting library dependency is
20519# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20520# library is relocated.
20521hardcode_direct_absolute=$hardcode_direct_absolute
20522
20523# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20524# into the resulting binary.
20525hardcode_minus_L=$hardcode_minus_L
20526
20527# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20528# into the resulting binary.
20529hardcode_shlibpath_var=$hardcode_shlibpath_var
20530
20531# Set to "yes" if building a shared library automatically hardcodes DIR
20532# into the library and all subsequent libraries and executables linked
20533# against it.
20534hardcode_automatic=$hardcode_automatic
20535
20536# Set to yes if linker adds runtime paths of dependent libraries
20537# to runtime path list.
20538inherit_rpath=$inherit_rpath
20539
20540# Whether libtool must link a program against all its dependency libraries.
20541link_all_deplibs=$link_all_deplibs
20542
20543# Fix the shell variable \$srcfile for the compiler.
20544fix_srcfile_path=$lt_fix_srcfile_path
20545
20546# Set to "yes" if exported symbols are required.
20547always_export_symbols=$always_export_symbols
20548
20549# The commands to list exported symbols.
20550export_symbols_cmds=$lt_export_symbols_cmds
20551
20552# Symbols that should not be listed in the preloaded symbols.
20553exclude_expsyms=$lt_exclude_expsyms
20554
20555# Symbols that must always be exported.
20556include_expsyms=$lt_include_expsyms
20557
20558# Commands necessary for linking programs (against libraries) with templates.
20559prelink_cmds=$lt_prelink_cmds
20560
20561# Specify filename containing input files.
20562file_list_spec=$lt_file_list_spec
20563
20564# How to hardcode a shared library path into an executable.
20565hardcode_action=$hardcode_action
20566
20567# The directories searched by this compiler when creating a shared library.
20568compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20569
20570# Dependencies to place before and after the objects being linked to
20571# create a shared library.
20572predep_objects=$lt_predep_objects
20573postdep_objects=$lt_postdep_objects
20574predeps=$lt_predeps
20575postdeps=$lt_postdeps
20576
20577# The library search path used internally by the compiler when linking
20578# a shared library.
20579compiler_lib_search_path=$lt_compiler_lib_search_path
20580
20581# ### END LIBTOOL CONFIG
20582
20583_LT_EOF
20584
20585  case $host_os in
20586  aix3*)
20587    cat <<\_LT_EOF >> "$cfgfile"
20588# AIX sometimes has problems with the GCC collect2 program.  For some
20589# reason, if we set the COLLECT_NAMES environment variable, the problems
20590# vanish in a puff of smoke.
20591if test "X${COLLECT_NAMES+set}" != Xset; then
20592  COLLECT_NAMES=
20593  export COLLECT_NAMES
20594fi
20595_LT_EOF
20596    ;;
20597  esac
20598
20599
20600ltmain="$ac_aux_dir/ltmain.sh"
20601
20602
20603  # We use sed instead of cat because bash on DJGPP gets confused if
20604  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20605  # text mode, it properly converts lines to CR/LF.  This bash problem
20606  # is reportedly fixed, but why not run on old versions too?
20607  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20608    || (rm -f "$cfgfile"; exit 1)
20609
20610  case $xsi_shell in
20611  yes)
20612    cat << \_LT_EOF >> "$cfgfile"
20613
20614# func_dirname file append nondir_replacement
20615# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
20616# otherwise set result to NONDIR_REPLACEMENT.
20617func_dirname ()
20618{
20619  case ${1} in
20620    */*) func_dirname_result="${1%/*}${2}" ;;
20621    *  ) func_dirname_result="${3}" ;;
20622  esac
20623}
20624
20625# func_basename file
20626func_basename ()
20627{
20628  func_basename_result="${1##*/}"
20629}
20630
20631# func_dirname_and_basename file append nondir_replacement
20632# perform func_basename and func_dirname in a single function
20633# call:
20634#   dirname:  Compute the dirname of FILE.  If nonempty,
20635#             add APPEND to the result, otherwise set result
20636#             to NONDIR_REPLACEMENT.
20637#             value returned in "$func_dirname_result"
20638#   basename: Compute filename of FILE.
20639#             value retuned in "$func_basename_result"
20640# Implementation must be kept synchronized with func_dirname
20641# and func_basename. For efficiency, we do not delegate to
20642# those functions but instead duplicate the functionality here.
20643func_dirname_and_basename ()
20644{
20645  case ${1} in
20646    */*) func_dirname_result="${1%/*}${2}" ;;
20647    *  ) func_dirname_result="${3}" ;;
20648  esac
20649  func_basename_result="${1##*/}"
20650}
20651
20652# func_stripname prefix suffix name
20653# strip PREFIX and SUFFIX off of NAME.
20654# PREFIX and SUFFIX must not contain globbing or regex special
20655# characters, hashes, percent signs, but SUFFIX may contain a leading
20656# dot (in which case that matches only a dot).
20657func_stripname ()
20658{
20659  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20660  # positional parameters, so assign one to ordinary parameter first.
20661  func_stripname_result=${3}
20662  func_stripname_result=${func_stripname_result#"${1}"}
20663  func_stripname_result=${func_stripname_result%"${2}"}
20664}
20665
20666# func_opt_split
20667func_opt_split ()
20668{
20669  func_opt_split_opt=${1%%=*}
20670  func_opt_split_arg=${1#*=}
20671}
20672
20673# func_lo2o object
20674func_lo2o ()
20675{
20676  case ${1} in
20677    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20678    *)    func_lo2o_result=${1} ;;
20679  esac
20680}
20681
20682# func_xform libobj-or-source
20683func_xform ()
20684{
20685  func_xform_result=${1%.*}.lo
20686}
20687
20688# func_arith arithmetic-term...
20689func_arith ()
20690{
20691  func_arith_result=$(( $* ))
20692}
20693
20694# func_len string
20695# STRING may not start with a hyphen.
20696func_len ()
20697{
20698  func_len_result=${#1}
20699}
20700
20701_LT_EOF
20702    ;;
20703  *) # Bourne compatible functions.
20704    cat << \_LT_EOF >> "$cfgfile"
20705
20706# func_dirname file append nondir_replacement
20707# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
20708# otherwise set result to NONDIR_REPLACEMENT.
20709func_dirname ()
20710{
20711  # Extract subdirectory from the argument.
20712  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
20713  if test "X$func_dirname_result" = "X${1}"; then
20714    func_dirname_result="${3}"
20715  else
20716    func_dirname_result="$func_dirname_result${2}"
20717  fi
20718}
20719
20720# func_basename file
20721func_basename ()
20722{
20723  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
20724}
20725
20726
20727# func_stripname prefix suffix name
20728# strip PREFIX and SUFFIX off of NAME.
20729# PREFIX and SUFFIX must not contain globbing or regex special
20730# characters, hashes, percent signs, but SUFFIX may contain a leading
20731# dot (in which case that matches only a dot).
20732# func_strip_suffix prefix name
20733func_stripname ()
20734{
20735  case ${2} in
20736    .*) func_stripname_result=`$ECHO "X${3}" \
20737           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
20738    *)  func_stripname_result=`$ECHO "X${3}" \
20739           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
20740  esac
20741}
20742
20743# sed scripts:
20744my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20745my_sed_long_arg='1s/^-[^=]*=//'
20746
20747# func_opt_split
20748func_opt_split ()
20749{
20750  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
20751  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
20752}
20753
20754# func_lo2o object
20755func_lo2o ()
20756{
20757  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
20758}
20759
20760# func_xform libobj-or-source
20761func_xform ()
20762{
20763  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
20764}
20765
20766# func_arith arithmetic-term...
20767func_arith ()
20768{
20769  func_arith_result=`expr "$@"`
20770}
20771
20772# func_len string
20773# STRING may not start with a hyphen.
20774func_len ()
20775{
20776  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20777}
20778
20779_LT_EOF
20780esac
20781
20782case $lt_shell_append in
20783  yes)
20784    cat << \_LT_EOF >> "$cfgfile"
20785
20786# func_append var value
20787# Append VALUE to the end of shell variable VAR.
20788func_append ()
20789{
20790  eval "$1+=\$2"
20791}
20792_LT_EOF
20793    ;;
20794  *)
20795    cat << \_LT_EOF >> "$cfgfile"
20796
20797# func_append var value
20798# Append VALUE to the end of shell variable VAR.
20799func_append ()
20800{
20801  eval "$1=\$$1\$2"
20802}
20803
20804_LT_EOF
20805    ;;
20806  esac
20807
20808
20809  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20810    || (rm -f "$cfgfile"; exit 1)
20811
20812  mv -f "$cfgfile" "$ofile" ||
20813    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20814  chmod +x "$ofile"
20815
20816
20817    cat <<_LT_EOF >> "$ofile"
20818
20819# ### BEGIN LIBTOOL TAG CONFIG: CXX
20820
20821# The linker used to build libraries.
20822LD=$lt_LD_CXX
20823
20824# Commands used to build an old-style archive.
20825old_archive_cmds=$lt_old_archive_cmds_CXX
20826
20827# A language specific compiler.
20828CC=$lt_compiler_CXX
20829
20830# Is the compiler the GNU compiler?
20831with_gcc=$GCC_CXX
20832
20833# Compiler flag to turn off builtin functions.
20834no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20835
20836# How to pass a linker flag through the compiler.
20837wl=$lt_lt_prog_compiler_wl_CXX
20838
20839# Additional compiler flags for building library objects.
20840pic_flag=$lt_lt_prog_compiler_pic_CXX
20841
20842# Compiler flag to prevent dynamic linking.
20843link_static_flag=$lt_lt_prog_compiler_static_CXX
20844
20845# Does compiler simultaneously support -c and -o options?
20846compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20847
20848# Whether or not to add -lc for building shared libraries.
20849build_libtool_need_lc=$archive_cmds_need_lc_CXX
20850
20851# Whether or not to disallow shared libs when runtime libs are static.
20852allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20853
20854# Compiler flag to allow reflexive dlopens.
20855export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20856
20857# Compiler flag to generate shared objects directly from archives.
20858whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20859
20860# Whether the compiler copes with passing no objects directly.
20861compiler_needs_object=$lt_compiler_needs_object_CXX
20862
20863# Create an old-style archive from a shared archive.
20864old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20865
20866# Create a temporary old-style archive to link instead of a shared archive.
20867old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20868
20869# Commands used to build a shared archive.
20870archive_cmds=$lt_archive_cmds_CXX
20871archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20872
20873# Commands used to build a loadable module if different from building
20874# a shared archive.
20875module_cmds=$lt_module_cmds_CXX
20876module_expsym_cmds=$lt_module_expsym_cmds_CXX
20877
20878# Whether we are building with GNU ld or not.
20879with_gnu_ld=$lt_with_gnu_ld_CXX
20880
20881# Flag that allows shared libraries with undefined symbols to be built.
20882allow_undefined_flag=$lt_allow_undefined_flag_CXX
20883
20884# Flag that enforces no undefined symbols.
20885no_undefined_flag=$lt_no_undefined_flag_CXX
20886
20887# Flag to hardcode \$libdir into a binary during linking.
20888# This must work even if \$libdir does not exist
20889hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20890
20891# If ld is used when linking, flag to hardcode \$libdir into a binary
20892# during linking.  This must work even if \$libdir does not exist.
20893hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20894
20895# Whether we need a single "-rpath" flag with a separated argument.
20896hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20897
20898# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20899# DIR into the resulting binary.
20900hardcode_direct=$hardcode_direct_CXX
20901
20902# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20903# DIR into the resulting binary and the resulting library dependency is
20904# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20905# library is relocated.
20906hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20907
20908# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20909# into the resulting binary.
20910hardcode_minus_L=$hardcode_minus_L_CXX
20911
20912# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20913# into the resulting binary.
20914hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20915
20916# Set to "yes" if building a shared library automatically hardcodes DIR
20917# into the library and all subsequent libraries and executables linked
20918# against it.
20919hardcode_automatic=$hardcode_automatic_CXX
20920
20921# Set to yes if linker adds runtime paths of dependent libraries
20922# to runtime path list.
20923inherit_rpath=$inherit_rpath_CXX
20924
20925# Whether libtool must link a program against all its dependency libraries.
20926link_all_deplibs=$link_all_deplibs_CXX
20927
20928# Fix the shell variable \$srcfile for the compiler.
20929fix_srcfile_path=$lt_fix_srcfile_path_CXX
20930
20931# Set to "yes" if exported symbols are required.
20932always_export_symbols=$always_export_symbols_CXX
20933
20934# The commands to list exported symbols.
20935export_symbols_cmds=$lt_export_symbols_cmds_CXX
20936
20937# Symbols that should not be listed in the preloaded symbols.
20938exclude_expsyms=$lt_exclude_expsyms_CXX
20939
20940# Symbols that must always be exported.
20941include_expsyms=$lt_include_expsyms_CXX
20942
20943# Commands necessary for linking programs (against libraries) with templates.
20944prelink_cmds=$lt_prelink_cmds_CXX
20945
20946# Specify filename containing input files.
20947file_list_spec=$lt_file_list_spec_CXX
20948
20949# How to hardcode a shared library path into an executable.
20950hardcode_action=$hardcode_action_CXX
20951
20952# The directories searched by this compiler when creating a shared library.
20953compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20954
20955# Dependencies to place before and after the objects being linked to
20956# create a shared library.
20957predep_objects=$lt_predep_objects_CXX
20958postdep_objects=$lt_postdep_objects_CXX
20959predeps=$lt_predeps_CXX
20960postdeps=$lt_postdeps_CXX
20961
20962# The library search path used internally by the compiler when linking
20963# a shared library.
20964compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20965
20966# ### END LIBTOOL TAG CONFIG: CXX
20967_LT_EOF
20968
20969 ;;
20970
20971  esac
20972done # for ac_tag
20973
20974
20975as_fn_exit 0
20976_ACEOF
20977ac_clean_files=$ac_clean_files_save
20978
20979test $ac_write_fail = 0 ||
20980  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
20981
20982
20983# configure is writing to config.log, and then calls config.status.
20984# config.status does its own redirection, appending to config.log.
20985# Unfortunately, on DOS this fails, as config.log is still kept open
20986# by configure, so config.status won't be able to write to it; its
20987# output is simply discarded.  So we exec the FD to /dev/null,
20988# effectively closing config.log, so it can be properly (re)opened and
20989# appended to by config.status.  When coming back to configure, we
20990# need to make the FD available again.
20991if test "$no_create" != yes; then
20992  ac_cs_success=:
20993  ac_config_status_args=
20994  test "$silent" = yes &&
20995    ac_config_status_args="$ac_config_status_args --quiet"
20996  exec 5>/dev/null
20997  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20998  exec 5>>config.log
20999  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21000  # would make configure fail if this is the last instruction.
21001  $ac_cs_success || as_fn_exit $?
21002fi
21003if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21004  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21005$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21006fi
21007
21008
21009
21010echo ""
21011echo "Libtiff is now configured for ${host}"
21012echo ""
21013echo "  Installation directory:             ${prefix}"
21014echo "  Documentation directory:            ${LIBTIFF_DOCDIR}"
21015echo "  C compiler:                         ${CC} ${CFLAGS}"
21016echo "  C++ compiler:                       ${CXX} ${CXXFLAGS}"
21017echo "  Enable runtime linker paths:        ${HAVE_RPATH}"
21018echo "  Support Microsoft Document Imaging: ${HAVE_MDI}"
21019echo ""
21020echo " Support for internal codecs:"
21021echo "  CCITT Group 3 & 4 algorithms:       ${HAVE_CCITT}"
21022echo "  Macintosh PackBits algorithm:       ${HAVE_PACKBITS}"
21023echo "  LZW algorithm:                      ${HAVE_LZW}"
21024echo "  ThunderScan 4-bit RLE algorithm:    ${HAVE_THUNDER}"
21025echo "  NeXT 2-bit RLE algorithm:           ${HAVE_NEXT}"
21026echo "  LogLuv high dynamic range encoding: ${HAVE_LOGLUV}"
21027echo ""
21028echo " Support for external codecs:"
21029echo "  ZLIB support:                       ${HAVE_ZLIB}"
21030echo "  Pixar log-format algorithm:         ${HAVE_PIXARLOG}"
21031echo "  JPEG support:                       ${HAVE_JPEG}"
21032echo "  Old JPEG support:                   ${HAVE_OJPEG}"
21033echo "  JPEG 8/12 bit dual mode:            ${HAVE_JPEG12}"
21034echo "  ISO JBIG support:                   ${HAVE_JBIG}"
21035echo ""
21036echo "  C++ support:                        ${HAVE_CXX}"
21037echo ""
21038echo "  OpenGL support:                     ${HAVE_OPENGL}"
21039echo ""
21040
21041