• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.65 for open-vcdiff 0.8.3.
4#
5# Report bugs to <opensource@google.com>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94case $0 in #((
95  *[\\/]* ) as_myself=$0 ;;
96  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99  IFS=$as_save_IFS
100  test -z "$as_dir" && as_dir=.
101    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102  done
103IFS=$as_save_IFS
104
105     ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110  as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114  exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there.  '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140  emulate sh
141  NULLCMD=:
142  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143  # is contrary to our usage.  Disable this feature.
144  alias -g '\${1+\"\$@\"}'='\"\$@\"'
145  setopt NO_GLOB_SUBST
146else
147  case \`(set -o) 2>/dev/null\` in #(
148  *posix*) :
149    set -o posix ;; #(
150  *) :
151     ;;
152esac
153fi
154"
155  as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169  exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176test \$(( 1 + 1 )) = 2 || exit 1"
177  if (eval "$as_required") 2>/dev/null; then :
178  as_have_required=yes
179else
180  as_have_required=no
181fi
182  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189  IFS=$as_save_IFS
190  test -z "$as_dir" && as_dir=.
191  as_found=:
192  case $as_dir in #(
193	 /*)
194	   for as_base in sh bash ksh sh5; do
195	     # Try only shells that exist, to save several forks.
196	     as_shell=$as_dir/$as_base
197	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199  CONFIG_SHELL=$as_shell as_have_required=yes
200		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201  break 2
202fi
203fi
204	   done;;
205       esac
206  as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210  CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215      if test "x$CONFIG_SHELL" != x; then :
216  # We cannot yet assume a decent shell, so we have to provide a
217	# neutralization value for shells without unset; and this also
218	# works around shells that cannot unset nonexistent variables.
219	BASH_ENV=/dev/null
220	ENV=/dev/null
221	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222	export CONFIG_SHELL
223	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226    if test x$as_have_required = xno; then :
227  $as_echo "$0: This script requires a shell more modern than all"
228  $as_echo "$0: the shells that I found on your system."
229  if test x${ZSH_VERSION+set} = xset ; then
230    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232  else
233    $as_echo "$0: Please tell bug-autoconf@gnu.org and
234$0: opensource@google.com about your system, including any
235$0: error possibly output before this message. Then install
236$0: a modern shell, or manually run the script under such a
237$0: shell if you do have one."
238  fi
239  exit 1
240fi
241fi
242fi
243SHELL=${CONFIG_SHELL-/bin/sh}
244export SHELL
245# Unset more variables known to interfere with behavior of common tools.
246CLICOLOR_FORCE= GREP_OPTIONS=
247unset CLICOLOR_FORCE GREP_OPTIONS
248
249## --------------------- ##
250## M4sh Shell Functions. ##
251## --------------------- ##
252# as_fn_unset VAR
253# ---------------
254# Portably unset VAR.
255as_fn_unset ()
256{
257  { eval $1=; unset $1;}
258}
259as_unset=as_fn_unset
260
261# as_fn_set_status STATUS
262# -----------------------
263# Set $? to STATUS, without forking.
264as_fn_set_status ()
265{
266  return $1
267} # as_fn_set_status
268
269# as_fn_exit STATUS
270# -----------------
271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272as_fn_exit ()
273{
274  set +e
275  as_fn_set_status $1
276  exit $1
277} # as_fn_exit
278
279# as_fn_mkdir_p
280# -------------
281# Create "$as_dir" as a directory, including parents if necessary.
282as_fn_mkdir_p ()
283{
284
285  case $as_dir in #(
286  -*) as_dir=./$as_dir;;
287  esac
288  test -d "$as_dir" || eval $as_mkdir_p || {
289    as_dirs=
290    while :; do
291      case $as_dir in #(
292      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293      *) as_qdir=$as_dir;;
294      esac
295      as_dirs="'$as_qdir' $as_dirs"
296      as_dir=`$as_dirname -- "$as_dir" ||
297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298	 X"$as_dir" : 'X\(//\)[^/]' \| \
299	 X"$as_dir" : 'X\(//\)$' \| \
300	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301$as_echo X"$as_dir" |
302    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303	    s//\1/
304	    q
305	  }
306	  /^X\(\/\/\)[^/].*/{
307	    s//\1/
308	    q
309	  }
310	  /^X\(\/\/\)$/{
311	    s//\1/
312	    q
313	  }
314	  /^X\(\/\).*/{
315	    s//\1/
316	    q
317	  }
318	  s/.*/./; q'`
319      test -d "$as_dir" && break
320    done
321    test -z "$as_dirs" || eval "mkdir $as_dirs"
322  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
324
325} # as_fn_mkdir_p
326# as_fn_append VAR VALUE
327# ----------------------
328# Append the text in VALUE to the end of the definition contained in VAR. Take
329# advantage of any shell optimizations that allow amortized linear growth over
330# repeated appends, instead of the typical quadratic growth present in naive
331# implementations.
332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333  eval 'as_fn_append ()
334  {
335    eval $1+=\$2
336  }'
337else
338  as_fn_append ()
339  {
340    eval $1=\$$1\$2
341  }
342fi # as_fn_append
343
344# as_fn_arith ARG...
345# ------------------
346# Perform arithmetic evaluation on the ARGs, and store the result in the
347# global $as_val. Take advantage of shells that can avoid forks. The arguments
348# must be portable across $(()) and expr.
349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350  eval 'as_fn_arith ()
351  {
352    as_val=$(( $* ))
353  }'
354else
355  as_fn_arith ()
356  {
357    as_val=`expr "$@" || test $? -eq 1`
358  }
359fi # as_fn_arith
360
361
362# as_fn_error ERROR [LINENO LOG_FD]
363# ---------------------------------
364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366# script with status $?, using 1 if that was 0.
367as_fn_error ()
368{
369  as_status=$?; test $as_status -eq 0 && as_status=1
370  if test "$3"; then
371    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373  fi
374  $as_echo "$as_me: error: $1" >&2
375  as_fn_exit $as_status
376} # as_fn_error
377
378if expr a : '\(a\)' >/dev/null 2>&1 &&
379   test "X`expr 00001 : '.*\(...\)'`" = X001; then
380  as_expr=expr
381else
382  as_expr=false
383fi
384
385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386  as_basename=basename
387else
388  as_basename=false
389fi
390
391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392  as_dirname=dirname
393else
394  as_dirname=false
395fi
396
397as_me=`$as_basename -- "$0" ||
398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399	 X"$0" : 'X\(//\)$' \| \
400	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401$as_echo X/"$0" |
402    sed '/^.*\/\([^/][^/]*\)\/*$/{
403	    s//\1/
404	    q
405	  }
406	  /^X\/\(\/\/\)$/{
407	    s//\1/
408	    q
409	  }
410	  /^X\/\(\/\).*/{
411	    s//\1/
412	    q
413	  }
414	  s/.*/./; q'`
415
416# Avoid depending upon Character Ranges.
417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420as_cr_digits='0123456789'
421as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424  as_lineno_1=$LINENO as_lineno_1a=$LINENO
425  as_lineno_2=$LINENO as_lineno_2a=$LINENO
426  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429  sed -n '
430    p
431    /[$]LINENO/=
432  ' <$as_myself |
433    sed '
434      s/[$]LINENO.*/&-/
435      t lineno
436      b
437      :lineno
438      N
439      :loop
440      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441      t loop
442      s/-\n.*//
443    ' >$as_me.lineno &&
444  chmod +x "$as_me.lineno" ||
445    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447  # Don't try to exec as it changes $[0], causing all sort of problems
448  # (the dirname of $[0] is not the place where we might find the
449  # original and so on.  Autoconf is especially sensitive to this).
450  . "./$as_me.lineno"
451  # Exit status is that of the last command.
452  exit
453}
454
455ECHO_C= ECHO_N= ECHO_T=
456case `echo -n x` in #(((((
457-n*)
458  case `echo 'xy\c'` in
459  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
460  xy)  ECHO_C='\c';;
461  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462       ECHO_T='	';;
463  esac;;
464*)
465  ECHO_N='-n';;
466esac
467
468rm -f conf$$ conf$$.exe conf$$.file
469if test -d conf$$.dir; then
470  rm -f conf$$.dir/conf$$.file
471else
472  rm -f conf$$.dir
473  mkdir conf$$.dir 2>/dev/null
474fi
475if (echo >conf$$.file) 2>/dev/null; then
476  if ln -s conf$$.file conf$$ 2>/dev/null; then
477    as_ln_s='ln -s'
478    # ... but there are two gotchas:
479    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481    # In both cases, we have to default to `cp -p'.
482    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483      as_ln_s='cp -p'
484  elif ln conf$$.file conf$$ 2>/dev/null; then
485    as_ln_s=ln
486  else
487    as_ln_s='cp -p'
488  fi
489else
490  as_ln_s='cp -p'
491fi
492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null
494
495if mkdir -p . 2>/dev/null; then
496  as_mkdir_p='mkdir -p "$as_dir"'
497else
498  test -d ./-p && rmdir ./-p
499  as_mkdir_p=false
500fi
501
502if test -x / >/dev/null 2>&1; then
503  as_test_x='test -x'
504else
505  if ls -dL / >/dev/null 2>&1; then
506    as_ls_L_option=L
507  else
508    as_ls_L_option=
509  fi
510  as_test_x='
511    eval sh -c '\''
512      if test -d "$1"; then
513	test -d "$1/.";
514      else
515	case $1 in #(
516	-*)set "./$1";;
517	esac;
518	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519	???[sx]*):;;*)false;;esac;fi
520    '\'' sh
521  '
522fi
523as_executable_p=$as_test_x
524
525# Sed expression to map a string onto a valid CPP name.
526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528# Sed expression to map a string onto a valid variable name.
529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532
533# Check that we are running under the correct shell.
534SHELL=${CONFIG_SHELL-/bin/sh}
535
536case X$lt_ECHO in
537X*--fallback-echo)
538  # Remove one level of quotation (which was required for Make).
539  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540  ;;
541esac
542
543ECHO=${lt_ECHO-echo}
544if test "X$1" = X--no-reexec; then
545  # Discard the --no-reexec flag, and continue.
546  shift
547elif test "X$1" = X--fallback-echo; then
548  # Avoid inline document here, it may be left over
549  :
550elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551  # Yippee, $ECHO works!
552  :
553else
554  # Restart under the correct shell.
555  exec $SHELL "$0" --no-reexec ${1+"$@"}
556fi
557
558if test "X$1" = X--fallback-echo; then
559  # used as fallback echo
560  shift
561  cat <<_LT_EOF
562$*
563_LT_EOF
564  exit 0
565fi
566
567# The HP-UX ksh and POSIX shell print the target directory to stdout
568# if CDPATH is set.
569(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571if test -z "$lt_ECHO"; then
572  if test "X${echo_test_string+set}" != Xset; then
573    # find a string as large as possible, as long as the shell can cope with it
574    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578      then
579        break
580      fi
581    done
582  fi
583
584  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586     test "X$echo_testing_string" = "X$echo_test_string"; then
587    :
588  else
589    # The Solaris, AIX, and Digital Unix default echo programs unquote
590    # backslashes.  This makes it impossible to quote backslashes using
591    #   echo "$something" | sed 's/\\/\\\\/g'
592    #
593    # So, first we look for a working echo in the user's PATH.
594
595    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596    for dir in $PATH /usr/ucb; do
597      IFS="$lt_save_ifs"
598      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601         test "X$echo_testing_string" = "X$echo_test_string"; then
602        ECHO="$dir/echo"
603        break
604      fi
605    done
606    IFS="$lt_save_ifs"
607
608    if test "X$ECHO" = Xecho; then
609      # We didn't find a better echo, so look for alternatives.
610      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612         test "X$echo_testing_string" = "X$echo_test_string"; then
613        # This shell has a builtin print -r that does the trick.
614        ECHO='print -r'
615      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616	   test "X$CONFIG_SHELL" != X/bin/ksh; then
617        # If we have ksh, try running configure again with it.
618        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619        export ORIGINAL_CONFIG_SHELL
620        CONFIG_SHELL=/bin/ksh
621        export CONFIG_SHELL
622        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623      else
624        # Try using printf.
625        ECHO='printf %s\n'
626        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628	   test "X$echo_testing_string" = "X$echo_test_string"; then
629	  # Cool, printf works
630	  :
631        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632	     test "X$echo_testing_string" = 'X\t' &&
633	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634	     test "X$echo_testing_string" = "X$echo_test_string"; then
635	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636	  export CONFIG_SHELL
637	  SHELL="$CONFIG_SHELL"
638	  export SHELL
639	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
640        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641	     test "X$echo_testing_string" = 'X\t' &&
642	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643	     test "X$echo_testing_string" = "X$echo_test_string"; then
644	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
645        else
646	  # maybe with a smaller string...
647	  prev=:
648
649	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651	    then
652	      break
653	    fi
654	    prev="$cmd"
655	  done
656
657	  if test "$prev" != 'sed 50q "$0"'; then
658	    echo_test_string=`eval $prev`
659	    export echo_test_string
660	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661	  else
662	    # Oops.  We lost completely, so just stick with echo.
663	    ECHO=echo
664	  fi
665        fi
666      fi
667    fi
668  fi
669fi
670
671# Copy echo and quote the copy suitably for passing to libtool from
672# the Makefile, instead of quoting the original, which is used later.
673lt_ECHO=$ECHO
674if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676fi
677
678
679
680
681test -n "$DJDIR" || exec 7<&0 </dev/null
682exec 6>&1
683
684# Name of the host.
685# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
686# so uname gets run too.
687ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
688
689#
690# Initializations.
691#
692ac_default_prefix=/usr/local
693ac_clean_files=
694ac_config_libobj_dir=.
695LIBOBJS=
696cross_compiling=no
697subdirs=
698MFLAGS=
699MAKEFLAGS=
700
701# Identity of this package.
702PACKAGE_NAME='open-vcdiff'
703PACKAGE_TARNAME='open-vcdiff'
704PACKAGE_VERSION='0.8.3'
705PACKAGE_STRING='open-vcdiff 0.8.3'
706PACKAGE_BUGREPORT='opensource@google.com'
707PACKAGE_URL=''
708
709ac_unique_file="README"
710# Factoring default headers for most tests.
711ac_includes_default="\
712#include <stdio.h>
713#ifdef HAVE_SYS_TYPES_H
714# include <sys/types.h>
715#endif
716#ifdef HAVE_SYS_STAT_H
717# include <sys/stat.h>
718#endif
719#ifdef STDC_HEADERS
720# include <stdlib.h>
721# include <stddef.h>
722#else
723# ifdef HAVE_STDLIB_H
724#  include <stdlib.h>
725# endif
726#endif
727#ifdef HAVE_STRING_H
728# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
729#  include <memory.h>
730# endif
731# include <string.h>
732#endif
733#ifdef HAVE_STRINGS_H
734# include <strings.h>
735#endif
736#ifdef HAVE_INTTYPES_H
737# include <inttypes.h>
738#endif
739#ifdef HAVE_STDINT_H
740# include <stdint.h>
741#endif
742#ifdef HAVE_UNISTD_H
743# include <unistd.h>
744#endif"
745
746ac_subst_vars='am__EXEEXT_FALSE
747am__EXEEXT_TRUE
748LTLIBOBJS
749LIBOBJS
750LIBSTDCXX_LA_LINKER_FLAG
751ac_cv_have___int16
752ac_cv_have_u_int16_t
753ac_cv_have_uint16_t
754ac_cv_have_inttypes_h
755ac_cv_have_systypes_h
756ac_cv_have_stdint_h
757ac_cv___attribute__unused
758ac_google_namespace
759ac_google_end_namespace
760ac_google_start_namespace
761PTHREAD_CFLAGS
762PTHREAD_LIBS
763PTHREAD_CC
764acx_pthread_config
765LIBTOOL_DEPS
766CXXCPP
767OTOOL64
768OTOOL
769LIPO
770NMEDIT
771DSYMUTIL
772lt_ECHO
773RANLIB
774AR
775OBJDUMP
776LN_S
777NM
778ac_ct_DUMPBIN
779DUMPBIN
780LD
781FGREP
782EGREP
783GREP
784SED
785LIBTOOL
786host_os
787host_vendor
788host_cpu
789host
790build_os
791build_vendor
792build_cpu
793build
794GCC_FALSE
795GCC_TRUE
796am__fastdepCXX_FALSE
797am__fastdepCXX_TRUE
798CXXDEPMODE
799ac_ct_CXX
800CXXFLAGS
801CXX
802CPP
803am__fastdepCC_FALSE
804am__fastdepCC_TRUE
805CCDEPMODE
806AMDEPBACKSLASH
807AMDEP_FALSE
808AMDEP_TRUE
809am__quote
810am__include
811DEPDIR
812OBJEXT
813EXEEXT
814ac_ct_CC
815CPPFLAGS
816LDFLAGS
817CFLAGS
818CC
819am__untar
820am__tar
821AMTAR
822am__leading_dot
823SET_MAKE
824AWK
825mkdir_p
826MKDIR_P
827INSTALL_STRIP_PROGRAM
828STRIP
829install_sh
830MAKEINFO
831AUTOHEADER
832AUTOMAKE
833AUTOCONF
834ACLOCAL
835VERSION
836PACKAGE
837CYGPATH_W
838am__isrc
839INSTALL_DATA
840INSTALL_SCRIPT
841INSTALL_PROGRAM
842target_alias
843host_alias
844build_alias
845LIBS
846ECHO_T
847ECHO_N
848ECHO_C
849DEFS
850mandir
851localedir
852libdir
853psdir
854pdfdir
855dvidir
856htmldir
857infodir
858docdir
859oldincludedir
860includedir
861localstatedir
862sharedstatedir
863sysconfdir
864datadir
865datarootdir
866libexecdir
867sbindir
868bindir
869program_transform_name
870prefix
871exec_prefix
872PACKAGE_URL
873PACKAGE_BUGREPORT
874PACKAGE_STRING
875PACKAGE_VERSION
876PACKAGE_TARNAME
877PACKAGE_NAME
878PATH_SEPARATOR
879SHELL'
880ac_subst_files=''
881ac_user_opts='
882enable_option_checking
883enable_dependency_tracking
884enable_shared
885enable_static
886with_pic
887enable_fast_install
888with_gnu_ld
889enable_libtool_lock
890enable_namespace
891'
892      ac_precious_vars='build_alias
893host_alias
894target_alias
895CC
896CFLAGS
897LDFLAGS
898LIBS
899CPPFLAGS
900CPP
901CXX
902CXXFLAGS
903CCC
904CXXCPP'
905
906
907# Initialize some variables set by options.
908ac_init_help=
909ac_init_version=false
910ac_unrecognized_opts=
911ac_unrecognized_sep=
912# The variables have the same names as the options, with
913# dashes changed to underlines.
914cache_file=/dev/null
915exec_prefix=NONE
916no_create=
917no_recursion=
918prefix=NONE
919program_prefix=NONE
920program_suffix=NONE
921program_transform_name=s,x,x,
922silent=
923site=
924srcdir=
925verbose=
926x_includes=NONE
927x_libraries=NONE
928
929# Installation directory options.
930# These are left unexpanded so users can "make install exec_prefix=/foo"
931# and all the variables that are supposed to be based on exec_prefix
932# by default will actually change.
933# Use braces instead of parens because sh, perl, etc. also accept them.
934# (The list follows the same order as the GNU Coding Standards.)
935bindir='${exec_prefix}/bin'
936sbindir='${exec_prefix}/sbin'
937libexecdir='${exec_prefix}/libexec'
938datarootdir='${prefix}/share'
939datadir='${datarootdir}'
940sysconfdir='${prefix}/etc'
941sharedstatedir='${prefix}/com'
942localstatedir='${prefix}/var'
943includedir='${prefix}/include'
944oldincludedir='/usr/include'
945docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
946infodir='${datarootdir}/info'
947htmldir='${docdir}'
948dvidir='${docdir}'
949pdfdir='${docdir}'
950psdir='${docdir}'
951libdir='${exec_prefix}/lib'
952localedir='${datarootdir}/locale'
953mandir='${datarootdir}/man'
954
955ac_prev=
956ac_dashdash=
957for ac_option
958do
959  # If the previous option needs an argument, assign it.
960  if test -n "$ac_prev"; then
961    eval $ac_prev=\$ac_option
962    ac_prev=
963    continue
964  fi
965
966  case $ac_option in
967  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
968  *)	ac_optarg=yes ;;
969  esac
970
971  # Accept the important Cygnus configure options, so we can diagnose typos.
972
973  case $ac_dashdash$ac_option in
974  --)
975    ac_dashdash=yes ;;
976
977  -bindir | --bindir | --bindi | --bind | --bin | --bi)
978    ac_prev=bindir ;;
979  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
980    bindir=$ac_optarg ;;
981
982  -build | --build | --buil | --bui | --bu)
983    ac_prev=build_alias ;;
984  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
985    build_alias=$ac_optarg ;;
986
987  -cache-file | --cache-file | --cache-fil | --cache-fi \
988  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
989    ac_prev=cache_file ;;
990  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
991  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
992    cache_file=$ac_optarg ;;
993
994  --config-cache | -C)
995    cache_file=config.cache ;;
996
997  -datadir | --datadir | --datadi | --datad)
998    ac_prev=datadir ;;
999  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1000    datadir=$ac_optarg ;;
1001
1002  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1003  | --dataroo | --dataro | --datar)
1004    ac_prev=datarootdir ;;
1005  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1006  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1007    datarootdir=$ac_optarg ;;
1008
1009  -disable-* | --disable-*)
1010    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1011    # Reject names that are not valid shell variable names.
1012    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1013      as_fn_error "invalid feature name: $ac_useropt"
1014    ac_useropt_orig=$ac_useropt
1015    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1016    case $ac_user_opts in
1017      *"
1018"enable_$ac_useropt"
1019"*) ;;
1020      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1021	 ac_unrecognized_sep=', ';;
1022    esac
1023    eval enable_$ac_useropt=no ;;
1024
1025  -docdir | --docdir | --docdi | --doc | --do)
1026    ac_prev=docdir ;;
1027  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1028    docdir=$ac_optarg ;;
1029
1030  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1031    ac_prev=dvidir ;;
1032  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1033    dvidir=$ac_optarg ;;
1034
1035  -enable-* | --enable-*)
1036    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1037    # Reject names that are not valid shell variable names.
1038    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1039      as_fn_error "invalid feature name: $ac_useropt"
1040    ac_useropt_orig=$ac_useropt
1041    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1042    case $ac_user_opts in
1043      *"
1044"enable_$ac_useropt"
1045"*) ;;
1046      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1047	 ac_unrecognized_sep=', ';;
1048    esac
1049    eval enable_$ac_useropt=\$ac_optarg ;;
1050
1051  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1052  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1053  | --exec | --exe | --ex)
1054    ac_prev=exec_prefix ;;
1055  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1056  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1057  | --exec=* | --exe=* | --ex=*)
1058    exec_prefix=$ac_optarg ;;
1059
1060  -gas | --gas | --ga | --g)
1061    # Obsolete; use --with-gas.
1062    with_gas=yes ;;
1063
1064  -help | --help | --hel | --he | -h)
1065    ac_init_help=long ;;
1066  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1067    ac_init_help=recursive ;;
1068  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1069    ac_init_help=short ;;
1070
1071  -host | --host | --hos | --ho)
1072    ac_prev=host_alias ;;
1073  -host=* | --host=* | --hos=* | --ho=*)
1074    host_alias=$ac_optarg ;;
1075
1076  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1077    ac_prev=htmldir ;;
1078  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1079  | --ht=*)
1080    htmldir=$ac_optarg ;;
1081
1082  -includedir | --includedir | --includedi | --included | --include \
1083  | --includ | --inclu | --incl | --inc)
1084    ac_prev=includedir ;;
1085  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1086  | --includ=* | --inclu=* | --incl=* | --inc=*)
1087    includedir=$ac_optarg ;;
1088
1089  -infodir | --infodir | --infodi | --infod | --info | --inf)
1090    ac_prev=infodir ;;
1091  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1092    infodir=$ac_optarg ;;
1093
1094  -libdir | --libdir | --libdi | --libd)
1095    ac_prev=libdir ;;
1096  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1097    libdir=$ac_optarg ;;
1098
1099  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1100  | --libexe | --libex | --libe)
1101    ac_prev=libexecdir ;;
1102  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1103  | --libexe=* | --libex=* | --libe=*)
1104    libexecdir=$ac_optarg ;;
1105
1106  -localedir | --localedir | --localedi | --localed | --locale)
1107    ac_prev=localedir ;;
1108  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1109    localedir=$ac_optarg ;;
1110
1111  -localstatedir | --localstatedir | --localstatedi | --localstated \
1112  | --localstate | --localstat | --localsta | --localst | --locals)
1113    ac_prev=localstatedir ;;
1114  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1115  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1116    localstatedir=$ac_optarg ;;
1117
1118  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1119    ac_prev=mandir ;;
1120  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1121    mandir=$ac_optarg ;;
1122
1123  -nfp | --nfp | --nf)
1124    # Obsolete; use --without-fp.
1125    with_fp=no ;;
1126
1127  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1128  | --no-cr | --no-c | -n)
1129    no_create=yes ;;
1130
1131  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1132  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1133    no_recursion=yes ;;
1134
1135  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1136  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1137  | --oldin | --oldi | --old | --ol | --o)
1138    ac_prev=oldincludedir ;;
1139  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1140  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1141  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1142    oldincludedir=$ac_optarg ;;
1143
1144  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1145    ac_prev=prefix ;;
1146  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1147    prefix=$ac_optarg ;;
1148
1149  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1150  | --program-pre | --program-pr | --program-p)
1151    ac_prev=program_prefix ;;
1152  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1153  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1154    program_prefix=$ac_optarg ;;
1155
1156  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1157  | --program-suf | --program-su | --program-s)
1158    ac_prev=program_suffix ;;
1159  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1160  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1161    program_suffix=$ac_optarg ;;
1162
1163  -program-transform-name | --program-transform-name \
1164  | --program-transform-nam | --program-transform-na \
1165  | --program-transform-n | --program-transform- \
1166  | --program-transform | --program-transfor \
1167  | --program-transfo | --program-transf \
1168  | --program-trans | --program-tran \
1169  | --progr-tra | --program-tr | --program-t)
1170    ac_prev=program_transform_name ;;
1171  -program-transform-name=* | --program-transform-name=* \
1172  | --program-transform-nam=* | --program-transform-na=* \
1173  | --program-transform-n=* | --program-transform-=* \
1174  | --program-transform=* | --program-transfor=* \
1175  | --program-transfo=* | --program-transf=* \
1176  | --program-trans=* | --program-tran=* \
1177  | --progr-tra=* | --program-tr=* | --program-t=*)
1178    program_transform_name=$ac_optarg ;;
1179
1180  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1181    ac_prev=pdfdir ;;
1182  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1183    pdfdir=$ac_optarg ;;
1184
1185  -psdir | --psdir | --psdi | --psd | --ps)
1186    ac_prev=psdir ;;
1187  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1188    psdir=$ac_optarg ;;
1189
1190  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1191  | -silent | --silent | --silen | --sile | --sil)
1192    silent=yes ;;
1193
1194  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1195    ac_prev=sbindir ;;
1196  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1197  | --sbi=* | --sb=*)
1198    sbindir=$ac_optarg ;;
1199
1200  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1201  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1202  | --sharedst | --shareds | --shared | --share | --shar \
1203  | --sha | --sh)
1204    ac_prev=sharedstatedir ;;
1205  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1206  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1207  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1208  | --sha=* | --sh=*)
1209    sharedstatedir=$ac_optarg ;;
1210
1211  -site | --site | --sit)
1212    ac_prev=site ;;
1213  -site=* | --site=* | --sit=*)
1214    site=$ac_optarg ;;
1215
1216  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1217    ac_prev=srcdir ;;
1218  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1219    srcdir=$ac_optarg ;;
1220
1221  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1222  | --syscon | --sysco | --sysc | --sys | --sy)
1223    ac_prev=sysconfdir ;;
1224  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1225  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1226    sysconfdir=$ac_optarg ;;
1227
1228  -target | --target | --targe | --targ | --tar | --ta | --t)
1229    ac_prev=target_alias ;;
1230  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1231    target_alias=$ac_optarg ;;
1232
1233  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1234    verbose=yes ;;
1235
1236  -version | --version | --versio | --versi | --vers | -V)
1237    ac_init_version=: ;;
1238
1239  -with-* | --with-*)
1240    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1241    # Reject names that are not valid shell variable names.
1242    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1243      as_fn_error "invalid package name: $ac_useropt"
1244    ac_useropt_orig=$ac_useropt
1245    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1246    case $ac_user_opts in
1247      *"
1248"with_$ac_useropt"
1249"*) ;;
1250      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1251	 ac_unrecognized_sep=', ';;
1252    esac
1253    eval with_$ac_useropt=\$ac_optarg ;;
1254
1255  -without-* | --without-*)
1256    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1257    # Reject names that are not valid shell variable names.
1258    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1259      as_fn_error "invalid package name: $ac_useropt"
1260    ac_useropt_orig=$ac_useropt
1261    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1262    case $ac_user_opts in
1263      *"
1264"with_$ac_useropt"
1265"*) ;;
1266      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1267	 ac_unrecognized_sep=', ';;
1268    esac
1269    eval with_$ac_useropt=no ;;
1270
1271  --x)
1272    # Obsolete; use --with-x.
1273    with_x=yes ;;
1274
1275  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1276  | --x-incl | --x-inc | --x-in | --x-i)
1277    ac_prev=x_includes ;;
1278  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1279  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1280    x_includes=$ac_optarg ;;
1281
1282  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1283  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1284    ac_prev=x_libraries ;;
1285  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1286  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1287    x_libraries=$ac_optarg ;;
1288
1289  -*) as_fn_error "unrecognized option: \`$ac_option'
1290Try \`$0 --help' for more information."
1291    ;;
1292
1293  *=*)
1294    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1295    # Reject names that are not valid shell variable names.
1296    case $ac_envvar in #(
1297      '' | [0-9]* | *[!_$as_cr_alnum]* )
1298      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1299    esac
1300    eval $ac_envvar=\$ac_optarg
1301    export $ac_envvar ;;
1302
1303  *)
1304    # FIXME: should be removed in autoconf 3.0.
1305    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1306    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1307      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1308    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1309    ;;
1310
1311  esac
1312done
1313
1314if test -n "$ac_prev"; then
1315  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1316  as_fn_error "missing argument to $ac_option"
1317fi
1318
1319if test -n "$ac_unrecognized_opts"; then
1320  case $enable_option_checking in
1321    no) ;;
1322    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1323    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1324  esac
1325fi
1326
1327# Check all directory arguments for consistency.
1328for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1329		datadir sysconfdir sharedstatedir localstatedir includedir \
1330		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1331		libdir localedir mandir
1332do
1333  eval ac_val=\$$ac_var
1334  # Remove trailing slashes.
1335  case $ac_val in
1336    */ )
1337      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1338      eval $ac_var=\$ac_val;;
1339  esac
1340  # Be sure to have absolute directory names.
1341  case $ac_val in
1342    [\\/$]* | ?:[\\/]* )  continue;;
1343    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1344  esac
1345  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1346done
1347
1348# There might be people who depend on the old broken behavior: `$host'
1349# used to hold the argument of --host etc.
1350# FIXME: To remove some day.
1351build=$build_alias
1352host=$host_alias
1353target=$target_alias
1354
1355# FIXME: To remove some day.
1356if test "x$host_alias" != x; then
1357  if test "x$build_alias" = x; then
1358    cross_compiling=maybe
1359    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1360    If a cross compiler is detected then cross compile mode will be used." >&2
1361  elif test "x$build_alias" != "x$host_alias"; then
1362    cross_compiling=yes
1363  fi
1364fi
1365
1366ac_tool_prefix=
1367test -n "$host_alias" && ac_tool_prefix=$host_alias-
1368
1369test "$silent" = yes && exec 6>/dev/null
1370
1371
1372ac_pwd=`pwd` && test -n "$ac_pwd" &&
1373ac_ls_di=`ls -di .` &&
1374ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1375  as_fn_error "working directory cannot be determined"
1376test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1377  as_fn_error "pwd does not report name of working directory"
1378
1379
1380# Find the source files, if location was not specified.
1381if test -z "$srcdir"; then
1382  ac_srcdir_defaulted=yes
1383  # Try the directory containing this script, then the parent directory.
1384  ac_confdir=`$as_dirname -- "$as_myself" ||
1385$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1386	 X"$as_myself" : 'X\(//\)[^/]' \| \
1387	 X"$as_myself" : 'X\(//\)$' \| \
1388	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1389$as_echo X"$as_myself" |
1390    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1391	    s//\1/
1392	    q
1393	  }
1394	  /^X\(\/\/\)[^/].*/{
1395	    s//\1/
1396	    q
1397	  }
1398	  /^X\(\/\/\)$/{
1399	    s//\1/
1400	    q
1401	  }
1402	  /^X\(\/\).*/{
1403	    s//\1/
1404	    q
1405	  }
1406	  s/.*/./; q'`
1407  srcdir=$ac_confdir
1408  if test ! -r "$srcdir/$ac_unique_file"; then
1409    srcdir=..
1410  fi
1411else
1412  ac_srcdir_defaulted=no
1413fi
1414if test ! -r "$srcdir/$ac_unique_file"; then
1415  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1416  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1417fi
1418ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1419ac_abs_confdir=`(
1420	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1421	pwd)`
1422# When building in place, set srcdir=.
1423if test "$ac_abs_confdir" = "$ac_pwd"; then
1424  srcdir=.
1425fi
1426# Remove unnecessary trailing slashes from srcdir.
1427# Double slashes in file names in object file debugging info
1428# mess up M-x gdb in Emacs.
1429case $srcdir in
1430*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1431esac
1432for ac_var in $ac_precious_vars; do
1433  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1434  eval ac_env_${ac_var}_value=\$${ac_var}
1435  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1436  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1437done
1438
1439#
1440# Report the --help message.
1441#
1442if test "$ac_init_help" = "long"; then
1443  # Omit some internal or obsolete options to make the list less imposing.
1444  # This message is too long to be a string in the A/UX 3.1 sh.
1445  cat <<_ACEOF
1446\`configure' configures open-vcdiff 0.8.3 to adapt to many kinds of systems.
1447
1448Usage: $0 [OPTION]... [VAR=VALUE]...
1449
1450To assign environment variables (e.g., CC, CFLAGS...), specify them as
1451VAR=VALUE.  See below for descriptions of some of the useful variables.
1452
1453Defaults for the options are specified in brackets.
1454
1455Configuration:
1456  -h, --help              display this help and exit
1457      --help=short        display options specific to this package
1458      --help=recursive    display the short help of all the included packages
1459  -V, --version           display version information and exit
1460  -q, --quiet, --silent   do not print \`checking...' messages
1461      --cache-file=FILE   cache test results in FILE [disabled]
1462  -C, --config-cache      alias for \`--cache-file=config.cache'
1463  -n, --no-create         do not create output files
1464      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1465
1466Installation directories:
1467  --prefix=PREFIX         install architecture-independent files in PREFIX
1468                          [$ac_default_prefix]
1469  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1470                          [PREFIX]
1471
1472By default, \`make install' will install all the files in
1473\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1474an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1475for instance \`--prefix=\$HOME'.
1476
1477For better control, use the options below.
1478
1479Fine tuning of the installation directories:
1480  --bindir=DIR            user executables [EPREFIX/bin]
1481  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1482  --libexecdir=DIR        program executables [EPREFIX/libexec]
1483  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1484  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1485  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1486  --libdir=DIR            object code libraries [EPREFIX/lib]
1487  --includedir=DIR        C header files [PREFIX/include]
1488  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1489  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1490  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1491  --infodir=DIR           info documentation [DATAROOTDIR/info]
1492  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1493  --mandir=DIR            man documentation [DATAROOTDIR/man]
1494  --docdir=DIR            documentation root [DATAROOTDIR/doc/open-vcdiff]
1495  --htmldir=DIR           html documentation [DOCDIR]
1496  --dvidir=DIR            dvi documentation [DOCDIR]
1497  --pdfdir=DIR            pdf documentation [DOCDIR]
1498  --psdir=DIR             ps documentation [DOCDIR]
1499_ACEOF
1500
1501  cat <<\_ACEOF
1502
1503Program names:
1504  --program-prefix=PREFIX            prepend PREFIX to installed program names
1505  --program-suffix=SUFFIX            append SUFFIX to installed program names
1506  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1507
1508System types:
1509  --build=BUILD     configure for building on BUILD [guessed]
1510  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1511_ACEOF
1512fi
1513
1514if test -n "$ac_init_help"; then
1515  case $ac_init_help in
1516     short | recursive ) echo "Configuration of open-vcdiff 0.8.3:";;
1517   esac
1518  cat <<\_ACEOF
1519
1520Optional Features:
1521  --disable-option-checking  ignore unrecognized --enable/--with options
1522  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1523  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1524  --disable-dependency-tracking  speeds up one-time build
1525  --enable-dependency-tracking   do not reject slow dependency extractors
1526  --enable-shared[=PKGS]  build shared libraries [default=yes]
1527  --enable-static[=PKGS]  build static libraries [default=yes]
1528  --enable-fast-install[=PKGS]
1529                          optimize for fast installation [default=yes]
1530  --disable-libtool-lock  avoid locking (might break parallel builds)
1531  --enable-namespace=FOO to define these Google
1532                             classes in the FOO namespace. --disable-namespace
1533                             to define them in the global namespace. Default
1534                             is to define them in namespace google.
1535
1536Optional Packages:
1537  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1538  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1539  --with-pic              try to use only PIC/non-PIC objects [default=use
1540                          both]
1541  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1542
1543Some influential environment variables:
1544  CC          C compiler command
1545  CFLAGS      C compiler flags
1546  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1547              nonstandard directory <lib dir>
1548  LIBS        libraries to pass to the linker, e.g. -l<library>
1549  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1550              you have headers in a nonstandard directory <include dir>
1551  CPP         C preprocessor
1552  CXX         C++ compiler command
1553  CXXFLAGS    C++ compiler flags
1554  CXXCPP      C++ preprocessor
1555
1556Use these variables to override the choices made by `configure' or to help
1557it to find libraries and programs with nonstandard names/locations.
1558
1559Report bugs to <opensource@google.com>.
1560_ACEOF
1561ac_status=$?
1562fi
1563
1564if test "$ac_init_help" = "recursive"; then
1565  # If there are subdirs, report their specific --help.
1566  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1567    test -d "$ac_dir" ||
1568      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1569      continue
1570    ac_builddir=.
1571
1572case "$ac_dir" in
1573.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574*)
1575  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1576  # A ".." for each directory in $ac_dir_suffix.
1577  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1578  case $ac_top_builddir_sub in
1579  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1581  esac ;;
1582esac
1583ac_abs_top_builddir=$ac_pwd
1584ac_abs_builddir=$ac_pwd$ac_dir_suffix
1585# for backward compatibility:
1586ac_top_builddir=$ac_top_build_prefix
1587
1588case $srcdir in
1589  .)  # We are building in place.
1590    ac_srcdir=.
1591    ac_top_srcdir=$ac_top_builddir_sub
1592    ac_abs_top_srcdir=$ac_pwd ;;
1593  [\\/]* | ?:[\\/]* )  # Absolute name.
1594    ac_srcdir=$srcdir$ac_dir_suffix;
1595    ac_top_srcdir=$srcdir
1596    ac_abs_top_srcdir=$srcdir ;;
1597  *) # Relative name.
1598    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1599    ac_top_srcdir=$ac_top_build_prefix$srcdir
1600    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1601esac
1602ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1603
1604    cd "$ac_dir" || { ac_status=$?; continue; }
1605    # Check for guested configure.
1606    if test -f "$ac_srcdir/configure.gnu"; then
1607      echo &&
1608      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1609    elif test -f "$ac_srcdir/configure"; then
1610      echo &&
1611      $SHELL "$ac_srcdir/configure" --help=recursive
1612    else
1613      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1614    fi || ac_status=$?
1615    cd "$ac_pwd" || { ac_status=$?; break; }
1616  done
1617fi
1618
1619test -n "$ac_init_help" && exit $ac_status
1620if $ac_init_version; then
1621  cat <<\_ACEOF
1622open-vcdiff configure 0.8.3
1623generated by GNU Autoconf 2.65
1624
1625Copyright (C) 2009 Free Software Foundation, Inc.
1626This configure script is free software; the Free Software Foundation
1627gives unlimited permission to copy, distribute and modify it.
1628_ACEOF
1629  exit
1630fi
1631
1632## ------------------------ ##
1633## Autoconf initialization. ##
1634## ------------------------ ##
1635
1636# ac_fn_c_try_compile LINENO
1637# --------------------------
1638# Try to compile conftest.$ac_ext, and return whether this succeeded.
1639ac_fn_c_try_compile ()
1640{
1641  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642  rm -f conftest.$ac_objext
1643  if { { ac_try="$ac_compile"
1644case "(($ac_try" in
1645  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646  *) ac_try_echo=$ac_try;;
1647esac
1648eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649$as_echo "$ac_try_echo"; } >&5
1650  (eval "$ac_compile") 2>conftest.err
1651  ac_status=$?
1652  if test -s conftest.err; then
1653    grep -v '^ *+' conftest.err >conftest.er1
1654    cat conftest.er1 >&5
1655    mv -f conftest.er1 conftest.err
1656  fi
1657  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658  test $ac_status = 0; } && {
1659	 test -z "$ac_c_werror_flag" ||
1660	 test ! -s conftest.err
1661       } && test -s conftest.$ac_objext; then :
1662  ac_retval=0
1663else
1664  $as_echo "$as_me: failed program was:" >&5
1665sed 's/^/| /' conftest.$ac_ext >&5
1666
1667	ac_retval=1
1668fi
1669  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1670  as_fn_set_status $ac_retval
1671
1672} # ac_fn_c_try_compile
1673
1674# ac_fn_c_try_cpp LINENO
1675# ----------------------
1676# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1677ac_fn_c_try_cpp ()
1678{
1679  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680  if { { ac_try="$ac_cpp conftest.$ac_ext"
1681case "(($ac_try" in
1682  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683  *) ac_try_echo=$ac_try;;
1684esac
1685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686$as_echo "$ac_try_echo"; } >&5
1687  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1688  ac_status=$?
1689  if test -s conftest.err; then
1690    grep -v '^ *+' conftest.err >conftest.er1
1691    cat conftest.er1 >&5
1692    mv -f conftest.er1 conftest.err
1693  fi
1694  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695  test $ac_status = 0; } >/dev/null && {
1696	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1697	 test ! -s conftest.err
1698       }; then :
1699  ac_retval=0
1700else
1701  $as_echo "$as_me: failed program was:" >&5
1702sed 's/^/| /' conftest.$ac_ext >&5
1703
1704    ac_retval=1
1705fi
1706  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1707  as_fn_set_status $ac_retval
1708
1709} # ac_fn_c_try_cpp
1710
1711# ac_fn_cxx_try_compile LINENO
1712# ----------------------------
1713# Try to compile conftest.$ac_ext, and return whether this succeeded.
1714ac_fn_cxx_try_compile ()
1715{
1716  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717  rm -f conftest.$ac_objext
1718  if { { ac_try="$ac_compile"
1719case "(($ac_try" in
1720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721  *) ac_try_echo=$ac_try;;
1722esac
1723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724$as_echo "$ac_try_echo"; } >&5
1725  (eval "$ac_compile") 2>conftest.err
1726  ac_status=$?
1727  if test -s conftest.err; then
1728    grep -v '^ *+' conftest.err >conftest.er1
1729    cat conftest.er1 >&5
1730    mv -f conftest.er1 conftest.err
1731  fi
1732  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733  test $ac_status = 0; } && {
1734	 test -z "$ac_cxx_werror_flag" ||
1735	 test ! -s conftest.err
1736       } && test -s conftest.$ac_objext; then :
1737  ac_retval=0
1738else
1739  $as_echo "$as_me: failed program was:" >&5
1740sed 's/^/| /' conftest.$ac_ext >&5
1741
1742	ac_retval=1
1743fi
1744  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1745  as_fn_set_status $ac_retval
1746
1747} # ac_fn_cxx_try_compile
1748
1749# ac_fn_c_try_link LINENO
1750# -----------------------
1751# Try to link conftest.$ac_ext, and return whether this succeeded.
1752ac_fn_c_try_link ()
1753{
1754  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755  rm -f conftest.$ac_objext conftest$ac_exeext
1756  if { { ac_try="$ac_link"
1757case "(($ac_try" in
1758  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759  *) ac_try_echo=$ac_try;;
1760esac
1761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762$as_echo "$ac_try_echo"; } >&5
1763  (eval "$ac_link") 2>conftest.err
1764  ac_status=$?
1765  if test -s conftest.err; then
1766    grep -v '^ *+' conftest.err >conftest.er1
1767    cat conftest.er1 >&5
1768    mv -f conftest.er1 conftest.err
1769  fi
1770  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771  test $ac_status = 0; } && {
1772	 test -z "$ac_c_werror_flag" ||
1773	 test ! -s conftest.err
1774       } && test -s conftest$ac_exeext && {
1775	 test "$cross_compiling" = yes ||
1776	 $as_test_x conftest$ac_exeext
1777       }; then :
1778  ac_retval=0
1779else
1780  $as_echo "$as_me: failed program was:" >&5
1781sed 's/^/| /' conftest.$ac_ext >&5
1782
1783	ac_retval=1
1784fi
1785  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1786  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1787  # interfere with the next link command; also delete a directory that is
1788  # left behind by Apple's compiler.  We do this before executing the actions.
1789  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1790  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1791  as_fn_set_status $ac_retval
1792
1793} # ac_fn_c_try_link
1794
1795# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1796# -------------------------------------------------------
1797# Tests whether HEADER exists and can be compiled using the include files in
1798# INCLUDES, setting the cache variable VAR accordingly.
1799ac_fn_c_check_header_compile ()
1800{
1801  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1803$as_echo_n "checking for $2... " >&6; }
1804if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1805  $as_echo_n "(cached) " >&6
1806else
1807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1808/* end confdefs.h.  */
1809$4
1810#include <$2>
1811_ACEOF
1812if ac_fn_c_try_compile "$LINENO"; then :
1813  eval "$3=yes"
1814else
1815  eval "$3=no"
1816fi
1817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1818fi
1819eval ac_res=\$$3
1820	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1821$as_echo "$ac_res" >&6; }
1822  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1823
1824} # ac_fn_c_check_header_compile
1825
1826# ac_fn_c_try_run LINENO
1827# ----------------------
1828# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1829# that executables *can* be run.
1830ac_fn_c_try_run ()
1831{
1832  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833  if { { ac_try="$ac_link"
1834case "(($ac_try" in
1835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836  *) ac_try_echo=$ac_try;;
1837esac
1838eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839$as_echo "$ac_try_echo"; } >&5
1840  (eval "$ac_link") 2>&5
1841  ac_status=$?
1842  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1844  { { case "(($ac_try" in
1845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846  *) ac_try_echo=$ac_try;;
1847esac
1848eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849$as_echo "$ac_try_echo"; } >&5
1850  (eval "$ac_try") 2>&5
1851  ac_status=$?
1852  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853  test $ac_status = 0; }; }; then :
1854  ac_retval=0
1855else
1856  $as_echo "$as_me: program exited with status $ac_status" >&5
1857       $as_echo "$as_me: failed program was:" >&5
1858sed 's/^/| /' conftest.$ac_ext >&5
1859
1860       ac_retval=$ac_status
1861fi
1862  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1863  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1864  as_fn_set_status $ac_retval
1865
1866} # ac_fn_c_try_run
1867
1868# ac_fn_c_check_func LINENO FUNC VAR
1869# ----------------------------------
1870# Tests whether FUNC exists, setting the cache variable VAR accordingly
1871ac_fn_c_check_func ()
1872{
1873  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1875$as_echo_n "checking for $2... " >&6; }
1876if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1877  $as_echo_n "(cached) " >&6
1878else
1879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880/* end confdefs.h.  */
1881/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1882   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1883#define $2 innocuous_$2
1884
1885/* System header to define __stub macros and hopefully few prototypes,
1886    which can conflict with char $2 (); below.
1887    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1888    <limits.h> exists even on freestanding compilers.  */
1889
1890#ifdef __STDC__
1891# include <limits.h>
1892#else
1893# include <assert.h>
1894#endif
1895
1896#undef $2
1897
1898/* Override any GCC internal prototype to avoid an error.
1899   Use char because int might match the return type of a GCC
1900   builtin and then its argument prototype would still apply.  */
1901#ifdef __cplusplus
1902extern "C"
1903#endif
1904char $2 ();
1905/* The GNU C library defines this for functions which it implements
1906    to always fail with ENOSYS.  Some functions are actually named
1907    something starting with __ and the normal name is an alias.  */
1908#if defined __stub_$2 || defined __stub___$2
1909choke me
1910#endif
1911
1912int
1913main ()
1914{
1915return $2 ();
1916  ;
1917  return 0;
1918}
1919_ACEOF
1920if ac_fn_c_try_link "$LINENO"; then :
1921  eval "$3=yes"
1922else
1923  eval "$3=no"
1924fi
1925rm -f core conftest.err conftest.$ac_objext \
1926    conftest$ac_exeext conftest.$ac_ext
1927fi
1928eval ac_res=\$$3
1929	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930$as_echo "$ac_res" >&6; }
1931  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1932
1933} # ac_fn_c_check_func
1934
1935# ac_fn_cxx_try_cpp LINENO
1936# ------------------------
1937# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1938ac_fn_cxx_try_cpp ()
1939{
1940  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941  if { { ac_try="$ac_cpp conftest.$ac_ext"
1942case "(($ac_try" in
1943  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1944  *) ac_try_echo=$ac_try;;
1945esac
1946eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1947$as_echo "$ac_try_echo"; } >&5
1948  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1949  ac_status=$?
1950  if test -s conftest.err; then
1951    grep -v '^ *+' conftest.err >conftest.er1
1952    cat conftest.er1 >&5
1953    mv -f conftest.er1 conftest.err
1954  fi
1955  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1956  test $ac_status = 0; } >/dev/null && {
1957	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1958	 test ! -s conftest.err
1959       }; then :
1960  ac_retval=0
1961else
1962  $as_echo "$as_me: failed program was:" >&5
1963sed 's/^/| /' conftest.$ac_ext >&5
1964
1965    ac_retval=1
1966fi
1967  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1968  as_fn_set_status $ac_retval
1969
1970} # ac_fn_cxx_try_cpp
1971
1972# ac_fn_cxx_try_link LINENO
1973# -------------------------
1974# Try to link conftest.$ac_ext, and return whether this succeeded.
1975ac_fn_cxx_try_link ()
1976{
1977  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1978  rm -f conftest.$ac_objext conftest$ac_exeext
1979  if { { ac_try="$ac_link"
1980case "(($ac_try" in
1981  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1982  *) ac_try_echo=$ac_try;;
1983esac
1984eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1985$as_echo "$ac_try_echo"; } >&5
1986  (eval "$ac_link") 2>conftest.err
1987  ac_status=$?
1988  if test -s conftest.err; then
1989    grep -v '^ *+' conftest.err >conftest.er1
1990    cat conftest.er1 >&5
1991    mv -f conftest.er1 conftest.err
1992  fi
1993  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1994  test $ac_status = 0; } && {
1995	 test -z "$ac_cxx_werror_flag" ||
1996	 test ! -s conftest.err
1997       } && test -s conftest$ac_exeext && {
1998	 test "$cross_compiling" = yes ||
1999	 $as_test_x conftest$ac_exeext
2000       }; then :
2001  ac_retval=0
2002else
2003  $as_echo "$as_me: failed program was:" >&5
2004sed 's/^/| /' conftest.$ac_ext >&5
2005
2006	ac_retval=1
2007fi
2008  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2009  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2010  # interfere with the next link command; also delete a directory that is
2011  # left behind by Apple's compiler.  We do this before executing the actions.
2012  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2013  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2014  as_fn_set_status $ac_retval
2015
2016} # ac_fn_cxx_try_link
2017
2018# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2019# -------------------------------------------------------
2020# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2021# the include files in INCLUDES and setting the cache variable VAR
2022# accordingly.
2023ac_fn_c_check_header_mongrel ()
2024{
2025  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2026  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2027  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2028$as_echo_n "checking for $2... " >&6; }
2029if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2030  $as_echo_n "(cached) " >&6
2031fi
2032eval ac_res=\$$3
2033	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2034$as_echo "$ac_res" >&6; }
2035else
2036  # Is the header compilable?
2037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2038$as_echo_n "checking $2 usability... " >&6; }
2039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040/* end confdefs.h.  */
2041$4
2042#include <$2>
2043_ACEOF
2044if ac_fn_c_try_compile "$LINENO"; then :
2045  ac_header_compiler=yes
2046else
2047  ac_header_compiler=no
2048fi
2049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2051$as_echo "$ac_header_compiler" >&6; }
2052
2053# Is the header present?
2054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2055$as_echo_n "checking $2 presence... " >&6; }
2056cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057/* end confdefs.h.  */
2058#include <$2>
2059_ACEOF
2060if ac_fn_c_try_cpp "$LINENO"; then :
2061  ac_header_preproc=yes
2062else
2063  ac_header_preproc=no
2064fi
2065rm -f conftest.err conftest.$ac_ext
2066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2067$as_echo "$ac_header_preproc" >&6; }
2068
2069# So?  What about this header?
2070case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2071  yes:no: )
2072    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2073$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2074    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2075$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2076    ;;
2077  no:yes:* )
2078    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2079$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2080    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2081$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2082    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2083$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2084    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2085$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2086    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2087$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2088( cat <<\_ASBOX
2089## ------------------------------------ ##
2090## Report this to opensource@google.com ##
2091## ------------------------------------ ##
2092_ASBOX
2093     ) | sed "s/^/$as_me: WARNING:     /" >&2
2094    ;;
2095esac
2096  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2097$as_echo_n "checking for $2... " >&6; }
2098if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2099  $as_echo_n "(cached) " >&6
2100else
2101  eval "$3=\$ac_header_compiler"
2102fi
2103eval ac_res=\$$3
2104	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2105$as_echo "$ac_res" >&6; }
2106fi
2107  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2108
2109} # ac_fn_c_check_header_mongrel
2110
2111# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2112# -------------------------------------------
2113# Tests whether TYPE exists after having included INCLUDES, setting cache
2114# variable VAR accordingly.
2115ac_fn_c_check_type ()
2116{
2117  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2118  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2119$as_echo_n "checking for $2... " >&6; }
2120if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2121  $as_echo_n "(cached) " >&6
2122else
2123  eval "$3=no"
2124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125/* end confdefs.h.  */
2126$4
2127int
2128main ()
2129{
2130if (sizeof ($2))
2131	 return 0;
2132  ;
2133  return 0;
2134}
2135_ACEOF
2136if ac_fn_c_try_compile "$LINENO"; then :
2137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138/* end confdefs.h.  */
2139$4
2140int
2141main ()
2142{
2143if (sizeof (($2)))
2144	    return 0;
2145  ;
2146  return 0;
2147}
2148_ACEOF
2149if ac_fn_c_try_compile "$LINENO"; then :
2150
2151else
2152  eval "$3=yes"
2153fi
2154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2155fi
2156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2157fi
2158eval ac_res=\$$3
2159	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2160$as_echo "$ac_res" >&6; }
2161  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2162
2163} # ac_fn_c_check_type
2164cat >config.log <<_ACEOF
2165This file contains any messages produced by compilers while
2166running configure, to aid debugging if configure makes a mistake.
2167
2168It was created by open-vcdiff $as_me 0.8.3, which was
2169generated by GNU Autoconf 2.65.  Invocation command line was
2170
2171  $ $0 $@
2172
2173_ACEOF
2174exec 5>>config.log
2175{
2176cat <<_ASUNAME
2177## --------- ##
2178## Platform. ##
2179## --------- ##
2180
2181hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2182uname -m = `(uname -m) 2>/dev/null || echo unknown`
2183uname -r = `(uname -r) 2>/dev/null || echo unknown`
2184uname -s = `(uname -s) 2>/dev/null || echo unknown`
2185uname -v = `(uname -v) 2>/dev/null || echo unknown`
2186
2187/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2188/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2189
2190/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2191/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2192/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2193/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2194/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2195/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2196/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2197
2198_ASUNAME
2199
2200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2201for as_dir in $PATH
2202do
2203  IFS=$as_save_IFS
2204  test -z "$as_dir" && as_dir=.
2205    $as_echo "PATH: $as_dir"
2206  done
2207IFS=$as_save_IFS
2208
2209} >&5
2210
2211cat >&5 <<_ACEOF
2212
2213
2214## ----------- ##
2215## Core tests. ##
2216## ----------- ##
2217
2218_ACEOF
2219
2220
2221# Keep a trace of the command line.
2222# Strip out --no-create and --no-recursion so they do not pile up.
2223# Strip out --silent because we don't want to record it for future runs.
2224# Also quote any args containing shell meta-characters.
2225# Make two passes to allow for proper duplicate-argument suppression.
2226ac_configure_args=
2227ac_configure_args0=
2228ac_configure_args1=
2229ac_must_keep_next=false
2230for ac_pass in 1 2
2231do
2232  for ac_arg
2233  do
2234    case $ac_arg in
2235    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2236    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2237    | -silent | --silent | --silen | --sile | --sil)
2238      continue ;;
2239    *\'*)
2240      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2241    esac
2242    case $ac_pass in
2243    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2244    2)
2245      as_fn_append ac_configure_args1 " '$ac_arg'"
2246      if test $ac_must_keep_next = true; then
2247	ac_must_keep_next=false # Got value, back to normal.
2248      else
2249	case $ac_arg in
2250	  *=* | --config-cache | -C | -disable-* | --disable-* \
2251	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2252	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2253	  | -with-* | --with-* | -without-* | --without-* | --x)
2254	    case "$ac_configure_args0 " in
2255	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2256	    esac
2257	    ;;
2258	  -* ) ac_must_keep_next=true ;;
2259	esac
2260      fi
2261      as_fn_append ac_configure_args " '$ac_arg'"
2262      ;;
2263    esac
2264  done
2265done
2266{ ac_configure_args0=; unset ac_configure_args0;}
2267{ ac_configure_args1=; unset ac_configure_args1;}
2268
2269# When interrupted or exit'd, cleanup temporary files, and complete
2270# config.log.  We remove comments because anyway the quotes in there
2271# would cause problems or look ugly.
2272# WARNING: Use '\'' to represent an apostrophe within the trap.
2273# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2274trap 'exit_status=$?
2275  # Save into config.log some information that might help in debugging.
2276  {
2277    echo
2278
2279    cat <<\_ASBOX
2280## ---------------- ##
2281## Cache variables. ##
2282## ---------------- ##
2283_ASBOX
2284    echo
2285    # The following way of writing the cache mishandles newlines in values,
2286(
2287  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2288    eval ac_val=\$$ac_var
2289    case $ac_val in #(
2290    *${as_nl}*)
2291      case $ac_var in #(
2292      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2293$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2294      esac
2295      case $ac_var in #(
2296      _ | IFS | as_nl) ;; #(
2297      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2298      *) { eval $ac_var=; unset $ac_var;} ;;
2299      esac ;;
2300    esac
2301  done
2302  (set) 2>&1 |
2303    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2304    *${as_nl}ac_space=\ *)
2305      sed -n \
2306	"s/'\''/'\''\\\\'\'''\''/g;
2307	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2308      ;; #(
2309    *)
2310      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2311      ;;
2312    esac |
2313    sort
2314)
2315    echo
2316
2317    cat <<\_ASBOX
2318## ----------------- ##
2319## Output variables. ##
2320## ----------------- ##
2321_ASBOX
2322    echo
2323    for ac_var in $ac_subst_vars
2324    do
2325      eval ac_val=\$$ac_var
2326      case $ac_val in
2327      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2328      esac
2329      $as_echo "$ac_var='\''$ac_val'\''"
2330    done | sort
2331    echo
2332
2333    if test -n "$ac_subst_files"; then
2334      cat <<\_ASBOX
2335## ------------------- ##
2336## File substitutions. ##
2337## ------------------- ##
2338_ASBOX
2339      echo
2340      for ac_var in $ac_subst_files
2341      do
2342	eval ac_val=\$$ac_var
2343	case $ac_val in
2344	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2345	esac
2346	$as_echo "$ac_var='\''$ac_val'\''"
2347      done | sort
2348      echo
2349    fi
2350
2351    if test -s confdefs.h; then
2352      cat <<\_ASBOX
2353## ----------- ##
2354## confdefs.h. ##
2355## ----------- ##
2356_ASBOX
2357      echo
2358      cat confdefs.h
2359      echo
2360    fi
2361    test "$ac_signal" != 0 &&
2362      $as_echo "$as_me: caught signal $ac_signal"
2363    $as_echo "$as_me: exit $exit_status"
2364  } >&5
2365  rm -f core *.core core.conftest.* &&
2366    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2367    exit $exit_status
2368' 0
2369for ac_signal in 1 2 13 15; do
2370  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2371done
2372ac_signal=0
2373
2374# confdefs.h avoids OS command line length limits that DEFS can exceed.
2375rm -f -r conftest* confdefs.h
2376
2377$as_echo "/* confdefs.h */" > confdefs.h
2378
2379# Predefined preprocessor variables.
2380
2381cat >>confdefs.h <<_ACEOF
2382#define PACKAGE_NAME "$PACKAGE_NAME"
2383_ACEOF
2384
2385cat >>confdefs.h <<_ACEOF
2386#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2387_ACEOF
2388
2389cat >>confdefs.h <<_ACEOF
2390#define PACKAGE_VERSION "$PACKAGE_VERSION"
2391_ACEOF
2392
2393cat >>confdefs.h <<_ACEOF
2394#define PACKAGE_STRING "$PACKAGE_STRING"
2395_ACEOF
2396
2397cat >>confdefs.h <<_ACEOF
2398#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2399_ACEOF
2400
2401cat >>confdefs.h <<_ACEOF
2402#define PACKAGE_URL "$PACKAGE_URL"
2403_ACEOF
2404
2405
2406# Let the site file select an alternate cache file if it wants to.
2407# Prefer an explicitly selected file to automatically selected ones.
2408ac_site_file1=NONE
2409ac_site_file2=NONE
2410if test -n "$CONFIG_SITE"; then
2411  ac_site_file1=$CONFIG_SITE
2412elif test "x$prefix" != xNONE; then
2413  ac_site_file1=$prefix/share/config.site
2414  ac_site_file2=$prefix/etc/config.site
2415else
2416  ac_site_file1=$ac_default_prefix/share/config.site
2417  ac_site_file2=$ac_default_prefix/etc/config.site
2418fi
2419for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2420do
2421  test "x$ac_site_file" = xNONE && continue
2422  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2423    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2424$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2425    sed 's/^/| /' "$ac_site_file" >&5
2426    . "$ac_site_file"
2427  fi
2428done
2429
2430if test -r "$cache_file"; then
2431  # Some versions of bash will fail to source /dev/null (special files
2432  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2433  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2434    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2435$as_echo "$as_me: loading cache $cache_file" >&6;}
2436    case $cache_file in
2437      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2438      *)                      . "./$cache_file";;
2439    esac
2440  fi
2441else
2442  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2443$as_echo "$as_me: creating cache $cache_file" >&6;}
2444  >$cache_file
2445fi
2446
2447# Check that the precious variables saved in the cache have kept the same
2448# value.
2449ac_cache_corrupted=false
2450for ac_var in $ac_precious_vars; do
2451  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2452  eval ac_new_set=\$ac_env_${ac_var}_set
2453  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2454  eval ac_new_val=\$ac_env_${ac_var}_value
2455  case $ac_old_set,$ac_new_set in
2456    set,)
2457      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2458$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2459      ac_cache_corrupted=: ;;
2460    ,set)
2461      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2462$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2463      ac_cache_corrupted=: ;;
2464    ,);;
2465    *)
2466      if test "x$ac_old_val" != "x$ac_new_val"; then
2467	# differences in whitespace do not lead to failure.
2468	ac_old_val_w=`echo x $ac_old_val`
2469	ac_new_val_w=`echo x $ac_new_val`
2470	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2471	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2472$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2473	  ac_cache_corrupted=:
2474	else
2475	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2476$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2477	  eval $ac_var=\$ac_old_val
2478	fi
2479	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2480$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2481	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2482$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2483      fi;;
2484  esac
2485  # Pass precious variables to config.status.
2486  if test "$ac_new_set" = set; then
2487    case $ac_new_val in
2488    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2489    *) ac_arg=$ac_var=$ac_new_val ;;
2490    esac
2491    case " $ac_configure_args " in
2492      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2493      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2494    esac
2495  fi
2496done
2497if $ac_cache_corrupted; then
2498  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2499$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2500  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2501$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2502  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2503fi
2504## -------------------- ##
2505## Main body of script. ##
2506## -------------------- ##
2507
2508ac_ext=c
2509ac_cpp='$CPP $CPPFLAGS'
2510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2512ac_compiler_gnu=$ac_cv_c_compiler_gnu
2513
2514
2515
2516
2517am__api_version='1.11'
2518
2519ac_aux_dir=
2520for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2521  for ac_t in install-sh install.sh shtool; do
2522    if test -f "$ac_dir/$ac_t"; then
2523      ac_aux_dir=$ac_dir
2524      ac_install_sh="$ac_aux_dir/$ac_t -c"
2525      break 2
2526    fi
2527  done
2528done
2529if test -z "$ac_aux_dir"; then
2530  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2531fi
2532
2533# These three variables are undocumented and unsupported,
2534# and are intended to be withdrawn in a future Autoconf release.
2535# They can cause serious problems if a builder's source tree is in a directory
2536# whose full name contains unusual characters.
2537ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2538ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2539ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2540
2541
2542# Find a good install program.  We prefer a C program (faster),
2543# so one script is as good as another.  But avoid the broken or
2544# incompatible versions:
2545# SysV /etc/install, /usr/sbin/install
2546# SunOS /usr/etc/install
2547# IRIX /sbin/install
2548# AIX /bin/install
2549# AmigaOS /C/install, which installs bootblocks on floppy discs
2550# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2551# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2552# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2553# OS/2's system install, which has a completely different semantic
2554# ./install, which can be erroneously created by make from ./install.sh.
2555# Reject install programs that cannot install multiple files.
2556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2557$as_echo_n "checking for a BSD-compatible install... " >&6; }
2558if test -z "$INSTALL"; then
2559if test "${ac_cv_path_install+set}" = set; then :
2560  $as_echo_n "(cached) " >&6
2561else
2562  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563for as_dir in $PATH
2564do
2565  IFS=$as_save_IFS
2566  test -z "$as_dir" && as_dir=.
2567    # Account for people who put trailing slashes in PATH elements.
2568case $as_dir/ in #((
2569  ./ | .// | /[cC]/* | \
2570  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2571  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2572  /usr/ucb/* ) ;;
2573  *)
2574    # OSF1 and SCO ODT 3.0 have their own names for install.
2575    # Don't use installbsd from OSF since it installs stuff as root
2576    # by default.
2577    for ac_prog in ginstall scoinst install; do
2578      for ac_exec_ext in '' $ac_executable_extensions; do
2579	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2580	  if test $ac_prog = install &&
2581	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2582	    # AIX install.  It has an incompatible calling convention.
2583	    :
2584	  elif test $ac_prog = install &&
2585	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2586	    # program-specific install script used by HP pwplus--don't use.
2587	    :
2588	  else
2589	    rm -rf conftest.one conftest.two conftest.dir
2590	    echo one > conftest.one
2591	    echo two > conftest.two
2592	    mkdir conftest.dir
2593	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2594	      test -s conftest.one && test -s conftest.two &&
2595	      test -s conftest.dir/conftest.one &&
2596	      test -s conftest.dir/conftest.two
2597	    then
2598	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2599	      break 3
2600	    fi
2601	  fi
2602	fi
2603      done
2604    done
2605    ;;
2606esac
2607
2608  done
2609IFS=$as_save_IFS
2610
2611rm -rf conftest.one conftest.two conftest.dir
2612
2613fi
2614  if test "${ac_cv_path_install+set}" = set; then
2615    INSTALL=$ac_cv_path_install
2616  else
2617    # As a last resort, use the slow shell script.  Don't cache a
2618    # value for INSTALL within a source directory, because that will
2619    # break other packages using the cache if that directory is
2620    # removed, or if the value is a relative name.
2621    INSTALL=$ac_install_sh
2622  fi
2623fi
2624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2625$as_echo "$INSTALL" >&6; }
2626
2627# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2628# It thinks the first close brace ends the variable substitution.
2629test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2630
2631test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2632
2633test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2634
2635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2636$as_echo_n "checking whether build environment is sane... " >&6; }
2637# Just in case
2638sleep 1
2639echo timestamp > conftest.file
2640# Reject unsafe characters in $srcdir or the absolute working directory
2641# name.  Accept space and tab only in the latter.
2642am_lf='
2643'
2644case `pwd` in
2645  *[\\\"\#\$\&\'\`$am_lf]*)
2646    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2647esac
2648case $srcdir in
2649  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2650    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2651esac
2652
2653# Do `set' in a subshell so we don't clobber the current shell's
2654# arguments.  Must try -L first in case configure is actually a
2655# symlink; some systems play weird games with the mod time of symlinks
2656# (eg FreeBSD returns the mod time of the symlink's containing
2657# directory).
2658if (
2659   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2660   if test "$*" = "X"; then
2661      # -L didn't work.
2662      set X `ls -t "$srcdir/configure" conftest.file`
2663   fi
2664   rm -f conftest.file
2665   if test "$*" != "X $srcdir/configure conftest.file" \
2666      && test "$*" != "X conftest.file $srcdir/configure"; then
2667
2668      # If neither matched, then we have a broken ls.  This can happen
2669      # if, for instance, CONFIG_SHELL is bash and it inherits a
2670      # broken ls alias from the environment.  This has actually
2671      # happened.  Such a system could not be considered "sane".
2672      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2673alias in your environment" "$LINENO" 5
2674   fi
2675
2676   test "$2" = conftest.file
2677   )
2678then
2679   # Ok.
2680   :
2681else
2682   as_fn_error "newly created file is older than distributed files!
2683Check your system clock" "$LINENO" 5
2684fi
2685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2686$as_echo "yes" >&6; }
2687test "$program_prefix" != NONE &&
2688  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2689# Use a double $ so make ignores it.
2690test "$program_suffix" != NONE &&
2691  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2692# Double any \ or $.
2693# By default was `s,x,x', remove it if useless.
2694ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2695program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2696
2697# expand $ac_aux_dir to an absolute path
2698am_aux_dir=`cd $ac_aux_dir && pwd`
2699
2700if test x"${MISSING+set}" != xset; then
2701  case $am_aux_dir in
2702  *\ * | *\	*)
2703    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2704  *)
2705    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2706  esac
2707fi
2708# Use eval to expand $SHELL
2709if eval "$MISSING --run true"; then
2710  am_missing_run="$MISSING --run "
2711else
2712  am_missing_run=
2713  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2714$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2715fi
2716
2717if test x"${install_sh}" != xset; then
2718  case $am_aux_dir in
2719  *\ * | *\	*)
2720    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2721  *)
2722    install_sh="\${SHELL} $am_aux_dir/install-sh"
2723  esac
2724fi
2725
2726# Installed binaries are usually stripped using `strip' when the user
2727# run `make install-strip'.  However `strip' might not be the right
2728# tool to use in cross-compilation environments, therefore Automake
2729# will honor the `STRIP' environment variable to overrule this program.
2730if test "$cross_compiling" != no; then
2731  if test -n "$ac_tool_prefix"; then
2732  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2733set dummy ${ac_tool_prefix}strip; ac_word=$2
2734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2735$as_echo_n "checking for $ac_word... " >&6; }
2736if test "${ac_cv_prog_STRIP+set}" = set; then :
2737  $as_echo_n "(cached) " >&6
2738else
2739  if test -n "$STRIP"; then
2740  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2741else
2742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743for as_dir in $PATH
2744do
2745  IFS=$as_save_IFS
2746  test -z "$as_dir" && as_dir=.
2747    for ac_exec_ext in '' $ac_executable_extensions; do
2748  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2749    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2750    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2751    break 2
2752  fi
2753done
2754  done
2755IFS=$as_save_IFS
2756
2757fi
2758fi
2759STRIP=$ac_cv_prog_STRIP
2760if test -n "$STRIP"; then
2761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2762$as_echo "$STRIP" >&6; }
2763else
2764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765$as_echo "no" >&6; }
2766fi
2767
2768
2769fi
2770if test -z "$ac_cv_prog_STRIP"; then
2771  ac_ct_STRIP=$STRIP
2772  # Extract the first word of "strip", so it can be a program name with args.
2773set dummy strip; ac_word=$2
2774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2775$as_echo_n "checking for $ac_word... " >&6; }
2776if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2777  $as_echo_n "(cached) " >&6
2778else
2779  if test -n "$ac_ct_STRIP"; then
2780  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2781else
2782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783for as_dir in $PATH
2784do
2785  IFS=$as_save_IFS
2786  test -z "$as_dir" && as_dir=.
2787    for ac_exec_ext in '' $ac_executable_extensions; do
2788  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2789    ac_cv_prog_ac_ct_STRIP="strip"
2790    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2791    break 2
2792  fi
2793done
2794  done
2795IFS=$as_save_IFS
2796
2797fi
2798fi
2799ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2800if test -n "$ac_ct_STRIP"; then
2801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2802$as_echo "$ac_ct_STRIP" >&6; }
2803else
2804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2805$as_echo "no" >&6; }
2806fi
2807
2808  if test "x$ac_ct_STRIP" = x; then
2809    STRIP=":"
2810  else
2811    case $cross_compiling:$ac_tool_warned in
2812yes:)
2813{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2814$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2815ac_tool_warned=yes ;;
2816esac
2817    STRIP=$ac_ct_STRIP
2818  fi
2819else
2820  STRIP="$ac_cv_prog_STRIP"
2821fi
2822
2823fi
2824INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2825
2826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2827$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2828if test -z "$MKDIR_P"; then
2829  if test "${ac_cv_path_mkdir+set}" = set; then :
2830  $as_echo_n "(cached) " >&6
2831else
2832  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2834do
2835  IFS=$as_save_IFS
2836  test -z "$as_dir" && as_dir=.
2837    for ac_prog in mkdir gmkdir; do
2838	 for ac_exec_ext in '' $ac_executable_extensions; do
2839	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2840	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2841	     'mkdir (GNU coreutils) '* | \
2842	     'mkdir (coreutils) '* | \
2843	     'mkdir (fileutils) '4.1*)
2844	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2845	       break 3;;
2846	   esac
2847	 done
2848       done
2849  done
2850IFS=$as_save_IFS
2851
2852fi
2853
2854  test -d ./--version && rmdir ./--version
2855  if test "${ac_cv_path_mkdir+set}" = set; then
2856    MKDIR_P="$ac_cv_path_mkdir -p"
2857  else
2858    # As a last resort, use the slow shell script.  Don't cache a
2859    # value for MKDIR_P within a source directory, because that will
2860    # break other packages using the cache if that directory is
2861    # removed, or if the value is a relative name.
2862    MKDIR_P="$ac_install_sh -d"
2863  fi
2864fi
2865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2866$as_echo "$MKDIR_P" >&6; }
2867
2868mkdir_p="$MKDIR_P"
2869case $mkdir_p in
2870  [\\/$]* | ?:[\\/]*) ;;
2871  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2872esac
2873
2874for ac_prog in gawk mawk nawk awk
2875do
2876  # Extract the first word of "$ac_prog", so it can be a program name with args.
2877set dummy $ac_prog; ac_word=$2
2878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2879$as_echo_n "checking for $ac_word... " >&6; }
2880if test "${ac_cv_prog_AWK+set}" = set; then :
2881  $as_echo_n "(cached) " >&6
2882else
2883  if test -n "$AWK"; then
2884  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2885else
2886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887for as_dir in $PATH
2888do
2889  IFS=$as_save_IFS
2890  test -z "$as_dir" && as_dir=.
2891    for ac_exec_ext in '' $ac_executable_extensions; do
2892  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2893    ac_cv_prog_AWK="$ac_prog"
2894    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2895    break 2
2896  fi
2897done
2898  done
2899IFS=$as_save_IFS
2900
2901fi
2902fi
2903AWK=$ac_cv_prog_AWK
2904if test -n "$AWK"; then
2905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2906$as_echo "$AWK" >&6; }
2907else
2908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2909$as_echo "no" >&6; }
2910fi
2911
2912
2913  test -n "$AWK" && break
2914done
2915
2916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2917$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2918set x ${MAKE-make}
2919ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2920if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2921  $as_echo_n "(cached) " >&6
2922else
2923  cat >conftest.make <<\_ACEOF
2924SHELL = /bin/sh
2925all:
2926	@echo '@@@%%%=$(MAKE)=@@@%%%'
2927_ACEOF
2928# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2929case `${MAKE-make} -f conftest.make 2>/dev/null` in
2930  *@@@%%%=?*=@@@%%%*)
2931    eval ac_cv_prog_make_${ac_make}_set=yes;;
2932  *)
2933    eval ac_cv_prog_make_${ac_make}_set=no;;
2934esac
2935rm -f conftest.make
2936fi
2937if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2939$as_echo "yes" >&6; }
2940  SET_MAKE=
2941else
2942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943$as_echo "no" >&6; }
2944  SET_MAKE="MAKE=${MAKE-make}"
2945fi
2946
2947rm -rf .tst 2>/dev/null
2948mkdir .tst 2>/dev/null
2949if test -d .tst; then
2950  am__leading_dot=.
2951else
2952  am__leading_dot=_
2953fi
2954rmdir .tst 2>/dev/null
2955
2956if test "`cd $srcdir && pwd`" != "`pwd`"; then
2957  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2958  # is not polluted with repeated "-I."
2959  am__isrc=' -I$(srcdir)'
2960  # test to see if srcdir already configured
2961  if test -f $srcdir/config.status; then
2962    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2963  fi
2964fi
2965
2966# test whether we have cygpath
2967if test -z "$CYGPATH_W"; then
2968  if (cygpath --version) >/dev/null 2>/dev/null; then
2969    CYGPATH_W='cygpath -w'
2970  else
2971    CYGPATH_W=echo
2972  fi
2973fi
2974
2975
2976# Define the identity of the package.
2977 PACKAGE='open-vcdiff'
2978 VERSION='0.8.3'
2979
2980
2981cat >>confdefs.h <<_ACEOF
2982#define PACKAGE "$PACKAGE"
2983_ACEOF
2984
2985
2986cat >>confdefs.h <<_ACEOF
2987#define VERSION "$VERSION"
2988_ACEOF
2989
2990# Some tools Automake needs.
2991
2992ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2993
2994
2995AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2996
2997
2998AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2999
3000
3001AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3002
3003
3004MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3005
3006# We need awk for the "check" target.  The system "awk" is bad on
3007# some platforms.
3008# Always define AMTAR for backward compatibility.
3009
3010AMTAR=${AMTAR-"${am_missing_run}tar"}
3011
3012am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3013
3014
3015
3016
3017
3018ac_config_headers="$ac_config_headers src/config.h"
3019
3020
3021# Checks for programs.
3022ac_ext=c
3023ac_cpp='$CPP $CPPFLAGS'
3024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3026ac_compiler_gnu=$ac_cv_c_compiler_gnu
3027if test -n "$ac_tool_prefix"; then
3028  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3029set dummy ${ac_tool_prefix}gcc; ac_word=$2
3030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3031$as_echo_n "checking for $ac_word... " >&6; }
3032if test "${ac_cv_prog_CC+set}" = set; then :
3033  $as_echo_n "(cached) " >&6
3034else
3035  if test -n "$CC"; then
3036  ac_cv_prog_CC="$CC" # Let the user override the test.
3037else
3038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039for as_dir in $PATH
3040do
3041  IFS=$as_save_IFS
3042  test -z "$as_dir" && as_dir=.
3043    for ac_exec_ext in '' $ac_executable_extensions; do
3044  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3045    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3046    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3047    break 2
3048  fi
3049done
3050  done
3051IFS=$as_save_IFS
3052
3053fi
3054fi
3055CC=$ac_cv_prog_CC
3056if test -n "$CC"; then
3057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3058$as_echo "$CC" >&6; }
3059else
3060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3061$as_echo "no" >&6; }
3062fi
3063
3064
3065fi
3066if test -z "$ac_cv_prog_CC"; then
3067  ac_ct_CC=$CC
3068  # Extract the first word of "gcc", so it can be a program name with args.
3069set dummy gcc; ac_word=$2
3070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3071$as_echo_n "checking for $ac_word... " >&6; }
3072if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3073  $as_echo_n "(cached) " >&6
3074else
3075  if test -n "$ac_ct_CC"; then
3076  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3077else
3078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079for as_dir in $PATH
3080do
3081  IFS=$as_save_IFS
3082  test -z "$as_dir" && as_dir=.
3083    for ac_exec_ext in '' $ac_executable_extensions; do
3084  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3085    ac_cv_prog_ac_ct_CC="gcc"
3086    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3087    break 2
3088  fi
3089done
3090  done
3091IFS=$as_save_IFS
3092
3093fi
3094fi
3095ac_ct_CC=$ac_cv_prog_ac_ct_CC
3096if test -n "$ac_ct_CC"; then
3097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3098$as_echo "$ac_ct_CC" >&6; }
3099else
3100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3101$as_echo "no" >&6; }
3102fi
3103
3104  if test "x$ac_ct_CC" = x; then
3105    CC=""
3106  else
3107    case $cross_compiling:$ac_tool_warned in
3108yes:)
3109{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3110$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3111ac_tool_warned=yes ;;
3112esac
3113    CC=$ac_ct_CC
3114  fi
3115else
3116  CC="$ac_cv_prog_CC"
3117fi
3118
3119if test -z "$CC"; then
3120          if test -n "$ac_tool_prefix"; then
3121    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3122set dummy ${ac_tool_prefix}cc; ac_word=$2
3123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3124$as_echo_n "checking for $ac_word... " >&6; }
3125if test "${ac_cv_prog_CC+set}" = set; then :
3126  $as_echo_n "(cached) " >&6
3127else
3128  if test -n "$CC"; then
3129  ac_cv_prog_CC="$CC" # Let the user override the test.
3130else
3131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132for as_dir in $PATH
3133do
3134  IFS=$as_save_IFS
3135  test -z "$as_dir" && as_dir=.
3136    for ac_exec_ext in '' $ac_executable_extensions; do
3137  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3138    ac_cv_prog_CC="${ac_tool_prefix}cc"
3139    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3140    break 2
3141  fi
3142done
3143  done
3144IFS=$as_save_IFS
3145
3146fi
3147fi
3148CC=$ac_cv_prog_CC
3149if test -n "$CC"; then
3150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3151$as_echo "$CC" >&6; }
3152else
3153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154$as_echo "no" >&6; }
3155fi
3156
3157
3158  fi
3159fi
3160if test -z "$CC"; then
3161  # Extract the first word of "cc", so it can be a program name with args.
3162set dummy cc; ac_word=$2
3163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3164$as_echo_n "checking for $ac_word... " >&6; }
3165if test "${ac_cv_prog_CC+set}" = set; then :
3166  $as_echo_n "(cached) " >&6
3167else
3168  if test -n "$CC"; then
3169  ac_cv_prog_CC="$CC" # Let the user override the test.
3170else
3171  ac_prog_rejected=no
3172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173for as_dir in $PATH
3174do
3175  IFS=$as_save_IFS
3176  test -z "$as_dir" && as_dir=.
3177    for ac_exec_ext in '' $ac_executable_extensions; do
3178  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3179    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3180       ac_prog_rejected=yes
3181       continue
3182     fi
3183    ac_cv_prog_CC="cc"
3184    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3185    break 2
3186  fi
3187done
3188  done
3189IFS=$as_save_IFS
3190
3191if test $ac_prog_rejected = yes; then
3192  # We found a bogon in the path, so make sure we never use it.
3193  set dummy $ac_cv_prog_CC
3194  shift
3195  if test $# != 0; then
3196    # We chose a different compiler from the bogus one.
3197    # However, it has the same basename, so the bogon will be chosen
3198    # first if we set CC to just the basename; use the full file name.
3199    shift
3200    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3201  fi
3202fi
3203fi
3204fi
3205CC=$ac_cv_prog_CC
3206if test -n "$CC"; then
3207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3208$as_echo "$CC" >&6; }
3209else
3210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3211$as_echo "no" >&6; }
3212fi
3213
3214
3215fi
3216if test -z "$CC"; then
3217  if test -n "$ac_tool_prefix"; then
3218  for ac_prog in cl.exe
3219  do
3220    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3221set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3223$as_echo_n "checking for $ac_word... " >&6; }
3224if test "${ac_cv_prog_CC+set}" = set; then :
3225  $as_echo_n "(cached) " >&6
3226else
3227  if test -n "$CC"; then
3228  ac_cv_prog_CC="$CC" # Let the user override the test.
3229else
3230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231for as_dir in $PATH
3232do
3233  IFS=$as_save_IFS
3234  test -z "$as_dir" && as_dir=.
3235    for ac_exec_ext in '' $ac_executable_extensions; do
3236  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3237    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3238    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3239    break 2
3240  fi
3241done
3242  done
3243IFS=$as_save_IFS
3244
3245fi
3246fi
3247CC=$ac_cv_prog_CC
3248if test -n "$CC"; then
3249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3250$as_echo "$CC" >&6; }
3251else
3252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253$as_echo "no" >&6; }
3254fi
3255
3256
3257    test -n "$CC" && break
3258  done
3259fi
3260if test -z "$CC"; then
3261  ac_ct_CC=$CC
3262  for ac_prog in cl.exe
3263do
3264  # Extract the first word of "$ac_prog", so it can be a program name with args.
3265set dummy $ac_prog; ac_word=$2
3266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3267$as_echo_n "checking for $ac_word... " >&6; }
3268if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3269  $as_echo_n "(cached) " >&6
3270else
3271  if test -n "$ac_ct_CC"; then
3272  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3273else
3274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275for as_dir in $PATH
3276do
3277  IFS=$as_save_IFS
3278  test -z "$as_dir" && as_dir=.
3279    for ac_exec_ext in '' $ac_executable_extensions; do
3280  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3281    ac_cv_prog_ac_ct_CC="$ac_prog"
3282    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3283    break 2
3284  fi
3285done
3286  done
3287IFS=$as_save_IFS
3288
3289fi
3290fi
3291ac_ct_CC=$ac_cv_prog_ac_ct_CC
3292if test -n "$ac_ct_CC"; then
3293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3294$as_echo "$ac_ct_CC" >&6; }
3295else
3296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297$as_echo "no" >&6; }
3298fi
3299
3300
3301  test -n "$ac_ct_CC" && break
3302done
3303
3304  if test "x$ac_ct_CC" = x; then
3305    CC=""
3306  else
3307    case $cross_compiling:$ac_tool_warned in
3308yes:)
3309{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3310$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3311ac_tool_warned=yes ;;
3312esac
3313    CC=$ac_ct_CC
3314  fi
3315fi
3316
3317fi
3318
3319
3320test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3321$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3322as_fn_error "no acceptable C compiler found in \$PATH
3323See \`config.log' for more details." "$LINENO" 5; }
3324
3325# Provide some information about the compiler.
3326$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3327set X $ac_compile
3328ac_compiler=$2
3329for ac_option in --version -v -V -qversion; do
3330  { { ac_try="$ac_compiler $ac_option >&5"
3331case "(($ac_try" in
3332  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333  *) ac_try_echo=$ac_try;;
3334esac
3335eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3336$as_echo "$ac_try_echo"; } >&5
3337  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3338  ac_status=$?
3339  if test -s conftest.err; then
3340    sed '10a\
3341... rest of stderr output deleted ...
3342         10q' conftest.err >conftest.er1
3343    cat conftest.er1 >&5
3344  fi
3345  rm -f conftest.er1 conftest.err
3346  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3347  test $ac_status = 0; }
3348done
3349
3350cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3351/* end confdefs.h.  */
3352
3353int
3354main ()
3355{
3356
3357  ;
3358  return 0;
3359}
3360_ACEOF
3361ac_clean_files_save=$ac_clean_files
3362ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3363# Try to create an executable without -o first, disregard a.out.
3364# It will help us diagnose broken compilers, and finding out an intuition
3365# of exeext.
3366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3367$as_echo_n "checking whether the C compiler works... " >&6; }
3368ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3369
3370# The possible output files:
3371ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3372
3373ac_rmfiles=
3374for ac_file in $ac_files
3375do
3376  case $ac_file in
3377    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3378    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3379  esac
3380done
3381rm -f $ac_rmfiles
3382
3383if { { ac_try="$ac_link_default"
3384case "(($ac_try" in
3385  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386  *) ac_try_echo=$ac_try;;
3387esac
3388eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3389$as_echo "$ac_try_echo"; } >&5
3390  (eval "$ac_link_default") 2>&5
3391  ac_status=$?
3392  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3393  test $ac_status = 0; }; then :
3394  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3395# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3396# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3397# so that the user can short-circuit this test for compilers unknown to
3398# Autoconf.
3399for ac_file in $ac_files ''
3400do
3401  test -f "$ac_file" || continue
3402  case $ac_file in
3403    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3404	;;
3405    [ab].out )
3406	# We found the default executable, but exeext='' is most
3407	# certainly right.
3408	break;;
3409    *.* )
3410	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3411	then :; else
3412	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3413	fi
3414	# We set ac_cv_exeext here because the later test for it is not
3415	# safe: cross compilers may not add the suffix if given an `-o'
3416	# argument, so we may need to know it at that point already.
3417	# Even if this section looks crufty: it has the advantage of
3418	# actually working.
3419	break;;
3420    * )
3421	break;;
3422  esac
3423done
3424test "$ac_cv_exeext" = no && ac_cv_exeext=
3425
3426else
3427  ac_file=''
3428fi
3429if test -z "$ac_file"; then :
3430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3431$as_echo "no" >&6; }
3432$as_echo "$as_me: failed program was:" >&5
3433sed 's/^/| /' conftest.$ac_ext >&5
3434
3435{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3436$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3437{ as_fn_set_status 77
3438as_fn_error "C compiler cannot create executables
3439See \`config.log' for more details." "$LINENO" 5; }; }
3440else
3441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3442$as_echo "yes" >&6; }
3443fi
3444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3445$as_echo_n "checking for C compiler default output file name... " >&6; }
3446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3447$as_echo "$ac_file" >&6; }
3448ac_exeext=$ac_cv_exeext
3449
3450rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3451ac_clean_files=$ac_clean_files_save
3452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3453$as_echo_n "checking for suffix of executables... " >&6; }
3454if { { ac_try="$ac_link"
3455case "(($ac_try" in
3456  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457  *) ac_try_echo=$ac_try;;
3458esac
3459eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3460$as_echo "$ac_try_echo"; } >&5
3461  (eval "$ac_link") 2>&5
3462  ac_status=$?
3463  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3464  test $ac_status = 0; }; then :
3465  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3466# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3467# work properly (i.e., refer to `conftest.exe'), while it won't with
3468# `rm'.
3469for ac_file in conftest.exe conftest conftest.*; do
3470  test -f "$ac_file" || continue
3471  case $ac_file in
3472    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3473    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3474	  break;;
3475    * ) break;;
3476  esac
3477done
3478else
3479  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3480$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3481as_fn_error "cannot compute suffix of executables: cannot compile and link
3482See \`config.log' for more details." "$LINENO" 5; }
3483fi
3484rm -f conftest conftest$ac_cv_exeext
3485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3486$as_echo "$ac_cv_exeext" >&6; }
3487
3488rm -f conftest.$ac_ext
3489EXEEXT=$ac_cv_exeext
3490ac_exeext=$EXEEXT
3491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3492/* end confdefs.h.  */
3493#include <stdio.h>
3494int
3495main ()
3496{
3497FILE *f = fopen ("conftest.out", "w");
3498 return ferror (f) || fclose (f) != 0;
3499
3500  ;
3501  return 0;
3502}
3503_ACEOF
3504ac_clean_files="$ac_clean_files conftest.out"
3505# Check that the compiler produces executables we can run.  If not, either
3506# the compiler is broken, or we cross compile.
3507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3508$as_echo_n "checking whether we are cross compiling... " >&6; }
3509if test "$cross_compiling" != yes; then
3510  { { ac_try="$ac_link"
3511case "(($ac_try" in
3512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3513  *) ac_try_echo=$ac_try;;
3514esac
3515eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3516$as_echo "$ac_try_echo"; } >&5
3517  (eval "$ac_link") 2>&5
3518  ac_status=$?
3519  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3520  test $ac_status = 0; }
3521  if { ac_try='./conftest$ac_cv_exeext'
3522  { { case "(($ac_try" in
3523  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524  *) ac_try_echo=$ac_try;;
3525esac
3526eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3527$as_echo "$ac_try_echo"; } >&5
3528  (eval "$ac_try") 2>&5
3529  ac_status=$?
3530  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3531  test $ac_status = 0; }; }; then
3532    cross_compiling=no
3533  else
3534    if test "$cross_compiling" = maybe; then
3535	cross_compiling=yes
3536    else
3537	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3538$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3539as_fn_error "cannot run C compiled programs.
3540If you meant to cross compile, use \`--host'.
3541See \`config.log' for more details." "$LINENO" 5; }
3542    fi
3543  fi
3544fi
3545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3546$as_echo "$cross_compiling" >&6; }
3547
3548rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3549ac_clean_files=$ac_clean_files_save
3550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3551$as_echo_n "checking for suffix of object files... " >&6; }
3552if test "${ac_cv_objext+set}" = set; then :
3553  $as_echo_n "(cached) " >&6
3554else
3555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556/* end confdefs.h.  */
3557
3558int
3559main ()
3560{
3561
3562  ;
3563  return 0;
3564}
3565_ACEOF
3566rm -f conftest.o conftest.obj
3567if { { ac_try="$ac_compile"
3568case "(($ac_try" in
3569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570  *) ac_try_echo=$ac_try;;
3571esac
3572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3573$as_echo "$ac_try_echo"; } >&5
3574  (eval "$ac_compile") 2>&5
3575  ac_status=$?
3576  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3577  test $ac_status = 0; }; then :
3578  for ac_file in conftest.o conftest.obj conftest.*; do
3579  test -f "$ac_file" || continue;
3580  case $ac_file in
3581    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3582    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3583       break;;
3584  esac
3585done
3586else
3587  $as_echo "$as_me: failed program was:" >&5
3588sed 's/^/| /' conftest.$ac_ext >&5
3589
3590{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3591$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3592as_fn_error "cannot compute suffix of object files: cannot compile
3593See \`config.log' for more details." "$LINENO" 5; }
3594fi
3595rm -f conftest.$ac_cv_objext conftest.$ac_ext
3596fi
3597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3598$as_echo "$ac_cv_objext" >&6; }
3599OBJEXT=$ac_cv_objext
3600ac_objext=$OBJEXT
3601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3602$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3603if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3604  $as_echo_n "(cached) " >&6
3605else
3606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3607/* end confdefs.h.  */
3608
3609int
3610main ()
3611{
3612#ifndef __GNUC__
3613       choke me
3614#endif
3615
3616  ;
3617  return 0;
3618}
3619_ACEOF
3620if ac_fn_c_try_compile "$LINENO"; then :
3621  ac_compiler_gnu=yes
3622else
3623  ac_compiler_gnu=no
3624fi
3625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3626ac_cv_c_compiler_gnu=$ac_compiler_gnu
3627
3628fi
3629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3630$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3631if test $ac_compiler_gnu = yes; then
3632  GCC=yes
3633else
3634  GCC=
3635fi
3636ac_test_CFLAGS=${CFLAGS+set}
3637ac_save_CFLAGS=$CFLAGS
3638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3639$as_echo_n "checking whether $CC accepts -g... " >&6; }
3640if test "${ac_cv_prog_cc_g+set}" = set; then :
3641  $as_echo_n "(cached) " >&6
3642else
3643  ac_save_c_werror_flag=$ac_c_werror_flag
3644   ac_c_werror_flag=yes
3645   ac_cv_prog_cc_g=no
3646   CFLAGS="-g"
3647   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3648/* end confdefs.h.  */
3649
3650int
3651main ()
3652{
3653
3654  ;
3655  return 0;
3656}
3657_ACEOF
3658if ac_fn_c_try_compile "$LINENO"; then :
3659  ac_cv_prog_cc_g=yes
3660else
3661  CFLAGS=""
3662      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663/* end confdefs.h.  */
3664
3665int
3666main ()
3667{
3668
3669  ;
3670  return 0;
3671}
3672_ACEOF
3673if ac_fn_c_try_compile "$LINENO"; then :
3674
3675else
3676  ac_c_werror_flag=$ac_save_c_werror_flag
3677	 CFLAGS="-g"
3678	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679/* end confdefs.h.  */
3680
3681int
3682main ()
3683{
3684
3685  ;
3686  return 0;
3687}
3688_ACEOF
3689if ac_fn_c_try_compile "$LINENO"; then :
3690  ac_cv_prog_cc_g=yes
3691fi
3692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3693fi
3694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3695fi
3696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3697   ac_c_werror_flag=$ac_save_c_werror_flag
3698fi
3699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3700$as_echo "$ac_cv_prog_cc_g" >&6; }
3701if test "$ac_test_CFLAGS" = set; then
3702  CFLAGS=$ac_save_CFLAGS
3703elif test $ac_cv_prog_cc_g = yes; then
3704  if test "$GCC" = yes; then
3705    CFLAGS="-g -O2"
3706  else
3707    CFLAGS="-g"
3708  fi
3709else
3710  if test "$GCC" = yes; then
3711    CFLAGS="-O2"
3712  else
3713    CFLAGS=
3714  fi
3715fi
3716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3717$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3718if test "${ac_cv_prog_cc_c89+set}" = set; then :
3719  $as_echo_n "(cached) " >&6
3720else
3721  ac_cv_prog_cc_c89=no
3722ac_save_CC=$CC
3723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3724/* end confdefs.h.  */
3725#include <stdarg.h>
3726#include <stdio.h>
3727#include <sys/types.h>
3728#include <sys/stat.h>
3729/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3730struct buf { int x; };
3731FILE * (*rcsopen) (struct buf *, struct stat *, int);
3732static char *e (p, i)
3733     char **p;
3734     int i;
3735{
3736  return p[i];
3737}
3738static char *f (char * (*g) (char **, int), char **p, ...)
3739{
3740  char *s;
3741  va_list v;
3742  va_start (v,p);
3743  s = g (p, va_arg (v,int));
3744  va_end (v);
3745  return s;
3746}
3747
3748/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3749   function prototypes and stuff, but not '\xHH' hex character constants.
3750   These don't provoke an error unfortunately, instead are silently treated
3751   as 'x'.  The following induces an error, until -std is added to get
3752   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3753   array size at least.  It's necessary to write '\x00'==0 to get something
3754   that's true only with -std.  */
3755int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3756
3757/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3758   inside strings and character constants.  */
3759#define FOO(x) 'x'
3760int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3761
3762int test (int i, double x);
3763struct s1 {int (*f) (int a);};
3764struct s2 {int (*f) (double a);};
3765int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3766int argc;
3767char **argv;
3768int
3769main ()
3770{
3771return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3772  ;
3773  return 0;
3774}
3775_ACEOF
3776for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3777	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3778do
3779  CC="$ac_save_CC $ac_arg"
3780  if ac_fn_c_try_compile "$LINENO"; then :
3781  ac_cv_prog_cc_c89=$ac_arg
3782fi
3783rm -f core conftest.err conftest.$ac_objext
3784  test "x$ac_cv_prog_cc_c89" != "xno" && break
3785done
3786rm -f conftest.$ac_ext
3787CC=$ac_save_CC
3788
3789fi
3790# AC_CACHE_VAL
3791case "x$ac_cv_prog_cc_c89" in
3792  x)
3793    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3794$as_echo "none needed" >&6; } ;;
3795  xno)
3796    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3797$as_echo "unsupported" >&6; } ;;
3798  *)
3799    CC="$CC $ac_cv_prog_cc_c89"
3800    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3801$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3802esac
3803if test "x$ac_cv_prog_cc_c89" != xno; then :
3804
3805fi
3806
3807ac_ext=c
3808ac_cpp='$CPP $CPPFLAGS'
3809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3811ac_compiler_gnu=$ac_cv_c_compiler_gnu
3812DEPDIR="${am__leading_dot}deps"
3813
3814ac_config_commands="$ac_config_commands depfiles"
3815
3816
3817am_make=${MAKE-make}
3818cat > confinc << 'END'
3819am__doit:
3820	@echo this is the am__doit target
3821.PHONY: am__doit
3822END
3823# If we don't find an include directive, just comment out the code.
3824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3825$as_echo_n "checking for style of include used by $am_make... " >&6; }
3826am__include="#"
3827am__quote=
3828_am_result=none
3829# First try GNU make style include.
3830echo "include confinc" > confmf
3831# Ignore all kinds of additional output from `make'.
3832case `$am_make -s -f confmf 2> /dev/null` in #(
3833*the\ am__doit\ target*)
3834  am__include=include
3835  am__quote=
3836  _am_result=GNU
3837  ;;
3838esac
3839# Now try BSD make style include.
3840if test "$am__include" = "#"; then
3841   echo '.include "confinc"' > confmf
3842   case `$am_make -s -f confmf 2> /dev/null` in #(
3843   *the\ am__doit\ target*)
3844     am__include=.include
3845     am__quote="\""
3846     _am_result=BSD
3847     ;;
3848   esac
3849fi
3850
3851
3852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3853$as_echo "$_am_result" >&6; }
3854rm -f confinc confmf
3855
3856# Check whether --enable-dependency-tracking was given.
3857if test "${enable_dependency_tracking+set}" = set; then :
3858  enableval=$enable_dependency_tracking;
3859fi
3860
3861if test "x$enable_dependency_tracking" != xno; then
3862  am_depcomp="$ac_aux_dir/depcomp"
3863  AMDEPBACKSLASH='\'
3864fi
3865 if test "x$enable_dependency_tracking" != xno; then
3866  AMDEP_TRUE=
3867  AMDEP_FALSE='#'
3868else
3869  AMDEP_TRUE='#'
3870  AMDEP_FALSE=
3871fi
3872
3873
3874
3875depcc="$CC"   am_compiler_list=
3876
3877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3878$as_echo_n "checking dependency style of $depcc... " >&6; }
3879if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3880  $as_echo_n "(cached) " >&6
3881else
3882  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3883  # We make a subdir and do the tests there.  Otherwise we can end up
3884  # making bogus files that we don't know about and never remove.  For
3885  # instance it was reported that on HP-UX the gcc test will end up
3886  # making a dummy file named `D' -- because `-MD' means `put the output
3887  # in D'.
3888  mkdir conftest.dir
3889  # Copy depcomp to subdir because otherwise we won't find it if we're
3890  # using a relative directory.
3891  cp "$am_depcomp" conftest.dir
3892  cd conftest.dir
3893  # We will build objects and dependencies in a subdirectory because
3894  # it helps to detect inapplicable dependency modes.  For instance
3895  # both Tru64's cc and ICC support -MD to output dependencies as a
3896  # side effect of compilation, but ICC will put the dependencies in
3897  # the current directory while Tru64 will put them in the object
3898  # directory.
3899  mkdir sub
3900
3901  am_cv_CC_dependencies_compiler_type=none
3902  if test "$am_compiler_list" = ""; then
3903     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3904  fi
3905  am__universal=false
3906  case " $depcc " in #(
3907     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3908     esac
3909
3910  for depmode in $am_compiler_list; do
3911    # Setup a source with many dependencies, because some compilers
3912    # like to wrap large dependency lists on column 80 (with \), and
3913    # we should not choose a depcomp mode which is confused by this.
3914    #
3915    # We need to recreate these files for each test, as the compiler may
3916    # overwrite some of them when testing with obscure command lines.
3917    # This happens at least with the AIX C compiler.
3918    : > sub/conftest.c
3919    for i in 1 2 3 4 5 6; do
3920      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3921      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3922      # Solaris 8's {/usr,}/bin/sh.
3923      touch sub/conftst$i.h
3924    done
3925    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3926
3927    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3928    # mode.  It turns out that the SunPro C++ compiler does not properly
3929    # handle `-M -o', and we need to detect this.  Also, some Intel
3930    # versions had trouble with output in subdirs
3931    am__obj=sub/conftest.${OBJEXT-o}
3932    am__minus_obj="-o $am__obj"
3933    case $depmode in
3934    gcc)
3935      # This depmode causes a compiler race in universal mode.
3936      test "$am__universal" = false || continue
3937      ;;
3938    nosideeffect)
3939      # after this tag, mechanisms are not by side-effect, so they'll
3940      # only be used when explicitly requested
3941      if test "x$enable_dependency_tracking" = xyes; then
3942	continue
3943      else
3944	break
3945      fi
3946      ;;
3947    msvisualcpp | msvcmsys)
3948      # This compiler won't grok `-c -o', but also, the minuso test has
3949      # not run yet.  These depmodes are late enough in the game, and
3950      # so weak that their functioning should not be impacted.
3951      am__obj=conftest.${OBJEXT-o}
3952      am__minus_obj=
3953      ;;
3954    none) break ;;
3955    esac
3956    if depmode=$depmode \
3957       source=sub/conftest.c object=$am__obj \
3958       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3959       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3960         >/dev/null 2>conftest.err &&
3961       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3962       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3963       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3964       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3965      # icc doesn't choke on unknown options, it will just issue warnings
3966      # or remarks (even with -Werror).  So we grep stderr for any message
3967      # that says an option was ignored or not supported.
3968      # When given -MP, icc 7.0 and 7.1 complain thusly:
3969      #   icc: Command line warning: ignoring option '-M'; no argument required
3970      # The diagnosis changed in icc 8.0:
3971      #   icc: Command line remark: option '-MP' not supported
3972      if (grep 'ignoring option' conftest.err ||
3973          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3974        am_cv_CC_dependencies_compiler_type=$depmode
3975        break
3976      fi
3977    fi
3978  done
3979
3980  cd ..
3981  rm -rf conftest.dir
3982else
3983  am_cv_CC_dependencies_compiler_type=none
3984fi
3985
3986fi
3987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3988$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3989CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3990
3991 if
3992  test "x$enable_dependency_tracking" != xno \
3993  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3994  am__fastdepCC_TRUE=
3995  am__fastdepCC_FALSE='#'
3996else
3997  am__fastdepCC_TRUE='#'
3998  am__fastdepCC_FALSE=
3999fi
4000
4001
4002ac_ext=c
4003ac_cpp='$CPP $CPPFLAGS'
4004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4006ac_compiler_gnu=$ac_cv_c_compiler_gnu
4007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4008$as_echo_n "checking how to run the C preprocessor... " >&6; }
4009# On Suns, sometimes $CPP names a directory.
4010if test -n "$CPP" && test -d "$CPP"; then
4011  CPP=
4012fi
4013if test -z "$CPP"; then
4014  if test "${ac_cv_prog_CPP+set}" = set; then :
4015  $as_echo_n "(cached) " >&6
4016else
4017      # Double quotes because CPP needs to be expanded
4018    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4019    do
4020      ac_preproc_ok=false
4021for ac_c_preproc_warn_flag in '' yes
4022do
4023  # Use a header file that comes with gcc, so configuring glibc
4024  # with a fresh cross-compiler works.
4025  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4026  # <limits.h> exists even on freestanding compilers.
4027  # On the NeXT, cc -E runs the code through the compiler's parser,
4028  # not just through cpp. "Syntax error" is here to catch this case.
4029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030/* end confdefs.h.  */
4031#ifdef __STDC__
4032# include <limits.h>
4033#else
4034# include <assert.h>
4035#endif
4036		     Syntax error
4037_ACEOF
4038if ac_fn_c_try_cpp "$LINENO"; then :
4039
4040else
4041  # Broken: fails on valid input.
4042continue
4043fi
4044rm -f conftest.err conftest.$ac_ext
4045
4046  # OK, works on sane cases.  Now check whether nonexistent headers
4047  # can be detected and how.
4048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4049/* end confdefs.h.  */
4050#include <ac_nonexistent.h>
4051_ACEOF
4052if ac_fn_c_try_cpp "$LINENO"; then :
4053  # Broken: success on invalid input.
4054continue
4055else
4056  # Passes both tests.
4057ac_preproc_ok=:
4058break
4059fi
4060rm -f conftest.err conftest.$ac_ext
4061
4062done
4063# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4064rm -f conftest.err conftest.$ac_ext
4065if $ac_preproc_ok; then :
4066  break
4067fi
4068
4069    done
4070    ac_cv_prog_CPP=$CPP
4071
4072fi
4073  CPP=$ac_cv_prog_CPP
4074else
4075  ac_cv_prog_CPP=$CPP
4076fi
4077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4078$as_echo "$CPP" >&6; }
4079ac_preproc_ok=false
4080for ac_c_preproc_warn_flag in '' yes
4081do
4082  # Use a header file that comes with gcc, so configuring glibc
4083  # with a fresh cross-compiler works.
4084  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4085  # <limits.h> exists even on freestanding compilers.
4086  # On the NeXT, cc -E runs the code through the compiler's parser,
4087  # not just through cpp. "Syntax error" is here to catch this case.
4088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089/* end confdefs.h.  */
4090#ifdef __STDC__
4091# include <limits.h>
4092#else
4093# include <assert.h>
4094#endif
4095		     Syntax error
4096_ACEOF
4097if ac_fn_c_try_cpp "$LINENO"; then :
4098
4099else
4100  # Broken: fails on valid input.
4101continue
4102fi
4103rm -f conftest.err conftest.$ac_ext
4104
4105  # OK, works on sane cases.  Now check whether nonexistent headers
4106  # can be detected and how.
4107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108/* end confdefs.h.  */
4109#include <ac_nonexistent.h>
4110_ACEOF
4111if ac_fn_c_try_cpp "$LINENO"; then :
4112  # Broken: success on invalid input.
4113continue
4114else
4115  # Passes both tests.
4116ac_preproc_ok=:
4117break
4118fi
4119rm -f conftest.err conftest.$ac_ext
4120
4121done
4122# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4123rm -f conftest.err conftest.$ac_ext
4124if $ac_preproc_ok; then :
4125
4126else
4127  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4128$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4129as_fn_error "C preprocessor \"$CPP\" fails sanity check
4130See \`config.log' for more details." "$LINENO" 5; }
4131fi
4132
4133ac_ext=c
4134ac_cpp='$CPP $CPPFLAGS'
4135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4137ac_compiler_gnu=$ac_cv_c_compiler_gnu
4138
4139ac_ext=cpp
4140ac_cpp='$CXXCPP $CPPFLAGS'
4141ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4142ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4143ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4144if test -z "$CXX"; then
4145  if test -n "$CCC"; then
4146    CXX=$CCC
4147  else
4148    if test -n "$ac_tool_prefix"; then
4149  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4150  do
4151    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4152set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4154$as_echo_n "checking for $ac_word... " >&6; }
4155if test "${ac_cv_prog_CXX+set}" = set; then :
4156  $as_echo_n "(cached) " >&6
4157else
4158  if test -n "$CXX"; then
4159  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4160else
4161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162for as_dir in $PATH
4163do
4164  IFS=$as_save_IFS
4165  test -z "$as_dir" && as_dir=.
4166    for ac_exec_ext in '' $ac_executable_extensions; do
4167  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4168    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4169    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4170    break 2
4171  fi
4172done
4173  done
4174IFS=$as_save_IFS
4175
4176fi
4177fi
4178CXX=$ac_cv_prog_CXX
4179if test -n "$CXX"; then
4180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4181$as_echo "$CXX" >&6; }
4182else
4183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4184$as_echo "no" >&6; }
4185fi
4186
4187
4188    test -n "$CXX" && break
4189  done
4190fi
4191if test -z "$CXX"; then
4192  ac_ct_CXX=$CXX
4193  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4194do
4195  # Extract the first word of "$ac_prog", so it can be a program name with args.
4196set dummy $ac_prog; ac_word=$2
4197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4198$as_echo_n "checking for $ac_word... " >&6; }
4199if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4200  $as_echo_n "(cached) " >&6
4201else
4202  if test -n "$ac_ct_CXX"; then
4203  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4204else
4205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206for as_dir in $PATH
4207do
4208  IFS=$as_save_IFS
4209  test -z "$as_dir" && as_dir=.
4210    for ac_exec_ext in '' $ac_executable_extensions; do
4211  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4212    ac_cv_prog_ac_ct_CXX="$ac_prog"
4213    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4214    break 2
4215  fi
4216done
4217  done
4218IFS=$as_save_IFS
4219
4220fi
4221fi
4222ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4223if test -n "$ac_ct_CXX"; then
4224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4225$as_echo "$ac_ct_CXX" >&6; }
4226else
4227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4228$as_echo "no" >&6; }
4229fi
4230
4231
4232  test -n "$ac_ct_CXX" && break
4233done
4234
4235  if test "x$ac_ct_CXX" = x; then
4236    CXX="g++"
4237  else
4238    case $cross_compiling:$ac_tool_warned in
4239yes:)
4240{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4241$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4242ac_tool_warned=yes ;;
4243esac
4244    CXX=$ac_ct_CXX
4245  fi
4246fi
4247
4248  fi
4249fi
4250# Provide some information about the compiler.
4251$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4252set X $ac_compile
4253ac_compiler=$2
4254for ac_option in --version -v -V -qversion; do
4255  { { ac_try="$ac_compiler $ac_option >&5"
4256case "(($ac_try" in
4257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258  *) ac_try_echo=$ac_try;;
4259esac
4260eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4261$as_echo "$ac_try_echo"; } >&5
4262  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4263  ac_status=$?
4264  if test -s conftest.err; then
4265    sed '10a\
4266... rest of stderr output deleted ...
4267         10q' conftest.err >conftest.er1
4268    cat conftest.er1 >&5
4269  fi
4270  rm -f conftest.er1 conftest.err
4271  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4272  test $ac_status = 0; }
4273done
4274
4275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4276$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4277if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4278  $as_echo_n "(cached) " >&6
4279else
4280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281/* end confdefs.h.  */
4282
4283int
4284main ()
4285{
4286#ifndef __GNUC__
4287       choke me
4288#endif
4289
4290  ;
4291  return 0;
4292}
4293_ACEOF
4294if ac_fn_cxx_try_compile "$LINENO"; then :
4295  ac_compiler_gnu=yes
4296else
4297  ac_compiler_gnu=no
4298fi
4299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4300ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4301
4302fi
4303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4304$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4305if test $ac_compiler_gnu = yes; then
4306  GXX=yes
4307else
4308  GXX=
4309fi
4310ac_test_CXXFLAGS=${CXXFLAGS+set}
4311ac_save_CXXFLAGS=$CXXFLAGS
4312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4313$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4314if test "${ac_cv_prog_cxx_g+set}" = set; then :
4315  $as_echo_n "(cached) " >&6
4316else
4317  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4318   ac_cxx_werror_flag=yes
4319   ac_cv_prog_cxx_g=no
4320   CXXFLAGS="-g"
4321   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4322/* end confdefs.h.  */
4323
4324int
4325main ()
4326{
4327
4328  ;
4329  return 0;
4330}
4331_ACEOF
4332if ac_fn_cxx_try_compile "$LINENO"; then :
4333  ac_cv_prog_cxx_g=yes
4334else
4335  CXXFLAGS=""
4336      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4337/* end confdefs.h.  */
4338
4339int
4340main ()
4341{
4342
4343  ;
4344  return 0;
4345}
4346_ACEOF
4347if ac_fn_cxx_try_compile "$LINENO"; then :
4348
4349else
4350  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4351	 CXXFLAGS="-g"
4352	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4353/* end confdefs.h.  */
4354
4355int
4356main ()
4357{
4358
4359  ;
4360  return 0;
4361}
4362_ACEOF
4363if ac_fn_cxx_try_compile "$LINENO"; then :
4364  ac_cv_prog_cxx_g=yes
4365fi
4366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4367fi
4368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4369fi
4370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4371   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4372fi
4373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4374$as_echo "$ac_cv_prog_cxx_g" >&6; }
4375if test "$ac_test_CXXFLAGS" = set; then
4376  CXXFLAGS=$ac_save_CXXFLAGS
4377elif test $ac_cv_prog_cxx_g = yes; then
4378  if test "$GXX" = yes; then
4379    CXXFLAGS="-g -O2"
4380  else
4381    CXXFLAGS="-g"
4382  fi
4383else
4384  if test "$GXX" = yes; then
4385    CXXFLAGS="-O2"
4386  else
4387    CXXFLAGS=
4388  fi
4389fi
4390ac_ext=c
4391ac_cpp='$CPP $CPPFLAGS'
4392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4394ac_compiler_gnu=$ac_cv_c_compiler_gnu
4395
4396depcc="$CXX"  am_compiler_list=
4397
4398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4399$as_echo_n "checking dependency style of $depcc... " >&6; }
4400if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4401  $as_echo_n "(cached) " >&6
4402else
4403  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4404  # We make a subdir and do the tests there.  Otherwise we can end up
4405  # making bogus files that we don't know about and never remove.  For
4406  # instance it was reported that on HP-UX the gcc test will end up
4407  # making a dummy file named `D' -- because `-MD' means `put the output
4408  # in D'.
4409  mkdir conftest.dir
4410  # Copy depcomp to subdir because otherwise we won't find it if we're
4411  # using a relative directory.
4412  cp "$am_depcomp" conftest.dir
4413  cd conftest.dir
4414  # We will build objects and dependencies in a subdirectory because
4415  # it helps to detect inapplicable dependency modes.  For instance
4416  # both Tru64's cc and ICC support -MD to output dependencies as a
4417  # side effect of compilation, but ICC will put the dependencies in
4418  # the current directory while Tru64 will put them in the object
4419  # directory.
4420  mkdir sub
4421
4422  am_cv_CXX_dependencies_compiler_type=none
4423  if test "$am_compiler_list" = ""; then
4424     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4425  fi
4426  am__universal=false
4427  case " $depcc " in #(
4428     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4429     esac
4430
4431  for depmode in $am_compiler_list; do
4432    # Setup a source with many dependencies, because some compilers
4433    # like to wrap large dependency lists on column 80 (with \), and
4434    # we should not choose a depcomp mode which is confused by this.
4435    #
4436    # We need to recreate these files for each test, as the compiler may
4437    # overwrite some of them when testing with obscure command lines.
4438    # This happens at least with the AIX C compiler.
4439    : > sub/conftest.c
4440    for i in 1 2 3 4 5 6; do
4441      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4442      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4443      # Solaris 8's {/usr,}/bin/sh.
4444      touch sub/conftst$i.h
4445    done
4446    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4447
4448    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4449    # mode.  It turns out that the SunPro C++ compiler does not properly
4450    # handle `-M -o', and we need to detect this.  Also, some Intel
4451    # versions had trouble with output in subdirs
4452    am__obj=sub/conftest.${OBJEXT-o}
4453    am__minus_obj="-o $am__obj"
4454    case $depmode in
4455    gcc)
4456      # This depmode causes a compiler race in universal mode.
4457      test "$am__universal" = false || continue
4458      ;;
4459    nosideeffect)
4460      # after this tag, mechanisms are not by side-effect, so they'll
4461      # only be used when explicitly requested
4462      if test "x$enable_dependency_tracking" = xyes; then
4463	continue
4464      else
4465	break
4466      fi
4467      ;;
4468    msvisualcpp | msvcmsys)
4469      # This compiler won't grok `-c -o', but also, the minuso test has
4470      # not run yet.  These depmodes are late enough in the game, and
4471      # so weak that their functioning should not be impacted.
4472      am__obj=conftest.${OBJEXT-o}
4473      am__minus_obj=
4474      ;;
4475    none) break ;;
4476    esac
4477    if depmode=$depmode \
4478       source=sub/conftest.c object=$am__obj \
4479       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4480       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4481         >/dev/null 2>conftest.err &&
4482       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4483       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4484       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4485       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4486      # icc doesn't choke on unknown options, it will just issue warnings
4487      # or remarks (even with -Werror).  So we grep stderr for any message
4488      # that says an option was ignored or not supported.
4489      # When given -MP, icc 7.0 and 7.1 complain thusly:
4490      #   icc: Command line warning: ignoring option '-M'; no argument required
4491      # The diagnosis changed in icc 8.0:
4492      #   icc: Command line remark: option '-MP' not supported
4493      if (grep 'ignoring option' conftest.err ||
4494          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4495        am_cv_CXX_dependencies_compiler_type=$depmode
4496        break
4497      fi
4498    fi
4499  done
4500
4501  cd ..
4502  rm -rf conftest.dir
4503else
4504  am_cv_CXX_dependencies_compiler_type=none
4505fi
4506
4507fi
4508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4509$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4510CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4511
4512 if
4513  test "x$enable_dependency_tracking" != xno \
4514  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4515  am__fastdepCXX_TRUE=
4516  am__fastdepCXX_FALSE='#'
4517else
4518  am__fastdepCXX_TRUE='#'
4519  am__fastdepCXX_FALSE=
4520fi
4521
4522
4523 if test "$GCC" = yes; then
4524  GCC_TRUE=
4525  GCC_FALSE='#'
4526else
4527  GCC_TRUE='#'
4528  GCC_FALSE=
4529fi
4530   # let the Makefile know if we're gcc
4531# Make sure we can run config.sub.
4532$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4533  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4534
4535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4536$as_echo_n "checking build system type... " >&6; }
4537if test "${ac_cv_build+set}" = set; then :
4538  $as_echo_n "(cached) " >&6
4539else
4540  ac_build_alias=$build_alias
4541test "x$ac_build_alias" = x &&
4542  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4543test "x$ac_build_alias" = x &&
4544  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4545ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4546  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4547
4548fi
4549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4550$as_echo "$ac_cv_build" >&6; }
4551case $ac_cv_build in
4552*-*-*) ;;
4553*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4554esac
4555build=$ac_cv_build
4556ac_save_IFS=$IFS; IFS='-'
4557set x $ac_cv_build
4558shift
4559build_cpu=$1
4560build_vendor=$2
4561shift; shift
4562# Remember, the first character of IFS is used to create $*,
4563# except with old shells:
4564build_os=$*
4565IFS=$ac_save_IFS
4566case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4567
4568
4569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4570$as_echo_n "checking host system type... " >&6; }
4571if test "${ac_cv_host+set}" = set; then :
4572  $as_echo_n "(cached) " >&6
4573else
4574  if test "x$host_alias" = x; then
4575  ac_cv_host=$ac_cv_build
4576else
4577  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4578    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4579fi
4580
4581fi
4582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4583$as_echo "$ac_cv_host" >&6; }
4584case $ac_cv_host in
4585*-*-*) ;;
4586*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4587esac
4588host=$ac_cv_host
4589ac_save_IFS=$IFS; IFS='-'
4590set x $ac_cv_host
4591shift
4592host_cpu=$1
4593host_vendor=$2
4594shift; shift
4595# Remember, the first character of IFS is used to create $*,
4596# except with old shells:
4597host_os=$*
4598IFS=$ac_save_IFS
4599case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4600
4601
4602
4603case `pwd` in
4604  *\ * | *\	*)
4605    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4606$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4607esac
4608
4609
4610
4611macro_version='2.2.6b'
4612macro_revision='1.3017'
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626ltmain="$ac_aux_dir/ltmain.sh"
4627
4628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4629$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4630if test "${ac_cv_path_SED+set}" = set; then :
4631  $as_echo_n "(cached) " >&6
4632else
4633            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4634     for ac_i in 1 2 3 4 5 6 7; do
4635       ac_script="$ac_script$as_nl$ac_script"
4636     done
4637     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4638     { ac_script=; unset ac_script;}
4639     if test -z "$SED"; then
4640  ac_path_SED_found=false
4641  # Loop through the user's path and test for each of PROGNAME-LIST
4642  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643for as_dir in $PATH
4644do
4645  IFS=$as_save_IFS
4646  test -z "$as_dir" && as_dir=.
4647    for ac_prog in sed gsed; do
4648    for ac_exec_ext in '' $ac_executable_extensions; do
4649      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4650      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4651# Check for GNU ac_path_SED and select it if it is found.
4652  # Check for GNU $ac_path_SED
4653case `"$ac_path_SED" --version 2>&1` in
4654*GNU*)
4655  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4656*)
4657  ac_count=0
4658  $as_echo_n 0123456789 >"conftest.in"
4659  while :
4660  do
4661    cat "conftest.in" "conftest.in" >"conftest.tmp"
4662    mv "conftest.tmp" "conftest.in"
4663    cp "conftest.in" "conftest.nl"
4664    $as_echo '' >> "conftest.nl"
4665    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4666    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4667    as_fn_arith $ac_count + 1 && ac_count=$as_val
4668    if test $ac_count -gt ${ac_path_SED_max-0}; then
4669      # Best one so far, save it but keep looking for a better one
4670      ac_cv_path_SED="$ac_path_SED"
4671      ac_path_SED_max=$ac_count
4672    fi
4673    # 10*(2^10) chars as input seems more than enough
4674    test $ac_count -gt 10 && break
4675  done
4676  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4677esac
4678
4679      $ac_path_SED_found && break 3
4680    done
4681  done
4682  done
4683IFS=$as_save_IFS
4684  if test -z "$ac_cv_path_SED"; then
4685    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4686  fi
4687else
4688  ac_cv_path_SED=$SED
4689fi
4690
4691fi
4692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4693$as_echo "$ac_cv_path_SED" >&6; }
4694 SED="$ac_cv_path_SED"
4695  rm -f conftest.sed
4696
4697test -z "$SED" && SED=sed
4698Xsed="$SED -e 1s/^X//"
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4711$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4712if test "${ac_cv_path_GREP+set}" = set; then :
4713  $as_echo_n "(cached) " >&6
4714else
4715  if test -z "$GREP"; then
4716  ac_path_GREP_found=false
4717  # Loop through the user's path and test for each of PROGNAME-LIST
4718  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4720do
4721  IFS=$as_save_IFS
4722  test -z "$as_dir" && as_dir=.
4723    for ac_prog in grep ggrep; do
4724    for ac_exec_ext in '' $ac_executable_extensions; do
4725      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4726      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4727# Check for GNU ac_path_GREP and select it if it is found.
4728  # Check for GNU $ac_path_GREP
4729case `"$ac_path_GREP" --version 2>&1` in
4730*GNU*)
4731  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4732*)
4733  ac_count=0
4734  $as_echo_n 0123456789 >"conftest.in"
4735  while :
4736  do
4737    cat "conftest.in" "conftest.in" >"conftest.tmp"
4738    mv "conftest.tmp" "conftest.in"
4739    cp "conftest.in" "conftest.nl"
4740    $as_echo 'GREP' >> "conftest.nl"
4741    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4742    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4743    as_fn_arith $ac_count + 1 && ac_count=$as_val
4744    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4745      # Best one so far, save it but keep looking for a better one
4746      ac_cv_path_GREP="$ac_path_GREP"
4747      ac_path_GREP_max=$ac_count
4748    fi
4749    # 10*(2^10) chars as input seems more than enough
4750    test $ac_count -gt 10 && break
4751  done
4752  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4753esac
4754
4755      $ac_path_GREP_found && break 3
4756    done
4757  done
4758  done
4759IFS=$as_save_IFS
4760  if test -z "$ac_cv_path_GREP"; then
4761    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4762  fi
4763else
4764  ac_cv_path_GREP=$GREP
4765fi
4766
4767fi
4768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4769$as_echo "$ac_cv_path_GREP" >&6; }
4770 GREP="$ac_cv_path_GREP"
4771
4772
4773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4774$as_echo_n "checking for egrep... " >&6; }
4775if test "${ac_cv_path_EGREP+set}" = set; then :
4776  $as_echo_n "(cached) " >&6
4777else
4778  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4779   then ac_cv_path_EGREP="$GREP -E"
4780   else
4781     if test -z "$EGREP"; then
4782  ac_path_EGREP_found=false
4783  # Loop through the user's path and test for each of PROGNAME-LIST
4784  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4786do
4787  IFS=$as_save_IFS
4788  test -z "$as_dir" && as_dir=.
4789    for ac_prog in egrep; do
4790    for ac_exec_ext in '' $ac_executable_extensions; do
4791      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4792      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4793# Check for GNU ac_path_EGREP and select it if it is found.
4794  # Check for GNU $ac_path_EGREP
4795case `"$ac_path_EGREP" --version 2>&1` in
4796*GNU*)
4797  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4798*)
4799  ac_count=0
4800  $as_echo_n 0123456789 >"conftest.in"
4801  while :
4802  do
4803    cat "conftest.in" "conftest.in" >"conftest.tmp"
4804    mv "conftest.tmp" "conftest.in"
4805    cp "conftest.in" "conftest.nl"
4806    $as_echo 'EGREP' >> "conftest.nl"
4807    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4808    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4809    as_fn_arith $ac_count + 1 && ac_count=$as_val
4810    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4811      # Best one so far, save it but keep looking for a better one
4812      ac_cv_path_EGREP="$ac_path_EGREP"
4813      ac_path_EGREP_max=$ac_count
4814    fi
4815    # 10*(2^10) chars as input seems more than enough
4816    test $ac_count -gt 10 && break
4817  done
4818  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4819esac
4820
4821      $ac_path_EGREP_found && break 3
4822    done
4823  done
4824  done
4825IFS=$as_save_IFS
4826  if test -z "$ac_cv_path_EGREP"; then
4827    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4828  fi
4829else
4830  ac_cv_path_EGREP=$EGREP
4831fi
4832
4833   fi
4834fi
4835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4836$as_echo "$ac_cv_path_EGREP" >&6; }
4837 EGREP="$ac_cv_path_EGREP"
4838
4839
4840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4841$as_echo_n "checking for fgrep... " >&6; }
4842if test "${ac_cv_path_FGREP+set}" = set; then :
4843  $as_echo_n "(cached) " >&6
4844else
4845  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4846   then ac_cv_path_FGREP="$GREP -F"
4847   else
4848     if test -z "$FGREP"; then
4849  ac_path_FGREP_found=false
4850  # Loop through the user's path and test for each of PROGNAME-LIST
4851  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4853do
4854  IFS=$as_save_IFS
4855  test -z "$as_dir" && as_dir=.
4856    for ac_prog in fgrep; do
4857    for ac_exec_ext in '' $ac_executable_extensions; do
4858      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4859      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4860# Check for GNU ac_path_FGREP and select it if it is found.
4861  # Check for GNU $ac_path_FGREP
4862case `"$ac_path_FGREP" --version 2>&1` in
4863*GNU*)
4864  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4865*)
4866  ac_count=0
4867  $as_echo_n 0123456789 >"conftest.in"
4868  while :
4869  do
4870    cat "conftest.in" "conftest.in" >"conftest.tmp"
4871    mv "conftest.tmp" "conftest.in"
4872    cp "conftest.in" "conftest.nl"
4873    $as_echo 'FGREP' >> "conftest.nl"
4874    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4875    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4876    as_fn_arith $ac_count + 1 && ac_count=$as_val
4877    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4878      # Best one so far, save it but keep looking for a better one
4879      ac_cv_path_FGREP="$ac_path_FGREP"
4880      ac_path_FGREP_max=$ac_count
4881    fi
4882    # 10*(2^10) chars as input seems more than enough
4883    test $ac_count -gt 10 && break
4884  done
4885  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4886esac
4887
4888      $ac_path_FGREP_found && break 3
4889    done
4890  done
4891  done
4892IFS=$as_save_IFS
4893  if test -z "$ac_cv_path_FGREP"; then
4894    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4895  fi
4896else
4897  ac_cv_path_FGREP=$FGREP
4898fi
4899
4900   fi
4901fi
4902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4903$as_echo "$ac_cv_path_FGREP" >&6; }
4904 FGREP="$ac_cv_path_FGREP"
4905
4906
4907test -z "$GREP" && GREP=grep
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927# Check whether --with-gnu-ld was given.
4928if test "${with_gnu_ld+set}" = set; then :
4929  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4930else
4931  with_gnu_ld=no
4932fi
4933
4934ac_prog=ld
4935if test "$GCC" = yes; then
4936  # Check if gcc -print-prog-name=ld gives a path.
4937  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4938$as_echo_n "checking for ld used by $CC... " >&6; }
4939  case $host in
4940  *-*-mingw*)
4941    # gcc leaves a trailing carriage return which upsets mingw
4942    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4943  *)
4944    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4945  esac
4946  case $ac_prog in
4947    # Accept absolute paths.
4948    [\\/]* | ?:[\\/]*)
4949      re_direlt='/[^/][^/]*/\.\./'
4950      # Canonicalize the pathname of ld
4951      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4952      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4953	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4954      done
4955      test -z "$LD" && LD="$ac_prog"
4956      ;;
4957  "")
4958    # If it fails, then pretend we aren't using GCC.
4959    ac_prog=ld
4960    ;;
4961  *)
4962    # If it is relative, then search for the first ld in PATH.
4963    with_gnu_ld=unknown
4964    ;;
4965  esac
4966elif test "$with_gnu_ld" = yes; then
4967  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4968$as_echo_n "checking for GNU ld... " >&6; }
4969else
4970  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4971$as_echo_n "checking for non-GNU ld... " >&6; }
4972fi
4973if test "${lt_cv_path_LD+set}" = set; then :
4974  $as_echo_n "(cached) " >&6
4975else
4976  if test -z "$LD"; then
4977  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4978  for ac_dir in $PATH; do
4979    IFS="$lt_save_ifs"
4980    test -z "$ac_dir" && ac_dir=.
4981    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4982      lt_cv_path_LD="$ac_dir/$ac_prog"
4983      # Check to see if the program is GNU ld.  I'd rather use --version,
4984      # but apparently some variants of GNU ld only accept -v.
4985      # Break only if it was the GNU/non-GNU ld that we prefer.
4986      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4987      *GNU* | *'with BFD'*)
4988	test "$with_gnu_ld" != no && break
4989	;;
4990      *)
4991	test "$with_gnu_ld" != yes && break
4992	;;
4993      esac
4994    fi
4995  done
4996  IFS="$lt_save_ifs"
4997else
4998  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4999fi
5000fi
5001
5002LD="$lt_cv_path_LD"
5003if test -n "$LD"; then
5004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5005$as_echo "$LD" >&6; }
5006else
5007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5008$as_echo "no" >&6; }
5009fi
5010test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5012$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5013if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5014  $as_echo_n "(cached) " >&6
5015else
5016  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5017case `$LD -v 2>&1 </dev/null` in
5018*GNU* | *'with BFD'*)
5019  lt_cv_prog_gnu_ld=yes
5020  ;;
5021*)
5022  lt_cv_prog_gnu_ld=no
5023  ;;
5024esac
5025fi
5026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5027$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5028with_gnu_ld=$lt_cv_prog_gnu_ld
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5039$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5040if test "${lt_cv_path_NM+set}" = set; then :
5041  $as_echo_n "(cached) " >&6
5042else
5043  if test -n "$NM"; then
5044  # Let the user override the test.
5045  lt_cv_path_NM="$NM"
5046else
5047  lt_nm_to_check="${ac_tool_prefix}nm"
5048  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5049    lt_nm_to_check="$lt_nm_to_check nm"
5050  fi
5051  for lt_tmp_nm in $lt_nm_to_check; do
5052    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5053    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5054      IFS="$lt_save_ifs"
5055      test -z "$ac_dir" && ac_dir=.
5056      tmp_nm="$ac_dir/$lt_tmp_nm"
5057      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5058	# Check to see if the nm accepts a BSD-compat flag.
5059	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5060	#   nm: unknown option "B" ignored
5061	# Tru64's nm complains that /dev/null is an invalid object file
5062	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5063	*/dev/null* | *'Invalid file or object type'*)
5064	  lt_cv_path_NM="$tmp_nm -B"
5065	  break
5066	  ;;
5067	*)
5068	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5069	  */dev/null*)
5070	    lt_cv_path_NM="$tmp_nm -p"
5071	    break
5072	    ;;
5073	  *)
5074	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5075	    continue # so that we can try to find one that supports BSD flags
5076	    ;;
5077	  esac
5078	  ;;
5079	esac
5080      fi
5081    done
5082    IFS="$lt_save_ifs"
5083  done
5084  : ${lt_cv_path_NM=no}
5085fi
5086fi
5087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5088$as_echo "$lt_cv_path_NM" >&6; }
5089if test "$lt_cv_path_NM" != "no"; then
5090  NM="$lt_cv_path_NM"
5091else
5092  # Didn't find any BSD compatible name lister, look for dumpbin.
5093  if test -n "$ac_tool_prefix"; then
5094  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5095  do
5096    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5097set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5099$as_echo_n "checking for $ac_word... " >&6; }
5100if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5101  $as_echo_n "(cached) " >&6
5102else
5103  if test -n "$DUMPBIN"; then
5104  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5105else
5106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107for as_dir in $PATH
5108do
5109  IFS=$as_save_IFS
5110  test -z "$as_dir" && as_dir=.
5111    for ac_exec_ext in '' $ac_executable_extensions; do
5112  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5113    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5114    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5115    break 2
5116  fi
5117done
5118  done
5119IFS=$as_save_IFS
5120
5121fi
5122fi
5123DUMPBIN=$ac_cv_prog_DUMPBIN
5124if test -n "$DUMPBIN"; then
5125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5126$as_echo "$DUMPBIN" >&6; }
5127else
5128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5129$as_echo "no" >&6; }
5130fi
5131
5132
5133    test -n "$DUMPBIN" && break
5134  done
5135fi
5136if test -z "$DUMPBIN"; then
5137  ac_ct_DUMPBIN=$DUMPBIN
5138  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5139do
5140  # Extract the first word of "$ac_prog", so it can be a program name with args.
5141set dummy $ac_prog; ac_word=$2
5142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5143$as_echo_n "checking for $ac_word... " >&6; }
5144if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5145  $as_echo_n "(cached) " >&6
5146else
5147  if test -n "$ac_ct_DUMPBIN"; then
5148  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5149else
5150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151for as_dir in $PATH
5152do
5153  IFS=$as_save_IFS
5154  test -z "$as_dir" && as_dir=.
5155    for ac_exec_ext in '' $ac_executable_extensions; do
5156  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5157    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5158    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5159    break 2
5160  fi
5161done
5162  done
5163IFS=$as_save_IFS
5164
5165fi
5166fi
5167ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5168if test -n "$ac_ct_DUMPBIN"; then
5169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5170$as_echo "$ac_ct_DUMPBIN" >&6; }
5171else
5172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5173$as_echo "no" >&6; }
5174fi
5175
5176
5177  test -n "$ac_ct_DUMPBIN" && break
5178done
5179
5180  if test "x$ac_ct_DUMPBIN" = x; then
5181    DUMPBIN=":"
5182  else
5183    case $cross_compiling:$ac_tool_warned in
5184yes:)
5185{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5186$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5187ac_tool_warned=yes ;;
5188esac
5189    DUMPBIN=$ac_ct_DUMPBIN
5190  fi
5191fi
5192
5193
5194  if test "$DUMPBIN" != ":"; then
5195    NM="$DUMPBIN"
5196  fi
5197fi
5198test -z "$NM" && NM=nm
5199
5200
5201
5202
5203
5204
5205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5206$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5207if test "${lt_cv_nm_interface+set}" = set; then :
5208  $as_echo_n "(cached) " >&6
5209else
5210  lt_cv_nm_interface="BSD nm"
5211  echo "int some_variable = 0;" > conftest.$ac_ext
5212  (eval echo "\"\$as_me:5212: $ac_compile\"" >&5)
5213  (eval "$ac_compile" 2>conftest.err)
5214  cat conftest.err >&5
5215  (eval echo "\"\$as_me:5215: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5216  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5217  cat conftest.err >&5
5218  (eval echo "\"\$as_me:5218: output\"" >&5)
5219  cat conftest.out >&5
5220  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5221    lt_cv_nm_interface="MS dumpbin"
5222  fi
5223  rm -f conftest*
5224fi
5225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5226$as_echo "$lt_cv_nm_interface" >&6; }
5227
5228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5229$as_echo_n "checking whether ln -s works... " >&6; }
5230LN_S=$as_ln_s
5231if test "$LN_S" = "ln -s"; then
5232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5233$as_echo "yes" >&6; }
5234else
5235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5236$as_echo "no, using $LN_S" >&6; }
5237fi
5238
5239# find the maximum length of command line arguments
5240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5241$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5242if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5243  $as_echo_n "(cached) " >&6
5244else
5245    i=0
5246  teststring="ABCD"
5247
5248  case $build_os in
5249  msdosdjgpp*)
5250    # On DJGPP, this test can blow up pretty badly due to problems in libc
5251    # (any single argument exceeding 2000 bytes causes a buffer overrun
5252    # during glob expansion).  Even if it were fixed, the result of this
5253    # check would be larger than it should be.
5254    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5255    ;;
5256
5257  gnu*)
5258    # Under GNU Hurd, this test is not required because there is
5259    # no limit to the length of command line arguments.
5260    # Libtool will interpret -1 as no limit whatsoever
5261    lt_cv_sys_max_cmd_len=-1;
5262    ;;
5263
5264  cygwin* | mingw* | cegcc*)
5265    # On Win9x/ME, this test blows up -- it succeeds, but takes
5266    # about 5 minutes as the teststring grows exponentially.
5267    # Worse, since 9x/ME are not pre-emptively multitasking,
5268    # you end up with a "frozen" computer, even though with patience
5269    # the test eventually succeeds (with a max line length of 256k).
5270    # Instead, let's just punt: use the minimum linelength reported by
5271    # all of the supported platforms: 8192 (on NT/2K/XP).
5272    lt_cv_sys_max_cmd_len=8192;
5273    ;;
5274
5275  amigaos*)
5276    # On AmigaOS with pdksh, this test takes hours, literally.
5277    # So we just punt and use a minimum line length of 8192.
5278    lt_cv_sys_max_cmd_len=8192;
5279    ;;
5280
5281  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5282    # This has been around since 386BSD, at least.  Likely further.
5283    if test -x /sbin/sysctl; then
5284      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5285    elif test -x /usr/sbin/sysctl; then
5286      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5287    else
5288      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5289    fi
5290    # And add a safety zone
5291    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5292    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5293    ;;
5294
5295  interix*)
5296    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5297    lt_cv_sys_max_cmd_len=196608
5298    ;;
5299
5300  osf*)
5301    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5302    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5303    # nice to cause kernel panics so lets avoid the loop below.
5304    # First set a reasonable default.
5305    lt_cv_sys_max_cmd_len=16384
5306    #
5307    if test -x /sbin/sysconfig; then
5308      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5309        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5310      esac
5311    fi
5312    ;;
5313  sco3.2v5*)
5314    lt_cv_sys_max_cmd_len=102400
5315    ;;
5316  sysv5* | sco5v6* | sysv4.2uw2*)
5317    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5318    if test -n "$kargmax"; then
5319      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5320    else
5321      lt_cv_sys_max_cmd_len=32768
5322    fi
5323    ;;
5324  *)
5325    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5326    if test -n "$lt_cv_sys_max_cmd_len"; then
5327      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5328      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5329    else
5330      # Make teststring a little bigger before we do anything with it.
5331      # a 1K string should be a reasonable start.
5332      for i in 1 2 3 4 5 6 7 8 ; do
5333        teststring=$teststring$teststring
5334      done
5335      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5336      # If test is not a shell built-in, we'll probably end up computing a
5337      # maximum length that is only half of the actual maximum length, but
5338      # we can't tell.
5339      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5340	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5341	      test $i != 17 # 1/2 MB should be enough
5342      do
5343        i=`expr $i + 1`
5344        teststring=$teststring$teststring
5345      done
5346      # Only check the string length outside the loop.
5347      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5348      teststring=
5349      # Add a significant safety factor because C++ compilers can tack on
5350      # massive amounts of additional arguments before passing them to the
5351      # linker.  It appears as though 1/2 is a usable value.
5352      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5353    fi
5354    ;;
5355  esac
5356
5357fi
5358
5359if test -n $lt_cv_sys_max_cmd_len ; then
5360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5361$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5362else
5363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5364$as_echo "none" >&6; }
5365fi
5366max_cmd_len=$lt_cv_sys_max_cmd_len
5367
5368
5369
5370
5371
5372
5373: ${CP="cp -f"}
5374: ${MV="mv -f"}
5375: ${RM="rm -f"}
5376
5377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5378$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5379# Try some XSI features
5380xsi_shell=no
5381( _lt_dummy="a/b/c"
5382  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5383      = c,a/b,, \
5384    && eval 'test $(( 1 + 1 )) -eq 2 \
5385    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5386  && xsi_shell=yes
5387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5388$as_echo "$xsi_shell" >&6; }
5389
5390
5391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5392$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5393lt_shell_append=no
5394( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5395    >/dev/null 2>&1 \
5396  && lt_shell_append=yes
5397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5398$as_echo "$lt_shell_append" >&6; }
5399
5400
5401if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5402  lt_unset=unset
5403else
5404  lt_unset=false
5405fi
5406
5407
5408
5409
5410
5411# test EBCDIC or ASCII
5412case `echo X|tr X '\101'` in
5413 A) # ASCII based system
5414    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5415  lt_SP2NL='tr \040 \012'
5416  lt_NL2SP='tr \015\012 \040\040'
5417  ;;
5418 *) # EBCDIC based system
5419  lt_SP2NL='tr \100 \n'
5420  lt_NL2SP='tr \r\n \100\100'
5421  ;;
5422esac
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5433$as_echo_n "checking for $LD option to reload object files... " >&6; }
5434if test "${lt_cv_ld_reload_flag+set}" = set; then :
5435  $as_echo_n "(cached) " >&6
5436else
5437  lt_cv_ld_reload_flag='-r'
5438fi
5439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5440$as_echo "$lt_cv_ld_reload_flag" >&6; }
5441reload_flag=$lt_cv_ld_reload_flag
5442case $reload_flag in
5443"" | " "*) ;;
5444*) reload_flag=" $reload_flag" ;;
5445esac
5446reload_cmds='$LD$reload_flag -o $output$reload_objs'
5447case $host_os in
5448  darwin*)
5449    if test "$GCC" = yes; then
5450      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5451    else
5452      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5453    fi
5454    ;;
5455esac
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465if test -n "$ac_tool_prefix"; then
5466  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5467set dummy ${ac_tool_prefix}objdump; ac_word=$2
5468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5469$as_echo_n "checking for $ac_word... " >&6; }
5470if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5471  $as_echo_n "(cached) " >&6
5472else
5473  if test -n "$OBJDUMP"; then
5474  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5475else
5476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5477for as_dir in $PATH
5478do
5479  IFS=$as_save_IFS
5480  test -z "$as_dir" && as_dir=.
5481    for ac_exec_ext in '' $ac_executable_extensions; do
5482  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5483    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5484    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5485    break 2
5486  fi
5487done
5488  done
5489IFS=$as_save_IFS
5490
5491fi
5492fi
5493OBJDUMP=$ac_cv_prog_OBJDUMP
5494if test -n "$OBJDUMP"; then
5495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5496$as_echo "$OBJDUMP" >&6; }
5497else
5498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5499$as_echo "no" >&6; }
5500fi
5501
5502
5503fi
5504if test -z "$ac_cv_prog_OBJDUMP"; then
5505  ac_ct_OBJDUMP=$OBJDUMP
5506  # Extract the first word of "objdump", so it can be a program name with args.
5507set dummy objdump; ac_word=$2
5508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5509$as_echo_n "checking for $ac_word... " >&6; }
5510if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5511  $as_echo_n "(cached) " >&6
5512else
5513  if test -n "$ac_ct_OBJDUMP"; then
5514  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5515else
5516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517for as_dir in $PATH
5518do
5519  IFS=$as_save_IFS
5520  test -z "$as_dir" && as_dir=.
5521    for ac_exec_ext in '' $ac_executable_extensions; do
5522  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5523    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5524    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5525    break 2
5526  fi
5527done
5528  done
5529IFS=$as_save_IFS
5530
5531fi
5532fi
5533ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5534if test -n "$ac_ct_OBJDUMP"; then
5535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5536$as_echo "$ac_ct_OBJDUMP" >&6; }
5537else
5538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5539$as_echo "no" >&6; }
5540fi
5541
5542  if test "x$ac_ct_OBJDUMP" = x; then
5543    OBJDUMP="false"
5544  else
5545    case $cross_compiling:$ac_tool_warned in
5546yes:)
5547{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5548$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5549ac_tool_warned=yes ;;
5550esac
5551    OBJDUMP=$ac_ct_OBJDUMP
5552  fi
5553else
5554  OBJDUMP="$ac_cv_prog_OBJDUMP"
5555fi
5556
5557test -z "$OBJDUMP" && OBJDUMP=objdump
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5568$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5569if test "${lt_cv_deplibs_check_method+set}" = set; then :
5570  $as_echo_n "(cached) " >&6
5571else
5572  lt_cv_file_magic_cmd='$MAGIC_CMD'
5573lt_cv_file_magic_test_file=
5574lt_cv_deplibs_check_method='unknown'
5575# Need to set the preceding variable on all platforms that support
5576# interlibrary dependencies.
5577# 'none' -- dependencies not supported.
5578# `unknown' -- same as none, but documents that we really don't know.
5579# 'pass_all' -- all dependencies passed with no checks.
5580# 'test_compile' -- check by making test program.
5581# 'file_magic [[regex]]' -- check by looking for files in library path
5582# which responds to the $file_magic_cmd with a given extended regex.
5583# If you have `file' or equivalent on your system and you're not sure
5584# whether `pass_all' will *always* work, you probably want this one.
5585
5586case $host_os in
5587aix[4-9]*)
5588  lt_cv_deplibs_check_method=pass_all
5589  ;;
5590
5591beos*)
5592  lt_cv_deplibs_check_method=pass_all
5593  ;;
5594
5595bsdi[45]*)
5596  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5597  lt_cv_file_magic_cmd='/usr/bin/file -L'
5598  lt_cv_file_magic_test_file=/shlib/libc.so
5599  ;;
5600
5601cygwin*)
5602  # func_win32_libid is a shell function defined in ltmain.sh
5603  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5604  lt_cv_file_magic_cmd='func_win32_libid'
5605  ;;
5606
5607mingw* | pw32*)
5608  # Base MSYS/MinGW do not provide the 'file' command needed by
5609  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5610  # unless we find 'file', for example because we are cross-compiling.
5611  if ( file / ) >/dev/null 2>&1; then
5612    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5613    lt_cv_file_magic_cmd='func_win32_libid'
5614  else
5615    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5616    lt_cv_file_magic_cmd='$OBJDUMP -f'
5617  fi
5618  ;;
5619
5620cegcc)
5621  # use the weaker test based on 'objdump'. See mingw*.
5622  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5623  lt_cv_file_magic_cmd='$OBJDUMP -f'
5624  ;;
5625
5626darwin* | rhapsody*)
5627  lt_cv_deplibs_check_method=pass_all
5628  ;;
5629
5630freebsd* | dragonfly*)
5631  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5632    case $host_cpu in
5633    i*86 )
5634      # Not sure whether the presence of OpenBSD here was a mistake.
5635      # Let's accept both of them until this is cleared up.
5636      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5637      lt_cv_file_magic_cmd=/usr/bin/file
5638      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5639      ;;
5640    esac
5641  else
5642    lt_cv_deplibs_check_method=pass_all
5643  fi
5644  ;;
5645
5646gnu*)
5647  lt_cv_deplibs_check_method=pass_all
5648  ;;
5649
5650hpux10.20* | hpux11*)
5651  lt_cv_file_magic_cmd=/usr/bin/file
5652  case $host_cpu in
5653  ia64*)
5654    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5655    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5656    ;;
5657  hppa*64*)
5658    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]'
5659    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5660    ;;
5661  *)
5662    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5663    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5664    ;;
5665  esac
5666  ;;
5667
5668interix[3-9]*)
5669  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5670  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5671  ;;
5672
5673irix5* | irix6* | nonstopux*)
5674  case $LD in
5675  *-32|*"-32 ") libmagic=32-bit;;
5676  *-n32|*"-n32 ") libmagic=N32;;
5677  *-64|*"-64 ") libmagic=64-bit;;
5678  *) libmagic=never-match;;
5679  esac
5680  lt_cv_deplibs_check_method=pass_all
5681  ;;
5682
5683# This must be Linux ELF.
5684linux* | k*bsd*-gnu | kopensolaris*-gnu)
5685  lt_cv_deplibs_check_method=pass_all
5686  ;;
5687
5688netbsd* | netbsdelf*-gnu)
5689  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5690    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5691  else
5692    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5693  fi
5694  ;;
5695
5696newos6*)
5697  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5698  lt_cv_file_magic_cmd=/usr/bin/file
5699  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5700  ;;
5701
5702*nto* | *qnx*)
5703  lt_cv_deplibs_check_method=pass_all
5704  ;;
5705
5706openbsd*)
5707  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5708    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5709  else
5710    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5711  fi
5712  ;;
5713
5714osf3* | osf4* | osf5*)
5715  lt_cv_deplibs_check_method=pass_all
5716  ;;
5717
5718rdos*)
5719  lt_cv_deplibs_check_method=pass_all
5720  ;;
5721
5722solaris*)
5723  lt_cv_deplibs_check_method=pass_all
5724  ;;
5725
5726sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5727  lt_cv_deplibs_check_method=pass_all
5728  ;;
5729
5730sysv4 | sysv4.3*)
5731  case $host_vendor in
5732  motorola)
5733    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]'
5734    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5735    ;;
5736  ncr)
5737    lt_cv_deplibs_check_method=pass_all
5738    ;;
5739  sequent)
5740    lt_cv_file_magic_cmd='/bin/file'
5741    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5742    ;;
5743  sni)
5744    lt_cv_file_magic_cmd='/bin/file'
5745    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5746    lt_cv_file_magic_test_file=/lib/libc.so
5747    ;;
5748  siemens)
5749    lt_cv_deplibs_check_method=pass_all
5750    ;;
5751  pc)
5752    lt_cv_deplibs_check_method=pass_all
5753    ;;
5754  esac
5755  ;;
5756
5757tpf*)
5758  lt_cv_deplibs_check_method=pass_all
5759  ;;
5760esac
5761
5762fi
5763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5764$as_echo "$lt_cv_deplibs_check_method" >&6; }
5765file_magic_cmd=$lt_cv_file_magic_cmd
5766deplibs_check_method=$lt_cv_deplibs_check_method
5767test -z "$deplibs_check_method" && deplibs_check_method=unknown
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780if test -n "$ac_tool_prefix"; then
5781  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5782set dummy ${ac_tool_prefix}ar; ac_word=$2
5783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5784$as_echo_n "checking for $ac_word... " >&6; }
5785if test "${ac_cv_prog_AR+set}" = set; then :
5786  $as_echo_n "(cached) " >&6
5787else
5788  if test -n "$AR"; then
5789  ac_cv_prog_AR="$AR" # Let the user override the test.
5790else
5791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5792for as_dir in $PATH
5793do
5794  IFS=$as_save_IFS
5795  test -z "$as_dir" && as_dir=.
5796    for ac_exec_ext in '' $ac_executable_extensions; do
5797  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5798    ac_cv_prog_AR="${ac_tool_prefix}ar"
5799    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5800    break 2
5801  fi
5802done
5803  done
5804IFS=$as_save_IFS
5805
5806fi
5807fi
5808AR=$ac_cv_prog_AR
5809if test -n "$AR"; then
5810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5811$as_echo "$AR" >&6; }
5812else
5813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5814$as_echo "no" >&6; }
5815fi
5816
5817
5818fi
5819if test -z "$ac_cv_prog_AR"; then
5820  ac_ct_AR=$AR
5821  # Extract the first word of "ar", so it can be a program name with args.
5822set dummy ar; ac_word=$2
5823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5824$as_echo_n "checking for $ac_word... " >&6; }
5825if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5826  $as_echo_n "(cached) " >&6
5827else
5828  if test -n "$ac_ct_AR"; then
5829  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5830else
5831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832for as_dir in $PATH
5833do
5834  IFS=$as_save_IFS
5835  test -z "$as_dir" && as_dir=.
5836    for ac_exec_ext in '' $ac_executable_extensions; do
5837  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5838    ac_cv_prog_ac_ct_AR="ar"
5839    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5840    break 2
5841  fi
5842done
5843  done
5844IFS=$as_save_IFS
5845
5846fi
5847fi
5848ac_ct_AR=$ac_cv_prog_ac_ct_AR
5849if test -n "$ac_ct_AR"; then
5850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5851$as_echo "$ac_ct_AR" >&6; }
5852else
5853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5854$as_echo "no" >&6; }
5855fi
5856
5857  if test "x$ac_ct_AR" = x; then
5858    AR="false"
5859  else
5860    case $cross_compiling:$ac_tool_warned in
5861yes:)
5862{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5863$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5864ac_tool_warned=yes ;;
5865esac
5866    AR=$ac_ct_AR
5867  fi
5868else
5869  AR="$ac_cv_prog_AR"
5870fi
5871
5872test -z "$AR" && AR=ar
5873test -z "$AR_FLAGS" && AR_FLAGS=cru
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885if test -n "$ac_tool_prefix"; then
5886  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5887set dummy ${ac_tool_prefix}strip; ac_word=$2
5888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5889$as_echo_n "checking for $ac_word... " >&6; }
5890if test "${ac_cv_prog_STRIP+set}" = set; then :
5891  $as_echo_n "(cached) " >&6
5892else
5893  if test -n "$STRIP"; then
5894  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5895else
5896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897for as_dir in $PATH
5898do
5899  IFS=$as_save_IFS
5900  test -z "$as_dir" && as_dir=.
5901    for ac_exec_ext in '' $ac_executable_extensions; do
5902  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5903    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5904    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5905    break 2
5906  fi
5907done
5908  done
5909IFS=$as_save_IFS
5910
5911fi
5912fi
5913STRIP=$ac_cv_prog_STRIP
5914if test -n "$STRIP"; then
5915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5916$as_echo "$STRIP" >&6; }
5917else
5918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5919$as_echo "no" >&6; }
5920fi
5921
5922
5923fi
5924if test -z "$ac_cv_prog_STRIP"; then
5925  ac_ct_STRIP=$STRIP
5926  # Extract the first word of "strip", so it can be a program name with args.
5927set dummy strip; ac_word=$2
5928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5929$as_echo_n "checking for $ac_word... " >&6; }
5930if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5931  $as_echo_n "(cached) " >&6
5932else
5933  if test -n "$ac_ct_STRIP"; then
5934  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5935else
5936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937for as_dir in $PATH
5938do
5939  IFS=$as_save_IFS
5940  test -z "$as_dir" && as_dir=.
5941    for ac_exec_ext in '' $ac_executable_extensions; do
5942  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5943    ac_cv_prog_ac_ct_STRIP="strip"
5944    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5945    break 2
5946  fi
5947done
5948  done
5949IFS=$as_save_IFS
5950
5951fi
5952fi
5953ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5954if test -n "$ac_ct_STRIP"; then
5955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5956$as_echo "$ac_ct_STRIP" >&6; }
5957else
5958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5959$as_echo "no" >&6; }
5960fi
5961
5962  if test "x$ac_ct_STRIP" = x; then
5963    STRIP=":"
5964  else
5965    case $cross_compiling:$ac_tool_warned in
5966yes:)
5967{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5968$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5969ac_tool_warned=yes ;;
5970esac
5971    STRIP=$ac_ct_STRIP
5972  fi
5973else
5974  STRIP="$ac_cv_prog_STRIP"
5975fi
5976
5977test -z "$STRIP" && STRIP=:
5978
5979
5980
5981
5982
5983
5984if test -n "$ac_tool_prefix"; then
5985  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5986set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5988$as_echo_n "checking for $ac_word... " >&6; }
5989if test "${ac_cv_prog_RANLIB+set}" = set; then :
5990  $as_echo_n "(cached) " >&6
5991else
5992  if test -n "$RANLIB"; then
5993  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5994else
5995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996for as_dir in $PATH
5997do
5998  IFS=$as_save_IFS
5999  test -z "$as_dir" && as_dir=.
6000    for ac_exec_ext in '' $ac_executable_extensions; do
6001  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6002    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6003    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6004    break 2
6005  fi
6006done
6007  done
6008IFS=$as_save_IFS
6009
6010fi
6011fi
6012RANLIB=$ac_cv_prog_RANLIB
6013if test -n "$RANLIB"; then
6014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6015$as_echo "$RANLIB" >&6; }
6016else
6017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6018$as_echo "no" >&6; }
6019fi
6020
6021
6022fi
6023if test -z "$ac_cv_prog_RANLIB"; then
6024  ac_ct_RANLIB=$RANLIB
6025  # Extract the first word of "ranlib", so it can be a program name with args.
6026set dummy ranlib; ac_word=$2
6027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6028$as_echo_n "checking for $ac_word... " >&6; }
6029if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6030  $as_echo_n "(cached) " >&6
6031else
6032  if test -n "$ac_ct_RANLIB"; then
6033  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6034else
6035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036for as_dir in $PATH
6037do
6038  IFS=$as_save_IFS
6039  test -z "$as_dir" && as_dir=.
6040    for ac_exec_ext in '' $ac_executable_extensions; do
6041  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6042    ac_cv_prog_ac_ct_RANLIB="ranlib"
6043    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6044    break 2
6045  fi
6046done
6047  done
6048IFS=$as_save_IFS
6049
6050fi
6051fi
6052ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6053if test -n "$ac_ct_RANLIB"; then
6054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6055$as_echo "$ac_ct_RANLIB" >&6; }
6056else
6057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6058$as_echo "no" >&6; }
6059fi
6060
6061  if test "x$ac_ct_RANLIB" = x; then
6062    RANLIB=":"
6063  else
6064    case $cross_compiling:$ac_tool_warned in
6065yes:)
6066{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6067$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6068ac_tool_warned=yes ;;
6069esac
6070    RANLIB=$ac_ct_RANLIB
6071  fi
6072else
6073  RANLIB="$ac_cv_prog_RANLIB"
6074fi
6075
6076test -z "$RANLIB" && RANLIB=:
6077
6078
6079
6080
6081
6082
6083# Determine commands to create old-style static archives.
6084old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6085old_postinstall_cmds='chmod 644 $oldlib'
6086old_postuninstall_cmds=
6087
6088if test -n "$RANLIB"; then
6089  case $host_os in
6090  openbsd*)
6091    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6092    ;;
6093  *)
6094    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6095    ;;
6096  esac
6097  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6098fi
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133# If no C compiler was specified, use CC.
6134LTCC=${LTCC-"$CC"}
6135
6136# If no C compiler flags were specified, use CFLAGS.
6137LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6138
6139# Allow CC to be a program name with arguments.
6140compiler=$CC
6141
6142
6143# Check for command to grab the raw symbol name followed by C symbol from nm.
6144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6145$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6146if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6147  $as_echo_n "(cached) " >&6
6148else
6149
6150# These are sane defaults that work on at least a few old systems.
6151# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6152
6153# Character class describing NM global symbol codes.
6154symcode='[BCDEGRST]'
6155
6156# Regexp to match symbols that can be accessed directly from C.
6157sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6158
6159# Define system-specific variables.
6160case $host_os in
6161aix*)
6162  symcode='[BCDT]'
6163  ;;
6164cygwin* | mingw* | pw32* | cegcc*)
6165  symcode='[ABCDGISTW]'
6166  ;;
6167hpux*)
6168  if test "$host_cpu" = ia64; then
6169    symcode='[ABCDEGRST]'
6170  fi
6171  ;;
6172irix* | nonstopux*)
6173  symcode='[BCDEGRST]'
6174  ;;
6175osf*)
6176  symcode='[BCDEGQRST]'
6177  ;;
6178solaris*)
6179  symcode='[BDRT]'
6180  ;;
6181sco3.2v5*)
6182  symcode='[DT]'
6183  ;;
6184sysv4.2uw2*)
6185  symcode='[DT]'
6186  ;;
6187sysv5* | sco5v6* | unixware* | OpenUNIX*)
6188  symcode='[ABDT]'
6189  ;;
6190sysv4)
6191  symcode='[DFNSTU]'
6192  ;;
6193esac
6194
6195# If we're using GNU nm, then use its standard symbol codes.
6196case `$NM -V 2>&1` in
6197*GNU* | *'with BFD'*)
6198  symcode='[ABCDGIRSTW]' ;;
6199esac
6200
6201# Transform an extracted symbol line into a proper C declaration.
6202# Some systems (esp. on ia64) link data and code symbols differently,
6203# so use this general approach.
6204lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6205
6206# Transform an extracted symbol line into symbol name and symbol address
6207lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6208lt_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'"
6209
6210# Handle CRLF in mingw tool chain
6211opt_cr=
6212case $build_os in
6213mingw*)
6214  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6215  ;;
6216esac
6217
6218# Try without a prefix underscore, then with it.
6219for ac_symprfx in "" "_"; do
6220
6221  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6222  symxfrm="\\1 $ac_symprfx\\2 \\2"
6223
6224  # Write the raw and C identifiers.
6225  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6226    # Fake it for dumpbin and say T for any non-static function
6227    # and D for any global variable.
6228    # Also find C++ and __fastcall symbols from MSVC++,
6229    # which start with @ or ?.
6230    lt_cv_sys_global_symbol_pipe="$AWK '"\
6231"     {last_section=section; section=\$ 3};"\
6232"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6233"     \$ 0!~/External *\|/{next};"\
6234"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6235"     {if(hide[section]) next};"\
6236"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6237"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6238"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6239"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6240"     ' prfx=^$ac_symprfx"
6241  else
6242    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6243  fi
6244
6245  # Check to see that the pipe works correctly.
6246  pipe_works=no
6247
6248  rm -f conftest*
6249  cat > conftest.$ac_ext <<_LT_EOF
6250#ifdef __cplusplus
6251extern "C" {
6252#endif
6253char nm_test_var;
6254void nm_test_func(void);
6255void nm_test_func(void){}
6256#ifdef __cplusplus
6257}
6258#endif
6259int main(){nm_test_var='a';nm_test_func();return(0);}
6260_LT_EOF
6261
6262  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6263  (eval $ac_compile) 2>&5
6264  ac_status=$?
6265  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6266  test $ac_status = 0; }; then
6267    # Now try to grab the symbols.
6268    nlist=conftest.nm
6269    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6270  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6271  ac_status=$?
6272  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6273  test $ac_status = 0; } && test -s "$nlist"; then
6274      # Try sorting and uniquifying the output.
6275      if sort "$nlist" | uniq > "$nlist"T; then
6276	mv -f "$nlist"T "$nlist"
6277      else
6278	rm -f "$nlist"T
6279      fi
6280
6281      # Make sure that we snagged all the symbols we need.
6282      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6283	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6284	  cat <<_LT_EOF > conftest.$ac_ext
6285#ifdef __cplusplus
6286extern "C" {
6287#endif
6288
6289_LT_EOF
6290	  # Now generate the symbol file.
6291	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6292
6293	  cat <<_LT_EOF >> conftest.$ac_ext
6294
6295/* The mapping between symbol names and symbols.  */
6296const struct {
6297  const char *name;
6298  void       *address;
6299}
6300lt__PROGRAM__LTX_preloaded_symbols[] =
6301{
6302  { "@PROGRAM@", (void *) 0 },
6303_LT_EOF
6304	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6305	  cat <<\_LT_EOF >> conftest.$ac_ext
6306  {0, (void *) 0}
6307};
6308
6309/* This works around a problem in FreeBSD linker */
6310#ifdef FREEBSD_WORKAROUND
6311static const void *lt_preloaded_setup() {
6312  return lt__PROGRAM__LTX_preloaded_symbols;
6313}
6314#endif
6315
6316#ifdef __cplusplus
6317}
6318#endif
6319_LT_EOF
6320	  # Now try linking the two files.
6321	  mv conftest.$ac_objext conftstm.$ac_objext
6322	  lt_save_LIBS="$LIBS"
6323	  lt_save_CFLAGS="$CFLAGS"
6324	  LIBS="conftstm.$ac_objext"
6325	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6326	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6327  (eval $ac_link) 2>&5
6328  ac_status=$?
6329  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6330  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6331	    pipe_works=yes
6332	  fi
6333	  LIBS="$lt_save_LIBS"
6334	  CFLAGS="$lt_save_CFLAGS"
6335	else
6336	  echo "cannot find nm_test_func in $nlist" >&5
6337	fi
6338      else
6339	echo "cannot find nm_test_var in $nlist" >&5
6340      fi
6341    else
6342      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6343    fi
6344  else
6345    echo "$progname: failed program was:" >&5
6346    cat conftest.$ac_ext >&5
6347  fi
6348  rm -rf conftest* conftst*
6349
6350  # Do not use the global_symbol_pipe unless it works.
6351  if test "$pipe_works" = yes; then
6352    break
6353  else
6354    lt_cv_sys_global_symbol_pipe=
6355  fi
6356done
6357
6358fi
6359
6360if test -z "$lt_cv_sys_global_symbol_pipe"; then
6361  lt_cv_sys_global_symbol_to_cdecl=
6362fi
6363if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6365$as_echo "failed" >&6; }
6366else
6367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6368$as_echo "ok" >&6; }
6369fi
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393# Check whether --enable-libtool-lock was given.
6394if test "${enable_libtool_lock+set}" = set; then :
6395  enableval=$enable_libtool_lock;
6396fi
6397
6398test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6399
6400# Some flags need to be propagated to the compiler or linker for good
6401# libtool support.
6402case $host in
6403ia64-*-hpux*)
6404  # Find out which ABI we are using.
6405  echo 'int i;' > conftest.$ac_ext
6406  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6407  (eval $ac_compile) 2>&5
6408  ac_status=$?
6409  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6410  test $ac_status = 0; }; then
6411    case `/usr/bin/file conftest.$ac_objext` in
6412      *ELF-32*)
6413	HPUX_IA64_MODE="32"
6414	;;
6415      *ELF-64*)
6416	HPUX_IA64_MODE="64"
6417	;;
6418    esac
6419  fi
6420  rm -rf conftest*
6421  ;;
6422*-*-irix6*)
6423  # Find out which ABI we are using.
6424  echo '#line 6424 "configure"' > conftest.$ac_ext
6425  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6426  (eval $ac_compile) 2>&5
6427  ac_status=$?
6428  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6429  test $ac_status = 0; }; then
6430    if test "$lt_cv_prog_gnu_ld" = yes; then
6431      case `/usr/bin/file conftest.$ac_objext` in
6432	*32-bit*)
6433	  LD="${LD-ld} -melf32bsmip"
6434	  ;;
6435	*N32*)
6436	  LD="${LD-ld} -melf32bmipn32"
6437	  ;;
6438	*64-bit*)
6439	  LD="${LD-ld} -melf64bmip"
6440	;;
6441      esac
6442    else
6443      case `/usr/bin/file conftest.$ac_objext` in
6444	*32-bit*)
6445	  LD="${LD-ld} -32"
6446	  ;;
6447	*N32*)
6448	  LD="${LD-ld} -n32"
6449	  ;;
6450	*64-bit*)
6451	  LD="${LD-ld} -64"
6452	  ;;
6453      esac
6454    fi
6455  fi
6456  rm -rf conftest*
6457  ;;
6458
6459x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6460s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6461  # Find out which ABI we are using.
6462  echo 'int i;' > conftest.$ac_ext
6463  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6464  (eval $ac_compile) 2>&5
6465  ac_status=$?
6466  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6467  test $ac_status = 0; }; then
6468    case `/usr/bin/file conftest.o` in
6469      *32-bit*)
6470	case $host in
6471	  x86_64-*kfreebsd*-gnu)
6472	    LD="${LD-ld} -m elf_i386_fbsd"
6473	    ;;
6474	  x86_64-*linux*)
6475	    LD="${LD-ld} -m elf_i386"
6476	    ;;
6477	  ppc64-*linux*|powerpc64-*linux*)
6478	    LD="${LD-ld} -m elf32ppclinux"
6479	    ;;
6480	  s390x-*linux*)
6481	    LD="${LD-ld} -m elf_s390"
6482	    ;;
6483	  sparc64-*linux*)
6484	    LD="${LD-ld} -m elf32_sparc"
6485	    ;;
6486	esac
6487	;;
6488      *64-bit*)
6489	case $host in
6490	  x86_64-*kfreebsd*-gnu)
6491	    LD="${LD-ld} -m elf_x86_64_fbsd"
6492	    ;;
6493	  x86_64-*linux*)
6494	    LD="${LD-ld} -m elf_x86_64"
6495	    ;;
6496	  ppc*-*linux*|powerpc*-*linux*)
6497	    LD="${LD-ld} -m elf64ppc"
6498	    ;;
6499	  s390*-*linux*|s390*-*tpf*)
6500	    LD="${LD-ld} -m elf64_s390"
6501	    ;;
6502	  sparc*-*linux*)
6503	    LD="${LD-ld} -m elf64_sparc"
6504	    ;;
6505	esac
6506	;;
6507    esac
6508  fi
6509  rm -rf conftest*
6510  ;;
6511
6512*-*-sco3.2v5*)
6513  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6514  SAVE_CFLAGS="$CFLAGS"
6515  CFLAGS="$CFLAGS -belf"
6516  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6517$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6518if test "${lt_cv_cc_needs_belf+set}" = set; then :
6519  $as_echo_n "(cached) " >&6
6520else
6521  ac_ext=c
6522ac_cpp='$CPP $CPPFLAGS'
6523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6525ac_compiler_gnu=$ac_cv_c_compiler_gnu
6526
6527     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6528/* end confdefs.h.  */
6529
6530int
6531main ()
6532{
6533
6534  ;
6535  return 0;
6536}
6537_ACEOF
6538if ac_fn_c_try_link "$LINENO"; then :
6539  lt_cv_cc_needs_belf=yes
6540else
6541  lt_cv_cc_needs_belf=no
6542fi
6543rm -f core conftest.err conftest.$ac_objext \
6544    conftest$ac_exeext conftest.$ac_ext
6545     ac_ext=c
6546ac_cpp='$CPP $CPPFLAGS'
6547ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6548ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6549ac_compiler_gnu=$ac_cv_c_compiler_gnu
6550
6551fi
6552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6553$as_echo "$lt_cv_cc_needs_belf" >&6; }
6554  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6555    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6556    CFLAGS="$SAVE_CFLAGS"
6557  fi
6558  ;;
6559sparc*-*solaris*)
6560  # Find out which ABI we are using.
6561  echo 'int i;' > conftest.$ac_ext
6562  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6563  (eval $ac_compile) 2>&5
6564  ac_status=$?
6565  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6566  test $ac_status = 0; }; then
6567    case `/usr/bin/file conftest.o` in
6568    *64-bit*)
6569      case $lt_cv_prog_gnu_ld in
6570      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6571      *)
6572	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6573	  LD="${LD-ld} -64"
6574	fi
6575	;;
6576      esac
6577      ;;
6578    esac
6579  fi
6580  rm -rf conftest*
6581  ;;
6582esac
6583
6584need_locks="$enable_libtool_lock"
6585
6586
6587  case $host_os in
6588    rhapsody* | darwin*)
6589    if test -n "$ac_tool_prefix"; then
6590  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6591set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6593$as_echo_n "checking for $ac_word... " >&6; }
6594if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6595  $as_echo_n "(cached) " >&6
6596else
6597  if test -n "$DSYMUTIL"; then
6598  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6599else
6600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601for as_dir in $PATH
6602do
6603  IFS=$as_save_IFS
6604  test -z "$as_dir" && as_dir=.
6605    for ac_exec_ext in '' $ac_executable_extensions; do
6606  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6607    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6608    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6609    break 2
6610  fi
6611done
6612  done
6613IFS=$as_save_IFS
6614
6615fi
6616fi
6617DSYMUTIL=$ac_cv_prog_DSYMUTIL
6618if test -n "$DSYMUTIL"; then
6619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6620$as_echo "$DSYMUTIL" >&6; }
6621else
6622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6623$as_echo "no" >&6; }
6624fi
6625
6626
6627fi
6628if test -z "$ac_cv_prog_DSYMUTIL"; then
6629  ac_ct_DSYMUTIL=$DSYMUTIL
6630  # Extract the first word of "dsymutil", so it can be a program name with args.
6631set dummy dsymutil; ac_word=$2
6632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6633$as_echo_n "checking for $ac_word... " >&6; }
6634if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6635  $as_echo_n "(cached) " >&6
6636else
6637  if test -n "$ac_ct_DSYMUTIL"; then
6638  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6639else
6640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641for as_dir in $PATH
6642do
6643  IFS=$as_save_IFS
6644  test -z "$as_dir" && as_dir=.
6645    for ac_exec_ext in '' $ac_executable_extensions; do
6646  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6647    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6648    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6649    break 2
6650  fi
6651done
6652  done
6653IFS=$as_save_IFS
6654
6655fi
6656fi
6657ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6658if test -n "$ac_ct_DSYMUTIL"; then
6659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6660$as_echo "$ac_ct_DSYMUTIL" >&6; }
6661else
6662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6663$as_echo "no" >&6; }
6664fi
6665
6666  if test "x$ac_ct_DSYMUTIL" = x; then
6667    DSYMUTIL=":"
6668  else
6669    case $cross_compiling:$ac_tool_warned in
6670yes:)
6671{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6672$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6673ac_tool_warned=yes ;;
6674esac
6675    DSYMUTIL=$ac_ct_DSYMUTIL
6676  fi
6677else
6678  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6679fi
6680
6681    if test -n "$ac_tool_prefix"; then
6682  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6683set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6685$as_echo_n "checking for $ac_word... " >&6; }
6686if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6687  $as_echo_n "(cached) " >&6
6688else
6689  if test -n "$NMEDIT"; then
6690  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6691else
6692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693for as_dir in $PATH
6694do
6695  IFS=$as_save_IFS
6696  test -z "$as_dir" && as_dir=.
6697    for ac_exec_ext in '' $ac_executable_extensions; do
6698  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6699    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6700    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6701    break 2
6702  fi
6703done
6704  done
6705IFS=$as_save_IFS
6706
6707fi
6708fi
6709NMEDIT=$ac_cv_prog_NMEDIT
6710if test -n "$NMEDIT"; then
6711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6712$as_echo "$NMEDIT" >&6; }
6713else
6714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6715$as_echo "no" >&6; }
6716fi
6717
6718
6719fi
6720if test -z "$ac_cv_prog_NMEDIT"; then
6721  ac_ct_NMEDIT=$NMEDIT
6722  # Extract the first word of "nmedit", so it can be a program name with args.
6723set dummy nmedit; ac_word=$2
6724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6725$as_echo_n "checking for $ac_word... " >&6; }
6726if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6727  $as_echo_n "(cached) " >&6
6728else
6729  if test -n "$ac_ct_NMEDIT"; then
6730  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6731else
6732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733for as_dir in $PATH
6734do
6735  IFS=$as_save_IFS
6736  test -z "$as_dir" && as_dir=.
6737    for ac_exec_ext in '' $ac_executable_extensions; do
6738  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6739    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6740    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6741    break 2
6742  fi
6743done
6744  done
6745IFS=$as_save_IFS
6746
6747fi
6748fi
6749ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6750if test -n "$ac_ct_NMEDIT"; then
6751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6752$as_echo "$ac_ct_NMEDIT" >&6; }
6753else
6754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6755$as_echo "no" >&6; }
6756fi
6757
6758  if test "x$ac_ct_NMEDIT" = x; then
6759    NMEDIT=":"
6760  else
6761    case $cross_compiling:$ac_tool_warned in
6762yes:)
6763{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6764$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6765ac_tool_warned=yes ;;
6766esac
6767    NMEDIT=$ac_ct_NMEDIT
6768  fi
6769else
6770  NMEDIT="$ac_cv_prog_NMEDIT"
6771fi
6772
6773    if test -n "$ac_tool_prefix"; then
6774  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6775set dummy ${ac_tool_prefix}lipo; ac_word=$2
6776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6777$as_echo_n "checking for $ac_word... " >&6; }
6778if test "${ac_cv_prog_LIPO+set}" = set; then :
6779  $as_echo_n "(cached) " >&6
6780else
6781  if test -n "$LIPO"; then
6782  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6783else
6784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785for as_dir in $PATH
6786do
6787  IFS=$as_save_IFS
6788  test -z "$as_dir" && as_dir=.
6789    for ac_exec_ext in '' $ac_executable_extensions; do
6790  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6791    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6792    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6793    break 2
6794  fi
6795done
6796  done
6797IFS=$as_save_IFS
6798
6799fi
6800fi
6801LIPO=$ac_cv_prog_LIPO
6802if test -n "$LIPO"; then
6803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6804$as_echo "$LIPO" >&6; }
6805else
6806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807$as_echo "no" >&6; }
6808fi
6809
6810
6811fi
6812if test -z "$ac_cv_prog_LIPO"; then
6813  ac_ct_LIPO=$LIPO
6814  # Extract the first word of "lipo", so it can be a program name with args.
6815set dummy lipo; ac_word=$2
6816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6817$as_echo_n "checking for $ac_word... " >&6; }
6818if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6819  $as_echo_n "(cached) " >&6
6820else
6821  if test -n "$ac_ct_LIPO"; then
6822  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6823else
6824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825for as_dir in $PATH
6826do
6827  IFS=$as_save_IFS
6828  test -z "$as_dir" && as_dir=.
6829    for ac_exec_ext in '' $ac_executable_extensions; do
6830  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6831    ac_cv_prog_ac_ct_LIPO="lipo"
6832    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6833    break 2
6834  fi
6835done
6836  done
6837IFS=$as_save_IFS
6838
6839fi
6840fi
6841ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6842if test -n "$ac_ct_LIPO"; then
6843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6844$as_echo "$ac_ct_LIPO" >&6; }
6845else
6846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6847$as_echo "no" >&6; }
6848fi
6849
6850  if test "x$ac_ct_LIPO" = x; then
6851    LIPO=":"
6852  else
6853    case $cross_compiling:$ac_tool_warned in
6854yes:)
6855{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6856$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6857ac_tool_warned=yes ;;
6858esac
6859    LIPO=$ac_ct_LIPO
6860  fi
6861else
6862  LIPO="$ac_cv_prog_LIPO"
6863fi
6864
6865    if test -n "$ac_tool_prefix"; then
6866  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6867set dummy ${ac_tool_prefix}otool; ac_word=$2
6868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6869$as_echo_n "checking for $ac_word... " >&6; }
6870if test "${ac_cv_prog_OTOOL+set}" = set; then :
6871  $as_echo_n "(cached) " >&6
6872else
6873  if test -n "$OTOOL"; then
6874  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6875else
6876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877for as_dir in $PATH
6878do
6879  IFS=$as_save_IFS
6880  test -z "$as_dir" && as_dir=.
6881    for ac_exec_ext in '' $ac_executable_extensions; do
6882  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6883    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6884    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6885    break 2
6886  fi
6887done
6888  done
6889IFS=$as_save_IFS
6890
6891fi
6892fi
6893OTOOL=$ac_cv_prog_OTOOL
6894if test -n "$OTOOL"; then
6895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6896$as_echo "$OTOOL" >&6; }
6897else
6898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6899$as_echo "no" >&6; }
6900fi
6901
6902
6903fi
6904if test -z "$ac_cv_prog_OTOOL"; then
6905  ac_ct_OTOOL=$OTOOL
6906  # Extract the first word of "otool", so it can be a program name with args.
6907set dummy otool; ac_word=$2
6908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6909$as_echo_n "checking for $ac_word... " >&6; }
6910if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6911  $as_echo_n "(cached) " >&6
6912else
6913  if test -n "$ac_ct_OTOOL"; then
6914  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6915else
6916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6917for as_dir in $PATH
6918do
6919  IFS=$as_save_IFS
6920  test -z "$as_dir" && as_dir=.
6921    for ac_exec_ext in '' $ac_executable_extensions; do
6922  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6923    ac_cv_prog_ac_ct_OTOOL="otool"
6924    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6925    break 2
6926  fi
6927done
6928  done
6929IFS=$as_save_IFS
6930
6931fi
6932fi
6933ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6934if test -n "$ac_ct_OTOOL"; then
6935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6936$as_echo "$ac_ct_OTOOL" >&6; }
6937else
6938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6939$as_echo "no" >&6; }
6940fi
6941
6942  if test "x$ac_ct_OTOOL" = x; then
6943    OTOOL=":"
6944  else
6945    case $cross_compiling:$ac_tool_warned in
6946yes:)
6947{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6948$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6949ac_tool_warned=yes ;;
6950esac
6951    OTOOL=$ac_ct_OTOOL
6952  fi
6953else
6954  OTOOL="$ac_cv_prog_OTOOL"
6955fi
6956
6957    if test -n "$ac_tool_prefix"; then
6958  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6959set dummy ${ac_tool_prefix}otool64; ac_word=$2
6960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6961$as_echo_n "checking for $ac_word... " >&6; }
6962if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6963  $as_echo_n "(cached) " >&6
6964else
6965  if test -n "$OTOOL64"; then
6966  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6967else
6968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6969for as_dir in $PATH
6970do
6971  IFS=$as_save_IFS
6972  test -z "$as_dir" && as_dir=.
6973    for ac_exec_ext in '' $ac_executable_extensions; do
6974  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6975    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6976    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6977    break 2
6978  fi
6979done
6980  done
6981IFS=$as_save_IFS
6982
6983fi
6984fi
6985OTOOL64=$ac_cv_prog_OTOOL64
6986if test -n "$OTOOL64"; then
6987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6988$as_echo "$OTOOL64" >&6; }
6989else
6990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6991$as_echo "no" >&6; }
6992fi
6993
6994
6995fi
6996if test -z "$ac_cv_prog_OTOOL64"; then
6997  ac_ct_OTOOL64=$OTOOL64
6998  # Extract the first word of "otool64", so it can be a program name with args.
6999set dummy otool64; ac_word=$2
7000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7001$as_echo_n "checking for $ac_word... " >&6; }
7002if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7003  $as_echo_n "(cached) " >&6
7004else
7005  if test -n "$ac_ct_OTOOL64"; then
7006  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7007else
7008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7009for as_dir in $PATH
7010do
7011  IFS=$as_save_IFS
7012  test -z "$as_dir" && as_dir=.
7013    for ac_exec_ext in '' $ac_executable_extensions; do
7014  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7015    ac_cv_prog_ac_ct_OTOOL64="otool64"
7016    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7017    break 2
7018  fi
7019done
7020  done
7021IFS=$as_save_IFS
7022
7023fi
7024fi
7025ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7026if test -n "$ac_ct_OTOOL64"; then
7027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7028$as_echo "$ac_ct_OTOOL64" >&6; }
7029else
7030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7031$as_echo "no" >&6; }
7032fi
7033
7034  if test "x$ac_ct_OTOOL64" = x; then
7035    OTOOL64=":"
7036  else
7037    case $cross_compiling:$ac_tool_warned in
7038yes:)
7039{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7040$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7041ac_tool_warned=yes ;;
7042esac
7043    OTOOL64=$ac_ct_OTOOL64
7044  fi
7045else
7046  OTOOL64="$ac_cv_prog_OTOOL64"
7047fi
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7076$as_echo_n "checking for -single_module linker flag... " >&6; }
7077if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7078  $as_echo_n "(cached) " >&6
7079else
7080  lt_cv_apple_cc_single_mod=no
7081      if test -z "${LT_MULTI_MODULE}"; then
7082	# By default we will add the -single_module flag. You can override
7083	# by either setting the environment variable LT_MULTI_MODULE
7084	# non-empty at configure time, or by adding -multi_module to the
7085	# link flags.
7086	rm -rf libconftest.dylib*
7087	echo "int foo(void){return 1;}" > conftest.c
7088	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7089-dynamiclib -Wl,-single_module conftest.c" >&5
7090	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7091	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7092        _lt_result=$?
7093	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7094	  lt_cv_apple_cc_single_mod=yes
7095	else
7096	  cat conftest.err >&5
7097	fi
7098	rm -rf libconftest.dylib*
7099	rm -f conftest.*
7100      fi
7101fi
7102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7103$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7104    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7105$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7106if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7107  $as_echo_n "(cached) " >&6
7108else
7109  lt_cv_ld_exported_symbols_list=no
7110      save_LDFLAGS=$LDFLAGS
7111      echo "_main" > conftest.sym
7112      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7113      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7114/* end confdefs.h.  */
7115
7116int
7117main ()
7118{
7119
7120  ;
7121  return 0;
7122}
7123_ACEOF
7124if ac_fn_c_try_link "$LINENO"; then :
7125  lt_cv_ld_exported_symbols_list=yes
7126else
7127  lt_cv_ld_exported_symbols_list=no
7128fi
7129rm -f core conftest.err conftest.$ac_objext \
7130    conftest$ac_exeext conftest.$ac_ext
7131	LDFLAGS="$save_LDFLAGS"
7132
7133fi
7134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7135$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7136    case $host_os in
7137    rhapsody* | darwin1.[012])
7138      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7139    darwin1.*)
7140      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7141    darwin*) # darwin 5.x on
7142      # if running on 10.5 or later, the deployment target defaults
7143      # to the OS version, if on x86, and 10.4, the deployment
7144      # target defaults to 10.4. Don't you love it?
7145      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7146	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7147	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7148	10.[012]*)
7149	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7150	10.*)
7151	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7152      esac
7153    ;;
7154  esac
7155    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7156      _lt_dar_single_mod='$single_module'
7157    fi
7158    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7159      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7160    else
7161      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7162    fi
7163    if test "$DSYMUTIL" != ":"; then
7164      _lt_dsymutil='~$DSYMUTIL $lib || :'
7165    else
7166      _lt_dsymutil=
7167    fi
7168    ;;
7169  esac
7170
7171
7172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7173$as_echo_n "checking for ANSI C header files... " >&6; }
7174if test "${ac_cv_header_stdc+set}" = set; then :
7175  $as_echo_n "(cached) " >&6
7176else
7177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7178/* end confdefs.h.  */
7179#include <stdlib.h>
7180#include <stdarg.h>
7181#include <string.h>
7182#include <float.h>
7183
7184int
7185main ()
7186{
7187
7188  ;
7189  return 0;
7190}
7191_ACEOF
7192if ac_fn_c_try_compile "$LINENO"; then :
7193  ac_cv_header_stdc=yes
7194else
7195  ac_cv_header_stdc=no
7196fi
7197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7198
7199if test $ac_cv_header_stdc = yes; then
7200  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7202/* end confdefs.h.  */
7203#include <string.h>
7204
7205_ACEOF
7206if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7207  $EGREP "memchr" >/dev/null 2>&1; then :
7208
7209else
7210  ac_cv_header_stdc=no
7211fi
7212rm -f conftest*
7213
7214fi
7215
7216if test $ac_cv_header_stdc = yes; then
7217  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7219/* end confdefs.h.  */
7220#include <stdlib.h>
7221
7222_ACEOF
7223if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7224  $EGREP "free" >/dev/null 2>&1; then :
7225
7226else
7227  ac_cv_header_stdc=no
7228fi
7229rm -f conftest*
7230
7231fi
7232
7233if test $ac_cv_header_stdc = yes; then
7234  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7235  if test "$cross_compiling" = yes; then :
7236  :
7237else
7238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7239/* end confdefs.h.  */
7240#include <ctype.h>
7241#include <stdlib.h>
7242#if ((' ' & 0x0FF) == 0x020)
7243# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7244# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7245#else
7246# define ISLOWER(c) \
7247		   (('a' <= (c) && (c) <= 'i') \
7248		     || ('j' <= (c) && (c) <= 'r') \
7249		     || ('s' <= (c) && (c) <= 'z'))
7250# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7251#endif
7252
7253#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7254int
7255main ()
7256{
7257  int i;
7258  for (i = 0; i < 256; i++)
7259    if (XOR (islower (i), ISLOWER (i))
7260	|| toupper (i) != TOUPPER (i))
7261      return 2;
7262  return 0;
7263}
7264_ACEOF
7265if ac_fn_c_try_run "$LINENO"; then :
7266
7267else
7268  ac_cv_header_stdc=no
7269fi
7270rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7271  conftest.$ac_objext conftest.beam conftest.$ac_ext
7272fi
7273
7274fi
7275fi
7276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7277$as_echo "$ac_cv_header_stdc" >&6; }
7278if test $ac_cv_header_stdc = yes; then
7279
7280$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7281
7282fi
7283
7284# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7285for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7286		  inttypes.h stdint.h unistd.h
7287do :
7288  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7289ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7290"
7291eval as_val=\$$as_ac_Header
7292   if test "x$as_val" = x""yes; then :
7293  cat >>confdefs.h <<_ACEOF
7294#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7295_ACEOF
7296
7297fi
7298
7299done
7300
7301
7302for ac_header in dlfcn.h
7303do :
7304  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7305"
7306if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7307  cat >>confdefs.h <<_ACEOF
7308#define HAVE_DLFCN_H 1
7309_ACEOF
7310
7311fi
7312
7313done
7314
7315
7316
7317ac_ext=cpp
7318ac_cpp='$CXXCPP $CPPFLAGS'
7319ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7320ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7321ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7322if test -z "$CXX"; then
7323  if test -n "$CCC"; then
7324    CXX=$CCC
7325  else
7326    if test -n "$ac_tool_prefix"; then
7327  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7328  do
7329    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7330set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7332$as_echo_n "checking for $ac_word... " >&6; }
7333if test "${ac_cv_prog_CXX+set}" = set; then :
7334  $as_echo_n "(cached) " >&6
7335else
7336  if test -n "$CXX"; then
7337  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7338else
7339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7340for as_dir in $PATH
7341do
7342  IFS=$as_save_IFS
7343  test -z "$as_dir" && as_dir=.
7344    for ac_exec_ext in '' $ac_executable_extensions; do
7345  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7346    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7347    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7348    break 2
7349  fi
7350done
7351  done
7352IFS=$as_save_IFS
7353
7354fi
7355fi
7356CXX=$ac_cv_prog_CXX
7357if test -n "$CXX"; then
7358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7359$as_echo "$CXX" >&6; }
7360else
7361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7362$as_echo "no" >&6; }
7363fi
7364
7365
7366    test -n "$CXX" && break
7367  done
7368fi
7369if test -z "$CXX"; then
7370  ac_ct_CXX=$CXX
7371  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7372do
7373  # Extract the first word of "$ac_prog", so it can be a program name with args.
7374set dummy $ac_prog; ac_word=$2
7375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7376$as_echo_n "checking for $ac_word... " >&6; }
7377if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
7378  $as_echo_n "(cached) " >&6
7379else
7380  if test -n "$ac_ct_CXX"; then
7381  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7382else
7383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384for as_dir in $PATH
7385do
7386  IFS=$as_save_IFS
7387  test -z "$as_dir" && as_dir=.
7388    for ac_exec_ext in '' $ac_executable_extensions; do
7389  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7390    ac_cv_prog_ac_ct_CXX="$ac_prog"
7391    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7392    break 2
7393  fi
7394done
7395  done
7396IFS=$as_save_IFS
7397
7398fi
7399fi
7400ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7401if test -n "$ac_ct_CXX"; then
7402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7403$as_echo "$ac_ct_CXX" >&6; }
7404else
7405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7406$as_echo "no" >&6; }
7407fi
7408
7409
7410  test -n "$ac_ct_CXX" && break
7411done
7412
7413  if test "x$ac_ct_CXX" = x; then
7414    CXX="g++"
7415  else
7416    case $cross_compiling:$ac_tool_warned in
7417yes:)
7418{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7419$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7420ac_tool_warned=yes ;;
7421esac
7422    CXX=$ac_ct_CXX
7423  fi
7424fi
7425
7426  fi
7427fi
7428# Provide some information about the compiler.
7429$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7430set X $ac_compile
7431ac_compiler=$2
7432for ac_option in --version -v -V -qversion; do
7433  { { ac_try="$ac_compiler $ac_option >&5"
7434case "(($ac_try" in
7435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7436  *) ac_try_echo=$ac_try;;
7437esac
7438eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7439$as_echo "$ac_try_echo"; } >&5
7440  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7441  ac_status=$?
7442  if test -s conftest.err; then
7443    sed '10a\
7444... rest of stderr output deleted ...
7445         10q' conftest.err >conftest.er1
7446    cat conftest.er1 >&5
7447  fi
7448  rm -f conftest.er1 conftest.err
7449  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7450  test $ac_status = 0; }
7451done
7452
7453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7454$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7455if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
7456  $as_echo_n "(cached) " >&6
7457else
7458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7459/* end confdefs.h.  */
7460
7461int
7462main ()
7463{
7464#ifndef __GNUC__
7465       choke me
7466#endif
7467
7468  ;
7469  return 0;
7470}
7471_ACEOF
7472if ac_fn_cxx_try_compile "$LINENO"; then :
7473  ac_compiler_gnu=yes
7474else
7475  ac_compiler_gnu=no
7476fi
7477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7478ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7479
7480fi
7481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7482$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7483if test $ac_compiler_gnu = yes; then
7484  GXX=yes
7485else
7486  GXX=
7487fi
7488ac_test_CXXFLAGS=${CXXFLAGS+set}
7489ac_save_CXXFLAGS=$CXXFLAGS
7490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7491$as_echo_n "checking whether $CXX accepts -g... " >&6; }
7492if test "${ac_cv_prog_cxx_g+set}" = set; then :
7493  $as_echo_n "(cached) " >&6
7494else
7495  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7496   ac_cxx_werror_flag=yes
7497   ac_cv_prog_cxx_g=no
7498   CXXFLAGS="-g"
7499   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7500/* end confdefs.h.  */
7501
7502int
7503main ()
7504{
7505
7506  ;
7507  return 0;
7508}
7509_ACEOF
7510if ac_fn_cxx_try_compile "$LINENO"; then :
7511  ac_cv_prog_cxx_g=yes
7512else
7513  CXXFLAGS=""
7514      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7515/* end confdefs.h.  */
7516
7517int
7518main ()
7519{
7520
7521  ;
7522  return 0;
7523}
7524_ACEOF
7525if ac_fn_cxx_try_compile "$LINENO"; then :
7526
7527else
7528  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7529	 CXXFLAGS="-g"
7530	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7531/* end confdefs.h.  */
7532
7533int
7534main ()
7535{
7536
7537  ;
7538  return 0;
7539}
7540_ACEOF
7541if ac_fn_cxx_try_compile "$LINENO"; then :
7542  ac_cv_prog_cxx_g=yes
7543fi
7544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7545fi
7546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7547fi
7548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7549   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7550fi
7551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7552$as_echo "$ac_cv_prog_cxx_g" >&6; }
7553if test "$ac_test_CXXFLAGS" = set; then
7554  CXXFLAGS=$ac_save_CXXFLAGS
7555elif test $ac_cv_prog_cxx_g = yes; then
7556  if test "$GXX" = yes; then
7557    CXXFLAGS="-g -O2"
7558  else
7559    CXXFLAGS="-g"
7560  fi
7561else
7562  if test "$GXX" = yes; then
7563    CXXFLAGS="-O2"
7564  else
7565    CXXFLAGS=
7566  fi
7567fi
7568ac_ext=c
7569ac_cpp='$CPP $CPPFLAGS'
7570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7572ac_compiler_gnu=$ac_cv_c_compiler_gnu
7573
7574depcc="$CXX"  am_compiler_list=
7575
7576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7577$as_echo_n "checking dependency style of $depcc... " >&6; }
7578if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
7579  $as_echo_n "(cached) " >&6
7580else
7581  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7582  # We make a subdir and do the tests there.  Otherwise we can end up
7583  # making bogus files that we don't know about and never remove.  For
7584  # instance it was reported that on HP-UX the gcc test will end up
7585  # making a dummy file named `D' -- because `-MD' means `put the output
7586  # in D'.
7587  mkdir conftest.dir
7588  # Copy depcomp to subdir because otherwise we won't find it if we're
7589  # using a relative directory.
7590  cp "$am_depcomp" conftest.dir
7591  cd conftest.dir
7592  # We will build objects and dependencies in a subdirectory because
7593  # it helps to detect inapplicable dependency modes.  For instance
7594  # both Tru64's cc and ICC support -MD to output dependencies as a
7595  # side effect of compilation, but ICC will put the dependencies in
7596  # the current directory while Tru64 will put them in the object
7597  # directory.
7598  mkdir sub
7599
7600  am_cv_CXX_dependencies_compiler_type=none
7601  if test "$am_compiler_list" = ""; then
7602     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7603  fi
7604  am__universal=false
7605  case " $depcc " in #(
7606     *\ -arch\ *\ -arch\ *) am__universal=true ;;
7607     esac
7608
7609  for depmode in $am_compiler_list; do
7610    # Setup a source with many dependencies, because some compilers
7611    # like to wrap large dependency lists on column 80 (with \), and
7612    # we should not choose a depcomp mode which is confused by this.
7613    #
7614    # We need to recreate these files for each test, as the compiler may
7615    # overwrite some of them when testing with obscure command lines.
7616    # This happens at least with the AIX C compiler.
7617    : > sub/conftest.c
7618    for i in 1 2 3 4 5 6; do
7619      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7620      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7621      # Solaris 8's {/usr,}/bin/sh.
7622      touch sub/conftst$i.h
7623    done
7624    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7625
7626    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7627    # mode.  It turns out that the SunPro C++ compiler does not properly
7628    # handle `-M -o', and we need to detect this.  Also, some Intel
7629    # versions had trouble with output in subdirs
7630    am__obj=sub/conftest.${OBJEXT-o}
7631    am__minus_obj="-o $am__obj"
7632    case $depmode in
7633    gcc)
7634      # This depmode causes a compiler race in universal mode.
7635      test "$am__universal" = false || continue
7636      ;;
7637    nosideeffect)
7638      # after this tag, mechanisms are not by side-effect, so they'll
7639      # only be used when explicitly requested
7640      if test "x$enable_dependency_tracking" = xyes; then
7641	continue
7642      else
7643	break
7644      fi
7645      ;;
7646    msvisualcpp | msvcmsys)
7647      # This compiler won't grok `-c -o', but also, the minuso test has
7648      # not run yet.  These depmodes are late enough in the game, and
7649      # so weak that their functioning should not be impacted.
7650      am__obj=conftest.${OBJEXT-o}
7651      am__minus_obj=
7652      ;;
7653    none) break ;;
7654    esac
7655    if depmode=$depmode \
7656       source=sub/conftest.c object=$am__obj \
7657       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7658       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7659         >/dev/null 2>conftest.err &&
7660       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7661       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7662       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7663       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7664      # icc doesn't choke on unknown options, it will just issue warnings
7665      # or remarks (even with -Werror).  So we grep stderr for any message
7666      # that says an option was ignored or not supported.
7667      # When given -MP, icc 7.0 and 7.1 complain thusly:
7668      #   icc: Command line warning: ignoring option '-M'; no argument required
7669      # The diagnosis changed in icc 8.0:
7670      #   icc: Command line remark: option '-MP' not supported
7671      if (grep 'ignoring option' conftest.err ||
7672          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7673        am_cv_CXX_dependencies_compiler_type=$depmode
7674        break
7675      fi
7676    fi
7677  done
7678
7679  cd ..
7680  rm -rf conftest.dir
7681else
7682  am_cv_CXX_dependencies_compiler_type=none
7683fi
7684
7685fi
7686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7687$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7688CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7689
7690 if
7691  test "x$enable_dependency_tracking" != xno \
7692  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7693  am__fastdepCXX_TRUE=
7694  am__fastdepCXX_FALSE='#'
7695else
7696  am__fastdepCXX_TRUE='#'
7697  am__fastdepCXX_FALSE=
7698fi
7699
7700
7701if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7702    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7703    (test "X$CXX" != "Xg++"))) ; then
7704  ac_ext=cpp
7705ac_cpp='$CXXCPP $CPPFLAGS'
7706ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7707ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7708ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
7710$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7711if test -z "$CXXCPP"; then
7712  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
7713  $as_echo_n "(cached) " >&6
7714else
7715      # Double quotes because CXXCPP needs to be expanded
7716    for CXXCPP in "$CXX -E" "/lib/cpp"
7717    do
7718      ac_preproc_ok=false
7719for ac_cxx_preproc_warn_flag in '' yes
7720do
7721  # Use a header file that comes with gcc, so configuring glibc
7722  # with a fresh cross-compiler works.
7723  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7724  # <limits.h> exists even on freestanding compilers.
7725  # On the NeXT, cc -E runs the code through the compiler's parser,
7726  # not just through cpp. "Syntax error" is here to catch this case.
7727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7728/* end confdefs.h.  */
7729#ifdef __STDC__
7730# include <limits.h>
7731#else
7732# include <assert.h>
7733#endif
7734		     Syntax error
7735_ACEOF
7736if ac_fn_cxx_try_cpp "$LINENO"; then :
7737
7738else
7739  # Broken: fails on valid input.
7740continue
7741fi
7742rm -f conftest.err conftest.$ac_ext
7743
7744  # OK, works on sane cases.  Now check whether nonexistent headers
7745  # can be detected and how.
7746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7747/* end confdefs.h.  */
7748#include <ac_nonexistent.h>
7749_ACEOF
7750if ac_fn_cxx_try_cpp "$LINENO"; then :
7751  # Broken: success on invalid input.
7752continue
7753else
7754  # Passes both tests.
7755ac_preproc_ok=:
7756break
7757fi
7758rm -f conftest.err conftest.$ac_ext
7759
7760done
7761# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7762rm -f conftest.err conftest.$ac_ext
7763if $ac_preproc_ok; then :
7764  break
7765fi
7766
7767    done
7768    ac_cv_prog_CXXCPP=$CXXCPP
7769
7770fi
7771  CXXCPP=$ac_cv_prog_CXXCPP
7772else
7773  ac_cv_prog_CXXCPP=$CXXCPP
7774fi
7775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
7776$as_echo "$CXXCPP" >&6; }
7777ac_preproc_ok=false
7778for ac_cxx_preproc_warn_flag in '' yes
7779do
7780  # Use a header file that comes with gcc, so configuring glibc
7781  # with a fresh cross-compiler works.
7782  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7783  # <limits.h> exists even on freestanding compilers.
7784  # On the NeXT, cc -E runs the code through the compiler's parser,
7785  # not just through cpp. "Syntax error" is here to catch this case.
7786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7787/* end confdefs.h.  */
7788#ifdef __STDC__
7789# include <limits.h>
7790#else
7791# include <assert.h>
7792#endif
7793		     Syntax error
7794_ACEOF
7795if ac_fn_cxx_try_cpp "$LINENO"; then :
7796
7797else
7798  # Broken: fails on valid input.
7799continue
7800fi
7801rm -f conftest.err conftest.$ac_ext
7802
7803  # OK, works on sane cases.  Now check whether nonexistent headers
7804  # can be detected and how.
7805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7806/* end confdefs.h.  */
7807#include <ac_nonexistent.h>
7808_ACEOF
7809if ac_fn_cxx_try_cpp "$LINENO"; then :
7810  # Broken: success on invalid input.
7811continue
7812else
7813  # Passes both tests.
7814ac_preproc_ok=:
7815break
7816fi
7817rm -f conftest.err conftest.$ac_ext
7818
7819done
7820# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7821rm -f conftest.err conftest.$ac_ext
7822if $ac_preproc_ok; then :
7823
7824else
7825  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7826$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7827_lt_caught_CXX_error=yes; }
7828fi
7829
7830ac_ext=c
7831ac_cpp='$CPP $CPPFLAGS'
7832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7834ac_compiler_gnu=$ac_cv_c_compiler_gnu
7835
7836else
7837  _lt_caught_CXX_error=yes
7838fi
7839
7840
7841
7842
7843
7844# Set options
7845
7846
7847
7848        enable_dlopen=no
7849
7850
7851  enable_win32_dll=no
7852
7853
7854            # Check whether --enable-shared was given.
7855if test "${enable_shared+set}" = set; then :
7856  enableval=$enable_shared; p=${PACKAGE-default}
7857    case $enableval in
7858    yes) enable_shared=yes ;;
7859    no) enable_shared=no ;;
7860    *)
7861      enable_shared=no
7862      # Look at the argument we got.  We use all the common list separators.
7863      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7864      for pkg in $enableval; do
7865	IFS="$lt_save_ifs"
7866	if test "X$pkg" = "X$p"; then
7867	  enable_shared=yes
7868	fi
7869      done
7870      IFS="$lt_save_ifs"
7871      ;;
7872    esac
7873else
7874  enable_shared=yes
7875fi
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885  # Check whether --enable-static was given.
7886if test "${enable_static+set}" = set; then :
7887  enableval=$enable_static; p=${PACKAGE-default}
7888    case $enableval in
7889    yes) enable_static=yes ;;
7890    no) enable_static=no ;;
7891    *)
7892     enable_static=no
7893      # Look at the argument we got.  We use all the common list separators.
7894      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7895      for pkg in $enableval; do
7896	IFS="$lt_save_ifs"
7897	if test "X$pkg" = "X$p"; then
7898	  enable_static=yes
7899	fi
7900      done
7901      IFS="$lt_save_ifs"
7902      ;;
7903    esac
7904else
7905  enable_static=yes
7906fi
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917# Check whether --with-pic was given.
7918if test "${with_pic+set}" = set; then :
7919  withval=$with_pic; pic_mode="$withval"
7920else
7921  pic_mode=default
7922fi
7923
7924
7925test -z "$pic_mode" && pic_mode=default
7926
7927
7928
7929
7930
7931
7932
7933  # Check whether --enable-fast-install was given.
7934if test "${enable_fast_install+set}" = set; then :
7935  enableval=$enable_fast_install; p=${PACKAGE-default}
7936    case $enableval in
7937    yes) enable_fast_install=yes ;;
7938    no) enable_fast_install=no ;;
7939    *)
7940      enable_fast_install=no
7941      # Look at the argument we got.  We use all the common list separators.
7942      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7943      for pkg in $enableval; do
7944	IFS="$lt_save_ifs"
7945	if test "X$pkg" = "X$p"; then
7946	  enable_fast_install=yes
7947	fi
7948      done
7949      IFS="$lt_save_ifs"
7950      ;;
7951    esac
7952else
7953  enable_fast_install=yes
7954fi
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966# This can be used to rebuild libtool when needed
7967LIBTOOL_DEPS="$ltmain"
7968
7969# Always use our own libtool.
7970LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996test -z "$LN_S" && LN_S="ln -s"
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011if test -n "${ZSH_VERSION+set}" ; then
8012   setopt NO_GLOB_SUBST
8013fi
8014
8015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8016$as_echo_n "checking for objdir... " >&6; }
8017if test "${lt_cv_objdir+set}" = set; then :
8018  $as_echo_n "(cached) " >&6
8019else
8020  rm -f .libs 2>/dev/null
8021mkdir .libs 2>/dev/null
8022if test -d .libs; then
8023  lt_cv_objdir=.libs
8024else
8025  # MS-DOS does not allow filenames that begin with a dot.
8026  lt_cv_objdir=_libs
8027fi
8028rmdir .libs 2>/dev/null
8029fi
8030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8031$as_echo "$lt_cv_objdir" >&6; }
8032objdir=$lt_cv_objdir
8033
8034
8035
8036
8037
8038cat >>confdefs.h <<_ACEOF
8039#define LT_OBJDIR "$lt_cv_objdir/"
8040_ACEOF
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058case $host_os in
8059aix3*)
8060  # AIX sometimes has problems with the GCC collect2 program.  For some
8061  # reason, if we set the COLLECT_NAMES environment variable, the problems
8062  # vanish in a puff of smoke.
8063  if test "X${COLLECT_NAMES+set}" != Xset; then
8064    COLLECT_NAMES=
8065    export COLLECT_NAMES
8066  fi
8067  ;;
8068esac
8069
8070# Sed substitution that helps us do robust quoting.  It backslashifies
8071# metacharacters that are still active within double-quoted strings.
8072sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8073
8074# Same as above, but do not quote variable references.
8075double_quote_subst='s/\(["`\\]\)/\\\1/g'
8076
8077# Sed substitution to delay expansion of an escaped shell variable in a
8078# double_quote_subst'ed string.
8079delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8080
8081# Sed substitution to delay expansion of an escaped single quote.
8082delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8083
8084# Sed substitution to avoid accidental globbing in evaled expressions
8085no_glob_subst='s/\*/\\\*/g'
8086
8087# Global variables:
8088ofile=libtool
8089can_build_shared=yes
8090
8091# All known linkers require a `.a' archive for static linking (except MSVC,
8092# which needs '.lib').
8093libext=a
8094
8095with_gnu_ld="$lt_cv_prog_gnu_ld"
8096
8097old_CC="$CC"
8098old_CFLAGS="$CFLAGS"
8099
8100# Set sane defaults for various variables
8101test -z "$CC" && CC=cc
8102test -z "$LTCC" && LTCC=$CC
8103test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8104test -z "$LD" && LD=ld
8105test -z "$ac_objext" && ac_objext=o
8106
8107for cc_temp in $compiler""; do
8108  case $cc_temp in
8109    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8110    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8111    \-*) ;;
8112    *) break;;
8113  esac
8114done
8115cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8116
8117
8118# Only perform the check for file, if the check method requires it
8119test -z "$MAGIC_CMD" && MAGIC_CMD=file
8120case $deplibs_check_method in
8121file_magic*)
8122  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8123    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8124$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8125if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8126  $as_echo_n "(cached) " >&6
8127else
8128  case $MAGIC_CMD in
8129[\\/*] |  ?:[\\/]*)
8130  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8131  ;;
8132*)
8133  lt_save_MAGIC_CMD="$MAGIC_CMD"
8134  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8135  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8136  for ac_dir in $ac_dummy; do
8137    IFS="$lt_save_ifs"
8138    test -z "$ac_dir" && ac_dir=.
8139    if test -f $ac_dir/${ac_tool_prefix}file; then
8140      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8141      if test -n "$file_magic_test_file"; then
8142	case $deplibs_check_method in
8143	"file_magic "*)
8144	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8145	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8146	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8147	    $EGREP "$file_magic_regex" > /dev/null; then
8148	    :
8149	  else
8150	    cat <<_LT_EOF 1>&2
8151
8152*** Warning: the command libtool uses to detect shared libraries,
8153*** $file_magic_cmd, produces output that libtool cannot recognize.
8154*** The result is that libtool may fail to recognize shared libraries
8155*** as such.  This will affect the creation of libtool libraries that
8156*** depend on shared libraries, but programs linked with such libtool
8157*** libraries will work regardless of this problem.  Nevertheless, you
8158*** may want to report the problem to your system manager and/or to
8159*** bug-libtool@gnu.org
8160
8161_LT_EOF
8162	  fi ;;
8163	esac
8164      fi
8165      break
8166    fi
8167  done
8168  IFS="$lt_save_ifs"
8169  MAGIC_CMD="$lt_save_MAGIC_CMD"
8170  ;;
8171esac
8172fi
8173
8174MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8175if test -n "$MAGIC_CMD"; then
8176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8177$as_echo "$MAGIC_CMD" >&6; }
8178else
8179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8180$as_echo "no" >&6; }
8181fi
8182
8183
8184
8185
8186
8187if test -z "$lt_cv_path_MAGIC_CMD"; then
8188  if test -n "$ac_tool_prefix"; then
8189    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8190$as_echo_n "checking for file... " >&6; }
8191if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8192  $as_echo_n "(cached) " >&6
8193else
8194  case $MAGIC_CMD in
8195[\\/*] |  ?:[\\/]*)
8196  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8197  ;;
8198*)
8199  lt_save_MAGIC_CMD="$MAGIC_CMD"
8200  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8201  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8202  for ac_dir in $ac_dummy; do
8203    IFS="$lt_save_ifs"
8204    test -z "$ac_dir" && ac_dir=.
8205    if test -f $ac_dir/file; then
8206      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8207      if test -n "$file_magic_test_file"; then
8208	case $deplibs_check_method in
8209	"file_magic "*)
8210	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8211	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8212	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8213	    $EGREP "$file_magic_regex" > /dev/null; then
8214	    :
8215	  else
8216	    cat <<_LT_EOF 1>&2
8217
8218*** Warning: the command libtool uses to detect shared libraries,
8219*** $file_magic_cmd, produces output that libtool cannot recognize.
8220*** The result is that libtool may fail to recognize shared libraries
8221*** as such.  This will affect the creation of libtool libraries that
8222*** depend on shared libraries, but programs linked with such libtool
8223*** libraries will work regardless of this problem.  Nevertheless, you
8224*** may want to report the problem to your system manager and/or to
8225*** bug-libtool@gnu.org
8226
8227_LT_EOF
8228	  fi ;;
8229	esac
8230      fi
8231      break
8232    fi
8233  done
8234  IFS="$lt_save_ifs"
8235  MAGIC_CMD="$lt_save_MAGIC_CMD"
8236  ;;
8237esac
8238fi
8239
8240MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8241if test -n "$MAGIC_CMD"; then
8242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8243$as_echo "$MAGIC_CMD" >&6; }
8244else
8245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8246$as_echo "no" >&6; }
8247fi
8248
8249
8250  else
8251    MAGIC_CMD=:
8252  fi
8253fi
8254
8255  fi
8256  ;;
8257esac
8258
8259# Use C for the default configuration in the libtool script
8260
8261lt_save_CC="$CC"
8262ac_ext=c
8263ac_cpp='$CPP $CPPFLAGS'
8264ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8265ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8266ac_compiler_gnu=$ac_cv_c_compiler_gnu
8267
8268
8269# Source file extension for C test sources.
8270ac_ext=c
8271
8272# Object file extension for compiled C test sources.
8273objext=o
8274objext=$objext
8275
8276# Code to be used in simple compile tests
8277lt_simple_compile_test_code="int some_variable = 0;"
8278
8279# Code to be used in simple link tests
8280lt_simple_link_test_code='int main(){return(0);}'
8281
8282
8283
8284
8285
8286
8287
8288# If no C compiler was specified, use CC.
8289LTCC=${LTCC-"$CC"}
8290
8291# If no C compiler flags were specified, use CFLAGS.
8292LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8293
8294# Allow CC to be a program name with arguments.
8295compiler=$CC
8296
8297# Save the default compiler, since it gets overwritten when the other
8298# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8299compiler_DEFAULT=$CC
8300
8301# save warnings/boilerplate of simple test code
8302ac_outfile=conftest.$ac_objext
8303echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8304eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8305_lt_compiler_boilerplate=`cat conftest.err`
8306$RM conftest*
8307
8308ac_outfile=conftest.$ac_objext
8309echo "$lt_simple_link_test_code" >conftest.$ac_ext
8310eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8311_lt_linker_boilerplate=`cat conftest.err`
8312$RM -r conftest*
8313
8314
8315## CAVEAT EMPTOR:
8316## There is no encapsulation within the following macros, do not change
8317## the running order or otherwise move them around unless you know exactly
8318## what you are doing...
8319if test -n "$compiler"; then
8320
8321lt_prog_compiler_no_builtin_flag=
8322
8323if test "$GCC" = yes; then
8324  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8325
8326  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8327$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8328if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8329  $as_echo_n "(cached) " >&6
8330else
8331  lt_cv_prog_compiler_rtti_exceptions=no
8332   ac_outfile=conftest.$ac_objext
8333   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8334   lt_compiler_flag="-fno-rtti -fno-exceptions"
8335   # Insert the option either (1) after the last *FLAGS variable, or
8336   # (2) before a word containing "conftest.", or (3) at the end.
8337   # Note that $ac_compile itself does not contain backslashes and begins
8338   # with a dollar sign (not a hyphen), so the echo should work correctly.
8339   # The option is referenced via a variable to avoid confusing sed.
8340   lt_compile=`echo "$ac_compile" | $SED \
8341   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8342   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8343   -e 's:$: $lt_compiler_flag:'`
8344   (eval echo "\"\$as_me:8344: $lt_compile\"" >&5)
8345   (eval "$lt_compile" 2>conftest.err)
8346   ac_status=$?
8347   cat conftest.err >&5
8348   echo "$as_me:8348: \$? = $ac_status" >&5
8349   if (exit $ac_status) && test -s "$ac_outfile"; then
8350     # The compiler can only warn and ignore the option if not recognized
8351     # So say no if there are warnings other than the usual output.
8352     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8353     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8354     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8355       lt_cv_prog_compiler_rtti_exceptions=yes
8356     fi
8357   fi
8358   $RM conftest*
8359
8360fi
8361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8362$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8363
8364if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8365    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8366else
8367    :
8368fi
8369
8370fi
8371
8372
8373
8374
8375
8376
8377  lt_prog_compiler_wl=
8378lt_prog_compiler_pic=
8379lt_prog_compiler_static=
8380
8381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8382$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8383
8384  if test "$GCC" = yes; then
8385    lt_prog_compiler_wl='-Wl,'
8386    lt_prog_compiler_static='-static'
8387
8388    case $host_os in
8389      aix*)
8390      # All AIX code is PIC.
8391      if test "$host_cpu" = ia64; then
8392	# AIX 5 now supports IA64 processor
8393	lt_prog_compiler_static='-Bstatic'
8394      fi
8395      ;;
8396
8397    amigaos*)
8398      case $host_cpu in
8399      powerpc)
8400            # see comment about AmigaOS4 .so support
8401            lt_prog_compiler_pic='-fPIC'
8402        ;;
8403      m68k)
8404            # FIXME: we need at least 68020 code to build shared libraries, but
8405            # adding the `-m68020' flag to GCC prevents building anything better,
8406            # like `-m68040'.
8407            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8408        ;;
8409      esac
8410      ;;
8411
8412    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8413      # PIC is the default for these OSes.
8414      ;;
8415
8416    mingw* | cygwin* | pw32* | os2* | cegcc*)
8417      # This hack is so that the source file can tell whether it is being
8418      # built for inclusion in a dll (and should export symbols for example).
8419      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8420      # (--disable-auto-import) libraries
8421      lt_prog_compiler_pic='-DDLL_EXPORT'
8422      ;;
8423
8424    darwin* | rhapsody*)
8425      # PIC is the default on this platform
8426      # Common symbols not allowed in MH_DYLIB files
8427      lt_prog_compiler_pic='-fno-common'
8428      ;;
8429
8430    hpux*)
8431      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8432      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8433      # sets the default TLS model and affects inlining.
8434      case $host_cpu in
8435      hppa*64*)
8436	# +Z the default
8437	;;
8438      *)
8439	lt_prog_compiler_pic='-fPIC'
8440	;;
8441      esac
8442      ;;
8443
8444    interix[3-9]*)
8445      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8446      # Instead, we relocate shared libraries at runtime.
8447      ;;
8448
8449    msdosdjgpp*)
8450      # Just because we use GCC doesn't mean we suddenly get shared libraries
8451      # on systems that don't support them.
8452      lt_prog_compiler_can_build_shared=no
8453      enable_shared=no
8454      ;;
8455
8456    *nto* | *qnx*)
8457      # QNX uses GNU C++, but need to define -shared option too, otherwise
8458      # it will coredump.
8459      lt_prog_compiler_pic='-fPIC -shared'
8460      ;;
8461
8462    sysv4*MP*)
8463      if test -d /usr/nec; then
8464	lt_prog_compiler_pic=-Kconform_pic
8465      fi
8466      ;;
8467
8468    *)
8469      lt_prog_compiler_pic='-fPIC'
8470      ;;
8471    esac
8472  else
8473    # PORTME Check for flag to pass linker flags through the system compiler.
8474    case $host_os in
8475    aix*)
8476      lt_prog_compiler_wl='-Wl,'
8477      if test "$host_cpu" = ia64; then
8478	# AIX 5 now supports IA64 processor
8479	lt_prog_compiler_static='-Bstatic'
8480      else
8481	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8482      fi
8483      ;;
8484
8485    mingw* | cygwin* | pw32* | os2* | cegcc*)
8486      # This hack is so that the source file can tell whether it is being
8487      # built for inclusion in a dll (and should export symbols for example).
8488      lt_prog_compiler_pic='-DDLL_EXPORT'
8489      ;;
8490
8491    hpux9* | hpux10* | hpux11*)
8492      lt_prog_compiler_wl='-Wl,'
8493      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8494      # not for PA HP-UX.
8495      case $host_cpu in
8496      hppa*64*|ia64*)
8497	# +Z the default
8498	;;
8499      *)
8500	lt_prog_compiler_pic='+Z'
8501	;;
8502      esac
8503      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8504      lt_prog_compiler_static='${wl}-a ${wl}archive'
8505      ;;
8506
8507    irix5* | irix6* | nonstopux*)
8508      lt_prog_compiler_wl='-Wl,'
8509      # PIC (with -KPIC) is the default.
8510      lt_prog_compiler_static='-non_shared'
8511      ;;
8512
8513    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8514      case $cc_basename in
8515      # old Intel for x86_64 which still supported -KPIC.
8516      ecc*)
8517	lt_prog_compiler_wl='-Wl,'
8518	lt_prog_compiler_pic='-KPIC'
8519	lt_prog_compiler_static='-static'
8520        ;;
8521      # icc used to be incompatible with GCC.
8522      # ICC 10 doesn't accept -KPIC any more.
8523      icc* | ifort*)
8524	lt_prog_compiler_wl='-Wl,'
8525	lt_prog_compiler_pic='-fPIC'
8526	lt_prog_compiler_static='-static'
8527        ;;
8528      # Lahey Fortran 8.1.
8529      lf95*)
8530	lt_prog_compiler_wl='-Wl,'
8531	lt_prog_compiler_pic='--shared'
8532	lt_prog_compiler_static='--static'
8533	;;
8534      pgcc* | pgf77* | pgf90* | pgf95*)
8535        # Portland Group compilers (*not* the Pentium gcc compiler,
8536	# which looks to be a dead project)
8537	lt_prog_compiler_wl='-Wl,'
8538	lt_prog_compiler_pic='-fpic'
8539	lt_prog_compiler_static='-Bstatic'
8540        ;;
8541      ccc*)
8542        lt_prog_compiler_wl='-Wl,'
8543        # All Alpha code is PIC.
8544        lt_prog_compiler_static='-non_shared'
8545        ;;
8546      xl*)
8547	# IBM XL C 8.0/Fortran 10.1 on PPC
8548	lt_prog_compiler_wl='-Wl,'
8549	lt_prog_compiler_pic='-qpic'
8550	lt_prog_compiler_static='-qstaticlink'
8551	;;
8552      *)
8553	case `$CC -V 2>&1 | sed 5q` in
8554	*Sun\ C*)
8555	  # Sun C 5.9
8556	  lt_prog_compiler_pic='-KPIC'
8557	  lt_prog_compiler_static='-Bstatic'
8558	  lt_prog_compiler_wl='-Wl,'
8559	  ;;
8560	*Sun\ F*)
8561	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8562	  lt_prog_compiler_pic='-KPIC'
8563	  lt_prog_compiler_static='-Bstatic'
8564	  lt_prog_compiler_wl=''
8565	  ;;
8566	esac
8567	;;
8568      esac
8569      ;;
8570
8571    newsos6)
8572      lt_prog_compiler_pic='-KPIC'
8573      lt_prog_compiler_static='-Bstatic'
8574      ;;
8575
8576    *nto* | *qnx*)
8577      # QNX uses GNU C++, but need to define -shared option too, otherwise
8578      # it will coredump.
8579      lt_prog_compiler_pic='-fPIC -shared'
8580      ;;
8581
8582    osf3* | osf4* | osf5*)
8583      lt_prog_compiler_wl='-Wl,'
8584      # All OSF/1 code is PIC.
8585      lt_prog_compiler_static='-non_shared'
8586      ;;
8587
8588    rdos*)
8589      lt_prog_compiler_static='-non_shared'
8590      ;;
8591
8592    solaris*)
8593      lt_prog_compiler_pic='-KPIC'
8594      lt_prog_compiler_static='-Bstatic'
8595      case $cc_basename in
8596      f77* | f90* | f95*)
8597	lt_prog_compiler_wl='-Qoption ld ';;
8598      *)
8599	lt_prog_compiler_wl='-Wl,';;
8600      esac
8601      ;;
8602
8603    sunos4*)
8604      lt_prog_compiler_wl='-Qoption ld '
8605      lt_prog_compiler_pic='-PIC'
8606      lt_prog_compiler_static='-Bstatic'
8607      ;;
8608
8609    sysv4 | sysv4.2uw2* | sysv4.3*)
8610      lt_prog_compiler_wl='-Wl,'
8611      lt_prog_compiler_pic='-KPIC'
8612      lt_prog_compiler_static='-Bstatic'
8613      ;;
8614
8615    sysv4*MP*)
8616      if test -d /usr/nec ;then
8617	lt_prog_compiler_pic='-Kconform_pic'
8618	lt_prog_compiler_static='-Bstatic'
8619      fi
8620      ;;
8621
8622    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8623      lt_prog_compiler_wl='-Wl,'
8624      lt_prog_compiler_pic='-KPIC'
8625      lt_prog_compiler_static='-Bstatic'
8626      ;;
8627
8628    unicos*)
8629      lt_prog_compiler_wl='-Wl,'
8630      lt_prog_compiler_can_build_shared=no
8631      ;;
8632
8633    uts4*)
8634      lt_prog_compiler_pic='-pic'
8635      lt_prog_compiler_static='-Bstatic'
8636      ;;
8637
8638    *)
8639      lt_prog_compiler_can_build_shared=no
8640      ;;
8641    esac
8642  fi
8643
8644case $host_os in
8645  # For platforms which do not support PIC, -DPIC is meaningless:
8646  *djgpp*)
8647    lt_prog_compiler_pic=
8648    ;;
8649  *)
8650    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8651    ;;
8652esac
8653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8654$as_echo "$lt_prog_compiler_pic" >&6; }
8655
8656
8657
8658
8659
8660
8661#
8662# Check to make sure the PIC flag actually works.
8663#
8664if test -n "$lt_prog_compiler_pic"; then
8665  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8666$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8667if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8668  $as_echo_n "(cached) " >&6
8669else
8670  lt_cv_prog_compiler_pic_works=no
8671   ac_outfile=conftest.$ac_objext
8672   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8673   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8674   # Insert the option either (1) after the last *FLAGS variable, or
8675   # (2) before a word containing "conftest.", or (3) at the end.
8676   # Note that $ac_compile itself does not contain backslashes and begins
8677   # with a dollar sign (not a hyphen), so the echo should work correctly.
8678   # The option is referenced via a variable to avoid confusing sed.
8679   lt_compile=`echo "$ac_compile" | $SED \
8680   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8681   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8682   -e 's:$: $lt_compiler_flag:'`
8683   (eval echo "\"\$as_me:8683: $lt_compile\"" >&5)
8684   (eval "$lt_compile" 2>conftest.err)
8685   ac_status=$?
8686   cat conftest.err >&5
8687   echo "$as_me:8687: \$? = $ac_status" >&5
8688   if (exit $ac_status) && test -s "$ac_outfile"; then
8689     # The compiler can only warn and ignore the option if not recognized
8690     # So say no if there are warnings other than the usual output.
8691     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8692     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8693     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8694       lt_cv_prog_compiler_pic_works=yes
8695     fi
8696   fi
8697   $RM conftest*
8698
8699fi
8700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8701$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8702
8703if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8704    case $lt_prog_compiler_pic in
8705     "" | " "*) ;;
8706     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8707     esac
8708else
8709    lt_prog_compiler_pic=
8710     lt_prog_compiler_can_build_shared=no
8711fi
8712
8713fi
8714
8715
8716
8717
8718
8719
8720#
8721# Check to make sure the static flag actually works.
8722#
8723wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8725$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8726if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8727  $as_echo_n "(cached) " >&6
8728else
8729  lt_cv_prog_compiler_static_works=no
8730   save_LDFLAGS="$LDFLAGS"
8731   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8732   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8733   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8734     # The linker can only warn and ignore the option if not recognized
8735     # So say no if there are warnings
8736     if test -s conftest.err; then
8737       # Append any errors to the config.log.
8738       cat conftest.err 1>&5
8739       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8740       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8741       if diff conftest.exp conftest.er2 >/dev/null; then
8742         lt_cv_prog_compiler_static_works=yes
8743       fi
8744     else
8745       lt_cv_prog_compiler_static_works=yes
8746     fi
8747   fi
8748   $RM -r conftest*
8749   LDFLAGS="$save_LDFLAGS"
8750
8751fi
8752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8753$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8754
8755if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8756    :
8757else
8758    lt_prog_compiler_static=
8759fi
8760
8761
8762
8763
8764
8765
8766
8767  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8768$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8769if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8770  $as_echo_n "(cached) " >&6
8771else
8772  lt_cv_prog_compiler_c_o=no
8773   $RM -r conftest 2>/dev/null
8774   mkdir conftest
8775   cd conftest
8776   mkdir out
8777   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8778
8779   lt_compiler_flag="-o out/conftest2.$ac_objext"
8780   # Insert the option either (1) after the last *FLAGS variable, or
8781   # (2) before a word containing "conftest.", or (3) at the end.
8782   # Note that $ac_compile itself does not contain backslashes and begins
8783   # with a dollar sign (not a hyphen), so the echo should work correctly.
8784   lt_compile=`echo "$ac_compile" | $SED \
8785   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8786   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8787   -e 's:$: $lt_compiler_flag:'`
8788   (eval echo "\"\$as_me:8788: $lt_compile\"" >&5)
8789   (eval "$lt_compile" 2>out/conftest.err)
8790   ac_status=$?
8791   cat out/conftest.err >&5
8792   echo "$as_me:8792: \$? = $ac_status" >&5
8793   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8794   then
8795     # The compiler can only warn and ignore the option if not recognized
8796     # So say no if there are warnings
8797     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8798     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8799     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8800       lt_cv_prog_compiler_c_o=yes
8801     fi
8802   fi
8803   chmod u+w . 2>&5
8804   $RM conftest*
8805   # SGI C++ compiler will create directory out/ii_files/ for
8806   # template instantiation
8807   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8808   $RM out/* && rmdir out
8809   cd ..
8810   $RM -r conftest
8811   $RM conftest*
8812
8813fi
8814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8815$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8816
8817
8818
8819
8820
8821
8822  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8823$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8824if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8825  $as_echo_n "(cached) " >&6
8826else
8827  lt_cv_prog_compiler_c_o=no
8828   $RM -r conftest 2>/dev/null
8829   mkdir conftest
8830   cd conftest
8831   mkdir out
8832   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8833
8834   lt_compiler_flag="-o out/conftest2.$ac_objext"
8835   # Insert the option either (1) after the last *FLAGS variable, or
8836   # (2) before a word containing "conftest.", or (3) at the end.
8837   # Note that $ac_compile itself does not contain backslashes and begins
8838   # with a dollar sign (not a hyphen), so the echo should work correctly.
8839   lt_compile=`echo "$ac_compile" | $SED \
8840   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8841   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8842   -e 's:$: $lt_compiler_flag:'`
8843   (eval echo "\"\$as_me:8843: $lt_compile\"" >&5)
8844   (eval "$lt_compile" 2>out/conftest.err)
8845   ac_status=$?
8846   cat out/conftest.err >&5
8847   echo "$as_me:8847: \$? = $ac_status" >&5
8848   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8849   then
8850     # The compiler can only warn and ignore the option if not recognized
8851     # So say no if there are warnings
8852     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8853     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8854     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8855       lt_cv_prog_compiler_c_o=yes
8856     fi
8857   fi
8858   chmod u+w . 2>&5
8859   $RM conftest*
8860   # SGI C++ compiler will create directory out/ii_files/ for
8861   # template instantiation
8862   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8863   $RM out/* && rmdir out
8864   cd ..
8865   $RM -r conftest
8866   $RM conftest*
8867
8868fi
8869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8870$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8871
8872
8873
8874
8875hard_links="nottested"
8876if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8877  # do not overwrite the value of need_locks provided by the user
8878  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8879$as_echo_n "checking if we can lock with hard links... " >&6; }
8880  hard_links=yes
8881  $RM conftest*
8882  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8883  touch conftest.a
8884  ln conftest.a conftest.b 2>&5 || hard_links=no
8885  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8887$as_echo "$hard_links" >&6; }
8888  if test "$hard_links" = no; then
8889    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8890$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8891    need_locks=warn
8892  fi
8893else
8894  need_locks=no
8895fi
8896
8897
8898
8899
8900
8901
8902  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8903$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8904
8905  runpath_var=
8906  allow_undefined_flag=
8907  always_export_symbols=no
8908  archive_cmds=
8909  archive_expsym_cmds=
8910  compiler_needs_object=no
8911  enable_shared_with_static_runtimes=no
8912  export_dynamic_flag_spec=
8913  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8914  hardcode_automatic=no
8915  hardcode_direct=no
8916  hardcode_direct_absolute=no
8917  hardcode_libdir_flag_spec=
8918  hardcode_libdir_flag_spec_ld=
8919  hardcode_libdir_separator=
8920  hardcode_minus_L=no
8921  hardcode_shlibpath_var=unsupported
8922  inherit_rpath=no
8923  link_all_deplibs=unknown
8924  module_cmds=
8925  module_expsym_cmds=
8926  old_archive_from_new_cmds=
8927  old_archive_from_expsyms_cmds=
8928  thread_safe_flag_spec=
8929  whole_archive_flag_spec=
8930  # include_expsyms should be a list of space-separated symbols to be *always*
8931  # included in the symbol list
8932  include_expsyms=
8933  # exclude_expsyms can be an extended regexp of symbols to exclude
8934  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8935  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8936  # as well as any symbol that contains `d'.
8937  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8938  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8939  # platforms (ab)use it in PIC code, but their linkers get confused if
8940  # the symbol is explicitly referenced.  Since portable code cannot
8941  # rely on this symbol name, it's probably fine to never include it in
8942  # preloaded symbol tables.
8943  # Exclude shared library initialization/finalization symbols.
8944  extract_expsyms_cmds=
8945
8946  case $host_os in
8947  cygwin* | mingw* | pw32* | cegcc*)
8948    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8949    # When not using gcc, we currently assume that we are using
8950    # Microsoft Visual C++.
8951    if test "$GCC" != yes; then
8952      with_gnu_ld=no
8953    fi
8954    ;;
8955  interix*)
8956    # we just hope/assume this is gcc and not c89 (= MSVC++)
8957    with_gnu_ld=yes
8958    ;;
8959  openbsd*)
8960    with_gnu_ld=no
8961    ;;
8962  linux* | k*bsd*-gnu)
8963    link_all_deplibs=no
8964    ;;
8965  esac
8966
8967  ld_shlibs=yes
8968  if test "$with_gnu_ld" = yes; then
8969    # If archive_cmds runs LD, not CC, wlarc should be empty
8970    wlarc='${wl}'
8971
8972    # Set some defaults for GNU ld with shared library support. These
8973    # are reset later if shared libraries are not supported. Putting them
8974    # here allows them to be overridden if necessary.
8975    runpath_var=LD_RUN_PATH
8976    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8977    export_dynamic_flag_spec='${wl}--export-dynamic'
8978    # ancient GNU ld didn't support --whole-archive et. al.
8979    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8980      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8981    else
8982      whole_archive_flag_spec=
8983    fi
8984    supports_anon_versioning=no
8985    case `$LD -v 2>&1` in
8986      *GNU\ gold*) supports_anon_versioning=yes ;;
8987      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8988      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8989      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8990      *\ 2.11.*) ;; # other 2.11 versions
8991      *) supports_anon_versioning=yes ;;
8992    esac
8993
8994    # See if GNU ld supports shared libraries.
8995    case $host_os in
8996    aix[3-9]*)
8997      # On AIX/PPC, the GNU linker is very broken
8998      if test "$host_cpu" != ia64; then
8999	ld_shlibs=no
9000	cat <<_LT_EOF 1>&2
9001
9002*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9003*** to be unable to reliably create shared libraries on AIX.
9004*** Therefore, libtool is disabling shared libraries support.  If you
9005*** really care for shared libraries, you may want to modify your PATH
9006*** so that a non-GNU linker is found, and then restart.
9007
9008_LT_EOF
9009      fi
9010      ;;
9011
9012    amigaos*)
9013      case $host_cpu in
9014      powerpc)
9015            # see comment about AmigaOS4 .so support
9016            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9017            archive_expsym_cmds=''
9018        ;;
9019      m68k)
9020            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)'
9021            hardcode_libdir_flag_spec='-L$libdir'
9022            hardcode_minus_L=yes
9023        ;;
9024      esac
9025      ;;
9026
9027    beos*)
9028      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9029	allow_undefined_flag=unsupported
9030	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9031	# support --undefined.  This deserves some investigation.  FIXME
9032	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9033      else
9034	ld_shlibs=no
9035      fi
9036      ;;
9037
9038    cygwin* | mingw* | pw32* | cegcc*)
9039      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9040      # as there is no search path for DLLs.
9041      hardcode_libdir_flag_spec='-L$libdir'
9042      allow_undefined_flag=unsupported
9043      always_export_symbols=no
9044      enable_shared_with_static_runtimes=yes
9045      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9046
9047      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9048        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9049	# If the export-symbols file already is a .def file (1st line
9050	# is EXPORTS), use it as is; otherwise, prepend...
9051	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9052	  cp $export_symbols $output_objdir/$soname.def;
9053	else
9054	  echo EXPORTS > $output_objdir/$soname.def;
9055	  cat $export_symbols >> $output_objdir/$soname.def;
9056	fi~
9057	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9058      else
9059	ld_shlibs=no
9060      fi
9061      ;;
9062
9063    interix[3-9]*)
9064      hardcode_direct=no
9065      hardcode_shlibpath_var=no
9066      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9067      export_dynamic_flag_spec='${wl}-E'
9068      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9069      # Instead, shared libraries are loaded at an image base (0x10000000 by
9070      # default) and relocated if they conflict, which is a slow very memory
9071      # consuming and fragmenting process.  To avoid this, we pick a random,
9072      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9073      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9074      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9075      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'
9076      ;;
9077
9078    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9079      tmp_diet=no
9080      if test "$host_os" = linux-dietlibc; then
9081	case $cc_basename in
9082	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9083	esac
9084      fi
9085      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9086	 && test "$tmp_diet" = no
9087      then
9088	tmp_addflag=
9089	tmp_sharedflag='-shared'
9090	case $cc_basename,$host_cpu in
9091        pgcc*)				# Portland Group C compiler
9092	  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'
9093	  tmp_addflag=' $pic_flag'
9094	  ;;
9095	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
9096	  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'
9097	  tmp_addflag=' $pic_flag -Mnomain' ;;
9098	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9099	  tmp_addflag=' -i_dynamic' ;;
9100	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9101	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9102	ifc* | ifort*)			# Intel Fortran compiler
9103	  tmp_addflag=' -nofor_main' ;;
9104	lf95*)				# Lahey Fortran 8.1
9105	  whole_archive_flag_spec=
9106	  tmp_sharedflag='--shared' ;;
9107	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
9108	  tmp_sharedflag='-qmkshrobj'
9109	  tmp_addflag= ;;
9110	esac
9111	case `$CC -V 2>&1 | sed 5q` in
9112	*Sun\ C*)			# Sun C 5.9
9113	  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'
9114	  compiler_needs_object=yes
9115	  tmp_sharedflag='-G' ;;
9116	*Sun\ F*)			# Sun Fortran 8.3
9117	  tmp_sharedflag='-G' ;;
9118	esac
9119	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9120
9121        if test "x$supports_anon_versioning" = xyes; then
9122          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9123	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9124	    echo "local: *; };" >> $output_objdir/$libname.ver~
9125	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9126        fi
9127
9128	case $cc_basename in
9129	xlf*)
9130	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9131	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9132	  hardcode_libdir_flag_spec=
9133	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9134	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9135	  if test "x$supports_anon_versioning" = xyes; then
9136	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9137	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9138	      echo "local: *; };" >> $output_objdir/$libname.ver~
9139	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9140	  fi
9141	  ;;
9142	esac
9143      else
9144        ld_shlibs=no
9145      fi
9146      ;;
9147
9148    netbsd* | netbsdelf*-gnu)
9149      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9150	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9151	wlarc=
9152      else
9153	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9154	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9155      fi
9156      ;;
9157
9158    solaris*)
9159      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9160	ld_shlibs=no
9161	cat <<_LT_EOF 1>&2
9162
9163*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9164*** create shared libraries on Solaris systems.  Therefore, libtool
9165*** is disabling shared libraries support.  We urge you to upgrade GNU
9166*** binutils to release 2.9.1 or newer.  Another option is to modify
9167*** your PATH or compiler configuration so that the native linker is
9168*** used, and then restart.
9169
9170_LT_EOF
9171      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9172	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9173	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9174      else
9175	ld_shlibs=no
9176      fi
9177      ;;
9178
9179    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9180      case `$LD -v 2>&1` in
9181        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9182	ld_shlibs=no
9183	cat <<_LT_EOF 1>&2
9184
9185*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9186*** reliably create shared libraries on SCO systems.  Therefore, libtool
9187*** is disabling shared libraries support.  We urge you to upgrade GNU
9188*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9189*** your PATH or compiler configuration so that the native linker is
9190*** used, and then restart.
9191
9192_LT_EOF
9193	;;
9194	*)
9195	  # For security reasons, it is highly recommended that you always
9196	  # use absolute paths for naming shared libraries, and exclude the
9197	  # DT_RUNPATH tag from executables and libraries.  But doing so
9198	  # requires that you compile everything twice, which is a pain.
9199	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9200	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9201	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9202	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9203	  else
9204	    ld_shlibs=no
9205	  fi
9206	;;
9207      esac
9208      ;;
9209
9210    sunos4*)
9211      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9212      wlarc=
9213      hardcode_direct=yes
9214      hardcode_shlibpath_var=no
9215      ;;
9216
9217    *)
9218      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9219	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9220	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9221      else
9222	ld_shlibs=no
9223      fi
9224      ;;
9225    esac
9226
9227    if test "$ld_shlibs" = no; then
9228      runpath_var=
9229      hardcode_libdir_flag_spec=
9230      export_dynamic_flag_spec=
9231      whole_archive_flag_spec=
9232    fi
9233  else
9234    # PORTME fill in a description of your system's linker (not GNU ld)
9235    case $host_os in
9236    aix3*)
9237      allow_undefined_flag=unsupported
9238      always_export_symbols=yes
9239      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'
9240      # Note: this linker hardcodes the directories in LIBPATH if there
9241      # are no directories specified by -L.
9242      hardcode_minus_L=yes
9243      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9244	# Neither direct hardcoding nor static linking is supported with a
9245	# broken collect2.
9246	hardcode_direct=unsupported
9247      fi
9248      ;;
9249
9250    aix[4-9]*)
9251      if test "$host_cpu" = ia64; then
9252	# On IA64, the linker does run time linking by default, so we don't
9253	# have to do anything special.
9254	aix_use_runtimelinking=no
9255	exp_sym_flag='-Bexport'
9256	no_entry_flag=""
9257      else
9258	# If we're using GNU nm, then we don't want the "-C" option.
9259	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9260	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9261	  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'
9262	else
9263	  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'
9264	fi
9265	aix_use_runtimelinking=no
9266
9267	# Test if we are trying to use run time linking or normal
9268	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9269	# need to do runtime linking.
9270	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9271	  for ld_flag in $LDFLAGS; do
9272	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9273	    aix_use_runtimelinking=yes
9274	    break
9275	  fi
9276	  done
9277	  ;;
9278	esac
9279
9280	exp_sym_flag='-bexport'
9281	no_entry_flag='-bnoentry'
9282      fi
9283
9284      # When large executables or shared objects are built, AIX ld can
9285      # have problems creating the table of contents.  If linking a library
9286      # or program results in "error TOC overflow" add -mminimal-toc to
9287      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9288      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9289
9290      archive_cmds=''
9291      hardcode_direct=yes
9292      hardcode_direct_absolute=yes
9293      hardcode_libdir_separator=':'
9294      link_all_deplibs=yes
9295      file_list_spec='${wl}-f,'
9296
9297      if test "$GCC" = yes; then
9298	case $host_os in aix4.[012]|aix4.[012].*)
9299	# We only want to do this on AIX 4.2 and lower, the check
9300	# below for broken collect2 doesn't work under 4.3+
9301	  collect2name=`${CC} -print-prog-name=collect2`
9302	  if test -f "$collect2name" &&
9303	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9304	  then
9305	  # We have reworked collect2
9306	  :
9307	  else
9308	  # We have old collect2
9309	  hardcode_direct=unsupported
9310	  # It fails to find uninstalled libraries when the uninstalled
9311	  # path is not listed in the libpath.  Setting hardcode_minus_L
9312	  # to unsupported forces relinking
9313	  hardcode_minus_L=yes
9314	  hardcode_libdir_flag_spec='-L$libdir'
9315	  hardcode_libdir_separator=
9316	  fi
9317	  ;;
9318	esac
9319	shared_flag='-shared'
9320	if test "$aix_use_runtimelinking" = yes; then
9321	  shared_flag="$shared_flag "'${wl}-G'
9322	fi
9323	link_all_deplibs=no
9324      else
9325	# not using gcc
9326	if test "$host_cpu" = ia64; then
9327	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9328	# chokes on -Wl,-G. The following line is correct:
9329	  shared_flag='-G'
9330	else
9331	  if test "$aix_use_runtimelinking" = yes; then
9332	    shared_flag='${wl}-G'
9333	  else
9334	    shared_flag='${wl}-bM:SRE'
9335	  fi
9336	fi
9337      fi
9338
9339      export_dynamic_flag_spec='${wl}-bexpall'
9340      # It seems that -bexpall does not export symbols beginning with
9341      # underscore (_), so it is better to generate a list of symbols to export.
9342      always_export_symbols=yes
9343      if test "$aix_use_runtimelinking" = yes; then
9344	# Warning - without using the other runtime loading flags (-brtl),
9345	# -berok will link without error, but may produce a broken library.
9346	allow_undefined_flag='-berok'
9347        # Determine the default libpath from the value encoded in an
9348        # empty executable.
9349        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9350/* end confdefs.h.  */
9351
9352int
9353main ()
9354{
9355
9356  ;
9357  return 0;
9358}
9359_ACEOF
9360if ac_fn_c_try_link "$LINENO"; then :
9361
9362lt_aix_libpath_sed='
9363    /Import File Strings/,/^$/ {
9364	/^0/ {
9365	    s/^0  *\(.*\)$/\1/
9366	    p
9367	}
9368    }'
9369aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9370# Check for a 64-bit object if we didn't find anything.
9371if test -z "$aix_libpath"; then
9372  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9373fi
9374fi
9375rm -f core conftest.err conftest.$ac_objext \
9376    conftest$ac_exeext conftest.$ac_ext
9377if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9378
9379        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9380        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"
9381      else
9382	if test "$host_cpu" = ia64; then
9383	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9384	  allow_undefined_flag="-z nodefs"
9385	  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"
9386	else
9387	 # Determine the default libpath from the value encoded in an
9388	 # empty executable.
9389	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9390/* end confdefs.h.  */
9391
9392int
9393main ()
9394{
9395
9396  ;
9397  return 0;
9398}
9399_ACEOF
9400if ac_fn_c_try_link "$LINENO"; then :
9401
9402lt_aix_libpath_sed='
9403    /Import File Strings/,/^$/ {
9404	/^0/ {
9405	    s/^0  *\(.*\)$/\1/
9406	    p
9407	}
9408    }'
9409aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9410# Check for a 64-bit object if we didn't find anything.
9411if test -z "$aix_libpath"; then
9412  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9413fi
9414fi
9415rm -f core conftest.err conftest.$ac_objext \
9416    conftest$ac_exeext conftest.$ac_ext
9417if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9418
9419	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9420	  # Warning - without using the other run time loading flags,
9421	  # -berok will link without error, but may produce a broken library.
9422	  no_undefined_flag=' ${wl}-bernotok'
9423	  allow_undefined_flag=' ${wl}-berok'
9424	  # Exported symbols can be pulled into shared objects from archives
9425	  whole_archive_flag_spec='$convenience'
9426	  archive_cmds_need_lc=yes
9427	  # This is similar to how AIX traditionally builds its shared libraries.
9428	  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'
9429	fi
9430      fi
9431      ;;
9432
9433    amigaos*)
9434      case $host_cpu in
9435      powerpc)
9436            # see comment about AmigaOS4 .so support
9437            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9438            archive_expsym_cmds=''
9439        ;;
9440      m68k)
9441            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)'
9442            hardcode_libdir_flag_spec='-L$libdir'
9443            hardcode_minus_L=yes
9444        ;;
9445      esac
9446      ;;
9447
9448    bsdi[45]*)
9449      export_dynamic_flag_spec=-rdynamic
9450      ;;
9451
9452    cygwin* | mingw* | pw32* | cegcc*)
9453      # When not using gcc, we currently assume that we are using
9454      # Microsoft Visual C++.
9455      # hardcode_libdir_flag_spec is actually meaningless, as there is
9456      # no search path for DLLs.
9457      hardcode_libdir_flag_spec=' '
9458      allow_undefined_flag=unsupported
9459      # Tell ltmain to make .lib files, not .a files.
9460      libext=lib
9461      # Tell ltmain to make .dll files, not .so files.
9462      shrext_cmds=".dll"
9463      # FIXME: Setting linknames here is a bad hack.
9464      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9465      # The linker will automatically build a .lib file if we build a DLL.
9466      old_archive_from_new_cmds='true'
9467      # FIXME: Should let the user specify the lib program.
9468      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9469      fix_srcfile_path='`cygpath -w "$srcfile"`'
9470      enable_shared_with_static_runtimes=yes
9471      ;;
9472
9473    darwin* | rhapsody*)
9474
9475
9476  archive_cmds_need_lc=no
9477  hardcode_direct=no
9478  hardcode_automatic=yes
9479  hardcode_shlibpath_var=unsupported
9480  whole_archive_flag_spec=''
9481  link_all_deplibs=yes
9482  allow_undefined_flag="$_lt_dar_allow_undefined"
9483  case $cc_basename in
9484     ifort*) _lt_dar_can_shared=yes ;;
9485     *) _lt_dar_can_shared=$GCC ;;
9486  esac
9487  if test "$_lt_dar_can_shared" = "yes"; then
9488    output_verbose_link_cmd=echo
9489    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9490    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9491    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}"
9492    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}"
9493
9494  else
9495  ld_shlibs=no
9496  fi
9497
9498      ;;
9499
9500    dgux*)
9501      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9502      hardcode_libdir_flag_spec='-L$libdir'
9503      hardcode_shlibpath_var=no
9504      ;;
9505
9506    freebsd1*)
9507      ld_shlibs=no
9508      ;;
9509
9510    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9511    # support.  Future versions do this automatically, but an explicit c++rt0.o
9512    # does not break anything, and helps significantly (at the cost of a little
9513    # extra space).
9514    freebsd2.2*)
9515      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9516      hardcode_libdir_flag_spec='-R$libdir'
9517      hardcode_direct=yes
9518      hardcode_shlibpath_var=no
9519      ;;
9520
9521    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9522    freebsd2*)
9523      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9524      hardcode_direct=yes
9525      hardcode_minus_L=yes
9526      hardcode_shlibpath_var=no
9527      ;;
9528
9529    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9530    freebsd* | dragonfly*)
9531      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9532      hardcode_libdir_flag_spec='-R$libdir'
9533      hardcode_direct=yes
9534      hardcode_shlibpath_var=no
9535      ;;
9536
9537    hpux9*)
9538      if test "$GCC" = yes; then
9539	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'
9540      else
9541	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'
9542      fi
9543      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9544      hardcode_libdir_separator=:
9545      hardcode_direct=yes
9546
9547      # hardcode_minus_L: Not really in the search PATH,
9548      # but as the default location of the library.
9549      hardcode_minus_L=yes
9550      export_dynamic_flag_spec='${wl}-E'
9551      ;;
9552
9553    hpux10*)
9554      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9555	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9556      else
9557	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9558      fi
9559      if test "$with_gnu_ld" = no; then
9560	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9561	hardcode_libdir_flag_spec_ld='+b $libdir'
9562	hardcode_libdir_separator=:
9563	hardcode_direct=yes
9564	hardcode_direct_absolute=yes
9565	export_dynamic_flag_spec='${wl}-E'
9566	# hardcode_minus_L: Not really in the search PATH,
9567	# but as the default location of the library.
9568	hardcode_minus_L=yes
9569      fi
9570      ;;
9571
9572    hpux11*)
9573      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9574	case $host_cpu in
9575	hppa*64*)
9576	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9577	  ;;
9578	ia64*)
9579	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9580	  ;;
9581	*)
9582	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9583	  ;;
9584	esac
9585      else
9586	case $host_cpu in
9587	hppa*64*)
9588	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9589	  ;;
9590	ia64*)
9591	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9592	  ;;
9593	*)
9594	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9595	  ;;
9596	esac
9597      fi
9598      if test "$with_gnu_ld" = no; then
9599	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9600	hardcode_libdir_separator=:
9601
9602	case $host_cpu in
9603	hppa*64*|ia64*)
9604	  hardcode_direct=no
9605	  hardcode_shlibpath_var=no
9606	  ;;
9607	*)
9608	  hardcode_direct=yes
9609	  hardcode_direct_absolute=yes
9610	  export_dynamic_flag_spec='${wl}-E'
9611
9612	  # hardcode_minus_L: Not really in the search PATH,
9613	  # but as the default location of the library.
9614	  hardcode_minus_L=yes
9615	  ;;
9616	esac
9617      fi
9618      ;;
9619
9620    irix5* | irix6* | nonstopux*)
9621      if test "$GCC" = yes; then
9622	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'
9623	# Try to use the -exported_symbol ld option, if it does not
9624	# work, assume that -exports_file does not work either and
9625	# implicitly export all symbols.
9626        save_LDFLAGS="$LDFLAGS"
9627        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9628        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9629/* end confdefs.h.  */
9630int foo(void) {}
9631_ACEOF
9632if ac_fn_c_try_link "$LINENO"; then :
9633  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'
9634
9635fi
9636rm -f core conftest.err conftest.$ac_objext \
9637    conftest$ac_exeext conftest.$ac_ext
9638        LDFLAGS="$save_LDFLAGS"
9639      else
9640	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'
9641	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'
9642      fi
9643      archive_cmds_need_lc='no'
9644      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9645      hardcode_libdir_separator=:
9646      inherit_rpath=yes
9647      link_all_deplibs=yes
9648      ;;
9649
9650    netbsd* | netbsdelf*-gnu)
9651      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9652	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9653      else
9654	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9655      fi
9656      hardcode_libdir_flag_spec='-R$libdir'
9657      hardcode_direct=yes
9658      hardcode_shlibpath_var=no
9659      ;;
9660
9661    newsos6)
9662      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9663      hardcode_direct=yes
9664      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9665      hardcode_libdir_separator=:
9666      hardcode_shlibpath_var=no
9667      ;;
9668
9669    *nto* | *qnx*)
9670      ;;
9671
9672    openbsd*)
9673      if test -f /usr/libexec/ld.so; then
9674	hardcode_direct=yes
9675	hardcode_shlibpath_var=no
9676	hardcode_direct_absolute=yes
9677	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9678	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9679	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9680	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9681	  export_dynamic_flag_spec='${wl}-E'
9682	else
9683	  case $host_os in
9684	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9685	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9686	     hardcode_libdir_flag_spec='-R$libdir'
9687	     ;;
9688	   *)
9689	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9690	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9691	     ;;
9692	  esac
9693	fi
9694      else
9695	ld_shlibs=no
9696      fi
9697      ;;
9698
9699    os2*)
9700      hardcode_libdir_flag_spec='-L$libdir'
9701      hardcode_minus_L=yes
9702      allow_undefined_flag=unsupported
9703      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'
9704      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9705      ;;
9706
9707    osf3*)
9708      if test "$GCC" = yes; then
9709	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9710	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'
9711      else
9712	allow_undefined_flag=' -expect_unresolved \*'
9713	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'
9714      fi
9715      archive_cmds_need_lc='no'
9716      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9717      hardcode_libdir_separator=:
9718      ;;
9719
9720    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9721      if test "$GCC" = yes; then
9722	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9723	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'
9724	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9725      else
9726	allow_undefined_flag=' -expect_unresolved \*'
9727	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'
9728	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~
9729	$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'
9730
9731	# Both c and cxx compiler support -rpath directly
9732	hardcode_libdir_flag_spec='-rpath $libdir'
9733      fi
9734      archive_cmds_need_lc='no'
9735      hardcode_libdir_separator=:
9736      ;;
9737
9738    solaris*)
9739      no_undefined_flag=' -z defs'
9740      if test "$GCC" = yes; then
9741	wlarc='${wl}'
9742	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9743	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9744	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9745      else
9746	case `$CC -V 2>&1` in
9747	*"Compilers 5.0"*)
9748	  wlarc=''
9749	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9750	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9751	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9752	  ;;
9753	*)
9754	  wlarc='${wl}'
9755	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9756	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9757	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9758	  ;;
9759	esac
9760      fi
9761      hardcode_libdir_flag_spec='-R$libdir'
9762      hardcode_shlibpath_var=no
9763      case $host_os in
9764      solaris2.[0-5] | solaris2.[0-5].*) ;;
9765      *)
9766	# The compiler driver will combine and reorder linker options,
9767	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9768	# but is careful enough not to reorder.
9769	# Supported since Solaris 2.6 (maybe 2.5.1?)
9770	if test "$GCC" = yes; then
9771	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9772	else
9773	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9774	fi
9775	;;
9776      esac
9777      link_all_deplibs=yes
9778      ;;
9779
9780    sunos4*)
9781      if test "x$host_vendor" = xsequent; then
9782	# Use $CC to link under sequent, because it throws in some extra .o
9783	# files that make .init and .fini sections work.
9784	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9785      else
9786	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9787      fi
9788      hardcode_libdir_flag_spec='-L$libdir'
9789      hardcode_direct=yes
9790      hardcode_minus_L=yes
9791      hardcode_shlibpath_var=no
9792      ;;
9793
9794    sysv4)
9795      case $host_vendor in
9796	sni)
9797	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9798	  hardcode_direct=yes # is this really true???
9799	;;
9800	siemens)
9801	  ## LD is ld it makes a PLAMLIB
9802	  ## CC just makes a GrossModule.
9803	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9804	  reload_cmds='$CC -r -o $output$reload_objs'
9805	  hardcode_direct=no
9806        ;;
9807	motorola)
9808	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9809	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9810	;;
9811      esac
9812      runpath_var='LD_RUN_PATH'
9813      hardcode_shlibpath_var=no
9814      ;;
9815
9816    sysv4.3*)
9817      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9818      hardcode_shlibpath_var=no
9819      export_dynamic_flag_spec='-Bexport'
9820      ;;
9821
9822    sysv4*MP*)
9823      if test -d /usr/nec; then
9824	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9825	hardcode_shlibpath_var=no
9826	runpath_var=LD_RUN_PATH
9827	hardcode_runpath_var=yes
9828	ld_shlibs=yes
9829      fi
9830      ;;
9831
9832    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9833      no_undefined_flag='${wl}-z,text'
9834      archive_cmds_need_lc=no
9835      hardcode_shlibpath_var=no
9836      runpath_var='LD_RUN_PATH'
9837
9838      if test "$GCC" = yes; then
9839	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9840	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9841      else
9842	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9843	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9844      fi
9845      ;;
9846
9847    sysv5* | sco3.2v5* | sco5v6*)
9848      # Note: We can NOT use -z defs as we might desire, because we do not
9849      # link with -lc, and that would cause any symbols used from libc to
9850      # always be unresolved, which means just about no library would
9851      # ever link correctly.  If we're not using GNU ld we use -z text
9852      # though, which does catch some bad symbols but isn't as heavy-handed
9853      # as -z defs.
9854      no_undefined_flag='${wl}-z,text'
9855      allow_undefined_flag='${wl}-z,nodefs'
9856      archive_cmds_need_lc=no
9857      hardcode_shlibpath_var=no
9858      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9859      hardcode_libdir_separator=':'
9860      link_all_deplibs=yes
9861      export_dynamic_flag_spec='${wl}-Bexport'
9862      runpath_var='LD_RUN_PATH'
9863
9864      if test "$GCC" = yes; then
9865	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9866	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9867      else
9868	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9869	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9870      fi
9871      ;;
9872
9873    uts4*)
9874      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9875      hardcode_libdir_flag_spec='-L$libdir'
9876      hardcode_shlibpath_var=no
9877      ;;
9878
9879    *)
9880      ld_shlibs=no
9881      ;;
9882    esac
9883
9884    if test x$host_vendor = xsni; then
9885      case $host in
9886      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9887	export_dynamic_flag_spec='${wl}-Blargedynsym'
9888	;;
9889      esac
9890    fi
9891  fi
9892
9893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9894$as_echo "$ld_shlibs" >&6; }
9895test "$ld_shlibs" = no && can_build_shared=no
9896
9897with_gnu_ld=$with_gnu_ld
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913#
9914# Do we need to explicitly link libc?
9915#
9916case "x$archive_cmds_need_lc" in
9917x|xyes)
9918  # Assume -lc should be added
9919  archive_cmds_need_lc=yes
9920
9921  if test "$enable_shared" = yes && test "$GCC" = yes; then
9922    case $archive_cmds in
9923    *'~'*)
9924      # FIXME: we may have to deal with multi-command sequences.
9925      ;;
9926    '$CC '*)
9927      # Test whether the compiler implicitly links with -lc since on some
9928      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9929      # to ld, don't add -lc before -lgcc.
9930      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9931$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9932      $RM conftest*
9933      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9934
9935      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9936  (eval $ac_compile) 2>&5
9937  ac_status=$?
9938  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9939  test $ac_status = 0; } 2>conftest.err; then
9940        soname=conftest
9941        lib=conftest
9942        libobjs=conftest.$ac_objext
9943        deplibs=
9944        wl=$lt_prog_compiler_wl
9945	pic_flag=$lt_prog_compiler_pic
9946        compiler_flags=-v
9947        linker_flags=-v
9948        verstring=
9949        output_objdir=.
9950        libname=conftest
9951        lt_save_allow_undefined_flag=$allow_undefined_flag
9952        allow_undefined_flag=
9953        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9954  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9955  ac_status=$?
9956  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9957  test $ac_status = 0; }
9958        then
9959	  archive_cmds_need_lc=no
9960        else
9961	  archive_cmds_need_lc=yes
9962        fi
9963        allow_undefined_flag=$lt_save_allow_undefined_flag
9964      else
9965        cat conftest.err 1>&5
9966      fi
9967      $RM conftest*
9968      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9969$as_echo "$archive_cmds_need_lc" >&6; }
9970      ;;
9971    esac
9972  fi
9973  ;;
9974esac
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10133$as_echo_n "checking dynamic linker characteristics... " >&6; }
10134
10135if test "$GCC" = yes; then
10136  case $host_os in
10137    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10138    *) lt_awk_arg="/^libraries:/" ;;
10139  esac
10140  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10141  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10142    # if the path contains ";" then we assume it to be the separator
10143    # otherwise default to the standard path separator (i.e. ":") - it is
10144    # assumed that no part of a normal pathname contains ";" but that should
10145    # okay in the real world where ";" in dirpaths is itself problematic.
10146    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10147  else
10148    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10149  fi
10150  # Ok, now we have the path, separated by spaces, we can step through it
10151  # and add multilib dir if necessary.
10152  lt_tmp_lt_search_path_spec=
10153  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10154  for lt_sys_path in $lt_search_path_spec; do
10155    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10156      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10157    else
10158      test -d "$lt_sys_path" && \
10159	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10160    fi
10161  done
10162  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10163BEGIN {RS=" "; FS="/|\n";} {
10164  lt_foo="";
10165  lt_count=0;
10166  for (lt_i = NF; lt_i > 0; lt_i--) {
10167    if ($lt_i != "" && $lt_i != ".") {
10168      if ($lt_i == "..") {
10169        lt_count++;
10170      } else {
10171        if (lt_count == 0) {
10172          lt_foo="/" $lt_i lt_foo;
10173        } else {
10174          lt_count--;
10175        }
10176      }
10177    }
10178  }
10179  if (lt_foo != "") { lt_freq[lt_foo]++; }
10180  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10181}'`
10182  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10183else
10184  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10185fi
10186library_names_spec=
10187libname_spec='lib$name'
10188soname_spec=
10189shrext_cmds=".so"
10190postinstall_cmds=
10191postuninstall_cmds=
10192finish_cmds=
10193finish_eval=
10194shlibpath_var=
10195shlibpath_overrides_runpath=unknown
10196version_type=none
10197dynamic_linker="$host_os ld.so"
10198sys_lib_dlsearch_path_spec="/lib /usr/lib"
10199need_lib_prefix=unknown
10200hardcode_into_libs=no
10201
10202# when you set need_version to no, make sure it does not cause -set_version
10203# flags to be left without arguments
10204need_version=unknown
10205
10206case $host_os in
10207aix3*)
10208  version_type=linux
10209  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10210  shlibpath_var=LIBPATH
10211
10212  # AIX 3 has no versioning support, so we append a major version to the name.
10213  soname_spec='${libname}${release}${shared_ext}$major'
10214  ;;
10215
10216aix[4-9]*)
10217  version_type=linux
10218  need_lib_prefix=no
10219  need_version=no
10220  hardcode_into_libs=yes
10221  if test "$host_cpu" = ia64; then
10222    # AIX 5 supports IA64
10223    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10224    shlibpath_var=LD_LIBRARY_PATH
10225  else
10226    # With GCC up to 2.95.x, collect2 would create an import file
10227    # for dependence libraries.  The import file would start with
10228    # the line `#! .'.  This would cause the generated library to
10229    # depend on `.', always an invalid library.  This was fixed in
10230    # development snapshots of GCC prior to 3.0.
10231    case $host_os in
10232      aix4 | aix4.[01] | aix4.[01].*)
10233      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10234	   echo ' yes '
10235	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10236	:
10237      else
10238	can_build_shared=no
10239      fi
10240      ;;
10241    esac
10242    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10243    # soname into executable. Probably we can add versioning support to
10244    # collect2, so additional links can be useful in future.
10245    if test "$aix_use_runtimelinking" = yes; then
10246      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10247      # instead of lib<name>.a to let people know that these are not
10248      # typical AIX shared libraries.
10249      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10250    else
10251      # We preserve .a as extension for shared libraries through AIX4.2
10252      # and later when we are not doing run time linking.
10253      library_names_spec='${libname}${release}.a $libname.a'
10254      soname_spec='${libname}${release}${shared_ext}$major'
10255    fi
10256    shlibpath_var=LIBPATH
10257  fi
10258  ;;
10259
10260amigaos*)
10261  case $host_cpu in
10262  powerpc)
10263    # Since July 2007 AmigaOS4 officially supports .so libraries.
10264    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10265    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10266    ;;
10267  m68k)
10268    library_names_spec='$libname.ixlibrary $libname.a'
10269    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10270    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'
10271    ;;
10272  esac
10273  ;;
10274
10275beos*)
10276  library_names_spec='${libname}${shared_ext}'
10277  dynamic_linker="$host_os ld.so"
10278  shlibpath_var=LIBRARY_PATH
10279  ;;
10280
10281bsdi[45]*)
10282  version_type=linux
10283  need_version=no
10284  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10285  soname_spec='${libname}${release}${shared_ext}$major'
10286  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10287  shlibpath_var=LD_LIBRARY_PATH
10288  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10289  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10290  # the default ld.so.conf also contains /usr/contrib/lib and
10291  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10292  # libtool to hard-code these into programs
10293  ;;
10294
10295cygwin* | mingw* | pw32* | cegcc*)
10296  version_type=windows
10297  shrext_cmds=".dll"
10298  need_version=no
10299  need_lib_prefix=no
10300
10301  case $GCC,$host_os in
10302  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10303    library_names_spec='$libname.dll.a'
10304    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10305    postinstall_cmds='base_file=`basename \${file}`~
10306      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10307      dldir=$destdir/`dirname \$dlpath`~
10308      test -d \$dldir || mkdir -p \$dldir~
10309      $install_prog $dir/$dlname \$dldir/$dlname~
10310      chmod a+x \$dldir/$dlname~
10311      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10312        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10313      fi'
10314    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10315      dlpath=$dir/\$dldll~
10316       $RM \$dlpath'
10317    shlibpath_overrides_runpath=yes
10318
10319    case $host_os in
10320    cygwin*)
10321      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10322      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10323      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10324      ;;
10325    mingw* | cegcc*)
10326      # MinGW DLLs use traditional 'lib' prefix
10327      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10328      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10329      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10330        # It is most probably a Windows format PATH printed by
10331        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10332        # path with ; separators, and with drive letters. We can handle the
10333        # drive letters (cygwin fileutils understands them), so leave them,
10334        # especially as we might pass files found there to a mingw objdump,
10335        # which wouldn't understand a cygwinified path. Ahh.
10336        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10337      else
10338        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10339      fi
10340      ;;
10341    pw32*)
10342      # pw32 DLLs use 'pw' prefix rather than 'lib'
10343      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10344      ;;
10345    esac
10346    ;;
10347
10348  *)
10349    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10350    ;;
10351  esac
10352  dynamic_linker='Win32 ld.exe'
10353  # FIXME: first we should search . and the directory the executable is in
10354  shlibpath_var=PATH
10355  ;;
10356
10357darwin* | rhapsody*)
10358  dynamic_linker="$host_os dyld"
10359  version_type=darwin
10360  need_lib_prefix=no
10361  need_version=no
10362  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10363  soname_spec='${libname}${release}${major}$shared_ext'
10364  shlibpath_overrides_runpath=yes
10365  shlibpath_var=DYLD_LIBRARY_PATH
10366  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10367
10368  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10369  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10370  ;;
10371
10372dgux*)
10373  version_type=linux
10374  need_lib_prefix=no
10375  need_version=no
10376  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10377  soname_spec='${libname}${release}${shared_ext}$major'
10378  shlibpath_var=LD_LIBRARY_PATH
10379  ;;
10380
10381freebsd1*)
10382  dynamic_linker=no
10383  ;;
10384
10385freebsd* | dragonfly*)
10386  # DragonFly does not have aout.  When/if they implement a new
10387  # versioning mechanism, adjust this.
10388  if test -x /usr/bin/objformat; then
10389    objformat=`/usr/bin/objformat`
10390  else
10391    case $host_os in
10392    freebsd[123]*) objformat=aout ;;
10393    *) objformat=elf ;;
10394    esac
10395  fi
10396  version_type=freebsd-$objformat
10397  case $version_type in
10398    freebsd-elf*)
10399      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10400      need_version=no
10401      need_lib_prefix=no
10402      ;;
10403    freebsd-*)
10404      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10405      need_version=yes
10406      ;;
10407  esac
10408  shlibpath_var=LD_LIBRARY_PATH
10409  case $host_os in
10410  freebsd2*)
10411    shlibpath_overrides_runpath=yes
10412    ;;
10413  freebsd3.[01]* | freebsdelf3.[01]*)
10414    shlibpath_overrides_runpath=yes
10415    hardcode_into_libs=yes
10416    ;;
10417  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10418  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10419    shlibpath_overrides_runpath=no
10420    hardcode_into_libs=yes
10421    ;;
10422  *) # from 4.6 on, and DragonFly
10423    shlibpath_overrides_runpath=yes
10424    hardcode_into_libs=yes
10425    ;;
10426  esac
10427  ;;
10428
10429gnu*)
10430  version_type=linux
10431  need_lib_prefix=no
10432  need_version=no
10433  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10434  soname_spec='${libname}${release}${shared_ext}$major'
10435  shlibpath_var=LD_LIBRARY_PATH
10436  hardcode_into_libs=yes
10437  ;;
10438
10439hpux9* | hpux10* | hpux11*)
10440  # Give a soname corresponding to the major version so that dld.sl refuses to
10441  # link against other versions.
10442  version_type=sunos
10443  need_lib_prefix=no
10444  need_version=no
10445  case $host_cpu in
10446  ia64*)
10447    shrext_cmds='.so'
10448    hardcode_into_libs=yes
10449    dynamic_linker="$host_os dld.so"
10450    shlibpath_var=LD_LIBRARY_PATH
10451    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10452    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10453    soname_spec='${libname}${release}${shared_ext}$major'
10454    if test "X$HPUX_IA64_MODE" = X32; then
10455      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10456    else
10457      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10458    fi
10459    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10460    ;;
10461  hppa*64*)
10462    shrext_cmds='.sl'
10463    hardcode_into_libs=yes
10464    dynamic_linker="$host_os dld.sl"
10465    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10466    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10467    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10468    soname_spec='${libname}${release}${shared_ext}$major'
10469    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10470    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10471    ;;
10472  *)
10473    shrext_cmds='.sl'
10474    dynamic_linker="$host_os dld.sl"
10475    shlibpath_var=SHLIB_PATH
10476    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10477    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10478    soname_spec='${libname}${release}${shared_ext}$major'
10479    ;;
10480  esac
10481  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10482  postinstall_cmds='chmod 555 $lib'
10483  ;;
10484
10485interix[3-9]*)
10486  version_type=linux
10487  need_lib_prefix=no
10488  need_version=no
10489  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10490  soname_spec='${libname}${release}${shared_ext}$major'
10491  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10492  shlibpath_var=LD_LIBRARY_PATH
10493  shlibpath_overrides_runpath=no
10494  hardcode_into_libs=yes
10495  ;;
10496
10497irix5* | irix6* | nonstopux*)
10498  case $host_os in
10499    nonstopux*) version_type=nonstopux ;;
10500    *)
10501	if test "$lt_cv_prog_gnu_ld" = yes; then
10502		version_type=linux
10503	else
10504		version_type=irix
10505	fi ;;
10506  esac
10507  need_lib_prefix=no
10508  need_version=no
10509  soname_spec='${libname}${release}${shared_ext}$major'
10510  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10511  case $host_os in
10512  irix5* | nonstopux*)
10513    libsuff= shlibsuff=
10514    ;;
10515  *)
10516    case $LD in # libtool.m4 will add one of these switches to LD
10517    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10518      libsuff= shlibsuff= libmagic=32-bit;;
10519    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10520      libsuff=32 shlibsuff=N32 libmagic=N32;;
10521    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10522      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10523    *) libsuff= shlibsuff= libmagic=never-match;;
10524    esac
10525    ;;
10526  esac
10527  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10528  shlibpath_overrides_runpath=no
10529  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10530  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10531  hardcode_into_libs=yes
10532  ;;
10533
10534# No shared lib support for Linux oldld, aout, or coff.
10535linux*oldld* | linux*aout* | linux*coff*)
10536  dynamic_linker=no
10537  ;;
10538
10539# This must be Linux ELF.
10540linux* | k*bsd*-gnu | kopensolaris*-gnu)
10541  version_type=linux
10542  need_lib_prefix=no
10543  need_version=no
10544  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10545  soname_spec='${libname}${release}${shared_ext}$major'
10546  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10547  shlibpath_var=LD_LIBRARY_PATH
10548  shlibpath_overrides_runpath=no
10549  # Some binutils ld are patched to set DT_RUNPATH
10550  save_LDFLAGS=$LDFLAGS
10551  save_libdir=$libdir
10552  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10553       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10555/* end confdefs.h.  */
10556
10557int
10558main ()
10559{
10560
10561  ;
10562  return 0;
10563}
10564_ACEOF
10565if ac_fn_c_try_link "$LINENO"; then :
10566  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10567  shlibpath_overrides_runpath=yes
10568fi
10569fi
10570rm -f core conftest.err conftest.$ac_objext \
10571    conftest$ac_exeext conftest.$ac_ext
10572  LDFLAGS=$save_LDFLAGS
10573  libdir=$save_libdir
10574
10575  # This implies no fast_install, which is unacceptable.
10576  # Some rework will be needed to allow for fast_install
10577  # before this can be enabled.
10578  hardcode_into_libs=yes
10579
10580  # Append ld.so.conf contents to the search path
10581  if test -f /etc/ld.so.conf; then
10582    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' ' '`
10583    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10584  fi
10585
10586  # We used to test for /lib/ld.so.1 and disable shared libraries on
10587  # powerpc, because MkLinux only supported shared libraries with the
10588  # GNU dynamic linker.  Since this was broken with cross compilers,
10589  # most powerpc-linux boxes support dynamic linking these days and
10590  # people can always --disable-shared, the test was removed, and we
10591  # assume the GNU/Linux dynamic linker is in use.
10592  dynamic_linker='GNU/Linux ld.so'
10593  ;;
10594
10595netbsdelf*-gnu)
10596  version_type=linux
10597  need_lib_prefix=no
10598  need_version=no
10599  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10600  soname_spec='${libname}${release}${shared_ext}$major'
10601  shlibpath_var=LD_LIBRARY_PATH
10602  shlibpath_overrides_runpath=no
10603  hardcode_into_libs=yes
10604  dynamic_linker='NetBSD ld.elf_so'
10605  ;;
10606
10607netbsd*)
10608  version_type=sunos
10609  need_lib_prefix=no
10610  need_version=no
10611  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10612    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10613    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10614    dynamic_linker='NetBSD (a.out) ld.so'
10615  else
10616    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10617    soname_spec='${libname}${release}${shared_ext}$major'
10618    dynamic_linker='NetBSD ld.elf_so'
10619  fi
10620  shlibpath_var=LD_LIBRARY_PATH
10621  shlibpath_overrides_runpath=yes
10622  hardcode_into_libs=yes
10623  ;;
10624
10625newsos6)
10626  version_type=linux
10627  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10628  shlibpath_var=LD_LIBRARY_PATH
10629  shlibpath_overrides_runpath=yes
10630  ;;
10631
10632*nto* | *qnx*)
10633  version_type=qnx
10634  need_lib_prefix=no
10635  need_version=no
10636  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10637  soname_spec='${libname}${release}${shared_ext}$major'
10638  shlibpath_var=LD_LIBRARY_PATH
10639  shlibpath_overrides_runpath=no
10640  hardcode_into_libs=yes
10641  dynamic_linker='ldqnx.so'
10642  ;;
10643
10644openbsd*)
10645  version_type=sunos
10646  sys_lib_dlsearch_path_spec="/usr/lib"
10647  need_lib_prefix=no
10648  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10649  case $host_os in
10650    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10651    *)				need_version=no  ;;
10652  esac
10653  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10654  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10655  shlibpath_var=LD_LIBRARY_PATH
10656  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10657    case $host_os in
10658      openbsd2.[89] | openbsd2.[89].*)
10659	shlibpath_overrides_runpath=no
10660	;;
10661      *)
10662	shlibpath_overrides_runpath=yes
10663	;;
10664      esac
10665  else
10666    shlibpath_overrides_runpath=yes
10667  fi
10668  ;;
10669
10670os2*)
10671  libname_spec='$name'
10672  shrext_cmds=".dll"
10673  need_lib_prefix=no
10674  library_names_spec='$libname${shared_ext} $libname.a'
10675  dynamic_linker='OS/2 ld.exe'
10676  shlibpath_var=LIBPATH
10677  ;;
10678
10679osf3* | osf4* | osf5*)
10680  version_type=osf
10681  need_lib_prefix=no
10682  need_version=no
10683  soname_spec='${libname}${release}${shared_ext}$major'
10684  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10685  shlibpath_var=LD_LIBRARY_PATH
10686  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10687  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10688  ;;
10689
10690rdos*)
10691  dynamic_linker=no
10692  ;;
10693
10694solaris*)
10695  version_type=linux
10696  need_lib_prefix=no
10697  need_version=no
10698  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10699  soname_spec='${libname}${release}${shared_ext}$major'
10700  shlibpath_var=LD_LIBRARY_PATH
10701  shlibpath_overrides_runpath=yes
10702  hardcode_into_libs=yes
10703  # ldd complains unless libraries are executable
10704  postinstall_cmds='chmod +x $lib'
10705  ;;
10706
10707sunos4*)
10708  version_type=sunos
10709  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10710  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10711  shlibpath_var=LD_LIBRARY_PATH
10712  shlibpath_overrides_runpath=yes
10713  if test "$with_gnu_ld" = yes; then
10714    need_lib_prefix=no
10715  fi
10716  need_version=yes
10717  ;;
10718
10719sysv4 | sysv4.3*)
10720  version_type=linux
10721  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10722  soname_spec='${libname}${release}${shared_ext}$major'
10723  shlibpath_var=LD_LIBRARY_PATH
10724  case $host_vendor in
10725    sni)
10726      shlibpath_overrides_runpath=no
10727      need_lib_prefix=no
10728      runpath_var=LD_RUN_PATH
10729      ;;
10730    siemens)
10731      need_lib_prefix=no
10732      ;;
10733    motorola)
10734      need_lib_prefix=no
10735      need_version=no
10736      shlibpath_overrides_runpath=no
10737      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10738      ;;
10739  esac
10740  ;;
10741
10742sysv4*MP*)
10743  if test -d /usr/nec ;then
10744    version_type=linux
10745    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10746    soname_spec='$libname${shared_ext}.$major'
10747    shlibpath_var=LD_LIBRARY_PATH
10748  fi
10749  ;;
10750
10751sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10752  version_type=freebsd-elf
10753  need_lib_prefix=no
10754  need_version=no
10755  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10756  soname_spec='${libname}${release}${shared_ext}$major'
10757  shlibpath_var=LD_LIBRARY_PATH
10758  shlibpath_overrides_runpath=yes
10759  hardcode_into_libs=yes
10760  if test "$with_gnu_ld" = yes; then
10761    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10762  else
10763    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10764    case $host_os in
10765      sco3.2v5*)
10766        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10767	;;
10768    esac
10769  fi
10770  sys_lib_dlsearch_path_spec='/usr/lib'
10771  ;;
10772
10773tpf*)
10774  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10775  version_type=linux
10776  need_lib_prefix=no
10777  need_version=no
10778  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10779  shlibpath_var=LD_LIBRARY_PATH
10780  shlibpath_overrides_runpath=no
10781  hardcode_into_libs=yes
10782  ;;
10783
10784uts4*)
10785  version_type=linux
10786  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10787  soname_spec='${libname}${release}${shared_ext}$major'
10788  shlibpath_var=LD_LIBRARY_PATH
10789  ;;
10790
10791*)
10792  dynamic_linker=no
10793  ;;
10794esac
10795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10796$as_echo "$dynamic_linker" >&6; }
10797test "$dynamic_linker" = no && can_build_shared=no
10798
10799variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10800if test "$GCC" = yes; then
10801  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10802fi
10803
10804if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10805  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10806fi
10807if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10808  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10809fi
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10898$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10899hardcode_action=
10900if test -n "$hardcode_libdir_flag_spec" ||
10901   test -n "$runpath_var" ||
10902   test "X$hardcode_automatic" = "Xyes" ; then
10903
10904  # We can hardcode non-existent directories.
10905  if test "$hardcode_direct" != no &&
10906     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10907     # have to relink, otherwise we might link with an installed library
10908     # when we should be linking with a yet-to-be-installed one
10909     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10910     test "$hardcode_minus_L" != no; then
10911    # Linking always hardcodes the temporary library directory.
10912    hardcode_action=relink
10913  else
10914    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10915    hardcode_action=immediate
10916  fi
10917else
10918  # We cannot hardcode anything, or else we can only hardcode existing
10919  # directories.
10920  hardcode_action=unsupported
10921fi
10922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10923$as_echo "$hardcode_action" >&6; }
10924
10925if test "$hardcode_action" = relink ||
10926   test "$inherit_rpath" = yes; then
10927  # Fast installation is not supported
10928  enable_fast_install=no
10929elif test "$shlibpath_overrides_runpath" = yes ||
10930     test "$enable_shared" = no; then
10931  # Fast installation is not necessary
10932  enable_fast_install=needless
10933fi
10934
10935
10936
10937
10938
10939
10940  if test "x$enable_dlopen" != xyes; then
10941  enable_dlopen=unknown
10942  enable_dlopen_self=unknown
10943  enable_dlopen_self_static=unknown
10944else
10945  lt_cv_dlopen=no
10946  lt_cv_dlopen_libs=
10947
10948  case $host_os in
10949  beos*)
10950    lt_cv_dlopen="load_add_on"
10951    lt_cv_dlopen_libs=
10952    lt_cv_dlopen_self=yes
10953    ;;
10954
10955  mingw* | pw32* | cegcc*)
10956    lt_cv_dlopen="LoadLibrary"
10957    lt_cv_dlopen_libs=
10958    ;;
10959
10960  cygwin*)
10961    lt_cv_dlopen="dlopen"
10962    lt_cv_dlopen_libs=
10963    ;;
10964
10965  darwin*)
10966  # if libdl is installed we need to link against it
10967    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10968$as_echo_n "checking for dlopen in -ldl... " >&6; }
10969if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10970  $as_echo_n "(cached) " >&6
10971else
10972  ac_check_lib_save_LIBS=$LIBS
10973LIBS="-ldl  $LIBS"
10974cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10975/* end confdefs.h.  */
10976
10977/* Override any GCC internal prototype to avoid an error.
10978   Use char because int might match the return type of a GCC
10979   builtin and then its argument prototype would still apply.  */
10980#ifdef __cplusplus
10981extern "C"
10982#endif
10983char dlopen ();
10984int
10985main ()
10986{
10987return dlopen ();
10988  ;
10989  return 0;
10990}
10991_ACEOF
10992if ac_fn_c_try_link "$LINENO"; then :
10993  ac_cv_lib_dl_dlopen=yes
10994else
10995  ac_cv_lib_dl_dlopen=no
10996fi
10997rm -f core conftest.err conftest.$ac_objext \
10998    conftest$ac_exeext conftest.$ac_ext
10999LIBS=$ac_check_lib_save_LIBS
11000fi
11001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11002$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11003if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11004  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11005else
11006
11007    lt_cv_dlopen="dyld"
11008    lt_cv_dlopen_libs=
11009    lt_cv_dlopen_self=yes
11010
11011fi
11012
11013    ;;
11014
11015  *)
11016    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11017if test "x$ac_cv_func_shl_load" = x""yes; then :
11018  lt_cv_dlopen="shl_load"
11019else
11020  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11021$as_echo_n "checking for shl_load in -ldld... " >&6; }
11022if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11023  $as_echo_n "(cached) " >&6
11024else
11025  ac_check_lib_save_LIBS=$LIBS
11026LIBS="-ldld  $LIBS"
11027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11028/* end confdefs.h.  */
11029
11030/* Override any GCC internal prototype to avoid an error.
11031   Use char because int might match the return type of a GCC
11032   builtin and then its argument prototype would still apply.  */
11033#ifdef __cplusplus
11034extern "C"
11035#endif
11036char shl_load ();
11037int
11038main ()
11039{
11040return shl_load ();
11041  ;
11042  return 0;
11043}
11044_ACEOF
11045if ac_fn_c_try_link "$LINENO"; then :
11046  ac_cv_lib_dld_shl_load=yes
11047else
11048  ac_cv_lib_dld_shl_load=no
11049fi
11050rm -f core conftest.err conftest.$ac_objext \
11051    conftest$ac_exeext conftest.$ac_ext
11052LIBS=$ac_check_lib_save_LIBS
11053fi
11054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11055$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11056if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11057  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11058else
11059  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11060if test "x$ac_cv_func_dlopen" = x""yes; then :
11061  lt_cv_dlopen="dlopen"
11062else
11063  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11064$as_echo_n "checking for dlopen in -ldl... " >&6; }
11065if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11066  $as_echo_n "(cached) " >&6
11067else
11068  ac_check_lib_save_LIBS=$LIBS
11069LIBS="-ldl  $LIBS"
11070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11071/* end confdefs.h.  */
11072
11073/* Override any GCC internal prototype to avoid an error.
11074   Use char because int might match the return type of a GCC
11075   builtin and then its argument prototype would still apply.  */
11076#ifdef __cplusplus
11077extern "C"
11078#endif
11079char dlopen ();
11080int
11081main ()
11082{
11083return dlopen ();
11084  ;
11085  return 0;
11086}
11087_ACEOF
11088if ac_fn_c_try_link "$LINENO"; then :
11089  ac_cv_lib_dl_dlopen=yes
11090else
11091  ac_cv_lib_dl_dlopen=no
11092fi
11093rm -f core conftest.err conftest.$ac_objext \
11094    conftest$ac_exeext conftest.$ac_ext
11095LIBS=$ac_check_lib_save_LIBS
11096fi
11097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11098$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11099if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11100  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11101else
11102  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11103$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11104if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11105  $as_echo_n "(cached) " >&6
11106else
11107  ac_check_lib_save_LIBS=$LIBS
11108LIBS="-lsvld  $LIBS"
11109cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11110/* end confdefs.h.  */
11111
11112/* Override any GCC internal prototype to avoid an error.
11113   Use char because int might match the return type of a GCC
11114   builtin and then its argument prototype would still apply.  */
11115#ifdef __cplusplus
11116extern "C"
11117#endif
11118char dlopen ();
11119int
11120main ()
11121{
11122return dlopen ();
11123  ;
11124  return 0;
11125}
11126_ACEOF
11127if ac_fn_c_try_link "$LINENO"; then :
11128  ac_cv_lib_svld_dlopen=yes
11129else
11130  ac_cv_lib_svld_dlopen=no
11131fi
11132rm -f core conftest.err conftest.$ac_objext \
11133    conftest$ac_exeext conftest.$ac_ext
11134LIBS=$ac_check_lib_save_LIBS
11135fi
11136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11137$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11138if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11139  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11140else
11141  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11142$as_echo_n "checking for dld_link in -ldld... " >&6; }
11143if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11144  $as_echo_n "(cached) " >&6
11145else
11146  ac_check_lib_save_LIBS=$LIBS
11147LIBS="-ldld  $LIBS"
11148cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11149/* end confdefs.h.  */
11150
11151/* Override any GCC internal prototype to avoid an error.
11152   Use char because int might match the return type of a GCC
11153   builtin and then its argument prototype would still apply.  */
11154#ifdef __cplusplus
11155extern "C"
11156#endif
11157char dld_link ();
11158int
11159main ()
11160{
11161return dld_link ();
11162  ;
11163  return 0;
11164}
11165_ACEOF
11166if ac_fn_c_try_link "$LINENO"; then :
11167  ac_cv_lib_dld_dld_link=yes
11168else
11169  ac_cv_lib_dld_dld_link=no
11170fi
11171rm -f core conftest.err conftest.$ac_objext \
11172    conftest$ac_exeext conftest.$ac_ext
11173LIBS=$ac_check_lib_save_LIBS
11174fi
11175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11176$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11177if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11178  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11179fi
11180
11181
11182fi
11183
11184
11185fi
11186
11187
11188fi
11189
11190
11191fi
11192
11193
11194fi
11195
11196    ;;
11197  esac
11198
11199  if test "x$lt_cv_dlopen" != xno; then
11200    enable_dlopen=yes
11201  else
11202    enable_dlopen=no
11203  fi
11204
11205  case $lt_cv_dlopen in
11206  dlopen)
11207    save_CPPFLAGS="$CPPFLAGS"
11208    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11209
11210    save_LDFLAGS="$LDFLAGS"
11211    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11212
11213    save_LIBS="$LIBS"
11214    LIBS="$lt_cv_dlopen_libs $LIBS"
11215
11216    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11217$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11218if test "${lt_cv_dlopen_self+set}" = set; then :
11219  $as_echo_n "(cached) " >&6
11220else
11221  	  if test "$cross_compiling" = yes; then :
11222  lt_cv_dlopen_self=cross
11223else
11224  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11225  lt_status=$lt_dlunknown
11226  cat > conftest.$ac_ext <<_LT_EOF
11227#line 11227 "configure"
11228#include "confdefs.h"
11229
11230#if HAVE_DLFCN_H
11231#include <dlfcn.h>
11232#endif
11233
11234#include <stdio.h>
11235
11236#ifdef RTLD_GLOBAL
11237#  define LT_DLGLOBAL		RTLD_GLOBAL
11238#else
11239#  ifdef DL_GLOBAL
11240#    define LT_DLGLOBAL		DL_GLOBAL
11241#  else
11242#    define LT_DLGLOBAL		0
11243#  endif
11244#endif
11245
11246/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11247   find out it does not work in some platform. */
11248#ifndef LT_DLLAZY_OR_NOW
11249#  ifdef RTLD_LAZY
11250#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11251#  else
11252#    ifdef DL_LAZY
11253#      define LT_DLLAZY_OR_NOW		DL_LAZY
11254#    else
11255#      ifdef RTLD_NOW
11256#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11257#      else
11258#        ifdef DL_NOW
11259#          define LT_DLLAZY_OR_NOW	DL_NOW
11260#        else
11261#          define LT_DLLAZY_OR_NOW	0
11262#        endif
11263#      endif
11264#    endif
11265#  endif
11266#endif
11267
11268void fnord() { int i=42;}
11269int main ()
11270{
11271  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11272  int status = $lt_dlunknown;
11273
11274  if (self)
11275    {
11276      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11277      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11278      /* dlclose (self); */
11279    }
11280  else
11281    puts (dlerror ());
11282
11283  return status;
11284}
11285_LT_EOF
11286  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11287  (eval $ac_link) 2>&5
11288  ac_status=$?
11289  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11290  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11291    (./conftest; exit; ) >&5 2>/dev/null
11292    lt_status=$?
11293    case x$lt_status in
11294      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11295      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11296      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11297    esac
11298  else :
11299    # compilation failed
11300    lt_cv_dlopen_self=no
11301  fi
11302fi
11303rm -fr conftest*
11304
11305
11306fi
11307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11308$as_echo "$lt_cv_dlopen_self" >&6; }
11309
11310    if test "x$lt_cv_dlopen_self" = xyes; then
11311      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11312      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11313$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11314if test "${lt_cv_dlopen_self_static+set}" = set; then :
11315  $as_echo_n "(cached) " >&6
11316else
11317  	  if test "$cross_compiling" = yes; then :
11318  lt_cv_dlopen_self_static=cross
11319else
11320  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11321  lt_status=$lt_dlunknown
11322  cat > conftest.$ac_ext <<_LT_EOF
11323#line 11323 "configure"
11324#include "confdefs.h"
11325
11326#if HAVE_DLFCN_H
11327#include <dlfcn.h>
11328#endif
11329
11330#include <stdio.h>
11331
11332#ifdef RTLD_GLOBAL
11333#  define LT_DLGLOBAL		RTLD_GLOBAL
11334#else
11335#  ifdef DL_GLOBAL
11336#    define LT_DLGLOBAL		DL_GLOBAL
11337#  else
11338#    define LT_DLGLOBAL		0
11339#  endif
11340#endif
11341
11342/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11343   find out it does not work in some platform. */
11344#ifndef LT_DLLAZY_OR_NOW
11345#  ifdef RTLD_LAZY
11346#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11347#  else
11348#    ifdef DL_LAZY
11349#      define LT_DLLAZY_OR_NOW		DL_LAZY
11350#    else
11351#      ifdef RTLD_NOW
11352#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11353#      else
11354#        ifdef DL_NOW
11355#          define LT_DLLAZY_OR_NOW	DL_NOW
11356#        else
11357#          define LT_DLLAZY_OR_NOW	0
11358#        endif
11359#      endif
11360#    endif
11361#  endif
11362#endif
11363
11364void fnord() { int i=42;}
11365int main ()
11366{
11367  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11368  int status = $lt_dlunknown;
11369
11370  if (self)
11371    {
11372      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11373      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11374      /* dlclose (self); */
11375    }
11376  else
11377    puts (dlerror ());
11378
11379  return status;
11380}
11381_LT_EOF
11382  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11383  (eval $ac_link) 2>&5
11384  ac_status=$?
11385  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11386  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11387    (./conftest; exit; ) >&5 2>/dev/null
11388    lt_status=$?
11389    case x$lt_status in
11390      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11391      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11392      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11393    esac
11394  else :
11395    # compilation failed
11396    lt_cv_dlopen_self_static=no
11397  fi
11398fi
11399rm -fr conftest*
11400
11401
11402fi
11403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11404$as_echo "$lt_cv_dlopen_self_static" >&6; }
11405    fi
11406
11407    CPPFLAGS="$save_CPPFLAGS"
11408    LDFLAGS="$save_LDFLAGS"
11409    LIBS="$save_LIBS"
11410    ;;
11411  esac
11412
11413  case $lt_cv_dlopen_self in
11414  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11415  *) enable_dlopen_self=unknown ;;
11416  esac
11417
11418  case $lt_cv_dlopen_self_static in
11419  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11420  *) enable_dlopen_self_static=unknown ;;
11421  esac
11422fi
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440striplib=
11441old_striplib=
11442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11443$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11444if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11445  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11446  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11448$as_echo "yes" >&6; }
11449else
11450# FIXME - insert some real tests, host_os isn't really good enough
11451  case $host_os in
11452  darwin*)
11453    if test -n "$STRIP" ; then
11454      striplib="$STRIP -x"
11455      old_striplib="$STRIP -S"
11456      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11457$as_echo "yes" >&6; }
11458    else
11459      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11460$as_echo "no" >&6; }
11461    fi
11462    ;;
11463  *)
11464    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11465$as_echo "no" >&6; }
11466    ;;
11467  esac
11468fi
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481  # Report which library types will actually be built
11482  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11483$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11485$as_echo "$can_build_shared" >&6; }
11486
11487  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11488$as_echo_n "checking whether to build shared libraries... " >&6; }
11489  test "$can_build_shared" = "no" && enable_shared=no
11490
11491  # On AIX, shared libraries and static libraries use the same namespace, and
11492  # are all built from PIC.
11493  case $host_os in
11494  aix3*)
11495    test "$enable_shared" = yes && enable_static=no
11496    if test -n "$RANLIB"; then
11497      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11498      postinstall_cmds='$RANLIB $lib'
11499    fi
11500    ;;
11501
11502  aix[4-9]*)
11503    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11504      test "$enable_shared" = yes && enable_static=no
11505    fi
11506    ;;
11507  esac
11508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11509$as_echo "$enable_shared" >&6; }
11510
11511  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11512$as_echo_n "checking whether to build static libraries... " >&6; }
11513  # Make sure either enable_shared or enable_static is yes.
11514  test "$enable_shared" = yes || enable_static=yes
11515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11516$as_echo "$enable_static" >&6; }
11517
11518
11519
11520
11521fi
11522ac_ext=c
11523ac_cpp='$CPP $CPPFLAGS'
11524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11526ac_compiler_gnu=$ac_cv_c_compiler_gnu
11527
11528CC="$lt_save_CC"
11529
11530
11531ac_ext=cpp
11532ac_cpp='$CXXCPP $CPPFLAGS'
11533ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11534ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11535ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11536
11537archive_cmds_need_lc_CXX=no
11538allow_undefined_flag_CXX=
11539always_export_symbols_CXX=no
11540archive_expsym_cmds_CXX=
11541compiler_needs_object_CXX=no
11542export_dynamic_flag_spec_CXX=
11543hardcode_direct_CXX=no
11544hardcode_direct_absolute_CXX=no
11545hardcode_libdir_flag_spec_CXX=
11546hardcode_libdir_flag_spec_ld_CXX=
11547hardcode_libdir_separator_CXX=
11548hardcode_minus_L_CXX=no
11549hardcode_shlibpath_var_CXX=unsupported
11550hardcode_automatic_CXX=no
11551inherit_rpath_CXX=no
11552module_cmds_CXX=
11553module_expsym_cmds_CXX=
11554link_all_deplibs_CXX=unknown
11555old_archive_cmds_CXX=$old_archive_cmds
11556no_undefined_flag_CXX=
11557whole_archive_flag_spec_CXX=
11558enable_shared_with_static_runtimes_CXX=no
11559
11560# Source file extension for C++ test sources.
11561ac_ext=cpp
11562
11563# Object file extension for compiled C++ test sources.
11564objext=o
11565objext_CXX=$objext
11566
11567# No sense in running all these tests if we already determined that
11568# the CXX compiler isn't working.  Some variables (like enable_shared)
11569# are currently assumed to apply to all compilers on this platform,
11570# and will be corrupted by setting them based on a non-working compiler.
11571if test "$_lt_caught_CXX_error" != yes; then
11572  # Code to be used in simple compile tests
11573  lt_simple_compile_test_code="int some_variable = 0;"
11574
11575  # Code to be used in simple link tests
11576  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11577
11578  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11579
11580
11581
11582
11583
11584
11585# If no C compiler was specified, use CC.
11586LTCC=${LTCC-"$CC"}
11587
11588# If no C compiler flags were specified, use CFLAGS.
11589LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11590
11591# Allow CC to be a program name with arguments.
11592compiler=$CC
11593
11594
11595  # save warnings/boilerplate of simple test code
11596  ac_outfile=conftest.$ac_objext
11597echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11598eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11599_lt_compiler_boilerplate=`cat conftest.err`
11600$RM conftest*
11601
11602  ac_outfile=conftest.$ac_objext
11603echo "$lt_simple_link_test_code" >conftest.$ac_ext
11604eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11605_lt_linker_boilerplate=`cat conftest.err`
11606$RM -r conftest*
11607
11608
11609  # Allow CC to be a program name with arguments.
11610  lt_save_CC=$CC
11611  lt_save_LD=$LD
11612  lt_save_GCC=$GCC
11613  GCC=$GXX
11614  lt_save_with_gnu_ld=$with_gnu_ld
11615  lt_save_path_LD=$lt_cv_path_LD
11616  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11617    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11618  else
11619    $as_unset lt_cv_prog_gnu_ld
11620  fi
11621  if test -n "${lt_cv_path_LDCXX+set}"; then
11622    lt_cv_path_LD=$lt_cv_path_LDCXX
11623  else
11624    $as_unset lt_cv_path_LD
11625  fi
11626  test -z "${LDCXX+set}" || LD=$LDCXX
11627  CC=${CXX-"c++"}
11628  compiler=$CC
11629  compiler_CXX=$CC
11630  for cc_temp in $compiler""; do
11631  case $cc_temp in
11632    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11633    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11634    \-*) ;;
11635    *) break;;
11636  esac
11637done
11638cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11639
11640
11641  if test -n "$compiler"; then
11642    # We don't want -fno-exception when compiling C++ code, so set the
11643    # no_builtin_flag separately
11644    if test "$GXX" = yes; then
11645      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11646    else
11647      lt_prog_compiler_no_builtin_flag_CXX=
11648    fi
11649
11650    if test "$GXX" = yes; then
11651      # Set up default GNU C++ configuration
11652
11653
11654
11655# Check whether --with-gnu-ld was given.
11656if test "${with_gnu_ld+set}" = set; then :
11657  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11658else
11659  with_gnu_ld=no
11660fi
11661
11662ac_prog=ld
11663if test "$GCC" = yes; then
11664  # Check if gcc -print-prog-name=ld gives a path.
11665  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11666$as_echo_n "checking for ld used by $CC... " >&6; }
11667  case $host in
11668  *-*-mingw*)
11669    # gcc leaves a trailing carriage return which upsets mingw
11670    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11671  *)
11672    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11673  esac
11674  case $ac_prog in
11675    # Accept absolute paths.
11676    [\\/]* | ?:[\\/]*)
11677      re_direlt='/[^/][^/]*/\.\./'
11678      # Canonicalize the pathname of ld
11679      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11680      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11681	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11682      done
11683      test -z "$LD" && LD="$ac_prog"
11684      ;;
11685  "")
11686    # If it fails, then pretend we aren't using GCC.
11687    ac_prog=ld
11688    ;;
11689  *)
11690    # If it is relative, then search for the first ld in PATH.
11691    with_gnu_ld=unknown
11692    ;;
11693  esac
11694elif test "$with_gnu_ld" = yes; then
11695  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11696$as_echo_n "checking for GNU ld... " >&6; }
11697else
11698  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11699$as_echo_n "checking for non-GNU ld... " >&6; }
11700fi
11701if test "${lt_cv_path_LD+set}" = set; then :
11702  $as_echo_n "(cached) " >&6
11703else
11704  if test -z "$LD"; then
11705  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11706  for ac_dir in $PATH; do
11707    IFS="$lt_save_ifs"
11708    test -z "$ac_dir" && ac_dir=.
11709    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11710      lt_cv_path_LD="$ac_dir/$ac_prog"
11711      # Check to see if the program is GNU ld.  I'd rather use --version,
11712      # but apparently some variants of GNU ld only accept -v.
11713      # Break only if it was the GNU/non-GNU ld that we prefer.
11714      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11715      *GNU* | *'with BFD'*)
11716	test "$with_gnu_ld" != no && break
11717	;;
11718      *)
11719	test "$with_gnu_ld" != yes && break
11720	;;
11721      esac
11722    fi
11723  done
11724  IFS="$lt_save_ifs"
11725else
11726  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11727fi
11728fi
11729
11730LD="$lt_cv_path_LD"
11731if test -n "$LD"; then
11732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11733$as_echo "$LD" >&6; }
11734else
11735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11736$as_echo "no" >&6; }
11737fi
11738test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11740$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11741if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11742  $as_echo_n "(cached) " >&6
11743else
11744  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11745case `$LD -v 2>&1 </dev/null` in
11746*GNU* | *'with BFD'*)
11747  lt_cv_prog_gnu_ld=yes
11748  ;;
11749*)
11750  lt_cv_prog_gnu_ld=no
11751  ;;
11752esac
11753fi
11754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11755$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11756with_gnu_ld=$lt_cv_prog_gnu_ld
11757
11758
11759
11760
11761
11762
11763
11764      # Check if GNU C++ uses GNU ld as the underlying linker, since the
11765      # archiving commands below assume that GNU ld is being used.
11766      if test "$with_gnu_ld" = yes; then
11767        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11768        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'
11769
11770        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11771        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11772
11773        # If archive_cmds runs LD, not CC, wlarc should be empty
11774        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11775        #     investigate it a little bit more. (MM)
11776        wlarc='${wl}'
11777
11778        # ancient GNU ld didn't support --whole-archive et. al.
11779        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11780	  $GREP 'no-whole-archive' > /dev/null; then
11781          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11782        else
11783          whole_archive_flag_spec_CXX=
11784        fi
11785      else
11786        with_gnu_ld=no
11787        wlarc=
11788
11789        # A generic and very simple default shared library creation
11790        # command for GNU C++ for the case where it uses the native
11791        # linker, instead of GNU ld.  If possible, this setting should
11792        # overridden to take advantage of the native linker features on
11793        # the platform it is being used on.
11794        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11795      fi
11796
11797      # Commands to make compiler produce verbose output that lists
11798      # what "hidden" libraries, object files and flags are used when
11799      # linking a shared library.
11800      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11801
11802    else
11803      GXX=no
11804      with_gnu_ld=no
11805      wlarc=
11806    fi
11807
11808    # PORTME: fill in a description of your system's C++ link characteristics
11809    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11810$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11811    ld_shlibs_CXX=yes
11812    case $host_os in
11813      aix3*)
11814        # FIXME: insert proper C++ library support
11815        ld_shlibs_CXX=no
11816        ;;
11817      aix[4-9]*)
11818        if test "$host_cpu" = ia64; then
11819          # On IA64, the linker does run time linking by default, so we don't
11820          # have to do anything special.
11821          aix_use_runtimelinking=no
11822          exp_sym_flag='-Bexport'
11823          no_entry_flag=""
11824        else
11825          aix_use_runtimelinking=no
11826
11827          # Test if we are trying to use run time linking or normal
11828          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11829          # need to do runtime linking.
11830          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11831	    for ld_flag in $LDFLAGS; do
11832	      case $ld_flag in
11833	      *-brtl*)
11834	        aix_use_runtimelinking=yes
11835	        break
11836	        ;;
11837	      esac
11838	    done
11839	    ;;
11840          esac
11841
11842          exp_sym_flag='-bexport'
11843          no_entry_flag='-bnoentry'
11844        fi
11845
11846        # When large executables or shared objects are built, AIX ld can
11847        # have problems creating the table of contents.  If linking a library
11848        # or program results in "error TOC overflow" add -mminimal-toc to
11849        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11850        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11851
11852        archive_cmds_CXX=''
11853        hardcode_direct_CXX=yes
11854        hardcode_direct_absolute_CXX=yes
11855        hardcode_libdir_separator_CXX=':'
11856        link_all_deplibs_CXX=yes
11857        file_list_spec_CXX='${wl}-f,'
11858
11859        if test "$GXX" = yes; then
11860          case $host_os in aix4.[012]|aix4.[012].*)
11861          # We only want to do this on AIX 4.2 and lower, the check
11862          # below for broken collect2 doesn't work under 4.3+
11863	  collect2name=`${CC} -print-prog-name=collect2`
11864	  if test -f "$collect2name" &&
11865	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11866	  then
11867	    # We have reworked collect2
11868	    :
11869	  else
11870	    # We have old collect2
11871	    hardcode_direct_CXX=unsupported
11872	    # It fails to find uninstalled libraries when the uninstalled
11873	    # path is not listed in the libpath.  Setting hardcode_minus_L
11874	    # to unsupported forces relinking
11875	    hardcode_minus_L_CXX=yes
11876	    hardcode_libdir_flag_spec_CXX='-L$libdir'
11877	    hardcode_libdir_separator_CXX=
11878	  fi
11879          esac
11880          shared_flag='-shared'
11881	  if test "$aix_use_runtimelinking" = yes; then
11882	    shared_flag="$shared_flag "'${wl}-G'
11883	  fi
11884        else
11885          # not using gcc
11886          if test "$host_cpu" = ia64; then
11887	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11888	  # chokes on -Wl,-G. The following line is correct:
11889	  shared_flag='-G'
11890          else
11891	    if test "$aix_use_runtimelinking" = yes; then
11892	      shared_flag='${wl}-G'
11893	    else
11894	      shared_flag='${wl}-bM:SRE'
11895	    fi
11896          fi
11897        fi
11898
11899        export_dynamic_flag_spec_CXX='${wl}-bexpall'
11900        # It seems that -bexpall does not export symbols beginning with
11901        # underscore (_), so it is better to generate a list of symbols to
11902	# export.
11903        always_export_symbols_CXX=yes
11904        if test "$aix_use_runtimelinking" = yes; then
11905          # Warning - without using the other runtime loading flags (-brtl),
11906          # -berok will link without error, but may produce a broken library.
11907          allow_undefined_flag_CXX='-berok'
11908          # Determine the default libpath from the value encoded in an empty
11909          # executable.
11910          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11911/* end confdefs.h.  */
11912
11913int
11914main ()
11915{
11916
11917  ;
11918  return 0;
11919}
11920_ACEOF
11921if ac_fn_cxx_try_link "$LINENO"; then :
11922
11923lt_aix_libpath_sed='
11924    /Import File Strings/,/^$/ {
11925	/^0/ {
11926	    s/^0  *\(.*\)$/\1/
11927	    p
11928	}
11929    }'
11930aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11931# Check for a 64-bit object if we didn't find anything.
11932if test -z "$aix_libpath"; then
11933  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11934fi
11935fi
11936rm -f core conftest.err conftest.$ac_objext \
11937    conftest$ac_exeext conftest.$ac_ext
11938if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11939
11940          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11941
11942          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"
11943        else
11944          if test "$host_cpu" = ia64; then
11945	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11946	    allow_undefined_flag_CXX="-z nodefs"
11947	    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"
11948          else
11949	    # Determine the default libpath from the value encoded in an
11950	    # empty executable.
11951	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11952/* end confdefs.h.  */
11953
11954int
11955main ()
11956{
11957
11958  ;
11959  return 0;
11960}
11961_ACEOF
11962if ac_fn_cxx_try_link "$LINENO"; then :
11963
11964lt_aix_libpath_sed='
11965    /Import File Strings/,/^$/ {
11966	/^0/ {
11967	    s/^0  *\(.*\)$/\1/
11968	    p
11969	}
11970    }'
11971aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11972# Check for a 64-bit object if we didn't find anything.
11973if test -z "$aix_libpath"; then
11974  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11975fi
11976fi
11977rm -f core conftest.err conftest.$ac_objext \
11978    conftest$ac_exeext conftest.$ac_ext
11979if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11980
11981	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11982	    # Warning - without using the other run time loading flags,
11983	    # -berok will link without error, but may produce a broken library.
11984	    no_undefined_flag_CXX=' ${wl}-bernotok'
11985	    allow_undefined_flag_CXX=' ${wl}-berok'
11986	    # Exported symbols can be pulled into shared objects from archives
11987	    whole_archive_flag_spec_CXX='$convenience'
11988	    archive_cmds_need_lc_CXX=yes
11989	    # This is similar to how AIX traditionally builds its shared
11990	    # libraries.
11991	    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'
11992          fi
11993        fi
11994        ;;
11995
11996      beos*)
11997	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11998	  allow_undefined_flag_CXX=unsupported
11999	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12000	  # support --undefined.  This deserves some investigation.  FIXME
12001	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12002	else
12003	  ld_shlibs_CXX=no
12004	fi
12005	;;
12006
12007      chorus*)
12008        case $cc_basename in
12009          *)
12010	  # FIXME: insert proper C++ library support
12011	  ld_shlibs_CXX=no
12012	  ;;
12013        esac
12014        ;;
12015
12016      cygwin* | mingw* | pw32* | cegcc*)
12017        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12018        # as there is no search path for DLLs.
12019        hardcode_libdir_flag_spec_CXX='-L$libdir'
12020        allow_undefined_flag_CXX=unsupported
12021        always_export_symbols_CXX=no
12022        enable_shared_with_static_runtimes_CXX=yes
12023
12024        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12025          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'
12026          # If the export-symbols file already is a .def file (1st line
12027          # is EXPORTS), use it as is; otherwise, prepend...
12028          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12029	    cp $export_symbols $output_objdir/$soname.def;
12030          else
12031	    echo EXPORTS > $output_objdir/$soname.def;
12032	    cat $export_symbols >> $output_objdir/$soname.def;
12033          fi~
12034          $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'
12035        else
12036          ld_shlibs_CXX=no
12037        fi
12038        ;;
12039      darwin* | rhapsody*)
12040
12041
12042  archive_cmds_need_lc_CXX=no
12043  hardcode_direct_CXX=no
12044  hardcode_automatic_CXX=yes
12045  hardcode_shlibpath_var_CXX=unsupported
12046  whole_archive_flag_spec_CXX=''
12047  link_all_deplibs_CXX=yes
12048  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12049  case $cc_basename in
12050     ifort*) _lt_dar_can_shared=yes ;;
12051     *) _lt_dar_can_shared=$GCC ;;
12052  esac
12053  if test "$_lt_dar_can_shared" = "yes"; then
12054    output_verbose_link_cmd=echo
12055    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}"
12056    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12057    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}"
12058    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}"
12059       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12060      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}"
12061      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}"
12062    fi
12063
12064  else
12065  ld_shlibs_CXX=no
12066  fi
12067
12068	;;
12069
12070      dgux*)
12071        case $cc_basename in
12072          ec++*)
12073	    # FIXME: insert proper C++ library support
12074	    ld_shlibs_CXX=no
12075	    ;;
12076          ghcx*)
12077	    # Green Hills C++ Compiler
12078	    # FIXME: insert proper C++ library support
12079	    ld_shlibs_CXX=no
12080	    ;;
12081          *)
12082	    # FIXME: insert proper C++ library support
12083	    ld_shlibs_CXX=no
12084	    ;;
12085        esac
12086        ;;
12087
12088      freebsd[12]*)
12089        # C++ shared libraries reported to be fairly broken before
12090	# switch to ELF
12091        ld_shlibs_CXX=no
12092        ;;
12093
12094      freebsd-elf*)
12095        archive_cmds_need_lc_CXX=no
12096        ;;
12097
12098      freebsd* | dragonfly*)
12099        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12100        # conventions
12101        ld_shlibs_CXX=yes
12102        ;;
12103
12104      gnu*)
12105        ;;
12106
12107      hpux9*)
12108        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12109        hardcode_libdir_separator_CXX=:
12110        export_dynamic_flag_spec_CXX='${wl}-E'
12111        hardcode_direct_CXX=yes
12112        hardcode_minus_L_CXX=yes # Not in the search PATH,
12113				             # but as the default
12114				             # location of the library.
12115
12116        case $cc_basename in
12117          CC*)
12118            # FIXME: insert proper C++ library support
12119            ld_shlibs_CXX=no
12120            ;;
12121          aCC*)
12122            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'
12123            # Commands to make compiler produce verbose output that lists
12124            # what "hidden" libraries, object files and flags are used when
12125            # linking a shared library.
12126            #
12127            # There doesn't appear to be a way to prevent this compiler from
12128            # explicitly linking system object files so we need to strip them
12129            # from the output so that they don't get included in the library
12130            # dependencies.
12131            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'
12132            ;;
12133          *)
12134            if test "$GXX" = yes; then
12135              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'
12136            else
12137              # FIXME: insert proper C++ library support
12138              ld_shlibs_CXX=no
12139            fi
12140            ;;
12141        esac
12142        ;;
12143
12144      hpux10*|hpux11*)
12145        if test $with_gnu_ld = no; then
12146	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12147	  hardcode_libdir_separator_CXX=:
12148
12149          case $host_cpu in
12150            hppa*64*|ia64*)
12151              ;;
12152            *)
12153	      export_dynamic_flag_spec_CXX='${wl}-E'
12154              ;;
12155          esac
12156        fi
12157        case $host_cpu in
12158          hppa*64*|ia64*)
12159            hardcode_direct_CXX=no
12160            hardcode_shlibpath_var_CXX=no
12161            ;;
12162          *)
12163            hardcode_direct_CXX=yes
12164            hardcode_direct_absolute_CXX=yes
12165            hardcode_minus_L_CXX=yes # Not in the search PATH,
12166					         # but as the default
12167					         # location of the library.
12168            ;;
12169        esac
12170
12171        case $cc_basename in
12172          CC*)
12173	    # FIXME: insert proper C++ library support
12174	    ld_shlibs_CXX=no
12175	    ;;
12176          aCC*)
12177	    case $host_cpu in
12178	      hppa*64*)
12179	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12180	        ;;
12181	      ia64*)
12182	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12183	        ;;
12184	      *)
12185	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12186	        ;;
12187	    esac
12188	    # Commands to make compiler produce verbose output that lists
12189	    # what "hidden" libraries, object files and flags are used when
12190	    # linking a shared library.
12191	    #
12192	    # There doesn't appear to be a way to prevent this compiler from
12193	    # explicitly linking system object files so we need to strip them
12194	    # from the output so that they don't get included in the library
12195	    # dependencies.
12196	    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'
12197	    ;;
12198          *)
12199	    if test "$GXX" = yes; then
12200	      if test $with_gnu_ld = no; then
12201	        case $host_cpu in
12202	          hppa*64*)
12203	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12204	            ;;
12205	          ia64*)
12206	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12207	            ;;
12208	          *)
12209	            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'
12210	            ;;
12211	        esac
12212	      fi
12213	    else
12214	      # FIXME: insert proper C++ library support
12215	      ld_shlibs_CXX=no
12216	    fi
12217	    ;;
12218        esac
12219        ;;
12220
12221      interix[3-9]*)
12222	hardcode_direct_CXX=no
12223	hardcode_shlibpath_var_CXX=no
12224	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12225	export_dynamic_flag_spec_CXX='${wl}-E'
12226	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12227	# Instead, shared libraries are loaded at an image base (0x10000000 by
12228	# default) and relocated if they conflict, which is a slow very memory
12229	# consuming and fragmenting process.  To avoid this, we pick a random,
12230	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12231	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12232	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'
12233	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'
12234	;;
12235      irix5* | irix6*)
12236        case $cc_basename in
12237          CC*)
12238	    # SGI C++
12239	    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'
12240
12241	    # Archives containing C++ object files must be created using
12242	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12243	    # necessary to make sure instantiated templates are included
12244	    # in the archive.
12245	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12246	    ;;
12247          *)
12248	    if test "$GXX" = yes; then
12249	      if test "$with_gnu_ld" = no; then
12250	        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'
12251	      else
12252	        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'
12253	      fi
12254	    fi
12255	    link_all_deplibs_CXX=yes
12256	    ;;
12257        esac
12258        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12259        hardcode_libdir_separator_CXX=:
12260        inherit_rpath_CXX=yes
12261        ;;
12262
12263      linux* | k*bsd*-gnu | kopensolaris*-gnu)
12264        case $cc_basename in
12265          KCC*)
12266	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12267
12268	    # KCC will only create a shared library if the output file
12269	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12270	    # to its proper name (with version) after linking.
12271	    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'
12272	    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'
12273	    # Commands to make compiler produce verbose output that lists
12274	    # what "hidden" libraries, object files and flags are used when
12275	    # linking a shared library.
12276	    #
12277	    # There doesn't appear to be a way to prevent this compiler from
12278	    # explicitly linking system object files so we need to strip them
12279	    # from the output so that they don't get included in the library
12280	    # dependencies.
12281	    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'
12282
12283	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12284	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12285
12286	    # Archives containing C++ object files must be created using
12287	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12288	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12289	    ;;
12290	  icpc* | ecpc* )
12291	    # Intel C++
12292	    with_gnu_ld=yes
12293	    # version 8.0 and above of icpc choke on multiply defined symbols
12294	    # if we add $predep_objects and $postdep_objects, however 7.1 and
12295	    # earlier do not add the objects themselves.
12296	    case `$CC -V 2>&1` in
12297	      *"Version 7."*)
12298	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12299		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'
12300		;;
12301	      *)  # Version 8.0 or newer
12302	        tmp_idyn=
12303	        case $host_cpu in
12304		  ia64*) tmp_idyn=' -i_dynamic';;
12305		esac
12306	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12307		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'
12308		;;
12309	    esac
12310	    archive_cmds_need_lc_CXX=no
12311	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12312	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12313	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12314	    ;;
12315          pgCC* | pgcpp*)
12316            # Portland Group C++ compiler
12317	    case `$CC -V` in
12318	    *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12319	      prelink_cmds_CXX='tpldir=Template.dir~
12320		rm -rf $tpldir~
12321		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12322		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12323	      old_archive_cmds_CXX='tpldir=Template.dir~
12324		rm -rf $tpldir~
12325		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12326		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12327		$RANLIB $oldlib'
12328	      archive_cmds_CXX='tpldir=Template.dir~
12329		rm -rf $tpldir~
12330		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12331		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12332	      archive_expsym_cmds_CXX='tpldir=Template.dir~
12333		rm -rf $tpldir~
12334		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12335		$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'
12336	      ;;
12337	    *) # Version 6 will use weak symbols
12338	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12339	      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'
12340	      ;;
12341	    esac
12342
12343	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12344	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12345	    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'
12346            ;;
12347	  cxx*)
12348	    # Compaq C++
12349	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12350	    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'
12351
12352	    runpath_var=LD_RUN_PATH
12353	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12354	    hardcode_libdir_separator_CXX=:
12355
12356	    # Commands to make compiler produce verbose output that lists
12357	    # what "hidden" libraries, object files and flags are used when
12358	    # linking a shared library.
12359	    #
12360	    # There doesn't appear to be a way to prevent this compiler from
12361	    # explicitly linking system object files so we need to strip them
12362	    # from the output so that they don't get included in the library
12363	    # dependencies.
12364	    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'
12365	    ;;
12366	  xl*)
12367	    # IBM XL 8.0 on PPC, with GNU ld
12368	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12369	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12370	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12371	    if test "x$supports_anon_versioning" = xyes; then
12372	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12373		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12374		echo "local: *; };" >> $output_objdir/$libname.ver~
12375		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12376	    fi
12377	    ;;
12378	  *)
12379	    case `$CC -V 2>&1 | sed 5q` in
12380	    *Sun\ C*)
12381	      # Sun C++ 5.9
12382	      no_undefined_flag_CXX=' -zdefs'
12383	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12384	      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'
12385	      hardcode_libdir_flag_spec_CXX='-R$libdir'
12386	      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'
12387	      compiler_needs_object_CXX=yes
12388
12389	      # Not sure whether something based on
12390	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12391	      # would be better.
12392	      output_verbose_link_cmd='echo'
12393
12394	      # Archives containing C++ object files must be created using
12395	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12396	      # necessary to make sure instantiated templates are included
12397	      # in the archive.
12398	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12399	      ;;
12400	    esac
12401	    ;;
12402	esac
12403	;;
12404
12405      lynxos*)
12406        # FIXME: insert proper C++ library support
12407	ld_shlibs_CXX=no
12408	;;
12409
12410      m88k*)
12411        # FIXME: insert proper C++ library support
12412        ld_shlibs_CXX=no
12413	;;
12414
12415      mvs*)
12416        case $cc_basename in
12417          cxx*)
12418	    # FIXME: insert proper C++ library support
12419	    ld_shlibs_CXX=no
12420	    ;;
12421	  *)
12422	    # FIXME: insert proper C++ library support
12423	    ld_shlibs_CXX=no
12424	    ;;
12425	esac
12426	;;
12427
12428      netbsd*)
12429        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12430	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12431	  wlarc=
12432	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12433	  hardcode_direct_CXX=yes
12434	  hardcode_shlibpath_var_CXX=no
12435	fi
12436	# Workaround some broken pre-1.5 toolchains
12437	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12438	;;
12439
12440      *nto* | *qnx*)
12441        ld_shlibs_CXX=yes
12442	;;
12443
12444      openbsd2*)
12445        # C++ shared libraries are fairly broken
12446	ld_shlibs_CXX=no
12447	;;
12448
12449      openbsd*)
12450	if test -f /usr/libexec/ld.so; then
12451	  hardcode_direct_CXX=yes
12452	  hardcode_shlibpath_var_CXX=no
12453	  hardcode_direct_absolute_CXX=yes
12454	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12455	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12456	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12457	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12458	    export_dynamic_flag_spec_CXX='${wl}-E'
12459	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12460	  fi
12461	  output_verbose_link_cmd=echo
12462	else
12463	  ld_shlibs_CXX=no
12464	fi
12465	;;
12466
12467      osf3* | osf4* | osf5*)
12468        case $cc_basename in
12469          KCC*)
12470	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12471
12472	    # KCC will only create a shared library if the output file
12473	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12474	    # to its proper name (with version) after linking.
12475	    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'
12476
12477	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12478	    hardcode_libdir_separator_CXX=:
12479
12480	    # Archives containing C++ object files must be created using
12481	    # the KAI C++ compiler.
12482	    case $host in
12483	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12484	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12485	    esac
12486	    ;;
12487          RCC*)
12488	    # Rational C++ 2.4.1
12489	    # FIXME: insert proper C++ library support
12490	    ld_shlibs_CXX=no
12491	    ;;
12492          cxx*)
12493	    case $host in
12494	      osf3*)
12495	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12496	        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'
12497	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12498		;;
12499	      *)
12500	        allow_undefined_flag_CXX=' -expect_unresolved \*'
12501	        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'
12502	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12503	          echo "-hidden">> $lib.exp~
12504	          $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~
12505	          $RM $lib.exp'
12506	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12507		;;
12508	    esac
12509
12510	    hardcode_libdir_separator_CXX=:
12511
12512	    # Commands to make compiler produce verbose output that lists
12513	    # what "hidden" libraries, object files and flags are used when
12514	    # linking a shared library.
12515	    #
12516	    # There doesn't appear to be a way to prevent this compiler from
12517	    # explicitly linking system object files so we need to strip them
12518	    # from the output so that they don't get included in the library
12519	    # dependencies.
12520	    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'
12521	    ;;
12522	  *)
12523	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12524	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12525	      case $host in
12526	        osf3*)
12527	          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'
12528		  ;;
12529	        *)
12530	          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'
12531		  ;;
12532	      esac
12533
12534	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12535	      hardcode_libdir_separator_CXX=:
12536
12537	      # Commands to make compiler produce verbose output that lists
12538	      # what "hidden" libraries, object files and flags are used when
12539	      # linking a shared library.
12540	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12541
12542	    else
12543	      # FIXME: insert proper C++ library support
12544	      ld_shlibs_CXX=no
12545	    fi
12546	    ;;
12547        esac
12548        ;;
12549
12550      psos*)
12551        # FIXME: insert proper C++ library support
12552        ld_shlibs_CXX=no
12553        ;;
12554
12555      sunos4*)
12556        case $cc_basename in
12557          CC*)
12558	    # Sun C++ 4.x
12559	    # FIXME: insert proper C++ library support
12560	    ld_shlibs_CXX=no
12561	    ;;
12562          lcc*)
12563	    # Lucid
12564	    # FIXME: insert proper C++ library support
12565	    ld_shlibs_CXX=no
12566	    ;;
12567          *)
12568	    # FIXME: insert proper C++ library support
12569	    ld_shlibs_CXX=no
12570	    ;;
12571        esac
12572        ;;
12573
12574      solaris*)
12575        case $cc_basename in
12576          CC*)
12577	    # Sun C++ 4.2, 5.x and Centerline C++
12578            archive_cmds_need_lc_CXX=yes
12579	    no_undefined_flag_CXX=' -zdefs'
12580	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12581	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12582	      $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'
12583
12584	    hardcode_libdir_flag_spec_CXX='-R$libdir'
12585	    hardcode_shlibpath_var_CXX=no
12586	    case $host_os in
12587	      solaris2.[0-5] | solaris2.[0-5].*) ;;
12588	      *)
12589		# The compiler driver will combine and reorder linker options,
12590		# but understands `-z linker_flag'.
12591	        # Supported since Solaris 2.6 (maybe 2.5.1?)
12592		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12593	        ;;
12594	    esac
12595	    link_all_deplibs_CXX=yes
12596
12597	    output_verbose_link_cmd='echo'
12598
12599	    # Archives containing C++ object files must be created using
12600	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12601	    # necessary to make sure instantiated templates are included
12602	    # in the archive.
12603	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12604	    ;;
12605          gcx*)
12606	    # Green Hills C++ Compiler
12607	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12608
12609	    # The C++ compiler must be used to create the archive.
12610	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12611	    ;;
12612          *)
12613	    # GNU C++ compiler with Solaris linker
12614	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12615	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12616	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12617	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12618	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12619		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12620
12621	        # Commands to make compiler produce verbose output that lists
12622	        # what "hidden" libraries, object files and flags are used when
12623	        # linking a shared library.
12624	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12625	      else
12626	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
12627	        # platform.
12628	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12629	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12630		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12631
12632	        # Commands to make compiler produce verbose output that lists
12633	        # what "hidden" libraries, object files and flags are used when
12634	        # linking a shared library.
12635	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12636	      fi
12637
12638	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12639	      case $host_os in
12640		solaris2.[0-5] | solaris2.[0-5].*) ;;
12641		*)
12642		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12643		  ;;
12644	      esac
12645	    fi
12646	    ;;
12647        esac
12648        ;;
12649
12650    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12651      no_undefined_flag_CXX='${wl}-z,text'
12652      archive_cmds_need_lc_CXX=no
12653      hardcode_shlibpath_var_CXX=no
12654      runpath_var='LD_RUN_PATH'
12655
12656      case $cc_basename in
12657        CC*)
12658	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12659	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12660	  ;;
12661	*)
12662	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12663	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12664	  ;;
12665      esac
12666      ;;
12667
12668      sysv5* | sco3.2v5* | sco5v6*)
12669	# Note: We can NOT use -z defs as we might desire, because we do not
12670	# link with -lc, and that would cause any symbols used from libc to
12671	# always be unresolved, which means just about no library would
12672	# ever link correctly.  If we're not using GNU ld we use -z text
12673	# though, which does catch some bad symbols but isn't as heavy-handed
12674	# as -z defs.
12675	no_undefined_flag_CXX='${wl}-z,text'
12676	allow_undefined_flag_CXX='${wl}-z,nodefs'
12677	archive_cmds_need_lc_CXX=no
12678	hardcode_shlibpath_var_CXX=no
12679	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12680	hardcode_libdir_separator_CXX=':'
12681	link_all_deplibs_CXX=yes
12682	export_dynamic_flag_spec_CXX='${wl}-Bexport'
12683	runpath_var='LD_RUN_PATH'
12684
12685	case $cc_basename in
12686          CC*)
12687	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12688	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12689	    ;;
12690	  *)
12691	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12692	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12693	    ;;
12694	esac
12695      ;;
12696
12697      tandem*)
12698        case $cc_basename in
12699          NCC*)
12700	    # NonStop-UX NCC 3.20
12701	    # FIXME: insert proper C++ library support
12702	    ld_shlibs_CXX=no
12703	    ;;
12704          *)
12705	    # FIXME: insert proper C++ library support
12706	    ld_shlibs_CXX=no
12707	    ;;
12708        esac
12709        ;;
12710
12711      vxworks*)
12712        # FIXME: insert proper C++ library support
12713        ld_shlibs_CXX=no
12714        ;;
12715
12716      *)
12717        # FIXME: insert proper C++ library support
12718        ld_shlibs_CXX=no
12719        ;;
12720    esac
12721
12722    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12723$as_echo "$ld_shlibs_CXX" >&6; }
12724    test "$ld_shlibs_CXX" = no && can_build_shared=no
12725
12726    GCC_CXX="$GXX"
12727    LD_CXX="$LD"
12728
12729    ## CAVEAT EMPTOR:
12730    ## There is no encapsulation within the following macros, do not change
12731    ## the running order or otherwise move them around unless you know exactly
12732    ## what you are doing...
12733    # Dependencies to place before and after the object being linked:
12734predep_objects_CXX=
12735postdep_objects_CXX=
12736predeps_CXX=
12737postdeps_CXX=
12738compiler_lib_search_path_CXX=
12739
12740cat > conftest.$ac_ext <<_LT_EOF
12741class Foo
12742{
12743public:
12744  Foo (void) { a = 0; }
12745private:
12746  int a;
12747};
12748_LT_EOF
12749
12750if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12751  (eval $ac_compile) 2>&5
12752  ac_status=$?
12753  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12754  test $ac_status = 0; }; then
12755  # Parse the compiler output and extract the necessary
12756  # objects, libraries and library flags.
12757
12758  # Sentinel used to keep track of whether or not we are before
12759  # the conftest object file.
12760  pre_test_object_deps_done=no
12761
12762  for p in `eval "$output_verbose_link_cmd"`; do
12763    case $p in
12764
12765    -L* | -R* | -l*)
12766       # Some compilers place space between "-{L,R}" and the path.
12767       # Remove the space.
12768       if test $p = "-L" ||
12769          test $p = "-R"; then
12770	 prev=$p
12771	 continue
12772       else
12773	 prev=
12774       fi
12775
12776       if test "$pre_test_object_deps_done" = no; then
12777	 case $p in
12778	 -L* | -R*)
12779	   # Internal compiler library paths should come after those
12780	   # provided the user.  The postdeps already come after the
12781	   # user supplied libs so there is no need to process them.
12782	   if test -z "$compiler_lib_search_path_CXX"; then
12783	     compiler_lib_search_path_CXX="${prev}${p}"
12784	   else
12785	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12786	   fi
12787	   ;;
12788	 # The "-l" case would never come before the object being
12789	 # linked, so don't bother handling this case.
12790	 esac
12791       else
12792	 if test -z "$postdeps_CXX"; then
12793	   postdeps_CXX="${prev}${p}"
12794	 else
12795	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12796	 fi
12797       fi
12798       ;;
12799
12800    *.$objext)
12801       # This assumes that the test object file only shows up
12802       # once in the compiler output.
12803       if test "$p" = "conftest.$objext"; then
12804	 pre_test_object_deps_done=yes
12805	 continue
12806       fi
12807
12808       if test "$pre_test_object_deps_done" = no; then
12809	 if test -z "$predep_objects_CXX"; then
12810	   predep_objects_CXX="$p"
12811	 else
12812	   predep_objects_CXX="$predep_objects_CXX $p"
12813	 fi
12814       else
12815	 if test -z "$postdep_objects_CXX"; then
12816	   postdep_objects_CXX="$p"
12817	 else
12818	   postdep_objects_CXX="$postdep_objects_CXX $p"
12819	 fi
12820       fi
12821       ;;
12822
12823    *) ;; # Ignore the rest.
12824
12825    esac
12826  done
12827
12828  # Clean up.
12829  rm -f a.out a.exe
12830else
12831  echo "libtool.m4: error: problem compiling CXX test program"
12832fi
12833
12834$RM -f confest.$objext
12835
12836# PORTME: override above test on systems where it is broken
12837case $host_os in
12838interix[3-9]*)
12839  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12840  # hack all around it, let's just trust "g++" to DTRT.
12841  predep_objects_CXX=
12842  postdep_objects_CXX=
12843  postdeps_CXX=
12844  ;;
12845
12846linux*)
12847  case `$CC -V 2>&1 | sed 5q` in
12848  *Sun\ C*)
12849    # Sun C++ 5.9
12850
12851    # The more standards-conforming stlport4 library is
12852    # incompatible with the Cstd library. Avoid specifying
12853    # it if it's in CXXFLAGS. Ignore libCrun as
12854    # -library=stlport4 depends on it.
12855    case " $CXX $CXXFLAGS " in
12856    *" -library=stlport4 "*)
12857      solaris_use_stlport4=yes
12858      ;;
12859    esac
12860
12861    if test "$solaris_use_stlport4" != yes; then
12862      postdeps_CXX='-library=Cstd -library=Crun'
12863    fi
12864    ;;
12865  esac
12866  ;;
12867
12868solaris*)
12869  case $cc_basename in
12870  CC*)
12871    # The more standards-conforming stlport4 library is
12872    # incompatible with the Cstd library. Avoid specifying
12873    # it if it's in CXXFLAGS. Ignore libCrun as
12874    # -library=stlport4 depends on it.
12875    case " $CXX $CXXFLAGS " in
12876    *" -library=stlport4 "*)
12877      solaris_use_stlport4=yes
12878      ;;
12879    esac
12880
12881    # Adding this requires a known-good setup of shared libraries for
12882    # Sun compiler versions before 5.6, else PIC objects from an old
12883    # archive will be linked into the output, leading to subtle bugs.
12884    if test "$solaris_use_stlport4" != yes; then
12885      postdeps_CXX='-library=Cstd -library=Crun'
12886    fi
12887    ;;
12888  esac
12889  ;;
12890esac
12891
12892
12893case " $postdeps_CXX " in
12894*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12895esac
12896 compiler_lib_search_dirs_CXX=
12897if test -n "${compiler_lib_search_path_CXX}"; then
12898 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12899fi
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931    lt_prog_compiler_wl_CXX=
12932lt_prog_compiler_pic_CXX=
12933lt_prog_compiler_static_CXX=
12934
12935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12936$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12937
12938  # C++ specific cases for pic, static, wl, etc.
12939  if test "$GXX" = yes; then
12940    lt_prog_compiler_wl_CXX='-Wl,'
12941    lt_prog_compiler_static_CXX='-static'
12942
12943    case $host_os in
12944    aix*)
12945      # All AIX code is PIC.
12946      if test "$host_cpu" = ia64; then
12947	# AIX 5 now supports IA64 processor
12948	lt_prog_compiler_static_CXX='-Bstatic'
12949      fi
12950      ;;
12951
12952    amigaos*)
12953      case $host_cpu in
12954      powerpc)
12955            # see comment about AmigaOS4 .so support
12956            lt_prog_compiler_pic_CXX='-fPIC'
12957        ;;
12958      m68k)
12959            # FIXME: we need at least 68020 code to build shared libraries, but
12960            # adding the `-m68020' flag to GCC prevents building anything better,
12961            # like `-m68040'.
12962            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12963        ;;
12964      esac
12965      ;;
12966
12967    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12968      # PIC is the default for these OSes.
12969      ;;
12970    mingw* | cygwin* | os2* | pw32* | cegcc*)
12971      # This hack is so that the source file can tell whether it is being
12972      # built for inclusion in a dll (and should export symbols for example).
12973      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12974      # (--disable-auto-import) libraries
12975      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12976      ;;
12977    darwin* | rhapsody*)
12978      # PIC is the default on this platform
12979      # Common symbols not allowed in MH_DYLIB files
12980      lt_prog_compiler_pic_CXX='-fno-common'
12981      ;;
12982    *djgpp*)
12983      # DJGPP does not support shared libraries at all
12984      lt_prog_compiler_pic_CXX=
12985      ;;
12986    interix[3-9]*)
12987      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12988      # Instead, we relocate shared libraries at runtime.
12989      ;;
12990    sysv4*MP*)
12991      if test -d /usr/nec; then
12992	lt_prog_compiler_pic_CXX=-Kconform_pic
12993      fi
12994      ;;
12995    hpux*)
12996      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12997      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12998      # sets the default TLS model and affects inlining.
12999      case $host_cpu in
13000      hppa*64*)
13001	;;
13002      *)
13003	lt_prog_compiler_pic_CXX='-fPIC'
13004	;;
13005      esac
13006      ;;
13007    *qnx* | *nto*)
13008      # QNX uses GNU C++, but need to define -shared option too, otherwise
13009      # it will coredump.
13010      lt_prog_compiler_pic_CXX='-fPIC -shared'
13011      ;;
13012    *)
13013      lt_prog_compiler_pic_CXX='-fPIC'
13014      ;;
13015    esac
13016  else
13017    case $host_os in
13018      aix[4-9]*)
13019	# All AIX code is PIC.
13020	if test "$host_cpu" = ia64; then
13021	  # AIX 5 now supports IA64 processor
13022	  lt_prog_compiler_static_CXX='-Bstatic'
13023	else
13024	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13025	fi
13026	;;
13027      chorus*)
13028	case $cc_basename in
13029	cxch68*)
13030	  # Green Hills C++ Compiler
13031	  # _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"
13032	  ;;
13033	esac
13034	;;
13035      dgux*)
13036	case $cc_basename in
13037	  ec++*)
13038	    lt_prog_compiler_pic_CXX='-KPIC'
13039	    ;;
13040	  ghcx*)
13041	    # Green Hills C++ Compiler
13042	    lt_prog_compiler_pic_CXX='-pic'
13043	    ;;
13044	  *)
13045	    ;;
13046	esac
13047	;;
13048      freebsd* | dragonfly*)
13049	# FreeBSD uses GNU C++
13050	;;
13051      hpux9* | hpux10* | hpux11*)
13052	case $cc_basename in
13053	  CC*)
13054	    lt_prog_compiler_wl_CXX='-Wl,'
13055	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13056	    if test "$host_cpu" != ia64; then
13057	      lt_prog_compiler_pic_CXX='+Z'
13058	    fi
13059	    ;;
13060	  aCC*)
13061	    lt_prog_compiler_wl_CXX='-Wl,'
13062	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13063	    case $host_cpu in
13064	    hppa*64*|ia64*)
13065	      # +Z the default
13066	      ;;
13067	    *)
13068	      lt_prog_compiler_pic_CXX='+Z'
13069	      ;;
13070	    esac
13071	    ;;
13072	  *)
13073	    ;;
13074	esac
13075	;;
13076      interix*)
13077	# This is c89, which is MS Visual C++ (no shared libs)
13078	# Anyone wants to do a port?
13079	;;
13080      irix5* | irix6* | nonstopux*)
13081	case $cc_basename in
13082	  CC*)
13083	    lt_prog_compiler_wl_CXX='-Wl,'
13084	    lt_prog_compiler_static_CXX='-non_shared'
13085	    # CC pic flag -KPIC is the default.
13086	    ;;
13087	  *)
13088	    ;;
13089	esac
13090	;;
13091      linux* | k*bsd*-gnu | kopensolaris*-gnu)
13092	case $cc_basename in
13093	  KCC*)
13094	    # KAI C++ Compiler
13095	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13096	    lt_prog_compiler_pic_CXX='-fPIC'
13097	    ;;
13098	  ecpc* )
13099	    # old Intel C++ for x86_64 which still supported -KPIC.
13100	    lt_prog_compiler_wl_CXX='-Wl,'
13101	    lt_prog_compiler_pic_CXX='-KPIC'
13102	    lt_prog_compiler_static_CXX='-static'
13103	    ;;
13104	  icpc* )
13105	    # Intel C++, used to be incompatible with GCC.
13106	    # ICC 10 doesn't accept -KPIC any more.
13107	    lt_prog_compiler_wl_CXX='-Wl,'
13108	    lt_prog_compiler_pic_CXX='-fPIC'
13109	    lt_prog_compiler_static_CXX='-static'
13110	    ;;
13111	  pgCC* | pgcpp*)
13112	    # Portland Group C++ compiler
13113	    lt_prog_compiler_wl_CXX='-Wl,'
13114	    lt_prog_compiler_pic_CXX='-fpic'
13115	    lt_prog_compiler_static_CXX='-Bstatic'
13116	    ;;
13117	  cxx*)
13118	    # Compaq C++
13119	    # Make sure the PIC flag is empty.  It appears that all Alpha
13120	    # Linux and Compaq Tru64 Unix objects are PIC.
13121	    lt_prog_compiler_pic_CXX=
13122	    lt_prog_compiler_static_CXX='-non_shared'
13123	    ;;
13124	  xlc* | xlC*)
13125	    # IBM XL 8.0 on PPC
13126	    lt_prog_compiler_wl_CXX='-Wl,'
13127	    lt_prog_compiler_pic_CXX='-qpic'
13128	    lt_prog_compiler_static_CXX='-qstaticlink'
13129	    ;;
13130	  *)
13131	    case `$CC -V 2>&1 | sed 5q` in
13132	    *Sun\ C*)
13133	      # Sun C++ 5.9
13134	      lt_prog_compiler_pic_CXX='-KPIC'
13135	      lt_prog_compiler_static_CXX='-Bstatic'
13136	      lt_prog_compiler_wl_CXX='-Qoption ld '
13137	      ;;
13138	    esac
13139	    ;;
13140	esac
13141	;;
13142      lynxos*)
13143	;;
13144      m88k*)
13145	;;
13146      mvs*)
13147	case $cc_basename in
13148	  cxx*)
13149	    lt_prog_compiler_pic_CXX='-W c,exportall'
13150	    ;;
13151	  *)
13152	    ;;
13153	esac
13154	;;
13155      netbsd* | netbsdelf*-gnu)
13156	;;
13157      *qnx* | *nto*)
13158        # QNX uses GNU C++, but need to define -shared option too, otherwise
13159        # it will coredump.
13160        lt_prog_compiler_pic_CXX='-fPIC -shared'
13161        ;;
13162      osf3* | osf4* | osf5*)
13163	case $cc_basename in
13164	  KCC*)
13165	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13166	    ;;
13167	  RCC*)
13168	    # Rational C++ 2.4.1
13169	    lt_prog_compiler_pic_CXX='-pic'
13170	    ;;
13171	  cxx*)
13172	    # Digital/Compaq C++
13173	    lt_prog_compiler_wl_CXX='-Wl,'
13174	    # Make sure the PIC flag is empty.  It appears that all Alpha
13175	    # Linux and Compaq Tru64 Unix objects are PIC.
13176	    lt_prog_compiler_pic_CXX=
13177	    lt_prog_compiler_static_CXX='-non_shared'
13178	    ;;
13179	  *)
13180	    ;;
13181	esac
13182	;;
13183      psos*)
13184	;;
13185      solaris*)
13186	case $cc_basename in
13187	  CC*)
13188	    # Sun C++ 4.2, 5.x and Centerline C++
13189	    lt_prog_compiler_pic_CXX='-KPIC'
13190	    lt_prog_compiler_static_CXX='-Bstatic'
13191	    lt_prog_compiler_wl_CXX='-Qoption ld '
13192	    ;;
13193	  gcx*)
13194	    # Green Hills C++ Compiler
13195	    lt_prog_compiler_pic_CXX='-PIC'
13196	    ;;
13197	  *)
13198	    ;;
13199	esac
13200	;;
13201      sunos4*)
13202	case $cc_basename in
13203	  CC*)
13204	    # Sun C++ 4.x
13205	    lt_prog_compiler_pic_CXX='-pic'
13206	    lt_prog_compiler_static_CXX='-Bstatic'
13207	    ;;
13208	  lcc*)
13209	    # Lucid
13210	    lt_prog_compiler_pic_CXX='-pic'
13211	    ;;
13212	  *)
13213	    ;;
13214	esac
13215	;;
13216      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13217	case $cc_basename in
13218	  CC*)
13219	    lt_prog_compiler_wl_CXX='-Wl,'
13220	    lt_prog_compiler_pic_CXX='-KPIC'
13221	    lt_prog_compiler_static_CXX='-Bstatic'
13222	    ;;
13223	esac
13224	;;
13225      tandem*)
13226	case $cc_basename in
13227	  NCC*)
13228	    # NonStop-UX NCC 3.20
13229	    lt_prog_compiler_pic_CXX='-KPIC'
13230	    ;;
13231	  *)
13232	    ;;
13233	esac
13234	;;
13235      vxworks*)
13236	;;
13237      *)
13238	lt_prog_compiler_can_build_shared_CXX=no
13239	;;
13240    esac
13241  fi
13242
13243case $host_os in
13244  # For platforms which do not support PIC, -DPIC is meaningless:
13245  *djgpp*)
13246    lt_prog_compiler_pic_CXX=
13247    ;;
13248  *)
13249    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13250    ;;
13251esac
13252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13253$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13254
13255
13256
13257#
13258# Check to make sure the PIC flag actually works.
13259#
13260if test -n "$lt_prog_compiler_pic_CXX"; then
13261  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13262$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13263if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13264  $as_echo_n "(cached) " >&6
13265else
13266  lt_cv_prog_compiler_pic_works_CXX=no
13267   ac_outfile=conftest.$ac_objext
13268   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13269   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13270   # Insert the option either (1) after the last *FLAGS variable, or
13271   # (2) before a word containing "conftest.", or (3) at the end.
13272   # Note that $ac_compile itself does not contain backslashes and begins
13273   # with a dollar sign (not a hyphen), so the echo should work correctly.
13274   # The option is referenced via a variable to avoid confusing sed.
13275   lt_compile=`echo "$ac_compile" | $SED \
13276   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13277   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13278   -e 's:$: $lt_compiler_flag:'`
13279   (eval echo "\"\$as_me:13279: $lt_compile\"" >&5)
13280   (eval "$lt_compile" 2>conftest.err)
13281   ac_status=$?
13282   cat conftest.err >&5
13283   echo "$as_me:13283: \$? = $ac_status" >&5
13284   if (exit $ac_status) && test -s "$ac_outfile"; then
13285     # The compiler can only warn and ignore the option if not recognized
13286     # So say no if there are warnings other than the usual output.
13287     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13288     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13289     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13290       lt_cv_prog_compiler_pic_works_CXX=yes
13291     fi
13292   fi
13293   $RM conftest*
13294
13295fi
13296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13297$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13298
13299if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13300    case $lt_prog_compiler_pic_CXX in
13301     "" | " "*) ;;
13302     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13303     esac
13304else
13305    lt_prog_compiler_pic_CXX=
13306     lt_prog_compiler_can_build_shared_CXX=no
13307fi
13308
13309fi
13310
13311
13312
13313#
13314# Check to make sure the static flag actually works.
13315#
13316wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13318$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13319if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13320  $as_echo_n "(cached) " >&6
13321else
13322  lt_cv_prog_compiler_static_works_CXX=no
13323   save_LDFLAGS="$LDFLAGS"
13324   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13325   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13326   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13327     # The linker can only warn and ignore the option if not recognized
13328     # So say no if there are warnings
13329     if test -s conftest.err; then
13330       # Append any errors to the config.log.
13331       cat conftest.err 1>&5
13332       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13333       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13334       if diff conftest.exp conftest.er2 >/dev/null; then
13335         lt_cv_prog_compiler_static_works_CXX=yes
13336       fi
13337     else
13338       lt_cv_prog_compiler_static_works_CXX=yes
13339     fi
13340   fi
13341   $RM -r conftest*
13342   LDFLAGS="$save_LDFLAGS"
13343
13344fi
13345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13346$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13347
13348if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13349    :
13350else
13351    lt_prog_compiler_static_CXX=
13352fi
13353
13354
13355
13356
13357    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13358$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13359if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13360  $as_echo_n "(cached) " >&6
13361else
13362  lt_cv_prog_compiler_c_o_CXX=no
13363   $RM -r conftest 2>/dev/null
13364   mkdir conftest
13365   cd conftest
13366   mkdir out
13367   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13368
13369   lt_compiler_flag="-o out/conftest2.$ac_objext"
13370   # Insert the option either (1) after the last *FLAGS variable, or
13371   # (2) before a word containing "conftest.", or (3) at the end.
13372   # Note that $ac_compile itself does not contain backslashes and begins
13373   # with a dollar sign (not a hyphen), so the echo should work correctly.
13374   lt_compile=`echo "$ac_compile" | $SED \
13375   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13376   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13377   -e 's:$: $lt_compiler_flag:'`
13378   (eval echo "\"\$as_me:13378: $lt_compile\"" >&5)
13379   (eval "$lt_compile" 2>out/conftest.err)
13380   ac_status=$?
13381   cat out/conftest.err >&5
13382   echo "$as_me:13382: \$? = $ac_status" >&5
13383   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13384   then
13385     # The compiler can only warn and ignore the option if not recognized
13386     # So say no if there are warnings
13387     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13388     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13389     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13390       lt_cv_prog_compiler_c_o_CXX=yes
13391     fi
13392   fi
13393   chmod u+w . 2>&5
13394   $RM conftest*
13395   # SGI C++ compiler will create directory out/ii_files/ for
13396   # template instantiation
13397   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13398   $RM out/* && rmdir out
13399   cd ..
13400   $RM -r conftest
13401   $RM conftest*
13402
13403fi
13404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13405$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13406
13407
13408
13409    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13410$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13411if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13412  $as_echo_n "(cached) " >&6
13413else
13414  lt_cv_prog_compiler_c_o_CXX=no
13415   $RM -r conftest 2>/dev/null
13416   mkdir conftest
13417   cd conftest
13418   mkdir out
13419   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13420
13421   lt_compiler_flag="-o out/conftest2.$ac_objext"
13422   # Insert the option either (1) after the last *FLAGS variable, or
13423   # (2) before a word containing "conftest.", or (3) at the end.
13424   # Note that $ac_compile itself does not contain backslashes and begins
13425   # with a dollar sign (not a hyphen), so the echo should work correctly.
13426   lt_compile=`echo "$ac_compile" | $SED \
13427   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13428   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13429   -e 's:$: $lt_compiler_flag:'`
13430   (eval echo "\"\$as_me:13430: $lt_compile\"" >&5)
13431   (eval "$lt_compile" 2>out/conftest.err)
13432   ac_status=$?
13433   cat out/conftest.err >&5
13434   echo "$as_me:13434: \$? = $ac_status" >&5
13435   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13436   then
13437     # The compiler can only warn and ignore the option if not recognized
13438     # So say no if there are warnings
13439     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13440     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13441     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13442       lt_cv_prog_compiler_c_o_CXX=yes
13443     fi
13444   fi
13445   chmod u+w . 2>&5
13446   $RM conftest*
13447   # SGI C++ compiler will create directory out/ii_files/ for
13448   # template instantiation
13449   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13450   $RM out/* && rmdir out
13451   cd ..
13452   $RM -r conftest
13453   $RM conftest*
13454
13455fi
13456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13457$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13458
13459
13460
13461
13462hard_links="nottested"
13463if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13464  # do not overwrite the value of need_locks provided by the user
13465  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13466$as_echo_n "checking if we can lock with hard links... " >&6; }
13467  hard_links=yes
13468  $RM conftest*
13469  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13470  touch conftest.a
13471  ln conftest.a conftest.b 2>&5 || hard_links=no
13472  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13474$as_echo "$hard_links" >&6; }
13475  if test "$hard_links" = no; then
13476    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13477$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13478    need_locks=warn
13479  fi
13480else
13481  need_locks=no
13482fi
13483
13484
13485
13486    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13487$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13488
13489  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13490  case $host_os in
13491  aix[4-9]*)
13492    # If we're using GNU nm, then we don't want the "-C" option.
13493    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13494    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13495      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'
13496    else
13497      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'
13498    fi
13499    ;;
13500  pw32*)
13501    export_symbols_cmds_CXX="$ltdll_cmds"
13502  ;;
13503  cygwin* | mingw* | cegcc*)
13504    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'
13505  ;;
13506  linux* | k*bsd*-gnu)
13507    link_all_deplibs_CXX=no
13508  ;;
13509  *)
13510    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13511  ;;
13512  esac
13513  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13514
13515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13516$as_echo "$ld_shlibs_CXX" >&6; }
13517test "$ld_shlibs_CXX" = no && can_build_shared=no
13518
13519with_gnu_ld_CXX=$with_gnu_ld
13520
13521
13522
13523
13524
13525
13526#
13527# Do we need to explicitly link libc?
13528#
13529case "x$archive_cmds_need_lc_CXX" in
13530x|xyes)
13531  # Assume -lc should be added
13532  archive_cmds_need_lc_CXX=yes
13533
13534  if test "$enable_shared" = yes && test "$GCC" = yes; then
13535    case $archive_cmds_CXX in
13536    *'~'*)
13537      # FIXME: we may have to deal with multi-command sequences.
13538      ;;
13539    '$CC '*)
13540      # Test whether the compiler implicitly links with -lc since on some
13541      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13542      # to ld, don't add -lc before -lgcc.
13543      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13544$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13545      $RM conftest*
13546      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13547
13548      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13549  (eval $ac_compile) 2>&5
13550  ac_status=$?
13551  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13552  test $ac_status = 0; } 2>conftest.err; then
13553        soname=conftest
13554        lib=conftest
13555        libobjs=conftest.$ac_objext
13556        deplibs=
13557        wl=$lt_prog_compiler_wl_CXX
13558	pic_flag=$lt_prog_compiler_pic_CXX
13559        compiler_flags=-v
13560        linker_flags=-v
13561        verstring=
13562        output_objdir=.
13563        libname=conftest
13564        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13565        allow_undefined_flag_CXX=
13566        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13567  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13568  ac_status=$?
13569  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13570  test $ac_status = 0; }
13571        then
13572	  archive_cmds_need_lc_CXX=no
13573        else
13574	  archive_cmds_need_lc_CXX=yes
13575        fi
13576        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13577      else
13578        cat conftest.err 1>&5
13579      fi
13580      $RM conftest*
13581      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13582$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13583      ;;
13584    esac
13585  fi
13586  ;;
13587esac
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13653$as_echo_n "checking dynamic linker characteristics... " >&6; }
13654
13655library_names_spec=
13656libname_spec='lib$name'
13657soname_spec=
13658shrext_cmds=".so"
13659postinstall_cmds=
13660postuninstall_cmds=
13661finish_cmds=
13662finish_eval=
13663shlibpath_var=
13664shlibpath_overrides_runpath=unknown
13665version_type=none
13666dynamic_linker="$host_os ld.so"
13667sys_lib_dlsearch_path_spec="/lib /usr/lib"
13668need_lib_prefix=unknown
13669hardcode_into_libs=no
13670
13671# when you set need_version to no, make sure it does not cause -set_version
13672# flags to be left without arguments
13673need_version=unknown
13674
13675case $host_os in
13676aix3*)
13677  version_type=linux
13678  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13679  shlibpath_var=LIBPATH
13680
13681  # AIX 3 has no versioning support, so we append a major version to the name.
13682  soname_spec='${libname}${release}${shared_ext}$major'
13683  ;;
13684
13685aix[4-9]*)
13686  version_type=linux
13687  need_lib_prefix=no
13688  need_version=no
13689  hardcode_into_libs=yes
13690  if test "$host_cpu" = ia64; then
13691    # AIX 5 supports IA64
13692    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13693    shlibpath_var=LD_LIBRARY_PATH
13694  else
13695    # With GCC up to 2.95.x, collect2 would create an import file
13696    # for dependence libraries.  The import file would start with
13697    # the line `#! .'.  This would cause the generated library to
13698    # depend on `.', always an invalid library.  This was fixed in
13699    # development snapshots of GCC prior to 3.0.
13700    case $host_os in
13701      aix4 | aix4.[01] | aix4.[01].*)
13702      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13703	   echo ' yes '
13704	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13705	:
13706      else
13707	can_build_shared=no
13708      fi
13709      ;;
13710    esac
13711    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13712    # soname into executable. Probably we can add versioning support to
13713    # collect2, so additional links can be useful in future.
13714    if test "$aix_use_runtimelinking" = yes; then
13715      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13716      # instead of lib<name>.a to let people know that these are not
13717      # typical AIX shared libraries.
13718      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13719    else
13720      # We preserve .a as extension for shared libraries through AIX4.2
13721      # and later when we are not doing run time linking.
13722      library_names_spec='${libname}${release}.a $libname.a'
13723      soname_spec='${libname}${release}${shared_ext}$major'
13724    fi
13725    shlibpath_var=LIBPATH
13726  fi
13727  ;;
13728
13729amigaos*)
13730  case $host_cpu in
13731  powerpc)
13732    # Since July 2007 AmigaOS4 officially supports .so libraries.
13733    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13734    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13735    ;;
13736  m68k)
13737    library_names_spec='$libname.ixlibrary $libname.a'
13738    # Create ${libname}_ixlibrary.a entries in /sys/libs.
13739    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'
13740    ;;
13741  esac
13742  ;;
13743
13744beos*)
13745  library_names_spec='${libname}${shared_ext}'
13746  dynamic_linker="$host_os ld.so"
13747  shlibpath_var=LIBRARY_PATH
13748  ;;
13749
13750bsdi[45]*)
13751  version_type=linux
13752  need_version=no
13753  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13754  soname_spec='${libname}${release}${shared_ext}$major'
13755  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13756  shlibpath_var=LD_LIBRARY_PATH
13757  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13758  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13759  # the default ld.so.conf also contains /usr/contrib/lib and
13760  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13761  # libtool to hard-code these into programs
13762  ;;
13763
13764cygwin* | mingw* | pw32* | cegcc*)
13765  version_type=windows
13766  shrext_cmds=".dll"
13767  need_version=no
13768  need_lib_prefix=no
13769
13770  case $GCC,$host_os in
13771  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13772    library_names_spec='$libname.dll.a'
13773    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13774    postinstall_cmds='base_file=`basename \${file}`~
13775      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13776      dldir=$destdir/`dirname \$dlpath`~
13777      test -d \$dldir || mkdir -p \$dldir~
13778      $install_prog $dir/$dlname \$dldir/$dlname~
13779      chmod a+x \$dldir/$dlname~
13780      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13781        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13782      fi'
13783    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13784      dlpath=$dir/\$dldll~
13785       $RM \$dlpath'
13786    shlibpath_overrides_runpath=yes
13787
13788    case $host_os in
13789    cygwin*)
13790      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13791      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13792      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13793      ;;
13794    mingw* | cegcc*)
13795      # MinGW DLLs use traditional 'lib' prefix
13796      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13797      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13798      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13799        # It is most probably a Windows format PATH printed by
13800        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13801        # path with ; separators, and with drive letters. We can handle the
13802        # drive letters (cygwin fileutils understands them), so leave them,
13803        # especially as we might pass files found there to a mingw objdump,
13804        # which wouldn't understand a cygwinified path. Ahh.
13805        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13806      else
13807        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13808      fi
13809      ;;
13810    pw32*)
13811      # pw32 DLLs use 'pw' prefix rather than 'lib'
13812      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13813      ;;
13814    esac
13815    ;;
13816
13817  *)
13818    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13819    ;;
13820  esac
13821  dynamic_linker='Win32 ld.exe'
13822  # FIXME: first we should search . and the directory the executable is in
13823  shlibpath_var=PATH
13824  ;;
13825
13826darwin* | rhapsody*)
13827  dynamic_linker="$host_os dyld"
13828  version_type=darwin
13829  need_lib_prefix=no
13830  need_version=no
13831  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13832  soname_spec='${libname}${release}${major}$shared_ext'
13833  shlibpath_overrides_runpath=yes
13834  shlibpath_var=DYLD_LIBRARY_PATH
13835  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13836
13837  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13838  ;;
13839
13840dgux*)
13841  version_type=linux
13842  need_lib_prefix=no
13843  need_version=no
13844  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13845  soname_spec='${libname}${release}${shared_ext}$major'
13846  shlibpath_var=LD_LIBRARY_PATH
13847  ;;
13848
13849freebsd1*)
13850  dynamic_linker=no
13851  ;;
13852
13853freebsd* | dragonfly*)
13854  # DragonFly does not have aout.  When/if they implement a new
13855  # versioning mechanism, adjust this.
13856  if test -x /usr/bin/objformat; then
13857    objformat=`/usr/bin/objformat`
13858  else
13859    case $host_os in
13860    freebsd[123]*) objformat=aout ;;
13861    *) objformat=elf ;;
13862    esac
13863  fi
13864  version_type=freebsd-$objformat
13865  case $version_type in
13866    freebsd-elf*)
13867      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13868      need_version=no
13869      need_lib_prefix=no
13870      ;;
13871    freebsd-*)
13872      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13873      need_version=yes
13874      ;;
13875  esac
13876  shlibpath_var=LD_LIBRARY_PATH
13877  case $host_os in
13878  freebsd2*)
13879    shlibpath_overrides_runpath=yes
13880    ;;
13881  freebsd3.[01]* | freebsdelf3.[01]*)
13882    shlibpath_overrides_runpath=yes
13883    hardcode_into_libs=yes
13884    ;;
13885  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13886  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13887    shlibpath_overrides_runpath=no
13888    hardcode_into_libs=yes
13889    ;;
13890  *) # from 4.6 on, and DragonFly
13891    shlibpath_overrides_runpath=yes
13892    hardcode_into_libs=yes
13893    ;;
13894  esac
13895  ;;
13896
13897gnu*)
13898  version_type=linux
13899  need_lib_prefix=no
13900  need_version=no
13901  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13902  soname_spec='${libname}${release}${shared_ext}$major'
13903  shlibpath_var=LD_LIBRARY_PATH
13904  hardcode_into_libs=yes
13905  ;;
13906
13907hpux9* | hpux10* | hpux11*)
13908  # Give a soname corresponding to the major version so that dld.sl refuses to
13909  # link against other versions.
13910  version_type=sunos
13911  need_lib_prefix=no
13912  need_version=no
13913  case $host_cpu in
13914  ia64*)
13915    shrext_cmds='.so'
13916    hardcode_into_libs=yes
13917    dynamic_linker="$host_os dld.so"
13918    shlibpath_var=LD_LIBRARY_PATH
13919    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13920    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13921    soname_spec='${libname}${release}${shared_ext}$major'
13922    if test "X$HPUX_IA64_MODE" = X32; then
13923      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13924    else
13925      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13926    fi
13927    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13928    ;;
13929  hppa*64*)
13930    shrext_cmds='.sl'
13931    hardcode_into_libs=yes
13932    dynamic_linker="$host_os dld.sl"
13933    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13934    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13935    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13936    soname_spec='${libname}${release}${shared_ext}$major'
13937    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13938    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13939    ;;
13940  *)
13941    shrext_cmds='.sl'
13942    dynamic_linker="$host_os dld.sl"
13943    shlibpath_var=SHLIB_PATH
13944    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13945    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13946    soname_spec='${libname}${release}${shared_ext}$major'
13947    ;;
13948  esac
13949  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13950  postinstall_cmds='chmod 555 $lib'
13951  ;;
13952
13953interix[3-9]*)
13954  version_type=linux
13955  need_lib_prefix=no
13956  need_version=no
13957  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13958  soname_spec='${libname}${release}${shared_ext}$major'
13959  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13960  shlibpath_var=LD_LIBRARY_PATH
13961  shlibpath_overrides_runpath=no
13962  hardcode_into_libs=yes
13963  ;;
13964
13965irix5* | irix6* | nonstopux*)
13966  case $host_os in
13967    nonstopux*) version_type=nonstopux ;;
13968    *)
13969	if test "$lt_cv_prog_gnu_ld" = yes; then
13970		version_type=linux
13971	else
13972		version_type=irix
13973	fi ;;
13974  esac
13975  need_lib_prefix=no
13976  need_version=no
13977  soname_spec='${libname}${release}${shared_ext}$major'
13978  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13979  case $host_os in
13980  irix5* | nonstopux*)
13981    libsuff= shlibsuff=
13982    ;;
13983  *)
13984    case $LD in # libtool.m4 will add one of these switches to LD
13985    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13986      libsuff= shlibsuff= libmagic=32-bit;;
13987    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13988      libsuff=32 shlibsuff=N32 libmagic=N32;;
13989    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13990      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13991    *) libsuff= shlibsuff= libmagic=never-match;;
13992    esac
13993    ;;
13994  esac
13995  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13996  shlibpath_overrides_runpath=no
13997  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13998  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13999  hardcode_into_libs=yes
14000  ;;
14001
14002# No shared lib support for Linux oldld, aout, or coff.
14003linux*oldld* | linux*aout* | linux*coff*)
14004  dynamic_linker=no
14005  ;;
14006
14007# This must be Linux ELF.
14008linux* | k*bsd*-gnu | kopensolaris*-gnu)
14009  version_type=linux
14010  need_lib_prefix=no
14011  need_version=no
14012  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14013  soname_spec='${libname}${release}${shared_ext}$major'
14014  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14015  shlibpath_var=LD_LIBRARY_PATH
14016  shlibpath_overrides_runpath=no
14017  # Some binutils ld are patched to set DT_RUNPATH
14018  save_LDFLAGS=$LDFLAGS
14019  save_libdir=$libdir
14020  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14021       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14023/* end confdefs.h.  */
14024
14025int
14026main ()
14027{
14028
14029  ;
14030  return 0;
14031}
14032_ACEOF
14033if ac_fn_cxx_try_link "$LINENO"; then :
14034  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14035  shlibpath_overrides_runpath=yes
14036fi
14037fi
14038rm -f core conftest.err conftest.$ac_objext \
14039    conftest$ac_exeext conftest.$ac_ext
14040  LDFLAGS=$save_LDFLAGS
14041  libdir=$save_libdir
14042
14043  # This implies no fast_install, which is unacceptable.
14044  # Some rework will be needed to allow for fast_install
14045  # before this can be enabled.
14046  hardcode_into_libs=yes
14047
14048  # Append ld.so.conf contents to the search path
14049  if test -f /etc/ld.so.conf; then
14050    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' ' '`
14051    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14052  fi
14053
14054  # We used to test for /lib/ld.so.1 and disable shared libraries on
14055  # powerpc, because MkLinux only supported shared libraries with the
14056  # GNU dynamic linker.  Since this was broken with cross compilers,
14057  # most powerpc-linux boxes support dynamic linking these days and
14058  # people can always --disable-shared, the test was removed, and we
14059  # assume the GNU/Linux dynamic linker is in use.
14060  dynamic_linker='GNU/Linux ld.so'
14061  ;;
14062
14063netbsdelf*-gnu)
14064  version_type=linux
14065  need_lib_prefix=no
14066  need_version=no
14067  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14068  soname_spec='${libname}${release}${shared_ext}$major'
14069  shlibpath_var=LD_LIBRARY_PATH
14070  shlibpath_overrides_runpath=no
14071  hardcode_into_libs=yes
14072  dynamic_linker='NetBSD ld.elf_so'
14073  ;;
14074
14075netbsd*)
14076  version_type=sunos
14077  need_lib_prefix=no
14078  need_version=no
14079  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14080    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14081    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14082    dynamic_linker='NetBSD (a.out) ld.so'
14083  else
14084    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14085    soname_spec='${libname}${release}${shared_ext}$major'
14086    dynamic_linker='NetBSD ld.elf_so'
14087  fi
14088  shlibpath_var=LD_LIBRARY_PATH
14089  shlibpath_overrides_runpath=yes
14090  hardcode_into_libs=yes
14091  ;;
14092
14093newsos6)
14094  version_type=linux
14095  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14096  shlibpath_var=LD_LIBRARY_PATH
14097  shlibpath_overrides_runpath=yes
14098  ;;
14099
14100*nto* | *qnx*)
14101  version_type=qnx
14102  need_lib_prefix=no
14103  need_version=no
14104  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14105  soname_spec='${libname}${release}${shared_ext}$major'
14106  shlibpath_var=LD_LIBRARY_PATH
14107  shlibpath_overrides_runpath=no
14108  hardcode_into_libs=yes
14109  dynamic_linker='ldqnx.so'
14110  ;;
14111
14112openbsd*)
14113  version_type=sunos
14114  sys_lib_dlsearch_path_spec="/usr/lib"
14115  need_lib_prefix=no
14116  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14117  case $host_os in
14118    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
14119    *)				need_version=no  ;;
14120  esac
14121  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14122  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14123  shlibpath_var=LD_LIBRARY_PATH
14124  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14125    case $host_os in
14126      openbsd2.[89] | openbsd2.[89].*)
14127	shlibpath_overrides_runpath=no
14128	;;
14129      *)
14130	shlibpath_overrides_runpath=yes
14131	;;
14132      esac
14133  else
14134    shlibpath_overrides_runpath=yes
14135  fi
14136  ;;
14137
14138os2*)
14139  libname_spec='$name'
14140  shrext_cmds=".dll"
14141  need_lib_prefix=no
14142  library_names_spec='$libname${shared_ext} $libname.a'
14143  dynamic_linker='OS/2 ld.exe'
14144  shlibpath_var=LIBPATH
14145  ;;
14146
14147osf3* | osf4* | osf5*)
14148  version_type=osf
14149  need_lib_prefix=no
14150  need_version=no
14151  soname_spec='${libname}${release}${shared_ext}$major'
14152  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14153  shlibpath_var=LD_LIBRARY_PATH
14154  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14155  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14156  ;;
14157
14158rdos*)
14159  dynamic_linker=no
14160  ;;
14161
14162solaris*)
14163  version_type=linux
14164  need_lib_prefix=no
14165  need_version=no
14166  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14167  soname_spec='${libname}${release}${shared_ext}$major'
14168  shlibpath_var=LD_LIBRARY_PATH
14169  shlibpath_overrides_runpath=yes
14170  hardcode_into_libs=yes
14171  # ldd complains unless libraries are executable
14172  postinstall_cmds='chmod +x $lib'
14173  ;;
14174
14175sunos4*)
14176  version_type=sunos
14177  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14178  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14179  shlibpath_var=LD_LIBRARY_PATH
14180  shlibpath_overrides_runpath=yes
14181  if test "$with_gnu_ld" = yes; then
14182    need_lib_prefix=no
14183  fi
14184  need_version=yes
14185  ;;
14186
14187sysv4 | sysv4.3*)
14188  version_type=linux
14189  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14190  soname_spec='${libname}${release}${shared_ext}$major'
14191  shlibpath_var=LD_LIBRARY_PATH
14192  case $host_vendor in
14193    sni)
14194      shlibpath_overrides_runpath=no
14195      need_lib_prefix=no
14196      runpath_var=LD_RUN_PATH
14197      ;;
14198    siemens)
14199      need_lib_prefix=no
14200      ;;
14201    motorola)
14202      need_lib_prefix=no
14203      need_version=no
14204      shlibpath_overrides_runpath=no
14205      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14206      ;;
14207  esac
14208  ;;
14209
14210sysv4*MP*)
14211  if test -d /usr/nec ;then
14212    version_type=linux
14213    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14214    soname_spec='$libname${shared_ext}.$major'
14215    shlibpath_var=LD_LIBRARY_PATH
14216  fi
14217  ;;
14218
14219sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14220  version_type=freebsd-elf
14221  need_lib_prefix=no
14222  need_version=no
14223  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14224  soname_spec='${libname}${release}${shared_ext}$major'
14225  shlibpath_var=LD_LIBRARY_PATH
14226  shlibpath_overrides_runpath=yes
14227  hardcode_into_libs=yes
14228  if test "$with_gnu_ld" = yes; then
14229    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14230  else
14231    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14232    case $host_os in
14233      sco3.2v5*)
14234        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14235	;;
14236    esac
14237  fi
14238  sys_lib_dlsearch_path_spec='/usr/lib'
14239  ;;
14240
14241tpf*)
14242  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14243  version_type=linux
14244  need_lib_prefix=no
14245  need_version=no
14246  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14247  shlibpath_var=LD_LIBRARY_PATH
14248  shlibpath_overrides_runpath=no
14249  hardcode_into_libs=yes
14250  ;;
14251
14252uts4*)
14253  version_type=linux
14254  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14255  soname_spec='${libname}${release}${shared_ext}$major'
14256  shlibpath_var=LD_LIBRARY_PATH
14257  ;;
14258
14259*)
14260  dynamic_linker=no
14261  ;;
14262esac
14263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14264$as_echo "$dynamic_linker" >&6; }
14265test "$dynamic_linker" = no && can_build_shared=no
14266
14267variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14268if test "$GCC" = yes; then
14269  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14270fi
14271
14272if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14273  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14274fi
14275if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14276  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14277fi
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14315$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14316hardcode_action_CXX=
14317if test -n "$hardcode_libdir_flag_spec_CXX" ||
14318   test -n "$runpath_var_CXX" ||
14319   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14320
14321  # We can hardcode non-existent directories.
14322  if test "$hardcode_direct_CXX" != no &&
14323     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14324     # have to relink, otherwise we might link with an installed library
14325     # when we should be linking with a yet-to-be-installed one
14326     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14327     test "$hardcode_minus_L_CXX" != no; then
14328    # Linking always hardcodes the temporary library directory.
14329    hardcode_action_CXX=relink
14330  else
14331    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14332    hardcode_action_CXX=immediate
14333  fi
14334else
14335  # We cannot hardcode anything, or else we can only hardcode existing
14336  # directories.
14337  hardcode_action_CXX=unsupported
14338fi
14339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14340$as_echo "$hardcode_action_CXX" >&6; }
14341
14342if test "$hardcode_action_CXX" = relink ||
14343   test "$inherit_rpath_CXX" = yes; then
14344  # Fast installation is not supported
14345  enable_fast_install=no
14346elif test "$shlibpath_overrides_runpath" = yes ||
14347     test "$enable_shared" = no; then
14348  # Fast installation is not necessary
14349  enable_fast_install=needless
14350fi
14351
14352
14353
14354
14355
14356
14357
14358  fi # test -n "$compiler"
14359
14360  CC=$lt_save_CC
14361  LDCXX=$LD
14362  LD=$lt_save_LD
14363  GCC=$lt_save_GCC
14364  with_gnu_ld=$lt_save_with_gnu_ld
14365  lt_cv_path_LDCXX=$lt_cv_path_LD
14366  lt_cv_path_LD=$lt_save_path_LD
14367  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14368  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14369fi # test "$_lt_caught_CXX_error" != yes
14370
14371ac_ext=c
14372ac_cpp='$CPP $CPPFLAGS'
14373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14375ac_compiler_gnu=$ac_cv_c_compiler_gnu
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389        ac_config_commands="$ac_config_commands libtool"
14390
14391
14392
14393
14394# Only expand once:
14395
14396
14397
14398
14399
14400# Check whether some low-level functions/files are available
14401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14402$as_echo_n "checking for ANSI C header files... " >&6; }
14403if test "${ac_cv_header_stdc+set}" = set; then :
14404  $as_echo_n "(cached) " >&6
14405else
14406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14407/* end confdefs.h.  */
14408#include <stdlib.h>
14409#include <stdarg.h>
14410#include <string.h>
14411#include <float.h>
14412
14413int
14414main ()
14415{
14416
14417  ;
14418  return 0;
14419}
14420_ACEOF
14421if ac_fn_c_try_compile "$LINENO"; then :
14422  ac_cv_header_stdc=yes
14423else
14424  ac_cv_header_stdc=no
14425fi
14426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14427
14428if test $ac_cv_header_stdc = yes; then
14429  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14430  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14431/* end confdefs.h.  */
14432#include <string.h>
14433
14434_ACEOF
14435if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14436  $EGREP "memchr" >/dev/null 2>&1; then :
14437
14438else
14439  ac_cv_header_stdc=no
14440fi
14441rm -f conftest*
14442
14443fi
14444
14445if test $ac_cv_header_stdc = yes; then
14446  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14448/* end confdefs.h.  */
14449#include <stdlib.h>
14450
14451_ACEOF
14452if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14453  $EGREP "free" >/dev/null 2>&1; then :
14454
14455else
14456  ac_cv_header_stdc=no
14457fi
14458rm -f conftest*
14459
14460fi
14461
14462if test $ac_cv_header_stdc = yes; then
14463  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14464  if test "$cross_compiling" = yes; then :
14465  :
14466else
14467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14468/* end confdefs.h.  */
14469#include <ctype.h>
14470#include <stdlib.h>
14471#if ((' ' & 0x0FF) == 0x020)
14472# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14473# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14474#else
14475# define ISLOWER(c) \
14476		   (('a' <= (c) && (c) <= 'i') \
14477		     || ('j' <= (c) && (c) <= 'r') \
14478		     || ('s' <= (c) && (c) <= 'z'))
14479# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14480#endif
14481
14482#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14483int
14484main ()
14485{
14486  int i;
14487  for (i = 0; i < 256; i++)
14488    if (XOR (islower (i), ISLOWER (i))
14489	|| toupper (i) != TOUPPER (i))
14490      return 2;
14491  return 0;
14492}
14493_ACEOF
14494if ac_fn_c_try_run "$LINENO"; then :
14495
14496else
14497  ac_cv_header_stdc=no
14498fi
14499rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14500  conftest.$ac_objext conftest.beam conftest.$ac_ext
14501fi
14502
14503fi
14504fi
14505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14506$as_echo "$ac_cv_header_stdc" >&6; }
14507if test $ac_cv_header_stdc = yes; then
14508
14509$as_echo "#define STDC_HEADERS 1" >>confdefs.h
14510
14511fi
14512
14513
14514# Built-in memcmp can be inefficient when gcc compiles for x86 or PowerPC
14515# processors.  In those cases, use an alternative function instead of memcmp.
14516case $host_cpu in
14517  *86*|powerpc*)
14518    if test "$GCC" = "yes"; then
14519
14520$as_echo "#define VCDIFF_USE_BLOCK_COMPARE_WORDS 1" >>confdefs.h
14521
14522    fi
14523    ;;
14524esac
14525
14526for ac_header in ext/rope
14527do :
14528  ac_fn_c_check_header_mongrel "$LINENO" "ext/rope" "ac_cv_header_ext_rope" "$ac_includes_default"
14529if test "x$ac_cv_header_ext_rope" = x""yes; then :
14530  cat >>confdefs.h <<_ACEOF
14531#define HAVE_EXT_ROPE 1
14532_ACEOF
14533
14534fi
14535
14536done
14537
14538for ac_header in getopt.h
14539do :
14540  ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
14541if test "x$ac_cv_header_getopt_h" = x""yes; then :
14542  cat >>confdefs.h <<_ACEOF
14543#define HAVE_GETOPT_H 1
14544_ACEOF
14545
14546fi
14547
14548done
14549
14550for ac_header in malloc.h
14551do :
14552  ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
14553if test "x$ac_cv_header_malloc_h" = x""yes; then :
14554  cat >>confdefs.h <<_ACEOF
14555#define HAVE_MALLOC_H 1
14556_ACEOF
14557
14558fi
14559
14560done
14561
14562for ac_header in sys/mman.h
14563do :
14564  ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
14565if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
14566  cat >>confdefs.h <<_ACEOF
14567#define HAVE_SYS_MMAN_H 1
14568_ACEOF
14569
14570fi
14571
14572done
14573
14574for ac_header in sys/time.h
14575do :
14576  ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
14577if test "x$ac_cv_header_sys_time_h" = x""yes; then :
14578  cat >>confdefs.h <<_ACEOF
14579#define HAVE_SYS_TIME_H 1
14580_ACEOF
14581
14582fi
14583
14584done
14585
14586for ac_header in unistd.h
14587do :
14588  ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
14589if test "x$ac_cv_header_unistd_h" = x""yes; then :
14590  cat >>confdefs.h <<_ACEOF
14591#define HAVE_UNISTD_H 1
14592_ACEOF
14593
14594fi
14595
14596done
14597
14598for ac_header in windows.h
14599do :
14600  ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
14601if test "x$ac_cv_header_windows_h" = x""yes; then :
14602  cat >>confdefs.h <<_ACEOF
14603#define HAVE_WINDOWS_H 1
14604_ACEOF
14605
14606fi
14607
14608done
14609
14610for ac_func in gettimeofday QueryPerformanceCounter
14611do :
14612  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14613ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14614eval as_val=\$$as_ac_var
14615   if test "x$as_val" = x""yes; then :
14616  cat >>confdefs.h <<_ACEOF
14617#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14618_ACEOF
14619
14620fi
14621done
14622
14623for ac_func in memalign posix_memalign
14624do :
14625  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14626ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14627eval as_val=\$$as_ac_var
14628   if test "x$as_val" = x""yes; then :
14629  cat >>confdefs.h <<_ACEOF
14630#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14631_ACEOF
14632
14633fi
14634done
14635
14636for ac_func in mprotect
14637do :
14638  ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
14639if test "x$ac_cv_func_mprotect" = x""yes; then :
14640  cat >>confdefs.h <<_ACEOF
14641#define HAVE_MPROTECT 1
14642_ACEOF
14643
14644fi
14645done
14646
14647
14648# Start of definitions needed by gflags package
14649
14650# These are tested for by AC_HEADER_STDC, but I check again to set the var
14651ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
14652if test "x$ac_cv_header_stdint_h" = x""yes; then :
14653  ac_cv_have_stdint_h=1
14654else
14655  ac_cv_have_stdint_h=0
14656fi
14657
14658
14659ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
14660if test "x$ac_cv_header_sys_types_h" = x""yes; then :
14661  ac_cv_have_systypes_h=1
14662else
14663  ac_cv_have_systypes_h=0
14664fi
14665
14666
14667ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
14668if test "x$ac_cv_header_inttypes_h" = x""yes; then :
14669  ac_cv_have_inttypes_h=1
14670else
14671  ac_cv_have_inttypes_h=0
14672fi
14673
14674
14675for ac_header in fnmatch.h
14676do :
14677  ac_fn_c_check_header_mongrel "$LINENO" "fnmatch.h" "ac_cv_header_fnmatch_h" "$ac_includes_default"
14678if test "x$ac_cv_header_fnmatch_h" = x""yes; then :
14679  cat >>confdefs.h <<_ACEOF
14680#define HAVE_FNMATCH_H 1
14681_ACEOF
14682
14683fi
14684
14685done
14686
14687
14688# These are the types I need.  We look for them in either stdint.h,
14689# sys/types.h, or inttypes.h, all of which are part of the default-includes.
14690ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
14691if test "x$ac_cv_type_uint16_t" = x""yes; then :
14692  ac_cv_have_uint16_t=1
14693else
14694  ac_cv_have_uint16_t=0
14695fi
14696
14697ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
14698if test "x$ac_cv_type_u_int16_t" = x""yes; then :
14699  ac_cv_have_u_int16_t=1
14700else
14701  ac_cv_have_u_int16_t=0
14702fi
14703
14704ac_fn_c_check_type "$LINENO" "__int16" "ac_cv_type___int16" "$ac_includes_default"
14705if test "x$ac_cv_type___int16" = x""yes; then :
14706  ac_cv_have___int16=1
14707else
14708  ac_cv_have___int16=0
14709fi
14710
14711
14712for ac_func in strtoll strtoq
14713do :
14714  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14715ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14716eval as_val=\$$as_ac_var
14717   if test "x$as_val" = x""yes; then :
14718  cat >>confdefs.h <<_ACEOF
14719#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14720_ACEOF
14721
14722fi
14723done
14724
14725for ac_func in setenv putenv
14726do :
14727  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14728ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14729eval as_val=\$$as_ac_var
14730   if test "x$as_val" = x""yes; then :
14731  cat >>confdefs.h <<_ACEOF
14732#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14733_ACEOF
14734
14735fi
14736done
14737    # MinGW has putenv but not setenv
14738
14739
14740  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
14741$as_echo_n "checking for __attribute__... " >&6; }
14742  if test "${ac_cv___attribute__+set}" = set; then :
14743  $as_echo_n "(cached) " >&6
14744else
14745
14746    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14747/* end confdefs.h.  */
14748#include <stdlib.h>
14749       static void foo(void) __attribute__ ((unused));
14750       void foo(void) { exit(1); }
14751int
14752main ()
14753{
14754
14755  ;
14756  return 0;
14757}
14758_ACEOF
14759if ac_fn_c_try_compile "$LINENO"; then :
14760  ac_cv___attribute__=yes
14761else
14762  ac_cv___attribute__=no
14763
14764fi
14765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14766fi
14767
14768  if test "$ac_cv___attribute__" = "yes"; then
14769
14770$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
14771
14772  fi
14773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
14774$as_echo "$ac_cv___attribute__" >&6; }
14775
14776# We only care about __attribute__ ((unused))
14777if test x"$ac_cv___attribute__" = x"yes"; then
14778  ac_cv___attribute__unused="__attribute__ ((unused))"
14779else
14780  ac_cv___attribute__unused=
14781fi
14782
14783
14784
14785
14786ac_ext=c
14787ac_cpp='$CPP $CPPFLAGS'
14788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14790ac_compiler_gnu=$ac_cv_c_compiler_gnu
14791
14792acx_pthread_ok=no
14793
14794# We used to check for pthread.h first, but this fails if pthread.h
14795# requires special compiler flags (e.g. on True64 or Sequent).
14796# It gets checked for in the link test anyway.
14797
14798# First of all, check if the user has set any of the PTHREAD_LIBS,
14799# etcetera environment variables, and if threads linking works using
14800# them:
14801if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
14802        save_CFLAGS="$CFLAGS"
14803        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14804        save_LIBS="$LIBS"
14805        LIBS="$PTHREAD_LIBS $LIBS"
14806        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
14807$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
14808        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14809/* end confdefs.h.  */
14810
14811/* Override any GCC internal prototype to avoid an error.
14812   Use char because int might match the return type of a GCC
14813   builtin and then its argument prototype would still apply.  */
14814#ifdef __cplusplus
14815extern "C"
14816#endif
14817char pthread_join ();
14818int
14819main ()
14820{
14821return pthread_join ();
14822  ;
14823  return 0;
14824}
14825_ACEOF
14826if ac_fn_c_try_link "$LINENO"; then :
14827  acx_pthread_ok=yes
14828fi
14829rm -f core conftest.err conftest.$ac_objext \
14830    conftest$ac_exeext conftest.$ac_ext
14831        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14832$as_echo "$acx_pthread_ok" >&6; }
14833        if test x"$acx_pthread_ok" = xno; then
14834                PTHREAD_LIBS=""
14835                PTHREAD_CFLAGS=""
14836        fi
14837        LIBS="$save_LIBS"
14838        CFLAGS="$save_CFLAGS"
14839fi
14840
14841# We must check for the threads library under a number of different
14842# names; the ordering is very important because some systems
14843# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14844# libraries is broken (non-POSIX).
14845
14846# Create a list of thread flags to try.  Items starting with a "-" are
14847# C compiler flags, and other items are library names, except for "none"
14848# which indicates that we try without any flags at all, and "pthread-config"
14849# which is a program returning the flags for the Pth emulation library.
14850
14851acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14852
14853# The ordering *is* (sometimes) important.  Some notes on the
14854# individual items follow:
14855
14856# pthreads: AIX (must check this before -lpthread)
14857# none: in case threads are in libc; should be tried before -Kthread and
14858#       other compiler flags to prevent continual compiler warnings
14859# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14860# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14861# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14862# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
14863# -pthreads: Solaris/gcc
14864# -mthreads: Mingw32/gcc, Lynx/gcc
14865# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14866#      doesn't hurt to check since this sometimes defines pthreads too;
14867#      also defines -D_REENTRANT)
14868#      ... -mt is also the pthreads flag for HP/aCC
14869# pthread: Linux, etcetera
14870# --thread-safe: KAI C++
14871# pthread-config: use pthread-config program (for GNU Pth library)
14872
14873case "${host_cpu}-${host_os}" in
14874        *solaris*)
14875
14876        # On Solaris (at least, for some versions), libc contains stubbed
14877        # (non-functional) versions of the pthreads routines, so link-based
14878        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
14879        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
14880        # a function called by this macro, so we could check for that, but
14881        # who knows whether they'll stub that too in a future libc.)  So,
14882        # we'll just look for -pthreads and -lpthread first:
14883
14884        acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
14885        ;;
14886esac
14887
14888if test x"$acx_pthread_ok" = xno; then
14889for flag in $acx_pthread_flags; do
14890
14891        case $flag in
14892                none)
14893                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14894$as_echo_n "checking whether pthreads work without any flags... " >&6; }
14895                ;;
14896
14897                -*)
14898                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
14899$as_echo_n "checking whether pthreads work with $flag... " >&6; }
14900                PTHREAD_CFLAGS="$flag"
14901                ;;
14902
14903		pthread-config)
14904		# Extract the first word of "pthread-config", so it can be a program name with args.
14905set dummy pthread-config; ac_word=$2
14906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14907$as_echo_n "checking for $ac_word... " >&6; }
14908if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
14909  $as_echo_n "(cached) " >&6
14910else
14911  if test -n "$acx_pthread_config"; then
14912  ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
14913else
14914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14915for as_dir in $PATH
14916do
14917  IFS=$as_save_IFS
14918  test -z "$as_dir" && as_dir=.
14919    for ac_exec_ext in '' $ac_executable_extensions; do
14920  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14921    ac_cv_prog_acx_pthread_config="yes"
14922    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14923    break 2
14924  fi
14925done
14926  done
14927IFS=$as_save_IFS
14928
14929  test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
14930fi
14931fi
14932acx_pthread_config=$ac_cv_prog_acx_pthread_config
14933if test -n "$acx_pthread_config"; then
14934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
14935$as_echo "$acx_pthread_config" >&6; }
14936else
14937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14938$as_echo "no" >&6; }
14939fi
14940
14941
14942		if test x"$acx_pthread_config" = xno; then continue; fi
14943		PTHREAD_CFLAGS="`pthread-config --cflags`"
14944		PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
14945		;;
14946
14947                *)
14948                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
14949$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
14950                PTHREAD_LIBS="-l$flag"
14951                ;;
14952        esac
14953
14954        save_LIBS="$LIBS"
14955        save_CFLAGS="$CFLAGS"
14956        LIBS="$PTHREAD_LIBS $LIBS"
14957        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14958
14959        # Check for various functions.  We must include pthread.h,
14960        # since some functions may be macros.  (On the Sequent, we
14961        # need a special flag -Kthread to make this header compile.)
14962        # We check for pthread_join because it is in -lpthread on IRIX
14963        # while pthread_create is in libc.  We check for pthread_attr_init
14964        # due to DEC craziness with -lpthreads.  We check for
14965        # pthread_cleanup_push because it is one of the few pthread
14966        # functions on Solaris that doesn't have a non-functional libc stub.
14967        # We try pthread_create on general principles.
14968        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14969/* end confdefs.h.  */
14970#include <pthread.h>
14971int
14972main ()
14973{
14974pthread_t th; pthread_join(th, 0);
14975                     pthread_attr_init(0); pthread_cleanup_push(0, 0);
14976                     pthread_create(0,0,0,0); pthread_cleanup_pop(0);
14977  ;
14978  return 0;
14979}
14980_ACEOF
14981if ac_fn_c_try_link "$LINENO"; then :
14982  acx_pthread_ok=yes
14983fi
14984rm -f core conftest.err conftest.$ac_objext \
14985    conftest$ac_exeext conftest.$ac_ext
14986
14987        LIBS="$save_LIBS"
14988        CFLAGS="$save_CFLAGS"
14989
14990        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14991$as_echo "$acx_pthread_ok" >&6; }
14992        if test "x$acx_pthread_ok" = xyes; then
14993                break;
14994        fi
14995
14996        PTHREAD_LIBS=""
14997        PTHREAD_CFLAGS=""
14998done
14999fi
15000
15001# Various other checks:
15002if test "x$acx_pthread_ok" = xyes; then
15003        save_LIBS="$LIBS"
15004        LIBS="$PTHREAD_LIBS $LIBS"
15005        save_CFLAGS="$CFLAGS"
15006        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15007
15008        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15009	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15010$as_echo_n "checking for joinable pthread attribute... " >&6; }
15011	attr_name=unknown
15012	for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15013	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15014/* end confdefs.h.  */
15015#include <pthread.h>
15016int
15017main ()
15018{
15019int attr=$attr; return attr;
15020  ;
15021  return 0;
15022}
15023_ACEOF
15024if ac_fn_c_try_link "$LINENO"; then :
15025  attr_name=$attr; break
15026fi
15027rm -f core conftest.err conftest.$ac_objext \
15028    conftest$ac_exeext conftest.$ac_ext
15029	done
15030        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
15031$as_echo "$attr_name" >&6; }
15032        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15033
15034cat >>confdefs.h <<_ACEOF
15035#define PTHREAD_CREATE_JOINABLE $attr_name
15036_ACEOF
15037
15038        fi
15039
15040        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
15041$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
15042        flag=no
15043        case "${host_cpu}-${host_os}" in
15044            *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
15045            *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
15046        esac
15047        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
15048$as_echo "${flag}" >&6; }
15049        if test "x$flag" != xno; then
15050            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15051        fi
15052
15053        LIBS="$save_LIBS"
15054        CFLAGS="$save_CFLAGS"
15055        # More AIX lossage: must compile with xlc_r or cc_r
15056	if test x"$GCC" != xyes; then
15057          for ac_prog in xlc_r cc_r
15058do
15059  # Extract the first word of "$ac_prog", so it can be a program name with args.
15060set dummy $ac_prog; ac_word=$2
15061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15062$as_echo_n "checking for $ac_word... " >&6; }
15063if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
15064  $as_echo_n "(cached) " >&6
15065else
15066  if test -n "$PTHREAD_CC"; then
15067  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15068else
15069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15070for as_dir in $PATH
15071do
15072  IFS=$as_save_IFS
15073  test -z "$as_dir" && as_dir=.
15074    for ac_exec_ext in '' $ac_executable_extensions; do
15075  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15076    ac_cv_prog_PTHREAD_CC="$ac_prog"
15077    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15078    break 2
15079  fi
15080done
15081  done
15082IFS=$as_save_IFS
15083
15084fi
15085fi
15086PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15087if test -n "$PTHREAD_CC"; then
15088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15089$as_echo "$PTHREAD_CC" >&6; }
15090else
15091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15092$as_echo "no" >&6; }
15093fi
15094
15095
15096  test -n "$PTHREAD_CC" && break
15097done
15098test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
15099
15100        else
15101          PTHREAD_CC=$CC
15102	fi
15103
15104	# The next part tries to detect GCC inconsistency with -shared on some
15105	# architectures and systems. The problem is that in certain
15106	# configurations, when -shared is specified, GCC "forgets" to
15107	# internally use various flags which are still necessary.
15108
15109	#
15110	# Prepare the flags
15111	#
15112	save_CFLAGS="$CFLAGS"
15113	save_LIBS="$LIBS"
15114	save_CC="$CC"
15115
15116	# Try with the flags determined by the earlier checks.
15117	#
15118	# -Wl,-z,defs forces link-time symbol resolution, so that the
15119	# linking checks with -shared actually have any value
15120	#
15121	# FIXME: -fPIC is required for -shared on many architectures,
15122	# so we specify it here, but the right way would probably be to
15123	# properly detect whether it is actually required.
15124	CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
15125	LIBS="$PTHREAD_LIBS $LIBS"
15126	CC="$PTHREAD_CC"
15127
15128	# In order not to create several levels of indentation, we test
15129	# the value of "$done" until we find the cure or run out of ideas.
15130	done="no"
15131
15132	# First, make sure the CFLAGS we added are actually accepted by our
15133	# compiler.  If not (and OS X's ld, for instance, does not accept -z),
15134	# then we can't do this test.
15135	if test x"$done" = xno; then
15136	   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5
15137$as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; }
15138	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15139/* end confdefs.h.  */
15140
15141int
15142main ()
15143{
15144
15145  ;
15146  return 0;
15147}
15148_ACEOF
15149if ac_fn_c_try_link "$LINENO"; then :
15150
15151else
15152  done=yes
15153fi
15154rm -f core conftest.err conftest.$ac_objext \
15155    conftest$ac_exeext conftest.$ac_ext
15156
15157	   if test "x$done" = xyes ; then
15158	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15159$as_echo "no" >&6; }
15160	   else
15161	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15162$as_echo "yes" >&6; }
15163	   fi
15164	fi
15165
15166	if test x"$done" = xno; then
15167	   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5
15168$as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; }
15169	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15170/* end confdefs.h.  */
15171#include <pthread.h>
15172int
15173main ()
15174{
15175pthread_t th; pthread_join(th, 0);
15176	      pthread_attr_init(0); pthread_cleanup_push(0, 0);
15177	      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15178  ;
15179  return 0;
15180}
15181_ACEOF
15182if ac_fn_c_try_link "$LINENO"; then :
15183  done=yes
15184fi
15185rm -f core conftest.err conftest.$ac_objext \
15186    conftest$ac_exeext conftest.$ac_ext
15187
15188	   if test "x$done" = xyes; then
15189	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15190$as_echo "yes" >&6; }
15191	   else
15192	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15193$as_echo "no" >&6; }
15194	   fi
15195	fi
15196
15197	#
15198	# Linux gcc on some architectures such as mips/mipsel forgets
15199	# about -lpthread
15200	#
15201	if test x"$done" = xno; then
15202	   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5
15203$as_echo_n "checking whether -lpthread fixes that... " >&6; }
15204	   LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
15205	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15206/* end confdefs.h.  */
15207#include <pthread.h>
15208int
15209main ()
15210{
15211pthread_t th; pthread_join(th, 0);
15212	      pthread_attr_init(0); pthread_cleanup_push(0, 0);
15213	      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15214  ;
15215  return 0;
15216}
15217_ACEOF
15218if ac_fn_c_try_link "$LINENO"; then :
15219  done=yes
15220fi
15221rm -f core conftest.err conftest.$ac_objext \
15222    conftest$ac_exeext conftest.$ac_ext
15223
15224	   if test "x$done" = xyes; then
15225	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15226$as_echo "yes" >&6; }
15227	      PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
15228	   else
15229	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15230$as_echo "no" >&6; }
15231	   fi
15232	fi
15233	#
15234	# FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
15235	#
15236	if test x"$done" = xno; then
15237	   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5
15238$as_echo_n "checking whether -lc_r fixes that... " >&6; }
15239	   LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
15240	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15241/* end confdefs.h.  */
15242#include <pthread.h>
15243int
15244main ()
15245{
15246pthread_t th; pthread_join(th, 0);
15247	        pthread_attr_init(0); pthread_cleanup_push(0, 0);
15248	        pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15249  ;
15250  return 0;
15251}
15252_ACEOF
15253if ac_fn_c_try_link "$LINENO"; then :
15254  done=yes
15255fi
15256rm -f core conftest.err conftest.$ac_objext \
15257    conftest$ac_exeext conftest.$ac_ext
15258
15259	   if test "x$done" = xyes; then
15260	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15261$as_echo "yes" >&6; }
15262	      PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
15263	   else
15264	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15265$as_echo "no" >&6; }
15266	   fi
15267	fi
15268	if test x"$done" = xno; then
15269	   # OK, we have run out of ideas
15270	   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
15271$as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
15272
15273	   # so it's not safe to assume that we may use pthreads
15274	   acx_pthread_ok=no
15275	fi
15276
15277	CFLAGS="$save_CFLAGS"
15278	LIBS="$save_LIBS"
15279	CC="$save_CC"
15280else
15281        PTHREAD_CC="$CC"
15282fi
15283
15284
15285
15286
15287
15288# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15289if test x"$acx_pthread_ok" = xyes; then
15290
15291$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
15292
15293        :
15294else
15295        acx_pthread_ok=no
15296
15297fi
15298ac_ext=c
15299ac_cpp='$CPP $CPPFLAGS'
15300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15302ac_compiler_gnu=$ac_cv_c_compiler_gnu
15303
15304
15305
15306# Find out what namespace 'normal' STL code lives in, and also what namespace
15307# the user wants our classes to be defined in
15308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
15309$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
15310if test "${ac_cv_cxx_namespaces+set}" = set; then :
15311  $as_echo_n "(cached) " >&6
15312else
15313
15314                  ac_ext=cpp
15315ac_cpp='$CXXCPP $CPPFLAGS'
15316ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15317ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15318ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15319
15320                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15321/* end confdefs.h.  */
15322namespace Outer {
15323                                    namespace Inner { int i = 0; }}
15324int
15325main ()
15326{
15327using namespace Outer::Inner; return i;
15328  ;
15329  return 0;
15330}
15331_ACEOF
15332if ac_fn_cxx_try_compile "$LINENO"; then :
15333  ac_cv_cxx_namespaces=yes
15334else
15335  ac_cv_cxx_namespaces=no
15336fi
15337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15338                  ac_ext=c
15339ac_cpp='$CPP $CPPFLAGS'
15340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15342ac_compiler_gnu=$ac_cv_c_compiler_gnu
15343
15344fi
15345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5
15346$as_echo "$ac_cv_cxx_namespaces" >&6; }
15347  if test "$ac_cv_cxx_namespaces" = yes; then
15348
15349$as_echo "#define HAVE_NAMESPACES 1" >>confdefs.h
15350
15351  fi
15352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what namespace STL code is in" >&5
15353$as_echo_n "checking what namespace STL code is in... " >&6; }
15354if test "${ac_cv_cxx_stl_namespace+set}" = set; then :
15355  $as_echo_n "(cached) " >&6
15356else
15357
15358
15359      ac_ext=cpp
15360ac_cpp='$CXXCPP $CPPFLAGS'
15361ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15362ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15363ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15364
15365      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15366/* end confdefs.h.  */
15367#include <vector>
15368int
15369main ()
15370{
15371vector<int> t; return 0;
15372  ;
15373  return 0;
15374}
15375_ACEOF
15376if ac_fn_cxx_try_compile "$LINENO"; then :
15377  ac_cv_cxx_stl_namespace=none
15378fi
15379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15380      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15381/* end confdefs.h.  */
15382#include <vector>
15383int
15384main ()
15385{
15386std::vector<int> t; return 0;
15387  ;
15388  return 0;
15389}
15390_ACEOF
15391if ac_fn_cxx_try_compile "$LINENO"; then :
15392  ac_cv_cxx_stl_namespace=std
15393fi
15394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15395      ac_ext=c
15396ac_cpp='$CPP $CPPFLAGS'
15397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15399ac_compiler_gnu=$ac_cv_c_compiler_gnu
15400
15401fi
15402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_stl_namespace" >&5
15403$as_echo "$ac_cv_cxx_stl_namespace" >&6; }
15404   if test "$ac_cv_cxx_stl_namespace" = none; then
15405
15406$as_echo "#define STL_NAMESPACE /**/" >>confdefs.h
15407
15408   fi
15409   if test "$ac_cv_cxx_stl_namespace" = std; then
15410
15411$as_echo "#define STL_NAMESPACE std" >>confdefs.h
15412
15413   fi
15414
15415google_namespace_default=google
15416   # Check whether --enable-namespace was given.
15417if test "${enable_namespace+set}" = set; then :
15418  enableval=$enable_namespace; case "$enableval" in
15419                    yes) google_namespace="$google_namespace_default" ;;
15420                     no) google_namespace="" ;;
15421                      *) google_namespace="$enableval" ;;
15422                  esac
15423else
15424  google_namespace="$google_namespace_default"
15425fi
15426
15427   if test -n "$google_namespace"; then
15428     ac_google_namespace="::$google_namespace"
15429     ac_google_start_namespace="namespace $google_namespace {"
15430     ac_google_end_namespace="}"
15431   else
15432     ac_google_namespace=""
15433     ac_google_start_namespace=""
15434     ac_google_end_namespace=""
15435   fi
15436
15437cat >>confdefs.h <<_ACEOF
15438#define GOOGLE_NAMESPACE $ac_google_namespace
15439_ACEOF
15440
15441
15442cat >>confdefs.h <<_ACEOF
15443#define _START_GOOGLE_NAMESPACE_ $ac_google_start_namespace
15444_ACEOF
15445
15446
15447cat >>confdefs.h <<_ACEOF
15448#define _END_GOOGLE_NAMESPACE_ $ac_google_end_namespace
15449_ACEOF
15450
15451
15452
15453# These are what's needed by gflags.h.in
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465# For windows, this has a non-trivial value (__declspec(export)), but any
15466# system that uses configure wants this to be the empty string.
15467
15468$as_echo "#define GFLAGS_DLL_DECL /**/" >>confdefs.h
15469
15470
15471# End of definitions needed by gflags package
15472
15473# Solaris 10 6/06 has a bug where /usr/sfw/lib/libstdc++.la is empty.
15474# If so, we replace it with our own version.
15475LIBSTDCXX_LA_LINKER_FLAG=
15476if test -f /usr/sfw/lib/libstdc++.la && ! test -s /usr/sfw/lib/libstdc++.la
15477then
15478  LIBSTDCXX_LA_LINKER_FLAG='-L$(top_srcdir)/src/solaris'
15479fi
15480
15481
15482ac_config_files="$ac_config_files Makefile gflags/src/gflags/gflags.h gflags/src/gflags/gflags_completions.h"
15483
15484cat >confcache <<\_ACEOF
15485# This file is a shell script that caches the results of configure
15486# tests run on this system so they can be shared between configure
15487# scripts and configure runs, see configure's option --config-cache.
15488# It is not useful on other systems.  If it contains results you don't
15489# want to keep, you may remove or edit it.
15490#
15491# config.status only pays attention to the cache file if you give it
15492# the --recheck option to rerun configure.
15493#
15494# `ac_cv_env_foo' variables (set or unset) will be overridden when
15495# loading this file, other *unset* `ac_cv_foo' will be assigned the
15496# following values.
15497
15498_ACEOF
15499
15500# The following way of writing the cache mishandles newlines in values,
15501# but we know of no workaround that is simple, portable, and efficient.
15502# So, we kill variables containing newlines.
15503# Ultrix sh set writes to stderr and can't be redirected directly,
15504# and sets the high bit in the cache file unless we assign to the vars.
15505(
15506  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15507    eval ac_val=\$$ac_var
15508    case $ac_val in #(
15509    *${as_nl}*)
15510      case $ac_var in #(
15511      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15512$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15513      esac
15514      case $ac_var in #(
15515      _ | IFS | as_nl) ;; #(
15516      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15517      *) { eval $ac_var=; unset $ac_var;} ;;
15518      esac ;;
15519    esac
15520  done
15521
15522  (set) 2>&1 |
15523    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15524    *${as_nl}ac_space=\ *)
15525      # `set' does not quote correctly, so add quotes: double-quote
15526      # substitution turns \\\\ into \\, and sed turns \\ into \.
15527      sed -n \
15528	"s/'/'\\\\''/g;
15529	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15530      ;; #(
15531    *)
15532      # `set' quotes correctly as required by POSIX, so do not add quotes.
15533      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15534      ;;
15535    esac |
15536    sort
15537) |
15538  sed '
15539     /^ac_cv_env_/b end
15540     t clear
15541     :clear
15542     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15543     t end
15544     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15545     :end' >>confcache
15546if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15547  if test -w "$cache_file"; then
15548    test "x$cache_file" != "x/dev/null" &&
15549      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15550$as_echo "$as_me: updating cache $cache_file" >&6;}
15551    cat confcache >$cache_file
15552  else
15553    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15554$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15555  fi
15556fi
15557rm -f confcache
15558
15559test "x$prefix" = xNONE && prefix=$ac_default_prefix
15560# Let make expand exec_prefix.
15561test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15562
15563DEFS=-DHAVE_CONFIG_H
15564
15565ac_libobjs=
15566ac_ltlibobjs=
15567for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15568  # 1. Remove the extension, and $U if already installed.
15569  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15570  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15571  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15572  #    will be set to the directory where LIBOBJS objects are built.
15573  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15574  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15575done
15576LIBOBJS=$ac_libobjs
15577
15578LTLIBOBJS=$ac_ltlibobjs
15579
15580
15581 if test -n "$EXEEXT"; then
15582  am__EXEEXT_TRUE=
15583  am__EXEEXT_FALSE='#'
15584else
15585  am__EXEEXT_TRUE='#'
15586  am__EXEEXT_FALSE=
15587fi
15588
15589if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15590  as_fn_error "conditional \"AMDEP\" was never defined.
15591Usually this means the macro was only invoked conditionally." "$LINENO" 5
15592fi
15593if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15594  as_fn_error "conditional \"am__fastdepCC\" was never defined.
15595Usually this means the macro was only invoked conditionally." "$LINENO" 5
15596fi
15597if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15598  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15599Usually this means the macro was only invoked conditionally." "$LINENO" 5
15600fi
15601if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
15602  as_fn_error "conditional \"GCC\" was never defined.
15603Usually this means the macro was only invoked conditionally." "$LINENO" 5
15604fi
15605if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15606  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15607Usually this means the macro was only invoked conditionally." "$LINENO" 5
15608fi
15609
15610: ${CONFIG_STATUS=./config.status}
15611ac_write_fail=0
15612ac_clean_files_save=$ac_clean_files
15613ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15614{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15615$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15616as_write_fail=0
15617cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15618#! $SHELL
15619# Generated by $as_me.
15620# Run this file to recreate the current configuration.
15621# Compiler output produced by configure, useful for debugging
15622# configure, is in config.log if it exists.
15623
15624debug=false
15625ac_cs_recheck=false
15626ac_cs_silent=false
15627
15628SHELL=\${CONFIG_SHELL-$SHELL}
15629export SHELL
15630_ASEOF
15631cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15632## -------------------- ##
15633## M4sh Initialization. ##
15634## -------------------- ##
15635
15636# Be more Bourne compatible
15637DUALCASE=1; export DUALCASE # for MKS sh
15638if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15639  emulate sh
15640  NULLCMD=:
15641  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15642  # is contrary to our usage.  Disable this feature.
15643  alias -g '${1+"$@"}'='"$@"'
15644  setopt NO_GLOB_SUBST
15645else
15646  case `(set -o) 2>/dev/null` in #(
15647  *posix*) :
15648    set -o posix ;; #(
15649  *) :
15650     ;;
15651esac
15652fi
15653
15654
15655as_nl='
15656'
15657export as_nl
15658# Printing a long string crashes Solaris 7 /usr/bin/printf.
15659as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15660as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15661as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15662# Prefer a ksh shell builtin over an external printf program on Solaris,
15663# but without wasting forks for bash or zsh.
15664if test -z "$BASH_VERSION$ZSH_VERSION" \
15665    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15666  as_echo='print -r --'
15667  as_echo_n='print -rn --'
15668elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15669  as_echo='printf %s\n'
15670  as_echo_n='printf %s'
15671else
15672  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15673    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15674    as_echo_n='/usr/ucb/echo -n'
15675  else
15676    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15677    as_echo_n_body='eval
15678      arg=$1;
15679      case $arg in #(
15680      *"$as_nl"*)
15681	expr "X$arg" : "X\\(.*\\)$as_nl";
15682	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15683      esac;
15684      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15685    '
15686    export as_echo_n_body
15687    as_echo_n='sh -c $as_echo_n_body as_echo'
15688  fi
15689  export as_echo_body
15690  as_echo='sh -c $as_echo_body as_echo'
15691fi
15692
15693# The user is always right.
15694if test "${PATH_SEPARATOR+set}" != set; then
15695  PATH_SEPARATOR=:
15696  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15697    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15698      PATH_SEPARATOR=';'
15699  }
15700fi
15701
15702
15703# IFS
15704# We need space, tab and new line, in precisely that order.  Quoting is
15705# there to prevent editors from complaining about space-tab.
15706# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15707# splitting by setting IFS to empty value.)
15708IFS=" ""	$as_nl"
15709
15710# Find who we are.  Look in the path if we contain no directory separator.
15711case $0 in #((
15712  *[\\/]* ) as_myself=$0 ;;
15713  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15714for as_dir in $PATH
15715do
15716  IFS=$as_save_IFS
15717  test -z "$as_dir" && as_dir=.
15718    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15719  done
15720IFS=$as_save_IFS
15721
15722     ;;
15723esac
15724# We did not find ourselves, most probably we were run as `sh COMMAND'
15725# in which case we are not to be found in the path.
15726if test "x$as_myself" = x; then
15727  as_myself=$0
15728fi
15729if test ! -f "$as_myself"; then
15730  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15731  exit 1
15732fi
15733
15734# Unset variables that we do not need and which cause bugs (e.g. in
15735# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15736# suppresses any "Segmentation fault" message there.  '((' could
15737# trigger a bug in pdksh 5.2.14.
15738for as_var in BASH_ENV ENV MAIL MAILPATH
15739do eval test x\${$as_var+set} = xset \
15740  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15741done
15742PS1='$ '
15743PS2='> '
15744PS4='+ '
15745
15746# NLS nuisances.
15747LC_ALL=C
15748export LC_ALL
15749LANGUAGE=C
15750export LANGUAGE
15751
15752# CDPATH.
15753(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15754
15755
15756# as_fn_error ERROR [LINENO LOG_FD]
15757# ---------------------------------
15758# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15759# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15760# script with status $?, using 1 if that was 0.
15761as_fn_error ()
15762{
15763  as_status=$?; test $as_status -eq 0 && as_status=1
15764  if test "$3"; then
15765    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15766    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15767  fi
15768  $as_echo "$as_me: error: $1" >&2
15769  as_fn_exit $as_status
15770} # as_fn_error
15771
15772
15773# as_fn_set_status STATUS
15774# -----------------------
15775# Set $? to STATUS, without forking.
15776as_fn_set_status ()
15777{
15778  return $1
15779} # as_fn_set_status
15780
15781# as_fn_exit STATUS
15782# -----------------
15783# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15784as_fn_exit ()
15785{
15786  set +e
15787  as_fn_set_status $1
15788  exit $1
15789} # as_fn_exit
15790
15791# as_fn_unset VAR
15792# ---------------
15793# Portably unset VAR.
15794as_fn_unset ()
15795{
15796  { eval $1=; unset $1;}
15797}
15798as_unset=as_fn_unset
15799# as_fn_append VAR VALUE
15800# ----------------------
15801# Append the text in VALUE to the end of the definition contained in VAR. Take
15802# advantage of any shell optimizations that allow amortized linear growth over
15803# repeated appends, instead of the typical quadratic growth present in naive
15804# implementations.
15805if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15806  eval 'as_fn_append ()
15807  {
15808    eval $1+=\$2
15809  }'
15810else
15811  as_fn_append ()
15812  {
15813    eval $1=\$$1\$2
15814  }
15815fi # as_fn_append
15816
15817# as_fn_arith ARG...
15818# ------------------
15819# Perform arithmetic evaluation on the ARGs, and store the result in the
15820# global $as_val. Take advantage of shells that can avoid forks. The arguments
15821# must be portable across $(()) and expr.
15822if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15823  eval 'as_fn_arith ()
15824  {
15825    as_val=$(( $* ))
15826  }'
15827else
15828  as_fn_arith ()
15829  {
15830    as_val=`expr "$@" || test $? -eq 1`
15831  }
15832fi # as_fn_arith
15833
15834
15835if expr a : '\(a\)' >/dev/null 2>&1 &&
15836   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15837  as_expr=expr
15838else
15839  as_expr=false
15840fi
15841
15842if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15843  as_basename=basename
15844else
15845  as_basename=false
15846fi
15847
15848if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15849  as_dirname=dirname
15850else
15851  as_dirname=false
15852fi
15853
15854as_me=`$as_basename -- "$0" ||
15855$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15856	 X"$0" : 'X\(//\)$' \| \
15857	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15858$as_echo X/"$0" |
15859    sed '/^.*\/\([^/][^/]*\)\/*$/{
15860	    s//\1/
15861	    q
15862	  }
15863	  /^X\/\(\/\/\)$/{
15864	    s//\1/
15865	    q
15866	  }
15867	  /^X\/\(\/\).*/{
15868	    s//\1/
15869	    q
15870	  }
15871	  s/.*/./; q'`
15872
15873# Avoid depending upon Character Ranges.
15874as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15875as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15876as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15877as_cr_digits='0123456789'
15878as_cr_alnum=$as_cr_Letters$as_cr_digits
15879
15880ECHO_C= ECHO_N= ECHO_T=
15881case `echo -n x` in #(((((
15882-n*)
15883  case `echo 'xy\c'` in
15884  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15885  xy)  ECHO_C='\c';;
15886  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15887       ECHO_T='	';;
15888  esac;;
15889*)
15890  ECHO_N='-n';;
15891esac
15892
15893rm -f conf$$ conf$$.exe conf$$.file
15894if test -d conf$$.dir; then
15895  rm -f conf$$.dir/conf$$.file
15896else
15897  rm -f conf$$.dir
15898  mkdir conf$$.dir 2>/dev/null
15899fi
15900if (echo >conf$$.file) 2>/dev/null; then
15901  if ln -s conf$$.file conf$$ 2>/dev/null; then
15902    as_ln_s='ln -s'
15903    # ... but there are two gotchas:
15904    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15905    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15906    # In both cases, we have to default to `cp -p'.
15907    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15908      as_ln_s='cp -p'
15909  elif ln conf$$.file conf$$ 2>/dev/null; then
15910    as_ln_s=ln
15911  else
15912    as_ln_s='cp -p'
15913  fi
15914else
15915  as_ln_s='cp -p'
15916fi
15917rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15918rmdir conf$$.dir 2>/dev/null
15919
15920
15921# as_fn_mkdir_p
15922# -------------
15923# Create "$as_dir" as a directory, including parents if necessary.
15924as_fn_mkdir_p ()
15925{
15926
15927  case $as_dir in #(
15928  -*) as_dir=./$as_dir;;
15929  esac
15930  test -d "$as_dir" || eval $as_mkdir_p || {
15931    as_dirs=
15932    while :; do
15933      case $as_dir in #(
15934      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15935      *) as_qdir=$as_dir;;
15936      esac
15937      as_dirs="'$as_qdir' $as_dirs"
15938      as_dir=`$as_dirname -- "$as_dir" ||
15939$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15940	 X"$as_dir" : 'X\(//\)[^/]' \| \
15941	 X"$as_dir" : 'X\(//\)$' \| \
15942	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15943$as_echo X"$as_dir" |
15944    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15945	    s//\1/
15946	    q
15947	  }
15948	  /^X\(\/\/\)[^/].*/{
15949	    s//\1/
15950	    q
15951	  }
15952	  /^X\(\/\/\)$/{
15953	    s//\1/
15954	    q
15955	  }
15956	  /^X\(\/\).*/{
15957	    s//\1/
15958	    q
15959	  }
15960	  s/.*/./; q'`
15961      test -d "$as_dir" && break
15962    done
15963    test -z "$as_dirs" || eval "mkdir $as_dirs"
15964  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15965
15966
15967} # as_fn_mkdir_p
15968if mkdir -p . 2>/dev/null; then
15969  as_mkdir_p='mkdir -p "$as_dir"'
15970else
15971  test -d ./-p && rmdir ./-p
15972  as_mkdir_p=false
15973fi
15974
15975if test -x / >/dev/null 2>&1; then
15976  as_test_x='test -x'
15977else
15978  if ls -dL / >/dev/null 2>&1; then
15979    as_ls_L_option=L
15980  else
15981    as_ls_L_option=
15982  fi
15983  as_test_x='
15984    eval sh -c '\''
15985      if test -d "$1"; then
15986	test -d "$1/.";
15987      else
15988	case $1 in #(
15989	-*)set "./$1";;
15990	esac;
15991	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15992	???[sx]*):;;*)false;;esac;fi
15993    '\'' sh
15994  '
15995fi
15996as_executable_p=$as_test_x
15997
15998# Sed expression to map a string onto a valid CPP name.
15999as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16000
16001# Sed expression to map a string onto a valid variable name.
16002as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16003
16004
16005exec 6>&1
16006## ----------------------------------- ##
16007## Main body of $CONFIG_STATUS script. ##
16008## ----------------------------------- ##
16009_ASEOF
16010test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16011
16012cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16013# Save the log message, to keep $0 and so on meaningful, and to
16014# report actual input values of CONFIG_FILES etc. instead of their
16015# values after options handling.
16016ac_log="
16017This file was extended by open-vcdiff $as_me 0.8.3, which was
16018generated by GNU Autoconf 2.65.  Invocation command line was
16019
16020  CONFIG_FILES    = $CONFIG_FILES
16021  CONFIG_HEADERS  = $CONFIG_HEADERS
16022  CONFIG_LINKS    = $CONFIG_LINKS
16023  CONFIG_COMMANDS = $CONFIG_COMMANDS
16024  $ $0 $@
16025
16026on `(hostname || uname -n) 2>/dev/null | sed 1q`
16027"
16028
16029_ACEOF
16030
16031case $ac_config_files in *"
16032"*) set x $ac_config_files; shift; ac_config_files=$*;;
16033esac
16034
16035case $ac_config_headers in *"
16036"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16037esac
16038
16039
16040cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16041# Files that config.status was made for.
16042config_files="$ac_config_files"
16043config_headers="$ac_config_headers"
16044config_commands="$ac_config_commands"
16045
16046_ACEOF
16047
16048cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16049ac_cs_usage="\
16050\`$as_me' instantiates files and other configuration actions
16051from templates according to the current configuration.  Unless the files
16052and actions are specified as TAGs, all are instantiated by default.
16053
16054Usage: $0 [OPTION]... [TAG]...
16055
16056  -h, --help       print this help, then exit
16057  -V, --version    print version number and configuration settings, then exit
16058      --config     print configuration, then exit
16059  -q, --quiet, --silent
16060                   do not print progress messages
16061  -d, --debug      don't remove temporary files
16062      --recheck    update $as_me by reconfiguring in the same conditions
16063      --file=FILE[:TEMPLATE]
16064                   instantiate the configuration file FILE
16065      --header=FILE[:TEMPLATE]
16066                   instantiate the configuration header FILE
16067
16068Configuration files:
16069$config_files
16070
16071Configuration headers:
16072$config_headers
16073
16074Configuration commands:
16075$config_commands
16076
16077Report bugs to <opensource@google.com>."
16078
16079_ACEOF
16080cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16081ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16082ac_cs_version="\\
16083open-vcdiff config.status 0.8.3
16084configured by $0, generated by GNU Autoconf 2.65,
16085  with options \\"\$ac_cs_config\\"
16086
16087Copyright (C) 2009 Free Software Foundation, Inc.
16088This config.status script is free software; the Free Software Foundation
16089gives unlimited permission to copy, distribute and modify it."
16090
16091ac_pwd='$ac_pwd'
16092srcdir='$srcdir'
16093INSTALL='$INSTALL'
16094MKDIR_P='$MKDIR_P'
16095AWK='$AWK'
16096test -n "\$AWK" || AWK=awk
16097_ACEOF
16098
16099cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16100# The default lists apply if the user does not specify any file.
16101ac_need_defaults=:
16102while test $# != 0
16103do
16104  case $1 in
16105  --*=*)
16106    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16107    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16108    ac_shift=:
16109    ;;
16110  *)
16111    ac_option=$1
16112    ac_optarg=$2
16113    ac_shift=shift
16114    ;;
16115  esac
16116
16117  case $ac_option in
16118  # Handling of the options.
16119  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16120    ac_cs_recheck=: ;;
16121  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16122    $as_echo "$ac_cs_version"; exit ;;
16123  --config | --confi | --conf | --con | --co | --c )
16124    $as_echo "$ac_cs_config"; exit ;;
16125  --debug | --debu | --deb | --de | --d | -d )
16126    debug=: ;;
16127  --file | --fil | --fi | --f )
16128    $ac_shift
16129    case $ac_optarg in
16130    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16131    esac
16132    as_fn_append CONFIG_FILES " '$ac_optarg'"
16133    ac_need_defaults=false;;
16134  --header | --heade | --head | --hea )
16135    $ac_shift
16136    case $ac_optarg in
16137    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16138    esac
16139    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16140    ac_need_defaults=false;;
16141  --he | --h)
16142    # Conflict between --help and --header
16143    as_fn_error "ambiguous option: \`$1'
16144Try \`$0 --help' for more information.";;
16145  --help | --hel | -h )
16146    $as_echo "$ac_cs_usage"; exit ;;
16147  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16148  | -silent | --silent | --silen | --sile | --sil | --si | --s)
16149    ac_cs_silent=: ;;
16150
16151  # This is an error.
16152  -*) as_fn_error "unrecognized option: \`$1'
16153Try \`$0 --help' for more information." ;;
16154
16155  *) as_fn_append ac_config_targets " $1"
16156     ac_need_defaults=false ;;
16157
16158  esac
16159  shift
16160done
16161
16162ac_configure_extra_args=
16163
16164if $ac_cs_silent; then
16165  exec 6>/dev/null
16166  ac_configure_extra_args="$ac_configure_extra_args --silent"
16167fi
16168
16169_ACEOF
16170cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16171if \$ac_cs_recheck; then
16172  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16173  shift
16174  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16175  CONFIG_SHELL='$SHELL'
16176  export CONFIG_SHELL
16177  exec "\$@"
16178fi
16179
16180_ACEOF
16181cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16182exec 5>>config.log
16183{
16184  echo
16185  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16186## Running $as_me. ##
16187_ASBOX
16188  $as_echo "$ac_log"
16189} >&5
16190
16191_ACEOF
16192cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16193#
16194# INIT-COMMANDS
16195#
16196AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16197
16198
16199# The HP-UX ksh and POSIX shell print the target directory to stdout
16200# if CDPATH is set.
16201(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16202
16203sed_quote_subst='$sed_quote_subst'
16204double_quote_subst='$double_quote_subst'
16205delay_variable_subst='$delay_variable_subst'
16206macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16207macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16208enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16209enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16210pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16211enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16212host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16213host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16214host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16215build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16216build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16217build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16218SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16219Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16220GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16221EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16222FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16223LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16224NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16225LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16226max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16227ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16228exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16229lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16230lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16231lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16232reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16233reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16234OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16235deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16236file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16237AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16238AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16239STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16240RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16241old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16242old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16243old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16244CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16245CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16246compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16247GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16248lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16249lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16250lt_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"`'
16251lt_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"`'
16252objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16253SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16254ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16255MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16256lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16257lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16258lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16259lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16260lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16261need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16262DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16263NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16264LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16265OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16266OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16267libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16268shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16269extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16270archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16271enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16272export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16273whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16274compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16275old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16276old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16277archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16278archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16279module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16280module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16281with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16282allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16283no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16284hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16285hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16286hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16287hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16288hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16289hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16290hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16291hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16292inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16293link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16294fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16295always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16296export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16297exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16298include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16299prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16300file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16301variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16302need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16303need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16304version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16305runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16306shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16307shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16308libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16309library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16310soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16311postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16312postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16313finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16314finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16315hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16316sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16317sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16318hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16319enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16320enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16321enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16322old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16323striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16324compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
16325predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16326postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16327predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
16328postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
16329compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
16330LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16331old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16332compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16333GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16334lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16335lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16336lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16337lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16338lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16339archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16340enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16341export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16342whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16343compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16344old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16345old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16346archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16347archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16348module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16349module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16350with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16351allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16352no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16353hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16354hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16355hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16356hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16357hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16358hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16359hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16360hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16361inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16362link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16363fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16364always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16365export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16366exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16367include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16368prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16369file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16370hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16371compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16372predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16373postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16374predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16375postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16376compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16377
16378LTCC='$LTCC'
16379LTCFLAGS='$LTCFLAGS'
16380compiler='$compiler_DEFAULT'
16381
16382# Quote evaled strings.
16383for var in SED \
16384GREP \
16385EGREP \
16386FGREP \
16387LD \
16388NM \
16389LN_S \
16390lt_SP2NL \
16391lt_NL2SP \
16392reload_flag \
16393OBJDUMP \
16394deplibs_check_method \
16395file_magic_cmd \
16396AR \
16397AR_FLAGS \
16398STRIP \
16399RANLIB \
16400CC \
16401CFLAGS \
16402compiler \
16403lt_cv_sys_global_symbol_pipe \
16404lt_cv_sys_global_symbol_to_cdecl \
16405lt_cv_sys_global_symbol_to_c_name_address \
16406lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16407SHELL \
16408ECHO \
16409lt_prog_compiler_no_builtin_flag \
16410lt_prog_compiler_wl \
16411lt_prog_compiler_pic \
16412lt_prog_compiler_static \
16413lt_cv_prog_compiler_c_o \
16414need_locks \
16415DSYMUTIL \
16416NMEDIT \
16417LIPO \
16418OTOOL \
16419OTOOL64 \
16420shrext_cmds \
16421export_dynamic_flag_spec \
16422whole_archive_flag_spec \
16423compiler_needs_object \
16424with_gnu_ld \
16425allow_undefined_flag \
16426no_undefined_flag \
16427hardcode_libdir_flag_spec \
16428hardcode_libdir_flag_spec_ld \
16429hardcode_libdir_separator \
16430fix_srcfile_path \
16431exclude_expsyms \
16432include_expsyms \
16433file_list_spec \
16434variables_saved_for_relink \
16435libname_spec \
16436library_names_spec \
16437soname_spec \
16438finish_eval \
16439old_striplib \
16440striplib \
16441compiler_lib_search_dirs \
16442predep_objects \
16443postdep_objects \
16444predeps \
16445postdeps \
16446compiler_lib_search_path \
16447LD_CXX \
16448compiler_CXX \
16449lt_prog_compiler_no_builtin_flag_CXX \
16450lt_prog_compiler_wl_CXX \
16451lt_prog_compiler_pic_CXX \
16452lt_prog_compiler_static_CXX \
16453lt_cv_prog_compiler_c_o_CXX \
16454export_dynamic_flag_spec_CXX \
16455whole_archive_flag_spec_CXX \
16456compiler_needs_object_CXX \
16457with_gnu_ld_CXX \
16458allow_undefined_flag_CXX \
16459no_undefined_flag_CXX \
16460hardcode_libdir_flag_spec_CXX \
16461hardcode_libdir_flag_spec_ld_CXX \
16462hardcode_libdir_separator_CXX \
16463fix_srcfile_path_CXX \
16464exclude_expsyms_CXX \
16465include_expsyms_CXX \
16466file_list_spec_CXX \
16467compiler_lib_search_dirs_CXX \
16468predep_objects_CXX \
16469postdep_objects_CXX \
16470predeps_CXX \
16471postdeps_CXX \
16472compiler_lib_search_path_CXX; do
16473    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16474    *[\\\\\\\`\\"\\\$]*)
16475      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16476      ;;
16477    *)
16478      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16479      ;;
16480    esac
16481done
16482
16483# Double-quote double-evaled strings.
16484for var in reload_cmds \
16485old_postinstall_cmds \
16486old_postuninstall_cmds \
16487old_archive_cmds \
16488extract_expsyms_cmds \
16489old_archive_from_new_cmds \
16490old_archive_from_expsyms_cmds \
16491archive_cmds \
16492archive_expsym_cmds \
16493module_cmds \
16494module_expsym_cmds \
16495export_symbols_cmds \
16496prelink_cmds \
16497postinstall_cmds \
16498postuninstall_cmds \
16499finish_cmds \
16500sys_lib_search_path_spec \
16501sys_lib_dlsearch_path_spec \
16502old_archive_cmds_CXX \
16503old_archive_from_new_cmds_CXX \
16504old_archive_from_expsyms_cmds_CXX \
16505archive_cmds_CXX \
16506archive_expsym_cmds_CXX \
16507module_cmds_CXX \
16508module_expsym_cmds_CXX \
16509export_symbols_cmds_CXX \
16510prelink_cmds_CXX; do
16511    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16512    *[\\\\\\\`\\"\\\$]*)
16513      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16514      ;;
16515    *)
16516      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16517      ;;
16518    esac
16519done
16520
16521# Fix-up fallback echo if it was mangled by the above quoting rules.
16522case \$lt_ECHO in
16523*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16524  ;;
16525esac
16526
16527ac_aux_dir='$ac_aux_dir'
16528xsi_shell='$xsi_shell'
16529lt_shell_append='$lt_shell_append'
16530
16531# See if we are running on zsh, and set the options which allow our
16532# commands through without removal of \ escapes INIT.
16533if test -n "\${ZSH_VERSION+set}" ; then
16534   setopt NO_GLOB_SUBST
16535fi
16536
16537
16538    PACKAGE='$PACKAGE'
16539    VERSION='$VERSION'
16540    TIMESTAMP='$TIMESTAMP'
16541    RM='$RM'
16542    ofile='$ofile'
16543
16544
16545
16546
16547
16548
16549_ACEOF
16550
16551cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16552
16553# Handling of arguments.
16554for ac_config_target in $ac_config_targets
16555do
16556  case $ac_config_target in
16557    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
16558    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16559    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16560    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16561    "gflags/src/gflags/gflags.h") CONFIG_FILES="$CONFIG_FILES gflags/src/gflags/gflags.h" ;;
16562    "gflags/src/gflags/gflags_completions.h") CONFIG_FILES="$CONFIG_FILES gflags/src/gflags/gflags_completions.h" ;;
16563
16564  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16565  esac
16566done
16567
16568
16569# If the user did not use the arguments to specify the items to instantiate,
16570# then the envvar interface is used.  Set only those that are not.
16571# We use the long form for the default assignment because of an extremely
16572# bizarre bug on SunOS 4.1.3.
16573if $ac_need_defaults; then
16574  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16575  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16576  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16577fi
16578
16579# Have a temporary directory for convenience.  Make it in the build tree
16580# simply because there is no reason against having it here, and in addition,
16581# creating and moving files from /tmp can sometimes cause problems.
16582# Hook for its removal unless debugging.
16583# Note that there is a small window in which the directory will not be cleaned:
16584# after its creation but before its name has been assigned to `$tmp'.
16585$debug ||
16586{
16587  tmp=
16588  trap 'exit_status=$?
16589  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16590' 0
16591  trap 'as_fn_exit 1' 1 2 13 15
16592}
16593# Create a (secure) tmp directory for tmp files.
16594
16595{
16596  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16597  test -n "$tmp" && test -d "$tmp"
16598}  ||
16599{
16600  tmp=./conf$$-$RANDOM
16601  (umask 077 && mkdir "$tmp")
16602} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16603
16604# Set up the scripts for CONFIG_FILES section.
16605# No need to generate them if there are no CONFIG_FILES.
16606# This happens for instance with `./config.status config.h'.
16607if test -n "$CONFIG_FILES"; then
16608
16609
16610ac_cr=`echo X | tr X '\015'`
16611# On cygwin, bash can eat \r inside `` if the user requested igncr.
16612# But we know of no other shell where ac_cr would be empty at this
16613# point, so we can use a bashism as a fallback.
16614if test "x$ac_cr" = x; then
16615  eval ac_cr=\$\'\\r\'
16616fi
16617ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16618if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16619  ac_cs_awk_cr='\r'
16620else
16621  ac_cs_awk_cr=$ac_cr
16622fi
16623
16624echo 'BEGIN {' >"$tmp/subs1.awk" &&
16625_ACEOF
16626
16627
16628{
16629  echo "cat >conf$$subs.awk <<_ACEOF" &&
16630  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16631  echo "_ACEOF"
16632} >conf$$subs.sh ||
16633  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16634ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16635ac_delim='%!_!# '
16636for ac_last_try in false false false false false :; do
16637  . ./conf$$subs.sh ||
16638    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16639
16640  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16641  if test $ac_delim_n = $ac_delim_num; then
16642    break
16643  elif $ac_last_try; then
16644    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16645  else
16646    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16647  fi
16648done
16649rm -f conf$$subs.sh
16650
16651cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16652cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16653_ACEOF
16654sed -n '
16655h
16656s/^/S["/; s/!.*/"]=/
16657p
16658g
16659s/^[^!]*!//
16660:repl
16661t repl
16662s/'"$ac_delim"'$//
16663t delim
16664:nl
16665h
16666s/\(.\{148\}\)..*/\1/
16667t more1
16668s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16669p
16670n
16671b repl
16672:more1
16673s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16674p
16675g
16676s/.\{148\}//
16677t nl
16678:delim
16679h
16680s/\(.\{148\}\)..*/\1/
16681t more2
16682s/["\\]/\\&/g; s/^/"/; s/$/"/
16683p
16684b
16685:more2
16686s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16687p
16688g
16689s/.\{148\}//
16690t delim
16691' <conf$$subs.awk | sed '
16692/^[^""]/{
16693  N
16694  s/\n//
16695}
16696' >>$CONFIG_STATUS || ac_write_fail=1
16697rm -f conf$$subs.awk
16698cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16699_ACAWK
16700cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16701  for (key in S) S_is_set[key] = 1
16702  FS = ""
16703
16704}
16705{
16706  line = $ 0
16707  nfields = split(line, field, "@")
16708  substed = 0
16709  len = length(field[1])
16710  for (i = 2; i < nfields; i++) {
16711    key = field[i]
16712    keylen = length(key)
16713    if (S_is_set[key]) {
16714      value = S[key]
16715      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16716      len += length(value) + length(field[++i])
16717      substed = 1
16718    } else
16719      len += 1 + keylen
16720  }
16721
16722  print line
16723}
16724
16725_ACAWK
16726_ACEOF
16727cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16728if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16729  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16730else
16731  cat
16732fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16733  || as_fn_error "could not setup config files machinery" "$LINENO" 5
16734_ACEOF
16735
16736# VPATH may cause trouble with some makes, so we remove $(srcdir),
16737# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16738# trailing colons and then remove the whole line if VPATH becomes empty
16739# (actually we leave an empty line to preserve line numbers).
16740if test "x$srcdir" = x.; then
16741  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
16742s/:*\$(srcdir):*/:/
16743s/:*\${srcdir}:*/:/
16744s/:*@srcdir@:*/:/
16745s/^\([^=]*=[	 ]*\):*/\1/
16746s/:*$//
16747s/^[^=]*=[	 ]*$//
16748}'
16749fi
16750
16751cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16752fi # test -n "$CONFIG_FILES"
16753
16754# Set up the scripts for CONFIG_HEADERS section.
16755# No need to generate them if there are no CONFIG_HEADERS.
16756# This happens for instance with `./config.status Makefile'.
16757if test -n "$CONFIG_HEADERS"; then
16758cat >"$tmp/defines.awk" <<\_ACAWK ||
16759BEGIN {
16760_ACEOF
16761
16762# Transform confdefs.h into an awk script `defines.awk', embedded as
16763# here-document in config.status, that substitutes the proper values into
16764# config.h.in to produce config.h.
16765
16766# Create a delimiter string that does not exist in confdefs.h, to ease
16767# handling of long lines.
16768ac_delim='%!_!# '
16769for ac_last_try in false false :; do
16770  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16771  if test -z "$ac_t"; then
16772    break
16773  elif $ac_last_try; then
16774    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16775  else
16776    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16777  fi
16778done
16779
16780# For the awk script, D is an array of macro values keyed by name,
16781# likewise P contains macro parameters if any.  Preserve backslash
16782# newline sequences.
16783
16784ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16785sed -n '
16786s/.\{148\}/&'"$ac_delim"'/g
16787t rset
16788:rset
16789s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16790t def
16791d
16792:def
16793s/\\$//
16794t bsnl
16795s/["\\]/\\&/g
16796s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16797D["\1"]=" \3"/p
16798s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16799d
16800:bsnl
16801s/["\\]/\\&/g
16802s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16803D["\1"]=" \3\\\\\\n"\\/p
16804t cont
16805s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16806t cont
16807d
16808:cont
16809n
16810s/.\{148\}/&'"$ac_delim"'/g
16811t clear
16812:clear
16813s/\\$//
16814t bsnlc
16815s/["\\]/\\&/g; s/^/"/; s/$/"/p
16816d
16817:bsnlc
16818s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16819b cont
16820' <confdefs.h | sed '
16821s/'"$ac_delim"'/"\\\
16822"/g' >>$CONFIG_STATUS || ac_write_fail=1
16823
16824cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16825  for (key in D) D_is_set[key] = 1
16826  FS = ""
16827}
16828/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16829  line = \$ 0
16830  split(line, arg, " ")
16831  if (arg[1] == "#") {
16832    defundef = arg[2]
16833    mac1 = arg[3]
16834  } else {
16835    defundef = substr(arg[1], 2)
16836    mac1 = arg[2]
16837  }
16838  split(mac1, mac2, "(") #)
16839  macro = mac2[1]
16840  prefix = substr(line, 1, index(line, defundef) - 1)
16841  if (D_is_set[macro]) {
16842    # Preserve the white space surrounding the "#".
16843    print prefix "define", macro P[macro] D[macro]
16844    next
16845  } else {
16846    # Replace #undef with comments.  This is necessary, for example,
16847    # in the case of _POSIX_SOURCE, which is predefined and required
16848    # on some systems where configure will not decide to define it.
16849    if (defundef == "undef") {
16850      print "/*", prefix defundef, macro, "*/"
16851      next
16852    }
16853  }
16854}
16855{ print }
16856_ACAWK
16857_ACEOF
16858cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16859  as_fn_error "could not setup config headers machinery" "$LINENO" 5
16860fi # test -n "$CONFIG_HEADERS"
16861
16862
16863eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16864shift
16865for ac_tag
16866do
16867  case $ac_tag in
16868  :[FHLC]) ac_mode=$ac_tag; continue;;
16869  esac
16870  case $ac_mode$ac_tag in
16871  :[FHL]*:*);;
16872  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16873  :[FH]-) ac_tag=-:-;;
16874  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16875  esac
16876  ac_save_IFS=$IFS
16877  IFS=:
16878  set x $ac_tag
16879  IFS=$ac_save_IFS
16880  shift
16881  ac_file=$1
16882  shift
16883
16884  case $ac_mode in
16885  :L) ac_source=$1;;
16886  :[FH])
16887    ac_file_inputs=
16888    for ac_f
16889    do
16890      case $ac_f in
16891      -) ac_f="$tmp/stdin";;
16892      *) # Look for the file first in the build tree, then in the source tree
16893	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16894	 # because $ac_f cannot contain `:'.
16895	 test -f "$ac_f" ||
16896	   case $ac_f in
16897	   [\\/$]*) false;;
16898	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16899	   esac ||
16900	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16901      esac
16902      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16903      as_fn_append ac_file_inputs " '$ac_f'"
16904    done
16905
16906    # Let's still pretend it is `configure' which instantiates (i.e., don't
16907    # use $as_me), people would be surprised to read:
16908    #    /* config.h.  Generated by config.status.  */
16909    configure_input='Generated from '`
16910	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16911	`' by configure.'
16912    if test x"$ac_file" != x-; then
16913      configure_input="$ac_file.  $configure_input"
16914      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16915$as_echo "$as_me: creating $ac_file" >&6;}
16916    fi
16917    # Neutralize special characters interpreted by sed in replacement strings.
16918    case $configure_input in #(
16919    *\&* | *\|* | *\\* )
16920       ac_sed_conf_input=`$as_echo "$configure_input" |
16921       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16922    *) ac_sed_conf_input=$configure_input;;
16923    esac
16924
16925    case $ac_tag in
16926    *:-:* | *:-) cat >"$tmp/stdin" \
16927      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16928    esac
16929    ;;
16930  esac
16931
16932  ac_dir=`$as_dirname -- "$ac_file" ||
16933$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16934	 X"$ac_file" : 'X\(//\)[^/]' \| \
16935	 X"$ac_file" : 'X\(//\)$' \| \
16936	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16937$as_echo X"$ac_file" |
16938    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16939	    s//\1/
16940	    q
16941	  }
16942	  /^X\(\/\/\)[^/].*/{
16943	    s//\1/
16944	    q
16945	  }
16946	  /^X\(\/\/\)$/{
16947	    s//\1/
16948	    q
16949	  }
16950	  /^X\(\/\).*/{
16951	    s//\1/
16952	    q
16953	  }
16954	  s/.*/./; q'`
16955  as_dir="$ac_dir"; as_fn_mkdir_p
16956  ac_builddir=.
16957
16958case "$ac_dir" in
16959.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16960*)
16961  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16962  # A ".." for each directory in $ac_dir_suffix.
16963  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16964  case $ac_top_builddir_sub in
16965  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16966  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16967  esac ;;
16968esac
16969ac_abs_top_builddir=$ac_pwd
16970ac_abs_builddir=$ac_pwd$ac_dir_suffix
16971# for backward compatibility:
16972ac_top_builddir=$ac_top_build_prefix
16973
16974case $srcdir in
16975  .)  # We are building in place.
16976    ac_srcdir=.
16977    ac_top_srcdir=$ac_top_builddir_sub
16978    ac_abs_top_srcdir=$ac_pwd ;;
16979  [\\/]* | ?:[\\/]* )  # Absolute name.
16980    ac_srcdir=$srcdir$ac_dir_suffix;
16981    ac_top_srcdir=$srcdir
16982    ac_abs_top_srcdir=$srcdir ;;
16983  *) # Relative name.
16984    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16985    ac_top_srcdir=$ac_top_build_prefix$srcdir
16986    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16987esac
16988ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16989
16990
16991  case $ac_mode in
16992  :F)
16993  #
16994  # CONFIG_FILE
16995  #
16996
16997  case $INSTALL in
16998  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16999  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17000  esac
17001  ac_MKDIR_P=$MKDIR_P
17002  case $MKDIR_P in
17003  [\\/$]* | ?:[\\/]* ) ;;
17004  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17005  esac
17006_ACEOF
17007
17008cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17009# If the template does not know about datarootdir, expand it.
17010# FIXME: This hack should be removed a few years after 2.60.
17011ac_datarootdir_hack=; ac_datarootdir_seen=
17012ac_sed_dataroot='
17013/datarootdir/ {
17014  p
17015  q
17016}
17017/@datadir@/p
17018/@docdir@/p
17019/@infodir@/p
17020/@localedir@/p
17021/@mandir@/p'
17022case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17023*datarootdir*) ac_datarootdir_seen=yes;;
17024*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17025  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17026$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17027_ACEOF
17028cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17029  ac_datarootdir_hack='
17030  s&@datadir@&$datadir&g
17031  s&@docdir@&$docdir&g
17032  s&@infodir@&$infodir&g
17033  s&@localedir@&$localedir&g
17034  s&@mandir@&$mandir&g
17035  s&\\\${datarootdir}&$datarootdir&g' ;;
17036esac
17037_ACEOF
17038
17039# Neutralize VPATH when `$srcdir' = `.'.
17040# Shell code in configure.ac might set extrasub.
17041# FIXME: do we really want to maintain this feature?
17042cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17043ac_sed_extra="$ac_vpsub
17044$extrasub
17045_ACEOF
17046cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17047:t
17048/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17049s|@configure_input@|$ac_sed_conf_input|;t t
17050s&@top_builddir@&$ac_top_builddir_sub&;t t
17051s&@top_build_prefix@&$ac_top_build_prefix&;t t
17052s&@srcdir@&$ac_srcdir&;t t
17053s&@abs_srcdir@&$ac_abs_srcdir&;t t
17054s&@top_srcdir@&$ac_top_srcdir&;t t
17055s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17056s&@builddir@&$ac_builddir&;t t
17057s&@abs_builddir@&$ac_abs_builddir&;t t
17058s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17059s&@INSTALL@&$ac_INSTALL&;t t
17060s&@MKDIR_P@&$ac_MKDIR_P&;t t
17061$ac_datarootdir_hack
17062"
17063eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17064  || as_fn_error "could not create $ac_file" "$LINENO" 5
17065
17066test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17067  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17068  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17069  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17070which seems to be undefined.  Please make sure it is defined." >&5
17071$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17072which seems to be undefined.  Please make sure it is defined." >&2;}
17073
17074  rm -f "$tmp/stdin"
17075  case $ac_file in
17076  -) cat "$tmp/out" && rm -f "$tmp/out";;
17077  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17078  esac \
17079  || as_fn_error "could not create $ac_file" "$LINENO" 5
17080 ;;
17081  :H)
17082  #
17083  # CONFIG_HEADER
17084  #
17085  if test x"$ac_file" != x-; then
17086    {
17087      $as_echo "/* $configure_input  */" \
17088      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17089    } >"$tmp/config.h" \
17090      || as_fn_error "could not create $ac_file" "$LINENO" 5
17091    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17092      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17093$as_echo "$as_me: $ac_file is unchanged" >&6;}
17094    else
17095      rm -f "$ac_file"
17096      mv "$tmp/config.h" "$ac_file" \
17097	|| as_fn_error "could not create $ac_file" "$LINENO" 5
17098    fi
17099  else
17100    $as_echo "/* $configure_input  */" \
17101      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17102      || as_fn_error "could not create -" "$LINENO" 5
17103  fi
17104# Compute "$ac_file"'s index in $config_headers.
17105_am_arg="$ac_file"
17106_am_stamp_count=1
17107for _am_header in $config_headers :; do
17108  case $_am_header in
17109    $_am_arg | $_am_arg:* )
17110      break ;;
17111    * )
17112      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17113  esac
17114done
17115echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17116$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17117	 X"$_am_arg" : 'X\(//\)[^/]' \| \
17118	 X"$_am_arg" : 'X\(//\)$' \| \
17119	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17120$as_echo X"$_am_arg" |
17121    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17122	    s//\1/
17123	    q
17124	  }
17125	  /^X\(\/\/\)[^/].*/{
17126	    s//\1/
17127	    q
17128	  }
17129	  /^X\(\/\/\)$/{
17130	    s//\1/
17131	    q
17132	  }
17133	  /^X\(\/\).*/{
17134	    s//\1/
17135	    q
17136	  }
17137	  s/.*/./; q'`/stamp-h$_am_stamp_count
17138 ;;
17139
17140  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17141$as_echo "$as_me: executing $ac_file commands" >&6;}
17142 ;;
17143  esac
17144
17145
17146  case $ac_file$ac_mode in
17147    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17148  # Autoconf 2.62 quotes --file arguments for eval, but not when files
17149  # are listed without --file.  Let's play safe and only enable the eval
17150  # if we detect the quoting.
17151  case $CONFIG_FILES in
17152  *\'*) eval set x "$CONFIG_FILES" ;;
17153  *)   set x $CONFIG_FILES ;;
17154  esac
17155  shift
17156  for mf
17157  do
17158    # Strip MF so we end up with the name of the file.
17159    mf=`echo "$mf" | sed -e 's/:.*$//'`
17160    # Check whether this is an Automake generated Makefile or not.
17161    # We used to match only the files named `Makefile.in', but
17162    # some people rename them; so instead we look at the file content.
17163    # Grep'ing the first line is not enough: some people post-process
17164    # each Makefile.in and add a new line on top of each file to say so.
17165    # Grep'ing the whole file is not good either: AIX grep has a line
17166    # limit of 2048, but all sed's we know have understand at least 4000.
17167    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17168      dirpart=`$as_dirname -- "$mf" ||
17169$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17170	 X"$mf" : 'X\(//\)[^/]' \| \
17171	 X"$mf" : 'X\(//\)$' \| \
17172	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17173$as_echo X"$mf" |
17174    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17175	    s//\1/
17176	    q
17177	  }
17178	  /^X\(\/\/\)[^/].*/{
17179	    s//\1/
17180	    q
17181	  }
17182	  /^X\(\/\/\)$/{
17183	    s//\1/
17184	    q
17185	  }
17186	  /^X\(\/\).*/{
17187	    s//\1/
17188	    q
17189	  }
17190	  s/.*/./; q'`
17191    else
17192      continue
17193    fi
17194    # Extract the definition of DEPDIR, am__include, and am__quote
17195    # from the Makefile without running `make'.
17196    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17197    test -z "$DEPDIR" && continue
17198    am__include=`sed -n 's/^am__include = //p' < "$mf"`
17199    test -z "am__include" && continue
17200    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17201    # When using ansi2knr, U may be empty or an underscore; expand it
17202    U=`sed -n 's/^U = //p' < "$mf"`
17203    # Find all dependency output files, they are included files with
17204    # $(DEPDIR) in their names.  We invoke sed twice because it is the
17205    # simplest approach to changing $(DEPDIR) to its actual value in the
17206    # expansion.
17207    for file in `sed -n "
17208      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17209	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17210      # Make sure the directory exists.
17211      test -f "$dirpart/$file" && continue
17212      fdir=`$as_dirname -- "$file" ||
17213$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17214	 X"$file" : 'X\(//\)[^/]' \| \
17215	 X"$file" : 'X\(//\)$' \| \
17216	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17217$as_echo X"$file" |
17218    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17219	    s//\1/
17220	    q
17221	  }
17222	  /^X\(\/\/\)[^/].*/{
17223	    s//\1/
17224	    q
17225	  }
17226	  /^X\(\/\/\)$/{
17227	    s//\1/
17228	    q
17229	  }
17230	  /^X\(\/\).*/{
17231	    s//\1/
17232	    q
17233	  }
17234	  s/.*/./; q'`
17235      as_dir=$dirpart/$fdir; as_fn_mkdir_p
17236      # echo "creating $dirpart/$file"
17237      echo '# dummy' > "$dirpart/$file"
17238    done
17239  done
17240}
17241 ;;
17242    "libtool":C)
17243
17244    # See if we are running on zsh, and set the options which allow our
17245    # commands through without removal of \ escapes.
17246    if test -n "${ZSH_VERSION+set}" ; then
17247      setopt NO_GLOB_SUBST
17248    fi
17249
17250    cfgfile="${ofile}T"
17251    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17252    $RM "$cfgfile"
17253
17254    cat <<_LT_EOF >> "$cfgfile"
17255#! $SHELL
17256
17257# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17258# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17259# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17260# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17261#
17262#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17263#                 2006, 2007, 2008 Free Software Foundation, Inc.
17264#   Written by Gordon Matzigkeit, 1996
17265#
17266#   This file is part of GNU Libtool.
17267#
17268# GNU Libtool is free software; you can redistribute it and/or
17269# modify it under the terms of the GNU General Public License as
17270# published by the Free Software Foundation; either version 2 of
17271# the License, or (at your option) any later version.
17272#
17273# As a special exception to the GNU General Public License,
17274# if you distribute this file as part of a program or library that
17275# is built using GNU Libtool, you may include this file under the
17276# same distribution terms that you use for the rest of that program.
17277#
17278# GNU Libtool is distributed in the hope that it will be useful,
17279# but WITHOUT ANY WARRANTY; without even the implied warranty of
17280# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17281# GNU General Public License for more details.
17282#
17283# You should have received a copy of the GNU General Public License
17284# along with GNU Libtool; see the file COPYING.  If not, a copy
17285# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17286# obtained by writing to the Free Software Foundation, Inc.,
17287# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17288
17289
17290# The names of the tagged configurations supported by this script.
17291available_tags="CXX "
17292
17293# ### BEGIN LIBTOOL CONFIG
17294
17295# Which release of libtool.m4 was used?
17296macro_version=$macro_version
17297macro_revision=$macro_revision
17298
17299# Whether or not to build shared libraries.
17300build_libtool_libs=$enable_shared
17301
17302# Whether or not to build static libraries.
17303build_old_libs=$enable_static
17304
17305# What type of objects to build.
17306pic_mode=$pic_mode
17307
17308# Whether or not to optimize for fast installation.
17309fast_install=$enable_fast_install
17310
17311# The host system.
17312host_alias=$host_alias
17313host=$host
17314host_os=$host_os
17315
17316# The build system.
17317build_alias=$build_alias
17318build=$build
17319build_os=$build_os
17320
17321# A sed program that does not truncate output.
17322SED=$lt_SED
17323
17324# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17325Xsed="\$SED -e 1s/^X//"
17326
17327# A grep program that handles long lines.
17328GREP=$lt_GREP
17329
17330# An ERE matcher.
17331EGREP=$lt_EGREP
17332
17333# A literal string matcher.
17334FGREP=$lt_FGREP
17335
17336# A BSD- or MS-compatible name lister.
17337NM=$lt_NM
17338
17339# Whether we need soft or hard links.
17340LN_S=$lt_LN_S
17341
17342# What is the maximum length of a command?
17343max_cmd_len=$max_cmd_len
17344
17345# Object file suffix (normally "o").
17346objext=$ac_objext
17347
17348# Executable file suffix (normally "").
17349exeext=$exeext
17350
17351# whether the shell understands "unset".
17352lt_unset=$lt_unset
17353
17354# turn spaces into newlines.
17355SP2NL=$lt_lt_SP2NL
17356
17357# turn newlines into spaces.
17358NL2SP=$lt_lt_NL2SP
17359
17360# How to create reloadable object files.
17361reload_flag=$lt_reload_flag
17362reload_cmds=$lt_reload_cmds
17363
17364# An object symbol dumper.
17365OBJDUMP=$lt_OBJDUMP
17366
17367# Method to check whether dependent libraries are shared objects.
17368deplibs_check_method=$lt_deplibs_check_method
17369
17370# Command to use when deplibs_check_method == "file_magic".
17371file_magic_cmd=$lt_file_magic_cmd
17372
17373# The archiver.
17374AR=$lt_AR
17375AR_FLAGS=$lt_AR_FLAGS
17376
17377# A symbol stripping program.
17378STRIP=$lt_STRIP
17379
17380# Commands used to install an old-style archive.
17381RANLIB=$lt_RANLIB
17382old_postinstall_cmds=$lt_old_postinstall_cmds
17383old_postuninstall_cmds=$lt_old_postuninstall_cmds
17384
17385# A C compiler.
17386LTCC=$lt_CC
17387
17388# LTCC compiler flags.
17389LTCFLAGS=$lt_CFLAGS
17390
17391# Take the output of nm and produce a listing of raw symbols and C names.
17392global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17393
17394# Transform the output of nm in a proper C declaration.
17395global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17396
17397# Transform the output of nm in a C name address pair.
17398global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17399
17400# Transform the output of nm in a C name address pair when lib prefix is needed.
17401global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17402
17403# The name of the directory that contains temporary libtool files.
17404objdir=$objdir
17405
17406# Shell to use when invoking shell scripts.
17407SHELL=$lt_SHELL
17408
17409# An echo program that does not interpret backslashes.
17410ECHO=$lt_ECHO
17411
17412# Used to examine libraries when file_magic_cmd begins with "file".
17413MAGIC_CMD=$MAGIC_CMD
17414
17415# Must we lock files when doing compilation?
17416need_locks=$lt_need_locks
17417
17418# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17419DSYMUTIL=$lt_DSYMUTIL
17420
17421# Tool to change global to local symbols on Mac OS X.
17422NMEDIT=$lt_NMEDIT
17423
17424# Tool to manipulate fat objects and archives on Mac OS X.
17425LIPO=$lt_LIPO
17426
17427# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17428OTOOL=$lt_OTOOL
17429
17430# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17431OTOOL64=$lt_OTOOL64
17432
17433# Old archive suffix (normally "a").
17434libext=$libext
17435
17436# Shared library suffix (normally ".so").
17437shrext_cmds=$lt_shrext_cmds
17438
17439# The commands to extract the exported symbol list from a shared archive.
17440extract_expsyms_cmds=$lt_extract_expsyms_cmds
17441
17442# Variables whose values should be saved in libtool wrapper scripts and
17443# restored at link time.
17444variables_saved_for_relink=$lt_variables_saved_for_relink
17445
17446# Do we need the "lib" prefix for modules?
17447need_lib_prefix=$need_lib_prefix
17448
17449# Do we need a version for libraries?
17450need_version=$need_version
17451
17452# Library versioning type.
17453version_type=$version_type
17454
17455# Shared library runtime path variable.
17456runpath_var=$runpath_var
17457
17458# Shared library path variable.
17459shlibpath_var=$shlibpath_var
17460
17461# Is shlibpath searched before the hard-coded library search path?
17462shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17463
17464# Format of library name prefix.
17465libname_spec=$lt_libname_spec
17466
17467# List of archive names.  First name is the real one, the rest are links.
17468# The last name is the one that the linker finds with -lNAME
17469library_names_spec=$lt_library_names_spec
17470
17471# The coded name of the library, if different from the real name.
17472soname_spec=$lt_soname_spec
17473
17474# Command to use after installation of a shared archive.
17475postinstall_cmds=$lt_postinstall_cmds
17476
17477# Command to use after uninstallation of a shared archive.
17478postuninstall_cmds=$lt_postuninstall_cmds
17479
17480# Commands used to finish a libtool library installation in a directory.
17481finish_cmds=$lt_finish_cmds
17482
17483# As "finish_cmds", except a single script fragment to be evaled but
17484# not shown.
17485finish_eval=$lt_finish_eval
17486
17487# Whether we should hardcode library paths into libraries.
17488hardcode_into_libs=$hardcode_into_libs
17489
17490# Compile-time system search path for libraries.
17491sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17492
17493# Run-time system search path for libraries.
17494sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17495
17496# Whether dlopen is supported.
17497dlopen_support=$enable_dlopen
17498
17499# Whether dlopen of programs is supported.
17500dlopen_self=$enable_dlopen_self
17501
17502# Whether dlopen of statically linked programs is supported.
17503dlopen_self_static=$enable_dlopen_self_static
17504
17505# Commands to strip libraries.
17506old_striplib=$lt_old_striplib
17507striplib=$lt_striplib
17508
17509
17510# The linker used to build libraries.
17511LD=$lt_LD
17512
17513# Commands used to build an old-style archive.
17514old_archive_cmds=$lt_old_archive_cmds
17515
17516# A language specific compiler.
17517CC=$lt_compiler
17518
17519# Is the compiler the GNU compiler?
17520with_gcc=$GCC
17521
17522# Compiler flag to turn off builtin functions.
17523no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17524
17525# How to pass a linker flag through the compiler.
17526wl=$lt_lt_prog_compiler_wl
17527
17528# Additional compiler flags for building library objects.
17529pic_flag=$lt_lt_prog_compiler_pic
17530
17531# Compiler flag to prevent dynamic linking.
17532link_static_flag=$lt_lt_prog_compiler_static
17533
17534# Does compiler simultaneously support -c and -o options?
17535compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17536
17537# Whether or not to add -lc for building shared libraries.
17538build_libtool_need_lc=$archive_cmds_need_lc
17539
17540# Whether or not to disallow shared libs when runtime libs are static.
17541allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17542
17543# Compiler flag to allow reflexive dlopens.
17544export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17545
17546# Compiler flag to generate shared objects directly from archives.
17547whole_archive_flag_spec=$lt_whole_archive_flag_spec
17548
17549# Whether the compiler copes with passing no objects directly.
17550compiler_needs_object=$lt_compiler_needs_object
17551
17552# Create an old-style archive from a shared archive.
17553old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17554
17555# Create a temporary old-style archive to link instead of a shared archive.
17556old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17557
17558# Commands used to build a shared archive.
17559archive_cmds=$lt_archive_cmds
17560archive_expsym_cmds=$lt_archive_expsym_cmds
17561
17562# Commands used to build a loadable module if different from building
17563# a shared archive.
17564module_cmds=$lt_module_cmds
17565module_expsym_cmds=$lt_module_expsym_cmds
17566
17567# Whether we are building with GNU ld or not.
17568with_gnu_ld=$lt_with_gnu_ld
17569
17570# Flag that allows shared libraries with undefined symbols to be built.
17571allow_undefined_flag=$lt_allow_undefined_flag
17572
17573# Flag that enforces no undefined symbols.
17574no_undefined_flag=$lt_no_undefined_flag
17575
17576# Flag to hardcode \$libdir into a binary during linking.
17577# This must work even if \$libdir does not exist
17578hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17579
17580# If ld is used when linking, flag to hardcode \$libdir into a binary
17581# during linking.  This must work even if \$libdir does not exist.
17582hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17583
17584# Whether we need a single "-rpath" flag with a separated argument.
17585hardcode_libdir_separator=$lt_hardcode_libdir_separator
17586
17587# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17588# DIR into the resulting binary.
17589hardcode_direct=$hardcode_direct
17590
17591# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17592# DIR into the resulting binary and the resulting library dependency is
17593# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17594# library is relocated.
17595hardcode_direct_absolute=$hardcode_direct_absolute
17596
17597# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17598# into the resulting binary.
17599hardcode_minus_L=$hardcode_minus_L
17600
17601# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17602# into the resulting binary.
17603hardcode_shlibpath_var=$hardcode_shlibpath_var
17604
17605# Set to "yes" if building a shared library automatically hardcodes DIR
17606# into the library and all subsequent libraries and executables linked
17607# against it.
17608hardcode_automatic=$hardcode_automatic
17609
17610# Set to yes if linker adds runtime paths of dependent libraries
17611# to runtime path list.
17612inherit_rpath=$inherit_rpath
17613
17614# Whether libtool must link a program against all its dependency libraries.
17615link_all_deplibs=$link_all_deplibs
17616
17617# Fix the shell variable \$srcfile for the compiler.
17618fix_srcfile_path=$lt_fix_srcfile_path
17619
17620# Set to "yes" if exported symbols are required.
17621always_export_symbols=$always_export_symbols
17622
17623# The commands to list exported symbols.
17624export_symbols_cmds=$lt_export_symbols_cmds
17625
17626# Symbols that should not be listed in the preloaded symbols.
17627exclude_expsyms=$lt_exclude_expsyms
17628
17629# Symbols that must always be exported.
17630include_expsyms=$lt_include_expsyms
17631
17632# Commands necessary for linking programs (against libraries) with templates.
17633prelink_cmds=$lt_prelink_cmds
17634
17635# Specify filename containing input files.
17636file_list_spec=$lt_file_list_spec
17637
17638# How to hardcode a shared library path into an executable.
17639hardcode_action=$hardcode_action
17640
17641# The directories searched by this compiler when creating a shared library.
17642compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17643
17644# Dependencies to place before and after the objects being linked to
17645# create a shared library.
17646predep_objects=$lt_predep_objects
17647postdep_objects=$lt_postdep_objects
17648predeps=$lt_predeps
17649postdeps=$lt_postdeps
17650
17651# The library search path used internally by the compiler when linking
17652# a shared library.
17653compiler_lib_search_path=$lt_compiler_lib_search_path
17654
17655# ### END LIBTOOL CONFIG
17656
17657_LT_EOF
17658
17659  case $host_os in
17660  aix3*)
17661    cat <<\_LT_EOF >> "$cfgfile"
17662# AIX sometimes has problems with the GCC collect2 program.  For some
17663# reason, if we set the COLLECT_NAMES environment variable, the problems
17664# vanish in a puff of smoke.
17665if test "X${COLLECT_NAMES+set}" != Xset; then
17666  COLLECT_NAMES=
17667  export COLLECT_NAMES
17668fi
17669_LT_EOF
17670    ;;
17671  esac
17672
17673
17674ltmain="$ac_aux_dir/ltmain.sh"
17675
17676
17677  # We use sed instead of cat because bash on DJGPP gets confused if
17678  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17679  # text mode, it properly converts lines to CR/LF.  This bash problem
17680  # is reportedly fixed, but why not run on old versions too?
17681  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17682    || (rm -f "$cfgfile"; exit 1)
17683
17684  case $xsi_shell in
17685  yes)
17686    cat << \_LT_EOF >> "$cfgfile"
17687
17688# func_dirname file append nondir_replacement
17689# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17690# otherwise set result to NONDIR_REPLACEMENT.
17691func_dirname ()
17692{
17693  case ${1} in
17694    */*) func_dirname_result="${1%/*}${2}" ;;
17695    *  ) func_dirname_result="${3}" ;;
17696  esac
17697}
17698
17699# func_basename file
17700func_basename ()
17701{
17702  func_basename_result="${1##*/}"
17703}
17704
17705# func_dirname_and_basename file append nondir_replacement
17706# perform func_basename and func_dirname in a single function
17707# call:
17708#   dirname:  Compute the dirname of FILE.  If nonempty,
17709#             add APPEND to the result, otherwise set result
17710#             to NONDIR_REPLACEMENT.
17711#             value returned in "$func_dirname_result"
17712#   basename: Compute filename of FILE.
17713#             value retuned in "$func_basename_result"
17714# Implementation must be kept synchronized with func_dirname
17715# and func_basename. For efficiency, we do not delegate to
17716# those functions but instead duplicate the functionality here.
17717func_dirname_and_basename ()
17718{
17719  case ${1} in
17720    */*) func_dirname_result="${1%/*}${2}" ;;
17721    *  ) func_dirname_result="${3}" ;;
17722  esac
17723  func_basename_result="${1##*/}"
17724}
17725
17726# func_stripname prefix suffix name
17727# strip PREFIX and SUFFIX off of NAME.
17728# PREFIX and SUFFIX must not contain globbing or regex special
17729# characters, hashes, percent signs, but SUFFIX may contain a leading
17730# dot (in which case that matches only a dot).
17731func_stripname ()
17732{
17733  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17734  # positional parameters, so assign one to ordinary parameter first.
17735  func_stripname_result=${3}
17736  func_stripname_result=${func_stripname_result#"${1}"}
17737  func_stripname_result=${func_stripname_result%"${2}"}
17738}
17739
17740# func_opt_split
17741func_opt_split ()
17742{
17743  func_opt_split_opt=${1%%=*}
17744  func_opt_split_arg=${1#*=}
17745}
17746
17747# func_lo2o object
17748func_lo2o ()
17749{
17750  case ${1} in
17751    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17752    *)    func_lo2o_result=${1} ;;
17753  esac
17754}
17755
17756# func_xform libobj-or-source
17757func_xform ()
17758{
17759  func_xform_result=${1%.*}.lo
17760}
17761
17762# func_arith arithmetic-term...
17763func_arith ()
17764{
17765  func_arith_result=$(( $* ))
17766}
17767
17768# func_len string
17769# STRING may not start with a hyphen.
17770func_len ()
17771{
17772  func_len_result=${#1}
17773}
17774
17775_LT_EOF
17776    ;;
17777  *) # Bourne compatible functions.
17778    cat << \_LT_EOF >> "$cfgfile"
17779
17780# func_dirname file append nondir_replacement
17781# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17782# otherwise set result to NONDIR_REPLACEMENT.
17783func_dirname ()
17784{
17785  # Extract subdirectory from the argument.
17786  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17787  if test "X$func_dirname_result" = "X${1}"; then
17788    func_dirname_result="${3}"
17789  else
17790    func_dirname_result="$func_dirname_result${2}"
17791  fi
17792}
17793
17794# func_basename file
17795func_basename ()
17796{
17797  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17798}
17799
17800
17801# func_stripname prefix suffix name
17802# strip PREFIX and SUFFIX off of NAME.
17803# PREFIX and SUFFIX must not contain globbing or regex special
17804# characters, hashes, percent signs, but SUFFIX may contain a leading
17805# dot (in which case that matches only a dot).
17806# func_strip_suffix prefix name
17807func_stripname ()
17808{
17809  case ${2} in
17810    .*) func_stripname_result=`$ECHO "X${3}" \
17811           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17812    *)  func_stripname_result=`$ECHO "X${3}" \
17813           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17814  esac
17815}
17816
17817# sed scripts:
17818my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17819my_sed_long_arg='1s/^-[^=]*=//'
17820
17821# func_opt_split
17822func_opt_split ()
17823{
17824  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17825  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17826}
17827
17828# func_lo2o object
17829func_lo2o ()
17830{
17831  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17832}
17833
17834# func_xform libobj-or-source
17835func_xform ()
17836{
17837  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17838}
17839
17840# func_arith arithmetic-term...
17841func_arith ()
17842{
17843  func_arith_result=`expr "$@"`
17844}
17845
17846# func_len string
17847# STRING may not start with a hyphen.
17848func_len ()
17849{
17850  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17851}
17852
17853_LT_EOF
17854esac
17855
17856case $lt_shell_append in
17857  yes)
17858    cat << \_LT_EOF >> "$cfgfile"
17859
17860# func_append var value
17861# Append VALUE to the end of shell variable VAR.
17862func_append ()
17863{
17864  eval "$1+=\$2"
17865}
17866_LT_EOF
17867    ;;
17868  *)
17869    cat << \_LT_EOF >> "$cfgfile"
17870
17871# func_append var value
17872# Append VALUE to the end of shell variable VAR.
17873func_append ()
17874{
17875  eval "$1=\$$1\$2"
17876}
17877
17878_LT_EOF
17879    ;;
17880  esac
17881
17882
17883  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17884    || (rm -f "$cfgfile"; exit 1)
17885
17886  mv -f "$cfgfile" "$ofile" ||
17887    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17888  chmod +x "$ofile"
17889
17890
17891    cat <<_LT_EOF >> "$ofile"
17892
17893# ### BEGIN LIBTOOL TAG CONFIG: CXX
17894
17895# The linker used to build libraries.
17896LD=$lt_LD_CXX
17897
17898# Commands used to build an old-style archive.
17899old_archive_cmds=$lt_old_archive_cmds_CXX
17900
17901# A language specific compiler.
17902CC=$lt_compiler_CXX
17903
17904# Is the compiler the GNU compiler?
17905with_gcc=$GCC_CXX
17906
17907# Compiler flag to turn off builtin functions.
17908no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17909
17910# How to pass a linker flag through the compiler.
17911wl=$lt_lt_prog_compiler_wl_CXX
17912
17913# Additional compiler flags for building library objects.
17914pic_flag=$lt_lt_prog_compiler_pic_CXX
17915
17916# Compiler flag to prevent dynamic linking.
17917link_static_flag=$lt_lt_prog_compiler_static_CXX
17918
17919# Does compiler simultaneously support -c and -o options?
17920compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17921
17922# Whether or not to add -lc for building shared libraries.
17923build_libtool_need_lc=$archive_cmds_need_lc_CXX
17924
17925# Whether or not to disallow shared libs when runtime libs are static.
17926allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17927
17928# Compiler flag to allow reflexive dlopens.
17929export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17930
17931# Compiler flag to generate shared objects directly from archives.
17932whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17933
17934# Whether the compiler copes with passing no objects directly.
17935compiler_needs_object=$lt_compiler_needs_object_CXX
17936
17937# Create an old-style archive from a shared archive.
17938old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17939
17940# Create a temporary old-style archive to link instead of a shared archive.
17941old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17942
17943# Commands used to build a shared archive.
17944archive_cmds=$lt_archive_cmds_CXX
17945archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17946
17947# Commands used to build a loadable module if different from building
17948# a shared archive.
17949module_cmds=$lt_module_cmds_CXX
17950module_expsym_cmds=$lt_module_expsym_cmds_CXX
17951
17952# Whether we are building with GNU ld or not.
17953with_gnu_ld=$lt_with_gnu_ld_CXX
17954
17955# Flag that allows shared libraries with undefined symbols to be built.
17956allow_undefined_flag=$lt_allow_undefined_flag_CXX
17957
17958# Flag that enforces no undefined symbols.
17959no_undefined_flag=$lt_no_undefined_flag_CXX
17960
17961# Flag to hardcode \$libdir into a binary during linking.
17962# This must work even if \$libdir does not exist
17963hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17964
17965# If ld is used when linking, flag to hardcode \$libdir into a binary
17966# during linking.  This must work even if \$libdir does not exist.
17967hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17968
17969# Whether we need a single "-rpath" flag with a separated argument.
17970hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17971
17972# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17973# DIR into the resulting binary.
17974hardcode_direct=$hardcode_direct_CXX
17975
17976# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17977# DIR into the resulting binary and the resulting library dependency is
17978# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17979# library is relocated.
17980hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17981
17982# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17983# into the resulting binary.
17984hardcode_minus_L=$hardcode_minus_L_CXX
17985
17986# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17987# into the resulting binary.
17988hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17989
17990# Set to "yes" if building a shared library automatically hardcodes DIR
17991# into the library and all subsequent libraries and executables linked
17992# against it.
17993hardcode_automatic=$hardcode_automatic_CXX
17994
17995# Set to yes if linker adds runtime paths of dependent libraries
17996# to runtime path list.
17997inherit_rpath=$inherit_rpath_CXX
17998
17999# Whether libtool must link a program against all its dependency libraries.
18000link_all_deplibs=$link_all_deplibs_CXX
18001
18002# Fix the shell variable \$srcfile for the compiler.
18003fix_srcfile_path=$lt_fix_srcfile_path_CXX
18004
18005# Set to "yes" if exported symbols are required.
18006always_export_symbols=$always_export_symbols_CXX
18007
18008# The commands to list exported symbols.
18009export_symbols_cmds=$lt_export_symbols_cmds_CXX
18010
18011# Symbols that should not be listed in the preloaded symbols.
18012exclude_expsyms=$lt_exclude_expsyms_CXX
18013
18014# Symbols that must always be exported.
18015include_expsyms=$lt_include_expsyms_CXX
18016
18017# Commands necessary for linking programs (against libraries) with templates.
18018prelink_cmds=$lt_prelink_cmds_CXX
18019
18020# Specify filename containing input files.
18021file_list_spec=$lt_file_list_spec_CXX
18022
18023# How to hardcode a shared library path into an executable.
18024hardcode_action=$hardcode_action_CXX
18025
18026# The directories searched by this compiler when creating a shared library.
18027compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18028
18029# Dependencies to place before and after the objects being linked to
18030# create a shared library.
18031predep_objects=$lt_predep_objects_CXX
18032postdep_objects=$lt_postdep_objects_CXX
18033predeps=$lt_predeps_CXX
18034postdeps=$lt_postdeps_CXX
18035
18036# The library search path used internally by the compiler when linking
18037# a shared library.
18038compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18039
18040# ### END LIBTOOL TAG CONFIG: CXX
18041_LT_EOF
18042
18043 ;;
18044
18045  esac
18046done # for ac_tag
18047
18048
18049as_fn_exit 0
18050_ACEOF
18051ac_clean_files=$ac_clean_files_save
18052
18053test $ac_write_fail = 0 ||
18054  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18055
18056
18057# configure is writing to config.log, and then calls config.status.
18058# config.status does its own redirection, appending to config.log.
18059# Unfortunately, on DOS this fails, as config.log is still kept open
18060# by configure, so config.status won't be able to write to it; its
18061# output is simply discarded.  So we exec the FD to /dev/null,
18062# effectively closing config.log, so it can be properly (re)opened and
18063# appended to by config.status.  When coming back to configure, we
18064# need to make the FD available again.
18065if test "$no_create" != yes; then
18066  ac_cs_success=:
18067  ac_config_status_args=
18068  test "$silent" = yes &&
18069    ac_config_status_args="$ac_config_status_args --quiet"
18070  exec 5>/dev/null
18071  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18072  exec 5>>config.log
18073  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18074  # would make configure fail if this is the last instruction.
18075  $ac_cs_success || as_fn_exit $?
18076fi
18077if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18078  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18079$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18080fi
18081
18082