1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.67.
4#
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92case $0 in #((
93  *[\\/]* ) as_myself=$0 ;;
94  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97  IFS=$as_save_IFS
98  test -z "$as_dir" && as_dir=.
99    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100  done
101IFS=$as_save_IFS
102
103     ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108  as_myself=$0
109fi
110if test ! -f "$as_myself"; then
111  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112  exit 1
113fi
114
115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there.  '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
132
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138  emulate sh
139  NULLCMD=:
140  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141  # is contrary to our usage.  Disable this feature.
142  alias -g '\${1+\"\$@\"}'='\"\$@\"'
143  setopt NO_GLOB_SUBST
144else
145  case \`(set -o) 2>/dev/null\` in #(
146  *posix*) :
147    set -o posix ;; #(
148  *) :
149     ;;
150esac
151fi
152"
153  as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167  exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175  if (eval "$as_required") 2>/dev/null; then :
176  as_have_required=yes
177else
178  as_have_required=no
179fi
180  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do
187  IFS=$as_save_IFS
188  test -z "$as_dir" && as_dir=.
189  as_found=:
190  case $as_dir in #(
191	 /*)
192	   for as_base in sh bash ksh sh5; do
193	     # Try only shells that exist, to save several forks.
194	     as_shell=$as_dir/$as_base
195	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197  CONFIG_SHELL=$as_shell as_have_required=yes
198		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199  break 2
200fi
201fi
202	   done;;
203       esac
204  as_found=false
205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208  CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS
211
212
213      if test "x$CONFIG_SHELL" != x; then :
214  # We cannot yet assume a decent shell, so we have to provide a
215	# neutralization value for shells without unset; and this also
216	# works around shells that cannot unset nonexistent variables.
217	BASH_ENV=/dev/null
218	ENV=/dev/null
219	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220	export CONFIG_SHELL
221	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
224    if test x$as_have_required = xno; then :
225  $as_echo "$0: This script requires a shell more modern than all"
226  $as_echo "$0: the shells that I found on your system."
227  if test x${ZSH_VERSION+set} = xset ; then
228    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230  else
231    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232$0: including any error possibly output before this
233$0: message. Then install a modern shell, or manually run
234$0: the script under such a shell if you do have one."
235  fi
236  exit 1
237fi
238fi
239fi
240SHELL=${CONFIG_SHELL-/bin/sh}
241export SHELL
242# Unset more variables known to interfere with behavior of common tools.
243CLICOLOR_FORCE= GREP_OPTIONS=
244unset CLICOLOR_FORCE GREP_OPTIONS
245
246## --------------------- ##
247## M4sh Shell Functions. ##
248## --------------------- ##
249# as_fn_unset VAR
250# ---------------
251# Portably unset VAR.
252as_fn_unset ()
253{
254  { eval $1=; unset $1;}
255}
256as_unset=as_fn_unset
257
258# as_fn_set_status STATUS
259# -----------------------
260# Set $? to STATUS, without forking.
261as_fn_set_status ()
262{
263  return $1
264} # as_fn_set_status
265
266# as_fn_exit STATUS
267# -----------------
268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269as_fn_exit ()
270{
271  set +e
272  as_fn_set_status $1
273  exit $1
274} # as_fn_exit
275
276# as_fn_mkdir_p
277# -------------
278# Create "$as_dir" as a directory, including parents if necessary.
279as_fn_mkdir_p ()
280{
281
282  case $as_dir in #(
283  -*) as_dir=./$as_dir;;
284  esac
285  test -d "$as_dir" || eval $as_mkdir_p || {
286    as_dirs=
287    while :; do
288      case $as_dir in #(
289      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290      *) as_qdir=$as_dir;;
291      esac
292      as_dirs="'$as_qdir' $as_dirs"
293      as_dir=`$as_dirname -- "$as_dir" ||
294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295	 X"$as_dir" : 'X\(//\)[^/]' \| \
296	 X"$as_dir" : 'X\(//\)$' \| \
297	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298$as_echo X"$as_dir" |
299    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300	    s//\1/
301	    q
302	  }
303	  /^X\(\/\/\)[^/].*/{
304	    s//\1/
305	    q
306	  }
307	  /^X\(\/\/\)$/{
308	    s//\1/
309	    q
310	  }
311	  /^X\(\/\).*/{
312	    s//\1/
313	    q
314	  }
315	  s/.*/./; q'`
316      test -d "$as_dir" && break
317    done
318    test -z "$as_dirs" || eval "mkdir $as_dirs"
319  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
320
321
322} # as_fn_mkdir_p
323# as_fn_append VAR VALUE
324# ----------------------
325# Append the text in VALUE to the end of the definition contained in VAR. Take
326# advantage of any shell optimizations that allow amortized linear growth over
327# repeated appends, instead of the typical quadratic growth present in naive
328# implementations.
329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330  eval 'as_fn_append ()
331  {
332    eval $1+=\$2
333  }'
334else
335  as_fn_append ()
336  {
337    eval $1=\$$1\$2
338  }
339fi # as_fn_append
340
341# as_fn_arith ARG...
342# ------------------
343# Perform arithmetic evaluation on the ARGs, and store the result in the
344# global $as_val. Take advantage of shells that can avoid forks. The arguments
345# must be portable across $(()) and expr.
346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347  eval 'as_fn_arith ()
348  {
349    as_val=$(( $* ))
350  }'
351else
352  as_fn_arith ()
353  {
354    as_val=`expr "$@" || test $? -eq 1`
355  }
356fi # as_fn_arith
357
358
359# as_fn_error STATUS ERROR [LINENO LOG_FD]
360# ----------------------------------------
361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363# script with STATUS, using 1 if that was 0.
364as_fn_error ()
365{
366  as_status=$1; test $as_status -eq 0 && as_status=1
367  if test "$4"; then
368    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370  fi
371  $as_echo "$as_me: error: $2" >&2
372  as_fn_exit $as_status
373} # as_fn_error
374
375if expr a : '\(a\)' >/dev/null 2>&1 &&
376   test "X`expr 00001 : '.*\(...\)'`" = X001; then
377  as_expr=expr
378else
379  as_expr=false
380fi
381
382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383  as_basename=basename
384else
385  as_basename=false
386fi
387
388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389  as_dirname=dirname
390else
391  as_dirname=false
392fi
393
394as_me=`$as_basename -- "$0" ||
395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396	 X"$0" : 'X\(//\)$' \| \
397	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398$as_echo X/"$0" |
399    sed '/^.*\/\([^/][^/]*\)\/*$/{
400	    s//\1/
401	    q
402	  }
403	  /^X\/\(\/\/\)$/{
404	    s//\1/
405	    q
406	  }
407	  /^X\/\(\/\).*/{
408	    s//\1/
409	    q
410	  }
411	  s/.*/./; q'`
412
413# Avoid depending upon Character Ranges.
414as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417as_cr_digits='0123456789'
418as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421  as_lineno_1=$LINENO as_lineno_1a=$LINENO
422  as_lineno_2=$LINENO as_lineno_2a=$LINENO
423  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
426  sed -n '
427    p
428    /[$]LINENO/=
429  ' <$as_myself |
430    sed '
431      s/[$]LINENO.*/&-/
432      t lineno
433      b
434      :lineno
435      N
436      :loop
437      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438      t loop
439      s/-\n.*//
440    ' >$as_me.lineno &&
441  chmod +x "$as_me.lineno" ||
442    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444  # Don't try to exec as it changes $[0], causing all sort of problems
445  # (the dirname of $[0] is not the place where we might find the
446  # original and so on.  Autoconf is especially sensitive to this).
447  . "./$as_me.lineno"
448  # Exit status is that of the last command.
449  exit
450}
451
452ECHO_C= ECHO_N= ECHO_T=
453case `echo -n x` in #(((((
454-n*)
455  case `echo 'xy\c'` in
456  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
457  xy)  ECHO_C='\c';;
458  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
459       ECHO_T='	';;
460  esac;;
461*)
462  ECHO_N='-n';;
463esac
464
465rm -f conf$$ conf$$.exe conf$$.file
466if test -d conf$$.dir; then
467  rm -f conf$$.dir/conf$$.file
468else
469  rm -f conf$$.dir
470  mkdir conf$$.dir 2>/dev/null
471fi
472if (echo >conf$$.file) 2>/dev/null; then
473  if ln -s conf$$.file conf$$ 2>/dev/null; then
474    as_ln_s='ln -s'
475    # ... but there are two gotchas:
476    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478    # In both cases, we have to default to `cp -p'.
479    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480      as_ln_s='cp -p'
481  elif ln conf$$.file conf$$ 2>/dev/null; then
482    as_ln_s=ln
483  else
484    as_ln_s='cp -p'
485  fi
486else
487  as_ln_s='cp -p'
488fi
489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490rmdir conf$$.dir 2>/dev/null
491
492if mkdir -p . 2>/dev/null; then
493  as_mkdir_p='mkdir -p "$as_dir"'
494else
495  test -d ./-p && rmdir ./-p
496  as_mkdir_p=false
497fi
498
499if test -x / >/dev/null 2>&1; then
500  as_test_x='test -x'
501else
502  if ls -dL / >/dev/null 2>&1; then
503    as_ls_L_option=L
504  else
505    as_ls_L_option=
506  fi
507  as_test_x='
508    eval sh -c '\''
509      if test -d "$1"; then
510	test -d "$1/.";
511      else
512	case $1 in #(
513	-*)set "./$1";;
514	esac;
515	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516	???[sx]*):;;*)false;;esac;fi
517    '\'' sh
518  '
519fi
520as_executable_p=$as_test_x
521
522# Sed expression to map a string onto a valid CPP name.
523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525# Sed expression to map a string onto a valid variable name.
526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529
530# Check that we are running under the correct shell.
531SHELL=${CONFIG_SHELL-/bin/sh}
532
533case X$lt_ECHO in
534X*--fallback-echo)
535  # Remove one level of quotation (which was required for Make).
536  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
537  ;;
538esac
539
540ECHO=${lt_ECHO-echo}
541if test "X$1" = X--no-reexec; then
542  # Discard the --no-reexec flag, and continue.
543  shift
544elif test "X$1" = X--fallback-echo; then
545  # Avoid inline document here, it may be left over
546  :
547elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548  # Yippee, $ECHO works!
549  :
550else
551  # Restart under the correct shell.
552  exec $SHELL "$0" --no-reexec ${1+"$@"}
553fi
554
555if test "X$1" = X--fallback-echo; then
556  # used as fallback echo
557  shift
558  cat <<_LT_EOF
559$*
560_LT_EOF
561  exit 0
562fi
563
564# The HP-UX ksh and POSIX shell print the target directory to stdout
565# if CDPATH is set.
566(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
567
568if test -z "$lt_ECHO"; then
569  if test "X${echo_test_string+set}" != Xset; then
570    # find a string as large as possible, as long as the shell can cope with it
571    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
575      then
576        break
577      fi
578    done
579  fi
580
581  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583     test "X$echo_testing_string" = "X$echo_test_string"; then
584    :
585  else
586    # The Solaris, AIX, and Digital Unix default echo programs unquote
587    # backslashes.  This makes it impossible to quote backslashes using
588    #   echo "$something" | sed 's/\\/\\\\/g'
589    #
590    # So, first we look for a working echo in the user's PATH.
591
592    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593    for dir in $PATH /usr/ucb; do
594      IFS="$lt_save_ifs"
595      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598         test "X$echo_testing_string" = "X$echo_test_string"; then
599        ECHO="$dir/echo"
600        break
601      fi
602    done
603    IFS="$lt_save_ifs"
604
605    if test "X$ECHO" = Xecho; then
606      # We didn't find a better echo, so look for alternatives.
607      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609         test "X$echo_testing_string" = "X$echo_test_string"; then
610        # This shell has a builtin print -r that does the trick.
611        ECHO='print -r'
612      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613	   test "X$CONFIG_SHELL" != X/bin/ksh; then
614        # If we have ksh, try running configure again with it.
615        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616        export ORIGINAL_CONFIG_SHELL
617        CONFIG_SHELL=/bin/ksh
618        export CONFIG_SHELL
619        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
620      else
621        # Try using printf.
622        ECHO='printf %s\n'
623        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625	   test "X$echo_testing_string" = "X$echo_test_string"; then
626	  # Cool, printf works
627	  :
628        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629	     test "X$echo_testing_string" = 'X\t' &&
630	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631	     test "X$echo_testing_string" = "X$echo_test_string"; then
632	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
633	  export CONFIG_SHELL
634	  SHELL="$CONFIG_SHELL"
635	  export SHELL
636	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
637        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638	     test "X$echo_testing_string" = 'X\t' &&
639	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640	     test "X$echo_testing_string" = "X$echo_test_string"; then
641	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
642        else
643	  # maybe with a smaller string...
644	  prev=:
645
646	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
648	    then
649	      break
650	    fi
651	    prev="$cmd"
652	  done
653
654	  if test "$prev" != 'sed 50q "$0"'; then
655	    echo_test_string=`eval $prev`
656	    export echo_test_string
657	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
658	  else
659	    # Oops.  We lost completely, so just stick with echo.
660	    ECHO=echo
661	  fi
662        fi
663      fi
664    fi
665  fi
666fi
667
668# Copy echo and quote the copy suitably for passing to libtool from
669# the Makefile, instead of quoting the original, which is used later.
670lt_ECHO=$ECHO
671if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
673fi
674
675
676
677
678test -n "$DJDIR" || exec 7<&0 </dev/null
679exec 6>&1
680
681# Name of the host.
682# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
683# so uname gets run too.
684ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
685
686#
687# Initializations.
688#
689ac_default_prefix=/usr/local
690ac_clean_files=
691ac_config_libobj_dir=.
692LIBOBJS=
693cross_compiling=no
694subdirs=
695MFLAGS=
696MAKEFLAGS=
697
698# Identity of this package.
699PACKAGE_NAME=
700PACKAGE_TARNAME=
701PACKAGE_VERSION=
702PACKAGE_STRING=
703PACKAGE_BUGREPORT=
704PACKAGE_URL=
705
706ac_unique_file="configure.in"
707# Factoring default headers for most tests.
708ac_includes_default="\
709#include <stdio.h>
710#ifdef HAVE_SYS_TYPES_H
711# include <sys/types.h>
712#endif
713#ifdef HAVE_SYS_STAT_H
714# include <sys/stat.h>
715#endif
716#ifdef STDC_HEADERS
717# include <stdlib.h>
718# include <stddef.h>
719#else
720# ifdef HAVE_STDLIB_H
721#  include <stdlib.h>
722# endif
723#endif
724#ifdef HAVE_STRING_H
725# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
726#  include <memory.h>
727# endif
728# include <string.h>
729#endif
730#ifdef HAVE_STRINGS_H
731# include <strings.h>
732#endif
733#ifdef HAVE_INTTYPES_H
734# include <inttypes.h>
735#endif
736#ifdef HAVE_STDINT_H
737# include <stdint.h>
738#endif
739#ifdef HAVE_UNISTD_H
740# include <unistd.h>
741#endif"
742
743ac_subst_vars='am__EXEEXT_FALSE
744am__EXEEXT_TRUE
745LTLIBOBJS
746LIBOBJS
747SVNINFO
748CAN_COMPILE_AVX_FALSE
749CAN_COMPILE_AVX_TRUE
750CAN_COMPILE_SSE2_FALSE
751CAN_COMPILE_SSE2_TRUE
752CAN_COMPILE_SSE4_1_FALSE
753CAN_COMPILE_SSE4_1_TRUE
754MKINSTALLDIRS
755POSUB
756POFILES
757PO_IN_DATADIR_FALSE
758PO_IN_DATADIR_TRUE
759INTLLIBS
760INSTOBJEXT
761GMOFILES
762DATADIRNAME
763CATOBJEXT
764CATALOGS
765XGETTEXT
766GMSGFMT
767MSGFMT_OPTS
768MSGFMT
769USE_NLS
770GETTEXT_PACKAGE
771PACKAGE_LIBS
772PACKAGE_CFLAGS
773PKG_CONFIG_LIBDIR
774PKG_CONFIG_PATH
775PKG_CONFIG
776LIBTIFF
777LIBJPEG
778CXXCPP
779am__fastdepCXX_FALSE
780am__fastdepCXX_TRUE
781CXXDEPMODE
782ac_ct_CXX
783CXXFLAGS
784CXX
785CPP
786OTOOL64
787OTOOL
788LIPO
789NMEDIT
790DSYMUTIL
791lt_ECHO
792RANLIB
793AR
794OBJDUMP
795LN_S
796NM
797ac_ct_DUMPBIN
798DUMPBIN
799LD
800FGREP
801EGREP
802GREP
803SED
804am__fastdepCC_FALSE
805am__fastdepCC_TRUE
806CCDEPMODE
807AMDEPBACKSLASH
808AMDEP_FALSE
809AMDEP_TRUE
810am__quote
811am__include
812DEPDIR
813OBJEXT
814EXEEXT
815ac_ct_CC
816CPPFLAGS
817LDFLAGS
818CFLAGS
819CC
820host_os
821host_vendor
822host_cpu
823host
824build_os
825build_vendor
826build_cpu
827build
828LIBTOOL
829MAINT
830MAINTAINER_MODE_FALSE
831MAINTAINER_MODE_TRUE
832am__untar
833am__tar
834AMTAR
835am__leading_dot
836SET_MAKE
837AWK
838mkdir_p
839MKDIR_P
840INSTALL_STRIP_PROGRAM
841STRIP
842install_sh
843MAKEINFO
844AUTOHEADER
845AUTOMAKE
846AUTOCONF
847ACLOCAL
848VERSION
849PACKAGE
850CYGPATH_W
851am__isrc
852INSTALL_DATA
853INSTALL_SCRIPT
854INSTALL_PROGRAM
855target_alias
856host_alias
857build_alias
858LIBS
859ECHO_T
860ECHO_N
861ECHO_C
862DEFS
863mandir
864localedir
865libdir
866psdir
867pdfdir
868dvidir
869htmldir
870infodir
871docdir
872oldincludedir
873includedir
874localstatedir
875sharedstatedir
876sysconfdir
877datadir
878datarootdir
879libexecdir
880sbindir
881bindir
882program_transform_name
883prefix
884exec_prefix
885PACKAGE_URL
886PACKAGE_BUGREPORT
887PACKAGE_STRING
888PACKAGE_VERSION
889PACKAGE_TARNAME
890PACKAGE_NAME
891PATH_SEPARATOR
892SHELL'
893ac_subst_files=''
894ac_user_opts='
895enable_option_checking
896enable_maintainer_mode
897enable_shared
898enable_static
899with_pic
900enable_fast_install
901enable_dependency_tracking
902with_gnu_ld
903enable_libtool_lock
904enable_experimental
905'
906      ac_precious_vars='build_alias
907host_alias
908target_alias
909CC
910CFLAGS
911LDFLAGS
912LIBS
913CPPFLAGS
914CPP
915CXX
916CXXFLAGS
917CCC
918CXXCPP
919PKG_CONFIG
920PKG_CONFIG_PATH
921PKG_CONFIG_LIBDIR
922PACKAGE_CFLAGS
923PACKAGE_LIBS'
924
925
926# Initialize some variables set by options.
927ac_init_help=
928ac_init_version=false
929ac_unrecognized_opts=
930ac_unrecognized_sep=
931# The variables have the same names as the options, with
932# dashes changed to underlines.
933cache_file=/dev/null
934exec_prefix=NONE
935no_create=
936no_recursion=
937prefix=NONE
938program_prefix=NONE
939program_suffix=NONE
940program_transform_name=s,x,x,
941silent=
942site=
943srcdir=
944verbose=
945x_includes=NONE
946x_libraries=NONE
947
948# Installation directory options.
949# These are left unexpanded so users can "make install exec_prefix=/foo"
950# and all the variables that are supposed to be based on exec_prefix
951# by default will actually change.
952# Use braces instead of parens because sh, perl, etc. also accept them.
953# (The list follows the same order as the GNU Coding Standards.)
954bindir='${exec_prefix}/bin'
955sbindir='${exec_prefix}/sbin'
956libexecdir='${exec_prefix}/libexec'
957datarootdir='${prefix}/share'
958datadir='${datarootdir}'
959sysconfdir='${prefix}/etc'
960sharedstatedir='${prefix}/com'
961localstatedir='${prefix}/var'
962includedir='${prefix}/include'
963oldincludedir='/usr/include'
964docdir='${datarootdir}/doc/${PACKAGE}'
965infodir='${datarootdir}/info'
966htmldir='${docdir}'
967dvidir='${docdir}'
968pdfdir='${docdir}'
969psdir='${docdir}'
970libdir='${exec_prefix}/lib'
971localedir='${datarootdir}/locale'
972mandir='${datarootdir}/man'
973
974ac_prev=
975ac_dashdash=
976for ac_option
977do
978  # If the previous option needs an argument, assign it.
979  if test -n "$ac_prev"; then
980    eval $ac_prev=\$ac_option
981    ac_prev=
982    continue
983  fi
984
985  case $ac_option in
986  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
987  *=)   ac_optarg= ;;
988  *)    ac_optarg=yes ;;
989  esac
990
991  # Accept the important Cygnus configure options, so we can diagnose typos.
992
993  case $ac_dashdash$ac_option in
994  --)
995    ac_dashdash=yes ;;
996
997  -bindir | --bindir | --bindi | --bind | --bin | --bi)
998    ac_prev=bindir ;;
999  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1000    bindir=$ac_optarg ;;
1001
1002  -build | --build | --buil | --bui | --bu)
1003    ac_prev=build_alias ;;
1004  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1005    build_alias=$ac_optarg ;;
1006
1007  -cache-file | --cache-file | --cache-fil | --cache-fi \
1008  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1009    ac_prev=cache_file ;;
1010  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1011  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1012    cache_file=$ac_optarg ;;
1013
1014  --config-cache | -C)
1015    cache_file=config.cache ;;
1016
1017  -datadir | --datadir | --datadi | --datad)
1018    ac_prev=datadir ;;
1019  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1020    datadir=$ac_optarg ;;
1021
1022  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1023  | --dataroo | --dataro | --datar)
1024    ac_prev=datarootdir ;;
1025  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1026  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1027    datarootdir=$ac_optarg ;;
1028
1029  -disable-* | --disable-*)
1030    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1031    # Reject names that are not valid shell variable names.
1032    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1033      as_fn_error $? "invalid feature name: $ac_useropt"
1034    ac_useropt_orig=$ac_useropt
1035    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1036    case $ac_user_opts in
1037      *"
1038"enable_$ac_useropt"
1039"*) ;;
1040      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1041	 ac_unrecognized_sep=', ';;
1042    esac
1043    eval enable_$ac_useropt=no ;;
1044
1045  -docdir | --docdir | --docdi | --doc | --do)
1046    ac_prev=docdir ;;
1047  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1048    docdir=$ac_optarg ;;
1049
1050  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1051    ac_prev=dvidir ;;
1052  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1053    dvidir=$ac_optarg ;;
1054
1055  -enable-* | --enable-*)
1056    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1057    # Reject names that are not valid shell variable names.
1058    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1059      as_fn_error $? "invalid feature name: $ac_useropt"
1060    ac_useropt_orig=$ac_useropt
1061    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1062    case $ac_user_opts in
1063      *"
1064"enable_$ac_useropt"
1065"*) ;;
1066      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1067	 ac_unrecognized_sep=', ';;
1068    esac
1069    eval enable_$ac_useropt=\$ac_optarg ;;
1070
1071  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1072  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1073  | --exec | --exe | --ex)
1074    ac_prev=exec_prefix ;;
1075  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1076  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1077  | --exec=* | --exe=* | --ex=*)
1078    exec_prefix=$ac_optarg ;;
1079
1080  -gas | --gas | --ga | --g)
1081    # Obsolete; use --with-gas.
1082    with_gas=yes ;;
1083
1084  -help | --help | --hel | --he | -h)
1085    ac_init_help=long ;;
1086  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1087    ac_init_help=recursive ;;
1088  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1089    ac_init_help=short ;;
1090
1091  -host | --host | --hos | --ho)
1092    ac_prev=host_alias ;;
1093  -host=* | --host=* | --hos=* | --ho=*)
1094    host_alias=$ac_optarg ;;
1095
1096  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1097    ac_prev=htmldir ;;
1098  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1099  | --ht=*)
1100    htmldir=$ac_optarg ;;
1101
1102  -includedir | --includedir | --includedi | --included | --include \
1103  | --includ | --inclu | --incl | --inc)
1104    ac_prev=includedir ;;
1105  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1106  | --includ=* | --inclu=* | --incl=* | --inc=*)
1107    includedir=$ac_optarg ;;
1108
1109  -infodir | --infodir | --infodi | --infod | --info | --inf)
1110    ac_prev=infodir ;;
1111  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1112    infodir=$ac_optarg ;;
1113
1114  -libdir | --libdir | --libdi | --libd)
1115    ac_prev=libdir ;;
1116  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1117    libdir=$ac_optarg ;;
1118
1119  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1120  | --libexe | --libex | --libe)
1121    ac_prev=libexecdir ;;
1122  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1123  | --libexe=* | --libex=* | --libe=*)
1124    libexecdir=$ac_optarg ;;
1125
1126  -localedir | --localedir | --localedi | --localed | --locale)
1127    ac_prev=localedir ;;
1128  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1129    localedir=$ac_optarg ;;
1130
1131  -localstatedir | --localstatedir | --localstatedi | --localstated \
1132  | --localstate | --localstat | --localsta | --localst | --locals)
1133    ac_prev=localstatedir ;;
1134  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1135  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1136    localstatedir=$ac_optarg ;;
1137
1138  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1139    ac_prev=mandir ;;
1140  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1141    mandir=$ac_optarg ;;
1142
1143  -nfp | --nfp | --nf)
1144    # Obsolete; use --without-fp.
1145    with_fp=no ;;
1146
1147  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1148  | --no-cr | --no-c | -n)
1149    no_create=yes ;;
1150
1151  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1152  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1153    no_recursion=yes ;;
1154
1155  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1156  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1157  | --oldin | --oldi | --old | --ol | --o)
1158    ac_prev=oldincludedir ;;
1159  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1160  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1161  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1162    oldincludedir=$ac_optarg ;;
1163
1164  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1165    ac_prev=prefix ;;
1166  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1167    prefix=$ac_optarg ;;
1168
1169  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1170  | --program-pre | --program-pr | --program-p)
1171    ac_prev=program_prefix ;;
1172  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1173  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1174    program_prefix=$ac_optarg ;;
1175
1176  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1177  | --program-suf | --program-su | --program-s)
1178    ac_prev=program_suffix ;;
1179  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1180  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1181    program_suffix=$ac_optarg ;;
1182
1183  -program-transform-name | --program-transform-name \
1184  | --program-transform-nam | --program-transform-na \
1185  | --program-transform-n | --program-transform- \
1186  | --program-transform | --program-transfor \
1187  | --program-transfo | --program-transf \
1188  | --program-trans | --program-tran \
1189  | --progr-tra | --program-tr | --program-t)
1190    ac_prev=program_transform_name ;;
1191  -program-transform-name=* | --program-transform-name=* \
1192  | --program-transform-nam=* | --program-transform-na=* \
1193  | --program-transform-n=* | --program-transform-=* \
1194  | --program-transform=* | --program-transfor=* \
1195  | --program-transfo=* | --program-transf=* \
1196  | --program-trans=* | --program-tran=* \
1197  | --progr-tra=* | --program-tr=* | --program-t=*)
1198    program_transform_name=$ac_optarg ;;
1199
1200  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1201    ac_prev=pdfdir ;;
1202  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1203    pdfdir=$ac_optarg ;;
1204
1205  -psdir | --psdir | --psdi | --psd | --ps)
1206    ac_prev=psdir ;;
1207  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1208    psdir=$ac_optarg ;;
1209
1210  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1211  | -silent | --silent | --silen | --sile | --sil)
1212    silent=yes ;;
1213
1214  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1215    ac_prev=sbindir ;;
1216  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1217  | --sbi=* | --sb=*)
1218    sbindir=$ac_optarg ;;
1219
1220  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1221  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1222  | --sharedst | --shareds | --shared | --share | --shar \
1223  | --sha | --sh)
1224    ac_prev=sharedstatedir ;;
1225  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1226  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1227  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1228  | --sha=* | --sh=*)
1229    sharedstatedir=$ac_optarg ;;
1230
1231  -site | --site | --sit)
1232    ac_prev=site ;;
1233  -site=* | --site=* | --sit=*)
1234    site=$ac_optarg ;;
1235
1236  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1237    ac_prev=srcdir ;;
1238  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1239    srcdir=$ac_optarg ;;
1240
1241  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1242  | --syscon | --sysco | --sysc | --sys | --sy)
1243    ac_prev=sysconfdir ;;
1244  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1245  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1246    sysconfdir=$ac_optarg ;;
1247
1248  -target | --target | --targe | --targ | --tar | --ta | --t)
1249    ac_prev=target_alias ;;
1250  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1251    target_alias=$ac_optarg ;;
1252
1253  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1254    verbose=yes ;;
1255
1256  -version | --version | --versio | --versi | --vers | -V)
1257    ac_init_version=: ;;
1258
1259  -with-* | --with-*)
1260    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1261    # Reject names that are not valid shell variable names.
1262    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1263      as_fn_error $? "invalid package name: $ac_useropt"
1264    ac_useropt_orig=$ac_useropt
1265    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1266    case $ac_user_opts in
1267      *"
1268"with_$ac_useropt"
1269"*) ;;
1270      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1271	 ac_unrecognized_sep=', ';;
1272    esac
1273    eval with_$ac_useropt=\$ac_optarg ;;
1274
1275  -without-* | --without-*)
1276    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1277    # Reject names that are not valid shell variable names.
1278    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1279      as_fn_error $? "invalid package name: $ac_useropt"
1280    ac_useropt_orig=$ac_useropt
1281    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1282    case $ac_user_opts in
1283      *"
1284"with_$ac_useropt"
1285"*) ;;
1286      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1287	 ac_unrecognized_sep=', ';;
1288    esac
1289    eval with_$ac_useropt=no ;;
1290
1291  --x)
1292    # Obsolete; use --with-x.
1293    with_x=yes ;;
1294
1295  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1296  | --x-incl | --x-inc | --x-in | --x-i)
1297    ac_prev=x_includes ;;
1298  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1299  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1300    x_includes=$ac_optarg ;;
1301
1302  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1303  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1304    ac_prev=x_libraries ;;
1305  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1306  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1307    x_libraries=$ac_optarg ;;
1308
1309  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1310Try \`$0 --help' for more information"
1311    ;;
1312
1313  *=*)
1314    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1315    # Reject names that are not valid shell variable names.
1316    case $ac_envvar in #(
1317      '' | [0-9]* | *[!_$as_cr_alnum]* )
1318      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1319    esac
1320    eval $ac_envvar=\$ac_optarg
1321    export $ac_envvar ;;
1322
1323  *)
1324    # FIXME: should be removed in autoconf 3.0.
1325    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1326    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1327      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1328    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1329    ;;
1330
1331  esac
1332done
1333
1334if test -n "$ac_prev"; then
1335  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1336  as_fn_error $? "missing argument to $ac_option"
1337fi
1338
1339if test -n "$ac_unrecognized_opts"; then
1340  case $enable_option_checking in
1341    no) ;;
1342    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1343    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1344  esac
1345fi
1346
1347# Check all directory arguments for consistency.
1348for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1349		datadir sysconfdir sharedstatedir localstatedir includedir \
1350		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1351		libdir localedir mandir
1352do
1353  eval ac_val=\$$ac_var
1354  # Remove trailing slashes.
1355  case $ac_val in
1356    */ )
1357      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1358      eval $ac_var=\$ac_val;;
1359  esac
1360  # Be sure to have absolute directory names.
1361  case $ac_val in
1362    [\\/$]* | ?:[\\/]* )  continue;;
1363    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1364  esac
1365  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1366done
1367
1368# There might be people who depend on the old broken behavior: `$host'
1369# used to hold the argument of --host etc.
1370# FIXME: To remove some day.
1371build=$build_alias
1372host=$host_alias
1373target=$target_alias
1374
1375# FIXME: To remove some day.
1376if test "x$host_alias" != x; then
1377  if test "x$build_alias" = x; then
1378    cross_compiling=maybe
1379    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1380    If a cross compiler is detected then cross compile mode will be used" >&2
1381  elif test "x$build_alias" != "x$host_alias"; then
1382    cross_compiling=yes
1383  fi
1384fi
1385
1386ac_tool_prefix=
1387test -n "$host_alias" && ac_tool_prefix=$host_alias-
1388
1389test "$silent" = yes && exec 6>/dev/null
1390
1391
1392ac_pwd=`pwd` && test -n "$ac_pwd" &&
1393ac_ls_di=`ls -di .` &&
1394ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1395  as_fn_error $? "working directory cannot be determined"
1396test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1397  as_fn_error $? "pwd does not report name of working directory"
1398
1399
1400# Find the source files, if location was not specified.
1401if test -z "$srcdir"; then
1402  ac_srcdir_defaulted=yes
1403  # Try the directory containing this script, then the parent directory.
1404  ac_confdir=`$as_dirname -- "$as_myself" ||
1405$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1406	 X"$as_myself" : 'X\(//\)[^/]' \| \
1407	 X"$as_myself" : 'X\(//\)$' \| \
1408	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1409$as_echo X"$as_myself" |
1410    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1411	    s//\1/
1412	    q
1413	  }
1414	  /^X\(\/\/\)[^/].*/{
1415	    s//\1/
1416	    q
1417	  }
1418	  /^X\(\/\/\)$/{
1419	    s//\1/
1420	    q
1421	  }
1422	  /^X\(\/\).*/{
1423	    s//\1/
1424	    q
1425	  }
1426	  s/.*/./; q'`
1427  srcdir=$ac_confdir
1428  if test ! -r "$srcdir/$ac_unique_file"; then
1429    srcdir=..
1430  fi
1431else
1432  ac_srcdir_defaulted=no
1433fi
1434if test ! -r "$srcdir/$ac_unique_file"; then
1435  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1436  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1437fi
1438ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1439ac_abs_confdir=`(
1440	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1441	pwd)`
1442# When building in place, set srcdir=.
1443if test "$ac_abs_confdir" = "$ac_pwd"; then
1444  srcdir=.
1445fi
1446# Remove unnecessary trailing slashes from srcdir.
1447# Double slashes in file names in object file debugging info
1448# mess up M-x gdb in Emacs.
1449case $srcdir in
1450*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1451esac
1452for ac_var in $ac_precious_vars; do
1453  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1454  eval ac_env_${ac_var}_value=\$${ac_var}
1455  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1456  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1457done
1458
1459#
1460# Report the --help message.
1461#
1462if test "$ac_init_help" = "long"; then
1463  # Omit some internal or obsolete options to make the list less imposing.
1464  # This message is too long to be a string in the A/UX 3.1 sh.
1465  cat <<_ACEOF
1466\`configure' configures this package to adapt to many kinds of systems.
1467
1468Usage: $0 [OPTION]... [VAR=VALUE]...
1469
1470To assign environment variables (e.g., CC, CFLAGS...), specify them as
1471VAR=VALUE.  See below for descriptions of some of the useful variables.
1472
1473Defaults for the options are specified in brackets.
1474
1475Configuration:
1476  -h, --help              display this help and exit
1477      --help=short        display options specific to this package
1478      --help=recursive    display the short help of all the included packages
1479  -V, --version           display version information and exit
1480  -q, --quiet, --silent   do not print \`checking ...' messages
1481      --cache-file=FILE   cache test results in FILE [disabled]
1482  -C, --config-cache      alias for \`--cache-file=config.cache'
1483  -n, --no-create         do not create output files
1484      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1485
1486Installation directories:
1487  --prefix=PREFIX         install architecture-independent files in PREFIX
1488                          [$ac_default_prefix]
1489  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1490                          [PREFIX]
1491
1492By default, \`make install' will install all the files in
1493\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1494an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1495for instance \`--prefix=\$HOME'.
1496
1497For better control, use the options below.
1498
1499Fine tuning of the installation directories:
1500  --bindir=DIR            user executables [EPREFIX/bin]
1501  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1502  --libexecdir=DIR        program executables [EPREFIX/libexec]
1503  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1504  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1505  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1506  --libdir=DIR            object code libraries [EPREFIX/lib]
1507  --includedir=DIR        C header files [PREFIX/include]
1508  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1509  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1510  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1511  --infodir=DIR           info documentation [DATAROOTDIR/info]
1512  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1513  --mandir=DIR            man documentation [DATAROOTDIR/man]
1514  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1515  --htmldir=DIR           html documentation [DOCDIR]
1516  --dvidir=DIR            dvi documentation [DOCDIR]
1517  --pdfdir=DIR            pdf documentation [DOCDIR]
1518  --psdir=DIR             ps documentation [DOCDIR]
1519_ACEOF
1520
1521  cat <<\_ACEOF
1522
1523Program names:
1524  --program-prefix=PREFIX            prepend PREFIX to installed program names
1525  --program-suffix=SUFFIX            append SUFFIX to installed program names
1526  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1527
1528System types:
1529  --build=BUILD     configure for building on BUILD [guessed]
1530  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1531_ACEOF
1532fi
1533
1534if test -n "$ac_init_help"; then
1535
1536  cat <<\_ACEOF
1537
1538Optional Features:
1539  --disable-option-checking  ignore unrecognized --enable/--with options
1540  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1541  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1542  --enable-maintainer-mode  enable make rules and dependencies not useful
1543			  (and sometimes confusing) to the casual installer
1544  --enable-shared[=PKGS]  build shared libraries [default=yes]
1545  --enable-static[=PKGS]  build static libraries [default=yes]
1546  --enable-fast-install[=PKGS]
1547                          optimize for fast installation [default=yes]
1548  --disable-dependency-tracking  speeds up one-time build
1549  --enable-dependency-tracking   do not reject slow dependency extractors
1550  --disable-libtool-lock  avoid locking (might break parallel builds)
1551  --enable-experimental   Enable experimental code (default: disabled)
1552
1553Optional Packages:
1554  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1555  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1556  --with-pic              try to use only PIC/non-PIC objects [default=use
1557                          both]
1558  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1559
1560Some influential environment variables:
1561  CC          C compiler command
1562  CFLAGS      C compiler flags
1563  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1564              nonstandard directory <lib dir>
1565  LIBS        libraries to pass to the linker, e.g. -l<library>
1566  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1567              you have headers in a nonstandard directory <include dir>
1568  CPP         C preprocessor
1569  CXX         C++ compiler command
1570  CXXFLAGS    C++ compiler flags
1571  CXXCPP      C++ preprocessor
1572  PKG_CONFIG  path to pkg-config utility
1573  PKG_CONFIG_PATH
1574              directories to add to pkg-config's search path
1575  PKG_CONFIG_LIBDIR
1576              path overriding pkg-config's built-in search path
1577  PACKAGE_CFLAGS
1578              C compiler flags for PACKAGE, overriding pkg-config
1579  PACKAGE_LIBS
1580              linker flags for PACKAGE, overriding pkg-config
1581
1582Use these variables to override the choices made by `configure' or to help
1583it to find libraries and programs with nonstandard names/locations.
1584
1585Report bugs to the package provider.
1586_ACEOF
1587ac_status=$?
1588fi
1589
1590if test "$ac_init_help" = "recursive"; then
1591  # If there are subdirs, report their specific --help.
1592  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1593    test -d "$ac_dir" ||
1594      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1595      continue
1596    ac_builddir=.
1597
1598case "$ac_dir" in
1599.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1600*)
1601  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1602  # A ".." for each directory in $ac_dir_suffix.
1603  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1604  case $ac_top_builddir_sub in
1605  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1606  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1607  esac ;;
1608esac
1609ac_abs_top_builddir=$ac_pwd
1610ac_abs_builddir=$ac_pwd$ac_dir_suffix
1611# for backward compatibility:
1612ac_top_builddir=$ac_top_build_prefix
1613
1614case $srcdir in
1615  .)  # We are building in place.
1616    ac_srcdir=.
1617    ac_top_srcdir=$ac_top_builddir_sub
1618    ac_abs_top_srcdir=$ac_pwd ;;
1619  [\\/]* | ?:[\\/]* )  # Absolute name.
1620    ac_srcdir=$srcdir$ac_dir_suffix;
1621    ac_top_srcdir=$srcdir
1622    ac_abs_top_srcdir=$srcdir ;;
1623  *) # Relative name.
1624    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1625    ac_top_srcdir=$ac_top_build_prefix$srcdir
1626    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1627esac
1628ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1629
1630    cd "$ac_dir" || { ac_status=$?; continue; }
1631    # Check for guested configure.
1632    if test -f "$ac_srcdir/configure.gnu"; then
1633      echo &&
1634      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1635    elif test -f "$ac_srcdir/configure"; then
1636      echo &&
1637      $SHELL "$ac_srcdir/configure" --help=recursive
1638    else
1639      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1640    fi || ac_status=$?
1641    cd "$ac_pwd" || { ac_status=$?; break; }
1642  done
1643fi
1644
1645test -n "$ac_init_help" && exit $ac_status
1646if $ac_init_version; then
1647  cat <<\_ACEOF
1648configure
1649generated by GNU Autoconf 2.67
1650
1651Copyright (C) 2010 Free Software Foundation, Inc.
1652This configure script is free software; the Free Software Foundation
1653gives unlimited permission to copy, distribute and modify it.
1654_ACEOF
1655  exit
1656fi
1657
1658## ------------------------ ##
1659## Autoconf initialization. ##
1660## ------------------------ ##
1661
1662# ac_fn_c_try_compile LINENO
1663# --------------------------
1664# Try to compile conftest.$ac_ext, and return whether this succeeded.
1665ac_fn_c_try_compile ()
1666{
1667  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668  rm -f conftest.$ac_objext
1669  if { { ac_try="$ac_compile"
1670case "(($ac_try" in
1671  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672  *) ac_try_echo=$ac_try;;
1673esac
1674eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675$as_echo "$ac_try_echo"; } >&5
1676  (eval "$ac_compile") 2>conftest.err
1677  ac_status=$?
1678  if test -s conftest.err; then
1679    grep -v '^ *+' conftest.err >conftest.er1
1680    cat conftest.er1 >&5
1681    mv -f conftest.er1 conftest.err
1682  fi
1683  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684  test $ac_status = 0; } && {
1685	 test -z "$ac_c_werror_flag" ||
1686	 test ! -s conftest.err
1687       } && test -s conftest.$ac_objext; then :
1688  ac_retval=0
1689else
1690  $as_echo "$as_me: failed program was:" >&5
1691sed 's/^/| /' conftest.$ac_ext >&5
1692
1693	ac_retval=1
1694fi
1695  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1696  as_fn_set_status $ac_retval
1697
1698} # ac_fn_c_try_compile
1699
1700# ac_fn_c_try_link LINENO
1701# -----------------------
1702# Try to link conftest.$ac_ext, and return whether this succeeded.
1703ac_fn_c_try_link ()
1704{
1705  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706  rm -f conftest.$ac_objext conftest$ac_exeext
1707  if { { ac_try="$ac_link"
1708case "(($ac_try" in
1709  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710  *) ac_try_echo=$ac_try;;
1711esac
1712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713$as_echo "$ac_try_echo"; } >&5
1714  (eval "$ac_link") 2>conftest.err
1715  ac_status=$?
1716  if test -s conftest.err; then
1717    grep -v '^ *+' conftest.err >conftest.er1
1718    cat conftest.er1 >&5
1719    mv -f conftest.er1 conftest.err
1720  fi
1721  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722  test $ac_status = 0; } && {
1723	 test -z "$ac_c_werror_flag" ||
1724	 test ! -s conftest.err
1725       } && test -s conftest$ac_exeext && {
1726	 test "$cross_compiling" = yes ||
1727	 $as_test_x conftest$ac_exeext
1728       }; then :
1729  ac_retval=0
1730else
1731  $as_echo "$as_me: failed program was:" >&5
1732sed 's/^/| /' conftest.$ac_ext >&5
1733
1734	ac_retval=1
1735fi
1736  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1737  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1738  # interfere with the next link command; also delete a directory that is
1739  # left behind by Apple's compiler.  We do this before executing the actions.
1740  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1741  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1742  as_fn_set_status $ac_retval
1743
1744} # ac_fn_c_try_link
1745
1746# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1747# -------------------------------------------------------
1748# Tests whether HEADER exists and can be compiled using the include files in
1749# INCLUDES, setting the cache variable VAR accordingly.
1750ac_fn_c_check_header_compile ()
1751{
1752  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1754$as_echo_n "checking for $2... " >&6; }
1755if eval "test \"\${$3+set}\"" = set; then :
1756  $as_echo_n "(cached) " >&6
1757else
1758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759/* end confdefs.h.  */
1760$4
1761#include <$2>
1762_ACEOF
1763if ac_fn_c_try_compile "$LINENO"; then :
1764  eval "$3=yes"
1765else
1766  eval "$3=no"
1767fi
1768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1769fi
1770eval ac_res=\$$3
1771	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1772$as_echo "$ac_res" >&6; }
1773  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1774
1775} # ac_fn_c_check_header_compile
1776
1777# ac_fn_c_try_cpp LINENO
1778# ----------------------
1779# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1780ac_fn_c_try_cpp ()
1781{
1782  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783  if { { ac_try="$ac_cpp conftest.$ac_ext"
1784case "(($ac_try" in
1785  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1786  *) ac_try_echo=$ac_try;;
1787esac
1788eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789$as_echo "$ac_try_echo"; } >&5
1790  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1791  ac_status=$?
1792  if test -s conftest.err; then
1793    grep -v '^ *+' conftest.err >conftest.er1
1794    cat conftest.er1 >&5
1795    mv -f conftest.er1 conftest.err
1796  fi
1797  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798  test $ac_status = 0; } > conftest.i && {
1799	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1800	 test ! -s conftest.err
1801       }; then :
1802  ac_retval=0
1803else
1804  $as_echo "$as_me: failed program was:" >&5
1805sed 's/^/| /' conftest.$ac_ext >&5
1806
1807    ac_retval=1
1808fi
1809  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1810  as_fn_set_status $ac_retval
1811
1812} # ac_fn_c_try_cpp
1813
1814# ac_fn_c_try_run LINENO
1815# ----------------------
1816# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1817# that executables *can* be run.
1818ac_fn_c_try_run ()
1819{
1820  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821  if { { ac_try="$ac_link"
1822case "(($ac_try" in
1823  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1824  *) ac_try_echo=$ac_try;;
1825esac
1826eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827$as_echo "$ac_try_echo"; } >&5
1828  (eval "$ac_link") 2>&5
1829  ac_status=$?
1830  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1832  { { case "(($ac_try" in
1833  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834  *) ac_try_echo=$ac_try;;
1835esac
1836eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837$as_echo "$ac_try_echo"; } >&5
1838  (eval "$ac_try") 2>&5
1839  ac_status=$?
1840  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841  test $ac_status = 0; }; }; then :
1842  ac_retval=0
1843else
1844  $as_echo "$as_me: program exited with status $ac_status" >&5
1845       $as_echo "$as_me: failed program was:" >&5
1846sed 's/^/| /' conftest.$ac_ext >&5
1847
1848       ac_retval=$ac_status
1849fi
1850  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1851  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1852  as_fn_set_status $ac_retval
1853
1854} # ac_fn_c_try_run
1855
1856# ac_fn_c_check_func LINENO FUNC VAR
1857# ----------------------------------
1858# Tests whether FUNC exists, setting the cache variable VAR accordingly
1859ac_fn_c_check_func ()
1860{
1861  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1863$as_echo_n "checking for $2... " >&6; }
1864if eval "test \"\${$3+set}\"" = set; then :
1865  $as_echo_n "(cached) " >&6
1866else
1867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868/* end confdefs.h.  */
1869/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1870   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1871#define $2 innocuous_$2
1872
1873/* System header to define __stub macros and hopefully few prototypes,
1874    which can conflict with char $2 (); below.
1875    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1876    <limits.h> exists even on freestanding compilers.  */
1877
1878#ifdef __STDC__
1879# include <limits.h>
1880#else
1881# include <assert.h>
1882#endif
1883
1884#undef $2
1885
1886/* Override any GCC internal prototype to avoid an error.
1887   Use char because int might match the return type of a GCC
1888   builtin and then its argument prototype would still apply.  */
1889#ifdef __cplusplus
1890extern "C"
1891#endif
1892char $2 ();
1893/* The GNU C library defines this for functions which it implements
1894    to always fail with ENOSYS.  Some functions are actually named
1895    something starting with __ and the normal name is an alias.  */
1896#if defined __stub_$2 || defined __stub___$2
1897choke me
1898#endif
1899
1900int
1901main ()
1902{
1903return $2 ();
1904  ;
1905  return 0;
1906}
1907_ACEOF
1908if ac_fn_c_try_link "$LINENO"; then :
1909  eval "$3=yes"
1910else
1911  eval "$3=no"
1912fi
1913rm -f core conftest.err conftest.$ac_objext \
1914    conftest$ac_exeext conftest.$ac_ext
1915fi
1916eval ac_res=\$$3
1917	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1918$as_echo "$ac_res" >&6; }
1919  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1920
1921} # ac_fn_c_check_func
1922
1923# ac_fn_cxx_try_compile LINENO
1924# ----------------------------
1925# Try to compile conftest.$ac_ext, and return whether this succeeded.
1926ac_fn_cxx_try_compile ()
1927{
1928  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929  rm -f conftest.$ac_objext
1930  if { { ac_try="$ac_compile"
1931case "(($ac_try" in
1932  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1933  *) ac_try_echo=$ac_try;;
1934esac
1935eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1936$as_echo "$ac_try_echo"; } >&5
1937  (eval "$ac_compile") 2>conftest.err
1938  ac_status=$?
1939  if test -s conftest.err; then
1940    grep -v '^ *+' conftest.err >conftest.er1
1941    cat conftest.er1 >&5
1942    mv -f conftest.er1 conftest.err
1943  fi
1944  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1945  test $ac_status = 0; } && {
1946	 test -z "$ac_cxx_werror_flag" ||
1947	 test ! -s conftest.err
1948       } && test -s conftest.$ac_objext; then :
1949  ac_retval=0
1950else
1951  $as_echo "$as_me: failed program was:" >&5
1952sed 's/^/| /' conftest.$ac_ext >&5
1953
1954	ac_retval=1
1955fi
1956  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1957  as_fn_set_status $ac_retval
1958
1959} # ac_fn_cxx_try_compile
1960
1961# ac_fn_cxx_try_cpp LINENO
1962# ------------------------
1963# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1964ac_fn_cxx_try_cpp ()
1965{
1966  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967  if { { ac_try="$ac_cpp conftest.$ac_ext"
1968case "(($ac_try" in
1969  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1970  *) ac_try_echo=$ac_try;;
1971esac
1972eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1973$as_echo "$ac_try_echo"; } >&5
1974  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1975  ac_status=$?
1976  if test -s conftest.err; then
1977    grep -v '^ *+' conftest.err >conftest.er1
1978    cat conftest.er1 >&5
1979    mv -f conftest.er1 conftest.err
1980  fi
1981  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1982  test $ac_status = 0; } > conftest.i && {
1983	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1984	 test ! -s conftest.err
1985       }; then :
1986  ac_retval=0
1987else
1988  $as_echo "$as_me: failed program was:" >&5
1989sed 's/^/| /' conftest.$ac_ext >&5
1990
1991    ac_retval=1
1992fi
1993  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1994  as_fn_set_status $ac_retval
1995
1996} # ac_fn_cxx_try_cpp
1997
1998# ac_fn_cxx_try_link LINENO
1999# -------------------------
2000# Try to link conftest.$ac_ext, and return whether this succeeded.
2001ac_fn_cxx_try_link ()
2002{
2003  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004  rm -f conftest.$ac_objext conftest$ac_exeext
2005  if { { ac_try="$ac_link"
2006case "(($ac_try" in
2007  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2008  *) ac_try_echo=$ac_try;;
2009esac
2010eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2011$as_echo "$ac_try_echo"; } >&5
2012  (eval "$ac_link") 2>conftest.err
2013  ac_status=$?
2014  if test -s conftest.err; then
2015    grep -v '^ *+' conftest.err >conftest.er1
2016    cat conftest.er1 >&5
2017    mv -f conftest.er1 conftest.err
2018  fi
2019  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2020  test $ac_status = 0; } && {
2021	 test -z "$ac_cxx_werror_flag" ||
2022	 test ! -s conftest.err
2023       } && test -s conftest$ac_exeext && {
2024	 test "$cross_compiling" = yes ||
2025	 $as_test_x conftest$ac_exeext
2026       }; then :
2027  ac_retval=0
2028else
2029  $as_echo "$as_me: failed program was:" >&5
2030sed 's/^/| /' conftest.$ac_ext >&5
2031
2032	ac_retval=1
2033fi
2034  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2035  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2036  # interfere with the next link command; also delete a directory that is
2037  # left behind by Apple's compiler.  We do this before executing the actions.
2038  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2039  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2040  as_fn_set_status $ac_retval
2041
2042} # ac_fn_cxx_try_link
2043
2044# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2045# -------------------------------------------------------
2046# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2047# the include files in INCLUDES and setting the cache variable VAR
2048# accordingly.
2049ac_fn_c_check_header_mongrel ()
2050{
2051  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2052  if eval "test \"\${$3+set}\"" = set; then :
2053  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2054$as_echo_n "checking for $2... " >&6; }
2055if eval "test \"\${$3+set}\"" = set; then :
2056  $as_echo_n "(cached) " >&6
2057fi
2058eval ac_res=\$$3
2059	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2060$as_echo "$ac_res" >&6; }
2061else
2062  # Is the header compilable?
2063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2064$as_echo_n "checking $2 usability... " >&6; }
2065cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066/* end confdefs.h.  */
2067$4
2068#include <$2>
2069_ACEOF
2070if ac_fn_c_try_compile "$LINENO"; then :
2071  ac_header_compiler=yes
2072else
2073  ac_header_compiler=no
2074fi
2075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2077$as_echo "$ac_header_compiler" >&6; }
2078
2079# Is the header present?
2080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2081$as_echo_n "checking $2 presence... " >&6; }
2082cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083/* end confdefs.h.  */
2084#include <$2>
2085_ACEOF
2086if ac_fn_c_try_cpp "$LINENO"; then :
2087  ac_header_preproc=yes
2088else
2089  ac_header_preproc=no
2090fi
2091rm -f conftest.err conftest.i conftest.$ac_ext
2092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2093$as_echo "$ac_header_preproc" >&6; }
2094
2095# So?  What about this header?
2096case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2097  yes:no: )
2098    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2099$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2100    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2101$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2102    ;;
2103  no:yes:* )
2104    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2105$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2106    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2107$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2108    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2109$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2110    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2111$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2112    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2113$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2114    ;;
2115esac
2116  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2117$as_echo_n "checking for $2... " >&6; }
2118if eval "test \"\${$3+set}\"" = set; then :
2119  $as_echo_n "(cached) " >&6
2120else
2121  eval "$3=\$ac_header_compiler"
2122fi
2123eval ac_res=\$$3
2124	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2125$as_echo "$ac_res" >&6; }
2126fi
2127  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2128
2129} # ac_fn_c_check_header_mongrel
2130cat >config.log <<_ACEOF
2131This file contains any messages produced by compilers while
2132running configure, to aid debugging if configure makes a mistake.
2133
2134It was created by $as_me, which was
2135generated by GNU Autoconf 2.67.  Invocation command line was
2136
2137  $ $0 $@
2138
2139_ACEOF
2140exec 5>>config.log
2141{
2142cat <<_ASUNAME
2143## --------- ##
2144## Platform. ##
2145## --------- ##
2146
2147hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2148uname -m = `(uname -m) 2>/dev/null || echo unknown`
2149uname -r = `(uname -r) 2>/dev/null || echo unknown`
2150uname -s = `(uname -s) 2>/dev/null || echo unknown`
2151uname -v = `(uname -v) 2>/dev/null || echo unknown`
2152
2153/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2154/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2155
2156/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2157/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2158/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2159/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2160/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2161/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2162/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2163
2164_ASUNAME
2165
2166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2167for as_dir in $PATH
2168do
2169  IFS=$as_save_IFS
2170  test -z "$as_dir" && as_dir=.
2171    $as_echo "PATH: $as_dir"
2172  done
2173IFS=$as_save_IFS
2174
2175} >&5
2176
2177cat >&5 <<_ACEOF
2178
2179
2180## ----------- ##
2181## Core tests. ##
2182## ----------- ##
2183
2184_ACEOF
2185
2186
2187# Keep a trace of the command line.
2188# Strip out --no-create and --no-recursion so they do not pile up.
2189# Strip out --silent because we don't want to record it for future runs.
2190# Also quote any args containing shell meta-characters.
2191# Make two passes to allow for proper duplicate-argument suppression.
2192ac_configure_args=
2193ac_configure_args0=
2194ac_configure_args1=
2195ac_must_keep_next=false
2196for ac_pass in 1 2
2197do
2198  for ac_arg
2199  do
2200    case $ac_arg in
2201    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2202    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2203    | -silent | --silent | --silen | --sile | --sil)
2204      continue ;;
2205    *\'*)
2206      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2207    esac
2208    case $ac_pass in
2209    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2210    2)
2211      as_fn_append ac_configure_args1 " '$ac_arg'"
2212      if test $ac_must_keep_next = true; then
2213	ac_must_keep_next=false # Got value, back to normal.
2214      else
2215	case $ac_arg in
2216	  *=* | --config-cache | -C | -disable-* | --disable-* \
2217	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2218	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2219	  | -with-* | --with-* | -without-* | --without-* | --x)
2220	    case "$ac_configure_args0 " in
2221	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2222	    esac
2223	    ;;
2224	  -* ) ac_must_keep_next=true ;;
2225	esac
2226      fi
2227      as_fn_append ac_configure_args " '$ac_arg'"
2228      ;;
2229    esac
2230  done
2231done
2232{ ac_configure_args0=; unset ac_configure_args0;}
2233{ ac_configure_args1=; unset ac_configure_args1;}
2234
2235# When interrupted or exit'd, cleanup temporary files, and complete
2236# config.log.  We remove comments because anyway the quotes in there
2237# would cause problems or look ugly.
2238# WARNING: Use '\'' to represent an apostrophe within the trap.
2239# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2240trap 'exit_status=$?
2241  # Save into config.log some information that might help in debugging.
2242  {
2243    echo
2244
2245    $as_echo "## ---------------- ##
2246## Cache variables. ##
2247## ---------------- ##"
2248    echo
2249    # The following way of writing the cache mishandles newlines in values,
2250(
2251  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2252    eval ac_val=\$$ac_var
2253    case $ac_val in #(
2254    *${as_nl}*)
2255      case $ac_var in #(
2256      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2257$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2258      esac
2259      case $ac_var in #(
2260      _ | IFS | as_nl) ;; #(
2261      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2262      *) { eval $ac_var=; unset $ac_var;} ;;
2263      esac ;;
2264    esac
2265  done
2266  (set) 2>&1 |
2267    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2268    *${as_nl}ac_space=\ *)
2269      sed -n \
2270	"s/'\''/'\''\\\\'\'''\''/g;
2271	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2272      ;; #(
2273    *)
2274      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2275      ;;
2276    esac |
2277    sort
2278)
2279    echo
2280
2281    $as_echo "## ----------------- ##
2282## Output variables. ##
2283## ----------------- ##"
2284    echo
2285    for ac_var in $ac_subst_vars
2286    do
2287      eval ac_val=\$$ac_var
2288      case $ac_val in
2289      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2290      esac
2291      $as_echo "$ac_var='\''$ac_val'\''"
2292    done | sort
2293    echo
2294
2295    if test -n "$ac_subst_files"; then
2296      $as_echo "## ------------------- ##
2297## File substitutions. ##
2298## ------------------- ##"
2299      echo
2300      for ac_var in $ac_subst_files
2301      do
2302	eval ac_val=\$$ac_var
2303	case $ac_val in
2304	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2305	esac
2306	$as_echo "$ac_var='\''$ac_val'\''"
2307      done | sort
2308      echo
2309    fi
2310
2311    if test -s confdefs.h; then
2312      $as_echo "## ----------- ##
2313## confdefs.h. ##
2314## ----------- ##"
2315      echo
2316      cat confdefs.h
2317      echo
2318    fi
2319    test "$ac_signal" != 0 &&
2320      $as_echo "$as_me: caught signal $ac_signal"
2321    $as_echo "$as_me: exit $exit_status"
2322  } >&5
2323  rm -f core *.core core.conftest.* &&
2324    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2325    exit $exit_status
2326' 0
2327for ac_signal in 1 2 13 15; do
2328  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2329done
2330ac_signal=0
2331
2332# confdefs.h avoids OS command line length limits that DEFS can exceed.
2333rm -f -r conftest* confdefs.h
2334
2335$as_echo "/* confdefs.h */" > confdefs.h
2336
2337# Predefined preprocessor variables.
2338
2339cat >>confdefs.h <<_ACEOF
2340#define PACKAGE_NAME "$PACKAGE_NAME"
2341_ACEOF
2342
2343cat >>confdefs.h <<_ACEOF
2344#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2345_ACEOF
2346
2347cat >>confdefs.h <<_ACEOF
2348#define PACKAGE_VERSION "$PACKAGE_VERSION"
2349_ACEOF
2350
2351cat >>confdefs.h <<_ACEOF
2352#define PACKAGE_STRING "$PACKAGE_STRING"
2353_ACEOF
2354
2355cat >>confdefs.h <<_ACEOF
2356#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2357_ACEOF
2358
2359cat >>confdefs.h <<_ACEOF
2360#define PACKAGE_URL "$PACKAGE_URL"
2361_ACEOF
2362
2363
2364# Let the site file select an alternate cache file if it wants to.
2365# Prefer an explicitly selected file to automatically selected ones.
2366ac_site_file1=NONE
2367ac_site_file2=NONE
2368if test -n "$CONFIG_SITE"; then
2369  # We do not want a PATH search for config.site.
2370  case $CONFIG_SITE in #((
2371    -*)  ac_site_file1=./$CONFIG_SITE;;
2372    */*) ac_site_file1=$CONFIG_SITE;;
2373    *)   ac_site_file1=./$CONFIG_SITE;;
2374  esac
2375elif test "x$prefix" != xNONE; then
2376  ac_site_file1=$prefix/share/config.site
2377  ac_site_file2=$prefix/etc/config.site
2378else
2379  ac_site_file1=$ac_default_prefix/share/config.site
2380  ac_site_file2=$ac_default_prefix/etc/config.site
2381fi
2382for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2383do
2384  test "x$ac_site_file" = xNONE && continue
2385  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2386    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2387$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2388    sed 's/^/| /' "$ac_site_file" >&5
2389    . "$ac_site_file" \
2390      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2391$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2392as_fn_error $? "failed to load site script $ac_site_file
2393See \`config.log' for more details" "$LINENO" 5 ; }
2394  fi
2395done
2396
2397if test -r "$cache_file"; then
2398  # Some versions of bash will fail to source /dev/null (special files
2399  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2400  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2401    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2402$as_echo "$as_me: loading cache $cache_file" >&6;}
2403    case $cache_file in
2404      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2405      *)                      . "./$cache_file";;
2406    esac
2407  fi
2408else
2409  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2410$as_echo "$as_me: creating cache $cache_file" >&6;}
2411  >$cache_file
2412fi
2413
2414# Check that the precious variables saved in the cache have kept the same
2415# value.
2416ac_cache_corrupted=false
2417for ac_var in $ac_precious_vars; do
2418  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2419  eval ac_new_set=\$ac_env_${ac_var}_set
2420  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2421  eval ac_new_val=\$ac_env_${ac_var}_value
2422  case $ac_old_set,$ac_new_set in
2423    set,)
2424      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2425$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2426      ac_cache_corrupted=: ;;
2427    ,set)
2428      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2429$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2430      ac_cache_corrupted=: ;;
2431    ,);;
2432    *)
2433      if test "x$ac_old_val" != "x$ac_new_val"; then
2434	# differences in whitespace do not lead to failure.
2435	ac_old_val_w=`echo x $ac_old_val`
2436	ac_new_val_w=`echo x $ac_new_val`
2437	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2438	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2439$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2440	  ac_cache_corrupted=:
2441	else
2442	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2443$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2444	  eval $ac_var=\$ac_old_val
2445	fi
2446	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2447$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2448	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2449$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2450      fi;;
2451  esac
2452  # Pass precious variables to config.status.
2453  if test "$ac_new_set" = set; then
2454    case $ac_new_val in
2455    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2456    *) ac_arg=$ac_var=$ac_new_val ;;
2457    esac
2458    case " $ac_configure_args " in
2459      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2460      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2461    esac
2462  fi
2463done
2464if $ac_cache_corrupted; then
2465  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2466$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2467  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2468$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2469  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2470fi
2471## -------------------- ##
2472## Main body of script. ##
2473## -------------------- ##
2474
2475ac_ext=c
2476ac_cpp='$CPP $CPPFLAGS'
2477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2479ac_compiler_gnu=$ac_cv_c_compiler_gnu
2480
2481
2482am__api_version='1.11'
2483
2484ac_aux_dir=
2485for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2486  if test -f "$ac_dir/install-sh"; then
2487    ac_aux_dir=$ac_dir
2488    ac_install_sh="$ac_aux_dir/install-sh -c"
2489    break
2490  elif test -f "$ac_dir/install.sh"; then
2491    ac_aux_dir=$ac_dir
2492    ac_install_sh="$ac_aux_dir/install.sh -c"
2493    break
2494  elif test -f "$ac_dir/shtool"; then
2495    ac_aux_dir=$ac_dir
2496    ac_install_sh="$ac_aux_dir/shtool install -c"
2497    break
2498  fi
2499done
2500if test -z "$ac_aux_dir"; then
2501  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2502fi
2503
2504# These three variables are undocumented and unsupported,
2505# and are intended to be withdrawn in a future Autoconf release.
2506# They can cause serious problems if a builder's source tree is in a directory
2507# whose full name contains unusual characters.
2508ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2509ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2510ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2511
2512
2513# Find a good install program.  We prefer a C program (faster),
2514# so one script is as good as another.  But avoid the broken or
2515# incompatible versions:
2516# SysV /etc/install, /usr/sbin/install
2517# SunOS /usr/etc/install
2518# IRIX /sbin/install
2519# AIX /bin/install
2520# AmigaOS /C/install, which installs bootblocks on floppy discs
2521# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2522# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2523# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2524# OS/2's system install, which has a completely different semantic
2525# ./install, which can be erroneously created by make from ./install.sh.
2526# Reject install programs that cannot install multiple files.
2527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2528$as_echo_n "checking for a BSD-compatible install... " >&6; }
2529if test -z "$INSTALL"; then
2530if test "${ac_cv_path_install+set}" = set; then :
2531  $as_echo_n "(cached) " >&6
2532else
2533  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534for as_dir in $PATH
2535do
2536  IFS=$as_save_IFS
2537  test -z "$as_dir" && as_dir=.
2538    # Account for people who put trailing slashes in PATH elements.
2539case $as_dir/ in #((
2540  ./ | .// | /[cC]/* | \
2541  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2542  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2543  /usr/ucb/* ) ;;
2544  *)
2545    # OSF1 and SCO ODT 3.0 have their own names for install.
2546    # Don't use installbsd from OSF since it installs stuff as root
2547    # by default.
2548    for ac_prog in ginstall scoinst install; do
2549      for ac_exec_ext in '' $ac_executable_extensions; do
2550	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2551	  if test $ac_prog = install &&
2552	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2553	    # AIX install.  It has an incompatible calling convention.
2554	    :
2555	  elif test $ac_prog = install &&
2556	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2557	    # program-specific install script used by HP pwplus--don't use.
2558	    :
2559	  else
2560	    rm -rf conftest.one conftest.two conftest.dir
2561	    echo one > conftest.one
2562	    echo two > conftest.two
2563	    mkdir conftest.dir
2564	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2565	      test -s conftest.one && test -s conftest.two &&
2566	      test -s conftest.dir/conftest.one &&
2567	      test -s conftest.dir/conftest.two
2568	    then
2569	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2570	      break 3
2571	    fi
2572	  fi
2573	fi
2574      done
2575    done
2576    ;;
2577esac
2578
2579  done
2580IFS=$as_save_IFS
2581
2582rm -rf conftest.one conftest.two conftest.dir
2583
2584fi
2585  if test "${ac_cv_path_install+set}" = set; then
2586    INSTALL=$ac_cv_path_install
2587  else
2588    # As a last resort, use the slow shell script.  Don't cache a
2589    # value for INSTALL within a source directory, because that will
2590    # break other packages using the cache if that directory is
2591    # removed, or if the value is a relative name.
2592    INSTALL=$ac_install_sh
2593  fi
2594fi
2595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2596$as_echo "$INSTALL" >&6; }
2597
2598# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2599# It thinks the first close brace ends the variable substitution.
2600test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2601
2602test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2603
2604test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2605
2606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2607$as_echo_n "checking whether build environment is sane... " >&6; }
2608# Just in case
2609sleep 1
2610echo timestamp > conftest.file
2611# Reject unsafe characters in $srcdir or the absolute working directory
2612# name.  Accept space and tab only in the latter.
2613am_lf='
2614'
2615case `pwd` in
2616  *[\\\"\#\$\&\'\`$am_lf]*)
2617    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2618esac
2619case $srcdir in
2620  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2621    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2622esac
2623
2624# Do `set' in a subshell so we don't clobber the current shell's
2625# arguments.  Must try -L first in case configure is actually a
2626# symlink; some systems play weird games with the mod time of symlinks
2627# (eg FreeBSD returns the mod time of the symlink's containing
2628# directory).
2629if (
2630   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2631   if test "$*" = "X"; then
2632      # -L didn't work.
2633      set X `ls -t "$srcdir/configure" conftest.file`
2634   fi
2635   rm -f conftest.file
2636   if test "$*" != "X $srcdir/configure conftest.file" \
2637      && test "$*" != "X conftest.file $srcdir/configure"; then
2638
2639      # If neither matched, then we have a broken ls.  This can happen
2640      # if, for instance, CONFIG_SHELL is bash and it inherits a
2641      # broken ls alias from the environment.  This has actually
2642      # happened.  Such a system could not be considered "sane".
2643      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2644alias in your environment" "$LINENO" 5
2645   fi
2646
2647   test "$2" = conftest.file
2648   )
2649then
2650   # Ok.
2651   :
2652else
2653   as_fn_error $? "newly created file is older than distributed files!
2654Check your system clock" "$LINENO" 5
2655fi
2656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2657$as_echo "yes" >&6; }
2658test "$program_prefix" != NONE &&
2659  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2660# Use a double $ so make ignores it.
2661test "$program_suffix" != NONE &&
2662  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2663# Double any \ or $.
2664# By default was `s,x,x', remove it if useless.
2665ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2666program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2667
2668# expand $ac_aux_dir to an absolute path
2669am_aux_dir=`cd $ac_aux_dir && pwd`
2670
2671if test x"${MISSING+set}" != xset; then
2672  case $am_aux_dir in
2673  *\ * | *\	*)
2674    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2675  *)
2676    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2677  esac
2678fi
2679# Use eval to expand $SHELL
2680if eval "$MISSING --run true"; then
2681  am_missing_run="$MISSING --run "
2682else
2683  am_missing_run=
2684  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2685$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2686fi
2687
2688if test x"${install_sh}" != xset; then
2689  case $am_aux_dir in
2690  *\ * | *\	*)
2691    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2692  *)
2693    install_sh="\${SHELL} $am_aux_dir/install-sh"
2694  esac
2695fi
2696
2697# Installed binaries are usually stripped using `strip' when the user
2698# run `make install-strip'.  However `strip' might not be the right
2699# tool to use in cross-compilation environments, therefore Automake
2700# will honor the `STRIP' environment variable to overrule this program.
2701if test "$cross_compiling" != no; then
2702  if test -n "$ac_tool_prefix"; then
2703  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2704set dummy ${ac_tool_prefix}strip; ac_word=$2
2705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2706$as_echo_n "checking for $ac_word... " >&6; }
2707if test "${ac_cv_prog_STRIP+set}" = set; then :
2708  $as_echo_n "(cached) " >&6
2709else
2710  if test -n "$STRIP"; then
2711  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2712else
2713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714for as_dir in $PATH
2715do
2716  IFS=$as_save_IFS
2717  test -z "$as_dir" && as_dir=.
2718    for ac_exec_ext in '' $ac_executable_extensions; do
2719  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2720    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2721    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2722    break 2
2723  fi
2724done
2725  done
2726IFS=$as_save_IFS
2727
2728fi
2729fi
2730STRIP=$ac_cv_prog_STRIP
2731if test -n "$STRIP"; then
2732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2733$as_echo "$STRIP" >&6; }
2734else
2735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2736$as_echo "no" >&6; }
2737fi
2738
2739
2740fi
2741if test -z "$ac_cv_prog_STRIP"; then
2742  ac_ct_STRIP=$STRIP
2743  # Extract the first word of "strip", so it can be a program name with args.
2744set dummy strip; ac_word=$2
2745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2746$as_echo_n "checking for $ac_word... " >&6; }
2747if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2748  $as_echo_n "(cached) " >&6
2749else
2750  if test -n "$ac_ct_STRIP"; then
2751  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2752else
2753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2754for as_dir in $PATH
2755do
2756  IFS=$as_save_IFS
2757  test -z "$as_dir" && as_dir=.
2758    for ac_exec_ext in '' $ac_executable_extensions; do
2759  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2760    ac_cv_prog_ac_ct_STRIP="strip"
2761    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2762    break 2
2763  fi
2764done
2765  done
2766IFS=$as_save_IFS
2767
2768fi
2769fi
2770ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2771if test -n "$ac_ct_STRIP"; then
2772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2773$as_echo "$ac_ct_STRIP" >&6; }
2774else
2775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2776$as_echo "no" >&6; }
2777fi
2778
2779  if test "x$ac_ct_STRIP" = x; then
2780    STRIP=":"
2781  else
2782    case $cross_compiling:$ac_tool_warned in
2783yes:)
2784{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2785$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2786ac_tool_warned=yes ;;
2787esac
2788    STRIP=$ac_ct_STRIP
2789  fi
2790else
2791  STRIP="$ac_cv_prog_STRIP"
2792fi
2793
2794fi
2795INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2796
2797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2798$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2799if test -z "$MKDIR_P"; then
2800  if test "${ac_cv_path_mkdir+set}" = set; then :
2801  $as_echo_n "(cached) " >&6
2802else
2803  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2805do
2806  IFS=$as_save_IFS
2807  test -z "$as_dir" && as_dir=.
2808    for ac_prog in mkdir gmkdir; do
2809	 for ac_exec_ext in '' $ac_executable_extensions; do
2810	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2811	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2812	     'mkdir (GNU coreutils) '* | \
2813	     'mkdir (coreutils) '* | \
2814	     'mkdir (fileutils) '4.1*)
2815	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2816	       break 3;;
2817	   esac
2818	 done
2819       done
2820  done
2821IFS=$as_save_IFS
2822
2823fi
2824
2825  test -d ./--version && rmdir ./--version
2826  if test "${ac_cv_path_mkdir+set}" = set; then
2827    MKDIR_P="$ac_cv_path_mkdir -p"
2828  else
2829    # As a last resort, use the slow shell script.  Don't cache a
2830    # value for MKDIR_P within a source directory, because that will
2831    # break other packages using the cache if that directory is
2832    # removed, or if the value is a relative name.
2833    MKDIR_P="$ac_install_sh -d"
2834  fi
2835fi
2836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2837$as_echo "$MKDIR_P" >&6; }
2838
2839mkdir_p="$MKDIR_P"
2840case $mkdir_p in
2841  [\\/$]* | ?:[\\/]*) ;;
2842  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2843esac
2844
2845for ac_prog in gawk mawk nawk awk
2846do
2847  # Extract the first word of "$ac_prog", so it can be a program name with args.
2848set dummy $ac_prog; ac_word=$2
2849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2850$as_echo_n "checking for $ac_word... " >&6; }
2851if test "${ac_cv_prog_AWK+set}" = set; then :
2852  $as_echo_n "(cached) " >&6
2853else
2854  if test -n "$AWK"; then
2855  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2856else
2857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858for as_dir in $PATH
2859do
2860  IFS=$as_save_IFS
2861  test -z "$as_dir" && as_dir=.
2862    for ac_exec_ext in '' $ac_executable_extensions; do
2863  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2864    ac_cv_prog_AWK="$ac_prog"
2865    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2866    break 2
2867  fi
2868done
2869  done
2870IFS=$as_save_IFS
2871
2872fi
2873fi
2874AWK=$ac_cv_prog_AWK
2875if test -n "$AWK"; then
2876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2877$as_echo "$AWK" >&6; }
2878else
2879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2880$as_echo "no" >&6; }
2881fi
2882
2883
2884  test -n "$AWK" && break
2885done
2886
2887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2888$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2889set x ${MAKE-make}
2890ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2891if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2892  $as_echo_n "(cached) " >&6
2893else
2894  cat >conftest.make <<\_ACEOF
2895SHELL = /bin/sh
2896all:
2897	@echo '@@@%%%=$(MAKE)=@@@%%%'
2898_ACEOF
2899# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2900case `${MAKE-make} -f conftest.make 2>/dev/null` in
2901  *@@@%%%=?*=@@@%%%*)
2902    eval ac_cv_prog_make_${ac_make}_set=yes;;
2903  *)
2904    eval ac_cv_prog_make_${ac_make}_set=no;;
2905esac
2906rm -f conftest.make
2907fi
2908if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2910$as_echo "yes" >&6; }
2911  SET_MAKE=
2912else
2913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2914$as_echo "no" >&6; }
2915  SET_MAKE="MAKE=${MAKE-make}"
2916fi
2917
2918rm -rf .tst 2>/dev/null
2919mkdir .tst 2>/dev/null
2920if test -d .tst; then
2921  am__leading_dot=.
2922else
2923  am__leading_dot=_
2924fi
2925rmdir .tst 2>/dev/null
2926
2927if test "`cd $srcdir && pwd`" != "`pwd`"; then
2928  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2929  # is not polluted with repeated "-I."
2930  am__isrc=' -I$(srcdir)'
2931  # test to see if srcdir already configured
2932  if test -f $srcdir/config.status; then
2933    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2934  fi
2935fi
2936
2937# test whether we have cygpath
2938if test -z "$CYGPATH_W"; then
2939  if (cygpath --version) >/dev/null 2>/dev/null; then
2940    CYGPATH_W='cygpath -w'
2941  else
2942    CYGPATH_W=echo
2943  fi
2944fi
2945
2946
2947# Define the identity of the package.
2948 PACKAGE=rawstudio
2949 VERSION=2.0
2950
2951
2952cat >>confdefs.h <<_ACEOF
2953#define PACKAGE "$PACKAGE"
2954_ACEOF
2955
2956
2957cat >>confdefs.h <<_ACEOF
2958#define VERSION "$VERSION"
2959_ACEOF
2960
2961# Some tools Automake needs.
2962
2963ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2964
2965
2966AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2967
2968
2969AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2970
2971
2972AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2973
2974
2975MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2976
2977# We need awk for the "check" target.  The system "awk" is bad on
2978# some platforms.
2979# Always define AMTAR for backward compatibility.
2980
2981AMTAR=${AMTAR-"${am_missing_run}tar"}
2982
2983am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2984
2985
2986
2987
2988
2989ac_config_headers="$ac_config_headers config.h"
2990
2991
2992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2993$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2994    # Check whether --enable-maintainer-mode was given.
2995if test "${enable_maintainer_mode+set}" = set; then :
2996  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2997else
2998  USE_MAINTAINER_MODE=no
2999fi
3000
3001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3002$as_echo "$USE_MAINTAINER_MODE" >&6; }
3003   if test $USE_MAINTAINER_MODE = yes; then
3004  MAINTAINER_MODE_TRUE=
3005  MAINTAINER_MODE_FALSE='#'
3006else
3007  MAINTAINER_MODE_TRUE='#'
3008  MAINTAINER_MODE_FALSE=
3009fi
3010
3011  MAINT=$MAINTAINER_MODE_TRUE
3012
3013
3014case `pwd` in
3015  *\ * | *\	*)
3016    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3017$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3018esac
3019
3020
3021
3022macro_version='2.2.6b'
3023macro_revision='1.3017'
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037ltmain="$ac_aux_dir/ltmain.sh"
3038
3039# Make sure we can run config.sub.
3040$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3041  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3042
3043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3044$as_echo_n "checking build system type... " >&6; }
3045if test "${ac_cv_build+set}" = set; then :
3046  $as_echo_n "(cached) " >&6
3047else
3048  ac_build_alias=$build_alias
3049test "x$ac_build_alias" = x &&
3050  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3051test "x$ac_build_alias" = x &&
3052  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3053ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3054  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3055
3056fi
3057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3058$as_echo "$ac_cv_build" >&6; }
3059case $ac_cv_build in
3060*-*-*) ;;
3061*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
3062esac
3063build=$ac_cv_build
3064ac_save_IFS=$IFS; IFS='-'
3065set x $ac_cv_build
3066shift
3067build_cpu=$1
3068build_vendor=$2
3069shift; shift
3070# Remember, the first character of IFS is used to create $*,
3071# except with old shells:
3072build_os=$*
3073IFS=$ac_save_IFS
3074case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3075
3076
3077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3078$as_echo_n "checking host system type... " >&6; }
3079if test "${ac_cv_host+set}" = set; then :
3080  $as_echo_n "(cached) " >&6
3081else
3082  if test "x$host_alias" = x; then
3083  ac_cv_host=$ac_cv_build
3084else
3085  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3086    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3087fi
3088
3089fi
3090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3091$as_echo "$ac_cv_host" >&6; }
3092case $ac_cv_host in
3093*-*-*) ;;
3094*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
3095esac
3096host=$ac_cv_host
3097ac_save_IFS=$IFS; IFS='-'
3098set x $ac_cv_host
3099shift
3100host_cpu=$1
3101host_vendor=$2
3102shift; shift
3103# Remember, the first character of IFS is used to create $*,
3104# except with old shells:
3105host_os=$*
3106IFS=$ac_save_IFS
3107case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3108
3109
3110DEPDIR="${am__leading_dot}deps"
3111
3112ac_config_commands="$ac_config_commands depfiles"
3113
3114
3115am_make=${MAKE-make}
3116cat > confinc << 'END'
3117am__doit:
3118	@echo this is the am__doit target
3119.PHONY: am__doit
3120END
3121# If we don't find an include directive, just comment out the code.
3122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3123$as_echo_n "checking for style of include used by $am_make... " >&6; }
3124am__include="#"
3125am__quote=
3126_am_result=none
3127# First try GNU make style include.
3128echo "include confinc" > confmf
3129# Ignore all kinds of additional output from `make'.
3130case `$am_make -s -f confmf 2> /dev/null` in #(
3131*the\ am__doit\ target*)
3132  am__include=include
3133  am__quote=
3134  _am_result=GNU
3135  ;;
3136esac
3137# Now try BSD make style include.
3138if test "$am__include" = "#"; then
3139   echo '.include "confinc"' > confmf
3140   case `$am_make -s -f confmf 2> /dev/null` in #(
3141   *the\ am__doit\ target*)
3142     am__include=.include
3143     am__quote="\""
3144     _am_result=BSD
3145     ;;
3146   esac
3147fi
3148
3149
3150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3151$as_echo "$_am_result" >&6; }
3152rm -f confinc confmf
3153
3154# Check whether --enable-dependency-tracking was given.
3155if test "${enable_dependency_tracking+set}" = set; then :
3156  enableval=$enable_dependency_tracking;
3157fi
3158
3159if test "x$enable_dependency_tracking" != xno; then
3160  am_depcomp="$ac_aux_dir/depcomp"
3161  AMDEPBACKSLASH='\'
3162fi
3163 if test "x$enable_dependency_tracking" != xno; then
3164  AMDEP_TRUE=
3165  AMDEP_FALSE='#'
3166else
3167  AMDEP_TRUE='#'
3168  AMDEP_FALSE=
3169fi
3170
3171
3172ac_ext=c
3173ac_cpp='$CPP $CPPFLAGS'
3174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3176ac_compiler_gnu=$ac_cv_c_compiler_gnu
3177if test -n "$ac_tool_prefix"; then
3178  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3179set dummy ${ac_tool_prefix}gcc; ac_word=$2
3180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3181$as_echo_n "checking for $ac_word... " >&6; }
3182if test "${ac_cv_prog_CC+set}" = set; then :
3183  $as_echo_n "(cached) " >&6
3184else
3185  if test -n "$CC"; then
3186  ac_cv_prog_CC="$CC" # Let the user override the test.
3187else
3188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3189for as_dir in $PATH
3190do
3191  IFS=$as_save_IFS
3192  test -z "$as_dir" && as_dir=.
3193    for ac_exec_ext in '' $ac_executable_extensions; do
3194  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3195    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3196    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3197    break 2
3198  fi
3199done
3200  done
3201IFS=$as_save_IFS
3202
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 "$ac_cv_prog_CC"; then
3217  ac_ct_CC=$CC
3218  # Extract the first word of "gcc", so it can be a program name with args.
3219set dummy gcc; ac_word=$2
3220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3221$as_echo_n "checking for $ac_word... " >&6; }
3222if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3223  $as_echo_n "(cached) " >&6
3224else
3225  if test -n "$ac_ct_CC"; then
3226  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3227else
3228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229for as_dir in $PATH
3230do
3231  IFS=$as_save_IFS
3232  test -z "$as_dir" && as_dir=.
3233    for ac_exec_ext in '' $ac_executable_extensions; do
3234  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3235    ac_cv_prog_ac_ct_CC="gcc"
3236    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3237    break 2
3238  fi
3239done
3240  done
3241IFS=$as_save_IFS
3242
3243fi
3244fi
3245ac_ct_CC=$ac_cv_prog_ac_ct_CC
3246if test -n "$ac_ct_CC"; then
3247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3248$as_echo "$ac_ct_CC" >&6; }
3249else
3250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3251$as_echo "no" >&6; }
3252fi
3253
3254  if test "x$ac_ct_CC" = x; then
3255    CC=""
3256  else
3257    case $cross_compiling:$ac_tool_warned in
3258yes:)
3259{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3260$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3261ac_tool_warned=yes ;;
3262esac
3263    CC=$ac_ct_CC
3264  fi
3265else
3266  CC="$ac_cv_prog_CC"
3267fi
3268
3269if test -z "$CC"; then
3270          if test -n "$ac_tool_prefix"; then
3271    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3272set dummy ${ac_tool_prefix}cc; ac_word=$2
3273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3274$as_echo_n "checking for $ac_word... " >&6; }
3275if test "${ac_cv_prog_CC+set}" = set; then :
3276  $as_echo_n "(cached) " >&6
3277else
3278  if test -n "$CC"; then
3279  ac_cv_prog_CC="$CC" # Let the user override the test.
3280else
3281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282for as_dir in $PATH
3283do
3284  IFS=$as_save_IFS
3285  test -z "$as_dir" && as_dir=.
3286    for ac_exec_ext in '' $ac_executable_extensions; do
3287  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3288    ac_cv_prog_CC="${ac_tool_prefix}cc"
3289    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3290    break 2
3291  fi
3292done
3293  done
3294IFS=$as_save_IFS
3295
3296fi
3297fi
3298CC=$ac_cv_prog_CC
3299if test -n "$CC"; then
3300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3301$as_echo "$CC" >&6; }
3302else
3303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3304$as_echo "no" >&6; }
3305fi
3306
3307
3308  fi
3309fi
3310if test -z "$CC"; then
3311  # Extract the first word of "cc", so it can be a program name with args.
3312set dummy cc; ac_word=$2
3313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3314$as_echo_n "checking for $ac_word... " >&6; }
3315if test "${ac_cv_prog_CC+set}" = set; then :
3316  $as_echo_n "(cached) " >&6
3317else
3318  if test -n "$CC"; then
3319  ac_cv_prog_CC="$CC" # Let the user override the test.
3320else
3321  ac_prog_rejected=no
3322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323for as_dir in $PATH
3324do
3325  IFS=$as_save_IFS
3326  test -z "$as_dir" && as_dir=.
3327    for ac_exec_ext in '' $ac_executable_extensions; do
3328  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3329    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3330       ac_prog_rejected=yes
3331       continue
3332     fi
3333    ac_cv_prog_CC="cc"
3334    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3335    break 2
3336  fi
3337done
3338  done
3339IFS=$as_save_IFS
3340
3341if test $ac_prog_rejected = yes; then
3342  # We found a bogon in the path, so make sure we never use it.
3343  set dummy $ac_cv_prog_CC
3344  shift
3345  if test $# != 0; then
3346    # We chose a different compiler from the bogus one.
3347    # However, it has the same basename, so the bogon will be chosen
3348    # first if we set CC to just the basename; use the full file name.
3349    shift
3350    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3351  fi
3352fi
3353fi
3354fi
3355CC=$ac_cv_prog_CC
3356if test -n "$CC"; then
3357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3358$as_echo "$CC" >&6; }
3359else
3360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3361$as_echo "no" >&6; }
3362fi
3363
3364
3365fi
3366if test -z "$CC"; then
3367  if test -n "$ac_tool_prefix"; then
3368  for ac_prog in cl.exe
3369  do
3370    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3371set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3373$as_echo_n "checking for $ac_word... " >&6; }
3374if test "${ac_cv_prog_CC+set}" = set; then :
3375  $as_echo_n "(cached) " >&6
3376else
3377  if test -n "$CC"; then
3378  ac_cv_prog_CC="$CC" # Let the user override the test.
3379else
3380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381for as_dir in $PATH
3382do
3383  IFS=$as_save_IFS
3384  test -z "$as_dir" && as_dir=.
3385    for ac_exec_ext in '' $ac_executable_extensions; do
3386  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3387    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3388    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3389    break 2
3390  fi
3391done
3392  done
3393IFS=$as_save_IFS
3394
3395fi
3396fi
3397CC=$ac_cv_prog_CC
3398if test -n "$CC"; then
3399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3400$as_echo "$CC" >&6; }
3401else
3402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3403$as_echo "no" >&6; }
3404fi
3405
3406
3407    test -n "$CC" && break
3408  done
3409fi
3410if test -z "$CC"; then
3411  ac_ct_CC=$CC
3412  for ac_prog in cl.exe
3413do
3414  # Extract the first word of "$ac_prog", so it can be a program name with args.
3415set dummy $ac_prog; ac_word=$2
3416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3417$as_echo_n "checking for $ac_word... " >&6; }
3418if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3419  $as_echo_n "(cached) " >&6
3420else
3421  if test -n "$ac_ct_CC"; then
3422  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3423else
3424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3425for as_dir in $PATH
3426do
3427  IFS=$as_save_IFS
3428  test -z "$as_dir" && as_dir=.
3429    for ac_exec_ext in '' $ac_executable_extensions; do
3430  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3431    ac_cv_prog_ac_ct_CC="$ac_prog"
3432    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3433    break 2
3434  fi
3435done
3436  done
3437IFS=$as_save_IFS
3438
3439fi
3440fi
3441ac_ct_CC=$ac_cv_prog_ac_ct_CC
3442if test -n "$ac_ct_CC"; then
3443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3444$as_echo "$ac_ct_CC" >&6; }
3445else
3446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3447$as_echo "no" >&6; }
3448fi
3449
3450
3451  test -n "$ac_ct_CC" && break
3452done
3453
3454  if test "x$ac_ct_CC" = x; then
3455    CC=""
3456  else
3457    case $cross_compiling:$ac_tool_warned in
3458yes:)
3459{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3460$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3461ac_tool_warned=yes ;;
3462esac
3463    CC=$ac_ct_CC
3464  fi
3465fi
3466
3467fi
3468
3469
3470test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3471$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3472as_fn_error $? "no acceptable C compiler found in \$PATH
3473See \`config.log' for more details" "$LINENO" 5 ; }
3474
3475# Provide some information about the compiler.
3476$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3477set X $ac_compile
3478ac_compiler=$2
3479for ac_option in --version -v -V -qversion; do
3480  { { ac_try="$ac_compiler $ac_option >&5"
3481case "(($ac_try" in
3482  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483  *) ac_try_echo=$ac_try;;
3484esac
3485eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3486$as_echo "$ac_try_echo"; } >&5
3487  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3488  ac_status=$?
3489  if test -s conftest.err; then
3490    sed '10a\
3491... rest of stderr output deleted ...
3492         10q' conftest.err >conftest.er1
3493    cat conftest.er1 >&5
3494  fi
3495  rm -f conftest.er1 conftest.err
3496  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3497  test $ac_status = 0; }
3498done
3499
3500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3501/* end confdefs.h.  */
3502
3503int
3504main ()
3505{
3506
3507  ;
3508  return 0;
3509}
3510_ACEOF
3511ac_clean_files_save=$ac_clean_files
3512ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3513# Try to create an executable without -o first, disregard a.out.
3514# It will help us diagnose broken compilers, and finding out an intuition
3515# of exeext.
3516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3517$as_echo_n "checking whether the C compiler works... " >&6; }
3518ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3519
3520# The possible output files:
3521ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3522
3523ac_rmfiles=
3524for ac_file in $ac_files
3525do
3526  case $ac_file in
3527    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3528    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3529  esac
3530done
3531rm -f $ac_rmfiles
3532
3533if { { ac_try="$ac_link_default"
3534case "(($ac_try" in
3535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3536  *) ac_try_echo=$ac_try;;
3537esac
3538eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3539$as_echo "$ac_try_echo"; } >&5
3540  (eval "$ac_link_default") 2>&5
3541  ac_status=$?
3542  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3543  test $ac_status = 0; }; then :
3544  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3545# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3546# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3547# so that the user can short-circuit this test for compilers unknown to
3548# Autoconf.
3549for ac_file in $ac_files ''
3550do
3551  test -f "$ac_file" || continue
3552  case $ac_file in
3553    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3554	;;
3555    [ab].out )
3556	# We found the default executable, but exeext='' is most
3557	# certainly right.
3558	break;;
3559    *.* )
3560	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3561	then :; else
3562	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3563	fi
3564	# We set ac_cv_exeext here because the later test for it is not
3565	# safe: cross compilers may not add the suffix if given an `-o'
3566	# argument, so we may need to know it at that point already.
3567	# Even if this section looks crufty: it has the advantage of
3568	# actually working.
3569	break;;
3570    * )
3571	break;;
3572  esac
3573done
3574test "$ac_cv_exeext" = no && ac_cv_exeext=
3575
3576else
3577  ac_file=''
3578fi
3579if test -z "$ac_file"; then :
3580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3581$as_echo "no" >&6; }
3582$as_echo "$as_me: failed program was:" >&5
3583sed 's/^/| /' conftest.$ac_ext >&5
3584
3585{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3586$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3587as_fn_error 77 "C compiler cannot create executables
3588See \`config.log' for more details" "$LINENO" 5 ; }
3589else
3590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3591$as_echo "yes" >&6; }
3592fi
3593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3594$as_echo_n "checking for C compiler default output file name... " >&6; }
3595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3596$as_echo "$ac_file" >&6; }
3597ac_exeext=$ac_cv_exeext
3598
3599rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3600ac_clean_files=$ac_clean_files_save
3601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3602$as_echo_n "checking for suffix of executables... " >&6; }
3603if { { ac_try="$ac_link"
3604case "(($ac_try" in
3605  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606  *) ac_try_echo=$ac_try;;
3607esac
3608eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3609$as_echo "$ac_try_echo"; } >&5
3610  (eval "$ac_link") 2>&5
3611  ac_status=$?
3612  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3613  test $ac_status = 0; }; then :
3614  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3615# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3616# work properly (i.e., refer to `conftest.exe'), while it won't with
3617# `rm'.
3618for ac_file in conftest.exe conftest conftest.*; do
3619  test -f "$ac_file" || continue
3620  case $ac_file in
3621    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3622    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3623	  break;;
3624    * ) break;;
3625  esac
3626done
3627else
3628  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3629$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3630as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3631See \`config.log' for more details" "$LINENO" 5 ; }
3632fi
3633rm -f conftest conftest$ac_cv_exeext
3634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3635$as_echo "$ac_cv_exeext" >&6; }
3636
3637rm -f conftest.$ac_ext
3638EXEEXT=$ac_cv_exeext
3639ac_exeext=$EXEEXT
3640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3641/* end confdefs.h.  */
3642#include <stdio.h>
3643int
3644main ()
3645{
3646FILE *f = fopen ("conftest.out", "w");
3647 return ferror (f) || fclose (f) != 0;
3648
3649  ;
3650  return 0;
3651}
3652_ACEOF
3653ac_clean_files="$ac_clean_files conftest.out"
3654# Check that the compiler produces executables we can run.  If not, either
3655# the compiler is broken, or we cross compile.
3656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3657$as_echo_n "checking whether we are cross compiling... " >&6; }
3658if test "$cross_compiling" != yes; then
3659  { { ac_try="$ac_link"
3660case "(($ac_try" in
3661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3662  *) ac_try_echo=$ac_try;;
3663esac
3664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3665$as_echo "$ac_try_echo"; } >&5
3666  (eval "$ac_link") 2>&5
3667  ac_status=$?
3668  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3669  test $ac_status = 0; }
3670  if { ac_try='./conftest$ac_cv_exeext'
3671  { { case "(($ac_try" in
3672  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673  *) ac_try_echo=$ac_try;;
3674esac
3675eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3676$as_echo "$ac_try_echo"; } >&5
3677  (eval "$ac_try") 2>&5
3678  ac_status=$?
3679  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3680  test $ac_status = 0; }; }; then
3681    cross_compiling=no
3682  else
3683    if test "$cross_compiling" = maybe; then
3684	cross_compiling=yes
3685    else
3686	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3687$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3688as_fn_error $? "cannot run C compiled programs.
3689If you meant to cross compile, use \`--host'.
3690See \`config.log' for more details" "$LINENO" 5 ; }
3691    fi
3692  fi
3693fi
3694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3695$as_echo "$cross_compiling" >&6; }
3696
3697rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3698ac_clean_files=$ac_clean_files_save
3699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3700$as_echo_n "checking for suffix of object files... " >&6; }
3701if test "${ac_cv_objext+set}" = set; then :
3702  $as_echo_n "(cached) " >&6
3703else
3704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3705/* end confdefs.h.  */
3706
3707int
3708main ()
3709{
3710
3711  ;
3712  return 0;
3713}
3714_ACEOF
3715rm -f conftest.o conftest.obj
3716if { { ac_try="$ac_compile"
3717case "(($ac_try" in
3718  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3719  *) ac_try_echo=$ac_try;;
3720esac
3721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3722$as_echo "$ac_try_echo"; } >&5
3723  (eval "$ac_compile") 2>&5
3724  ac_status=$?
3725  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3726  test $ac_status = 0; }; then :
3727  for ac_file in conftest.o conftest.obj conftest.*; do
3728  test -f "$ac_file" || continue;
3729  case $ac_file in
3730    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3731    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3732       break;;
3733  esac
3734done
3735else
3736  $as_echo "$as_me: failed program was:" >&5
3737sed 's/^/| /' conftest.$ac_ext >&5
3738
3739{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3740$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3741as_fn_error $? "cannot compute suffix of object files: cannot compile
3742See \`config.log' for more details" "$LINENO" 5 ; }
3743fi
3744rm -f conftest.$ac_cv_objext conftest.$ac_ext
3745fi
3746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3747$as_echo "$ac_cv_objext" >&6; }
3748OBJEXT=$ac_cv_objext
3749ac_objext=$OBJEXT
3750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3751$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3752if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3753  $as_echo_n "(cached) " >&6
3754else
3755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756/* end confdefs.h.  */
3757
3758int
3759main ()
3760{
3761#ifndef __GNUC__
3762       choke me
3763#endif
3764
3765  ;
3766  return 0;
3767}
3768_ACEOF
3769if ac_fn_c_try_compile "$LINENO"; then :
3770  ac_compiler_gnu=yes
3771else
3772  ac_compiler_gnu=no
3773fi
3774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3775ac_cv_c_compiler_gnu=$ac_compiler_gnu
3776
3777fi
3778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3779$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3780if test $ac_compiler_gnu = yes; then
3781  GCC=yes
3782else
3783  GCC=
3784fi
3785ac_test_CFLAGS=${CFLAGS+set}
3786ac_save_CFLAGS=$CFLAGS
3787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3788$as_echo_n "checking whether $CC accepts -g... " >&6; }
3789if test "${ac_cv_prog_cc_g+set}" = set; then :
3790  $as_echo_n "(cached) " >&6
3791else
3792  ac_save_c_werror_flag=$ac_c_werror_flag
3793   ac_c_werror_flag=yes
3794   ac_cv_prog_cc_g=no
3795   CFLAGS="-g"
3796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797/* end confdefs.h.  */
3798
3799int
3800main ()
3801{
3802
3803  ;
3804  return 0;
3805}
3806_ACEOF
3807if ac_fn_c_try_compile "$LINENO"; then :
3808  ac_cv_prog_cc_g=yes
3809else
3810  CFLAGS=""
3811      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3812/* end confdefs.h.  */
3813
3814int
3815main ()
3816{
3817
3818  ;
3819  return 0;
3820}
3821_ACEOF
3822if ac_fn_c_try_compile "$LINENO"; then :
3823
3824else
3825  ac_c_werror_flag=$ac_save_c_werror_flag
3826	 CFLAGS="-g"
3827	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3828/* end confdefs.h.  */
3829
3830int
3831main ()
3832{
3833
3834  ;
3835  return 0;
3836}
3837_ACEOF
3838if ac_fn_c_try_compile "$LINENO"; then :
3839  ac_cv_prog_cc_g=yes
3840fi
3841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3842fi
3843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3844fi
3845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3846   ac_c_werror_flag=$ac_save_c_werror_flag
3847fi
3848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3849$as_echo "$ac_cv_prog_cc_g" >&6; }
3850if test "$ac_test_CFLAGS" = set; then
3851  CFLAGS=$ac_save_CFLAGS
3852elif test $ac_cv_prog_cc_g = yes; then
3853  if test "$GCC" = yes; then
3854    CFLAGS="-g -O2"
3855  else
3856    CFLAGS="-g"
3857  fi
3858else
3859  if test "$GCC" = yes; then
3860    CFLAGS="-O2"
3861  else
3862    CFLAGS=
3863  fi
3864fi
3865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3866$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3867if test "${ac_cv_prog_cc_c89+set}" = set; then :
3868  $as_echo_n "(cached) " >&6
3869else
3870  ac_cv_prog_cc_c89=no
3871ac_save_CC=$CC
3872cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873/* end confdefs.h.  */
3874#include <stdarg.h>
3875#include <stdio.h>
3876#include <sys/types.h>
3877#include <sys/stat.h>
3878/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3879struct buf { int x; };
3880FILE * (*rcsopen) (struct buf *, struct stat *, int);
3881static char *e (p, i)
3882     char **p;
3883     int i;
3884{
3885  return p[i];
3886}
3887static char *f (char * (*g) (char **, int), char **p, ...)
3888{
3889  char *s;
3890  va_list v;
3891  va_start (v,p);
3892  s = g (p, va_arg (v,int));
3893  va_end (v);
3894  return s;
3895}
3896
3897/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3898   function prototypes and stuff, but not '\xHH' hex character constants.
3899   These don't provoke an error unfortunately, instead are silently treated
3900   as 'x'.  The following induces an error, until -std is added to get
3901   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3902   array size at least.  It's necessary to write '\x00'==0 to get something
3903   that's true only with -std.  */
3904int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3905
3906/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3907   inside strings and character constants.  */
3908#define FOO(x) 'x'
3909int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3910
3911int test (int i, double x);
3912struct s1 {int (*f) (int a);};
3913struct s2 {int (*f) (double a);};
3914int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3915int argc;
3916char **argv;
3917int
3918main ()
3919{
3920return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3921  ;
3922  return 0;
3923}
3924_ACEOF
3925for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3926	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3927do
3928  CC="$ac_save_CC $ac_arg"
3929  if ac_fn_c_try_compile "$LINENO"; then :
3930  ac_cv_prog_cc_c89=$ac_arg
3931fi
3932rm -f core conftest.err conftest.$ac_objext
3933  test "x$ac_cv_prog_cc_c89" != "xno" && break
3934done
3935rm -f conftest.$ac_ext
3936CC=$ac_save_CC
3937
3938fi
3939# AC_CACHE_VAL
3940case "x$ac_cv_prog_cc_c89" in
3941  x)
3942    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3943$as_echo "none needed" >&6; } ;;
3944  xno)
3945    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3946$as_echo "unsupported" >&6; } ;;
3947  *)
3948    CC="$CC $ac_cv_prog_cc_c89"
3949    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3950$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3951esac
3952if test "x$ac_cv_prog_cc_c89" != xno; then :
3953
3954fi
3955
3956ac_ext=c
3957ac_cpp='$CPP $CPPFLAGS'
3958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3960ac_compiler_gnu=$ac_cv_c_compiler_gnu
3961
3962depcc="$CC"   am_compiler_list=
3963
3964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3965$as_echo_n "checking dependency style of $depcc... " >&6; }
3966if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3967  $as_echo_n "(cached) " >&6
3968else
3969  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3970  # We make a subdir and do the tests there.  Otherwise we can end up
3971  # making bogus files that we don't know about and never remove.  For
3972  # instance it was reported that on HP-UX the gcc test will end up
3973  # making a dummy file named `D' -- because `-MD' means `put the output
3974  # in D'.
3975  mkdir conftest.dir
3976  # Copy depcomp to subdir because otherwise we won't find it if we're
3977  # using a relative directory.
3978  cp "$am_depcomp" conftest.dir
3979  cd conftest.dir
3980  # We will build objects and dependencies in a subdirectory because
3981  # it helps to detect inapplicable dependency modes.  For instance
3982  # both Tru64's cc and ICC support -MD to output dependencies as a
3983  # side effect of compilation, but ICC will put the dependencies in
3984  # the current directory while Tru64 will put them in the object
3985  # directory.
3986  mkdir sub
3987
3988  am_cv_CC_dependencies_compiler_type=none
3989  if test "$am_compiler_list" = ""; then
3990     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3991  fi
3992  am__universal=false
3993  case " $depcc " in #(
3994     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3995     esac
3996
3997  for depmode in $am_compiler_list; do
3998    # Setup a source with many dependencies, because some compilers
3999    # like to wrap large dependency lists on column 80 (with \), and
4000    # we should not choose a depcomp mode which is confused by this.
4001    #
4002    # We need to recreate these files for each test, as the compiler may
4003    # overwrite some of them when testing with obscure command lines.
4004    # This happens at least with the AIX C compiler.
4005    : > sub/conftest.c
4006    for i in 1 2 3 4 5 6; do
4007      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4008      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4009      # Solaris 8's {/usr,}/bin/sh.
4010      touch sub/conftst$i.h
4011    done
4012    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4013
4014    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4015    # mode.  It turns out that the SunPro C++ compiler does not properly
4016    # handle `-M -o', and we need to detect this.  Also, some Intel
4017    # versions had trouble with output in subdirs
4018    am__obj=sub/conftest.${OBJEXT-o}
4019    am__minus_obj="-o $am__obj"
4020    case $depmode in
4021    gcc)
4022      # This depmode causes a compiler race in universal mode.
4023      test "$am__universal" = false || continue
4024      ;;
4025    nosideeffect)
4026      # after this tag, mechanisms are not by side-effect, so they'll
4027      # only be used when explicitly requested
4028      if test "x$enable_dependency_tracking" = xyes; then
4029	continue
4030      else
4031	break
4032      fi
4033      ;;
4034    msvisualcpp | msvcmsys)
4035      # This compiler won't grok `-c -o', but also, the minuso test has
4036      # not run yet.  These depmodes are late enough in the game, and
4037      # so weak that their functioning should not be impacted.
4038      am__obj=conftest.${OBJEXT-o}
4039      am__minus_obj=
4040      ;;
4041    none) break ;;
4042    esac
4043    if depmode=$depmode \
4044       source=sub/conftest.c object=$am__obj \
4045       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4046       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4047         >/dev/null 2>conftest.err &&
4048       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4049       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4050       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4051       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4052      # icc doesn't choke on unknown options, it will just issue warnings
4053      # or remarks (even with -Werror).  So we grep stderr for any message
4054      # that says an option was ignored or not supported.
4055      # When given -MP, icc 7.0 and 7.1 complain thusly:
4056      #   icc: Command line warning: ignoring option '-M'; no argument required
4057      # The diagnosis changed in icc 8.0:
4058      #   icc: Command line remark: option '-MP' not supported
4059      if (grep 'ignoring option' conftest.err ||
4060          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4061        am_cv_CC_dependencies_compiler_type=$depmode
4062        break
4063      fi
4064    fi
4065  done
4066
4067  cd ..
4068  rm -rf conftest.dir
4069else
4070  am_cv_CC_dependencies_compiler_type=none
4071fi
4072
4073fi
4074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4075$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4076CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4077
4078 if
4079  test "x$enable_dependency_tracking" != xno \
4080  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4081  am__fastdepCC_TRUE=
4082  am__fastdepCC_FALSE='#'
4083else
4084  am__fastdepCC_TRUE='#'
4085  am__fastdepCC_FALSE=
4086fi
4087
4088
4089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4090$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4091if test "${ac_cv_path_SED+set}" = set; then :
4092  $as_echo_n "(cached) " >&6
4093else
4094            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4095     for ac_i in 1 2 3 4 5 6 7; do
4096       ac_script="$ac_script$as_nl$ac_script"
4097     done
4098     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4099     { ac_script=; unset ac_script;}
4100     if test -z "$SED"; then
4101  ac_path_SED_found=false
4102  # Loop through the user's path and test for each of PROGNAME-LIST
4103  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4104for as_dir in $PATH
4105do
4106  IFS=$as_save_IFS
4107  test -z "$as_dir" && as_dir=.
4108    for ac_prog in sed gsed; do
4109    for ac_exec_ext in '' $ac_executable_extensions; do
4110      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4111      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4112# Check for GNU ac_path_SED and select it if it is found.
4113  # Check for GNU $ac_path_SED
4114case `"$ac_path_SED" --version 2>&1` in
4115*GNU*)
4116  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4117*)
4118  ac_count=0
4119  $as_echo_n 0123456789 >"conftest.in"
4120  while :
4121  do
4122    cat "conftest.in" "conftest.in" >"conftest.tmp"
4123    mv "conftest.tmp" "conftest.in"
4124    cp "conftest.in" "conftest.nl"
4125    $as_echo '' >> "conftest.nl"
4126    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4127    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4128    as_fn_arith $ac_count + 1 && ac_count=$as_val
4129    if test $ac_count -gt ${ac_path_SED_max-0}; then
4130      # Best one so far, save it but keep looking for a better one
4131      ac_cv_path_SED="$ac_path_SED"
4132      ac_path_SED_max=$ac_count
4133    fi
4134    # 10*(2^10) chars as input seems more than enough
4135    test $ac_count -gt 10 && break
4136  done
4137  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4138esac
4139
4140      $ac_path_SED_found && break 3
4141    done
4142  done
4143  done
4144IFS=$as_save_IFS
4145  if test -z "$ac_cv_path_SED"; then
4146    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4147  fi
4148else
4149  ac_cv_path_SED=$SED
4150fi
4151
4152fi
4153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4154$as_echo "$ac_cv_path_SED" >&6; }
4155 SED="$ac_cv_path_SED"
4156  rm -f conftest.sed
4157
4158test -z "$SED" && SED=sed
4159Xsed="$SED -e 1s/^X//"
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4172$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4173if test "${ac_cv_path_GREP+set}" = set; then :
4174  $as_echo_n "(cached) " >&6
4175else
4176  if test -z "$GREP"; then
4177  ac_path_GREP_found=false
4178  # Loop through the user's path and test for each of PROGNAME-LIST
4179  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4181do
4182  IFS=$as_save_IFS
4183  test -z "$as_dir" && as_dir=.
4184    for ac_prog in grep ggrep; do
4185    for ac_exec_ext in '' $ac_executable_extensions; do
4186      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4187      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4188# Check for GNU ac_path_GREP and select it if it is found.
4189  # Check for GNU $ac_path_GREP
4190case `"$ac_path_GREP" --version 2>&1` in
4191*GNU*)
4192  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4193*)
4194  ac_count=0
4195  $as_echo_n 0123456789 >"conftest.in"
4196  while :
4197  do
4198    cat "conftest.in" "conftest.in" >"conftest.tmp"
4199    mv "conftest.tmp" "conftest.in"
4200    cp "conftest.in" "conftest.nl"
4201    $as_echo 'GREP' >> "conftest.nl"
4202    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4203    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4204    as_fn_arith $ac_count + 1 && ac_count=$as_val
4205    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4206      # Best one so far, save it but keep looking for a better one
4207      ac_cv_path_GREP="$ac_path_GREP"
4208      ac_path_GREP_max=$ac_count
4209    fi
4210    # 10*(2^10) chars as input seems more than enough
4211    test $ac_count -gt 10 && break
4212  done
4213  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4214esac
4215
4216      $ac_path_GREP_found && break 3
4217    done
4218  done
4219  done
4220IFS=$as_save_IFS
4221  if test -z "$ac_cv_path_GREP"; then
4222    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4223  fi
4224else
4225  ac_cv_path_GREP=$GREP
4226fi
4227
4228fi
4229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4230$as_echo "$ac_cv_path_GREP" >&6; }
4231 GREP="$ac_cv_path_GREP"
4232
4233
4234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4235$as_echo_n "checking for egrep... " >&6; }
4236if test "${ac_cv_path_EGREP+set}" = set; then :
4237  $as_echo_n "(cached) " >&6
4238else
4239  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4240   then ac_cv_path_EGREP="$GREP -E"
4241   else
4242     if test -z "$EGREP"; then
4243  ac_path_EGREP_found=false
4244  # Loop through the user's path and test for each of PROGNAME-LIST
4245  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4247do
4248  IFS=$as_save_IFS
4249  test -z "$as_dir" && as_dir=.
4250    for ac_prog in egrep; do
4251    for ac_exec_ext in '' $ac_executable_extensions; do
4252      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4253      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4254# Check for GNU ac_path_EGREP and select it if it is found.
4255  # Check for GNU $ac_path_EGREP
4256case `"$ac_path_EGREP" --version 2>&1` in
4257*GNU*)
4258  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4259*)
4260  ac_count=0
4261  $as_echo_n 0123456789 >"conftest.in"
4262  while :
4263  do
4264    cat "conftest.in" "conftest.in" >"conftest.tmp"
4265    mv "conftest.tmp" "conftest.in"
4266    cp "conftest.in" "conftest.nl"
4267    $as_echo 'EGREP' >> "conftest.nl"
4268    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4269    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4270    as_fn_arith $ac_count + 1 && ac_count=$as_val
4271    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4272      # Best one so far, save it but keep looking for a better one
4273      ac_cv_path_EGREP="$ac_path_EGREP"
4274      ac_path_EGREP_max=$ac_count
4275    fi
4276    # 10*(2^10) chars as input seems more than enough
4277    test $ac_count -gt 10 && break
4278  done
4279  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4280esac
4281
4282      $ac_path_EGREP_found && break 3
4283    done
4284  done
4285  done
4286IFS=$as_save_IFS
4287  if test -z "$ac_cv_path_EGREP"; then
4288    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4289  fi
4290else
4291  ac_cv_path_EGREP=$EGREP
4292fi
4293
4294   fi
4295fi
4296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4297$as_echo "$ac_cv_path_EGREP" >&6; }
4298 EGREP="$ac_cv_path_EGREP"
4299
4300
4301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4302$as_echo_n "checking for fgrep... " >&6; }
4303if test "${ac_cv_path_FGREP+set}" = set; then :
4304  $as_echo_n "(cached) " >&6
4305else
4306  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4307   then ac_cv_path_FGREP="$GREP -F"
4308   else
4309     if test -z "$FGREP"; then
4310  ac_path_FGREP_found=false
4311  # Loop through the user's path and test for each of PROGNAME-LIST
4312  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4314do
4315  IFS=$as_save_IFS
4316  test -z "$as_dir" && as_dir=.
4317    for ac_prog in fgrep; do
4318    for ac_exec_ext in '' $ac_executable_extensions; do
4319      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4320      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4321# Check for GNU ac_path_FGREP and select it if it is found.
4322  # Check for GNU $ac_path_FGREP
4323case `"$ac_path_FGREP" --version 2>&1` in
4324*GNU*)
4325  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4326*)
4327  ac_count=0
4328  $as_echo_n 0123456789 >"conftest.in"
4329  while :
4330  do
4331    cat "conftest.in" "conftest.in" >"conftest.tmp"
4332    mv "conftest.tmp" "conftest.in"
4333    cp "conftest.in" "conftest.nl"
4334    $as_echo 'FGREP' >> "conftest.nl"
4335    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4336    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4337    as_fn_arith $ac_count + 1 && ac_count=$as_val
4338    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4339      # Best one so far, save it but keep looking for a better one
4340      ac_cv_path_FGREP="$ac_path_FGREP"
4341      ac_path_FGREP_max=$ac_count
4342    fi
4343    # 10*(2^10) chars as input seems more than enough
4344    test $ac_count -gt 10 && break
4345  done
4346  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4347esac
4348
4349      $ac_path_FGREP_found && break 3
4350    done
4351  done
4352  done
4353IFS=$as_save_IFS
4354  if test -z "$ac_cv_path_FGREP"; then
4355    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4356  fi
4357else
4358  ac_cv_path_FGREP=$FGREP
4359fi
4360
4361   fi
4362fi
4363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4364$as_echo "$ac_cv_path_FGREP" >&6; }
4365 FGREP="$ac_cv_path_FGREP"
4366
4367
4368test -z "$GREP" && GREP=grep
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388# Check whether --with-gnu-ld was given.
4389if test "${with_gnu_ld+set}" = set; then :
4390  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4391else
4392  with_gnu_ld=no
4393fi
4394
4395ac_prog=ld
4396if test "$GCC" = yes; then
4397  # Check if gcc -print-prog-name=ld gives a path.
4398  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4399$as_echo_n "checking for ld used by $CC... " >&6; }
4400  case $host in
4401  *-*-mingw*)
4402    # gcc leaves a trailing carriage return which upsets mingw
4403    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4404  *)
4405    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4406  esac
4407  case $ac_prog in
4408    # Accept absolute paths.
4409    [\\/]* | ?:[\\/]*)
4410      re_direlt='/[^/][^/]*/\.\./'
4411      # Canonicalize the pathname of ld
4412      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4413      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4414	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4415      done
4416      test -z "$LD" && LD="$ac_prog"
4417      ;;
4418  "")
4419    # If it fails, then pretend we aren't using GCC.
4420    ac_prog=ld
4421    ;;
4422  *)
4423    # If it is relative, then search for the first ld in PATH.
4424    with_gnu_ld=unknown
4425    ;;
4426  esac
4427elif test "$with_gnu_ld" = yes; then
4428  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4429$as_echo_n "checking for GNU ld... " >&6; }
4430else
4431  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4432$as_echo_n "checking for non-GNU ld... " >&6; }
4433fi
4434if test "${lt_cv_path_LD+set}" = set; then :
4435  $as_echo_n "(cached) " >&6
4436else
4437  if test -z "$LD"; then
4438  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4439  for ac_dir in $PATH; do
4440    IFS="$lt_save_ifs"
4441    test -z "$ac_dir" && ac_dir=.
4442    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4443      lt_cv_path_LD="$ac_dir/$ac_prog"
4444      # Check to see if the program is GNU ld.  I'd rather use --version,
4445      # but apparently some variants of GNU ld only accept -v.
4446      # Break only if it was the GNU/non-GNU ld that we prefer.
4447      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4448      *GNU* | *'with BFD'*)
4449	test "$with_gnu_ld" != no && break
4450	;;
4451      *)
4452	test "$with_gnu_ld" != yes && break
4453	;;
4454      esac
4455    fi
4456  done
4457  IFS="$lt_save_ifs"
4458else
4459  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4460fi
4461fi
4462
4463LD="$lt_cv_path_LD"
4464if test -n "$LD"; then
4465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4466$as_echo "$LD" >&6; }
4467else
4468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4469$as_echo "no" >&6; }
4470fi
4471test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4473$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4474if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4475  $as_echo_n "(cached) " >&6
4476else
4477  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4478case `$LD -v 2>&1 </dev/null` in
4479*GNU* | *'with BFD'*)
4480  lt_cv_prog_gnu_ld=yes
4481  ;;
4482*)
4483  lt_cv_prog_gnu_ld=no
4484  ;;
4485esac
4486fi
4487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4488$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4489with_gnu_ld=$lt_cv_prog_gnu_ld
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4500$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4501if test "${lt_cv_path_NM+set}" = set; then :
4502  $as_echo_n "(cached) " >&6
4503else
4504  if test -n "$NM"; then
4505  # Let the user override the test.
4506  lt_cv_path_NM="$NM"
4507else
4508  lt_nm_to_check="${ac_tool_prefix}nm"
4509  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4510    lt_nm_to_check="$lt_nm_to_check nm"
4511  fi
4512  for lt_tmp_nm in $lt_nm_to_check; do
4513    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4514    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4515      IFS="$lt_save_ifs"
4516      test -z "$ac_dir" && ac_dir=.
4517      tmp_nm="$ac_dir/$lt_tmp_nm"
4518      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4519	# Check to see if the nm accepts a BSD-compat flag.
4520	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4521	#   nm: unknown option "B" ignored
4522	# Tru64's nm complains that /dev/null is an invalid object file
4523	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4524	*/dev/null* | *'Invalid file or object type'*)
4525	  lt_cv_path_NM="$tmp_nm -B"
4526	  break
4527	  ;;
4528	*)
4529	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4530	  */dev/null*)
4531	    lt_cv_path_NM="$tmp_nm -p"
4532	    break
4533	    ;;
4534	  *)
4535	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4536	    continue # so that we can try to find one that supports BSD flags
4537	    ;;
4538	  esac
4539	  ;;
4540	esac
4541      fi
4542    done
4543    IFS="$lt_save_ifs"
4544  done
4545  : ${lt_cv_path_NM=no}
4546fi
4547fi
4548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4549$as_echo "$lt_cv_path_NM" >&6; }
4550if test "$lt_cv_path_NM" != "no"; then
4551  NM="$lt_cv_path_NM"
4552else
4553  # Didn't find any BSD compatible name lister, look for dumpbin.
4554  if test -n "$ac_tool_prefix"; then
4555  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4556  do
4557    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4558set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4560$as_echo_n "checking for $ac_word... " >&6; }
4561if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4562  $as_echo_n "(cached) " >&6
4563else
4564  if test -n "$DUMPBIN"; then
4565  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4566else
4567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568for as_dir in $PATH
4569do
4570  IFS=$as_save_IFS
4571  test -z "$as_dir" && as_dir=.
4572    for ac_exec_ext in '' $ac_executable_extensions; do
4573  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4574    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4575    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4576    break 2
4577  fi
4578done
4579  done
4580IFS=$as_save_IFS
4581
4582fi
4583fi
4584DUMPBIN=$ac_cv_prog_DUMPBIN
4585if test -n "$DUMPBIN"; then
4586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4587$as_echo "$DUMPBIN" >&6; }
4588else
4589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4590$as_echo "no" >&6; }
4591fi
4592
4593
4594    test -n "$DUMPBIN" && break
4595  done
4596fi
4597if test -z "$DUMPBIN"; then
4598  ac_ct_DUMPBIN=$DUMPBIN
4599  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4600do
4601  # Extract the first word of "$ac_prog", so it can be a program name with args.
4602set dummy $ac_prog; ac_word=$2
4603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4604$as_echo_n "checking for $ac_word... " >&6; }
4605if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4606  $as_echo_n "(cached) " >&6
4607else
4608  if test -n "$ac_ct_DUMPBIN"; then
4609  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4610else
4611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612for as_dir in $PATH
4613do
4614  IFS=$as_save_IFS
4615  test -z "$as_dir" && as_dir=.
4616    for ac_exec_ext in '' $ac_executable_extensions; do
4617  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4618    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4619    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4620    break 2
4621  fi
4622done
4623  done
4624IFS=$as_save_IFS
4625
4626fi
4627fi
4628ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4629if test -n "$ac_ct_DUMPBIN"; then
4630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4631$as_echo "$ac_ct_DUMPBIN" >&6; }
4632else
4633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4634$as_echo "no" >&6; }
4635fi
4636
4637
4638  test -n "$ac_ct_DUMPBIN" && break
4639done
4640
4641  if test "x$ac_ct_DUMPBIN" = x; then
4642    DUMPBIN=":"
4643  else
4644    case $cross_compiling:$ac_tool_warned in
4645yes:)
4646{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4647$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4648ac_tool_warned=yes ;;
4649esac
4650    DUMPBIN=$ac_ct_DUMPBIN
4651  fi
4652fi
4653
4654
4655  if test "$DUMPBIN" != ":"; then
4656    NM="$DUMPBIN"
4657  fi
4658fi
4659test -z "$NM" && NM=nm
4660
4661
4662
4663
4664
4665
4666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4667$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4668if test "${lt_cv_nm_interface+set}" = set; then :
4669  $as_echo_n "(cached) " >&6
4670else
4671  lt_cv_nm_interface="BSD nm"
4672  echo "int some_variable = 0;" > conftest.$ac_ext
4673  (eval echo "\"\$as_me:4673: $ac_compile\"" >&5)
4674  (eval "$ac_compile" 2>conftest.err)
4675  cat conftest.err >&5
4676  (eval echo "\"\$as_me:4676: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4677  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4678  cat conftest.err >&5
4679  (eval echo "\"\$as_me:4679: output\"" >&5)
4680  cat conftest.out >&5
4681  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4682    lt_cv_nm_interface="MS dumpbin"
4683  fi
4684  rm -f conftest*
4685fi
4686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4687$as_echo "$lt_cv_nm_interface" >&6; }
4688
4689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4690$as_echo_n "checking whether ln -s works... " >&6; }
4691LN_S=$as_ln_s
4692if test "$LN_S" = "ln -s"; then
4693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4694$as_echo "yes" >&6; }
4695else
4696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4697$as_echo "no, using $LN_S" >&6; }
4698fi
4699
4700# find the maximum length of command line arguments
4701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4702$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4703if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4704  $as_echo_n "(cached) " >&6
4705else
4706    i=0
4707  teststring="ABCD"
4708
4709  case $build_os in
4710  msdosdjgpp*)
4711    # On DJGPP, this test can blow up pretty badly due to problems in libc
4712    # (any single argument exceeding 2000 bytes causes a buffer overrun
4713    # during glob expansion).  Even if it were fixed, the result of this
4714    # check would be larger than it should be.
4715    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4716    ;;
4717
4718  gnu*)
4719    # Under GNU Hurd, this test is not required because there is
4720    # no limit to the length of command line arguments.
4721    # Libtool will interpret -1 as no limit whatsoever
4722    lt_cv_sys_max_cmd_len=-1;
4723    ;;
4724
4725  cygwin* | mingw* | cegcc*)
4726    # On Win9x/ME, this test blows up -- it succeeds, but takes
4727    # about 5 minutes as the teststring grows exponentially.
4728    # Worse, since 9x/ME are not pre-emptively multitasking,
4729    # you end up with a "frozen" computer, even though with patience
4730    # the test eventually succeeds (with a max line length of 256k).
4731    # Instead, let's just punt: use the minimum linelength reported by
4732    # all of the supported platforms: 8192 (on NT/2K/XP).
4733    lt_cv_sys_max_cmd_len=8192;
4734    ;;
4735
4736  amigaos*)
4737    # On AmigaOS with pdksh, this test takes hours, literally.
4738    # So we just punt and use a minimum line length of 8192.
4739    lt_cv_sys_max_cmd_len=8192;
4740    ;;
4741
4742  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4743    # This has been around since 386BSD, at least.  Likely further.
4744    if test -x /sbin/sysctl; then
4745      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4746    elif test -x /usr/sbin/sysctl; then
4747      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4748    else
4749      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4750    fi
4751    # And add a safety zone
4752    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4753    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4754    ;;
4755
4756  interix*)
4757    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4758    lt_cv_sys_max_cmd_len=196608
4759    ;;
4760
4761  osf*)
4762    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4763    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4764    # nice to cause kernel panics so lets avoid the loop below.
4765    # First set a reasonable default.
4766    lt_cv_sys_max_cmd_len=16384
4767    #
4768    if test -x /sbin/sysconfig; then
4769      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4770        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4771      esac
4772    fi
4773    ;;
4774  sco3.2v5*)
4775    lt_cv_sys_max_cmd_len=102400
4776    ;;
4777  sysv5* | sco5v6* | sysv4.2uw2*)
4778    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4779    if test -n "$kargmax"; then
4780      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4781    else
4782      lt_cv_sys_max_cmd_len=32768
4783    fi
4784    ;;
4785  *)
4786    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4787    if test -n "$lt_cv_sys_max_cmd_len"; then
4788      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4789      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4790    else
4791      # Make teststring a little bigger before we do anything with it.
4792      # a 1K string should be a reasonable start.
4793      for i in 1 2 3 4 5 6 7 8 ; do
4794        teststring=$teststring$teststring
4795      done
4796      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4797      # If test is not a shell built-in, we'll probably end up computing a
4798      # maximum length that is only half of the actual maximum length, but
4799      # we can't tell.
4800      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4801	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4802	      test $i != 17 # 1/2 MB should be enough
4803      do
4804        i=`expr $i + 1`
4805        teststring=$teststring$teststring
4806      done
4807      # Only check the string length outside the loop.
4808      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4809      teststring=
4810      # Add a significant safety factor because C++ compilers can tack on
4811      # massive amounts of additional arguments before passing them to the
4812      # linker.  It appears as though 1/2 is a usable value.
4813      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4814    fi
4815    ;;
4816  esac
4817
4818fi
4819
4820if test -n $lt_cv_sys_max_cmd_len ; then
4821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4822$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4823else
4824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4825$as_echo "none" >&6; }
4826fi
4827max_cmd_len=$lt_cv_sys_max_cmd_len
4828
4829
4830
4831
4832
4833
4834: ${CP="cp -f"}
4835: ${MV="mv -f"}
4836: ${RM="rm -f"}
4837
4838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4839$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4840# Try some XSI features
4841xsi_shell=no
4842( _lt_dummy="a/b/c"
4843  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4844      = c,a/b,, \
4845    && eval 'test $(( 1 + 1 )) -eq 2 \
4846    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4847  && xsi_shell=yes
4848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4849$as_echo "$xsi_shell" >&6; }
4850
4851
4852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4853$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4854lt_shell_append=no
4855( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4856    >/dev/null 2>&1 \
4857  && lt_shell_append=yes
4858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4859$as_echo "$lt_shell_append" >&6; }
4860
4861
4862if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4863  lt_unset=unset
4864else
4865  lt_unset=false
4866fi
4867
4868
4869
4870
4871
4872# test EBCDIC or ASCII
4873case `echo X|tr X '\101'` in
4874 A) # ASCII based system
4875    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4876  lt_SP2NL='tr \040 \012'
4877  lt_NL2SP='tr \015\012 \040\040'
4878  ;;
4879 *) # EBCDIC based system
4880  lt_SP2NL='tr \100 \n'
4881  lt_NL2SP='tr \r\n \100\100'
4882  ;;
4883esac
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4894$as_echo_n "checking for $LD option to reload object files... " >&6; }
4895if test "${lt_cv_ld_reload_flag+set}" = set; then :
4896  $as_echo_n "(cached) " >&6
4897else
4898  lt_cv_ld_reload_flag='-r'
4899fi
4900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4901$as_echo "$lt_cv_ld_reload_flag" >&6; }
4902reload_flag=$lt_cv_ld_reload_flag
4903case $reload_flag in
4904"" | " "*) ;;
4905*) reload_flag=" $reload_flag" ;;
4906esac
4907reload_cmds='$LD$reload_flag -o $output$reload_objs'
4908case $host_os in
4909  darwin*)
4910    if test "$GCC" = yes; then
4911      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4912    else
4913      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4914    fi
4915    ;;
4916esac
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926if test -n "$ac_tool_prefix"; then
4927  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4928set dummy ${ac_tool_prefix}objdump; ac_word=$2
4929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4930$as_echo_n "checking for $ac_word... " >&6; }
4931if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4932  $as_echo_n "(cached) " >&6
4933else
4934  if test -n "$OBJDUMP"; then
4935  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4936else
4937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938for as_dir in $PATH
4939do
4940  IFS=$as_save_IFS
4941  test -z "$as_dir" && as_dir=.
4942    for ac_exec_ext in '' $ac_executable_extensions; do
4943  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4944    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4945    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4946    break 2
4947  fi
4948done
4949  done
4950IFS=$as_save_IFS
4951
4952fi
4953fi
4954OBJDUMP=$ac_cv_prog_OBJDUMP
4955if test -n "$OBJDUMP"; then
4956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4957$as_echo "$OBJDUMP" >&6; }
4958else
4959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4960$as_echo "no" >&6; }
4961fi
4962
4963
4964fi
4965if test -z "$ac_cv_prog_OBJDUMP"; then
4966  ac_ct_OBJDUMP=$OBJDUMP
4967  # Extract the first word of "objdump", so it can be a program name with args.
4968set dummy objdump; ac_word=$2
4969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4970$as_echo_n "checking for $ac_word... " >&6; }
4971if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4972  $as_echo_n "(cached) " >&6
4973else
4974  if test -n "$ac_ct_OBJDUMP"; then
4975  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4976else
4977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978for as_dir in $PATH
4979do
4980  IFS=$as_save_IFS
4981  test -z "$as_dir" && as_dir=.
4982    for ac_exec_ext in '' $ac_executable_extensions; do
4983  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4984    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4985    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4986    break 2
4987  fi
4988done
4989  done
4990IFS=$as_save_IFS
4991
4992fi
4993fi
4994ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4995if test -n "$ac_ct_OBJDUMP"; then
4996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4997$as_echo "$ac_ct_OBJDUMP" >&6; }
4998else
4999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5000$as_echo "no" >&6; }
5001fi
5002
5003  if test "x$ac_ct_OBJDUMP" = x; then
5004    OBJDUMP="false"
5005  else
5006    case $cross_compiling:$ac_tool_warned in
5007yes:)
5008{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5009$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5010ac_tool_warned=yes ;;
5011esac
5012    OBJDUMP=$ac_ct_OBJDUMP
5013  fi
5014else
5015  OBJDUMP="$ac_cv_prog_OBJDUMP"
5016fi
5017
5018test -z "$OBJDUMP" && OBJDUMP=objdump
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5029$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5030if test "${lt_cv_deplibs_check_method+set}" = set; then :
5031  $as_echo_n "(cached) " >&6
5032else
5033  lt_cv_file_magic_cmd='$MAGIC_CMD'
5034lt_cv_file_magic_test_file=
5035lt_cv_deplibs_check_method='unknown'
5036# Need to set the preceding variable on all platforms that support
5037# interlibrary dependencies.
5038# 'none' -- dependencies not supported.
5039# `unknown' -- same as none, but documents that we really don't know.
5040# 'pass_all' -- all dependencies passed with no checks.
5041# 'test_compile' -- check by making test program.
5042# 'file_magic [[regex]]' -- check by looking for files in library path
5043# which responds to the $file_magic_cmd with a given extended regex.
5044# If you have `file' or equivalent on your system and you're not sure
5045# whether `pass_all' will *always* work, you probably want this one.
5046
5047case $host_os in
5048aix[4-9]*)
5049  lt_cv_deplibs_check_method=pass_all
5050  ;;
5051
5052beos*)
5053  lt_cv_deplibs_check_method=pass_all
5054  ;;
5055
5056bsdi[45]*)
5057  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5058  lt_cv_file_magic_cmd='/usr/bin/file -L'
5059  lt_cv_file_magic_test_file=/shlib/libc.so
5060  ;;
5061
5062cygwin*)
5063  # func_win32_libid is a shell function defined in ltmain.sh
5064  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5065  lt_cv_file_magic_cmd='func_win32_libid'
5066  ;;
5067
5068mingw* | pw32*)
5069  # Base MSYS/MinGW do not provide the 'file' command needed by
5070  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5071  # unless we find 'file', for example because we are cross-compiling.
5072  if ( file / ) >/dev/null 2>&1; then
5073    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5074    lt_cv_file_magic_cmd='func_win32_libid'
5075  else
5076    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5077    lt_cv_file_magic_cmd='$OBJDUMP -f'
5078  fi
5079  ;;
5080
5081cegcc)
5082  # use the weaker test based on 'objdump'. See mingw*.
5083  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5084  lt_cv_file_magic_cmd='$OBJDUMP -f'
5085  ;;
5086
5087darwin* | rhapsody*)
5088  lt_cv_deplibs_check_method=pass_all
5089  ;;
5090
5091freebsd* | dragonfly*)
5092  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5093    case $host_cpu in
5094    i*86 )
5095      # Not sure whether the presence of OpenBSD here was a mistake.
5096      # Let's accept both of them until this is cleared up.
5097      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5098      lt_cv_file_magic_cmd=/usr/bin/file
5099      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5100      ;;
5101    esac
5102  else
5103    lt_cv_deplibs_check_method=pass_all
5104  fi
5105  ;;
5106
5107gnu*)
5108  lt_cv_deplibs_check_method=pass_all
5109  ;;
5110
5111hpux10.20* | hpux11*)
5112  lt_cv_file_magic_cmd=/usr/bin/file
5113  case $host_cpu in
5114  ia64*)
5115    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5116    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5117    ;;
5118  hppa*64*)
5119    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]'
5120    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5121    ;;
5122  *)
5123    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5124    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5125    ;;
5126  esac
5127  ;;
5128
5129interix[3-9]*)
5130  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5131  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5132  ;;
5133
5134irix5* | irix6* | nonstopux*)
5135  case $LD in
5136  *-32|*"-32 ") libmagic=32-bit;;
5137  *-n32|*"-n32 ") libmagic=N32;;
5138  *-64|*"-64 ") libmagic=64-bit;;
5139  *) libmagic=never-match;;
5140  esac
5141  lt_cv_deplibs_check_method=pass_all
5142  ;;
5143
5144# This must be Linux ELF.
5145linux* | k*bsd*-gnu | kopensolaris*-gnu)
5146  lt_cv_deplibs_check_method=pass_all
5147  ;;
5148
5149netbsd* | netbsdelf*-gnu)
5150  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5151    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5152  else
5153    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5154  fi
5155  ;;
5156
5157newos6*)
5158  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5159  lt_cv_file_magic_cmd=/usr/bin/file
5160  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5161  ;;
5162
5163*nto* | *qnx*)
5164  lt_cv_deplibs_check_method=pass_all
5165  ;;
5166
5167openbsd*)
5168  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5169    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5170  else
5171    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5172  fi
5173  ;;
5174
5175osf3* | osf4* | osf5*)
5176  lt_cv_deplibs_check_method=pass_all
5177  ;;
5178
5179rdos*)
5180  lt_cv_deplibs_check_method=pass_all
5181  ;;
5182
5183solaris*)
5184  lt_cv_deplibs_check_method=pass_all
5185  ;;
5186
5187sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5188  lt_cv_deplibs_check_method=pass_all
5189  ;;
5190
5191sysv4 | sysv4.3*)
5192  case $host_vendor in
5193  motorola)
5194    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]'
5195    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5196    ;;
5197  ncr)
5198    lt_cv_deplibs_check_method=pass_all
5199    ;;
5200  sequent)
5201    lt_cv_file_magic_cmd='/bin/file'
5202    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5203    ;;
5204  sni)
5205    lt_cv_file_magic_cmd='/bin/file'
5206    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5207    lt_cv_file_magic_test_file=/lib/libc.so
5208    ;;
5209  siemens)
5210    lt_cv_deplibs_check_method=pass_all
5211    ;;
5212  pc)
5213    lt_cv_deplibs_check_method=pass_all
5214    ;;
5215  esac
5216  ;;
5217
5218tpf*)
5219  lt_cv_deplibs_check_method=pass_all
5220  ;;
5221esac
5222
5223fi
5224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5225$as_echo "$lt_cv_deplibs_check_method" >&6; }
5226file_magic_cmd=$lt_cv_file_magic_cmd
5227deplibs_check_method=$lt_cv_deplibs_check_method
5228test -z "$deplibs_check_method" && deplibs_check_method=unknown
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241if test -n "$ac_tool_prefix"; then
5242  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5243set dummy ${ac_tool_prefix}ar; ac_word=$2
5244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5245$as_echo_n "checking for $ac_word... " >&6; }
5246if test "${ac_cv_prog_AR+set}" = set; then :
5247  $as_echo_n "(cached) " >&6
5248else
5249  if test -n "$AR"; then
5250  ac_cv_prog_AR="$AR" # Let the user override the test.
5251else
5252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253for as_dir in $PATH
5254do
5255  IFS=$as_save_IFS
5256  test -z "$as_dir" && as_dir=.
5257    for ac_exec_ext in '' $ac_executable_extensions; do
5258  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5259    ac_cv_prog_AR="${ac_tool_prefix}ar"
5260    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5261    break 2
5262  fi
5263done
5264  done
5265IFS=$as_save_IFS
5266
5267fi
5268fi
5269AR=$ac_cv_prog_AR
5270if test -n "$AR"; then
5271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5272$as_echo "$AR" >&6; }
5273else
5274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5275$as_echo "no" >&6; }
5276fi
5277
5278
5279fi
5280if test -z "$ac_cv_prog_AR"; then
5281  ac_ct_AR=$AR
5282  # Extract the first word of "ar", so it can be a program name with args.
5283set dummy ar; ac_word=$2
5284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5285$as_echo_n "checking for $ac_word... " >&6; }
5286if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5287  $as_echo_n "(cached) " >&6
5288else
5289  if test -n "$ac_ct_AR"; then
5290  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5291else
5292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5293for as_dir in $PATH
5294do
5295  IFS=$as_save_IFS
5296  test -z "$as_dir" && as_dir=.
5297    for ac_exec_ext in '' $ac_executable_extensions; do
5298  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5299    ac_cv_prog_ac_ct_AR="ar"
5300    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5301    break 2
5302  fi
5303done
5304  done
5305IFS=$as_save_IFS
5306
5307fi
5308fi
5309ac_ct_AR=$ac_cv_prog_ac_ct_AR
5310if test -n "$ac_ct_AR"; then
5311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5312$as_echo "$ac_ct_AR" >&6; }
5313else
5314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5315$as_echo "no" >&6; }
5316fi
5317
5318  if test "x$ac_ct_AR" = x; then
5319    AR="false"
5320  else
5321    case $cross_compiling:$ac_tool_warned in
5322yes:)
5323{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5324$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5325ac_tool_warned=yes ;;
5326esac
5327    AR=$ac_ct_AR
5328  fi
5329else
5330  AR="$ac_cv_prog_AR"
5331fi
5332
5333test -z "$AR" && AR=ar
5334test -z "$AR_FLAGS" && AR_FLAGS=cru
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346if test -n "$ac_tool_prefix"; then
5347  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5348set dummy ${ac_tool_prefix}strip; ac_word=$2
5349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5350$as_echo_n "checking for $ac_word... " >&6; }
5351if test "${ac_cv_prog_STRIP+set}" = set; then :
5352  $as_echo_n "(cached) " >&6
5353else
5354  if test -n "$STRIP"; then
5355  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5356else
5357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358for as_dir in $PATH
5359do
5360  IFS=$as_save_IFS
5361  test -z "$as_dir" && as_dir=.
5362    for ac_exec_ext in '' $ac_executable_extensions; do
5363  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5364    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5365    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5366    break 2
5367  fi
5368done
5369  done
5370IFS=$as_save_IFS
5371
5372fi
5373fi
5374STRIP=$ac_cv_prog_STRIP
5375if test -n "$STRIP"; then
5376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5377$as_echo "$STRIP" >&6; }
5378else
5379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5380$as_echo "no" >&6; }
5381fi
5382
5383
5384fi
5385if test -z "$ac_cv_prog_STRIP"; then
5386  ac_ct_STRIP=$STRIP
5387  # Extract the first word of "strip", so it can be a program name with args.
5388set dummy strip; ac_word=$2
5389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5390$as_echo_n "checking for $ac_word... " >&6; }
5391if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5392  $as_echo_n "(cached) " >&6
5393else
5394  if test -n "$ac_ct_STRIP"; then
5395  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5396else
5397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398for as_dir in $PATH
5399do
5400  IFS=$as_save_IFS
5401  test -z "$as_dir" && as_dir=.
5402    for ac_exec_ext in '' $ac_executable_extensions; do
5403  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5404    ac_cv_prog_ac_ct_STRIP="strip"
5405    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5406    break 2
5407  fi
5408done
5409  done
5410IFS=$as_save_IFS
5411
5412fi
5413fi
5414ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5415if test -n "$ac_ct_STRIP"; then
5416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5417$as_echo "$ac_ct_STRIP" >&6; }
5418else
5419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5420$as_echo "no" >&6; }
5421fi
5422
5423  if test "x$ac_ct_STRIP" = x; then
5424    STRIP=":"
5425  else
5426    case $cross_compiling:$ac_tool_warned in
5427yes:)
5428{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5429$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5430ac_tool_warned=yes ;;
5431esac
5432    STRIP=$ac_ct_STRIP
5433  fi
5434else
5435  STRIP="$ac_cv_prog_STRIP"
5436fi
5437
5438test -z "$STRIP" && STRIP=:
5439
5440
5441
5442
5443
5444
5445if test -n "$ac_tool_prefix"; then
5446  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5447set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5449$as_echo_n "checking for $ac_word... " >&6; }
5450if test "${ac_cv_prog_RANLIB+set}" = set; then :
5451  $as_echo_n "(cached) " >&6
5452else
5453  if test -n "$RANLIB"; then
5454  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5455else
5456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457for as_dir in $PATH
5458do
5459  IFS=$as_save_IFS
5460  test -z "$as_dir" && as_dir=.
5461    for ac_exec_ext in '' $ac_executable_extensions; do
5462  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5463    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5464    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5465    break 2
5466  fi
5467done
5468  done
5469IFS=$as_save_IFS
5470
5471fi
5472fi
5473RANLIB=$ac_cv_prog_RANLIB
5474if test -n "$RANLIB"; then
5475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5476$as_echo "$RANLIB" >&6; }
5477else
5478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5479$as_echo "no" >&6; }
5480fi
5481
5482
5483fi
5484if test -z "$ac_cv_prog_RANLIB"; then
5485  ac_ct_RANLIB=$RANLIB
5486  # Extract the first word of "ranlib", so it can be a program name with args.
5487set dummy ranlib; ac_word=$2
5488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5489$as_echo_n "checking for $ac_word... " >&6; }
5490if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5491  $as_echo_n "(cached) " >&6
5492else
5493  if test -n "$ac_ct_RANLIB"; then
5494  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5495else
5496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5497for as_dir in $PATH
5498do
5499  IFS=$as_save_IFS
5500  test -z "$as_dir" && as_dir=.
5501    for ac_exec_ext in '' $ac_executable_extensions; do
5502  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5503    ac_cv_prog_ac_ct_RANLIB="ranlib"
5504    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5505    break 2
5506  fi
5507done
5508  done
5509IFS=$as_save_IFS
5510
5511fi
5512fi
5513ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5514if test -n "$ac_ct_RANLIB"; then
5515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5516$as_echo "$ac_ct_RANLIB" >&6; }
5517else
5518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519$as_echo "no" >&6; }
5520fi
5521
5522  if test "x$ac_ct_RANLIB" = x; then
5523    RANLIB=":"
5524  else
5525    case $cross_compiling:$ac_tool_warned in
5526yes:)
5527{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5528$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5529ac_tool_warned=yes ;;
5530esac
5531    RANLIB=$ac_ct_RANLIB
5532  fi
5533else
5534  RANLIB="$ac_cv_prog_RANLIB"
5535fi
5536
5537test -z "$RANLIB" && RANLIB=:
5538
5539
5540
5541
5542
5543
5544# Determine commands to create old-style static archives.
5545old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5546old_postinstall_cmds='chmod 644 $oldlib'
5547old_postuninstall_cmds=
5548
5549if test -n "$RANLIB"; then
5550  case $host_os in
5551  openbsd*)
5552    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5553    ;;
5554  *)
5555    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5556    ;;
5557  esac
5558  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5559fi
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594# If no C compiler was specified, use CC.
5595LTCC=${LTCC-"$CC"}
5596
5597# If no C compiler flags were specified, use CFLAGS.
5598LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5599
5600# Allow CC to be a program name with arguments.
5601compiler=$CC
5602
5603
5604# Check for command to grab the raw symbol name followed by C symbol from nm.
5605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5606$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5607if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5608  $as_echo_n "(cached) " >&6
5609else
5610
5611# These are sane defaults that work on at least a few old systems.
5612# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5613
5614# Character class describing NM global symbol codes.
5615symcode='[BCDEGRST]'
5616
5617# Regexp to match symbols that can be accessed directly from C.
5618sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5619
5620# Define system-specific variables.
5621case $host_os in
5622aix*)
5623  symcode='[BCDT]'
5624  ;;
5625cygwin* | mingw* | pw32* | cegcc*)
5626  symcode='[ABCDGISTW]'
5627  ;;
5628hpux*)
5629  if test "$host_cpu" = ia64; then
5630    symcode='[ABCDEGRST]'
5631  fi
5632  ;;
5633irix* | nonstopux*)
5634  symcode='[BCDEGRST]'
5635  ;;
5636osf*)
5637  symcode='[BCDEGQRST]'
5638  ;;
5639solaris*)
5640  symcode='[BDRT]'
5641  ;;
5642sco3.2v5*)
5643  symcode='[DT]'
5644  ;;
5645sysv4.2uw2*)
5646  symcode='[DT]'
5647  ;;
5648sysv5* | sco5v6* | unixware* | OpenUNIX*)
5649  symcode='[ABDT]'
5650  ;;
5651sysv4)
5652  symcode='[DFNSTU]'
5653  ;;
5654esac
5655
5656# If we're using GNU nm, then use its standard symbol codes.
5657case `$NM -V 2>&1` in
5658*GNU* | *'with BFD'*)
5659  symcode='[ABCDGIRSTW]' ;;
5660esac
5661
5662# Transform an extracted symbol line into a proper C declaration.
5663# Some systems (esp. on ia64) link data and code symbols differently,
5664# so use this general approach.
5665lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5666
5667# Transform an extracted symbol line into symbol name and symbol address
5668lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5669lt_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'"
5670
5671# Handle CRLF in mingw tool chain
5672opt_cr=
5673case $build_os in
5674mingw*)
5675  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5676  ;;
5677esac
5678
5679# Try without a prefix underscore, then with it.
5680for ac_symprfx in "" "_"; do
5681
5682  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5683  symxfrm="\\1 $ac_symprfx\\2 \\2"
5684
5685  # Write the raw and C identifiers.
5686  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5687    # Fake it for dumpbin and say T for any non-static function
5688    # and D for any global variable.
5689    # Also find C++ and __fastcall symbols from MSVC++,
5690    # which start with @ or ?.
5691    lt_cv_sys_global_symbol_pipe="$AWK '"\
5692"     {last_section=section; section=\$ 3};"\
5693"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5694"     \$ 0!~/External *\|/{next};"\
5695"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5696"     {if(hide[section]) next};"\
5697"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5698"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5699"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5700"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5701"     ' prfx=^$ac_symprfx"
5702  else
5703    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5704  fi
5705
5706  # Check to see that the pipe works correctly.
5707  pipe_works=no
5708
5709  rm -f conftest*
5710  cat > conftest.$ac_ext <<_LT_EOF
5711#ifdef __cplusplus
5712extern "C" {
5713#endif
5714char nm_test_var;
5715void nm_test_func(void);
5716void nm_test_func(void){}
5717#ifdef __cplusplus
5718}
5719#endif
5720int main(){nm_test_var='a';nm_test_func();return(0);}
5721_LT_EOF
5722
5723  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5724  (eval $ac_compile) 2>&5
5725  ac_status=$?
5726  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5727  test $ac_status = 0; }; then
5728    # Now try to grab the symbols.
5729    nlist=conftest.nm
5730    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5731  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5732  ac_status=$?
5733  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5734  test $ac_status = 0; } && test -s "$nlist"; then
5735      # Try sorting and uniquifying the output.
5736      if sort "$nlist" | uniq > "$nlist"T; then
5737	mv -f "$nlist"T "$nlist"
5738      else
5739	rm -f "$nlist"T
5740      fi
5741
5742      # Make sure that we snagged all the symbols we need.
5743      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5744	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5745	  cat <<_LT_EOF > conftest.$ac_ext
5746#ifdef __cplusplus
5747extern "C" {
5748#endif
5749
5750_LT_EOF
5751	  # Now generate the symbol file.
5752	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5753
5754	  cat <<_LT_EOF >> conftest.$ac_ext
5755
5756/* The mapping between symbol names and symbols.  */
5757const struct {
5758  const char *name;
5759  void       *address;
5760}
5761lt__PROGRAM__LTX_preloaded_symbols[] =
5762{
5763  { "@PROGRAM@", (void *) 0 },
5764_LT_EOF
5765	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5766	  cat <<\_LT_EOF >> conftest.$ac_ext
5767  {0, (void *) 0}
5768};
5769
5770/* This works around a problem in FreeBSD linker */
5771#ifdef FREEBSD_WORKAROUND
5772static const void *lt_preloaded_setup() {
5773  return lt__PROGRAM__LTX_preloaded_symbols;
5774}
5775#endif
5776
5777#ifdef __cplusplus
5778}
5779#endif
5780_LT_EOF
5781	  # Now try linking the two files.
5782	  mv conftest.$ac_objext conftstm.$ac_objext
5783	  lt_save_LIBS="$LIBS"
5784	  lt_save_CFLAGS="$CFLAGS"
5785	  LIBS="conftstm.$ac_objext"
5786	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5787	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5788  (eval $ac_link) 2>&5
5789  ac_status=$?
5790  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5791  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5792	    pipe_works=yes
5793	  fi
5794	  LIBS="$lt_save_LIBS"
5795	  CFLAGS="$lt_save_CFLAGS"
5796	else
5797	  echo "cannot find nm_test_func in $nlist" >&5
5798	fi
5799      else
5800	echo "cannot find nm_test_var in $nlist" >&5
5801      fi
5802    else
5803      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5804    fi
5805  else
5806    echo "$progname: failed program was:" >&5
5807    cat conftest.$ac_ext >&5
5808  fi
5809  rm -rf conftest* conftst*
5810
5811  # Do not use the global_symbol_pipe unless it works.
5812  if test "$pipe_works" = yes; then
5813    break
5814  else
5815    lt_cv_sys_global_symbol_pipe=
5816  fi
5817done
5818
5819fi
5820
5821if test -z "$lt_cv_sys_global_symbol_pipe"; then
5822  lt_cv_sys_global_symbol_to_cdecl=
5823fi
5824if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5826$as_echo "failed" >&6; }
5827else
5828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5829$as_echo "ok" >&6; }
5830fi
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854# Check whether --enable-libtool-lock was given.
5855if test "${enable_libtool_lock+set}" = set; then :
5856  enableval=$enable_libtool_lock;
5857fi
5858
5859test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5860
5861# Some flags need to be propagated to the compiler or linker for good
5862# libtool support.
5863case $host in
5864ia64-*-hpux*)
5865  # Find out which ABI we are using.
5866  echo 'int i;' > conftest.$ac_ext
5867  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5868  (eval $ac_compile) 2>&5
5869  ac_status=$?
5870  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5871  test $ac_status = 0; }; then
5872    case `/usr/bin/file conftest.$ac_objext` in
5873      *ELF-32*)
5874	HPUX_IA64_MODE="32"
5875	;;
5876      *ELF-64*)
5877	HPUX_IA64_MODE="64"
5878	;;
5879    esac
5880  fi
5881  rm -rf conftest*
5882  ;;
5883*-*-irix6*)
5884  # Find out which ABI we are using.
5885  echo '#line 5885 "configure"' > conftest.$ac_ext
5886  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5887  (eval $ac_compile) 2>&5
5888  ac_status=$?
5889  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5890  test $ac_status = 0; }; then
5891    if test "$lt_cv_prog_gnu_ld" = yes; then
5892      case `/usr/bin/file conftest.$ac_objext` in
5893	*32-bit*)
5894	  LD="${LD-ld} -melf32bsmip"
5895	  ;;
5896	*N32*)
5897	  LD="${LD-ld} -melf32bmipn32"
5898	  ;;
5899	*64-bit*)
5900	  LD="${LD-ld} -melf64bmip"
5901	;;
5902      esac
5903    else
5904      case `/usr/bin/file conftest.$ac_objext` in
5905	*32-bit*)
5906	  LD="${LD-ld} -32"
5907	  ;;
5908	*N32*)
5909	  LD="${LD-ld} -n32"
5910	  ;;
5911	*64-bit*)
5912	  LD="${LD-ld} -64"
5913	  ;;
5914      esac
5915    fi
5916  fi
5917  rm -rf conftest*
5918  ;;
5919
5920x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5921s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5922  # Find out which ABI we are using.
5923  echo 'int i;' > conftest.$ac_ext
5924  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5925  (eval $ac_compile) 2>&5
5926  ac_status=$?
5927  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5928  test $ac_status = 0; }; then
5929    case `/usr/bin/file conftest.o` in
5930      *32-bit*)
5931	case $host in
5932	  x86_64-*kfreebsd*-gnu)
5933	    LD="${LD-ld} -m elf_i386_fbsd"
5934	    ;;
5935	  x86_64-*linux*)
5936	    LD="${LD-ld} -m elf_i386"
5937	    ;;
5938	  ppc64-*linux*|powerpc64-*linux*)
5939	    LD="${LD-ld} -m elf32ppclinux"
5940	    ;;
5941	  s390x-*linux*)
5942	    LD="${LD-ld} -m elf_s390"
5943	    ;;
5944	  sparc64-*linux*)
5945	    LD="${LD-ld} -m elf32_sparc"
5946	    ;;
5947	esac
5948	;;
5949      *64-bit*)
5950	case $host in
5951	  x86_64-*kfreebsd*-gnu)
5952	    LD="${LD-ld} -m elf_x86_64_fbsd"
5953	    ;;
5954	  x86_64-*linux*)
5955	    LD="${LD-ld} -m elf_x86_64"
5956	    ;;
5957	  ppc*-*linux*|powerpc*-*linux*)
5958	    LD="${LD-ld} -m elf64ppc"
5959	    ;;
5960	  s390*-*linux*|s390*-*tpf*)
5961	    LD="${LD-ld} -m elf64_s390"
5962	    ;;
5963	  sparc*-*linux*)
5964	    LD="${LD-ld} -m elf64_sparc"
5965	    ;;
5966	esac
5967	;;
5968    esac
5969  fi
5970  rm -rf conftest*
5971  ;;
5972
5973*-*-sco3.2v5*)
5974  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5975  SAVE_CFLAGS="$CFLAGS"
5976  CFLAGS="$CFLAGS -belf"
5977  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5978$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5979if test "${lt_cv_cc_needs_belf+set}" = set; then :
5980  $as_echo_n "(cached) " >&6
5981else
5982  ac_ext=c
5983ac_cpp='$CPP $CPPFLAGS'
5984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5986ac_compiler_gnu=$ac_cv_c_compiler_gnu
5987
5988     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5989/* end confdefs.h.  */
5990
5991int
5992main ()
5993{
5994
5995  ;
5996  return 0;
5997}
5998_ACEOF
5999if ac_fn_c_try_link "$LINENO"; then :
6000  lt_cv_cc_needs_belf=yes
6001else
6002  lt_cv_cc_needs_belf=no
6003fi
6004rm -f core conftest.err conftest.$ac_objext \
6005    conftest$ac_exeext conftest.$ac_ext
6006     ac_ext=c
6007ac_cpp='$CPP $CPPFLAGS'
6008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6010ac_compiler_gnu=$ac_cv_c_compiler_gnu
6011
6012fi
6013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6014$as_echo "$lt_cv_cc_needs_belf" >&6; }
6015  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6016    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6017    CFLAGS="$SAVE_CFLAGS"
6018  fi
6019  ;;
6020sparc*-*solaris*)
6021  # Find out which ABI we are using.
6022  echo 'int i;' > conftest.$ac_ext
6023  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6024  (eval $ac_compile) 2>&5
6025  ac_status=$?
6026  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6027  test $ac_status = 0; }; then
6028    case `/usr/bin/file conftest.o` in
6029    *64-bit*)
6030      case $lt_cv_prog_gnu_ld in
6031      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6032      *)
6033	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6034	  LD="${LD-ld} -64"
6035	fi
6036	;;
6037      esac
6038      ;;
6039    esac
6040  fi
6041  rm -rf conftest*
6042  ;;
6043esac
6044
6045need_locks="$enable_libtool_lock"
6046
6047
6048  case $host_os in
6049    rhapsody* | darwin*)
6050    if test -n "$ac_tool_prefix"; then
6051  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6052set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6054$as_echo_n "checking for $ac_word... " >&6; }
6055if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6056  $as_echo_n "(cached) " >&6
6057else
6058  if test -n "$DSYMUTIL"; then
6059  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6060else
6061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062for as_dir in $PATH
6063do
6064  IFS=$as_save_IFS
6065  test -z "$as_dir" && as_dir=.
6066    for ac_exec_ext in '' $ac_executable_extensions; do
6067  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6068    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6069    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6070    break 2
6071  fi
6072done
6073  done
6074IFS=$as_save_IFS
6075
6076fi
6077fi
6078DSYMUTIL=$ac_cv_prog_DSYMUTIL
6079if test -n "$DSYMUTIL"; then
6080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6081$as_echo "$DSYMUTIL" >&6; }
6082else
6083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6084$as_echo "no" >&6; }
6085fi
6086
6087
6088fi
6089if test -z "$ac_cv_prog_DSYMUTIL"; then
6090  ac_ct_DSYMUTIL=$DSYMUTIL
6091  # Extract the first word of "dsymutil", so it can be a program name with args.
6092set dummy dsymutil; ac_word=$2
6093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6094$as_echo_n "checking for $ac_word... " >&6; }
6095if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6096  $as_echo_n "(cached) " >&6
6097else
6098  if test -n "$ac_ct_DSYMUTIL"; then
6099  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6100else
6101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102for as_dir in $PATH
6103do
6104  IFS=$as_save_IFS
6105  test -z "$as_dir" && as_dir=.
6106    for ac_exec_ext in '' $ac_executable_extensions; do
6107  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6108    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6109    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6110    break 2
6111  fi
6112done
6113  done
6114IFS=$as_save_IFS
6115
6116fi
6117fi
6118ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6119if test -n "$ac_ct_DSYMUTIL"; then
6120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6121$as_echo "$ac_ct_DSYMUTIL" >&6; }
6122else
6123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6124$as_echo "no" >&6; }
6125fi
6126
6127  if test "x$ac_ct_DSYMUTIL" = x; then
6128    DSYMUTIL=":"
6129  else
6130    case $cross_compiling:$ac_tool_warned in
6131yes:)
6132{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6133$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6134ac_tool_warned=yes ;;
6135esac
6136    DSYMUTIL=$ac_ct_DSYMUTIL
6137  fi
6138else
6139  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6140fi
6141
6142    if test -n "$ac_tool_prefix"; then
6143  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6144set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6146$as_echo_n "checking for $ac_word... " >&6; }
6147if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6148  $as_echo_n "(cached) " >&6
6149else
6150  if test -n "$NMEDIT"; then
6151  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6152else
6153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6154for as_dir in $PATH
6155do
6156  IFS=$as_save_IFS
6157  test -z "$as_dir" && as_dir=.
6158    for ac_exec_ext in '' $ac_executable_extensions; do
6159  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6160    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6161    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6162    break 2
6163  fi
6164done
6165  done
6166IFS=$as_save_IFS
6167
6168fi
6169fi
6170NMEDIT=$ac_cv_prog_NMEDIT
6171if test -n "$NMEDIT"; then
6172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6173$as_echo "$NMEDIT" >&6; }
6174else
6175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6176$as_echo "no" >&6; }
6177fi
6178
6179
6180fi
6181if test -z "$ac_cv_prog_NMEDIT"; then
6182  ac_ct_NMEDIT=$NMEDIT
6183  # Extract the first word of "nmedit", so it can be a program name with args.
6184set dummy nmedit; ac_word=$2
6185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6186$as_echo_n "checking for $ac_word... " >&6; }
6187if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6188  $as_echo_n "(cached) " >&6
6189else
6190  if test -n "$ac_ct_NMEDIT"; then
6191  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6192else
6193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194for as_dir in $PATH
6195do
6196  IFS=$as_save_IFS
6197  test -z "$as_dir" && as_dir=.
6198    for ac_exec_ext in '' $ac_executable_extensions; do
6199  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6200    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6201    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6202    break 2
6203  fi
6204done
6205  done
6206IFS=$as_save_IFS
6207
6208fi
6209fi
6210ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6211if test -n "$ac_ct_NMEDIT"; then
6212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6213$as_echo "$ac_ct_NMEDIT" >&6; }
6214else
6215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6216$as_echo "no" >&6; }
6217fi
6218
6219  if test "x$ac_ct_NMEDIT" = x; then
6220    NMEDIT=":"
6221  else
6222    case $cross_compiling:$ac_tool_warned in
6223yes:)
6224{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6225$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6226ac_tool_warned=yes ;;
6227esac
6228    NMEDIT=$ac_ct_NMEDIT
6229  fi
6230else
6231  NMEDIT="$ac_cv_prog_NMEDIT"
6232fi
6233
6234    if test -n "$ac_tool_prefix"; then
6235  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6236set dummy ${ac_tool_prefix}lipo; ac_word=$2
6237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6238$as_echo_n "checking for $ac_word... " >&6; }
6239if test "${ac_cv_prog_LIPO+set}" = set; then :
6240  $as_echo_n "(cached) " >&6
6241else
6242  if test -n "$LIPO"; then
6243  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6244else
6245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246for as_dir in $PATH
6247do
6248  IFS=$as_save_IFS
6249  test -z "$as_dir" && as_dir=.
6250    for ac_exec_ext in '' $ac_executable_extensions; do
6251  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6252    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6253    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6254    break 2
6255  fi
6256done
6257  done
6258IFS=$as_save_IFS
6259
6260fi
6261fi
6262LIPO=$ac_cv_prog_LIPO
6263if test -n "$LIPO"; then
6264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6265$as_echo "$LIPO" >&6; }
6266else
6267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6268$as_echo "no" >&6; }
6269fi
6270
6271
6272fi
6273if test -z "$ac_cv_prog_LIPO"; then
6274  ac_ct_LIPO=$LIPO
6275  # Extract the first word of "lipo", so it can be a program name with args.
6276set dummy lipo; ac_word=$2
6277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6278$as_echo_n "checking for $ac_word... " >&6; }
6279if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6280  $as_echo_n "(cached) " >&6
6281else
6282  if test -n "$ac_ct_LIPO"; then
6283  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6284else
6285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286for as_dir in $PATH
6287do
6288  IFS=$as_save_IFS
6289  test -z "$as_dir" && as_dir=.
6290    for ac_exec_ext in '' $ac_executable_extensions; do
6291  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6292    ac_cv_prog_ac_ct_LIPO="lipo"
6293    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6294    break 2
6295  fi
6296done
6297  done
6298IFS=$as_save_IFS
6299
6300fi
6301fi
6302ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6303if test -n "$ac_ct_LIPO"; then
6304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6305$as_echo "$ac_ct_LIPO" >&6; }
6306else
6307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6308$as_echo "no" >&6; }
6309fi
6310
6311  if test "x$ac_ct_LIPO" = x; then
6312    LIPO=":"
6313  else
6314    case $cross_compiling:$ac_tool_warned in
6315yes:)
6316{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6317$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6318ac_tool_warned=yes ;;
6319esac
6320    LIPO=$ac_ct_LIPO
6321  fi
6322else
6323  LIPO="$ac_cv_prog_LIPO"
6324fi
6325
6326    if test -n "$ac_tool_prefix"; then
6327  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6328set dummy ${ac_tool_prefix}otool; ac_word=$2
6329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6330$as_echo_n "checking for $ac_word... " >&6; }
6331if test "${ac_cv_prog_OTOOL+set}" = set; then :
6332  $as_echo_n "(cached) " >&6
6333else
6334  if test -n "$OTOOL"; then
6335  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6336else
6337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338for as_dir in $PATH
6339do
6340  IFS=$as_save_IFS
6341  test -z "$as_dir" && as_dir=.
6342    for ac_exec_ext in '' $ac_executable_extensions; do
6343  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6344    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6345    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6346    break 2
6347  fi
6348done
6349  done
6350IFS=$as_save_IFS
6351
6352fi
6353fi
6354OTOOL=$ac_cv_prog_OTOOL
6355if test -n "$OTOOL"; then
6356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6357$as_echo "$OTOOL" >&6; }
6358else
6359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6360$as_echo "no" >&6; }
6361fi
6362
6363
6364fi
6365if test -z "$ac_cv_prog_OTOOL"; then
6366  ac_ct_OTOOL=$OTOOL
6367  # Extract the first word of "otool", so it can be a program name with args.
6368set dummy otool; ac_word=$2
6369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6370$as_echo_n "checking for $ac_word... " >&6; }
6371if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6372  $as_echo_n "(cached) " >&6
6373else
6374  if test -n "$ac_ct_OTOOL"; then
6375  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6376else
6377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6378for as_dir in $PATH
6379do
6380  IFS=$as_save_IFS
6381  test -z "$as_dir" && as_dir=.
6382    for ac_exec_ext in '' $ac_executable_extensions; do
6383  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6384    ac_cv_prog_ac_ct_OTOOL="otool"
6385    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6386    break 2
6387  fi
6388done
6389  done
6390IFS=$as_save_IFS
6391
6392fi
6393fi
6394ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6395if test -n "$ac_ct_OTOOL"; then
6396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6397$as_echo "$ac_ct_OTOOL" >&6; }
6398else
6399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6400$as_echo "no" >&6; }
6401fi
6402
6403  if test "x$ac_ct_OTOOL" = x; then
6404    OTOOL=":"
6405  else
6406    case $cross_compiling:$ac_tool_warned in
6407yes:)
6408{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6409$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6410ac_tool_warned=yes ;;
6411esac
6412    OTOOL=$ac_ct_OTOOL
6413  fi
6414else
6415  OTOOL="$ac_cv_prog_OTOOL"
6416fi
6417
6418    if test -n "$ac_tool_prefix"; then
6419  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6420set dummy ${ac_tool_prefix}otool64; ac_word=$2
6421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6422$as_echo_n "checking for $ac_word... " >&6; }
6423if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6424  $as_echo_n "(cached) " >&6
6425else
6426  if test -n "$OTOOL64"; then
6427  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6428else
6429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430for as_dir in $PATH
6431do
6432  IFS=$as_save_IFS
6433  test -z "$as_dir" && as_dir=.
6434    for ac_exec_ext in '' $ac_executable_extensions; do
6435  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6436    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6437    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6438    break 2
6439  fi
6440done
6441  done
6442IFS=$as_save_IFS
6443
6444fi
6445fi
6446OTOOL64=$ac_cv_prog_OTOOL64
6447if test -n "$OTOOL64"; then
6448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6449$as_echo "$OTOOL64" >&6; }
6450else
6451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6452$as_echo "no" >&6; }
6453fi
6454
6455
6456fi
6457if test -z "$ac_cv_prog_OTOOL64"; then
6458  ac_ct_OTOOL64=$OTOOL64
6459  # Extract the first word of "otool64", so it can be a program name with args.
6460set dummy otool64; ac_word=$2
6461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6462$as_echo_n "checking for $ac_word... " >&6; }
6463if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6464  $as_echo_n "(cached) " >&6
6465else
6466  if test -n "$ac_ct_OTOOL64"; then
6467  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6468else
6469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470for as_dir in $PATH
6471do
6472  IFS=$as_save_IFS
6473  test -z "$as_dir" && as_dir=.
6474    for ac_exec_ext in '' $ac_executable_extensions; do
6475  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6476    ac_cv_prog_ac_ct_OTOOL64="otool64"
6477    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6478    break 2
6479  fi
6480done
6481  done
6482IFS=$as_save_IFS
6483
6484fi
6485fi
6486ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6487if test -n "$ac_ct_OTOOL64"; then
6488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6489$as_echo "$ac_ct_OTOOL64" >&6; }
6490else
6491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6492$as_echo "no" >&6; }
6493fi
6494
6495  if test "x$ac_ct_OTOOL64" = x; then
6496    OTOOL64=":"
6497  else
6498    case $cross_compiling:$ac_tool_warned in
6499yes:)
6500{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6501$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6502ac_tool_warned=yes ;;
6503esac
6504    OTOOL64=$ac_ct_OTOOL64
6505  fi
6506else
6507  OTOOL64="$ac_cv_prog_OTOOL64"
6508fi
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6537$as_echo_n "checking for -single_module linker flag... " >&6; }
6538if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6539  $as_echo_n "(cached) " >&6
6540else
6541  lt_cv_apple_cc_single_mod=no
6542      if test -z "${LT_MULTI_MODULE}"; then
6543	# By default we will add the -single_module flag. You can override
6544	# by either setting the environment variable LT_MULTI_MODULE
6545	# non-empty at configure time, or by adding -multi_module to the
6546	# link flags.
6547	rm -rf libconftest.dylib*
6548	echo "int foo(void){return 1;}" > conftest.c
6549	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6550-dynamiclib -Wl,-single_module conftest.c" >&5
6551	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6552	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6553        _lt_result=$?
6554	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6555	  lt_cv_apple_cc_single_mod=yes
6556	else
6557	  cat conftest.err >&5
6558	fi
6559	rm -rf libconftest.dylib*
6560	rm -f conftest.*
6561      fi
6562fi
6563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6564$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6565    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6566$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6567if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6568  $as_echo_n "(cached) " >&6
6569else
6570  lt_cv_ld_exported_symbols_list=no
6571      save_LDFLAGS=$LDFLAGS
6572      echo "_main" > conftest.sym
6573      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6574      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6575/* end confdefs.h.  */
6576
6577int
6578main ()
6579{
6580
6581  ;
6582  return 0;
6583}
6584_ACEOF
6585if ac_fn_c_try_link "$LINENO"; then :
6586  lt_cv_ld_exported_symbols_list=yes
6587else
6588  lt_cv_ld_exported_symbols_list=no
6589fi
6590rm -f core conftest.err conftest.$ac_objext \
6591    conftest$ac_exeext conftest.$ac_ext
6592	LDFLAGS="$save_LDFLAGS"
6593
6594fi
6595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6596$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6597    case $host_os in
6598    rhapsody* | darwin1.[012])
6599      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6600    darwin1.*)
6601      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6602    darwin*) # darwin 5.x on
6603      # if running on 10.5 or later, the deployment target defaults
6604      # to the OS version, if on x86, and 10.4, the deployment
6605      # target defaults to 10.4. Don't you love it?
6606      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6607	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6608	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6609	10.[012]*)
6610	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6611	10.*)
6612	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6613      esac
6614    ;;
6615  esac
6616    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6617      _lt_dar_single_mod='$single_module'
6618    fi
6619    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6620      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6621    else
6622      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6623    fi
6624    if test "$DSYMUTIL" != ":"; then
6625      _lt_dsymutil='~$DSYMUTIL $lib || :'
6626    else
6627      _lt_dsymutil=
6628    fi
6629    ;;
6630  esac
6631
6632ac_ext=c
6633ac_cpp='$CPP $CPPFLAGS'
6634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6636ac_compiler_gnu=$ac_cv_c_compiler_gnu
6637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6638$as_echo_n "checking how to run the C preprocessor... " >&6; }
6639# On Suns, sometimes $CPP names a directory.
6640if test -n "$CPP" && test -d "$CPP"; then
6641  CPP=
6642fi
6643if test -z "$CPP"; then
6644  if test "${ac_cv_prog_CPP+set}" = set; then :
6645  $as_echo_n "(cached) " >&6
6646else
6647      # Double quotes because CPP needs to be expanded
6648    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6649    do
6650      ac_preproc_ok=false
6651for ac_c_preproc_warn_flag in '' yes
6652do
6653  # Use a header file that comes with gcc, so configuring glibc
6654  # with a fresh cross-compiler works.
6655  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6656  # <limits.h> exists even on freestanding compilers.
6657  # On the NeXT, cc -E runs the code through the compiler's parser,
6658  # not just through cpp. "Syntax error" is here to catch this case.
6659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6660/* end confdefs.h.  */
6661#ifdef __STDC__
6662# include <limits.h>
6663#else
6664# include <assert.h>
6665#endif
6666		     Syntax error
6667_ACEOF
6668if ac_fn_c_try_cpp "$LINENO"; then :
6669
6670else
6671  # Broken: fails on valid input.
6672continue
6673fi
6674rm -f conftest.err conftest.i conftest.$ac_ext
6675
6676  # OK, works on sane cases.  Now check whether nonexistent headers
6677  # can be detected and how.
6678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6679/* end confdefs.h.  */
6680#include <ac_nonexistent.h>
6681_ACEOF
6682if ac_fn_c_try_cpp "$LINENO"; then :
6683  # Broken: success on invalid input.
6684continue
6685else
6686  # Passes both tests.
6687ac_preproc_ok=:
6688break
6689fi
6690rm -f conftest.err conftest.i conftest.$ac_ext
6691
6692done
6693# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6694rm -f conftest.i conftest.err conftest.$ac_ext
6695if $ac_preproc_ok; then :
6696  break
6697fi
6698
6699    done
6700    ac_cv_prog_CPP=$CPP
6701
6702fi
6703  CPP=$ac_cv_prog_CPP
6704else
6705  ac_cv_prog_CPP=$CPP
6706fi
6707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6708$as_echo "$CPP" >&6; }
6709ac_preproc_ok=false
6710for ac_c_preproc_warn_flag in '' yes
6711do
6712  # Use a header file that comes with gcc, so configuring glibc
6713  # with a fresh cross-compiler works.
6714  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6715  # <limits.h> exists even on freestanding compilers.
6716  # On the NeXT, cc -E runs the code through the compiler's parser,
6717  # not just through cpp. "Syntax error" is here to catch this case.
6718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6719/* end confdefs.h.  */
6720#ifdef __STDC__
6721# include <limits.h>
6722#else
6723# include <assert.h>
6724#endif
6725		     Syntax error
6726_ACEOF
6727if ac_fn_c_try_cpp "$LINENO"; then :
6728
6729else
6730  # Broken: fails on valid input.
6731continue
6732fi
6733rm -f conftest.err conftest.i conftest.$ac_ext
6734
6735  # OK, works on sane cases.  Now check whether nonexistent headers
6736  # can be detected and how.
6737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6738/* end confdefs.h.  */
6739#include <ac_nonexistent.h>
6740_ACEOF
6741if ac_fn_c_try_cpp "$LINENO"; then :
6742  # Broken: success on invalid input.
6743continue
6744else
6745  # Passes both tests.
6746ac_preproc_ok=:
6747break
6748fi
6749rm -f conftest.err conftest.i conftest.$ac_ext
6750
6751done
6752# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6753rm -f conftest.i conftest.err conftest.$ac_ext
6754if $ac_preproc_ok; then :
6755
6756else
6757  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6758$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6759as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6760See \`config.log' for more details" "$LINENO" 5 ; }
6761fi
6762
6763ac_ext=c
6764ac_cpp='$CPP $CPPFLAGS'
6765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6767ac_compiler_gnu=$ac_cv_c_compiler_gnu
6768
6769
6770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6771$as_echo_n "checking for ANSI C header files... " >&6; }
6772if test "${ac_cv_header_stdc+set}" = set; then :
6773  $as_echo_n "(cached) " >&6
6774else
6775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6776/* end confdefs.h.  */
6777#include <stdlib.h>
6778#include <stdarg.h>
6779#include <string.h>
6780#include <float.h>
6781
6782int
6783main ()
6784{
6785
6786  ;
6787  return 0;
6788}
6789_ACEOF
6790if ac_fn_c_try_compile "$LINENO"; then :
6791  ac_cv_header_stdc=yes
6792else
6793  ac_cv_header_stdc=no
6794fi
6795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6796
6797if test $ac_cv_header_stdc = yes; then
6798  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6800/* end confdefs.h.  */
6801#include <string.h>
6802
6803_ACEOF
6804if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6805  $EGREP "memchr" >/dev/null 2>&1; then :
6806
6807else
6808  ac_cv_header_stdc=no
6809fi
6810rm -f conftest*
6811
6812fi
6813
6814if test $ac_cv_header_stdc = yes; then
6815  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6817/* end confdefs.h.  */
6818#include <stdlib.h>
6819
6820_ACEOF
6821if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6822  $EGREP "free" >/dev/null 2>&1; then :
6823
6824else
6825  ac_cv_header_stdc=no
6826fi
6827rm -f conftest*
6828
6829fi
6830
6831if test $ac_cv_header_stdc = yes; then
6832  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6833  if test "$cross_compiling" = yes; then :
6834  :
6835else
6836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6837/* end confdefs.h.  */
6838#include <ctype.h>
6839#include <stdlib.h>
6840#if ((' ' & 0x0FF) == 0x020)
6841# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6842# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6843#else
6844# define ISLOWER(c) \
6845		   (('a' <= (c) && (c) <= 'i') \
6846		     || ('j' <= (c) && (c) <= 'r') \
6847		     || ('s' <= (c) && (c) <= 'z'))
6848# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6849#endif
6850
6851#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6852int
6853main ()
6854{
6855  int i;
6856  for (i = 0; i < 256; i++)
6857    if (XOR (islower (i), ISLOWER (i))
6858	|| toupper (i) != TOUPPER (i))
6859      return 2;
6860  return 0;
6861}
6862_ACEOF
6863if ac_fn_c_try_run "$LINENO"; then :
6864
6865else
6866  ac_cv_header_stdc=no
6867fi
6868rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6869  conftest.$ac_objext conftest.beam conftest.$ac_ext
6870fi
6871
6872fi
6873fi
6874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6875$as_echo "$ac_cv_header_stdc" >&6; }
6876if test $ac_cv_header_stdc = yes; then
6877
6878$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6879
6880fi
6881
6882# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6883for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6884		  inttypes.h stdint.h unistd.h
6885do :
6886  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6887ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6888"
6889if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6890  cat >>confdefs.h <<_ACEOF
6891#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6892_ACEOF
6893
6894fi
6895
6896done
6897
6898
6899for ac_header in dlfcn.h
6900do :
6901  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6902"
6903if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6904  cat >>confdefs.h <<_ACEOF
6905#define HAVE_DLFCN_H 1
6906_ACEOF
6907
6908fi
6909
6910done
6911
6912
6913
6914# Set options
6915
6916
6917
6918        enable_dlopen=no
6919
6920
6921  enable_win32_dll=no
6922
6923
6924            # Check whether --enable-shared was given.
6925if test "${enable_shared+set}" = set; then :
6926  enableval=$enable_shared; p=${PACKAGE-default}
6927    case $enableval in
6928    yes) enable_shared=yes ;;
6929    no) enable_shared=no ;;
6930    *)
6931      enable_shared=no
6932      # Look at the argument we got.  We use all the common list separators.
6933      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6934      for pkg in $enableval; do
6935	IFS="$lt_save_ifs"
6936	if test "X$pkg" = "X$p"; then
6937	  enable_shared=yes
6938	fi
6939      done
6940      IFS="$lt_save_ifs"
6941      ;;
6942    esac
6943else
6944  enable_shared=yes
6945fi
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955  # Check whether --enable-static was given.
6956if test "${enable_static+set}" = set; then :
6957  enableval=$enable_static; p=${PACKAGE-default}
6958    case $enableval in
6959    yes) enable_static=yes ;;
6960    no) enable_static=no ;;
6961    *)
6962     enable_static=no
6963      # Look at the argument we got.  We use all the common list separators.
6964      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6965      for pkg in $enableval; do
6966	IFS="$lt_save_ifs"
6967	if test "X$pkg" = "X$p"; then
6968	  enable_static=yes
6969	fi
6970      done
6971      IFS="$lt_save_ifs"
6972      ;;
6973    esac
6974else
6975  enable_static=yes
6976fi
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987# Check whether --with-pic was given.
6988if test "${with_pic+set}" = set; then :
6989  withval=$with_pic; pic_mode="$withval"
6990else
6991  pic_mode=default
6992fi
6993
6994
6995test -z "$pic_mode" && pic_mode=default
6996
6997
6998
6999
7000
7001
7002
7003  # Check whether --enable-fast-install was given.
7004if test "${enable_fast_install+set}" = set; then :
7005  enableval=$enable_fast_install; p=${PACKAGE-default}
7006    case $enableval in
7007    yes) enable_fast_install=yes ;;
7008    no) enable_fast_install=no ;;
7009    *)
7010      enable_fast_install=no
7011      # Look at the argument we got.  We use all the common list separators.
7012      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7013      for pkg in $enableval; do
7014	IFS="$lt_save_ifs"
7015	if test "X$pkg" = "X$p"; then
7016	  enable_fast_install=yes
7017	fi
7018      done
7019      IFS="$lt_save_ifs"
7020      ;;
7021    esac
7022else
7023  enable_fast_install=yes
7024fi
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036# This can be used to rebuild libtool when needed
7037LIBTOOL_DEPS="$ltmain"
7038
7039# Always use our own libtool.
7040LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066test -z "$LN_S" && LN_S="ln -s"
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081if test -n "${ZSH_VERSION+set}" ; then
7082   setopt NO_GLOB_SUBST
7083fi
7084
7085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7086$as_echo_n "checking for objdir... " >&6; }
7087if test "${lt_cv_objdir+set}" = set; then :
7088  $as_echo_n "(cached) " >&6
7089else
7090  rm -f .libs 2>/dev/null
7091mkdir .libs 2>/dev/null
7092if test -d .libs; then
7093  lt_cv_objdir=.libs
7094else
7095  # MS-DOS does not allow filenames that begin with a dot.
7096  lt_cv_objdir=_libs
7097fi
7098rmdir .libs 2>/dev/null
7099fi
7100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7101$as_echo "$lt_cv_objdir" >&6; }
7102objdir=$lt_cv_objdir
7103
7104
7105
7106
7107
7108cat >>confdefs.h <<_ACEOF
7109#define LT_OBJDIR "$lt_cv_objdir/"
7110_ACEOF
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128case $host_os in
7129aix3*)
7130  # AIX sometimes has problems with the GCC collect2 program.  For some
7131  # reason, if we set the COLLECT_NAMES environment variable, the problems
7132  # vanish in a puff of smoke.
7133  if test "X${COLLECT_NAMES+set}" != Xset; then
7134    COLLECT_NAMES=
7135    export COLLECT_NAMES
7136  fi
7137  ;;
7138esac
7139
7140# Sed substitution that helps us do robust quoting.  It backslashifies
7141# metacharacters that are still active within double-quoted strings.
7142sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7143
7144# Same as above, but do not quote variable references.
7145double_quote_subst='s/\(["`\\]\)/\\\1/g'
7146
7147# Sed substitution to delay expansion of an escaped shell variable in a
7148# double_quote_subst'ed string.
7149delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7150
7151# Sed substitution to delay expansion of an escaped single quote.
7152delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7153
7154# Sed substitution to avoid accidental globbing in evaled expressions
7155no_glob_subst='s/\*/\\\*/g'
7156
7157# Global variables:
7158ofile=libtool
7159can_build_shared=yes
7160
7161# All known linkers require a `.a' archive for static linking (except MSVC,
7162# which needs '.lib').
7163libext=a
7164
7165with_gnu_ld="$lt_cv_prog_gnu_ld"
7166
7167old_CC="$CC"
7168old_CFLAGS="$CFLAGS"
7169
7170# Set sane defaults for various variables
7171test -z "$CC" && CC=cc
7172test -z "$LTCC" && LTCC=$CC
7173test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7174test -z "$LD" && LD=ld
7175test -z "$ac_objext" && ac_objext=o
7176
7177for cc_temp in $compiler""; do
7178  case $cc_temp in
7179    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7180    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7181    \-*) ;;
7182    *) break;;
7183  esac
7184done
7185cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7186
7187
7188# Only perform the check for file, if the check method requires it
7189test -z "$MAGIC_CMD" && MAGIC_CMD=file
7190case $deplibs_check_method in
7191file_magic*)
7192  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7193    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7194$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7195if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7196  $as_echo_n "(cached) " >&6
7197else
7198  case $MAGIC_CMD in
7199[\\/*] |  ?:[\\/]*)
7200  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7201  ;;
7202*)
7203  lt_save_MAGIC_CMD="$MAGIC_CMD"
7204  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7205  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7206  for ac_dir in $ac_dummy; do
7207    IFS="$lt_save_ifs"
7208    test -z "$ac_dir" && ac_dir=.
7209    if test -f $ac_dir/${ac_tool_prefix}file; then
7210      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7211      if test -n "$file_magic_test_file"; then
7212	case $deplibs_check_method in
7213	"file_magic "*)
7214	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7215	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7216	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7217	    $EGREP "$file_magic_regex" > /dev/null; then
7218	    :
7219	  else
7220	    cat <<_LT_EOF 1>&2
7221
7222*** Warning: the command libtool uses to detect shared libraries,
7223*** $file_magic_cmd, produces output that libtool cannot recognize.
7224*** The result is that libtool may fail to recognize shared libraries
7225*** as such.  This will affect the creation of libtool libraries that
7226*** depend on shared libraries, but programs linked with such libtool
7227*** libraries will work regardless of this problem.  Nevertheless, you
7228*** may want to report the problem to your system manager and/or to
7229*** bug-libtool@gnu.org
7230
7231_LT_EOF
7232	  fi ;;
7233	esac
7234      fi
7235      break
7236    fi
7237  done
7238  IFS="$lt_save_ifs"
7239  MAGIC_CMD="$lt_save_MAGIC_CMD"
7240  ;;
7241esac
7242fi
7243
7244MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7245if test -n "$MAGIC_CMD"; then
7246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7247$as_echo "$MAGIC_CMD" >&6; }
7248else
7249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7250$as_echo "no" >&6; }
7251fi
7252
7253
7254
7255
7256
7257if test -z "$lt_cv_path_MAGIC_CMD"; then
7258  if test -n "$ac_tool_prefix"; then
7259    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7260$as_echo_n "checking for file... " >&6; }
7261if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7262  $as_echo_n "(cached) " >&6
7263else
7264  case $MAGIC_CMD in
7265[\\/*] |  ?:[\\/]*)
7266  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7267  ;;
7268*)
7269  lt_save_MAGIC_CMD="$MAGIC_CMD"
7270  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7271  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7272  for ac_dir in $ac_dummy; do
7273    IFS="$lt_save_ifs"
7274    test -z "$ac_dir" && ac_dir=.
7275    if test -f $ac_dir/file; then
7276      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7277      if test -n "$file_magic_test_file"; then
7278	case $deplibs_check_method in
7279	"file_magic "*)
7280	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7281	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7282	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7283	    $EGREP "$file_magic_regex" > /dev/null; then
7284	    :
7285	  else
7286	    cat <<_LT_EOF 1>&2
7287
7288*** Warning: the command libtool uses to detect shared libraries,
7289*** $file_magic_cmd, produces output that libtool cannot recognize.
7290*** The result is that libtool may fail to recognize shared libraries
7291*** as such.  This will affect the creation of libtool libraries that
7292*** depend on shared libraries, but programs linked with such libtool
7293*** libraries will work regardless of this problem.  Nevertheless, you
7294*** may want to report the problem to your system manager and/or to
7295*** bug-libtool@gnu.org
7296
7297_LT_EOF
7298	  fi ;;
7299	esac
7300      fi
7301      break
7302    fi
7303  done
7304  IFS="$lt_save_ifs"
7305  MAGIC_CMD="$lt_save_MAGIC_CMD"
7306  ;;
7307esac
7308fi
7309
7310MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7311if test -n "$MAGIC_CMD"; then
7312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7313$as_echo "$MAGIC_CMD" >&6; }
7314else
7315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7316$as_echo "no" >&6; }
7317fi
7318
7319
7320  else
7321    MAGIC_CMD=:
7322  fi
7323fi
7324
7325  fi
7326  ;;
7327esac
7328
7329# Use C for the default configuration in the libtool script
7330
7331lt_save_CC="$CC"
7332ac_ext=c
7333ac_cpp='$CPP $CPPFLAGS'
7334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7336ac_compiler_gnu=$ac_cv_c_compiler_gnu
7337
7338
7339# Source file extension for C test sources.
7340ac_ext=c
7341
7342# Object file extension for compiled C test sources.
7343objext=o
7344objext=$objext
7345
7346# Code to be used in simple compile tests
7347lt_simple_compile_test_code="int some_variable = 0;"
7348
7349# Code to be used in simple link tests
7350lt_simple_link_test_code='int main(){return(0);}'
7351
7352
7353
7354
7355
7356
7357
7358# If no C compiler was specified, use CC.
7359LTCC=${LTCC-"$CC"}
7360
7361# If no C compiler flags were specified, use CFLAGS.
7362LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7363
7364# Allow CC to be a program name with arguments.
7365compiler=$CC
7366
7367# Save the default compiler, since it gets overwritten when the other
7368# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7369compiler_DEFAULT=$CC
7370
7371# save warnings/boilerplate of simple test code
7372ac_outfile=conftest.$ac_objext
7373echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7374eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7375_lt_compiler_boilerplate=`cat conftest.err`
7376$RM conftest*
7377
7378ac_outfile=conftest.$ac_objext
7379echo "$lt_simple_link_test_code" >conftest.$ac_ext
7380eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7381_lt_linker_boilerplate=`cat conftest.err`
7382$RM -r conftest*
7383
7384
7385if test -n "$compiler"; then
7386
7387lt_prog_compiler_no_builtin_flag=
7388
7389if test "$GCC" = yes; then
7390  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7391
7392  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7393$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7394if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7395  $as_echo_n "(cached) " >&6
7396else
7397  lt_cv_prog_compiler_rtti_exceptions=no
7398   ac_outfile=conftest.$ac_objext
7399   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7400   lt_compiler_flag="-fno-rtti -fno-exceptions"
7401   # Insert the option either (1) after the last *FLAGS variable, or
7402   # (2) before a word containing "conftest.", or (3) at the end.
7403   # Note that $ac_compile itself does not contain backslashes and begins
7404   # with a dollar sign (not a hyphen), so the echo should work correctly.
7405   # The option is referenced via a variable to avoid confusing sed.
7406   lt_compile=`echo "$ac_compile" | $SED \
7407   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7408   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7409   -e 's:$: $lt_compiler_flag:'`
7410   (eval echo "\"\$as_me:7410: $lt_compile\"" >&5)
7411   (eval "$lt_compile" 2>conftest.err)
7412   ac_status=$?
7413   cat conftest.err >&5
7414   echo "$as_me:7414: \$? = $ac_status" >&5
7415   if (exit $ac_status) && test -s "$ac_outfile"; then
7416     # The compiler can only warn and ignore the option if not recognized
7417     # So say no if there are warnings other than the usual output.
7418     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7419     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7420     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7421       lt_cv_prog_compiler_rtti_exceptions=yes
7422     fi
7423   fi
7424   $RM conftest*
7425
7426fi
7427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7428$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7429
7430if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7431    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7432else
7433    :
7434fi
7435
7436fi
7437
7438
7439
7440
7441
7442
7443  lt_prog_compiler_wl=
7444lt_prog_compiler_pic=
7445lt_prog_compiler_static=
7446
7447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7448$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7449
7450  if test "$GCC" = yes; then
7451    lt_prog_compiler_wl='-Wl,'
7452    lt_prog_compiler_static='-static'
7453
7454    case $host_os in
7455      aix*)
7456      # All AIX code is PIC.
7457      if test "$host_cpu" = ia64; then
7458	# AIX 5 now supports IA64 processor
7459	lt_prog_compiler_static='-Bstatic'
7460      fi
7461      ;;
7462
7463    amigaos*)
7464      case $host_cpu in
7465      powerpc)
7466            # see comment about AmigaOS4 .so support
7467            lt_prog_compiler_pic='-fPIC'
7468        ;;
7469      m68k)
7470            # FIXME: we need at least 68020 code to build shared libraries, but
7471            # adding the `-m68020' flag to GCC prevents building anything better,
7472            # like `-m68040'.
7473            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7474        ;;
7475      esac
7476      ;;
7477
7478    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7479      # PIC is the default for these OSes.
7480      ;;
7481
7482    mingw* | cygwin* | pw32* | os2* | cegcc*)
7483      # This hack is so that the source file can tell whether it is being
7484      # built for inclusion in a dll (and should export symbols for example).
7485      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7486      # (--disable-auto-import) libraries
7487      lt_prog_compiler_pic='-DDLL_EXPORT'
7488      ;;
7489
7490    darwin* | rhapsody*)
7491      # PIC is the default on this platform
7492      # Common symbols not allowed in MH_DYLIB files
7493      lt_prog_compiler_pic='-fno-common'
7494      ;;
7495
7496    hpux*)
7497      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7498      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7499      # sets the default TLS model and affects inlining.
7500      case $host_cpu in
7501      hppa*64*)
7502	# +Z the default
7503	;;
7504      *)
7505	lt_prog_compiler_pic='-fPIC'
7506	;;
7507      esac
7508      ;;
7509
7510    interix[3-9]*)
7511      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7512      # Instead, we relocate shared libraries at runtime.
7513      ;;
7514
7515    msdosdjgpp*)
7516      # Just because we use GCC doesn't mean we suddenly get shared libraries
7517      # on systems that don't support them.
7518      lt_prog_compiler_can_build_shared=no
7519      enable_shared=no
7520      ;;
7521
7522    *nto* | *qnx*)
7523      # QNX uses GNU C++, but need to define -shared option too, otherwise
7524      # it will coredump.
7525      lt_prog_compiler_pic='-fPIC -shared'
7526      ;;
7527
7528    sysv4*MP*)
7529      if test -d /usr/nec; then
7530	lt_prog_compiler_pic=-Kconform_pic
7531      fi
7532      ;;
7533
7534    *)
7535      lt_prog_compiler_pic='-fPIC'
7536      ;;
7537    esac
7538  else
7539    # PORTME Check for flag to pass linker flags through the system compiler.
7540    case $host_os in
7541    aix*)
7542      lt_prog_compiler_wl='-Wl,'
7543      if test "$host_cpu" = ia64; then
7544	# AIX 5 now supports IA64 processor
7545	lt_prog_compiler_static='-Bstatic'
7546      else
7547	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7548      fi
7549      ;;
7550
7551    mingw* | cygwin* | pw32* | os2* | cegcc*)
7552      # This hack is so that the source file can tell whether it is being
7553      # built for inclusion in a dll (and should export symbols for example).
7554      lt_prog_compiler_pic='-DDLL_EXPORT'
7555      ;;
7556
7557    hpux9* | hpux10* | hpux11*)
7558      lt_prog_compiler_wl='-Wl,'
7559      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7560      # not for PA HP-UX.
7561      case $host_cpu in
7562      hppa*64*|ia64*)
7563	# +Z the default
7564	;;
7565      *)
7566	lt_prog_compiler_pic='+Z'
7567	;;
7568      esac
7569      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7570      lt_prog_compiler_static='${wl}-a ${wl}archive'
7571      ;;
7572
7573    irix5* | irix6* | nonstopux*)
7574      lt_prog_compiler_wl='-Wl,'
7575      # PIC (with -KPIC) is the default.
7576      lt_prog_compiler_static='-non_shared'
7577      ;;
7578
7579    linux* | k*bsd*-gnu | kopensolaris*-gnu)
7580      case $cc_basename in
7581      # old Intel for x86_64 which still supported -KPIC.
7582      ecc*)
7583	lt_prog_compiler_wl='-Wl,'
7584	lt_prog_compiler_pic='-KPIC'
7585	lt_prog_compiler_static='-static'
7586        ;;
7587      # icc used to be incompatible with GCC.
7588      # ICC 10 doesn't accept -KPIC any more.
7589      icc* | ifort*)
7590	lt_prog_compiler_wl='-Wl,'
7591	lt_prog_compiler_pic='-fPIC'
7592	lt_prog_compiler_static='-static'
7593        ;;
7594      # Lahey Fortran 8.1.
7595      lf95*)
7596	lt_prog_compiler_wl='-Wl,'
7597	lt_prog_compiler_pic='--shared'
7598	lt_prog_compiler_static='--static'
7599	;;
7600      pgcc* | pgf77* | pgf90* | pgf95*)
7601        # Portland Group compilers (*not* the Pentium gcc compiler,
7602	# which looks to be a dead project)
7603	lt_prog_compiler_wl='-Wl,'
7604	lt_prog_compiler_pic='-fpic'
7605	lt_prog_compiler_static='-Bstatic'
7606        ;;
7607      ccc*)
7608        lt_prog_compiler_wl='-Wl,'
7609        # All Alpha code is PIC.
7610        lt_prog_compiler_static='-non_shared'
7611        ;;
7612      xl*)
7613	# IBM XL C 8.0/Fortran 10.1 on PPC
7614	lt_prog_compiler_wl='-Wl,'
7615	lt_prog_compiler_pic='-qpic'
7616	lt_prog_compiler_static='-qstaticlink'
7617	;;
7618      *)
7619	case `$CC -V 2>&1 | sed 5q` in
7620	*Sun\ C*)
7621	  # Sun C 5.9
7622	  lt_prog_compiler_pic='-KPIC'
7623	  lt_prog_compiler_static='-Bstatic'
7624	  lt_prog_compiler_wl='-Wl,'
7625	  ;;
7626	*Sun\ F*)
7627	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7628	  lt_prog_compiler_pic='-KPIC'
7629	  lt_prog_compiler_static='-Bstatic'
7630	  lt_prog_compiler_wl=''
7631	  ;;
7632	esac
7633	;;
7634      esac
7635      ;;
7636
7637    newsos6)
7638      lt_prog_compiler_pic='-KPIC'
7639      lt_prog_compiler_static='-Bstatic'
7640      ;;
7641
7642    *nto* | *qnx*)
7643      # QNX uses GNU C++, but need to define -shared option too, otherwise
7644      # it will coredump.
7645      lt_prog_compiler_pic='-fPIC -shared'
7646      ;;
7647
7648    osf3* | osf4* | osf5*)
7649      lt_prog_compiler_wl='-Wl,'
7650      # All OSF/1 code is PIC.
7651      lt_prog_compiler_static='-non_shared'
7652      ;;
7653
7654    rdos*)
7655      lt_prog_compiler_static='-non_shared'
7656      ;;
7657
7658    solaris*)
7659      lt_prog_compiler_pic='-KPIC'
7660      lt_prog_compiler_static='-Bstatic'
7661      case $cc_basename in
7662      f77* | f90* | f95*)
7663	lt_prog_compiler_wl='-Qoption ld ';;
7664      *)
7665	lt_prog_compiler_wl='-Wl,';;
7666      esac
7667      ;;
7668
7669    sunos4*)
7670      lt_prog_compiler_wl='-Qoption ld '
7671      lt_prog_compiler_pic='-PIC'
7672      lt_prog_compiler_static='-Bstatic'
7673      ;;
7674
7675    sysv4 | sysv4.2uw2* | sysv4.3*)
7676      lt_prog_compiler_wl='-Wl,'
7677      lt_prog_compiler_pic='-KPIC'
7678      lt_prog_compiler_static='-Bstatic'
7679      ;;
7680
7681    sysv4*MP*)
7682      if test -d /usr/nec ;then
7683	lt_prog_compiler_pic='-Kconform_pic'
7684	lt_prog_compiler_static='-Bstatic'
7685      fi
7686      ;;
7687
7688    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7689      lt_prog_compiler_wl='-Wl,'
7690      lt_prog_compiler_pic='-KPIC'
7691      lt_prog_compiler_static='-Bstatic'
7692      ;;
7693
7694    unicos*)
7695      lt_prog_compiler_wl='-Wl,'
7696      lt_prog_compiler_can_build_shared=no
7697      ;;
7698
7699    uts4*)
7700      lt_prog_compiler_pic='-pic'
7701      lt_prog_compiler_static='-Bstatic'
7702      ;;
7703
7704    *)
7705      lt_prog_compiler_can_build_shared=no
7706      ;;
7707    esac
7708  fi
7709
7710case $host_os in
7711  # For platforms which do not support PIC, -DPIC is meaningless:
7712  *djgpp*)
7713    lt_prog_compiler_pic=
7714    ;;
7715  *)
7716    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7717    ;;
7718esac
7719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7720$as_echo "$lt_prog_compiler_pic" >&6; }
7721
7722
7723
7724
7725
7726
7727#
7728# Check to make sure the PIC flag actually works.
7729#
7730if test -n "$lt_prog_compiler_pic"; then
7731  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7732$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7733if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7734  $as_echo_n "(cached) " >&6
7735else
7736  lt_cv_prog_compiler_pic_works=no
7737   ac_outfile=conftest.$ac_objext
7738   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7739   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7740   # Insert the option either (1) after the last *FLAGS variable, or
7741   # (2) before a word containing "conftest.", or (3) at the end.
7742   # Note that $ac_compile itself does not contain backslashes and begins
7743   # with a dollar sign (not a hyphen), so the echo should work correctly.
7744   # The option is referenced via a variable to avoid confusing sed.
7745   lt_compile=`echo "$ac_compile" | $SED \
7746   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7747   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7748   -e 's:$: $lt_compiler_flag:'`
7749   (eval echo "\"\$as_me:7749: $lt_compile\"" >&5)
7750   (eval "$lt_compile" 2>conftest.err)
7751   ac_status=$?
7752   cat conftest.err >&5
7753   echo "$as_me:7753: \$? = $ac_status" >&5
7754   if (exit $ac_status) && test -s "$ac_outfile"; then
7755     # The compiler can only warn and ignore the option if not recognized
7756     # So say no if there are warnings other than the usual output.
7757     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7758     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7759     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7760       lt_cv_prog_compiler_pic_works=yes
7761     fi
7762   fi
7763   $RM conftest*
7764
7765fi
7766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7767$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7768
7769if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7770    case $lt_prog_compiler_pic in
7771     "" | " "*) ;;
7772     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7773     esac
7774else
7775    lt_prog_compiler_pic=
7776     lt_prog_compiler_can_build_shared=no
7777fi
7778
7779fi
7780
7781
7782
7783
7784
7785
7786#
7787# Check to make sure the static flag actually works.
7788#
7789wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7791$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7792if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7793  $as_echo_n "(cached) " >&6
7794else
7795  lt_cv_prog_compiler_static_works=no
7796   save_LDFLAGS="$LDFLAGS"
7797   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7798   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7799   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7800     # The linker can only warn and ignore the option if not recognized
7801     # So say no if there are warnings
7802     if test -s conftest.err; then
7803       # Append any errors to the config.log.
7804       cat conftest.err 1>&5
7805       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7806       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7807       if diff conftest.exp conftest.er2 >/dev/null; then
7808         lt_cv_prog_compiler_static_works=yes
7809       fi
7810     else
7811       lt_cv_prog_compiler_static_works=yes
7812     fi
7813   fi
7814   $RM -r conftest*
7815   LDFLAGS="$save_LDFLAGS"
7816
7817fi
7818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7819$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7820
7821if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7822    :
7823else
7824    lt_prog_compiler_static=
7825fi
7826
7827
7828
7829
7830
7831
7832
7833  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7834$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7835if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7836  $as_echo_n "(cached) " >&6
7837else
7838  lt_cv_prog_compiler_c_o=no
7839   $RM -r conftest 2>/dev/null
7840   mkdir conftest
7841   cd conftest
7842   mkdir out
7843   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7844
7845   lt_compiler_flag="-o out/conftest2.$ac_objext"
7846   # Insert the option either (1) after the last *FLAGS variable, or
7847   # (2) before a word containing "conftest.", or (3) at the end.
7848   # Note that $ac_compile itself does not contain backslashes and begins
7849   # with a dollar sign (not a hyphen), so the echo should work correctly.
7850   lt_compile=`echo "$ac_compile" | $SED \
7851   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7852   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7853   -e 's:$: $lt_compiler_flag:'`
7854   (eval echo "\"\$as_me:7854: $lt_compile\"" >&5)
7855   (eval "$lt_compile" 2>out/conftest.err)
7856   ac_status=$?
7857   cat out/conftest.err >&5
7858   echo "$as_me:7858: \$? = $ac_status" >&5
7859   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7860   then
7861     # The compiler can only warn and ignore the option if not recognized
7862     # So say no if there are warnings
7863     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7864     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7865     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7866       lt_cv_prog_compiler_c_o=yes
7867     fi
7868   fi
7869   chmod u+w . 2>&5
7870   $RM conftest*
7871   # SGI C++ compiler will create directory out/ii_files/ for
7872   # template instantiation
7873   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7874   $RM out/* && rmdir out
7875   cd ..
7876   $RM -r conftest
7877   $RM conftest*
7878
7879fi
7880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7881$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7882
7883
7884
7885
7886
7887
7888  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7889$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7890if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7891  $as_echo_n "(cached) " >&6
7892else
7893  lt_cv_prog_compiler_c_o=no
7894   $RM -r conftest 2>/dev/null
7895   mkdir conftest
7896   cd conftest
7897   mkdir out
7898   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7899
7900   lt_compiler_flag="-o out/conftest2.$ac_objext"
7901   # Insert the option either (1) after the last *FLAGS variable, or
7902   # (2) before a word containing "conftest.", or (3) at the end.
7903   # Note that $ac_compile itself does not contain backslashes and begins
7904   # with a dollar sign (not a hyphen), so the echo should work correctly.
7905   lt_compile=`echo "$ac_compile" | $SED \
7906   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7907   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7908   -e 's:$: $lt_compiler_flag:'`
7909   (eval echo "\"\$as_me:7909: $lt_compile\"" >&5)
7910   (eval "$lt_compile" 2>out/conftest.err)
7911   ac_status=$?
7912   cat out/conftest.err >&5
7913   echo "$as_me:7913: \$? = $ac_status" >&5
7914   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7915   then
7916     # The compiler can only warn and ignore the option if not recognized
7917     # So say no if there are warnings
7918     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7919     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7920     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7921       lt_cv_prog_compiler_c_o=yes
7922     fi
7923   fi
7924   chmod u+w . 2>&5
7925   $RM conftest*
7926   # SGI C++ compiler will create directory out/ii_files/ for
7927   # template instantiation
7928   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7929   $RM out/* && rmdir out
7930   cd ..
7931   $RM -r conftest
7932   $RM conftest*
7933
7934fi
7935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7936$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7937
7938
7939
7940
7941hard_links="nottested"
7942if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7943  # do not overwrite the value of need_locks provided by the user
7944  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7945$as_echo_n "checking if we can lock with hard links... " >&6; }
7946  hard_links=yes
7947  $RM conftest*
7948  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7949  touch conftest.a
7950  ln conftest.a conftest.b 2>&5 || hard_links=no
7951  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7953$as_echo "$hard_links" >&6; }
7954  if test "$hard_links" = no; then
7955    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7956$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7957    need_locks=warn
7958  fi
7959else
7960  need_locks=no
7961fi
7962
7963
7964
7965
7966
7967
7968  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7969$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7970
7971  runpath_var=
7972  allow_undefined_flag=
7973  always_export_symbols=no
7974  archive_cmds=
7975  archive_expsym_cmds=
7976  compiler_needs_object=no
7977  enable_shared_with_static_runtimes=no
7978  export_dynamic_flag_spec=
7979  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7980  hardcode_automatic=no
7981  hardcode_direct=no
7982  hardcode_direct_absolute=no
7983  hardcode_libdir_flag_spec=
7984  hardcode_libdir_flag_spec_ld=
7985  hardcode_libdir_separator=
7986  hardcode_minus_L=no
7987  hardcode_shlibpath_var=unsupported
7988  inherit_rpath=no
7989  link_all_deplibs=unknown
7990  module_cmds=
7991  module_expsym_cmds=
7992  old_archive_from_new_cmds=
7993  old_archive_from_expsyms_cmds=
7994  thread_safe_flag_spec=
7995  whole_archive_flag_spec=
7996  # include_expsyms should be a list of space-separated symbols to be *always*
7997  # included in the symbol list
7998  include_expsyms=
7999  # exclude_expsyms can be an extended regexp of symbols to exclude
8000  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8001  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8002  # as well as any symbol that contains `d'.
8003  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8004  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8005  # platforms (ab)use it in PIC code, but their linkers get confused if
8006  # the symbol is explicitly referenced.  Since portable code cannot
8007  # rely on this symbol name, it's probably fine to never include it in
8008  # preloaded symbol tables.
8009  # Exclude shared library initialization/finalization symbols.
8010  extract_expsyms_cmds=
8011
8012  case $host_os in
8013  cygwin* | mingw* | pw32* | cegcc*)
8014    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8015    # When not using gcc, we currently assume that we are using
8016    # Microsoft Visual C++.
8017    if test "$GCC" != yes; then
8018      with_gnu_ld=no
8019    fi
8020    ;;
8021  interix*)
8022    # we just hope/assume this is gcc and not c89 (= MSVC++)
8023    with_gnu_ld=yes
8024    ;;
8025  openbsd*)
8026    with_gnu_ld=no
8027    ;;
8028  linux* | k*bsd*-gnu)
8029    link_all_deplibs=no
8030    ;;
8031  esac
8032
8033  ld_shlibs=yes
8034  if test "$with_gnu_ld" = yes; then
8035    # If archive_cmds runs LD, not CC, wlarc should be empty
8036    wlarc='${wl}'
8037
8038    # Set some defaults for GNU ld with shared library support. These
8039    # are reset later if shared libraries are not supported. Putting them
8040    # here allows them to be overridden if necessary.
8041    runpath_var=LD_RUN_PATH
8042    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8043    export_dynamic_flag_spec='${wl}--export-dynamic'
8044    # ancient GNU ld didn't support --whole-archive et. al.
8045    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8046      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8047    else
8048      whole_archive_flag_spec=
8049    fi
8050    supports_anon_versioning=no
8051    case `$LD -v 2>&1` in
8052      *GNU\ gold*) supports_anon_versioning=yes ;;
8053      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8054      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8055      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8056      *\ 2.11.*) ;; # other 2.11 versions
8057      *) supports_anon_versioning=yes ;;
8058    esac
8059
8060    # See if GNU ld supports shared libraries.
8061    case $host_os in
8062    aix[3-9]*)
8063      # On AIX/PPC, the GNU linker is very broken
8064      if test "$host_cpu" != ia64; then
8065	ld_shlibs=no
8066	cat <<_LT_EOF 1>&2
8067
8068*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8069*** to be unable to reliably create shared libraries on AIX.
8070*** Therefore, libtool is disabling shared libraries support.  If you
8071*** really care for shared libraries, you may want to modify your PATH
8072*** so that a non-GNU linker is found, and then restart.
8073
8074_LT_EOF
8075      fi
8076      ;;
8077
8078    amigaos*)
8079      case $host_cpu in
8080      powerpc)
8081            # see comment about AmigaOS4 .so support
8082            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8083            archive_expsym_cmds=''
8084        ;;
8085      m68k)
8086            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)'
8087            hardcode_libdir_flag_spec='-L$libdir'
8088            hardcode_minus_L=yes
8089        ;;
8090      esac
8091      ;;
8092
8093    beos*)
8094      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8095	allow_undefined_flag=unsupported
8096	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8097	# support --undefined.  This deserves some investigation.  FIXME
8098	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8099      else
8100	ld_shlibs=no
8101      fi
8102      ;;
8103
8104    cygwin* | mingw* | pw32* | cegcc*)
8105      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8106      # as there is no search path for DLLs.
8107      hardcode_libdir_flag_spec='-L$libdir'
8108      allow_undefined_flag=unsupported
8109      always_export_symbols=no
8110      enable_shared_with_static_runtimes=yes
8111      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8112
8113      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8114        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8115	# If the export-symbols file already is a .def file (1st line
8116	# is EXPORTS), use it as is; otherwise, prepend...
8117	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8118	  cp $export_symbols $output_objdir/$soname.def;
8119	else
8120	  echo EXPORTS > $output_objdir/$soname.def;
8121	  cat $export_symbols >> $output_objdir/$soname.def;
8122	fi~
8123	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8124      else
8125	ld_shlibs=no
8126      fi
8127      ;;
8128
8129    interix[3-9]*)
8130      hardcode_direct=no
8131      hardcode_shlibpath_var=no
8132      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8133      export_dynamic_flag_spec='${wl}-E'
8134      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8135      # Instead, shared libraries are loaded at an image base (0x10000000 by
8136      # default) and relocated if they conflict, which is a slow very memory
8137      # consuming and fragmenting process.  To avoid this, we pick a random,
8138      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8139      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8140      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8141      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'
8142      ;;
8143
8144    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8145      tmp_diet=no
8146      if test "$host_os" = linux-dietlibc; then
8147	case $cc_basename in
8148	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8149	esac
8150      fi
8151      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8152	 && test "$tmp_diet" = no
8153      then
8154	tmp_addflag=
8155	tmp_sharedflag='-shared'
8156	case $cc_basename,$host_cpu in
8157        pgcc*)				# Portland Group C compiler
8158	  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'
8159	  tmp_addflag=' $pic_flag'
8160	  ;;
8161	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8162	  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'
8163	  tmp_addflag=' $pic_flag -Mnomain' ;;
8164	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8165	  tmp_addflag=' -i_dynamic' ;;
8166	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8167	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8168	ifc* | ifort*)			# Intel Fortran compiler
8169	  tmp_addflag=' -nofor_main' ;;
8170	lf95*)				# Lahey Fortran 8.1
8171	  whole_archive_flag_spec=
8172	  tmp_sharedflag='--shared' ;;
8173	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
8174	  tmp_sharedflag='-qmkshrobj'
8175	  tmp_addflag= ;;
8176	esac
8177	case `$CC -V 2>&1 | sed 5q` in
8178	*Sun\ C*)			# Sun C 5.9
8179	  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'
8180	  compiler_needs_object=yes
8181	  tmp_sharedflag='-G' ;;
8182	*Sun\ F*)			# Sun Fortran 8.3
8183	  tmp_sharedflag='-G' ;;
8184	esac
8185	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8186
8187        if test "x$supports_anon_versioning" = xyes; then
8188          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8189	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8190	    echo "local: *; };" >> $output_objdir/$libname.ver~
8191	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8192        fi
8193
8194	case $cc_basename in
8195	xlf*)
8196	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8197	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8198	  hardcode_libdir_flag_spec=
8199	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8200	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8201	  if test "x$supports_anon_versioning" = xyes; then
8202	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8203	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8204	      echo "local: *; };" >> $output_objdir/$libname.ver~
8205	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8206	  fi
8207	  ;;
8208	esac
8209      else
8210        ld_shlibs=no
8211      fi
8212      ;;
8213
8214    netbsd* | netbsdelf*-gnu)
8215      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8216	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8217	wlarc=
8218      else
8219	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8220	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8221      fi
8222      ;;
8223
8224    solaris*)
8225      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8226	ld_shlibs=no
8227	cat <<_LT_EOF 1>&2
8228
8229*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8230*** create shared libraries on Solaris systems.  Therefore, libtool
8231*** is disabling shared libraries support.  We urge you to upgrade GNU
8232*** binutils to release 2.9.1 or newer.  Another option is to modify
8233*** your PATH or compiler configuration so that the native linker is
8234*** used, and then restart.
8235
8236_LT_EOF
8237      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8238	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8239	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8240      else
8241	ld_shlibs=no
8242      fi
8243      ;;
8244
8245    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8246      case `$LD -v 2>&1` in
8247        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8248	ld_shlibs=no
8249	cat <<_LT_EOF 1>&2
8250
8251*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8252*** reliably create shared libraries on SCO systems.  Therefore, libtool
8253*** is disabling shared libraries support.  We urge you to upgrade GNU
8254*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8255*** your PATH or compiler configuration so that the native linker is
8256*** used, and then restart.
8257
8258_LT_EOF
8259	;;
8260	*)
8261	  # For security reasons, it is highly recommended that you always
8262	  # use absolute paths for naming shared libraries, and exclude the
8263	  # DT_RUNPATH tag from executables and libraries.  But doing so
8264	  # requires that you compile everything twice, which is a pain.
8265	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8266	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8267	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8268	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8269	  else
8270	    ld_shlibs=no
8271	  fi
8272	;;
8273      esac
8274      ;;
8275
8276    sunos4*)
8277      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8278      wlarc=
8279      hardcode_direct=yes
8280      hardcode_shlibpath_var=no
8281      ;;
8282
8283    *)
8284      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8285	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8286	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8287      else
8288	ld_shlibs=no
8289      fi
8290      ;;
8291    esac
8292
8293    if test "$ld_shlibs" = no; then
8294      runpath_var=
8295      hardcode_libdir_flag_spec=
8296      export_dynamic_flag_spec=
8297      whole_archive_flag_spec=
8298    fi
8299  else
8300    # PORTME fill in a description of your system's linker (not GNU ld)
8301    case $host_os in
8302    aix3*)
8303      allow_undefined_flag=unsupported
8304      always_export_symbols=yes
8305      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'
8306      # Note: this linker hardcodes the directories in LIBPATH if there
8307      # are no directories specified by -L.
8308      hardcode_minus_L=yes
8309      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8310	# Neither direct hardcoding nor static linking is supported with a
8311	# broken collect2.
8312	hardcode_direct=unsupported
8313      fi
8314      ;;
8315
8316    aix[4-9]*)
8317      if test "$host_cpu" = ia64; then
8318	# On IA64, the linker does run time linking by default, so we don't
8319	# have to do anything special.
8320	aix_use_runtimelinking=no
8321	exp_sym_flag='-Bexport'
8322	no_entry_flag=""
8323      else
8324	# If we're using GNU nm, then we don't want the "-C" option.
8325	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8326	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8327	  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'
8328	else
8329	  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'
8330	fi
8331	aix_use_runtimelinking=no
8332
8333	# Test if we are trying to use run time linking or normal
8334	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8335	# need to do runtime linking.
8336	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8337	  for ld_flag in $LDFLAGS; do
8338	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8339	    aix_use_runtimelinking=yes
8340	    break
8341	  fi
8342	  done
8343	  ;;
8344	esac
8345
8346	exp_sym_flag='-bexport'
8347	no_entry_flag='-bnoentry'
8348      fi
8349
8350      # When large executables or shared objects are built, AIX ld can
8351      # have problems creating the table of contents.  If linking a library
8352      # or program results in "error TOC overflow" add -mminimal-toc to
8353      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8354      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8355
8356      archive_cmds=''
8357      hardcode_direct=yes
8358      hardcode_direct_absolute=yes
8359      hardcode_libdir_separator=':'
8360      link_all_deplibs=yes
8361      file_list_spec='${wl}-f,'
8362
8363      if test "$GCC" = yes; then
8364	case $host_os in aix4.[012]|aix4.[012].*)
8365	# We only want to do this on AIX 4.2 and lower, the check
8366	# below for broken collect2 doesn't work under 4.3+
8367	  collect2name=`${CC} -print-prog-name=collect2`
8368	  if test -f "$collect2name" &&
8369	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8370	  then
8371	  # We have reworked collect2
8372	  :
8373	  else
8374	  # We have old collect2
8375	  hardcode_direct=unsupported
8376	  # It fails to find uninstalled libraries when the uninstalled
8377	  # path is not listed in the libpath.  Setting hardcode_minus_L
8378	  # to unsupported forces relinking
8379	  hardcode_minus_L=yes
8380	  hardcode_libdir_flag_spec='-L$libdir'
8381	  hardcode_libdir_separator=
8382	  fi
8383	  ;;
8384	esac
8385	shared_flag='-shared'
8386	if test "$aix_use_runtimelinking" = yes; then
8387	  shared_flag="$shared_flag "'${wl}-G'
8388	fi
8389	link_all_deplibs=no
8390      else
8391	# not using gcc
8392	if test "$host_cpu" = ia64; then
8393	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8394	# chokes on -Wl,-G. The following line is correct:
8395	  shared_flag='-G'
8396	else
8397	  if test "$aix_use_runtimelinking" = yes; then
8398	    shared_flag='${wl}-G'
8399	  else
8400	    shared_flag='${wl}-bM:SRE'
8401	  fi
8402	fi
8403      fi
8404
8405      export_dynamic_flag_spec='${wl}-bexpall'
8406      # It seems that -bexpall does not export symbols beginning with
8407      # underscore (_), so it is better to generate a list of symbols to export.
8408      always_export_symbols=yes
8409      if test "$aix_use_runtimelinking" = yes; then
8410	# Warning - without using the other runtime loading flags (-brtl),
8411	# -berok will link without error, but may produce a broken library.
8412	allow_undefined_flag='-berok'
8413        # Determine the default libpath from the value encoded in an
8414        # empty executable.
8415        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8416/* end confdefs.h.  */
8417
8418int
8419main ()
8420{
8421
8422  ;
8423  return 0;
8424}
8425_ACEOF
8426if ac_fn_c_try_link "$LINENO"; then :
8427
8428lt_aix_libpath_sed='
8429    /Import File Strings/,/^$/ {
8430	/^0/ {
8431	    s/^0  *\(.*\)$/\1/
8432	    p
8433	}
8434    }'
8435aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8436# Check for a 64-bit object if we didn't find anything.
8437if test -z "$aix_libpath"; then
8438  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8439fi
8440fi
8441rm -f core conftest.err conftest.$ac_objext \
8442    conftest$ac_exeext conftest.$ac_ext
8443if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8444
8445        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8446        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"
8447      else
8448	if test "$host_cpu" = ia64; then
8449	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8450	  allow_undefined_flag="-z nodefs"
8451	  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"
8452	else
8453	 # Determine the default libpath from the value encoded in an
8454	 # empty executable.
8455	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8456/* end confdefs.h.  */
8457
8458int
8459main ()
8460{
8461
8462  ;
8463  return 0;
8464}
8465_ACEOF
8466if ac_fn_c_try_link "$LINENO"; then :
8467
8468lt_aix_libpath_sed='
8469    /Import File Strings/,/^$/ {
8470	/^0/ {
8471	    s/^0  *\(.*\)$/\1/
8472	    p
8473	}
8474    }'
8475aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8476# Check for a 64-bit object if we didn't find anything.
8477if test -z "$aix_libpath"; then
8478  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8479fi
8480fi
8481rm -f core conftest.err conftest.$ac_objext \
8482    conftest$ac_exeext conftest.$ac_ext
8483if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8484
8485	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8486	  # Warning - without using the other run time loading flags,
8487	  # -berok will link without error, but may produce a broken library.
8488	  no_undefined_flag=' ${wl}-bernotok'
8489	  allow_undefined_flag=' ${wl}-berok'
8490	  # Exported symbols can be pulled into shared objects from archives
8491	  whole_archive_flag_spec='$convenience'
8492	  archive_cmds_need_lc=yes
8493	  # This is similar to how AIX traditionally builds its shared libraries.
8494	  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'
8495	fi
8496      fi
8497      ;;
8498
8499    amigaos*)
8500      case $host_cpu in
8501      powerpc)
8502            # see comment about AmigaOS4 .so support
8503            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8504            archive_expsym_cmds=''
8505        ;;
8506      m68k)
8507            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)'
8508            hardcode_libdir_flag_spec='-L$libdir'
8509            hardcode_minus_L=yes
8510        ;;
8511      esac
8512      ;;
8513
8514    bsdi[45]*)
8515      export_dynamic_flag_spec=-rdynamic
8516      ;;
8517
8518    cygwin* | mingw* | pw32* | cegcc*)
8519      # When not using gcc, we currently assume that we are using
8520      # Microsoft Visual C++.
8521      # hardcode_libdir_flag_spec is actually meaningless, as there is
8522      # no search path for DLLs.
8523      hardcode_libdir_flag_spec=' '
8524      allow_undefined_flag=unsupported
8525      # Tell ltmain to make .lib files, not .a files.
8526      libext=lib
8527      # Tell ltmain to make .dll files, not .so files.
8528      shrext_cmds=".dll"
8529      # FIXME: Setting linknames here is a bad hack.
8530      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8531      # The linker will automatically build a .lib file if we build a DLL.
8532      old_archive_from_new_cmds='true'
8533      # FIXME: Should let the user specify the lib program.
8534      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8535      fix_srcfile_path='`cygpath -w "$srcfile"`'
8536      enable_shared_with_static_runtimes=yes
8537      ;;
8538
8539    darwin* | rhapsody*)
8540
8541
8542  archive_cmds_need_lc=no
8543  hardcode_direct=no
8544  hardcode_automatic=yes
8545  hardcode_shlibpath_var=unsupported
8546  whole_archive_flag_spec=''
8547  link_all_deplibs=yes
8548  allow_undefined_flag="$_lt_dar_allow_undefined"
8549  case $cc_basename in
8550     ifort*) _lt_dar_can_shared=yes ;;
8551     *) _lt_dar_can_shared=$GCC ;;
8552  esac
8553  if test "$_lt_dar_can_shared" = "yes"; then
8554    output_verbose_link_cmd=echo
8555    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8556    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8557    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}"
8558    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}"
8559
8560  else
8561  ld_shlibs=no
8562  fi
8563
8564      ;;
8565
8566    dgux*)
8567      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8568      hardcode_libdir_flag_spec='-L$libdir'
8569      hardcode_shlibpath_var=no
8570      ;;
8571
8572    freebsd1*)
8573      ld_shlibs=no
8574      ;;
8575
8576    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8577    # support.  Future versions do this automatically, but an explicit c++rt0.o
8578    # does not break anything, and helps significantly (at the cost of a little
8579    # extra space).
8580    freebsd2.2*)
8581      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8582      hardcode_libdir_flag_spec='-R$libdir'
8583      hardcode_direct=yes
8584      hardcode_shlibpath_var=no
8585      ;;
8586
8587    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8588    freebsd2*)
8589      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8590      hardcode_direct=yes
8591      hardcode_minus_L=yes
8592      hardcode_shlibpath_var=no
8593      ;;
8594
8595    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8596    freebsd* | dragonfly*)
8597      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8598      hardcode_libdir_flag_spec='-R$libdir'
8599      hardcode_direct=yes
8600      hardcode_shlibpath_var=no
8601      ;;
8602
8603    hpux9*)
8604      if test "$GCC" = yes; then
8605	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'
8606      else
8607	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'
8608      fi
8609      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8610      hardcode_libdir_separator=:
8611      hardcode_direct=yes
8612
8613      # hardcode_minus_L: Not really in the search PATH,
8614      # but as the default location of the library.
8615      hardcode_minus_L=yes
8616      export_dynamic_flag_spec='${wl}-E'
8617      ;;
8618
8619    hpux10*)
8620      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8621	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8622      else
8623	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8624      fi
8625      if test "$with_gnu_ld" = no; then
8626	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8627	hardcode_libdir_flag_spec_ld='+b $libdir'
8628	hardcode_libdir_separator=:
8629	hardcode_direct=yes
8630	hardcode_direct_absolute=yes
8631	export_dynamic_flag_spec='${wl}-E'
8632	# hardcode_minus_L: Not really in the search PATH,
8633	# but as the default location of the library.
8634	hardcode_minus_L=yes
8635      fi
8636      ;;
8637
8638    hpux11*)
8639      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8640	case $host_cpu in
8641	hppa*64*)
8642	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8643	  ;;
8644	ia64*)
8645	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8646	  ;;
8647	*)
8648	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8649	  ;;
8650	esac
8651      else
8652	case $host_cpu in
8653	hppa*64*)
8654	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8655	  ;;
8656	ia64*)
8657	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8658	  ;;
8659	*)
8660	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8661	  ;;
8662	esac
8663      fi
8664      if test "$with_gnu_ld" = no; then
8665	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8666	hardcode_libdir_separator=:
8667
8668	case $host_cpu in
8669	hppa*64*|ia64*)
8670	  hardcode_direct=no
8671	  hardcode_shlibpath_var=no
8672	  ;;
8673	*)
8674	  hardcode_direct=yes
8675	  hardcode_direct_absolute=yes
8676	  export_dynamic_flag_spec='${wl}-E'
8677
8678	  # hardcode_minus_L: Not really in the search PATH,
8679	  # but as the default location of the library.
8680	  hardcode_minus_L=yes
8681	  ;;
8682	esac
8683      fi
8684      ;;
8685
8686    irix5* | irix6* | nonstopux*)
8687      if test "$GCC" = yes; then
8688	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'
8689	# Try to use the -exported_symbol ld option, if it does not
8690	# work, assume that -exports_file does not work either and
8691	# implicitly export all symbols.
8692        save_LDFLAGS="$LDFLAGS"
8693        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8694        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8695/* end confdefs.h.  */
8696int foo(void) {}
8697_ACEOF
8698if ac_fn_c_try_link "$LINENO"; then :
8699  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'
8700
8701fi
8702rm -f core conftest.err conftest.$ac_objext \
8703    conftest$ac_exeext conftest.$ac_ext
8704        LDFLAGS="$save_LDFLAGS"
8705      else
8706	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'
8707	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'
8708      fi
8709      archive_cmds_need_lc='no'
8710      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8711      hardcode_libdir_separator=:
8712      inherit_rpath=yes
8713      link_all_deplibs=yes
8714      ;;
8715
8716    netbsd* | netbsdelf*-gnu)
8717      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8718	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8719      else
8720	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8721      fi
8722      hardcode_libdir_flag_spec='-R$libdir'
8723      hardcode_direct=yes
8724      hardcode_shlibpath_var=no
8725      ;;
8726
8727    newsos6)
8728      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8729      hardcode_direct=yes
8730      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8731      hardcode_libdir_separator=:
8732      hardcode_shlibpath_var=no
8733      ;;
8734
8735    *nto* | *qnx*)
8736      ;;
8737
8738    openbsd*)
8739      if test -f /usr/libexec/ld.so; then
8740	hardcode_direct=yes
8741	hardcode_shlibpath_var=no
8742	hardcode_direct_absolute=yes
8743	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8744	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8745	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8746	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8747	  export_dynamic_flag_spec='${wl}-E'
8748	else
8749	  case $host_os in
8750	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8751	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8752	     hardcode_libdir_flag_spec='-R$libdir'
8753	     ;;
8754	   *)
8755	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8756	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8757	     ;;
8758	  esac
8759	fi
8760      else
8761	ld_shlibs=no
8762      fi
8763      ;;
8764
8765    os2*)
8766      hardcode_libdir_flag_spec='-L$libdir'
8767      hardcode_minus_L=yes
8768      allow_undefined_flag=unsupported
8769      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'
8770      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8771      ;;
8772
8773    osf3*)
8774      if test "$GCC" = yes; then
8775	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8776	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'
8777      else
8778	allow_undefined_flag=' -expect_unresolved \*'
8779	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'
8780      fi
8781      archive_cmds_need_lc='no'
8782      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8783      hardcode_libdir_separator=:
8784      ;;
8785
8786    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8787      if test "$GCC" = yes; then
8788	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8789	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'
8790	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8791      else
8792	allow_undefined_flag=' -expect_unresolved \*'
8793	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'
8794	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~
8795	$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'
8796
8797	# Both c and cxx compiler support -rpath directly
8798	hardcode_libdir_flag_spec='-rpath $libdir'
8799      fi
8800      archive_cmds_need_lc='no'
8801      hardcode_libdir_separator=:
8802      ;;
8803
8804    solaris*)
8805      no_undefined_flag=' -z defs'
8806      if test "$GCC" = yes; then
8807	wlarc='${wl}'
8808	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8809	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8810	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8811      else
8812	case `$CC -V 2>&1` in
8813	*"Compilers 5.0"*)
8814	  wlarc=''
8815	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8816	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8817	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8818	  ;;
8819	*)
8820	  wlarc='${wl}'
8821	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8822	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8823	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8824	  ;;
8825	esac
8826      fi
8827      hardcode_libdir_flag_spec='-R$libdir'
8828      hardcode_shlibpath_var=no
8829      case $host_os in
8830      solaris2.[0-5] | solaris2.[0-5].*) ;;
8831      *)
8832	# The compiler driver will combine and reorder linker options,
8833	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8834	# but is careful enough not to reorder.
8835	# Supported since Solaris 2.6 (maybe 2.5.1?)
8836	if test "$GCC" = yes; then
8837	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8838	else
8839	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8840	fi
8841	;;
8842      esac
8843      link_all_deplibs=yes
8844      ;;
8845
8846    sunos4*)
8847      if test "x$host_vendor" = xsequent; then
8848	# Use $CC to link under sequent, because it throws in some extra .o
8849	# files that make .init and .fini sections work.
8850	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8851      else
8852	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8853      fi
8854      hardcode_libdir_flag_spec='-L$libdir'
8855      hardcode_direct=yes
8856      hardcode_minus_L=yes
8857      hardcode_shlibpath_var=no
8858      ;;
8859
8860    sysv4)
8861      case $host_vendor in
8862	sni)
8863	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8864	  hardcode_direct=yes # is this really true???
8865	;;
8866	siemens)
8867	  ## LD is ld it makes a PLAMLIB
8868	  ## CC just makes a GrossModule.
8869	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8870	  reload_cmds='$CC -r -o $output$reload_objs'
8871	  hardcode_direct=no
8872        ;;
8873	motorola)
8874	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8875	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8876	;;
8877      esac
8878      runpath_var='LD_RUN_PATH'
8879      hardcode_shlibpath_var=no
8880      ;;
8881
8882    sysv4.3*)
8883      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8884      hardcode_shlibpath_var=no
8885      export_dynamic_flag_spec='-Bexport'
8886      ;;
8887
8888    sysv4*MP*)
8889      if test -d /usr/nec; then
8890	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8891	hardcode_shlibpath_var=no
8892	runpath_var=LD_RUN_PATH
8893	hardcode_runpath_var=yes
8894	ld_shlibs=yes
8895      fi
8896      ;;
8897
8898    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8899      no_undefined_flag='${wl}-z,text'
8900      archive_cmds_need_lc=no
8901      hardcode_shlibpath_var=no
8902      runpath_var='LD_RUN_PATH'
8903
8904      if test "$GCC" = yes; then
8905	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8906	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8907      else
8908	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8909	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8910      fi
8911      ;;
8912
8913    sysv5* | sco3.2v5* | sco5v6*)
8914      # Note: We can NOT use -z defs as we might desire, because we do not
8915      # link with -lc, and that would cause any symbols used from libc to
8916      # always be unresolved, which means just about no library would
8917      # ever link correctly.  If we're not using GNU ld we use -z text
8918      # though, which does catch some bad symbols but isn't as heavy-handed
8919      # as -z defs.
8920      no_undefined_flag='${wl}-z,text'
8921      allow_undefined_flag='${wl}-z,nodefs'
8922      archive_cmds_need_lc=no
8923      hardcode_shlibpath_var=no
8924      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8925      hardcode_libdir_separator=':'
8926      link_all_deplibs=yes
8927      export_dynamic_flag_spec='${wl}-Bexport'
8928      runpath_var='LD_RUN_PATH'
8929
8930      if test "$GCC" = yes; then
8931	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8932	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8933      else
8934	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8935	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8936      fi
8937      ;;
8938
8939    uts4*)
8940      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8941      hardcode_libdir_flag_spec='-L$libdir'
8942      hardcode_shlibpath_var=no
8943      ;;
8944
8945    *)
8946      ld_shlibs=no
8947      ;;
8948    esac
8949
8950    if test x$host_vendor = xsni; then
8951      case $host in
8952      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8953	export_dynamic_flag_spec='${wl}-Blargedynsym'
8954	;;
8955      esac
8956    fi
8957  fi
8958
8959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8960$as_echo "$ld_shlibs" >&6; }
8961test "$ld_shlibs" = no && can_build_shared=no
8962
8963with_gnu_ld=$with_gnu_ld
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979#
8980# Do we need to explicitly link libc?
8981#
8982case "x$archive_cmds_need_lc" in
8983x|xyes)
8984  # Assume -lc should be added
8985  archive_cmds_need_lc=yes
8986
8987  if test "$enable_shared" = yes && test "$GCC" = yes; then
8988    case $archive_cmds in
8989    *'~'*)
8990      # FIXME: we may have to deal with multi-command sequences.
8991      ;;
8992    '$CC '*)
8993      # Test whether the compiler implicitly links with -lc since on some
8994      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8995      # to ld, don't add -lc before -lgcc.
8996      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8997$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8998      $RM conftest*
8999      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9000
9001      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9002  (eval $ac_compile) 2>&5
9003  ac_status=$?
9004  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9005  test $ac_status = 0; } 2>conftest.err; then
9006        soname=conftest
9007        lib=conftest
9008        libobjs=conftest.$ac_objext
9009        deplibs=
9010        wl=$lt_prog_compiler_wl
9011	pic_flag=$lt_prog_compiler_pic
9012        compiler_flags=-v
9013        linker_flags=-v
9014        verstring=
9015        output_objdir=.
9016        libname=conftest
9017        lt_save_allow_undefined_flag=$allow_undefined_flag
9018        allow_undefined_flag=
9019        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9020  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9021  ac_status=$?
9022  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9023  test $ac_status = 0; }
9024        then
9025	  archive_cmds_need_lc=no
9026        else
9027	  archive_cmds_need_lc=yes
9028        fi
9029        allow_undefined_flag=$lt_save_allow_undefined_flag
9030      else
9031        cat conftest.err 1>&5
9032      fi
9033      $RM conftest*
9034      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9035$as_echo "$archive_cmds_need_lc" >&6; }
9036      ;;
9037    esac
9038  fi
9039  ;;
9040esac
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9199$as_echo_n "checking dynamic linker characteristics... " >&6; }
9200
9201if test "$GCC" = yes; then
9202  case $host_os in
9203    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9204    *) lt_awk_arg="/^libraries:/" ;;
9205  esac
9206  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9207  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9208    # if the path contains ";" then we assume it to be the separator
9209    # otherwise default to the standard path separator (i.e. ":") - it is
9210    # assumed that no part of a normal pathname contains ";" but that should
9211    # okay in the real world where ";" in dirpaths is itself problematic.
9212    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9213  else
9214    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9215  fi
9216  # Ok, now we have the path, separated by spaces, we can step through it
9217  # and add multilib dir if necessary.
9218  lt_tmp_lt_search_path_spec=
9219  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9220  for lt_sys_path in $lt_search_path_spec; do
9221    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9222      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9223    else
9224      test -d "$lt_sys_path" && \
9225	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9226    fi
9227  done
9228  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9229BEGIN {RS=" "; FS="/|\n";} {
9230  lt_foo="";
9231  lt_count=0;
9232  for (lt_i = NF; lt_i > 0; lt_i--) {
9233    if ($lt_i != "" && $lt_i != ".") {
9234      if ($lt_i == "..") {
9235        lt_count++;
9236      } else {
9237        if (lt_count == 0) {
9238          lt_foo="/" $lt_i lt_foo;
9239        } else {
9240          lt_count--;
9241        }
9242      }
9243    }
9244  }
9245  if (lt_foo != "") { lt_freq[lt_foo]++; }
9246  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9247}'`
9248  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9249else
9250  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9251fi
9252library_names_spec=
9253libname_spec='lib$name'
9254soname_spec=
9255shrext_cmds=".so"
9256postinstall_cmds=
9257postuninstall_cmds=
9258finish_cmds=
9259finish_eval=
9260shlibpath_var=
9261shlibpath_overrides_runpath=unknown
9262version_type=none
9263dynamic_linker="$host_os ld.so"
9264sys_lib_dlsearch_path_spec="/lib /usr/lib"
9265need_lib_prefix=unknown
9266hardcode_into_libs=no
9267
9268# when you set need_version to no, make sure it does not cause -set_version
9269# flags to be left without arguments
9270need_version=unknown
9271
9272case $host_os in
9273aix3*)
9274  version_type=linux
9275  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9276  shlibpath_var=LIBPATH
9277
9278  # AIX 3 has no versioning support, so we append a major version to the name.
9279  soname_spec='${libname}${release}${shared_ext}$major'
9280  ;;
9281
9282aix[4-9]*)
9283  version_type=linux
9284  need_lib_prefix=no
9285  need_version=no
9286  hardcode_into_libs=yes
9287  if test "$host_cpu" = ia64; then
9288    # AIX 5 supports IA64
9289    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9290    shlibpath_var=LD_LIBRARY_PATH
9291  else
9292    # With GCC up to 2.95.x, collect2 would create an import file
9293    # for dependence libraries.  The import file would start with
9294    # the line `#! .'.  This would cause the generated library to
9295    # depend on `.', always an invalid library.  This was fixed in
9296    # development snapshots of GCC prior to 3.0.
9297    case $host_os in
9298      aix4 | aix4.[01] | aix4.[01].*)
9299      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9300	   echo ' yes '
9301	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9302	:
9303      else
9304	can_build_shared=no
9305      fi
9306      ;;
9307    esac
9308    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9309    # soname into executable. Probably we can add versioning support to
9310    # collect2, so additional links can be useful in future.
9311    if test "$aix_use_runtimelinking" = yes; then
9312      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9313      # instead of lib<name>.a to let people know that these are not
9314      # typical AIX shared libraries.
9315      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9316    else
9317      # We preserve .a as extension for shared libraries through AIX4.2
9318      # and later when we are not doing run time linking.
9319      library_names_spec='${libname}${release}.a $libname.a'
9320      soname_spec='${libname}${release}${shared_ext}$major'
9321    fi
9322    shlibpath_var=LIBPATH
9323  fi
9324  ;;
9325
9326amigaos*)
9327  case $host_cpu in
9328  powerpc)
9329    # Since July 2007 AmigaOS4 officially supports .so libraries.
9330    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9331    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9332    ;;
9333  m68k)
9334    library_names_spec='$libname.ixlibrary $libname.a'
9335    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9336    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'
9337    ;;
9338  esac
9339  ;;
9340
9341beos*)
9342  library_names_spec='${libname}${shared_ext}'
9343  dynamic_linker="$host_os ld.so"
9344  shlibpath_var=LIBRARY_PATH
9345  ;;
9346
9347bsdi[45]*)
9348  version_type=linux
9349  need_version=no
9350  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9351  soname_spec='${libname}${release}${shared_ext}$major'
9352  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9353  shlibpath_var=LD_LIBRARY_PATH
9354  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9355  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9356  # the default ld.so.conf also contains /usr/contrib/lib and
9357  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9358  # libtool to hard-code these into programs
9359  ;;
9360
9361cygwin* | mingw* | pw32* | cegcc*)
9362  version_type=windows
9363  shrext_cmds=".dll"
9364  need_version=no
9365  need_lib_prefix=no
9366
9367  case $GCC,$host_os in
9368  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9369    library_names_spec='$libname.dll.a'
9370    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9371    postinstall_cmds='base_file=`basename \${file}`~
9372      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9373      dldir=$destdir/`dirname \$dlpath`~
9374      test -d \$dldir || mkdir -p \$dldir~
9375      $install_prog $dir/$dlname \$dldir/$dlname~
9376      chmod a+x \$dldir/$dlname~
9377      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9378        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9379      fi'
9380    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9381      dlpath=$dir/\$dldll~
9382       $RM \$dlpath'
9383    shlibpath_overrides_runpath=yes
9384
9385    case $host_os in
9386    cygwin*)
9387      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9388      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9389      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9390      ;;
9391    mingw* | cegcc*)
9392      # MinGW DLLs use traditional 'lib' prefix
9393      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9394      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9395      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9396        # It is most probably a Windows format PATH printed by
9397        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9398        # path with ; separators, and with drive letters. We can handle the
9399        # drive letters (cygwin fileutils understands them), so leave them,
9400        # especially as we might pass files found there to a mingw objdump,
9401        # which wouldn't understand a cygwinified path. Ahh.
9402        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9403      else
9404        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9405      fi
9406      ;;
9407    pw32*)
9408      # pw32 DLLs use 'pw' prefix rather than 'lib'
9409      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9410      ;;
9411    esac
9412    ;;
9413
9414  *)
9415    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9416    ;;
9417  esac
9418  dynamic_linker='Win32 ld.exe'
9419  # FIXME: first we should search . and the directory the executable is in
9420  shlibpath_var=PATH
9421  ;;
9422
9423darwin* | rhapsody*)
9424  dynamic_linker="$host_os dyld"
9425  version_type=darwin
9426  need_lib_prefix=no
9427  need_version=no
9428  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9429  soname_spec='${libname}${release}${major}$shared_ext'
9430  shlibpath_overrides_runpath=yes
9431  shlibpath_var=DYLD_LIBRARY_PATH
9432  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9433
9434  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9435  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9436  ;;
9437
9438dgux*)
9439  version_type=linux
9440  need_lib_prefix=no
9441  need_version=no
9442  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9443  soname_spec='${libname}${release}${shared_ext}$major'
9444  shlibpath_var=LD_LIBRARY_PATH
9445  ;;
9446
9447freebsd1*)
9448  dynamic_linker=no
9449  ;;
9450
9451freebsd* | dragonfly*)
9452  # DragonFly does not have aout.  When/if they implement a new
9453  # versioning mechanism, adjust this.
9454  if test -x /usr/bin/objformat; then
9455    objformat=`/usr/bin/objformat`
9456  else
9457    case $host_os in
9458    freebsd[123]*) objformat=aout ;;
9459    *) objformat=elf ;;
9460    esac
9461  fi
9462  version_type=freebsd-$objformat
9463  case $version_type in
9464    freebsd-elf*)
9465      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9466      need_version=no
9467      need_lib_prefix=no
9468      ;;
9469    freebsd-*)
9470      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9471      need_version=yes
9472      ;;
9473  esac
9474  shlibpath_var=LD_LIBRARY_PATH
9475  case $host_os in
9476  freebsd2*)
9477    shlibpath_overrides_runpath=yes
9478    ;;
9479  freebsd3.[01]* | freebsdelf3.[01]*)
9480    shlibpath_overrides_runpath=yes
9481    hardcode_into_libs=yes
9482    ;;
9483  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9484  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9485    shlibpath_overrides_runpath=no
9486    hardcode_into_libs=yes
9487    ;;
9488  *) # from 4.6 on, and DragonFly
9489    shlibpath_overrides_runpath=yes
9490    hardcode_into_libs=yes
9491    ;;
9492  esac
9493  ;;
9494
9495gnu*)
9496  version_type=linux
9497  need_lib_prefix=no
9498  need_version=no
9499  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9500  soname_spec='${libname}${release}${shared_ext}$major'
9501  shlibpath_var=LD_LIBRARY_PATH
9502  hardcode_into_libs=yes
9503  ;;
9504
9505hpux9* | hpux10* | hpux11*)
9506  # Give a soname corresponding to the major version so that dld.sl refuses to
9507  # link against other versions.
9508  version_type=sunos
9509  need_lib_prefix=no
9510  need_version=no
9511  case $host_cpu in
9512  ia64*)
9513    shrext_cmds='.so'
9514    hardcode_into_libs=yes
9515    dynamic_linker="$host_os dld.so"
9516    shlibpath_var=LD_LIBRARY_PATH
9517    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9518    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9519    soname_spec='${libname}${release}${shared_ext}$major'
9520    if test "X$HPUX_IA64_MODE" = X32; then
9521      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9522    else
9523      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9524    fi
9525    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9526    ;;
9527  hppa*64*)
9528    shrext_cmds='.sl'
9529    hardcode_into_libs=yes
9530    dynamic_linker="$host_os dld.sl"
9531    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9532    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9533    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9534    soname_spec='${libname}${release}${shared_ext}$major'
9535    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9536    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9537    ;;
9538  *)
9539    shrext_cmds='.sl'
9540    dynamic_linker="$host_os dld.sl"
9541    shlibpath_var=SHLIB_PATH
9542    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9543    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9544    soname_spec='${libname}${release}${shared_ext}$major'
9545    ;;
9546  esac
9547  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9548  postinstall_cmds='chmod 555 $lib'
9549  ;;
9550
9551interix[3-9]*)
9552  version_type=linux
9553  need_lib_prefix=no
9554  need_version=no
9555  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9556  soname_spec='${libname}${release}${shared_ext}$major'
9557  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9558  shlibpath_var=LD_LIBRARY_PATH
9559  shlibpath_overrides_runpath=no
9560  hardcode_into_libs=yes
9561  ;;
9562
9563irix5* | irix6* | nonstopux*)
9564  case $host_os in
9565    nonstopux*) version_type=nonstopux ;;
9566    *)
9567	if test "$lt_cv_prog_gnu_ld" = yes; then
9568		version_type=linux
9569	else
9570		version_type=irix
9571	fi ;;
9572  esac
9573  need_lib_prefix=no
9574  need_version=no
9575  soname_spec='${libname}${release}${shared_ext}$major'
9576  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9577  case $host_os in
9578  irix5* | nonstopux*)
9579    libsuff= shlibsuff=
9580    ;;
9581  *)
9582    case $LD in # libtool.m4 will add one of these switches to LD
9583    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9584      libsuff= shlibsuff= libmagic=32-bit;;
9585    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9586      libsuff=32 shlibsuff=N32 libmagic=N32;;
9587    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9588      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9589    *) libsuff= shlibsuff= libmagic=never-match;;
9590    esac
9591    ;;
9592  esac
9593  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9594  shlibpath_overrides_runpath=no
9595  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9596  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9597  hardcode_into_libs=yes
9598  ;;
9599
9600# No shared lib support for Linux oldld, aout, or coff.
9601linux*oldld* | linux*aout* | linux*coff*)
9602  dynamic_linker=no
9603  ;;
9604
9605# This must be Linux ELF.
9606linux* | k*bsd*-gnu | kopensolaris*-gnu)
9607  version_type=linux
9608  need_lib_prefix=no
9609  need_version=no
9610  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9611  soname_spec='${libname}${release}${shared_ext}$major'
9612  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9613  shlibpath_var=LD_LIBRARY_PATH
9614  shlibpath_overrides_runpath=no
9615  # Some binutils ld are patched to set DT_RUNPATH
9616  save_LDFLAGS=$LDFLAGS
9617  save_libdir=$libdir
9618  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9619       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9621/* end confdefs.h.  */
9622
9623int
9624main ()
9625{
9626
9627  ;
9628  return 0;
9629}
9630_ACEOF
9631if ac_fn_c_try_link "$LINENO"; then :
9632  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9633  shlibpath_overrides_runpath=yes
9634fi
9635fi
9636rm -f core conftest.err conftest.$ac_objext \
9637    conftest$ac_exeext conftest.$ac_ext
9638  LDFLAGS=$save_LDFLAGS
9639  libdir=$save_libdir
9640
9641  # This implies no fast_install, which is unacceptable.
9642  # Some rework will be needed to allow for fast_install
9643  # before this can be enabled.
9644  hardcode_into_libs=yes
9645
9646  # Append ld.so.conf contents to the search path
9647  if test -f /etc/ld.so.conf; then
9648    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' ' '`
9649    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9650  fi
9651
9652  # We used to test for /lib/ld.so.1 and disable shared libraries on
9653  # powerpc, because MkLinux only supported shared libraries with the
9654  # GNU dynamic linker.  Since this was broken with cross compilers,
9655  # most powerpc-linux boxes support dynamic linking these days and
9656  # people can always --disable-shared, the test was removed, and we
9657  # assume the GNU/Linux dynamic linker is in use.
9658  dynamic_linker='GNU/Linux ld.so'
9659  ;;
9660
9661netbsdelf*-gnu)
9662  version_type=linux
9663  need_lib_prefix=no
9664  need_version=no
9665  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9666  soname_spec='${libname}${release}${shared_ext}$major'
9667  shlibpath_var=LD_LIBRARY_PATH
9668  shlibpath_overrides_runpath=no
9669  hardcode_into_libs=yes
9670  dynamic_linker='NetBSD ld.elf_so'
9671  ;;
9672
9673netbsd*)
9674  version_type=sunos
9675  need_lib_prefix=no
9676  need_version=no
9677  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9678    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9679    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9680    dynamic_linker='NetBSD (a.out) ld.so'
9681  else
9682    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9683    soname_spec='${libname}${release}${shared_ext}$major'
9684    dynamic_linker='NetBSD ld.elf_so'
9685  fi
9686  shlibpath_var=LD_LIBRARY_PATH
9687  shlibpath_overrides_runpath=yes
9688  hardcode_into_libs=yes
9689  ;;
9690
9691newsos6)
9692  version_type=linux
9693  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9694  shlibpath_var=LD_LIBRARY_PATH
9695  shlibpath_overrides_runpath=yes
9696  ;;
9697
9698*nto* | *qnx*)
9699  version_type=qnx
9700  need_lib_prefix=no
9701  need_version=no
9702  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9703  soname_spec='${libname}${release}${shared_ext}$major'
9704  shlibpath_var=LD_LIBRARY_PATH
9705  shlibpath_overrides_runpath=no
9706  hardcode_into_libs=yes
9707  dynamic_linker='ldqnx.so'
9708  ;;
9709
9710openbsd*)
9711  version_type=sunos
9712  sys_lib_dlsearch_path_spec="/usr/lib"
9713  need_lib_prefix=no
9714  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9715  case $host_os in
9716    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9717    *)				need_version=no  ;;
9718  esac
9719  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9720  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9721  shlibpath_var=LD_LIBRARY_PATH
9722  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9723    case $host_os in
9724      openbsd2.[89] | openbsd2.[89].*)
9725	shlibpath_overrides_runpath=no
9726	;;
9727      *)
9728	shlibpath_overrides_runpath=yes
9729	;;
9730      esac
9731  else
9732    shlibpath_overrides_runpath=yes
9733  fi
9734  ;;
9735
9736os2*)
9737  libname_spec='$name'
9738  shrext_cmds=".dll"
9739  need_lib_prefix=no
9740  library_names_spec='$libname${shared_ext} $libname.a'
9741  dynamic_linker='OS/2 ld.exe'
9742  shlibpath_var=LIBPATH
9743  ;;
9744
9745osf3* | osf4* | osf5*)
9746  version_type=osf
9747  need_lib_prefix=no
9748  need_version=no
9749  soname_spec='${libname}${release}${shared_ext}$major'
9750  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9751  shlibpath_var=LD_LIBRARY_PATH
9752  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9753  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9754  ;;
9755
9756rdos*)
9757  dynamic_linker=no
9758  ;;
9759
9760solaris*)
9761  version_type=linux
9762  need_lib_prefix=no
9763  need_version=no
9764  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9765  soname_spec='${libname}${release}${shared_ext}$major'
9766  shlibpath_var=LD_LIBRARY_PATH
9767  shlibpath_overrides_runpath=yes
9768  hardcode_into_libs=yes
9769  # ldd complains unless libraries are executable
9770  postinstall_cmds='chmod +x $lib'
9771  ;;
9772
9773sunos4*)
9774  version_type=sunos
9775  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9776  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9777  shlibpath_var=LD_LIBRARY_PATH
9778  shlibpath_overrides_runpath=yes
9779  if test "$with_gnu_ld" = yes; then
9780    need_lib_prefix=no
9781  fi
9782  need_version=yes
9783  ;;
9784
9785sysv4 | sysv4.3*)
9786  version_type=linux
9787  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9788  soname_spec='${libname}${release}${shared_ext}$major'
9789  shlibpath_var=LD_LIBRARY_PATH
9790  case $host_vendor in
9791    sni)
9792      shlibpath_overrides_runpath=no
9793      need_lib_prefix=no
9794      runpath_var=LD_RUN_PATH
9795      ;;
9796    siemens)
9797      need_lib_prefix=no
9798      ;;
9799    motorola)
9800      need_lib_prefix=no
9801      need_version=no
9802      shlibpath_overrides_runpath=no
9803      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9804      ;;
9805  esac
9806  ;;
9807
9808sysv4*MP*)
9809  if test -d /usr/nec ;then
9810    version_type=linux
9811    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9812    soname_spec='$libname${shared_ext}.$major'
9813    shlibpath_var=LD_LIBRARY_PATH
9814  fi
9815  ;;
9816
9817sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9818  version_type=freebsd-elf
9819  need_lib_prefix=no
9820  need_version=no
9821  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9822  soname_spec='${libname}${release}${shared_ext}$major'
9823  shlibpath_var=LD_LIBRARY_PATH
9824  shlibpath_overrides_runpath=yes
9825  hardcode_into_libs=yes
9826  if test "$with_gnu_ld" = yes; then
9827    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9828  else
9829    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9830    case $host_os in
9831      sco3.2v5*)
9832        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9833	;;
9834    esac
9835  fi
9836  sys_lib_dlsearch_path_spec='/usr/lib'
9837  ;;
9838
9839tpf*)
9840  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9841  version_type=linux
9842  need_lib_prefix=no
9843  need_version=no
9844  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9845  shlibpath_var=LD_LIBRARY_PATH
9846  shlibpath_overrides_runpath=no
9847  hardcode_into_libs=yes
9848  ;;
9849
9850uts4*)
9851  version_type=linux
9852  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9853  soname_spec='${libname}${release}${shared_ext}$major'
9854  shlibpath_var=LD_LIBRARY_PATH
9855  ;;
9856
9857*)
9858  dynamic_linker=no
9859  ;;
9860esac
9861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9862$as_echo "$dynamic_linker" >&6; }
9863test "$dynamic_linker" = no && can_build_shared=no
9864
9865variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9866if test "$GCC" = yes; then
9867  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9868fi
9869
9870if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9871  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9872fi
9873if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9874  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9875fi
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9964$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9965hardcode_action=
9966if test -n "$hardcode_libdir_flag_spec" ||
9967   test -n "$runpath_var" ||
9968   test "X$hardcode_automatic" = "Xyes" ; then
9969
9970  # We can hardcode non-existent directories.
9971  if test "$hardcode_direct" != no &&
9972     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9973     # have to relink, otherwise we might link with an installed library
9974     # when we should be linking with a yet-to-be-installed one
9975     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9976     test "$hardcode_minus_L" != no; then
9977    # Linking always hardcodes the temporary library directory.
9978    hardcode_action=relink
9979  else
9980    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9981    hardcode_action=immediate
9982  fi
9983else
9984  # We cannot hardcode anything, or else we can only hardcode existing
9985  # directories.
9986  hardcode_action=unsupported
9987fi
9988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9989$as_echo "$hardcode_action" >&6; }
9990
9991if test "$hardcode_action" = relink ||
9992   test "$inherit_rpath" = yes; then
9993  # Fast installation is not supported
9994  enable_fast_install=no
9995elif test "$shlibpath_overrides_runpath" = yes ||
9996     test "$enable_shared" = no; then
9997  # Fast installation is not necessary
9998  enable_fast_install=needless
9999fi
10000
10001
10002
10003
10004
10005
10006  if test "x$enable_dlopen" != xyes; then
10007  enable_dlopen=unknown
10008  enable_dlopen_self=unknown
10009  enable_dlopen_self_static=unknown
10010else
10011  lt_cv_dlopen=no
10012  lt_cv_dlopen_libs=
10013
10014  case $host_os in
10015  beos*)
10016    lt_cv_dlopen="load_add_on"
10017    lt_cv_dlopen_libs=
10018    lt_cv_dlopen_self=yes
10019    ;;
10020
10021  mingw* | pw32* | cegcc*)
10022    lt_cv_dlopen="LoadLibrary"
10023    lt_cv_dlopen_libs=
10024    ;;
10025
10026  cygwin*)
10027    lt_cv_dlopen="dlopen"
10028    lt_cv_dlopen_libs=
10029    ;;
10030
10031  darwin*)
10032  # if libdl is installed we need to link against it
10033    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10034$as_echo_n "checking for dlopen in -ldl... " >&6; }
10035if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10036  $as_echo_n "(cached) " >&6
10037else
10038  ac_check_lib_save_LIBS=$LIBS
10039LIBS="-ldl  $LIBS"
10040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10041/* end confdefs.h.  */
10042
10043/* Override any GCC internal prototype to avoid an error.
10044   Use char because int might match the return type of a GCC
10045   builtin and then its argument prototype would still apply.  */
10046#ifdef __cplusplus
10047extern "C"
10048#endif
10049char dlopen ();
10050int
10051main ()
10052{
10053return dlopen ();
10054  ;
10055  return 0;
10056}
10057_ACEOF
10058if ac_fn_c_try_link "$LINENO"; then :
10059  ac_cv_lib_dl_dlopen=yes
10060else
10061  ac_cv_lib_dl_dlopen=no
10062fi
10063rm -f core conftest.err conftest.$ac_objext \
10064    conftest$ac_exeext conftest.$ac_ext
10065LIBS=$ac_check_lib_save_LIBS
10066fi
10067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10068$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10069if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10070  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10071else
10072
10073    lt_cv_dlopen="dyld"
10074    lt_cv_dlopen_libs=
10075    lt_cv_dlopen_self=yes
10076
10077fi
10078
10079    ;;
10080
10081  *)
10082    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10083if test "x$ac_cv_func_shl_load" = x""yes; then :
10084  lt_cv_dlopen="shl_load"
10085else
10086  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10087$as_echo_n "checking for shl_load in -ldld... " >&6; }
10088if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10089  $as_echo_n "(cached) " >&6
10090else
10091  ac_check_lib_save_LIBS=$LIBS
10092LIBS="-ldld  $LIBS"
10093cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10094/* end confdefs.h.  */
10095
10096/* Override any GCC internal prototype to avoid an error.
10097   Use char because int might match the return type of a GCC
10098   builtin and then its argument prototype would still apply.  */
10099#ifdef __cplusplus
10100extern "C"
10101#endif
10102char shl_load ();
10103int
10104main ()
10105{
10106return shl_load ();
10107  ;
10108  return 0;
10109}
10110_ACEOF
10111if ac_fn_c_try_link "$LINENO"; then :
10112  ac_cv_lib_dld_shl_load=yes
10113else
10114  ac_cv_lib_dld_shl_load=no
10115fi
10116rm -f core conftest.err conftest.$ac_objext \
10117    conftest$ac_exeext conftest.$ac_ext
10118LIBS=$ac_check_lib_save_LIBS
10119fi
10120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10121$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10122if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10123  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10124else
10125  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10126if test "x$ac_cv_func_dlopen" = x""yes; then :
10127  lt_cv_dlopen="dlopen"
10128else
10129  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10130$as_echo_n "checking for dlopen in -ldl... " >&6; }
10131if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10132  $as_echo_n "(cached) " >&6
10133else
10134  ac_check_lib_save_LIBS=$LIBS
10135LIBS="-ldl  $LIBS"
10136cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10137/* end confdefs.h.  */
10138
10139/* Override any GCC internal prototype to avoid an error.
10140   Use char because int might match the return type of a GCC
10141   builtin and then its argument prototype would still apply.  */
10142#ifdef __cplusplus
10143extern "C"
10144#endif
10145char dlopen ();
10146int
10147main ()
10148{
10149return dlopen ();
10150  ;
10151  return 0;
10152}
10153_ACEOF
10154if ac_fn_c_try_link "$LINENO"; then :
10155  ac_cv_lib_dl_dlopen=yes
10156else
10157  ac_cv_lib_dl_dlopen=no
10158fi
10159rm -f core conftest.err conftest.$ac_objext \
10160    conftest$ac_exeext conftest.$ac_ext
10161LIBS=$ac_check_lib_save_LIBS
10162fi
10163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10164$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10165if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10166  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10167else
10168  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10169$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10170if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10171  $as_echo_n "(cached) " >&6
10172else
10173  ac_check_lib_save_LIBS=$LIBS
10174LIBS="-lsvld  $LIBS"
10175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10176/* end confdefs.h.  */
10177
10178/* Override any GCC internal prototype to avoid an error.
10179   Use char because int might match the return type of a GCC
10180   builtin and then its argument prototype would still apply.  */
10181#ifdef __cplusplus
10182extern "C"
10183#endif
10184char dlopen ();
10185int
10186main ()
10187{
10188return dlopen ();
10189  ;
10190  return 0;
10191}
10192_ACEOF
10193if ac_fn_c_try_link "$LINENO"; then :
10194  ac_cv_lib_svld_dlopen=yes
10195else
10196  ac_cv_lib_svld_dlopen=no
10197fi
10198rm -f core conftest.err conftest.$ac_objext \
10199    conftest$ac_exeext conftest.$ac_ext
10200LIBS=$ac_check_lib_save_LIBS
10201fi
10202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10203$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10204if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10205  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10206else
10207  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10208$as_echo_n "checking for dld_link in -ldld... " >&6; }
10209if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10210  $as_echo_n "(cached) " >&6
10211else
10212  ac_check_lib_save_LIBS=$LIBS
10213LIBS="-ldld  $LIBS"
10214cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10215/* end confdefs.h.  */
10216
10217/* Override any GCC internal prototype to avoid an error.
10218   Use char because int might match the return type of a GCC
10219   builtin and then its argument prototype would still apply.  */
10220#ifdef __cplusplus
10221extern "C"
10222#endif
10223char dld_link ();
10224int
10225main ()
10226{
10227return dld_link ();
10228  ;
10229  return 0;
10230}
10231_ACEOF
10232if ac_fn_c_try_link "$LINENO"; then :
10233  ac_cv_lib_dld_dld_link=yes
10234else
10235  ac_cv_lib_dld_dld_link=no
10236fi
10237rm -f core conftest.err conftest.$ac_objext \
10238    conftest$ac_exeext conftest.$ac_ext
10239LIBS=$ac_check_lib_save_LIBS
10240fi
10241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10242$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10243if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10244  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10245fi
10246
10247
10248fi
10249
10250
10251fi
10252
10253
10254fi
10255
10256
10257fi
10258
10259
10260fi
10261
10262    ;;
10263  esac
10264
10265  if test "x$lt_cv_dlopen" != xno; then
10266    enable_dlopen=yes
10267  else
10268    enable_dlopen=no
10269  fi
10270
10271  case $lt_cv_dlopen in
10272  dlopen)
10273    save_CPPFLAGS="$CPPFLAGS"
10274    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10275
10276    save_LDFLAGS="$LDFLAGS"
10277    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10278
10279    save_LIBS="$LIBS"
10280    LIBS="$lt_cv_dlopen_libs $LIBS"
10281
10282    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10283$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10284if test "${lt_cv_dlopen_self+set}" = set; then :
10285  $as_echo_n "(cached) " >&6
10286else
10287  	  if test "$cross_compiling" = yes; then :
10288  lt_cv_dlopen_self=cross
10289else
10290  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10291  lt_status=$lt_dlunknown
10292  cat > conftest.$ac_ext <<_LT_EOF
10293#line 10293 "configure"
10294#include "confdefs.h"
10295
10296#if HAVE_DLFCN_H
10297#include <dlfcn.h>
10298#endif
10299
10300#include <stdio.h>
10301
10302#ifdef RTLD_GLOBAL
10303#  define LT_DLGLOBAL		RTLD_GLOBAL
10304#else
10305#  ifdef DL_GLOBAL
10306#    define LT_DLGLOBAL		DL_GLOBAL
10307#  else
10308#    define LT_DLGLOBAL		0
10309#  endif
10310#endif
10311
10312/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10313   find out it does not work in some platform. */
10314#ifndef LT_DLLAZY_OR_NOW
10315#  ifdef RTLD_LAZY
10316#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10317#  else
10318#    ifdef DL_LAZY
10319#      define LT_DLLAZY_OR_NOW		DL_LAZY
10320#    else
10321#      ifdef RTLD_NOW
10322#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10323#      else
10324#        ifdef DL_NOW
10325#          define LT_DLLAZY_OR_NOW	DL_NOW
10326#        else
10327#          define LT_DLLAZY_OR_NOW	0
10328#        endif
10329#      endif
10330#    endif
10331#  endif
10332#endif
10333
10334void fnord() { int i=42;}
10335int main ()
10336{
10337  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10338  int status = $lt_dlunknown;
10339
10340  if (self)
10341    {
10342      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10343      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10344      /* dlclose (self); */
10345    }
10346  else
10347    puts (dlerror ());
10348
10349  return status;
10350}
10351_LT_EOF
10352  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10353  (eval $ac_link) 2>&5
10354  ac_status=$?
10355  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10356  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10357    (./conftest; exit; ) >&5 2>/dev/null
10358    lt_status=$?
10359    case x$lt_status in
10360      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10361      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10362      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10363    esac
10364  else :
10365    # compilation failed
10366    lt_cv_dlopen_self=no
10367  fi
10368fi
10369rm -fr conftest*
10370
10371
10372fi
10373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10374$as_echo "$lt_cv_dlopen_self" >&6; }
10375
10376    if test "x$lt_cv_dlopen_self" = xyes; then
10377      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10378      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10379$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10380if test "${lt_cv_dlopen_self_static+set}" = set; then :
10381  $as_echo_n "(cached) " >&6
10382else
10383  	  if test "$cross_compiling" = yes; then :
10384  lt_cv_dlopen_self_static=cross
10385else
10386  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10387  lt_status=$lt_dlunknown
10388  cat > conftest.$ac_ext <<_LT_EOF
10389#line 10389 "configure"
10390#include "confdefs.h"
10391
10392#if HAVE_DLFCN_H
10393#include <dlfcn.h>
10394#endif
10395
10396#include <stdio.h>
10397
10398#ifdef RTLD_GLOBAL
10399#  define LT_DLGLOBAL		RTLD_GLOBAL
10400#else
10401#  ifdef DL_GLOBAL
10402#    define LT_DLGLOBAL		DL_GLOBAL
10403#  else
10404#    define LT_DLGLOBAL		0
10405#  endif
10406#endif
10407
10408/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10409   find out it does not work in some platform. */
10410#ifndef LT_DLLAZY_OR_NOW
10411#  ifdef RTLD_LAZY
10412#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10413#  else
10414#    ifdef DL_LAZY
10415#      define LT_DLLAZY_OR_NOW		DL_LAZY
10416#    else
10417#      ifdef RTLD_NOW
10418#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10419#      else
10420#        ifdef DL_NOW
10421#          define LT_DLLAZY_OR_NOW	DL_NOW
10422#        else
10423#          define LT_DLLAZY_OR_NOW	0
10424#        endif
10425#      endif
10426#    endif
10427#  endif
10428#endif
10429
10430void fnord() { int i=42;}
10431int main ()
10432{
10433  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10434  int status = $lt_dlunknown;
10435
10436  if (self)
10437    {
10438      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10439      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10440      /* dlclose (self); */
10441    }
10442  else
10443    puts (dlerror ());
10444
10445  return status;
10446}
10447_LT_EOF
10448  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10449  (eval $ac_link) 2>&5
10450  ac_status=$?
10451  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10452  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10453    (./conftest; exit; ) >&5 2>/dev/null
10454    lt_status=$?
10455    case x$lt_status in
10456      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10457      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10458      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10459    esac
10460  else :
10461    # compilation failed
10462    lt_cv_dlopen_self_static=no
10463  fi
10464fi
10465rm -fr conftest*
10466
10467
10468fi
10469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10470$as_echo "$lt_cv_dlopen_self_static" >&6; }
10471    fi
10472
10473    CPPFLAGS="$save_CPPFLAGS"
10474    LDFLAGS="$save_LDFLAGS"
10475    LIBS="$save_LIBS"
10476    ;;
10477  esac
10478
10479  case $lt_cv_dlopen_self in
10480  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10481  *) enable_dlopen_self=unknown ;;
10482  esac
10483
10484  case $lt_cv_dlopen_self_static in
10485  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10486  *) enable_dlopen_self_static=unknown ;;
10487  esac
10488fi
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506striplib=
10507old_striplib=
10508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10509$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10510if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10511  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10512  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10514$as_echo "yes" >&6; }
10515else
10516# FIXME - insert some real tests, host_os isn't really good enough
10517  case $host_os in
10518  darwin*)
10519    if test -n "$STRIP" ; then
10520      striplib="$STRIP -x"
10521      old_striplib="$STRIP -S"
10522      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10523$as_echo "yes" >&6; }
10524    else
10525      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10526$as_echo "no" >&6; }
10527    fi
10528    ;;
10529  *)
10530    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10531$as_echo "no" >&6; }
10532    ;;
10533  esac
10534fi
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547  # Report which library types will actually be built
10548  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10549$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10551$as_echo "$can_build_shared" >&6; }
10552
10553  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10554$as_echo_n "checking whether to build shared libraries... " >&6; }
10555  test "$can_build_shared" = "no" && enable_shared=no
10556
10557  # On AIX, shared libraries and static libraries use the same namespace, and
10558  # are all built from PIC.
10559  case $host_os in
10560  aix3*)
10561    test "$enable_shared" = yes && enable_static=no
10562    if test -n "$RANLIB"; then
10563      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10564      postinstall_cmds='$RANLIB $lib'
10565    fi
10566    ;;
10567
10568  aix[4-9]*)
10569    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10570      test "$enable_shared" = yes && enable_static=no
10571    fi
10572    ;;
10573  esac
10574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10575$as_echo "$enable_shared" >&6; }
10576
10577  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10578$as_echo_n "checking whether to build static libraries... " >&6; }
10579  # Make sure either enable_shared or enable_static is yes.
10580  test "$enable_shared" = yes || enable_static=yes
10581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10582$as_echo "$enable_static" >&6; }
10583
10584
10585
10586
10587fi
10588ac_ext=c
10589ac_cpp='$CPP $CPPFLAGS'
10590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10592ac_compiler_gnu=$ac_cv_c_compiler_gnu
10593
10594CC="$lt_save_CC"
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608        ac_config_commands="$ac_config_commands libtool"
10609
10610
10611
10612
10613# Only expand once:
10614
10615
10616
10617
10618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
10619$as_echo_n "checking for library containing strerror... " >&6; }
10620if test "${ac_cv_search_strerror+set}" = set; then :
10621  $as_echo_n "(cached) " >&6
10622else
10623  ac_func_search_save_LIBS=$LIBS
10624cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10625/* end confdefs.h.  */
10626
10627/* Override any GCC internal prototype to avoid an error.
10628   Use char because int might match the return type of a GCC
10629   builtin and then its argument prototype would still apply.  */
10630#ifdef __cplusplus
10631extern "C"
10632#endif
10633char strerror ();
10634int
10635main ()
10636{
10637return strerror ();
10638  ;
10639  return 0;
10640}
10641_ACEOF
10642for ac_lib in '' cposix; do
10643  if test -z "$ac_lib"; then
10644    ac_res="none required"
10645  else
10646    ac_res=-l$ac_lib
10647    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10648  fi
10649  if ac_fn_c_try_link "$LINENO"; then :
10650  ac_cv_search_strerror=$ac_res
10651fi
10652rm -f core conftest.err conftest.$ac_objext \
10653    conftest$ac_exeext
10654  if test "${ac_cv_search_strerror+set}" = set; then :
10655  break
10656fi
10657done
10658if test "${ac_cv_search_strerror+set}" = set; then :
10659
10660else
10661  ac_cv_search_strerror=no
10662fi
10663rm conftest.$ac_ext
10664LIBS=$ac_func_search_save_LIBS
10665fi
10666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
10667$as_echo "$ac_cv_search_strerror" >&6; }
10668ac_res=$ac_cv_search_strerror
10669if test "$ac_res" != no; then :
10670  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10671
10672fi
10673
10674ac_ext=c
10675ac_cpp='$CPP $CPPFLAGS'
10676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10678ac_compiler_gnu=$ac_cv_c_compiler_gnu
10679if test -n "$ac_tool_prefix"; then
10680  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10681set dummy ${ac_tool_prefix}gcc; ac_word=$2
10682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10683$as_echo_n "checking for $ac_word... " >&6; }
10684if test "${ac_cv_prog_CC+set}" = set; then :
10685  $as_echo_n "(cached) " >&6
10686else
10687  if test -n "$CC"; then
10688  ac_cv_prog_CC="$CC" # Let the user override the test.
10689else
10690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10691for as_dir in $PATH
10692do
10693  IFS=$as_save_IFS
10694  test -z "$as_dir" && as_dir=.
10695    for ac_exec_ext in '' $ac_executable_extensions; do
10696  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10697    ac_cv_prog_CC="${ac_tool_prefix}gcc"
10698    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10699    break 2
10700  fi
10701done
10702  done
10703IFS=$as_save_IFS
10704
10705fi
10706fi
10707CC=$ac_cv_prog_CC
10708if test -n "$CC"; then
10709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10710$as_echo "$CC" >&6; }
10711else
10712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10713$as_echo "no" >&6; }
10714fi
10715
10716
10717fi
10718if test -z "$ac_cv_prog_CC"; then
10719  ac_ct_CC=$CC
10720  # Extract the first word of "gcc", so it can be a program name with args.
10721set dummy gcc; ac_word=$2
10722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10723$as_echo_n "checking for $ac_word... " >&6; }
10724if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
10725  $as_echo_n "(cached) " >&6
10726else
10727  if test -n "$ac_ct_CC"; then
10728  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10729else
10730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10731for as_dir in $PATH
10732do
10733  IFS=$as_save_IFS
10734  test -z "$as_dir" && as_dir=.
10735    for ac_exec_ext in '' $ac_executable_extensions; do
10736  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10737    ac_cv_prog_ac_ct_CC="gcc"
10738    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10739    break 2
10740  fi
10741done
10742  done
10743IFS=$as_save_IFS
10744
10745fi
10746fi
10747ac_ct_CC=$ac_cv_prog_ac_ct_CC
10748if test -n "$ac_ct_CC"; then
10749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10750$as_echo "$ac_ct_CC" >&6; }
10751else
10752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10753$as_echo "no" >&6; }
10754fi
10755
10756  if test "x$ac_ct_CC" = x; then
10757    CC=""
10758  else
10759    case $cross_compiling:$ac_tool_warned in
10760yes:)
10761{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10762$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10763ac_tool_warned=yes ;;
10764esac
10765    CC=$ac_ct_CC
10766  fi
10767else
10768  CC="$ac_cv_prog_CC"
10769fi
10770
10771if test -z "$CC"; then
10772          if test -n "$ac_tool_prefix"; then
10773    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10774set dummy ${ac_tool_prefix}cc; ac_word=$2
10775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10776$as_echo_n "checking for $ac_word... " >&6; }
10777if test "${ac_cv_prog_CC+set}" = set; then :
10778  $as_echo_n "(cached) " >&6
10779else
10780  if test -n "$CC"; then
10781  ac_cv_prog_CC="$CC" # Let the user override the test.
10782else
10783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10784for as_dir in $PATH
10785do
10786  IFS=$as_save_IFS
10787  test -z "$as_dir" && as_dir=.
10788    for ac_exec_ext in '' $ac_executable_extensions; do
10789  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10790    ac_cv_prog_CC="${ac_tool_prefix}cc"
10791    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10792    break 2
10793  fi
10794done
10795  done
10796IFS=$as_save_IFS
10797
10798fi
10799fi
10800CC=$ac_cv_prog_CC
10801if test -n "$CC"; then
10802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10803$as_echo "$CC" >&6; }
10804else
10805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10806$as_echo "no" >&6; }
10807fi
10808
10809
10810  fi
10811fi
10812if test -z "$CC"; then
10813  # Extract the first word of "cc", so it can be a program name with args.
10814set dummy cc; ac_word=$2
10815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10816$as_echo_n "checking for $ac_word... " >&6; }
10817if test "${ac_cv_prog_CC+set}" = set; then :
10818  $as_echo_n "(cached) " >&6
10819else
10820  if test -n "$CC"; then
10821  ac_cv_prog_CC="$CC" # Let the user override the test.
10822else
10823  ac_prog_rejected=no
10824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10825for as_dir in $PATH
10826do
10827  IFS=$as_save_IFS
10828  test -z "$as_dir" && as_dir=.
10829    for ac_exec_ext in '' $ac_executable_extensions; do
10830  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10831    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10832       ac_prog_rejected=yes
10833       continue
10834     fi
10835    ac_cv_prog_CC="cc"
10836    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10837    break 2
10838  fi
10839done
10840  done
10841IFS=$as_save_IFS
10842
10843if test $ac_prog_rejected = yes; then
10844  # We found a bogon in the path, so make sure we never use it.
10845  set dummy $ac_cv_prog_CC
10846  shift
10847  if test $# != 0; then
10848    # We chose a different compiler from the bogus one.
10849    # However, it has the same basename, so the bogon will be chosen
10850    # first if we set CC to just the basename; use the full file name.
10851    shift
10852    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10853  fi
10854fi
10855fi
10856fi
10857CC=$ac_cv_prog_CC
10858if test -n "$CC"; then
10859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10860$as_echo "$CC" >&6; }
10861else
10862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10863$as_echo "no" >&6; }
10864fi
10865
10866
10867fi
10868if test -z "$CC"; then
10869  if test -n "$ac_tool_prefix"; then
10870  for ac_prog in cl.exe
10871  do
10872    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10873set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10875$as_echo_n "checking for $ac_word... " >&6; }
10876if test "${ac_cv_prog_CC+set}" = set; then :
10877  $as_echo_n "(cached) " >&6
10878else
10879  if test -n "$CC"; then
10880  ac_cv_prog_CC="$CC" # Let the user override the test.
10881else
10882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10883for as_dir in $PATH
10884do
10885  IFS=$as_save_IFS
10886  test -z "$as_dir" && as_dir=.
10887    for ac_exec_ext in '' $ac_executable_extensions; do
10888  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10889    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10890    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10891    break 2
10892  fi
10893done
10894  done
10895IFS=$as_save_IFS
10896
10897fi
10898fi
10899CC=$ac_cv_prog_CC
10900if test -n "$CC"; then
10901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10902$as_echo "$CC" >&6; }
10903else
10904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10905$as_echo "no" >&6; }
10906fi
10907
10908
10909    test -n "$CC" && break
10910  done
10911fi
10912if test -z "$CC"; then
10913  ac_ct_CC=$CC
10914  for ac_prog in cl.exe
10915do
10916  # Extract the first word of "$ac_prog", so it can be a program name with args.
10917set dummy $ac_prog; ac_word=$2
10918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10919$as_echo_n "checking for $ac_word... " >&6; }
10920if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
10921  $as_echo_n "(cached) " >&6
10922else
10923  if test -n "$ac_ct_CC"; then
10924  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10925else
10926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10927for as_dir in $PATH
10928do
10929  IFS=$as_save_IFS
10930  test -z "$as_dir" && as_dir=.
10931    for ac_exec_ext in '' $ac_executable_extensions; do
10932  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10933    ac_cv_prog_ac_ct_CC="$ac_prog"
10934    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10935    break 2
10936  fi
10937done
10938  done
10939IFS=$as_save_IFS
10940
10941fi
10942fi
10943ac_ct_CC=$ac_cv_prog_ac_ct_CC
10944if test -n "$ac_ct_CC"; then
10945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10946$as_echo "$ac_ct_CC" >&6; }
10947else
10948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10949$as_echo "no" >&6; }
10950fi
10951
10952
10953  test -n "$ac_ct_CC" && break
10954done
10955
10956  if test "x$ac_ct_CC" = x; then
10957    CC=""
10958  else
10959    case $cross_compiling:$ac_tool_warned in
10960yes:)
10961{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10962$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10963ac_tool_warned=yes ;;
10964esac
10965    CC=$ac_ct_CC
10966  fi
10967fi
10968
10969fi
10970
10971
10972test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10973$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10974as_fn_error $? "no acceptable C compiler found in \$PATH
10975See \`config.log' for more details" "$LINENO" 5 ; }
10976
10977# Provide some information about the compiler.
10978$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
10979set X $ac_compile
10980ac_compiler=$2
10981for ac_option in --version -v -V -qversion; do
10982  { { ac_try="$ac_compiler $ac_option >&5"
10983case "(($ac_try" in
10984  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10985  *) ac_try_echo=$ac_try;;
10986esac
10987eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10988$as_echo "$ac_try_echo"; } >&5
10989  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10990  ac_status=$?
10991  if test -s conftest.err; then
10992    sed '10a\
10993... rest of stderr output deleted ...
10994         10q' conftest.err >conftest.er1
10995    cat conftest.er1 >&5
10996  fi
10997  rm -f conftest.er1 conftest.err
10998  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10999  test $ac_status = 0; }
11000done
11001
11002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11003$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11004if test "${ac_cv_c_compiler_gnu+set}" = set; then :
11005  $as_echo_n "(cached) " >&6
11006else
11007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11008/* end confdefs.h.  */
11009
11010int
11011main ()
11012{
11013#ifndef __GNUC__
11014       choke me
11015#endif
11016
11017  ;
11018  return 0;
11019}
11020_ACEOF
11021if ac_fn_c_try_compile "$LINENO"; then :
11022  ac_compiler_gnu=yes
11023else
11024  ac_compiler_gnu=no
11025fi
11026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11027ac_cv_c_compiler_gnu=$ac_compiler_gnu
11028
11029fi
11030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11031$as_echo "$ac_cv_c_compiler_gnu" >&6; }
11032if test $ac_compiler_gnu = yes; then
11033  GCC=yes
11034else
11035  GCC=
11036fi
11037ac_test_CFLAGS=${CFLAGS+set}
11038ac_save_CFLAGS=$CFLAGS
11039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11040$as_echo_n "checking whether $CC accepts -g... " >&6; }
11041if test "${ac_cv_prog_cc_g+set}" = set; then :
11042  $as_echo_n "(cached) " >&6
11043else
11044  ac_save_c_werror_flag=$ac_c_werror_flag
11045   ac_c_werror_flag=yes
11046   ac_cv_prog_cc_g=no
11047   CFLAGS="-g"
11048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11049/* end confdefs.h.  */
11050
11051int
11052main ()
11053{
11054
11055  ;
11056  return 0;
11057}
11058_ACEOF
11059if ac_fn_c_try_compile "$LINENO"; then :
11060  ac_cv_prog_cc_g=yes
11061else
11062  CFLAGS=""
11063      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11064/* end confdefs.h.  */
11065
11066int
11067main ()
11068{
11069
11070  ;
11071  return 0;
11072}
11073_ACEOF
11074if ac_fn_c_try_compile "$LINENO"; then :
11075
11076else
11077  ac_c_werror_flag=$ac_save_c_werror_flag
11078	 CFLAGS="-g"
11079	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11080/* end confdefs.h.  */
11081
11082int
11083main ()
11084{
11085
11086  ;
11087  return 0;
11088}
11089_ACEOF
11090if ac_fn_c_try_compile "$LINENO"; then :
11091  ac_cv_prog_cc_g=yes
11092fi
11093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11094fi
11095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11096fi
11097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11098   ac_c_werror_flag=$ac_save_c_werror_flag
11099fi
11100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11101$as_echo "$ac_cv_prog_cc_g" >&6; }
11102if test "$ac_test_CFLAGS" = set; then
11103  CFLAGS=$ac_save_CFLAGS
11104elif test $ac_cv_prog_cc_g = yes; then
11105  if test "$GCC" = yes; then
11106    CFLAGS="-g -O2"
11107  else
11108    CFLAGS="-g"
11109  fi
11110else
11111  if test "$GCC" = yes; then
11112    CFLAGS="-O2"
11113  else
11114    CFLAGS=
11115  fi
11116fi
11117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11118$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11119if test "${ac_cv_prog_cc_c89+set}" = set; then :
11120  $as_echo_n "(cached) " >&6
11121else
11122  ac_cv_prog_cc_c89=no
11123ac_save_CC=$CC
11124cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11125/* end confdefs.h.  */
11126#include <stdarg.h>
11127#include <stdio.h>
11128#include <sys/types.h>
11129#include <sys/stat.h>
11130/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11131struct buf { int x; };
11132FILE * (*rcsopen) (struct buf *, struct stat *, int);
11133static char *e (p, i)
11134     char **p;
11135     int i;
11136{
11137  return p[i];
11138}
11139static char *f (char * (*g) (char **, int), char **p, ...)
11140{
11141  char *s;
11142  va_list v;
11143  va_start (v,p);
11144  s = g (p, va_arg (v,int));
11145  va_end (v);
11146  return s;
11147}
11148
11149/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11150   function prototypes and stuff, but not '\xHH' hex character constants.
11151   These don't provoke an error unfortunately, instead are silently treated
11152   as 'x'.  The following induces an error, until -std is added to get
11153   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11154   array size at least.  It's necessary to write '\x00'==0 to get something
11155   that's true only with -std.  */
11156int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11157
11158/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11159   inside strings and character constants.  */
11160#define FOO(x) 'x'
11161int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11162
11163int test (int i, double x);
11164struct s1 {int (*f) (int a);};
11165struct s2 {int (*f) (double a);};
11166int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11167int argc;
11168char **argv;
11169int
11170main ()
11171{
11172return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11173  ;
11174  return 0;
11175}
11176_ACEOF
11177for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11178	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11179do
11180  CC="$ac_save_CC $ac_arg"
11181  if ac_fn_c_try_compile "$LINENO"; then :
11182  ac_cv_prog_cc_c89=$ac_arg
11183fi
11184rm -f core conftest.err conftest.$ac_objext
11185  test "x$ac_cv_prog_cc_c89" != "xno" && break
11186done
11187rm -f conftest.$ac_ext
11188CC=$ac_save_CC
11189
11190fi
11191# AC_CACHE_VAL
11192case "x$ac_cv_prog_cc_c89" in
11193  x)
11194    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11195$as_echo "none needed" >&6; } ;;
11196  xno)
11197    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11198$as_echo "unsupported" >&6; } ;;
11199  *)
11200    CC="$CC $ac_cv_prog_cc_c89"
11201    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11202$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11203esac
11204if test "x$ac_cv_prog_cc_c89" != xno; then :
11205
11206fi
11207
11208ac_ext=c
11209ac_cpp='$CPP $CPPFLAGS'
11210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11212ac_compiler_gnu=$ac_cv_c_compiler_gnu
11213
11214depcc="$CC"   am_compiler_list=
11215
11216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11217$as_echo_n "checking dependency style of $depcc... " >&6; }
11218if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
11219  $as_echo_n "(cached) " >&6
11220else
11221  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11222  # We make a subdir and do the tests there.  Otherwise we can end up
11223  # making bogus files that we don't know about and never remove.  For
11224  # instance it was reported that on HP-UX the gcc test will end up
11225  # making a dummy file named `D' -- because `-MD' means `put the output
11226  # in D'.
11227  mkdir conftest.dir
11228  # Copy depcomp to subdir because otherwise we won't find it if we're
11229  # using a relative directory.
11230  cp "$am_depcomp" conftest.dir
11231  cd conftest.dir
11232  # We will build objects and dependencies in a subdirectory because
11233  # it helps to detect inapplicable dependency modes.  For instance
11234  # both Tru64's cc and ICC support -MD to output dependencies as a
11235  # side effect of compilation, but ICC will put the dependencies in
11236  # the current directory while Tru64 will put them in the object
11237  # directory.
11238  mkdir sub
11239
11240  am_cv_CC_dependencies_compiler_type=none
11241  if test "$am_compiler_list" = ""; then
11242     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11243  fi
11244  am__universal=false
11245  case " $depcc " in #(
11246     *\ -arch\ *\ -arch\ *) am__universal=true ;;
11247     esac
11248
11249  for depmode in $am_compiler_list; do
11250    # Setup a source with many dependencies, because some compilers
11251    # like to wrap large dependency lists on column 80 (with \), and
11252    # we should not choose a depcomp mode which is confused by this.
11253    #
11254    # We need to recreate these files for each test, as the compiler may
11255    # overwrite some of them when testing with obscure command lines.
11256    # This happens at least with the AIX C compiler.
11257    : > sub/conftest.c
11258    for i in 1 2 3 4 5 6; do
11259      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11260      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11261      # Solaris 8's {/usr,}/bin/sh.
11262      touch sub/conftst$i.h
11263    done
11264    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11265
11266    # We check with `-c' and `-o' for the sake of the "dashmstdout"
11267    # mode.  It turns out that the SunPro C++ compiler does not properly
11268    # handle `-M -o', and we need to detect this.  Also, some Intel
11269    # versions had trouble with output in subdirs
11270    am__obj=sub/conftest.${OBJEXT-o}
11271    am__minus_obj="-o $am__obj"
11272    case $depmode in
11273    gcc)
11274      # This depmode causes a compiler race in universal mode.
11275      test "$am__universal" = false || continue
11276      ;;
11277    nosideeffect)
11278      # after this tag, mechanisms are not by side-effect, so they'll
11279      # only be used when explicitly requested
11280      if test "x$enable_dependency_tracking" = xyes; then
11281	continue
11282      else
11283	break
11284      fi
11285      ;;
11286    msvisualcpp | msvcmsys)
11287      # This compiler won't grok `-c -o', but also, the minuso test has
11288      # not run yet.  These depmodes are late enough in the game, and
11289      # so weak that their functioning should not be impacted.
11290      am__obj=conftest.${OBJEXT-o}
11291      am__minus_obj=
11292      ;;
11293    none) break ;;
11294    esac
11295    if depmode=$depmode \
11296       source=sub/conftest.c object=$am__obj \
11297       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11298       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11299         >/dev/null 2>conftest.err &&
11300       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11301       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11302       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11303       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11304      # icc doesn't choke on unknown options, it will just issue warnings
11305      # or remarks (even with -Werror).  So we grep stderr for any message
11306      # that says an option was ignored or not supported.
11307      # When given -MP, icc 7.0 and 7.1 complain thusly:
11308      #   icc: Command line warning: ignoring option '-M'; no argument required
11309      # The diagnosis changed in icc 8.0:
11310      #   icc: Command line remark: option '-MP' not supported
11311      if (grep 'ignoring option' conftest.err ||
11312          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11313        am_cv_CC_dependencies_compiler_type=$depmode
11314        break
11315      fi
11316    fi
11317  done
11318
11319  cd ..
11320  rm -rf conftest.dir
11321else
11322  am_cv_CC_dependencies_compiler_type=none
11323fi
11324
11325fi
11326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11327$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11328CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11329
11330 if
11331  test "x$enable_dependency_tracking" != xno \
11332  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11333  am__fastdepCC_TRUE=
11334  am__fastdepCC_FALSE='#'
11335else
11336  am__fastdepCC_TRUE='#'
11337  am__fastdepCC_FALSE=
11338fi
11339
11340
11341ac_ext=c
11342ac_cpp='$CPP $CPPFLAGS'
11343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11345ac_compiler_gnu=$ac_cv_c_compiler_gnu
11346if test -n "$ac_tool_prefix"; then
11347  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11348set dummy ${ac_tool_prefix}gcc; ac_word=$2
11349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11350$as_echo_n "checking for $ac_word... " >&6; }
11351if test "${ac_cv_prog_CC+set}" = set; then :
11352  $as_echo_n "(cached) " >&6
11353else
11354  if test -n "$CC"; then
11355  ac_cv_prog_CC="$CC" # Let the user override the test.
11356else
11357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11358for as_dir in $PATH
11359do
11360  IFS=$as_save_IFS
11361  test -z "$as_dir" && as_dir=.
11362    for ac_exec_ext in '' $ac_executable_extensions; do
11363  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11364    ac_cv_prog_CC="${ac_tool_prefix}gcc"
11365    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11366    break 2
11367  fi
11368done
11369  done
11370IFS=$as_save_IFS
11371
11372fi
11373fi
11374CC=$ac_cv_prog_CC
11375if test -n "$CC"; then
11376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11377$as_echo "$CC" >&6; }
11378else
11379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11380$as_echo "no" >&6; }
11381fi
11382
11383
11384fi
11385if test -z "$ac_cv_prog_CC"; then
11386  ac_ct_CC=$CC
11387  # Extract the first word of "gcc", so it can be a program name with args.
11388set dummy gcc; ac_word=$2
11389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11390$as_echo_n "checking for $ac_word... " >&6; }
11391if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11392  $as_echo_n "(cached) " >&6
11393else
11394  if test -n "$ac_ct_CC"; then
11395  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11396else
11397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11398for as_dir in $PATH
11399do
11400  IFS=$as_save_IFS
11401  test -z "$as_dir" && as_dir=.
11402    for ac_exec_ext in '' $ac_executable_extensions; do
11403  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11404    ac_cv_prog_ac_ct_CC="gcc"
11405    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11406    break 2
11407  fi
11408done
11409  done
11410IFS=$as_save_IFS
11411
11412fi
11413fi
11414ac_ct_CC=$ac_cv_prog_ac_ct_CC
11415if test -n "$ac_ct_CC"; then
11416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11417$as_echo "$ac_ct_CC" >&6; }
11418else
11419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11420$as_echo "no" >&6; }
11421fi
11422
11423  if test "x$ac_ct_CC" = x; then
11424    CC=""
11425  else
11426    case $cross_compiling:$ac_tool_warned in
11427yes:)
11428{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11429$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11430ac_tool_warned=yes ;;
11431esac
11432    CC=$ac_ct_CC
11433  fi
11434else
11435  CC="$ac_cv_prog_CC"
11436fi
11437
11438if test -z "$CC"; then
11439          if test -n "$ac_tool_prefix"; then
11440    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11441set dummy ${ac_tool_prefix}cc; ac_word=$2
11442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11443$as_echo_n "checking for $ac_word... " >&6; }
11444if test "${ac_cv_prog_CC+set}" = set; then :
11445  $as_echo_n "(cached) " >&6
11446else
11447  if test -n "$CC"; then
11448  ac_cv_prog_CC="$CC" # Let the user override the test.
11449else
11450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11451for as_dir in $PATH
11452do
11453  IFS=$as_save_IFS
11454  test -z "$as_dir" && as_dir=.
11455    for ac_exec_ext in '' $ac_executable_extensions; do
11456  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11457    ac_cv_prog_CC="${ac_tool_prefix}cc"
11458    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11459    break 2
11460  fi
11461done
11462  done
11463IFS=$as_save_IFS
11464
11465fi
11466fi
11467CC=$ac_cv_prog_CC
11468if test -n "$CC"; then
11469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11470$as_echo "$CC" >&6; }
11471else
11472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11473$as_echo "no" >&6; }
11474fi
11475
11476
11477  fi
11478fi
11479if test -z "$CC"; then
11480  # Extract the first word of "cc", so it can be a program name with args.
11481set dummy cc; ac_word=$2
11482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11483$as_echo_n "checking for $ac_word... " >&6; }
11484if test "${ac_cv_prog_CC+set}" = set; then :
11485  $as_echo_n "(cached) " >&6
11486else
11487  if test -n "$CC"; then
11488  ac_cv_prog_CC="$CC" # Let the user override the test.
11489else
11490  ac_prog_rejected=no
11491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11492for as_dir in $PATH
11493do
11494  IFS=$as_save_IFS
11495  test -z "$as_dir" && as_dir=.
11496    for ac_exec_ext in '' $ac_executable_extensions; do
11497  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11498    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11499       ac_prog_rejected=yes
11500       continue
11501     fi
11502    ac_cv_prog_CC="cc"
11503    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11504    break 2
11505  fi
11506done
11507  done
11508IFS=$as_save_IFS
11509
11510if test $ac_prog_rejected = yes; then
11511  # We found a bogon in the path, so make sure we never use it.
11512  set dummy $ac_cv_prog_CC
11513  shift
11514  if test $# != 0; then
11515    # We chose a different compiler from the bogus one.
11516    # However, it has the same basename, so the bogon will be chosen
11517    # first if we set CC to just the basename; use the full file name.
11518    shift
11519    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11520  fi
11521fi
11522fi
11523fi
11524CC=$ac_cv_prog_CC
11525if test -n "$CC"; then
11526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11527$as_echo "$CC" >&6; }
11528else
11529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11530$as_echo "no" >&6; }
11531fi
11532
11533
11534fi
11535if test -z "$CC"; then
11536  if test -n "$ac_tool_prefix"; then
11537  for ac_prog in cl.exe
11538  do
11539    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11540set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11542$as_echo_n "checking for $ac_word... " >&6; }
11543if test "${ac_cv_prog_CC+set}" = set; then :
11544  $as_echo_n "(cached) " >&6
11545else
11546  if test -n "$CC"; then
11547  ac_cv_prog_CC="$CC" # Let the user override the test.
11548else
11549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11550for as_dir in $PATH
11551do
11552  IFS=$as_save_IFS
11553  test -z "$as_dir" && as_dir=.
11554    for ac_exec_ext in '' $ac_executable_extensions; do
11555  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11556    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11557    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11558    break 2
11559  fi
11560done
11561  done
11562IFS=$as_save_IFS
11563
11564fi
11565fi
11566CC=$ac_cv_prog_CC
11567if test -n "$CC"; then
11568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11569$as_echo "$CC" >&6; }
11570else
11571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11572$as_echo "no" >&6; }
11573fi
11574
11575
11576    test -n "$CC" && break
11577  done
11578fi
11579if test -z "$CC"; then
11580  ac_ct_CC=$CC
11581  for ac_prog in cl.exe
11582do
11583  # Extract the first word of "$ac_prog", so it can be a program name with args.
11584set dummy $ac_prog; ac_word=$2
11585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11586$as_echo_n "checking for $ac_word... " >&6; }
11587if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11588  $as_echo_n "(cached) " >&6
11589else
11590  if test -n "$ac_ct_CC"; then
11591  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11592else
11593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11594for as_dir in $PATH
11595do
11596  IFS=$as_save_IFS
11597  test -z "$as_dir" && as_dir=.
11598    for ac_exec_ext in '' $ac_executable_extensions; do
11599  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11600    ac_cv_prog_ac_ct_CC="$ac_prog"
11601    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11602    break 2
11603  fi
11604done
11605  done
11606IFS=$as_save_IFS
11607
11608fi
11609fi
11610ac_ct_CC=$ac_cv_prog_ac_ct_CC
11611if test -n "$ac_ct_CC"; then
11612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11613$as_echo "$ac_ct_CC" >&6; }
11614else
11615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11616$as_echo "no" >&6; }
11617fi
11618
11619
11620  test -n "$ac_ct_CC" && break
11621done
11622
11623  if test "x$ac_ct_CC" = x; then
11624    CC=""
11625  else
11626    case $cross_compiling:$ac_tool_warned in
11627yes:)
11628{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11629$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11630ac_tool_warned=yes ;;
11631esac
11632    CC=$ac_ct_CC
11633  fi
11634fi
11635
11636fi
11637
11638
11639test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11640$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11641as_fn_error $? "no acceptable C compiler found in \$PATH
11642See \`config.log' for more details" "$LINENO" 5 ; }
11643
11644# Provide some information about the compiler.
11645$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11646set X $ac_compile
11647ac_compiler=$2
11648for ac_option in --version -v -V -qversion; do
11649  { { ac_try="$ac_compiler $ac_option >&5"
11650case "(($ac_try" in
11651  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11652  *) ac_try_echo=$ac_try;;
11653esac
11654eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11655$as_echo "$ac_try_echo"; } >&5
11656  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11657  ac_status=$?
11658  if test -s conftest.err; then
11659    sed '10a\
11660... rest of stderr output deleted ...
11661         10q' conftest.err >conftest.er1
11662    cat conftest.er1 >&5
11663  fi
11664  rm -f conftest.er1 conftest.err
11665  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11666  test $ac_status = 0; }
11667done
11668
11669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11670$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11671if test "${ac_cv_c_compiler_gnu+set}" = set; then :
11672  $as_echo_n "(cached) " >&6
11673else
11674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11675/* end confdefs.h.  */
11676
11677int
11678main ()
11679{
11680#ifndef __GNUC__
11681       choke me
11682#endif
11683
11684  ;
11685  return 0;
11686}
11687_ACEOF
11688if ac_fn_c_try_compile "$LINENO"; then :
11689  ac_compiler_gnu=yes
11690else
11691  ac_compiler_gnu=no
11692fi
11693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11694ac_cv_c_compiler_gnu=$ac_compiler_gnu
11695
11696fi
11697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11698$as_echo "$ac_cv_c_compiler_gnu" >&6; }
11699if test $ac_compiler_gnu = yes; then
11700  GCC=yes
11701else
11702  GCC=
11703fi
11704ac_test_CFLAGS=${CFLAGS+set}
11705ac_save_CFLAGS=$CFLAGS
11706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11707$as_echo_n "checking whether $CC accepts -g... " >&6; }
11708if test "${ac_cv_prog_cc_g+set}" = set; then :
11709  $as_echo_n "(cached) " >&6
11710else
11711  ac_save_c_werror_flag=$ac_c_werror_flag
11712   ac_c_werror_flag=yes
11713   ac_cv_prog_cc_g=no
11714   CFLAGS="-g"
11715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11716/* end confdefs.h.  */
11717
11718int
11719main ()
11720{
11721
11722  ;
11723  return 0;
11724}
11725_ACEOF
11726if ac_fn_c_try_compile "$LINENO"; then :
11727  ac_cv_prog_cc_g=yes
11728else
11729  CFLAGS=""
11730      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11731/* end confdefs.h.  */
11732
11733int
11734main ()
11735{
11736
11737  ;
11738  return 0;
11739}
11740_ACEOF
11741if ac_fn_c_try_compile "$LINENO"; then :
11742
11743else
11744  ac_c_werror_flag=$ac_save_c_werror_flag
11745	 CFLAGS="-g"
11746	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11747/* end confdefs.h.  */
11748
11749int
11750main ()
11751{
11752
11753  ;
11754  return 0;
11755}
11756_ACEOF
11757if ac_fn_c_try_compile "$LINENO"; then :
11758  ac_cv_prog_cc_g=yes
11759fi
11760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11761fi
11762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11763fi
11764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11765   ac_c_werror_flag=$ac_save_c_werror_flag
11766fi
11767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11768$as_echo "$ac_cv_prog_cc_g" >&6; }
11769if test "$ac_test_CFLAGS" = set; then
11770  CFLAGS=$ac_save_CFLAGS
11771elif test $ac_cv_prog_cc_g = yes; then
11772  if test "$GCC" = yes; then
11773    CFLAGS="-g -O2"
11774  else
11775    CFLAGS="-g"
11776  fi
11777else
11778  if test "$GCC" = yes; then
11779    CFLAGS="-O2"
11780  else
11781    CFLAGS=
11782  fi
11783fi
11784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11785$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11786if test "${ac_cv_prog_cc_c89+set}" = set; then :
11787  $as_echo_n "(cached) " >&6
11788else
11789  ac_cv_prog_cc_c89=no
11790ac_save_CC=$CC
11791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11792/* end confdefs.h.  */
11793#include <stdarg.h>
11794#include <stdio.h>
11795#include <sys/types.h>
11796#include <sys/stat.h>
11797/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11798struct buf { int x; };
11799FILE * (*rcsopen) (struct buf *, struct stat *, int);
11800static char *e (p, i)
11801     char **p;
11802     int i;
11803{
11804  return p[i];
11805}
11806static char *f (char * (*g) (char **, int), char **p, ...)
11807{
11808  char *s;
11809  va_list v;
11810  va_start (v,p);
11811  s = g (p, va_arg (v,int));
11812  va_end (v);
11813  return s;
11814}
11815
11816/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11817   function prototypes and stuff, but not '\xHH' hex character constants.
11818   These don't provoke an error unfortunately, instead are silently treated
11819   as 'x'.  The following induces an error, until -std is added to get
11820   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11821   array size at least.  It's necessary to write '\x00'==0 to get something
11822   that's true only with -std.  */
11823int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11824
11825/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11826   inside strings and character constants.  */
11827#define FOO(x) 'x'
11828int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11829
11830int test (int i, double x);
11831struct s1 {int (*f) (int a);};
11832struct s2 {int (*f) (double a);};
11833int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11834int argc;
11835char **argv;
11836int
11837main ()
11838{
11839return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11840  ;
11841  return 0;
11842}
11843_ACEOF
11844for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11845	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11846do
11847  CC="$ac_save_CC $ac_arg"
11848  if ac_fn_c_try_compile "$LINENO"; then :
11849  ac_cv_prog_cc_c89=$ac_arg
11850fi
11851rm -f core conftest.err conftest.$ac_objext
11852  test "x$ac_cv_prog_cc_c89" != "xno" && break
11853done
11854rm -f conftest.$ac_ext
11855CC=$ac_save_CC
11856
11857fi
11858# AC_CACHE_VAL
11859case "x$ac_cv_prog_cc_c89" in
11860  x)
11861    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11862$as_echo "none needed" >&6; } ;;
11863  xno)
11864    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11865$as_echo "unsupported" >&6; } ;;
11866  *)
11867    CC="$CC $ac_cv_prog_cc_c89"
11868    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11869$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11870esac
11871if test "x$ac_cv_prog_cc_c89" != xno; then :
11872
11873fi
11874
11875ac_ext=c
11876ac_cpp='$CPP $CPPFLAGS'
11877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11879ac_compiler_gnu=$ac_cv_c_compiler_gnu
11880
11881depcc="$CC"   am_compiler_list=
11882
11883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11884$as_echo_n "checking dependency style of $depcc... " >&6; }
11885if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
11886  $as_echo_n "(cached) " >&6
11887else
11888  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11889  # We make a subdir and do the tests there.  Otherwise we can end up
11890  # making bogus files that we don't know about and never remove.  For
11891  # instance it was reported that on HP-UX the gcc test will end up
11892  # making a dummy file named `D' -- because `-MD' means `put the output
11893  # in D'.
11894  mkdir conftest.dir
11895  # Copy depcomp to subdir because otherwise we won't find it if we're
11896  # using a relative directory.
11897  cp "$am_depcomp" conftest.dir
11898  cd conftest.dir
11899  # We will build objects and dependencies in a subdirectory because
11900  # it helps to detect inapplicable dependency modes.  For instance
11901  # both Tru64's cc and ICC support -MD to output dependencies as a
11902  # side effect of compilation, but ICC will put the dependencies in
11903  # the current directory while Tru64 will put them in the object
11904  # directory.
11905  mkdir sub
11906
11907  am_cv_CC_dependencies_compiler_type=none
11908  if test "$am_compiler_list" = ""; then
11909     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11910  fi
11911  am__universal=false
11912  case " $depcc " in #(
11913     *\ -arch\ *\ -arch\ *) am__universal=true ;;
11914     esac
11915
11916  for depmode in $am_compiler_list; do
11917    # Setup a source with many dependencies, because some compilers
11918    # like to wrap large dependency lists on column 80 (with \), and
11919    # we should not choose a depcomp mode which is confused by this.
11920    #
11921    # We need to recreate these files for each test, as the compiler may
11922    # overwrite some of them when testing with obscure command lines.
11923    # This happens at least with the AIX C compiler.
11924    : > sub/conftest.c
11925    for i in 1 2 3 4 5 6; do
11926      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11927      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11928      # Solaris 8's {/usr,}/bin/sh.
11929      touch sub/conftst$i.h
11930    done
11931    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11932
11933    # We check with `-c' and `-o' for the sake of the "dashmstdout"
11934    # mode.  It turns out that the SunPro C++ compiler does not properly
11935    # handle `-M -o', and we need to detect this.  Also, some Intel
11936    # versions had trouble with output in subdirs
11937    am__obj=sub/conftest.${OBJEXT-o}
11938    am__minus_obj="-o $am__obj"
11939    case $depmode in
11940    gcc)
11941      # This depmode causes a compiler race in universal mode.
11942      test "$am__universal" = false || continue
11943      ;;
11944    nosideeffect)
11945      # after this tag, mechanisms are not by side-effect, so they'll
11946      # only be used when explicitly requested
11947      if test "x$enable_dependency_tracking" = xyes; then
11948	continue
11949      else
11950	break
11951      fi
11952      ;;
11953    msvisualcpp | msvcmsys)
11954      # This compiler won't grok `-c -o', but also, the minuso test has
11955      # not run yet.  These depmodes are late enough in the game, and
11956      # so weak that their functioning should not be impacted.
11957      am__obj=conftest.${OBJEXT-o}
11958      am__minus_obj=
11959      ;;
11960    none) break ;;
11961    esac
11962    if depmode=$depmode \
11963       source=sub/conftest.c object=$am__obj \
11964       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11965       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11966         >/dev/null 2>conftest.err &&
11967       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11968       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11969       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11970       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11971      # icc doesn't choke on unknown options, it will just issue warnings
11972      # or remarks (even with -Werror).  So we grep stderr for any message
11973      # that says an option was ignored or not supported.
11974      # When given -MP, icc 7.0 and 7.1 complain thusly:
11975      #   icc: Command line warning: ignoring option '-M'; no argument required
11976      # The diagnosis changed in icc 8.0:
11977      #   icc: Command line remark: option '-MP' not supported
11978      if (grep 'ignoring option' conftest.err ||
11979          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11980        am_cv_CC_dependencies_compiler_type=$depmode
11981        break
11982      fi
11983    fi
11984  done
11985
11986  cd ..
11987  rm -rf conftest.dir
11988else
11989  am_cv_CC_dependencies_compiler_type=none
11990fi
11991
11992fi
11993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11994$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11995CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11996
11997 if
11998  test "x$enable_dependency_tracking" != xno \
11999  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12000  am__fastdepCC_TRUE=
12001  am__fastdepCC_FALSE='#'
12002else
12003  am__fastdepCC_TRUE='#'
12004  am__fastdepCC_FALSE=
12005fi
12006
12007
12008
12009am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
12010
12011ac_ext=cpp
12012ac_cpp='$CXXCPP $CPPFLAGS'
12013ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12014ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12015ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12016if test -z "$CXX"; then
12017  if test -n "$CCC"; then
12018    CXX=$CCC
12019  else
12020    if test -n "$ac_tool_prefix"; then
12021  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12022  do
12023    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12024set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12026$as_echo_n "checking for $ac_word... " >&6; }
12027if test "${ac_cv_prog_CXX+set}" = set; then :
12028  $as_echo_n "(cached) " >&6
12029else
12030  if test -n "$CXX"; then
12031  ac_cv_prog_CXX="$CXX" # Let the user override the test.
12032else
12033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12034for as_dir in $PATH
12035do
12036  IFS=$as_save_IFS
12037  test -z "$as_dir" && as_dir=.
12038    for ac_exec_ext in '' $ac_executable_extensions; do
12039  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12040    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12041    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12042    break 2
12043  fi
12044done
12045  done
12046IFS=$as_save_IFS
12047
12048fi
12049fi
12050CXX=$ac_cv_prog_CXX
12051if test -n "$CXX"; then
12052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12053$as_echo "$CXX" >&6; }
12054else
12055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12056$as_echo "no" >&6; }
12057fi
12058
12059
12060    test -n "$CXX" && break
12061  done
12062fi
12063if test -z "$CXX"; then
12064  ac_ct_CXX=$CXX
12065  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12066do
12067  # Extract the first word of "$ac_prog", so it can be a program name with args.
12068set dummy $ac_prog; ac_word=$2
12069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12070$as_echo_n "checking for $ac_word... " >&6; }
12071if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
12072  $as_echo_n "(cached) " >&6
12073else
12074  if test -n "$ac_ct_CXX"; then
12075  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12076else
12077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12078for as_dir in $PATH
12079do
12080  IFS=$as_save_IFS
12081  test -z "$as_dir" && as_dir=.
12082    for ac_exec_ext in '' $ac_executable_extensions; do
12083  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12084    ac_cv_prog_ac_ct_CXX="$ac_prog"
12085    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12086    break 2
12087  fi
12088done
12089  done
12090IFS=$as_save_IFS
12091
12092fi
12093fi
12094ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12095if test -n "$ac_ct_CXX"; then
12096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12097$as_echo "$ac_ct_CXX" >&6; }
12098else
12099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12100$as_echo "no" >&6; }
12101fi
12102
12103
12104  test -n "$ac_ct_CXX" && break
12105done
12106
12107  if test "x$ac_ct_CXX" = x; then
12108    CXX="g++"
12109  else
12110    case $cross_compiling:$ac_tool_warned in
12111yes:)
12112{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12113$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12114ac_tool_warned=yes ;;
12115esac
12116    CXX=$ac_ct_CXX
12117  fi
12118fi
12119
12120  fi
12121fi
12122# Provide some information about the compiler.
12123$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12124set X $ac_compile
12125ac_compiler=$2
12126for ac_option in --version -v -V -qversion; do
12127  { { ac_try="$ac_compiler $ac_option >&5"
12128case "(($ac_try" in
12129  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12130  *) ac_try_echo=$ac_try;;
12131esac
12132eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12133$as_echo "$ac_try_echo"; } >&5
12134  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12135  ac_status=$?
12136  if test -s conftest.err; then
12137    sed '10a\
12138... rest of stderr output deleted ...
12139         10q' conftest.err >conftest.er1
12140    cat conftest.er1 >&5
12141  fi
12142  rm -f conftest.er1 conftest.err
12143  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12144  test $ac_status = 0; }
12145done
12146
12147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12148$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12149if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
12150  $as_echo_n "(cached) " >&6
12151else
12152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12153/* end confdefs.h.  */
12154
12155int
12156main ()
12157{
12158#ifndef __GNUC__
12159       choke me
12160#endif
12161
12162  ;
12163  return 0;
12164}
12165_ACEOF
12166if ac_fn_cxx_try_compile "$LINENO"; then :
12167  ac_compiler_gnu=yes
12168else
12169  ac_compiler_gnu=no
12170fi
12171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12172ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12173
12174fi
12175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12176$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12177if test $ac_compiler_gnu = yes; then
12178  GXX=yes
12179else
12180  GXX=
12181fi
12182ac_test_CXXFLAGS=${CXXFLAGS+set}
12183ac_save_CXXFLAGS=$CXXFLAGS
12184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12185$as_echo_n "checking whether $CXX accepts -g... " >&6; }
12186if test "${ac_cv_prog_cxx_g+set}" = set; then :
12187  $as_echo_n "(cached) " >&6
12188else
12189  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12190   ac_cxx_werror_flag=yes
12191   ac_cv_prog_cxx_g=no
12192   CXXFLAGS="-g"
12193   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12194/* end confdefs.h.  */
12195
12196int
12197main ()
12198{
12199
12200  ;
12201  return 0;
12202}
12203_ACEOF
12204if ac_fn_cxx_try_compile "$LINENO"; then :
12205  ac_cv_prog_cxx_g=yes
12206else
12207  CXXFLAGS=""
12208      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12209/* end confdefs.h.  */
12210
12211int
12212main ()
12213{
12214
12215  ;
12216  return 0;
12217}
12218_ACEOF
12219if ac_fn_cxx_try_compile "$LINENO"; then :
12220
12221else
12222  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12223	 CXXFLAGS="-g"
12224	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12225/* end confdefs.h.  */
12226
12227int
12228main ()
12229{
12230
12231  ;
12232  return 0;
12233}
12234_ACEOF
12235if ac_fn_cxx_try_compile "$LINENO"; then :
12236  ac_cv_prog_cxx_g=yes
12237fi
12238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12239fi
12240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12241fi
12242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12243   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12244fi
12245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12246$as_echo "$ac_cv_prog_cxx_g" >&6; }
12247if test "$ac_test_CXXFLAGS" = set; then
12248  CXXFLAGS=$ac_save_CXXFLAGS
12249elif test $ac_cv_prog_cxx_g = yes; then
12250  if test "$GXX" = yes; then
12251    CXXFLAGS="-g -O2"
12252  else
12253    CXXFLAGS="-g"
12254  fi
12255else
12256  if test "$GXX" = yes; then
12257    CXXFLAGS="-O2"
12258  else
12259    CXXFLAGS=
12260  fi
12261fi
12262ac_ext=c
12263ac_cpp='$CPP $CPPFLAGS'
12264ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12265ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12266ac_compiler_gnu=$ac_cv_c_compiler_gnu
12267
12268depcc="$CXX"  am_compiler_list=
12269
12270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12271$as_echo_n "checking dependency style of $depcc... " >&6; }
12272if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
12273  $as_echo_n "(cached) " >&6
12274else
12275  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12276  # We make a subdir and do the tests there.  Otherwise we can end up
12277  # making bogus files that we don't know about and never remove.  For
12278  # instance it was reported that on HP-UX the gcc test will end up
12279  # making a dummy file named `D' -- because `-MD' means `put the output
12280  # in D'.
12281  mkdir conftest.dir
12282  # Copy depcomp to subdir because otherwise we won't find it if we're
12283  # using a relative directory.
12284  cp "$am_depcomp" conftest.dir
12285  cd conftest.dir
12286  # We will build objects and dependencies in a subdirectory because
12287  # it helps to detect inapplicable dependency modes.  For instance
12288  # both Tru64's cc and ICC support -MD to output dependencies as a
12289  # side effect of compilation, but ICC will put the dependencies in
12290  # the current directory while Tru64 will put them in the object
12291  # directory.
12292  mkdir sub
12293
12294  am_cv_CXX_dependencies_compiler_type=none
12295  if test "$am_compiler_list" = ""; then
12296     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12297  fi
12298  am__universal=false
12299  case " $depcc " in #(
12300     *\ -arch\ *\ -arch\ *) am__universal=true ;;
12301     esac
12302
12303  for depmode in $am_compiler_list; do
12304    # Setup a source with many dependencies, because some compilers
12305    # like to wrap large dependency lists on column 80 (with \), and
12306    # we should not choose a depcomp mode which is confused by this.
12307    #
12308    # We need to recreate these files for each test, as the compiler may
12309    # overwrite some of them when testing with obscure command lines.
12310    # This happens at least with the AIX C compiler.
12311    : > sub/conftest.c
12312    for i in 1 2 3 4 5 6; do
12313      echo '#include "conftst'$i'.h"' >> sub/conftest.c
12314      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12315      # Solaris 8's {/usr,}/bin/sh.
12316      touch sub/conftst$i.h
12317    done
12318    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12319
12320    # We check with `-c' and `-o' for the sake of the "dashmstdout"
12321    # mode.  It turns out that the SunPro C++ compiler does not properly
12322    # handle `-M -o', and we need to detect this.  Also, some Intel
12323    # versions had trouble with output in subdirs
12324    am__obj=sub/conftest.${OBJEXT-o}
12325    am__minus_obj="-o $am__obj"
12326    case $depmode in
12327    gcc)
12328      # This depmode causes a compiler race in universal mode.
12329      test "$am__universal" = false || continue
12330      ;;
12331    nosideeffect)
12332      # after this tag, mechanisms are not by side-effect, so they'll
12333      # only be used when explicitly requested
12334      if test "x$enable_dependency_tracking" = xyes; then
12335	continue
12336      else
12337	break
12338      fi
12339      ;;
12340    msvisualcpp | msvcmsys)
12341      # This compiler won't grok `-c -o', but also, the minuso test has
12342      # not run yet.  These depmodes are late enough in the game, and
12343      # so weak that their functioning should not be impacted.
12344      am__obj=conftest.${OBJEXT-o}
12345      am__minus_obj=
12346      ;;
12347    none) break ;;
12348    esac
12349    if depmode=$depmode \
12350       source=sub/conftest.c object=$am__obj \
12351       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12352       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12353         >/dev/null 2>conftest.err &&
12354       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12355       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12356       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12357       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12358      # icc doesn't choke on unknown options, it will just issue warnings
12359      # or remarks (even with -Werror).  So we grep stderr for any message
12360      # that says an option was ignored or not supported.
12361      # When given -MP, icc 7.0 and 7.1 complain thusly:
12362      #   icc: Command line warning: ignoring option '-M'; no argument required
12363      # The diagnosis changed in icc 8.0:
12364      #   icc: Command line remark: option '-MP' not supported
12365      if (grep 'ignoring option' conftest.err ||
12366          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12367        am_cv_CXX_dependencies_compiler_type=$depmode
12368        break
12369      fi
12370    fi
12371  done
12372
12373  cd ..
12374  rm -rf conftest.dir
12375else
12376  am_cv_CXX_dependencies_compiler_type=none
12377fi
12378
12379fi
12380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12381$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12382CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12383
12384 if
12385  test "x$enable_dependency_tracking" != xno \
12386  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12387  am__fastdepCXX_TRUE=
12388  am__fastdepCXX_FALSE='#'
12389else
12390  am__fastdepCXX_TRUE='#'
12391  am__fastdepCXX_FALSE=
12392fi
12393
12394
12395
12396ac_ext=cpp
12397ac_cpp='$CXXCPP $CPPFLAGS'
12398ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12399ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12400ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12401if test -z "$CXX"; then
12402  if test -n "$CCC"; then
12403    CXX=$CCC
12404  else
12405    if test -n "$ac_tool_prefix"; then
12406  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12407  do
12408    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12409set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12411$as_echo_n "checking for $ac_word... " >&6; }
12412if test "${ac_cv_prog_CXX+set}" = set; then :
12413  $as_echo_n "(cached) " >&6
12414else
12415  if test -n "$CXX"; then
12416  ac_cv_prog_CXX="$CXX" # Let the user override the test.
12417else
12418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12419for as_dir in $PATH
12420do
12421  IFS=$as_save_IFS
12422  test -z "$as_dir" && as_dir=.
12423    for ac_exec_ext in '' $ac_executable_extensions; do
12424  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12425    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12426    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12427    break 2
12428  fi
12429done
12430  done
12431IFS=$as_save_IFS
12432
12433fi
12434fi
12435CXX=$ac_cv_prog_CXX
12436if test -n "$CXX"; then
12437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12438$as_echo "$CXX" >&6; }
12439else
12440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12441$as_echo "no" >&6; }
12442fi
12443
12444
12445    test -n "$CXX" && break
12446  done
12447fi
12448if test -z "$CXX"; then
12449  ac_ct_CXX=$CXX
12450  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12451do
12452  # Extract the first word of "$ac_prog", so it can be a program name with args.
12453set dummy $ac_prog; ac_word=$2
12454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12455$as_echo_n "checking for $ac_word... " >&6; }
12456if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
12457  $as_echo_n "(cached) " >&6
12458else
12459  if test -n "$ac_ct_CXX"; then
12460  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12461else
12462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12463for as_dir in $PATH
12464do
12465  IFS=$as_save_IFS
12466  test -z "$as_dir" && as_dir=.
12467    for ac_exec_ext in '' $ac_executable_extensions; do
12468  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12469    ac_cv_prog_ac_ct_CXX="$ac_prog"
12470    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12471    break 2
12472  fi
12473done
12474  done
12475IFS=$as_save_IFS
12476
12477fi
12478fi
12479ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12480if test -n "$ac_ct_CXX"; then
12481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12482$as_echo "$ac_ct_CXX" >&6; }
12483else
12484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12485$as_echo "no" >&6; }
12486fi
12487
12488
12489  test -n "$ac_ct_CXX" && break
12490done
12491
12492  if test "x$ac_ct_CXX" = x; then
12493    CXX="g++"
12494  else
12495    case $cross_compiling:$ac_tool_warned in
12496yes:)
12497{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12498$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12499ac_tool_warned=yes ;;
12500esac
12501    CXX=$ac_ct_CXX
12502  fi
12503fi
12504
12505  fi
12506fi
12507# Provide some information about the compiler.
12508$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12509set X $ac_compile
12510ac_compiler=$2
12511for ac_option in --version -v -V -qversion; do
12512  { { ac_try="$ac_compiler $ac_option >&5"
12513case "(($ac_try" in
12514  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12515  *) ac_try_echo=$ac_try;;
12516esac
12517eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12518$as_echo "$ac_try_echo"; } >&5
12519  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12520  ac_status=$?
12521  if test -s conftest.err; then
12522    sed '10a\
12523... rest of stderr output deleted ...
12524         10q' conftest.err >conftest.er1
12525    cat conftest.er1 >&5
12526  fi
12527  rm -f conftest.er1 conftest.err
12528  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12529  test $ac_status = 0; }
12530done
12531
12532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12533$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12534if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
12535  $as_echo_n "(cached) " >&6
12536else
12537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12538/* end confdefs.h.  */
12539
12540int
12541main ()
12542{
12543#ifndef __GNUC__
12544       choke me
12545#endif
12546
12547  ;
12548  return 0;
12549}
12550_ACEOF
12551if ac_fn_cxx_try_compile "$LINENO"; then :
12552  ac_compiler_gnu=yes
12553else
12554  ac_compiler_gnu=no
12555fi
12556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12557ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12558
12559fi
12560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12561$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12562if test $ac_compiler_gnu = yes; then
12563  GXX=yes
12564else
12565  GXX=
12566fi
12567ac_test_CXXFLAGS=${CXXFLAGS+set}
12568ac_save_CXXFLAGS=$CXXFLAGS
12569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12570$as_echo_n "checking whether $CXX accepts -g... " >&6; }
12571if test "${ac_cv_prog_cxx_g+set}" = set; then :
12572  $as_echo_n "(cached) " >&6
12573else
12574  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12575   ac_cxx_werror_flag=yes
12576   ac_cv_prog_cxx_g=no
12577   CXXFLAGS="-g"
12578   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12579/* end confdefs.h.  */
12580
12581int
12582main ()
12583{
12584
12585  ;
12586  return 0;
12587}
12588_ACEOF
12589if ac_fn_cxx_try_compile "$LINENO"; then :
12590  ac_cv_prog_cxx_g=yes
12591else
12592  CXXFLAGS=""
12593      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12594/* end confdefs.h.  */
12595
12596int
12597main ()
12598{
12599
12600  ;
12601  return 0;
12602}
12603_ACEOF
12604if ac_fn_cxx_try_compile "$LINENO"; then :
12605
12606else
12607  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12608	 CXXFLAGS="-g"
12609	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12610/* end confdefs.h.  */
12611
12612int
12613main ()
12614{
12615
12616  ;
12617  return 0;
12618}
12619_ACEOF
12620if ac_fn_cxx_try_compile "$LINENO"; then :
12621  ac_cv_prog_cxx_g=yes
12622fi
12623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12624fi
12625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12626fi
12627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12628   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12629fi
12630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12631$as_echo "$ac_cv_prog_cxx_g" >&6; }
12632if test "$ac_test_CXXFLAGS" = set; then
12633  CXXFLAGS=$ac_save_CXXFLAGS
12634elif test $ac_cv_prog_cxx_g = yes; then
12635  if test "$GXX" = yes; then
12636    CXXFLAGS="-g -O2"
12637  else
12638    CXXFLAGS="-g"
12639  fi
12640else
12641  if test "$GXX" = yes; then
12642    CXXFLAGS="-O2"
12643  else
12644    CXXFLAGS=
12645  fi
12646fi
12647ac_ext=c
12648ac_cpp='$CPP $CPPFLAGS'
12649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12651ac_compiler_gnu=$ac_cv_c_compiler_gnu
12652
12653depcc="$CXX"  am_compiler_list=
12654
12655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12656$as_echo_n "checking dependency style of $depcc... " >&6; }
12657if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
12658  $as_echo_n "(cached) " >&6
12659else
12660  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12661  # We make a subdir and do the tests there.  Otherwise we can end up
12662  # making bogus files that we don't know about and never remove.  For
12663  # instance it was reported that on HP-UX the gcc test will end up
12664  # making a dummy file named `D' -- because `-MD' means `put the output
12665  # in D'.
12666  mkdir conftest.dir
12667  # Copy depcomp to subdir because otherwise we won't find it if we're
12668  # using a relative directory.
12669  cp "$am_depcomp" conftest.dir
12670  cd conftest.dir
12671  # We will build objects and dependencies in a subdirectory because
12672  # it helps to detect inapplicable dependency modes.  For instance
12673  # both Tru64's cc and ICC support -MD to output dependencies as a
12674  # side effect of compilation, but ICC will put the dependencies in
12675  # the current directory while Tru64 will put them in the object
12676  # directory.
12677  mkdir sub
12678
12679  am_cv_CXX_dependencies_compiler_type=none
12680  if test "$am_compiler_list" = ""; then
12681     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12682  fi
12683  am__universal=false
12684  case " $depcc " in #(
12685     *\ -arch\ *\ -arch\ *) am__universal=true ;;
12686     esac
12687
12688  for depmode in $am_compiler_list; do
12689    # Setup a source with many dependencies, because some compilers
12690    # like to wrap large dependency lists on column 80 (with \), and
12691    # we should not choose a depcomp mode which is confused by this.
12692    #
12693    # We need to recreate these files for each test, as the compiler may
12694    # overwrite some of them when testing with obscure command lines.
12695    # This happens at least with the AIX C compiler.
12696    : > sub/conftest.c
12697    for i in 1 2 3 4 5 6; do
12698      echo '#include "conftst'$i'.h"' >> sub/conftest.c
12699      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12700      # Solaris 8's {/usr,}/bin/sh.
12701      touch sub/conftst$i.h
12702    done
12703    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12704
12705    # We check with `-c' and `-o' for the sake of the "dashmstdout"
12706    # mode.  It turns out that the SunPro C++ compiler does not properly
12707    # handle `-M -o', and we need to detect this.  Also, some Intel
12708    # versions had trouble with output in subdirs
12709    am__obj=sub/conftest.${OBJEXT-o}
12710    am__minus_obj="-o $am__obj"
12711    case $depmode in
12712    gcc)
12713      # This depmode causes a compiler race in universal mode.
12714      test "$am__universal" = false || continue
12715      ;;
12716    nosideeffect)
12717      # after this tag, mechanisms are not by side-effect, so they'll
12718      # only be used when explicitly requested
12719      if test "x$enable_dependency_tracking" = xyes; then
12720	continue
12721      else
12722	break
12723      fi
12724      ;;
12725    msvisualcpp | msvcmsys)
12726      # This compiler won't grok `-c -o', but also, the minuso test has
12727      # not run yet.  These depmodes are late enough in the game, and
12728      # so weak that their functioning should not be impacted.
12729      am__obj=conftest.${OBJEXT-o}
12730      am__minus_obj=
12731      ;;
12732    none) break ;;
12733    esac
12734    if depmode=$depmode \
12735       source=sub/conftest.c object=$am__obj \
12736       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12737       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12738         >/dev/null 2>conftest.err &&
12739       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12740       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12741       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12742       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12743      # icc doesn't choke on unknown options, it will just issue warnings
12744      # or remarks (even with -Werror).  So we grep stderr for any message
12745      # that says an option was ignored or not supported.
12746      # When given -MP, icc 7.0 and 7.1 complain thusly:
12747      #   icc: Command line warning: ignoring option '-M'; no argument required
12748      # The diagnosis changed in icc 8.0:
12749      #   icc: Command line remark: option '-MP' not supported
12750      if (grep 'ignoring option' conftest.err ||
12751          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12752        am_cv_CXX_dependencies_compiler_type=$depmode
12753        break
12754      fi
12755    fi
12756  done
12757
12758  cd ..
12759  rm -rf conftest.dir
12760else
12761  am_cv_CXX_dependencies_compiler_type=none
12762fi
12763
12764fi
12765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12766$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12767CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12768
12769 if
12770  test "x$enable_dependency_tracking" != xno \
12771  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12772  am__fastdepCXX_TRUE=
12773  am__fastdepCXX_FALSE='#'
12774else
12775  am__fastdepCXX_TRUE='#'
12776  am__fastdepCXX_FALSE=
12777fi
12778
12779
12780if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12781    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12782    (test "X$CXX" != "Xg++"))) ; then
12783  ac_ext=cpp
12784ac_cpp='$CXXCPP $CPPFLAGS'
12785ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12786ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12787ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12789$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12790if test -z "$CXXCPP"; then
12791  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12792  $as_echo_n "(cached) " >&6
12793else
12794      # Double quotes because CXXCPP needs to be expanded
12795    for CXXCPP in "$CXX -E" "/lib/cpp"
12796    do
12797      ac_preproc_ok=false
12798for ac_cxx_preproc_warn_flag in '' yes
12799do
12800  # Use a header file that comes with gcc, so configuring glibc
12801  # with a fresh cross-compiler works.
12802  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12803  # <limits.h> exists even on freestanding compilers.
12804  # On the NeXT, cc -E runs the code through the compiler's parser,
12805  # not just through cpp. "Syntax error" is here to catch this case.
12806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12807/* end confdefs.h.  */
12808#ifdef __STDC__
12809# include <limits.h>
12810#else
12811# include <assert.h>
12812#endif
12813		     Syntax error
12814_ACEOF
12815if ac_fn_cxx_try_cpp "$LINENO"; then :
12816
12817else
12818  # Broken: fails on valid input.
12819continue
12820fi
12821rm -f conftest.err conftest.i conftest.$ac_ext
12822
12823  # OK, works on sane cases.  Now check whether nonexistent headers
12824  # can be detected and how.
12825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12826/* end confdefs.h.  */
12827#include <ac_nonexistent.h>
12828_ACEOF
12829if ac_fn_cxx_try_cpp "$LINENO"; then :
12830  # Broken: success on invalid input.
12831continue
12832else
12833  # Passes both tests.
12834ac_preproc_ok=:
12835break
12836fi
12837rm -f conftest.err conftest.i conftest.$ac_ext
12838
12839done
12840# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12841rm -f conftest.i conftest.err conftest.$ac_ext
12842if $ac_preproc_ok; then :
12843  break
12844fi
12845
12846    done
12847    ac_cv_prog_CXXCPP=$CXXCPP
12848
12849fi
12850  CXXCPP=$ac_cv_prog_CXXCPP
12851else
12852  ac_cv_prog_CXXCPP=$CXXCPP
12853fi
12854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12855$as_echo "$CXXCPP" >&6; }
12856ac_preproc_ok=false
12857for ac_cxx_preproc_warn_flag in '' yes
12858do
12859  # Use a header file that comes with gcc, so configuring glibc
12860  # with a fresh cross-compiler works.
12861  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12862  # <limits.h> exists even on freestanding compilers.
12863  # On the NeXT, cc -E runs the code through the compiler's parser,
12864  # not just through cpp. "Syntax error" is here to catch this case.
12865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12866/* end confdefs.h.  */
12867#ifdef __STDC__
12868# include <limits.h>
12869#else
12870# include <assert.h>
12871#endif
12872		     Syntax error
12873_ACEOF
12874if ac_fn_cxx_try_cpp "$LINENO"; then :
12875
12876else
12877  # Broken: fails on valid input.
12878continue
12879fi
12880rm -f conftest.err conftest.i conftest.$ac_ext
12881
12882  # OK, works on sane cases.  Now check whether nonexistent headers
12883  # can be detected and how.
12884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12885/* end confdefs.h.  */
12886#include <ac_nonexistent.h>
12887_ACEOF
12888if ac_fn_cxx_try_cpp "$LINENO"; then :
12889  # Broken: success on invalid input.
12890continue
12891else
12892  # Passes both tests.
12893ac_preproc_ok=:
12894break
12895fi
12896rm -f conftest.err conftest.i conftest.$ac_ext
12897
12898done
12899# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12900rm -f conftest.i conftest.err conftest.$ac_ext
12901if $ac_preproc_ok; then :
12902
12903else
12904  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12905$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12906_lt_caught_CXX_error=yes; }
12907fi
12908
12909ac_ext=c
12910ac_cpp='$CPP $CPPFLAGS'
12911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12913ac_compiler_gnu=$ac_cv_c_compiler_gnu
12914
12915else
12916  _lt_caught_CXX_error=yes
12917fi
12918
12919
12920
12921
12922ac_ext=cpp
12923ac_cpp='$CXXCPP $CPPFLAGS'
12924ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12925ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12926ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12927
12928archive_cmds_need_lc_CXX=no
12929allow_undefined_flag_CXX=
12930always_export_symbols_CXX=no
12931archive_expsym_cmds_CXX=
12932compiler_needs_object_CXX=no
12933export_dynamic_flag_spec_CXX=
12934hardcode_direct_CXX=no
12935hardcode_direct_absolute_CXX=no
12936hardcode_libdir_flag_spec_CXX=
12937hardcode_libdir_flag_spec_ld_CXX=
12938hardcode_libdir_separator_CXX=
12939hardcode_minus_L_CXX=no
12940hardcode_shlibpath_var_CXX=unsupported
12941hardcode_automatic_CXX=no
12942inherit_rpath_CXX=no
12943module_cmds_CXX=
12944module_expsym_cmds_CXX=
12945link_all_deplibs_CXX=unknown
12946old_archive_cmds_CXX=$old_archive_cmds
12947no_undefined_flag_CXX=
12948whole_archive_flag_spec_CXX=
12949enable_shared_with_static_runtimes_CXX=no
12950
12951# Source file extension for C++ test sources.
12952ac_ext=cpp
12953
12954# Object file extension for compiled C++ test sources.
12955objext=o
12956objext_CXX=$objext
12957
12958# No sense in running all these tests if we already determined that
12959# the CXX compiler isn't working.  Some variables (like enable_shared)
12960# are currently assumed to apply to all compilers on this platform,
12961# and will be corrupted by setting them based on a non-working compiler.
12962if test "$_lt_caught_CXX_error" != yes; then
12963  # Code to be used in simple compile tests
12964  lt_simple_compile_test_code="int some_variable = 0;"
12965
12966  # Code to be used in simple link tests
12967  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12968
12969  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12970
12971
12972
12973
12974
12975
12976# If no C compiler was specified, use CC.
12977LTCC=${LTCC-"$CC"}
12978
12979# If no C compiler flags were specified, use CFLAGS.
12980LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12981
12982# Allow CC to be a program name with arguments.
12983compiler=$CC
12984
12985
12986  # save warnings/boilerplate of simple test code
12987  ac_outfile=conftest.$ac_objext
12988echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12989eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12990_lt_compiler_boilerplate=`cat conftest.err`
12991$RM conftest*
12992
12993  ac_outfile=conftest.$ac_objext
12994echo "$lt_simple_link_test_code" >conftest.$ac_ext
12995eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12996_lt_linker_boilerplate=`cat conftest.err`
12997$RM -r conftest*
12998
12999
13000  # Allow CC to be a program name with arguments.
13001  lt_save_CC=$CC
13002  lt_save_LD=$LD
13003  lt_save_GCC=$GCC
13004  GCC=$GXX
13005  lt_save_with_gnu_ld=$with_gnu_ld
13006  lt_save_path_LD=$lt_cv_path_LD
13007  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13008    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13009  else
13010    $as_unset lt_cv_prog_gnu_ld
13011  fi
13012  if test -n "${lt_cv_path_LDCXX+set}"; then
13013    lt_cv_path_LD=$lt_cv_path_LDCXX
13014  else
13015    $as_unset lt_cv_path_LD
13016  fi
13017  test -z "${LDCXX+set}" || LD=$LDCXX
13018  CC=${CXX-"c++"}
13019  compiler=$CC
13020  compiler_CXX=$CC
13021  for cc_temp in $compiler""; do
13022  case $cc_temp in
13023    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13024    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13025    \-*) ;;
13026    *) break;;
13027  esac
13028done
13029cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13030
13031
13032  if test -n "$compiler"; then
13033    # We don't want -fno-exception when compiling C++ code, so set the
13034    # no_builtin_flag separately
13035    if test "$GXX" = yes; then
13036      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13037    else
13038      lt_prog_compiler_no_builtin_flag_CXX=
13039    fi
13040
13041    if test "$GXX" = yes; then
13042      # Set up default GNU C++ configuration
13043
13044
13045
13046# Check whether --with-gnu-ld was given.
13047if test "${with_gnu_ld+set}" = set; then :
13048  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13049else
13050  with_gnu_ld=no
13051fi
13052
13053ac_prog=ld
13054if test "$GCC" = yes; then
13055  # Check if gcc -print-prog-name=ld gives a path.
13056  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13057$as_echo_n "checking for ld used by $CC... " >&6; }
13058  case $host in
13059  *-*-mingw*)
13060    # gcc leaves a trailing carriage return which upsets mingw
13061    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13062  *)
13063    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13064  esac
13065  case $ac_prog in
13066    # Accept absolute paths.
13067    [\\/]* | ?:[\\/]*)
13068      re_direlt='/[^/][^/]*/\.\./'
13069      # Canonicalize the pathname of ld
13070      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13071      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13072	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13073      done
13074      test -z "$LD" && LD="$ac_prog"
13075      ;;
13076  "")
13077    # If it fails, then pretend we aren't using GCC.
13078    ac_prog=ld
13079    ;;
13080  *)
13081    # If it is relative, then search for the first ld in PATH.
13082    with_gnu_ld=unknown
13083    ;;
13084  esac
13085elif test "$with_gnu_ld" = yes; then
13086  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13087$as_echo_n "checking for GNU ld... " >&6; }
13088else
13089  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13090$as_echo_n "checking for non-GNU ld... " >&6; }
13091fi
13092if test "${lt_cv_path_LD+set}" = set; then :
13093  $as_echo_n "(cached) " >&6
13094else
13095  if test -z "$LD"; then
13096  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13097  for ac_dir in $PATH; do
13098    IFS="$lt_save_ifs"
13099    test -z "$ac_dir" && ac_dir=.
13100    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13101      lt_cv_path_LD="$ac_dir/$ac_prog"
13102      # Check to see if the program is GNU ld.  I'd rather use --version,
13103      # but apparently some variants of GNU ld only accept -v.
13104      # Break only if it was the GNU/non-GNU ld that we prefer.
13105      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13106      *GNU* | *'with BFD'*)
13107	test "$with_gnu_ld" != no && break
13108	;;
13109      *)
13110	test "$with_gnu_ld" != yes && break
13111	;;
13112      esac
13113    fi
13114  done
13115  IFS="$lt_save_ifs"
13116else
13117  lt_cv_path_LD="$LD" # Let the user override the test with a path.
13118fi
13119fi
13120
13121LD="$lt_cv_path_LD"
13122if test -n "$LD"; then
13123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13124$as_echo "$LD" >&6; }
13125else
13126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13127$as_echo "no" >&6; }
13128fi
13129test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13131$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13132if test "${lt_cv_prog_gnu_ld+set}" = set; then :
13133  $as_echo_n "(cached) " >&6
13134else
13135  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13136case `$LD -v 2>&1 </dev/null` in
13137*GNU* | *'with BFD'*)
13138  lt_cv_prog_gnu_ld=yes
13139  ;;
13140*)
13141  lt_cv_prog_gnu_ld=no
13142  ;;
13143esac
13144fi
13145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13146$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13147with_gnu_ld=$lt_cv_prog_gnu_ld
13148
13149
13150
13151
13152
13153
13154
13155      # Check if GNU C++ uses GNU ld as the underlying linker, since the
13156      # archiving commands below assume that GNU ld is being used.
13157      if test "$with_gnu_ld" = yes; then
13158        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13159        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'
13160
13161        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13162        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13163
13164        # If archive_cmds runs LD, not CC, wlarc should be empty
13165        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13166        #     investigate it a little bit more. (MM)
13167        wlarc='${wl}'
13168
13169        # ancient GNU ld didn't support --whole-archive et. al.
13170        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13171	  $GREP 'no-whole-archive' > /dev/null; then
13172          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13173        else
13174          whole_archive_flag_spec_CXX=
13175        fi
13176      else
13177        with_gnu_ld=no
13178        wlarc=
13179
13180        # A generic and very simple default shared library creation
13181        # command for GNU C++ for the case where it uses the native
13182        # linker, instead of GNU ld.  If possible, this setting should
13183        # overridden to take advantage of the native linker features on
13184        # the platform it is being used on.
13185        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13186      fi
13187
13188      # Commands to make compiler produce verbose output that lists
13189      # what "hidden" libraries, object files and flags are used when
13190      # linking a shared library.
13191      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13192
13193    else
13194      GXX=no
13195      with_gnu_ld=no
13196      wlarc=
13197    fi
13198
13199    # PORTME: fill in a description of your system's C++ link characteristics
13200    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13201$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13202    ld_shlibs_CXX=yes
13203    case $host_os in
13204      aix3*)
13205        # FIXME: insert proper C++ library support
13206        ld_shlibs_CXX=no
13207        ;;
13208      aix[4-9]*)
13209        if test "$host_cpu" = ia64; then
13210          # On IA64, the linker does run time linking by default, so we don't
13211          # have to do anything special.
13212          aix_use_runtimelinking=no
13213          exp_sym_flag='-Bexport'
13214          no_entry_flag=""
13215        else
13216          aix_use_runtimelinking=no
13217
13218          # Test if we are trying to use run time linking or normal
13219          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13220          # need to do runtime linking.
13221          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13222	    for ld_flag in $LDFLAGS; do
13223	      case $ld_flag in
13224	      *-brtl*)
13225	        aix_use_runtimelinking=yes
13226	        break
13227	        ;;
13228	      esac
13229	    done
13230	    ;;
13231          esac
13232
13233          exp_sym_flag='-bexport'
13234          no_entry_flag='-bnoentry'
13235        fi
13236
13237        # When large executables or shared objects are built, AIX ld can
13238        # have problems creating the table of contents.  If linking a library
13239        # or program results in "error TOC overflow" add -mminimal-toc to
13240        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13241        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13242
13243        archive_cmds_CXX=''
13244        hardcode_direct_CXX=yes
13245        hardcode_direct_absolute_CXX=yes
13246        hardcode_libdir_separator_CXX=':'
13247        link_all_deplibs_CXX=yes
13248        file_list_spec_CXX='${wl}-f,'
13249
13250        if test "$GXX" = yes; then
13251          case $host_os in aix4.[012]|aix4.[012].*)
13252          # We only want to do this on AIX 4.2 and lower, the check
13253          # below for broken collect2 doesn't work under 4.3+
13254	  collect2name=`${CC} -print-prog-name=collect2`
13255	  if test -f "$collect2name" &&
13256	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13257	  then
13258	    # We have reworked collect2
13259	    :
13260	  else
13261	    # We have old collect2
13262	    hardcode_direct_CXX=unsupported
13263	    # It fails to find uninstalled libraries when the uninstalled
13264	    # path is not listed in the libpath.  Setting hardcode_minus_L
13265	    # to unsupported forces relinking
13266	    hardcode_minus_L_CXX=yes
13267	    hardcode_libdir_flag_spec_CXX='-L$libdir'
13268	    hardcode_libdir_separator_CXX=
13269	  fi
13270          esac
13271          shared_flag='-shared'
13272	  if test "$aix_use_runtimelinking" = yes; then
13273	    shared_flag="$shared_flag "'${wl}-G'
13274	  fi
13275        else
13276          # not using gcc
13277          if test "$host_cpu" = ia64; then
13278	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13279	  # chokes on -Wl,-G. The following line is correct:
13280	  shared_flag='-G'
13281          else
13282	    if test "$aix_use_runtimelinking" = yes; then
13283	      shared_flag='${wl}-G'
13284	    else
13285	      shared_flag='${wl}-bM:SRE'
13286	    fi
13287          fi
13288        fi
13289
13290        export_dynamic_flag_spec_CXX='${wl}-bexpall'
13291        # It seems that -bexpall does not export symbols beginning with
13292        # underscore (_), so it is better to generate a list of symbols to
13293	# export.
13294        always_export_symbols_CXX=yes
13295        if test "$aix_use_runtimelinking" = yes; then
13296          # Warning - without using the other runtime loading flags (-brtl),
13297          # -berok will link without error, but may produce a broken library.
13298          allow_undefined_flag_CXX='-berok'
13299          # Determine the default libpath from the value encoded in an empty
13300          # executable.
13301          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13302/* end confdefs.h.  */
13303
13304int
13305main ()
13306{
13307
13308  ;
13309  return 0;
13310}
13311_ACEOF
13312if ac_fn_cxx_try_link "$LINENO"; then :
13313
13314lt_aix_libpath_sed='
13315    /Import File Strings/,/^$/ {
13316	/^0/ {
13317	    s/^0  *\(.*\)$/\1/
13318	    p
13319	}
13320    }'
13321aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13322# Check for a 64-bit object if we didn't find anything.
13323if test -z "$aix_libpath"; then
13324  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13325fi
13326fi
13327rm -f core conftest.err conftest.$ac_objext \
13328    conftest$ac_exeext conftest.$ac_ext
13329if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13330
13331          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13332
13333          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"
13334        else
13335          if test "$host_cpu" = ia64; then
13336	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13337	    allow_undefined_flag_CXX="-z nodefs"
13338	    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"
13339          else
13340	    # Determine the default libpath from the value encoded in an
13341	    # empty executable.
13342	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13343/* end confdefs.h.  */
13344
13345int
13346main ()
13347{
13348
13349  ;
13350  return 0;
13351}
13352_ACEOF
13353if ac_fn_cxx_try_link "$LINENO"; then :
13354
13355lt_aix_libpath_sed='
13356    /Import File Strings/,/^$/ {
13357	/^0/ {
13358	    s/^0  *\(.*\)$/\1/
13359	    p
13360	}
13361    }'
13362aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13363# Check for a 64-bit object if we didn't find anything.
13364if test -z "$aix_libpath"; then
13365  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13366fi
13367fi
13368rm -f core conftest.err conftest.$ac_objext \
13369    conftest$ac_exeext conftest.$ac_ext
13370if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13371
13372	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13373	    # Warning - without using the other run time loading flags,
13374	    # -berok will link without error, but may produce a broken library.
13375	    no_undefined_flag_CXX=' ${wl}-bernotok'
13376	    allow_undefined_flag_CXX=' ${wl}-berok'
13377	    # Exported symbols can be pulled into shared objects from archives
13378	    whole_archive_flag_spec_CXX='$convenience'
13379	    archive_cmds_need_lc_CXX=yes
13380	    # This is similar to how AIX traditionally builds its shared
13381	    # libraries.
13382	    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'
13383          fi
13384        fi
13385        ;;
13386
13387      beos*)
13388	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13389	  allow_undefined_flag_CXX=unsupported
13390	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13391	  # support --undefined.  This deserves some investigation.  FIXME
13392	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13393	else
13394	  ld_shlibs_CXX=no
13395	fi
13396	;;
13397
13398      chorus*)
13399        case $cc_basename in
13400          *)
13401	  # FIXME: insert proper C++ library support
13402	  ld_shlibs_CXX=no
13403	  ;;
13404        esac
13405        ;;
13406
13407      cygwin* | mingw* | pw32* | cegcc*)
13408        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13409        # as there is no search path for DLLs.
13410        hardcode_libdir_flag_spec_CXX='-L$libdir'
13411        allow_undefined_flag_CXX=unsupported
13412        always_export_symbols_CXX=no
13413        enable_shared_with_static_runtimes_CXX=yes
13414
13415        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13416          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'
13417          # If the export-symbols file already is a .def file (1st line
13418          # is EXPORTS), use it as is; otherwise, prepend...
13419          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13420	    cp $export_symbols $output_objdir/$soname.def;
13421          else
13422	    echo EXPORTS > $output_objdir/$soname.def;
13423	    cat $export_symbols >> $output_objdir/$soname.def;
13424          fi~
13425          $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'
13426        else
13427          ld_shlibs_CXX=no
13428        fi
13429        ;;
13430      darwin* | rhapsody*)
13431
13432
13433  archive_cmds_need_lc_CXX=no
13434  hardcode_direct_CXX=no
13435  hardcode_automatic_CXX=yes
13436  hardcode_shlibpath_var_CXX=unsupported
13437  whole_archive_flag_spec_CXX=''
13438  link_all_deplibs_CXX=yes
13439  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13440  case $cc_basename in
13441     ifort*) _lt_dar_can_shared=yes ;;
13442     *) _lt_dar_can_shared=$GCC ;;
13443  esac
13444  if test "$_lt_dar_can_shared" = "yes"; then
13445    output_verbose_link_cmd=echo
13446    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}"
13447    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13448    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}"
13449    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}"
13450       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13451      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}"
13452      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}"
13453    fi
13454
13455  else
13456  ld_shlibs_CXX=no
13457  fi
13458
13459	;;
13460
13461      dgux*)
13462        case $cc_basename in
13463          ec++*)
13464	    # FIXME: insert proper C++ library support
13465	    ld_shlibs_CXX=no
13466	    ;;
13467          ghcx*)
13468	    # Green Hills C++ Compiler
13469	    # FIXME: insert proper C++ library support
13470	    ld_shlibs_CXX=no
13471	    ;;
13472          *)
13473	    # FIXME: insert proper C++ library support
13474	    ld_shlibs_CXX=no
13475	    ;;
13476        esac
13477        ;;
13478
13479      freebsd[12]*)
13480        # C++ shared libraries reported to be fairly broken before
13481	# switch to ELF
13482        ld_shlibs_CXX=no
13483        ;;
13484
13485      freebsd-elf*)
13486        archive_cmds_need_lc_CXX=no
13487        ;;
13488
13489      freebsd* | dragonfly*)
13490        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13491        # conventions
13492        ld_shlibs_CXX=yes
13493        ;;
13494
13495      gnu*)
13496        ;;
13497
13498      hpux9*)
13499        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13500        hardcode_libdir_separator_CXX=:
13501        export_dynamic_flag_spec_CXX='${wl}-E'
13502        hardcode_direct_CXX=yes
13503        hardcode_minus_L_CXX=yes # Not in the search PATH,
13504				             # but as the default
13505				             # location of the library.
13506
13507        case $cc_basename in
13508          CC*)
13509            # FIXME: insert proper C++ library support
13510            ld_shlibs_CXX=no
13511            ;;
13512          aCC*)
13513            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'
13514            # Commands to make compiler produce verbose output that lists
13515            # what "hidden" libraries, object files and flags are used when
13516            # linking a shared library.
13517            #
13518            # There doesn't appear to be a way to prevent this compiler from
13519            # explicitly linking system object files so we need to strip them
13520            # from the output so that they don't get included in the library
13521            # dependencies.
13522            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'
13523            ;;
13524          *)
13525            if test "$GXX" = yes; then
13526              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'
13527            else
13528              # FIXME: insert proper C++ library support
13529              ld_shlibs_CXX=no
13530            fi
13531            ;;
13532        esac
13533        ;;
13534
13535      hpux10*|hpux11*)
13536        if test $with_gnu_ld = no; then
13537	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13538	  hardcode_libdir_separator_CXX=:
13539
13540          case $host_cpu in
13541            hppa*64*|ia64*)
13542              ;;
13543            *)
13544	      export_dynamic_flag_spec_CXX='${wl}-E'
13545              ;;
13546          esac
13547        fi
13548        case $host_cpu in
13549          hppa*64*|ia64*)
13550            hardcode_direct_CXX=no
13551            hardcode_shlibpath_var_CXX=no
13552            ;;
13553          *)
13554            hardcode_direct_CXX=yes
13555            hardcode_direct_absolute_CXX=yes
13556            hardcode_minus_L_CXX=yes # Not in the search PATH,
13557					         # but as the default
13558					         # location of the library.
13559            ;;
13560        esac
13561
13562        case $cc_basename in
13563          CC*)
13564	    # FIXME: insert proper C++ library support
13565	    ld_shlibs_CXX=no
13566	    ;;
13567          aCC*)
13568	    case $host_cpu in
13569	      hppa*64*)
13570	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13571	        ;;
13572	      ia64*)
13573	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13574	        ;;
13575	      *)
13576	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13577	        ;;
13578	    esac
13579	    # Commands to make compiler produce verbose output that lists
13580	    # what "hidden" libraries, object files and flags are used when
13581	    # linking a shared library.
13582	    #
13583	    # There doesn't appear to be a way to prevent this compiler from
13584	    # explicitly linking system object files so we need to strip them
13585	    # from the output so that they don't get included in the library
13586	    # dependencies.
13587	    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'
13588	    ;;
13589          *)
13590	    if test "$GXX" = yes; then
13591	      if test $with_gnu_ld = no; then
13592	        case $host_cpu in
13593	          hppa*64*)
13594	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13595	            ;;
13596	          ia64*)
13597	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13598	            ;;
13599	          *)
13600	            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'
13601	            ;;
13602	        esac
13603	      fi
13604	    else
13605	      # FIXME: insert proper C++ library support
13606	      ld_shlibs_CXX=no
13607	    fi
13608	    ;;
13609        esac
13610        ;;
13611
13612      interix[3-9]*)
13613	hardcode_direct_CXX=no
13614	hardcode_shlibpath_var_CXX=no
13615	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13616	export_dynamic_flag_spec_CXX='${wl}-E'
13617	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13618	# Instead, shared libraries are loaded at an image base (0x10000000 by
13619	# default) and relocated if they conflict, which is a slow very memory
13620	# consuming and fragmenting process.  To avoid this, we pick a random,
13621	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13622	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13623	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'
13624	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'
13625	;;
13626      irix5* | irix6*)
13627        case $cc_basename in
13628          CC*)
13629	    # SGI C++
13630	    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'
13631
13632	    # Archives containing C++ object files must be created using
13633	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13634	    # necessary to make sure instantiated templates are included
13635	    # in the archive.
13636	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13637	    ;;
13638          *)
13639	    if test "$GXX" = yes; then
13640	      if test "$with_gnu_ld" = no; then
13641	        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'
13642	      else
13643	        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'
13644	      fi
13645	    fi
13646	    link_all_deplibs_CXX=yes
13647	    ;;
13648        esac
13649        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13650        hardcode_libdir_separator_CXX=:
13651        inherit_rpath_CXX=yes
13652        ;;
13653
13654      linux* | k*bsd*-gnu | kopensolaris*-gnu)
13655        case $cc_basename in
13656          KCC*)
13657	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13658
13659	    # KCC will only create a shared library if the output file
13660	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13661	    # to its proper name (with version) after linking.
13662	    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'
13663	    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'
13664	    # Commands to make compiler produce verbose output that lists
13665	    # what "hidden" libraries, object files and flags are used when
13666	    # linking a shared library.
13667	    #
13668	    # There doesn't appear to be a way to prevent this compiler from
13669	    # explicitly linking system object files so we need to strip them
13670	    # from the output so that they don't get included in the library
13671	    # dependencies.
13672	    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'
13673
13674	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13675	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13676
13677	    # Archives containing C++ object files must be created using
13678	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13679	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13680	    ;;
13681	  icpc* | ecpc* )
13682	    # Intel C++
13683	    with_gnu_ld=yes
13684	    # version 8.0 and above of icpc choke on multiply defined symbols
13685	    # if we add $predep_objects and $postdep_objects, however 7.1 and
13686	    # earlier do not add the objects themselves.
13687	    case `$CC -V 2>&1` in
13688	      *"Version 7."*)
13689	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13690		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'
13691		;;
13692	      *)  # Version 8.0 or newer
13693	        tmp_idyn=
13694	        case $host_cpu in
13695		  ia64*) tmp_idyn=' -i_dynamic';;
13696		esac
13697	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13698		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'
13699		;;
13700	    esac
13701	    archive_cmds_need_lc_CXX=no
13702	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13703	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13704	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13705	    ;;
13706          pgCC* | pgcpp*)
13707            # Portland Group C++ compiler
13708	    case `$CC -V` in
13709	    *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13710	      prelink_cmds_CXX='tpldir=Template.dir~
13711		rm -rf $tpldir~
13712		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13713		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13714	      old_archive_cmds_CXX='tpldir=Template.dir~
13715		rm -rf $tpldir~
13716		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13717		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13718		$RANLIB $oldlib'
13719	      archive_cmds_CXX='tpldir=Template.dir~
13720		rm -rf $tpldir~
13721		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13722		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13723	      archive_expsym_cmds_CXX='tpldir=Template.dir~
13724		rm -rf $tpldir~
13725		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13726		$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'
13727	      ;;
13728	    *) # Version 6 will use weak symbols
13729	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13730	      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'
13731	      ;;
13732	    esac
13733
13734	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13735	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13736	    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'
13737            ;;
13738	  cxx*)
13739	    # Compaq C++
13740	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13741	    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'
13742
13743	    runpath_var=LD_RUN_PATH
13744	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13745	    hardcode_libdir_separator_CXX=:
13746
13747	    # Commands to make compiler produce verbose output that lists
13748	    # what "hidden" libraries, object files and flags are used when
13749	    # linking a shared library.
13750	    #
13751	    # There doesn't appear to be a way to prevent this compiler from
13752	    # explicitly linking system object files so we need to strip them
13753	    # from the output so that they don't get included in the library
13754	    # dependencies.
13755	    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'
13756	    ;;
13757	  xl*)
13758	    # IBM XL 8.0 on PPC, with GNU ld
13759	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13760	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13761	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13762	    if test "x$supports_anon_versioning" = xyes; then
13763	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13764		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13765		echo "local: *; };" >> $output_objdir/$libname.ver~
13766		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13767	    fi
13768	    ;;
13769	  *)
13770	    case `$CC -V 2>&1 | sed 5q` in
13771	    *Sun\ C*)
13772	      # Sun C++ 5.9
13773	      no_undefined_flag_CXX=' -zdefs'
13774	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13775	      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'
13776	      hardcode_libdir_flag_spec_CXX='-R$libdir'
13777	      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'
13778	      compiler_needs_object_CXX=yes
13779
13780	      # Not sure whether something based on
13781	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13782	      # would be better.
13783	      output_verbose_link_cmd='echo'
13784
13785	      # Archives containing C++ object files must be created using
13786	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13787	      # necessary to make sure instantiated templates are included
13788	      # in the archive.
13789	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13790	      ;;
13791	    esac
13792	    ;;
13793	esac
13794	;;
13795
13796      lynxos*)
13797        # FIXME: insert proper C++ library support
13798	ld_shlibs_CXX=no
13799	;;
13800
13801      m88k*)
13802        # FIXME: insert proper C++ library support
13803        ld_shlibs_CXX=no
13804	;;
13805
13806      mvs*)
13807        case $cc_basename in
13808          cxx*)
13809	    # FIXME: insert proper C++ library support
13810	    ld_shlibs_CXX=no
13811	    ;;
13812	  *)
13813	    # FIXME: insert proper C++ library support
13814	    ld_shlibs_CXX=no
13815	    ;;
13816	esac
13817	;;
13818
13819      netbsd*)
13820        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13821	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13822	  wlarc=
13823	  hardcode_libdir_flag_spec_CXX='-R$libdir'
13824	  hardcode_direct_CXX=yes
13825	  hardcode_shlibpath_var_CXX=no
13826	fi
13827	# Workaround some broken pre-1.5 toolchains
13828	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13829	;;
13830
13831      *nto* | *qnx*)
13832        ld_shlibs_CXX=yes
13833	;;
13834
13835      openbsd2*)
13836        # C++ shared libraries are fairly broken
13837	ld_shlibs_CXX=no
13838	;;
13839
13840      openbsd*)
13841	if test -f /usr/libexec/ld.so; then
13842	  hardcode_direct_CXX=yes
13843	  hardcode_shlibpath_var_CXX=no
13844	  hardcode_direct_absolute_CXX=yes
13845	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13846	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13847	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13848	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13849	    export_dynamic_flag_spec_CXX='${wl}-E'
13850	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13851	  fi
13852	  output_verbose_link_cmd=echo
13853	else
13854	  ld_shlibs_CXX=no
13855	fi
13856	;;
13857
13858      osf3* | osf4* | osf5*)
13859        case $cc_basename in
13860          KCC*)
13861	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13862
13863	    # KCC will only create a shared library if the output file
13864	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13865	    # to its proper name (with version) after linking.
13866	    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'
13867
13868	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13869	    hardcode_libdir_separator_CXX=:
13870
13871	    # Archives containing C++ object files must be created using
13872	    # the KAI C++ compiler.
13873	    case $host in
13874	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13875	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13876	    esac
13877	    ;;
13878          RCC*)
13879	    # Rational C++ 2.4.1
13880	    # FIXME: insert proper C++ library support
13881	    ld_shlibs_CXX=no
13882	    ;;
13883          cxx*)
13884	    case $host in
13885	      osf3*)
13886	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13887	        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'
13888	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13889		;;
13890	      *)
13891	        allow_undefined_flag_CXX=' -expect_unresolved \*'
13892	        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'
13893	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13894	          echo "-hidden">> $lib.exp~
13895	          $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~
13896	          $RM $lib.exp'
13897	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13898		;;
13899	    esac
13900
13901	    hardcode_libdir_separator_CXX=:
13902
13903	    # Commands to make compiler produce verbose output that lists
13904	    # what "hidden" libraries, object files and flags are used when
13905	    # linking a shared library.
13906	    #
13907	    # There doesn't appear to be a way to prevent this compiler from
13908	    # explicitly linking system object files so we need to strip them
13909	    # from the output so that they don't get included in the library
13910	    # dependencies.
13911	    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'
13912	    ;;
13913	  *)
13914	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13915	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13916	      case $host in
13917	        osf3*)
13918	          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'
13919		  ;;
13920	        *)
13921	          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'
13922		  ;;
13923	      esac
13924
13925	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13926	      hardcode_libdir_separator_CXX=:
13927
13928	      # Commands to make compiler produce verbose output that lists
13929	      # what "hidden" libraries, object files and flags are used when
13930	      # linking a shared library.
13931	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13932
13933	    else
13934	      # FIXME: insert proper C++ library support
13935	      ld_shlibs_CXX=no
13936	    fi
13937	    ;;
13938        esac
13939        ;;
13940
13941      psos*)
13942        # FIXME: insert proper C++ library support
13943        ld_shlibs_CXX=no
13944        ;;
13945
13946      sunos4*)
13947        case $cc_basename in
13948          CC*)
13949	    # Sun C++ 4.x
13950	    # FIXME: insert proper C++ library support
13951	    ld_shlibs_CXX=no
13952	    ;;
13953          lcc*)
13954	    # Lucid
13955	    # FIXME: insert proper C++ library support
13956	    ld_shlibs_CXX=no
13957	    ;;
13958          *)
13959	    # FIXME: insert proper C++ library support
13960	    ld_shlibs_CXX=no
13961	    ;;
13962        esac
13963        ;;
13964
13965      solaris*)
13966        case $cc_basename in
13967          CC*)
13968	    # Sun C++ 4.2, 5.x and Centerline C++
13969            archive_cmds_need_lc_CXX=yes
13970	    no_undefined_flag_CXX=' -zdefs'
13971	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13972	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13973	      $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'
13974
13975	    hardcode_libdir_flag_spec_CXX='-R$libdir'
13976	    hardcode_shlibpath_var_CXX=no
13977	    case $host_os in
13978	      solaris2.[0-5] | solaris2.[0-5].*) ;;
13979	      *)
13980		# The compiler driver will combine and reorder linker options,
13981		# but understands `-z linker_flag'.
13982	        # Supported since Solaris 2.6 (maybe 2.5.1?)
13983		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13984	        ;;
13985	    esac
13986	    link_all_deplibs_CXX=yes
13987
13988	    output_verbose_link_cmd='echo'
13989
13990	    # Archives containing C++ object files must be created using
13991	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13992	    # necessary to make sure instantiated templates are included
13993	    # in the archive.
13994	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13995	    ;;
13996          gcx*)
13997	    # Green Hills C++ Compiler
13998	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13999
14000	    # The C++ compiler must be used to create the archive.
14001	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14002	    ;;
14003          *)
14004	    # GNU C++ compiler with Solaris linker
14005	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14006	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14007	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14008	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14009	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14010		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14011
14012	        # Commands to make compiler produce verbose output that lists
14013	        # what "hidden" libraries, object files and flags are used when
14014	        # linking a shared library.
14015	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14016	      else
14017	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
14018	        # platform.
14019	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14020	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14021		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14022
14023	        # Commands to make compiler produce verbose output that lists
14024	        # what "hidden" libraries, object files and flags are used when
14025	        # linking a shared library.
14026	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14027	      fi
14028
14029	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14030	      case $host_os in
14031		solaris2.[0-5] | solaris2.[0-5].*) ;;
14032		*)
14033		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14034		  ;;
14035	      esac
14036	    fi
14037	    ;;
14038        esac
14039        ;;
14040
14041    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14042      no_undefined_flag_CXX='${wl}-z,text'
14043      archive_cmds_need_lc_CXX=no
14044      hardcode_shlibpath_var_CXX=no
14045      runpath_var='LD_RUN_PATH'
14046
14047      case $cc_basename in
14048        CC*)
14049	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14050	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14051	  ;;
14052	*)
14053	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14054	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14055	  ;;
14056      esac
14057      ;;
14058
14059      sysv5* | sco3.2v5* | sco5v6*)
14060	# Note: We can NOT use -z defs as we might desire, because we do not
14061	# link with -lc, and that would cause any symbols used from libc to
14062	# always be unresolved, which means just about no library would
14063	# ever link correctly.  If we're not using GNU ld we use -z text
14064	# though, which does catch some bad symbols but isn't as heavy-handed
14065	# as -z defs.
14066	no_undefined_flag_CXX='${wl}-z,text'
14067	allow_undefined_flag_CXX='${wl}-z,nodefs'
14068	archive_cmds_need_lc_CXX=no
14069	hardcode_shlibpath_var_CXX=no
14070	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14071	hardcode_libdir_separator_CXX=':'
14072	link_all_deplibs_CXX=yes
14073	export_dynamic_flag_spec_CXX='${wl}-Bexport'
14074	runpath_var='LD_RUN_PATH'
14075
14076	case $cc_basename in
14077          CC*)
14078	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14079	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14080	    ;;
14081	  *)
14082	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14083	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14084	    ;;
14085	esac
14086      ;;
14087
14088      tandem*)
14089        case $cc_basename in
14090          NCC*)
14091	    # NonStop-UX NCC 3.20
14092	    # FIXME: insert proper C++ library support
14093	    ld_shlibs_CXX=no
14094	    ;;
14095          *)
14096	    # FIXME: insert proper C++ library support
14097	    ld_shlibs_CXX=no
14098	    ;;
14099        esac
14100        ;;
14101
14102      vxworks*)
14103        # FIXME: insert proper C++ library support
14104        ld_shlibs_CXX=no
14105        ;;
14106
14107      *)
14108        # FIXME: insert proper C++ library support
14109        ld_shlibs_CXX=no
14110        ;;
14111    esac
14112
14113    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14114$as_echo "$ld_shlibs_CXX" >&6; }
14115    test "$ld_shlibs_CXX" = no && can_build_shared=no
14116
14117    GCC_CXX="$GXX"
14118    LD_CXX="$LD"
14119
14120    ## CAVEAT EMPTOR:
14121    ## There is no encapsulation within the following macros, do not change
14122    ## the running order or otherwise move them around unless you know exactly
14123    ## what you are doing...
14124    # Dependencies to place before and after the object being linked:
14125predep_objects_CXX=
14126postdep_objects_CXX=
14127predeps_CXX=
14128postdeps_CXX=
14129compiler_lib_search_path_CXX=
14130
14131cat > conftest.$ac_ext <<_LT_EOF
14132class Foo
14133{
14134public:
14135  Foo (void) { a = 0; }
14136private:
14137  int a;
14138};
14139_LT_EOF
14140
14141if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14142  (eval $ac_compile) 2>&5
14143  ac_status=$?
14144  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14145  test $ac_status = 0; }; then
14146  # Parse the compiler output and extract the necessary
14147  # objects, libraries and library flags.
14148
14149  # Sentinel used to keep track of whether or not we are before
14150  # the conftest object file.
14151  pre_test_object_deps_done=no
14152
14153  for p in `eval "$output_verbose_link_cmd"`; do
14154    case $p in
14155
14156    -L* | -R* | -l*)
14157       # Some compilers place space between "-{L,R}" and the path.
14158       # Remove the space.
14159       if test $p = "-L" ||
14160          test $p = "-R"; then
14161	 prev=$p
14162	 continue
14163       else
14164	 prev=
14165       fi
14166
14167       if test "$pre_test_object_deps_done" = no; then
14168	 case $p in
14169	 -L* | -R*)
14170	   # Internal compiler library paths should come after those
14171	   # provided the user.  The postdeps already come after the
14172	   # user supplied libs so there is no need to process them.
14173	   if test -z "$compiler_lib_search_path_CXX"; then
14174	     compiler_lib_search_path_CXX="${prev}${p}"
14175	   else
14176	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14177	   fi
14178	   ;;
14179	 # The "-l" case would never come before the object being
14180	 # linked, so don't bother handling this case.
14181	 esac
14182       else
14183	 if test -z "$postdeps_CXX"; then
14184	   postdeps_CXX="${prev}${p}"
14185	 else
14186	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14187	 fi
14188       fi
14189       ;;
14190
14191    *.$objext)
14192       # This assumes that the test object file only shows up
14193       # once in the compiler output.
14194       if test "$p" = "conftest.$objext"; then
14195	 pre_test_object_deps_done=yes
14196	 continue
14197       fi
14198
14199       if test "$pre_test_object_deps_done" = no; then
14200	 if test -z "$predep_objects_CXX"; then
14201	   predep_objects_CXX="$p"
14202	 else
14203	   predep_objects_CXX="$predep_objects_CXX $p"
14204	 fi
14205       else
14206	 if test -z "$postdep_objects_CXX"; then
14207	   postdep_objects_CXX="$p"
14208	 else
14209	   postdep_objects_CXX="$postdep_objects_CXX $p"
14210	 fi
14211       fi
14212       ;;
14213
14214    *) ;; # Ignore the rest.
14215
14216    esac
14217  done
14218
14219  # Clean up.
14220  rm -f a.out a.exe
14221else
14222  echo "libtool.m4: error: problem compiling CXX test program"
14223fi
14224
14225$RM -f confest.$objext
14226
14227# PORTME: override above test on systems where it is broken
14228case $host_os in
14229interix[3-9]*)
14230  # Interix 3.5 installs completely hosed .la files for C++, so rather than
14231  # hack all around it, let's just trust "g++" to DTRT.
14232  predep_objects_CXX=
14233  postdep_objects_CXX=
14234  postdeps_CXX=
14235  ;;
14236
14237linux*)
14238  case `$CC -V 2>&1 | sed 5q` in
14239  *Sun\ C*)
14240    # Sun C++ 5.9
14241
14242    # The more standards-conforming stlport4 library is
14243    # incompatible with the Cstd library. Avoid specifying
14244    # it if it's in CXXFLAGS. Ignore libCrun as
14245    # -library=stlport4 depends on it.
14246    case " $CXX $CXXFLAGS " in
14247    *" -library=stlport4 "*)
14248      solaris_use_stlport4=yes
14249      ;;
14250    esac
14251
14252    if test "$solaris_use_stlport4" != yes; then
14253      postdeps_CXX='-library=Cstd -library=Crun'
14254    fi
14255    ;;
14256  esac
14257  ;;
14258
14259solaris*)
14260  case $cc_basename in
14261  CC*)
14262    # The more standards-conforming stlport4 library is
14263    # incompatible with the Cstd library. Avoid specifying
14264    # it if it's in CXXFLAGS. Ignore libCrun as
14265    # -library=stlport4 depends on it.
14266    case " $CXX $CXXFLAGS " in
14267    *" -library=stlport4 "*)
14268      solaris_use_stlport4=yes
14269      ;;
14270    esac
14271
14272    # Adding this requires a known-good setup of shared libraries for
14273    # Sun compiler versions before 5.6, else PIC objects from an old
14274    # archive will be linked into the output, leading to subtle bugs.
14275    if test "$solaris_use_stlport4" != yes; then
14276      postdeps_CXX='-library=Cstd -library=Crun'
14277    fi
14278    ;;
14279  esac
14280  ;;
14281esac
14282
14283
14284case " $postdeps_CXX " in
14285*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14286esac
14287 compiler_lib_search_dirs_CXX=
14288if test -n "${compiler_lib_search_path_CXX}"; then
14289 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14290fi
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322    lt_prog_compiler_wl_CXX=
14323lt_prog_compiler_pic_CXX=
14324lt_prog_compiler_static_CXX=
14325
14326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14327$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14328
14329  # C++ specific cases for pic, static, wl, etc.
14330  if test "$GXX" = yes; then
14331    lt_prog_compiler_wl_CXX='-Wl,'
14332    lt_prog_compiler_static_CXX='-static'
14333
14334    case $host_os in
14335    aix*)
14336      # All AIX code is PIC.
14337      if test "$host_cpu" = ia64; then
14338	# AIX 5 now supports IA64 processor
14339	lt_prog_compiler_static_CXX='-Bstatic'
14340      fi
14341      ;;
14342
14343    amigaos*)
14344      case $host_cpu in
14345      powerpc)
14346            # see comment about AmigaOS4 .so support
14347            lt_prog_compiler_pic_CXX='-fPIC'
14348        ;;
14349      m68k)
14350            # FIXME: we need at least 68020 code to build shared libraries, but
14351            # adding the `-m68020' flag to GCC prevents building anything better,
14352            # like `-m68040'.
14353            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14354        ;;
14355      esac
14356      ;;
14357
14358    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14359      # PIC is the default for these OSes.
14360      ;;
14361    mingw* | cygwin* | os2* | pw32* | cegcc*)
14362      # This hack is so that the source file can tell whether it is being
14363      # built for inclusion in a dll (and should export symbols for example).
14364      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14365      # (--disable-auto-import) libraries
14366      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14367      ;;
14368    darwin* | rhapsody*)
14369      # PIC is the default on this platform
14370      # Common symbols not allowed in MH_DYLIB files
14371      lt_prog_compiler_pic_CXX='-fno-common'
14372      ;;
14373    *djgpp*)
14374      # DJGPP does not support shared libraries at all
14375      lt_prog_compiler_pic_CXX=
14376      ;;
14377    interix[3-9]*)
14378      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14379      # Instead, we relocate shared libraries at runtime.
14380      ;;
14381    sysv4*MP*)
14382      if test -d /usr/nec; then
14383	lt_prog_compiler_pic_CXX=-Kconform_pic
14384      fi
14385      ;;
14386    hpux*)
14387      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14388      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14389      # sets the default TLS model and affects inlining.
14390      case $host_cpu in
14391      hppa*64*)
14392	;;
14393      *)
14394	lt_prog_compiler_pic_CXX='-fPIC'
14395	;;
14396      esac
14397      ;;
14398    *qnx* | *nto*)
14399      # QNX uses GNU C++, but need to define -shared option too, otherwise
14400      # it will coredump.
14401      lt_prog_compiler_pic_CXX='-fPIC -shared'
14402      ;;
14403    *)
14404      lt_prog_compiler_pic_CXX='-fPIC'
14405      ;;
14406    esac
14407  else
14408    case $host_os in
14409      aix[4-9]*)
14410	# All AIX code is PIC.
14411	if test "$host_cpu" = ia64; then
14412	  # AIX 5 now supports IA64 processor
14413	  lt_prog_compiler_static_CXX='-Bstatic'
14414	else
14415	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14416	fi
14417	;;
14418      chorus*)
14419	case $cc_basename in
14420	cxch68*)
14421	  # Green Hills C++ Compiler
14422	  # _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"
14423	  ;;
14424	esac
14425	;;
14426      dgux*)
14427	case $cc_basename in
14428	  ec++*)
14429	    lt_prog_compiler_pic_CXX='-KPIC'
14430	    ;;
14431	  ghcx*)
14432	    # Green Hills C++ Compiler
14433	    lt_prog_compiler_pic_CXX='-pic'
14434	    ;;
14435	  *)
14436	    ;;
14437	esac
14438	;;
14439      freebsd* | dragonfly*)
14440	# FreeBSD uses GNU C++
14441	;;
14442      hpux9* | hpux10* | hpux11*)
14443	case $cc_basename in
14444	  CC*)
14445	    lt_prog_compiler_wl_CXX='-Wl,'
14446	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14447	    if test "$host_cpu" != ia64; then
14448	      lt_prog_compiler_pic_CXX='+Z'
14449	    fi
14450	    ;;
14451	  aCC*)
14452	    lt_prog_compiler_wl_CXX='-Wl,'
14453	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14454	    case $host_cpu in
14455	    hppa*64*|ia64*)
14456	      # +Z the default
14457	      ;;
14458	    *)
14459	      lt_prog_compiler_pic_CXX='+Z'
14460	      ;;
14461	    esac
14462	    ;;
14463	  *)
14464	    ;;
14465	esac
14466	;;
14467      interix*)
14468	# This is c89, which is MS Visual C++ (no shared libs)
14469	# Anyone wants to do a port?
14470	;;
14471      irix5* | irix6* | nonstopux*)
14472	case $cc_basename in
14473	  CC*)
14474	    lt_prog_compiler_wl_CXX='-Wl,'
14475	    lt_prog_compiler_static_CXX='-non_shared'
14476	    # CC pic flag -KPIC is the default.
14477	    ;;
14478	  *)
14479	    ;;
14480	esac
14481	;;
14482      linux* | k*bsd*-gnu | kopensolaris*-gnu)
14483	case $cc_basename in
14484	  KCC*)
14485	    # KAI C++ Compiler
14486	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14487	    lt_prog_compiler_pic_CXX='-fPIC'
14488	    ;;
14489	  ecpc* )
14490	    # old Intel C++ for x86_64 which still supported -KPIC.
14491	    lt_prog_compiler_wl_CXX='-Wl,'
14492	    lt_prog_compiler_pic_CXX='-KPIC'
14493	    lt_prog_compiler_static_CXX='-static'
14494	    ;;
14495	  icpc* )
14496	    # Intel C++, used to be incompatible with GCC.
14497	    # ICC 10 doesn't accept -KPIC any more.
14498	    lt_prog_compiler_wl_CXX='-Wl,'
14499	    lt_prog_compiler_pic_CXX='-fPIC'
14500	    lt_prog_compiler_static_CXX='-static'
14501	    ;;
14502	  pgCC* | pgcpp*)
14503	    # Portland Group C++ compiler
14504	    lt_prog_compiler_wl_CXX='-Wl,'
14505	    lt_prog_compiler_pic_CXX='-fpic'
14506	    lt_prog_compiler_static_CXX='-Bstatic'
14507	    ;;
14508	  cxx*)
14509	    # Compaq C++
14510	    # Make sure the PIC flag is empty.  It appears that all Alpha
14511	    # Linux and Compaq Tru64 Unix objects are PIC.
14512	    lt_prog_compiler_pic_CXX=
14513	    lt_prog_compiler_static_CXX='-non_shared'
14514	    ;;
14515	  xlc* | xlC*)
14516	    # IBM XL 8.0 on PPC
14517	    lt_prog_compiler_wl_CXX='-Wl,'
14518	    lt_prog_compiler_pic_CXX='-qpic'
14519	    lt_prog_compiler_static_CXX='-qstaticlink'
14520	    ;;
14521	  *)
14522	    case `$CC -V 2>&1 | sed 5q` in
14523	    *Sun\ C*)
14524	      # Sun C++ 5.9
14525	      lt_prog_compiler_pic_CXX='-KPIC'
14526	      lt_prog_compiler_static_CXX='-Bstatic'
14527	      lt_prog_compiler_wl_CXX='-Qoption ld '
14528	      ;;
14529	    esac
14530	    ;;
14531	esac
14532	;;
14533      lynxos*)
14534	;;
14535      m88k*)
14536	;;
14537      mvs*)
14538	case $cc_basename in
14539	  cxx*)
14540	    lt_prog_compiler_pic_CXX='-W c,exportall'
14541	    ;;
14542	  *)
14543	    ;;
14544	esac
14545	;;
14546      netbsd* | netbsdelf*-gnu)
14547	;;
14548      *qnx* | *nto*)
14549        # QNX uses GNU C++, but need to define -shared option too, otherwise
14550        # it will coredump.
14551        lt_prog_compiler_pic_CXX='-fPIC -shared'
14552        ;;
14553      osf3* | osf4* | osf5*)
14554	case $cc_basename in
14555	  KCC*)
14556	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14557	    ;;
14558	  RCC*)
14559	    # Rational C++ 2.4.1
14560	    lt_prog_compiler_pic_CXX='-pic'
14561	    ;;
14562	  cxx*)
14563	    # Digital/Compaq C++
14564	    lt_prog_compiler_wl_CXX='-Wl,'
14565	    # Make sure the PIC flag is empty.  It appears that all Alpha
14566	    # Linux and Compaq Tru64 Unix objects are PIC.
14567	    lt_prog_compiler_pic_CXX=
14568	    lt_prog_compiler_static_CXX='-non_shared'
14569	    ;;
14570	  *)
14571	    ;;
14572	esac
14573	;;
14574      psos*)
14575	;;
14576      solaris*)
14577	case $cc_basename in
14578	  CC*)
14579	    # Sun C++ 4.2, 5.x and Centerline C++
14580	    lt_prog_compiler_pic_CXX='-KPIC'
14581	    lt_prog_compiler_static_CXX='-Bstatic'
14582	    lt_prog_compiler_wl_CXX='-Qoption ld '
14583	    ;;
14584	  gcx*)
14585	    # Green Hills C++ Compiler
14586	    lt_prog_compiler_pic_CXX='-PIC'
14587	    ;;
14588	  *)
14589	    ;;
14590	esac
14591	;;
14592      sunos4*)
14593	case $cc_basename in
14594	  CC*)
14595	    # Sun C++ 4.x
14596	    lt_prog_compiler_pic_CXX='-pic'
14597	    lt_prog_compiler_static_CXX='-Bstatic'
14598	    ;;
14599	  lcc*)
14600	    # Lucid
14601	    lt_prog_compiler_pic_CXX='-pic'
14602	    ;;
14603	  *)
14604	    ;;
14605	esac
14606	;;
14607      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14608	case $cc_basename in
14609	  CC*)
14610	    lt_prog_compiler_wl_CXX='-Wl,'
14611	    lt_prog_compiler_pic_CXX='-KPIC'
14612	    lt_prog_compiler_static_CXX='-Bstatic'
14613	    ;;
14614	esac
14615	;;
14616      tandem*)
14617	case $cc_basename in
14618	  NCC*)
14619	    # NonStop-UX NCC 3.20
14620	    lt_prog_compiler_pic_CXX='-KPIC'
14621	    ;;
14622	  *)
14623	    ;;
14624	esac
14625	;;
14626      vxworks*)
14627	;;
14628      *)
14629	lt_prog_compiler_can_build_shared_CXX=no
14630	;;
14631    esac
14632  fi
14633
14634case $host_os in
14635  # For platforms which do not support PIC, -DPIC is meaningless:
14636  *djgpp*)
14637    lt_prog_compiler_pic_CXX=
14638    ;;
14639  *)
14640    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14641    ;;
14642esac
14643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14644$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14645
14646
14647
14648#
14649# Check to make sure the PIC flag actually works.
14650#
14651if test -n "$lt_prog_compiler_pic_CXX"; then
14652  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14653$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14654if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14655  $as_echo_n "(cached) " >&6
14656else
14657  lt_cv_prog_compiler_pic_works_CXX=no
14658   ac_outfile=conftest.$ac_objext
14659   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14660   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14661   # Insert the option either (1) after the last *FLAGS variable, or
14662   # (2) before a word containing "conftest.", or (3) at the end.
14663   # Note that $ac_compile itself does not contain backslashes and begins
14664   # with a dollar sign (not a hyphen), so the echo should work correctly.
14665   # The option is referenced via a variable to avoid confusing sed.
14666   lt_compile=`echo "$ac_compile" | $SED \
14667   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14668   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14669   -e 's:$: $lt_compiler_flag:'`
14670   (eval echo "\"\$as_me:14670: $lt_compile\"" >&5)
14671   (eval "$lt_compile" 2>conftest.err)
14672   ac_status=$?
14673   cat conftest.err >&5
14674   echo "$as_me:14674: \$? = $ac_status" >&5
14675   if (exit $ac_status) && test -s "$ac_outfile"; then
14676     # The compiler can only warn and ignore the option if not recognized
14677     # So say no if there are warnings other than the usual output.
14678     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14679     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14680     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14681       lt_cv_prog_compiler_pic_works_CXX=yes
14682     fi
14683   fi
14684   $RM conftest*
14685
14686fi
14687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14688$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14689
14690if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14691    case $lt_prog_compiler_pic_CXX in
14692     "" | " "*) ;;
14693     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14694     esac
14695else
14696    lt_prog_compiler_pic_CXX=
14697     lt_prog_compiler_can_build_shared_CXX=no
14698fi
14699
14700fi
14701
14702
14703
14704#
14705# Check to make sure the static flag actually works.
14706#
14707wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14709$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14710if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14711  $as_echo_n "(cached) " >&6
14712else
14713  lt_cv_prog_compiler_static_works_CXX=no
14714   save_LDFLAGS="$LDFLAGS"
14715   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14716   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14717   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14718     # The linker can only warn and ignore the option if not recognized
14719     # So say no if there are warnings
14720     if test -s conftest.err; then
14721       # Append any errors to the config.log.
14722       cat conftest.err 1>&5
14723       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14724       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14725       if diff conftest.exp conftest.er2 >/dev/null; then
14726         lt_cv_prog_compiler_static_works_CXX=yes
14727       fi
14728     else
14729       lt_cv_prog_compiler_static_works_CXX=yes
14730     fi
14731   fi
14732   $RM -r conftest*
14733   LDFLAGS="$save_LDFLAGS"
14734
14735fi
14736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14737$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14738
14739if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14740    :
14741else
14742    lt_prog_compiler_static_CXX=
14743fi
14744
14745
14746
14747
14748    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14749$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14750if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14751  $as_echo_n "(cached) " >&6
14752else
14753  lt_cv_prog_compiler_c_o_CXX=no
14754   $RM -r conftest 2>/dev/null
14755   mkdir conftest
14756   cd conftest
14757   mkdir out
14758   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14759
14760   lt_compiler_flag="-o out/conftest2.$ac_objext"
14761   # Insert the option either (1) after the last *FLAGS variable, or
14762   # (2) before a word containing "conftest.", or (3) at the end.
14763   # Note that $ac_compile itself does not contain backslashes and begins
14764   # with a dollar sign (not a hyphen), so the echo should work correctly.
14765   lt_compile=`echo "$ac_compile" | $SED \
14766   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14767   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14768   -e 's:$: $lt_compiler_flag:'`
14769   (eval echo "\"\$as_me:14769: $lt_compile\"" >&5)
14770   (eval "$lt_compile" 2>out/conftest.err)
14771   ac_status=$?
14772   cat out/conftest.err >&5
14773   echo "$as_me:14773: \$? = $ac_status" >&5
14774   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14775   then
14776     # The compiler can only warn and ignore the option if not recognized
14777     # So say no if there are warnings
14778     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14779     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14780     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14781       lt_cv_prog_compiler_c_o_CXX=yes
14782     fi
14783   fi
14784   chmod u+w . 2>&5
14785   $RM conftest*
14786   # SGI C++ compiler will create directory out/ii_files/ for
14787   # template instantiation
14788   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14789   $RM out/* && rmdir out
14790   cd ..
14791   $RM -r conftest
14792   $RM conftest*
14793
14794fi
14795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14796$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14797
14798
14799
14800    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14801$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14802if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14803  $as_echo_n "(cached) " >&6
14804else
14805  lt_cv_prog_compiler_c_o_CXX=no
14806   $RM -r conftest 2>/dev/null
14807   mkdir conftest
14808   cd conftest
14809   mkdir out
14810   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14811
14812   lt_compiler_flag="-o out/conftest2.$ac_objext"
14813   # Insert the option either (1) after the last *FLAGS variable, or
14814   # (2) before a word containing "conftest.", or (3) at the end.
14815   # Note that $ac_compile itself does not contain backslashes and begins
14816   # with a dollar sign (not a hyphen), so the echo should work correctly.
14817   lt_compile=`echo "$ac_compile" | $SED \
14818   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14819   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14820   -e 's:$: $lt_compiler_flag:'`
14821   (eval echo "\"\$as_me:14821: $lt_compile\"" >&5)
14822   (eval "$lt_compile" 2>out/conftest.err)
14823   ac_status=$?
14824   cat out/conftest.err >&5
14825   echo "$as_me:14825: \$? = $ac_status" >&5
14826   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14827   then
14828     # The compiler can only warn and ignore the option if not recognized
14829     # So say no if there are warnings
14830     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14831     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14832     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14833       lt_cv_prog_compiler_c_o_CXX=yes
14834     fi
14835   fi
14836   chmod u+w . 2>&5
14837   $RM conftest*
14838   # SGI C++ compiler will create directory out/ii_files/ for
14839   # template instantiation
14840   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14841   $RM out/* && rmdir out
14842   cd ..
14843   $RM -r conftest
14844   $RM conftest*
14845
14846fi
14847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14848$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14849
14850
14851
14852
14853hard_links="nottested"
14854if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14855  # do not overwrite the value of need_locks provided by the user
14856  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14857$as_echo_n "checking if we can lock with hard links... " >&6; }
14858  hard_links=yes
14859  $RM conftest*
14860  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14861  touch conftest.a
14862  ln conftest.a conftest.b 2>&5 || hard_links=no
14863  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14865$as_echo "$hard_links" >&6; }
14866  if test "$hard_links" = no; then
14867    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14868$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14869    need_locks=warn
14870  fi
14871else
14872  need_locks=no
14873fi
14874
14875
14876
14877    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14878$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14879
14880  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14881  case $host_os in
14882  aix[4-9]*)
14883    # If we're using GNU nm, then we don't want the "-C" option.
14884    # -C means demangle to AIX nm, but means don't demangle with GNU nm
14885    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14886      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'
14887    else
14888      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'
14889    fi
14890    ;;
14891  pw32*)
14892    export_symbols_cmds_CXX="$ltdll_cmds"
14893  ;;
14894  cygwin* | mingw* | cegcc*)
14895    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'
14896  ;;
14897  linux* | k*bsd*-gnu)
14898    link_all_deplibs_CXX=no
14899  ;;
14900  *)
14901    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14902  ;;
14903  esac
14904  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14905
14906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14907$as_echo "$ld_shlibs_CXX" >&6; }
14908test "$ld_shlibs_CXX" = no && can_build_shared=no
14909
14910with_gnu_ld_CXX=$with_gnu_ld
14911
14912
14913
14914
14915
14916
14917#
14918# Do we need to explicitly link libc?
14919#
14920case "x$archive_cmds_need_lc_CXX" in
14921x|xyes)
14922  # Assume -lc should be added
14923  archive_cmds_need_lc_CXX=yes
14924
14925  if test "$enable_shared" = yes && test "$GCC" = yes; then
14926    case $archive_cmds_CXX in
14927    *'~'*)
14928      # FIXME: we may have to deal with multi-command sequences.
14929      ;;
14930    '$CC '*)
14931      # Test whether the compiler implicitly links with -lc since on some
14932      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14933      # to ld, don't add -lc before -lgcc.
14934      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14935$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14936      $RM conftest*
14937      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14938
14939      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14940  (eval $ac_compile) 2>&5
14941  ac_status=$?
14942  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14943  test $ac_status = 0; } 2>conftest.err; then
14944        soname=conftest
14945        lib=conftest
14946        libobjs=conftest.$ac_objext
14947        deplibs=
14948        wl=$lt_prog_compiler_wl_CXX
14949	pic_flag=$lt_prog_compiler_pic_CXX
14950        compiler_flags=-v
14951        linker_flags=-v
14952        verstring=
14953        output_objdir=.
14954        libname=conftest
14955        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14956        allow_undefined_flag_CXX=
14957        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14958  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14959  ac_status=$?
14960  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14961  test $ac_status = 0; }
14962        then
14963	  archive_cmds_need_lc_CXX=no
14964        else
14965	  archive_cmds_need_lc_CXX=yes
14966        fi
14967        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14968      else
14969        cat conftest.err 1>&5
14970      fi
14971      $RM conftest*
14972      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14973$as_echo "$archive_cmds_need_lc_CXX" >&6; }
14974      ;;
14975    esac
14976  fi
14977  ;;
14978esac
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15044$as_echo_n "checking dynamic linker characteristics... " >&6; }
15045
15046library_names_spec=
15047libname_spec='lib$name'
15048soname_spec=
15049shrext_cmds=".so"
15050postinstall_cmds=
15051postuninstall_cmds=
15052finish_cmds=
15053finish_eval=
15054shlibpath_var=
15055shlibpath_overrides_runpath=unknown
15056version_type=none
15057dynamic_linker="$host_os ld.so"
15058sys_lib_dlsearch_path_spec="/lib /usr/lib"
15059need_lib_prefix=unknown
15060hardcode_into_libs=no
15061
15062# when you set need_version to no, make sure it does not cause -set_version
15063# flags to be left without arguments
15064need_version=unknown
15065
15066case $host_os in
15067aix3*)
15068  version_type=linux
15069  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15070  shlibpath_var=LIBPATH
15071
15072  # AIX 3 has no versioning support, so we append a major version to the name.
15073  soname_spec='${libname}${release}${shared_ext}$major'
15074  ;;
15075
15076aix[4-9]*)
15077  version_type=linux
15078  need_lib_prefix=no
15079  need_version=no
15080  hardcode_into_libs=yes
15081  if test "$host_cpu" = ia64; then
15082    # AIX 5 supports IA64
15083    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15084    shlibpath_var=LD_LIBRARY_PATH
15085  else
15086    # With GCC up to 2.95.x, collect2 would create an import file
15087    # for dependence libraries.  The import file would start with
15088    # the line `#! .'.  This would cause the generated library to
15089    # depend on `.', always an invalid library.  This was fixed in
15090    # development snapshots of GCC prior to 3.0.
15091    case $host_os in
15092      aix4 | aix4.[01] | aix4.[01].*)
15093      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15094	   echo ' yes '
15095	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15096	:
15097      else
15098	can_build_shared=no
15099      fi
15100      ;;
15101    esac
15102    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15103    # soname into executable. Probably we can add versioning support to
15104    # collect2, so additional links can be useful in future.
15105    if test "$aix_use_runtimelinking" = yes; then
15106      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15107      # instead of lib<name>.a to let people know that these are not
15108      # typical AIX shared libraries.
15109      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15110    else
15111      # We preserve .a as extension for shared libraries through AIX4.2
15112      # and later when we are not doing run time linking.
15113      library_names_spec='${libname}${release}.a $libname.a'
15114      soname_spec='${libname}${release}${shared_ext}$major'
15115    fi
15116    shlibpath_var=LIBPATH
15117  fi
15118  ;;
15119
15120amigaos*)
15121  case $host_cpu in
15122  powerpc)
15123    # Since July 2007 AmigaOS4 officially supports .so libraries.
15124    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15125    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15126    ;;
15127  m68k)
15128    library_names_spec='$libname.ixlibrary $libname.a'
15129    # Create ${libname}_ixlibrary.a entries in /sys/libs.
15130    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'
15131    ;;
15132  esac
15133  ;;
15134
15135beos*)
15136  library_names_spec='${libname}${shared_ext}'
15137  dynamic_linker="$host_os ld.so"
15138  shlibpath_var=LIBRARY_PATH
15139  ;;
15140
15141bsdi[45]*)
15142  version_type=linux
15143  need_version=no
15144  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15145  soname_spec='${libname}${release}${shared_ext}$major'
15146  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15147  shlibpath_var=LD_LIBRARY_PATH
15148  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15149  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15150  # the default ld.so.conf also contains /usr/contrib/lib and
15151  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15152  # libtool to hard-code these into programs
15153  ;;
15154
15155cygwin* | mingw* | pw32* | cegcc*)
15156  version_type=windows
15157  shrext_cmds=".dll"
15158  need_version=no
15159  need_lib_prefix=no
15160
15161  case $GCC,$host_os in
15162  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15163    library_names_spec='$libname.dll.a'
15164    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15165    postinstall_cmds='base_file=`basename \${file}`~
15166      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15167      dldir=$destdir/`dirname \$dlpath`~
15168      test -d \$dldir || mkdir -p \$dldir~
15169      $install_prog $dir/$dlname \$dldir/$dlname~
15170      chmod a+x \$dldir/$dlname~
15171      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15172        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15173      fi'
15174    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15175      dlpath=$dir/\$dldll~
15176       $RM \$dlpath'
15177    shlibpath_overrides_runpath=yes
15178
15179    case $host_os in
15180    cygwin*)
15181      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15182      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15183      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15184      ;;
15185    mingw* | cegcc*)
15186      # MinGW DLLs use traditional 'lib' prefix
15187      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15188      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15189      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15190        # It is most probably a Windows format PATH printed by
15191        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15192        # path with ; separators, and with drive letters. We can handle the
15193        # drive letters (cygwin fileutils understands them), so leave them,
15194        # especially as we might pass files found there to a mingw objdump,
15195        # which wouldn't understand a cygwinified path. Ahh.
15196        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15197      else
15198        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15199      fi
15200      ;;
15201    pw32*)
15202      # pw32 DLLs use 'pw' prefix rather than 'lib'
15203      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15204      ;;
15205    esac
15206    ;;
15207
15208  *)
15209    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15210    ;;
15211  esac
15212  dynamic_linker='Win32 ld.exe'
15213  # FIXME: first we should search . and the directory the executable is in
15214  shlibpath_var=PATH
15215  ;;
15216
15217darwin* | rhapsody*)
15218  dynamic_linker="$host_os dyld"
15219  version_type=darwin
15220  need_lib_prefix=no
15221  need_version=no
15222  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15223  soname_spec='${libname}${release}${major}$shared_ext'
15224  shlibpath_overrides_runpath=yes
15225  shlibpath_var=DYLD_LIBRARY_PATH
15226  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15227
15228  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15229  ;;
15230
15231dgux*)
15232  version_type=linux
15233  need_lib_prefix=no
15234  need_version=no
15235  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15236  soname_spec='${libname}${release}${shared_ext}$major'
15237  shlibpath_var=LD_LIBRARY_PATH
15238  ;;
15239
15240freebsd1*)
15241  dynamic_linker=no
15242  ;;
15243
15244freebsd* | dragonfly*)
15245  # DragonFly does not have aout.  When/if they implement a new
15246  # versioning mechanism, adjust this.
15247  if test -x /usr/bin/objformat; then
15248    objformat=`/usr/bin/objformat`
15249  else
15250    case $host_os in
15251    freebsd[123]*) objformat=aout ;;
15252    *) objformat=elf ;;
15253    esac
15254  fi
15255  version_type=freebsd-$objformat
15256  case $version_type in
15257    freebsd-elf*)
15258      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15259      need_version=no
15260      need_lib_prefix=no
15261      ;;
15262    freebsd-*)
15263      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15264      need_version=yes
15265      ;;
15266  esac
15267  shlibpath_var=LD_LIBRARY_PATH
15268  case $host_os in
15269  freebsd2*)
15270    shlibpath_overrides_runpath=yes
15271    ;;
15272  freebsd3.[01]* | freebsdelf3.[01]*)
15273    shlibpath_overrides_runpath=yes
15274    hardcode_into_libs=yes
15275    ;;
15276  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15277  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15278    shlibpath_overrides_runpath=no
15279    hardcode_into_libs=yes
15280    ;;
15281  *) # from 4.6 on, and DragonFly
15282    shlibpath_overrides_runpath=yes
15283    hardcode_into_libs=yes
15284    ;;
15285  esac
15286  ;;
15287
15288gnu*)
15289  version_type=linux
15290  need_lib_prefix=no
15291  need_version=no
15292  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15293  soname_spec='${libname}${release}${shared_ext}$major'
15294  shlibpath_var=LD_LIBRARY_PATH
15295  hardcode_into_libs=yes
15296  ;;
15297
15298hpux9* | hpux10* | hpux11*)
15299  # Give a soname corresponding to the major version so that dld.sl refuses to
15300  # link against other versions.
15301  version_type=sunos
15302  need_lib_prefix=no
15303  need_version=no
15304  case $host_cpu in
15305  ia64*)
15306    shrext_cmds='.so'
15307    hardcode_into_libs=yes
15308    dynamic_linker="$host_os dld.so"
15309    shlibpath_var=LD_LIBRARY_PATH
15310    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15311    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15312    soname_spec='${libname}${release}${shared_ext}$major'
15313    if test "X$HPUX_IA64_MODE" = X32; then
15314      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15315    else
15316      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15317    fi
15318    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15319    ;;
15320  hppa*64*)
15321    shrext_cmds='.sl'
15322    hardcode_into_libs=yes
15323    dynamic_linker="$host_os dld.sl"
15324    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15325    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15326    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15327    soname_spec='${libname}${release}${shared_ext}$major'
15328    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15329    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15330    ;;
15331  *)
15332    shrext_cmds='.sl'
15333    dynamic_linker="$host_os dld.sl"
15334    shlibpath_var=SHLIB_PATH
15335    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15336    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15337    soname_spec='${libname}${release}${shared_ext}$major'
15338    ;;
15339  esac
15340  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15341  postinstall_cmds='chmod 555 $lib'
15342  ;;
15343
15344interix[3-9]*)
15345  version_type=linux
15346  need_lib_prefix=no
15347  need_version=no
15348  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15349  soname_spec='${libname}${release}${shared_ext}$major'
15350  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15351  shlibpath_var=LD_LIBRARY_PATH
15352  shlibpath_overrides_runpath=no
15353  hardcode_into_libs=yes
15354  ;;
15355
15356irix5* | irix6* | nonstopux*)
15357  case $host_os in
15358    nonstopux*) version_type=nonstopux ;;
15359    *)
15360	if test "$lt_cv_prog_gnu_ld" = yes; then
15361		version_type=linux
15362	else
15363		version_type=irix
15364	fi ;;
15365  esac
15366  need_lib_prefix=no
15367  need_version=no
15368  soname_spec='${libname}${release}${shared_ext}$major'
15369  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15370  case $host_os in
15371  irix5* | nonstopux*)
15372    libsuff= shlibsuff=
15373    ;;
15374  *)
15375    case $LD in # libtool.m4 will add one of these switches to LD
15376    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15377      libsuff= shlibsuff= libmagic=32-bit;;
15378    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15379      libsuff=32 shlibsuff=N32 libmagic=N32;;
15380    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15381      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15382    *) libsuff= shlibsuff= libmagic=never-match;;
15383    esac
15384    ;;
15385  esac
15386  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15387  shlibpath_overrides_runpath=no
15388  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15389  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15390  hardcode_into_libs=yes
15391  ;;
15392
15393# No shared lib support for Linux oldld, aout, or coff.
15394linux*oldld* | linux*aout* | linux*coff*)
15395  dynamic_linker=no
15396  ;;
15397
15398# This must be Linux ELF.
15399linux* | k*bsd*-gnu | kopensolaris*-gnu)
15400  version_type=linux
15401  need_lib_prefix=no
15402  need_version=no
15403  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15404  soname_spec='${libname}${release}${shared_ext}$major'
15405  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15406  shlibpath_var=LD_LIBRARY_PATH
15407  shlibpath_overrides_runpath=no
15408  # Some binutils ld are patched to set DT_RUNPATH
15409  save_LDFLAGS=$LDFLAGS
15410  save_libdir=$libdir
15411  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15412       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15414/* end confdefs.h.  */
15415
15416int
15417main ()
15418{
15419
15420  ;
15421  return 0;
15422}
15423_ACEOF
15424if ac_fn_cxx_try_link "$LINENO"; then :
15425  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15426  shlibpath_overrides_runpath=yes
15427fi
15428fi
15429rm -f core conftest.err conftest.$ac_objext \
15430    conftest$ac_exeext conftest.$ac_ext
15431  LDFLAGS=$save_LDFLAGS
15432  libdir=$save_libdir
15433
15434  # This implies no fast_install, which is unacceptable.
15435  # Some rework will be needed to allow for fast_install
15436  # before this can be enabled.
15437  hardcode_into_libs=yes
15438
15439  # Append ld.so.conf contents to the search path
15440  if test -f /etc/ld.so.conf; then
15441    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' ' '`
15442    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15443  fi
15444
15445  # We used to test for /lib/ld.so.1 and disable shared libraries on
15446  # powerpc, because MkLinux only supported shared libraries with the
15447  # GNU dynamic linker.  Since this was broken with cross compilers,
15448  # most powerpc-linux boxes support dynamic linking these days and
15449  # people can always --disable-shared, the test was removed, and we
15450  # assume the GNU/Linux dynamic linker is in use.
15451  dynamic_linker='GNU/Linux ld.so'
15452  ;;
15453
15454netbsdelf*-gnu)
15455  version_type=linux
15456  need_lib_prefix=no
15457  need_version=no
15458  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15459  soname_spec='${libname}${release}${shared_ext}$major'
15460  shlibpath_var=LD_LIBRARY_PATH
15461  shlibpath_overrides_runpath=no
15462  hardcode_into_libs=yes
15463  dynamic_linker='NetBSD ld.elf_so'
15464  ;;
15465
15466netbsd*)
15467  version_type=sunos
15468  need_lib_prefix=no
15469  need_version=no
15470  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15471    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15472    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15473    dynamic_linker='NetBSD (a.out) ld.so'
15474  else
15475    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15476    soname_spec='${libname}${release}${shared_ext}$major'
15477    dynamic_linker='NetBSD ld.elf_so'
15478  fi
15479  shlibpath_var=LD_LIBRARY_PATH
15480  shlibpath_overrides_runpath=yes
15481  hardcode_into_libs=yes
15482  ;;
15483
15484newsos6)
15485  version_type=linux
15486  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15487  shlibpath_var=LD_LIBRARY_PATH
15488  shlibpath_overrides_runpath=yes
15489  ;;
15490
15491*nto* | *qnx*)
15492  version_type=qnx
15493  need_lib_prefix=no
15494  need_version=no
15495  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15496  soname_spec='${libname}${release}${shared_ext}$major'
15497  shlibpath_var=LD_LIBRARY_PATH
15498  shlibpath_overrides_runpath=no
15499  hardcode_into_libs=yes
15500  dynamic_linker='ldqnx.so'
15501  ;;
15502
15503openbsd*)
15504  version_type=sunos
15505  sys_lib_dlsearch_path_spec="/usr/lib"
15506  need_lib_prefix=no
15507  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15508  case $host_os in
15509    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
15510    *)				need_version=no  ;;
15511  esac
15512  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15513  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15514  shlibpath_var=LD_LIBRARY_PATH
15515  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15516    case $host_os in
15517      openbsd2.[89] | openbsd2.[89].*)
15518	shlibpath_overrides_runpath=no
15519	;;
15520      *)
15521	shlibpath_overrides_runpath=yes
15522	;;
15523      esac
15524  else
15525    shlibpath_overrides_runpath=yes
15526  fi
15527  ;;
15528
15529os2*)
15530  libname_spec='$name'
15531  shrext_cmds=".dll"
15532  need_lib_prefix=no
15533  library_names_spec='$libname${shared_ext} $libname.a'
15534  dynamic_linker='OS/2 ld.exe'
15535  shlibpath_var=LIBPATH
15536  ;;
15537
15538osf3* | osf4* | osf5*)
15539  version_type=osf
15540  need_lib_prefix=no
15541  need_version=no
15542  soname_spec='${libname}${release}${shared_ext}$major'
15543  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15544  shlibpath_var=LD_LIBRARY_PATH
15545  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15546  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15547  ;;
15548
15549rdos*)
15550  dynamic_linker=no
15551  ;;
15552
15553solaris*)
15554  version_type=linux
15555  need_lib_prefix=no
15556  need_version=no
15557  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15558  soname_spec='${libname}${release}${shared_ext}$major'
15559  shlibpath_var=LD_LIBRARY_PATH
15560  shlibpath_overrides_runpath=yes
15561  hardcode_into_libs=yes
15562  # ldd complains unless libraries are executable
15563  postinstall_cmds='chmod +x $lib'
15564  ;;
15565
15566sunos4*)
15567  version_type=sunos
15568  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15569  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15570  shlibpath_var=LD_LIBRARY_PATH
15571  shlibpath_overrides_runpath=yes
15572  if test "$with_gnu_ld" = yes; then
15573    need_lib_prefix=no
15574  fi
15575  need_version=yes
15576  ;;
15577
15578sysv4 | sysv4.3*)
15579  version_type=linux
15580  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15581  soname_spec='${libname}${release}${shared_ext}$major'
15582  shlibpath_var=LD_LIBRARY_PATH
15583  case $host_vendor in
15584    sni)
15585      shlibpath_overrides_runpath=no
15586      need_lib_prefix=no
15587      runpath_var=LD_RUN_PATH
15588      ;;
15589    siemens)
15590      need_lib_prefix=no
15591      ;;
15592    motorola)
15593      need_lib_prefix=no
15594      need_version=no
15595      shlibpath_overrides_runpath=no
15596      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15597      ;;
15598  esac
15599  ;;
15600
15601sysv4*MP*)
15602  if test -d /usr/nec ;then
15603    version_type=linux
15604    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15605    soname_spec='$libname${shared_ext}.$major'
15606    shlibpath_var=LD_LIBRARY_PATH
15607  fi
15608  ;;
15609
15610sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15611  version_type=freebsd-elf
15612  need_lib_prefix=no
15613  need_version=no
15614  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15615  soname_spec='${libname}${release}${shared_ext}$major'
15616  shlibpath_var=LD_LIBRARY_PATH
15617  shlibpath_overrides_runpath=yes
15618  hardcode_into_libs=yes
15619  if test "$with_gnu_ld" = yes; then
15620    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15621  else
15622    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15623    case $host_os in
15624      sco3.2v5*)
15625        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15626	;;
15627    esac
15628  fi
15629  sys_lib_dlsearch_path_spec='/usr/lib'
15630  ;;
15631
15632tpf*)
15633  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15634  version_type=linux
15635  need_lib_prefix=no
15636  need_version=no
15637  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15638  shlibpath_var=LD_LIBRARY_PATH
15639  shlibpath_overrides_runpath=no
15640  hardcode_into_libs=yes
15641  ;;
15642
15643uts4*)
15644  version_type=linux
15645  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15646  soname_spec='${libname}${release}${shared_ext}$major'
15647  shlibpath_var=LD_LIBRARY_PATH
15648  ;;
15649
15650*)
15651  dynamic_linker=no
15652  ;;
15653esac
15654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15655$as_echo "$dynamic_linker" >&6; }
15656test "$dynamic_linker" = no && can_build_shared=no
15657
15658variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15659if test "$GCC" = yes; then
15660  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15661fi
15662
15663if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15664  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15665fi
15666if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15667  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15668fi
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15706$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15707hardcode_action_CXX=
15708if test -n "$hardcode_libdir_flag_spec_CXX" ||
15709   test -n "$runpath_var_CXX" ||
15710   test "X$hardcode_automatic_CXX" = "Xyes" ; then
15711
15712  # We can hardcode non-existent directories.
15713  if test "$hardcode_direct_CXX" != no &&
15714     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15715     # have to relink, otherwise we might link with an installed library
15716     # when we should be linking with a yet-to-be-installed one
15717     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15718     test "$hardcode_minus_L_CXX" != no; then
15719    # Linking always hardcodes the temporary library directory.
15720    hardcode_action_CXX=relink
15721  else
15722    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15723    hardcode_action_CXX=immediate
15724  fi
15725else
15726  # We cannot hardcode anything, or else we can only hardcode existing
15727  # directories.
15728  hardcode_action_CXX=unsupported
15729fi
15730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15731$as_echo "$hardcode_action_CXX" >&6; }
15732
15733if test "$hardcode_action_CXX" = relink ||
15734   test "$inherit_rpath_CXX" = yes; then
15735  # Fast installation is not supported
15736  enable_fast_install=no
15737elif test "$shlibpath_overrides_runpath" = yes ||
15738     test "$enable_shared" = no; then
15739  # Fast installation is not necessary
15740  enable_fast_install=needless
15741fi
15742
15743
15744
15745
15746
15747
15748
15749  fi # test -n "$compiler"
15750
15751  CC=$lt_save_CC
15752  LDCXX=$LD
15753  LD=$lt_save_LD
15754  GCC=$lt_save_GCC
15755  with_gnu_ld=$lt_save_with_gnu_ld
15756  lt_cv_path_LDCXX=$lt_cv_path_LD
15757  lt_cv_path_LD=$lt_save_path_LD
15758  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15759  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15760fi # test "$_lt_caught_CXX_error" != yes
15761
15762ac_ext=c
15763ac_cpp='$CPP $CPPFLAGS'
15764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15766ac_compiler_gnu=$ac_cv_c_compiler_gnu
15767
15768
15769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15770$as_echo_n "checking for ANSI C header files... " >&6; }
15771if test "${ac_cv_header_stdc+set}" = set; then :
15772  $as_echo_n "(cached) " >&6
15773else
15774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15775/* end confdefs.h.  */
15776#include <stdlib.h>
15777#include <stdarg.h>
15778#include <string.h>
15779#include <float.h>
15780
15781int
15782main ()
15783{
15784
15785  ;
15786  return 0;
15787}
15788_ACEOF
15789if ac_fn_c_try_compile "$LINENO"; then :
15790  ac_cv_header_stdc=yes
15791else
15792  ac_cv_header_stdc=no
15793fi
15794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15795
15796if test $ac_cv_header_stdc = yes; then
15797  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15799/* end confdefs.h.  */
15800#include <string.h>
15801
15802_ACEOF
15803if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15804  $EGREP "memchr" >/dev/null 2>&1; then :
15805
15806else
15807  ac_cv_header_stdc=no
15808fi
15809rm -f conftest*
15810
15811fi
15812
15813if test $ac_cv_header_stdc = yes; then
15814  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15815  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15816/* end confdefs.h.  */
15817#include <stdlib.h>
15818
15819_ACEOF
15820if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15821  $EGREP "free" >/dev/null 2>&1; then :
15822
15823else
15824  ac_cv_header_stdc=no
15825fi
15826rm -f conftest*
15827
15828fi
15829
15830if test $ac_cv_header_stdc = yes; then
15831  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15832  if test "$cross_compiling" = yes; then :
15833  :
15834else
15835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15836/* end confdefs.h.  */
15837#include <ctype.h>
15838#include <stdlib.h>
15839#if ((' ' & 0x0FF) == 0x020)
15840# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15841# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15842#else
15843# define ISLOWER(c) \
15844		   (('a' <= (c) && (c) <= 'i') \
15845		     || ('j' <= (c) && (c) <= 'r') \
15846		     || ('s' <= (c) && (c) <= 'z'))
15847# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15848#endif
15849
15850#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15851int
15852main ()
15853{
15854  int i;
15855  for (i = 0; i < 256; i++)
15856    if (XOR (islower (i), ISLOWER (i))
15857	|| toupper (i) != TOUPPER (i))
15858      return 2;
15859  return 0;
15860}
15861_ACEOF
15862if ac_fn_c_try_run "$LINENO"; then :
15863
15864else
15865  ac_cv_header_stdc=no
15866fi
15867rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15868  conftest.$ac_objext conftest.beam conftest.$ac_ext
15869fi
15870
15871fi
15872fi
15873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15874$as_echo "$ac_cv_header_stdc" >&6; }
15875if test $ac_cv_header_stdc = yes; then
15876
15877$as_echo "#define STDC_HEADERS 1" >>confdefs.h
15878
15879fi
15880
15881
15882# Check whether --enable-experimental was given.
15883if test "${enable_experimental+set}" = set; then :
15884  enableval=$enable_experimental; EXPERIMENTAL=yes
15885
15886fi
15887
15888
15889
15890if test "$EXPERIMENTAL" == "yes"; then
15891
15892$as_echo "#define EXPERIMENTAL 1" >>confdefs.h
15893
15894fi
15895
15896if test -z "$LIBJPEG"; then
15897  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_decompress in -ljpeg" >&5
15898$as_echo_n "checking for jpeg_destroy_decompress in -ljpeg... " >&6; }
15899if test "${ac_cv_lib_jpeg_jpeg_destroy_decompress+set}" = set; then :
15900  $as_echo_n "(cached) " >&6
15901else
15902  ac_check_lib_save_LIBS=$LIBS
15903LIBS="-ljpeg  $LIBS"
15904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15905/* end confdefs.h.  */
15906
15907/* Override any GCC internal prototype to avoid an error.
15908   Use char because int might match the return type of a GCC
15909   builtin and then its argument prototype would still apply.  */
15910#ifdef __cplusplus
15911extern "C"
15912#endif
15913char jpeg_destroy_decompress ();
15914int
15915main ()
15916{
15917return jpeg_destroy_decompress ();
15918  ;
15919  return 0;
15920}
15921_ACEOF
15922if ac_fn_c_try_link "$LINENO"; then :
15923  ac_cv_lib_jpeg_jpeg_destroy_decompress=yes
15924else
15925  ac_cv_lib_jpeg_jpeg_destroy_decompress=no
15926fi
15927rm -f core conftest.err conftest.$ac_objext \
15928    conftest$ac_exeext conftest.$ac_ext
15929LIBS=$ac_check_lib_save_LIBS
15930fi
15931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_decompress" >&5
15932$as_echo "$ac_cv_lib_jpeg_jpeg_destroy_decompress" >&6; }
15933if test "x$ac_cv_lib_jpeg_jpeg_destroy_decompress" = x""yes; then :
15934  jpeg_ok=yes
15935else
15936  jpeg_ok=no
15937fi
15938
15939  if test "$jpeg_ok" = yes; then
15940    ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
15941if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
15942  jpeg_ok=yes
15943else
15944  jpeg_ok=no
15945fi
15946
15947
15948    if test "$jpeg_ok" = yes; then
15949      LIBJPEG='-ljpeg'
15950    else
15951      as_fn_error $? "*** JPEG header files not found." "$LINENO" 5
15952    fi
15953  else
15954    as_fn_error $? "*** Rawstudio requires libjpeg." "$LINENO" 5
15955  fi
15956fi
15957
15958
15959if test -z "$LIBTIFF"; then
15960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
15961$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
15962if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
15963  $as_echo_n "(cached) " >&6
15964else
15965  ac_check_lib_save_LIBS=$LIBS
15966LIBS="-ltiff  $LIBS"
15967cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15968/* end confdefs.h.  */
15969
15970/* Override any GCC internal prototype to avoid an error.
15971   Use char because int might match the return type of a GCC
15972   builtin and then its argument prototype would still apply.  */
15973#ifdef __cplusplus
15974extern "C"
15975#endif
15976char TIFFOpen ();
15977int
15978main ()
15979{
15980return TIFFOpen ();
15981  ;
15982  return 0;
15983}
15984_ACEOF
15985if ac_fn_c_try_link "$LINENO"; then :
15986  ac_cv_lib_tiff_TIFFOpen=yes
15987else
15988  ac_cv_lib_tiff_TIFFOpen=no
15989fi
15990rm -f core conftest.err conftest.$ac_objext \
15991    conftest$ac_exeext conftest.$ac_ext
15992LIBS=$ac_check_lib_save_LIBS
15993fi
15994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
15995$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
15996if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
15997  tiff_ok=yes
15998else
15999  tiff_ok=no
16000fi
16001
16002  if test "$tiff_ok" = yes; then
16003    ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
16004if test "x$ac_cv_header_tiffio_h" = x""yes; then :
16005  tiff_ok=yes
16006else
16007  tiff_ok=no
16008fi
16009
16010
16011    if test "$tiff_ok" = yes; then
16012      LIBTIFF='-ltiff'
16013    else
16014      as_fn_error $? "*** libtiff header files not found." "$LINENO" 5
16015    fi
16016  else
16017    as_fn_error $? "*** Rawstudio requires libtiff." "$LINENO" 5
16018  fi
16019fi
16020
16021
16022pkg_modules="gtk+-2.0 >= 2.8.0 libxml-2.0 >= 2.4 gconf-2.0 >= 2.0 lcms dbus-1 exiv2 fftw3f lensfun libcurl flickcurl sqlite3 gthread-2.0 libgphoto2 x11"
16023
16024
16025
16026
16027
16028
16029if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16030	if test -n "$ac_tool_prefix"; then
16031  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16032set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16034$as_echo_n "checking for $ac_word... " >&6; }
16035if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
16036  $as_echo_n "(cached) " >&6
16037else
16038  case $PKG_CONFIG in
16039  [\\/]* | ?:[\\/]*)
16040  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16041  ;;
16042  *)
16043  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16044for as_dir in $PATH
16045do
16046  IFS=$as_save_IFS
16047  test -z "$as_dir" && as_dir=.
16048    for ac_exec_ext in '' $ac_executable_extensions; do
16049  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16050    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16051    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16052    break 2
16053  fi
16054done
16055  done
16056IFS=$as_save_IFS
16057
16058  ;;
16059esac
16060fi
16061PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16062if test -n "$PKG_CONFIG"; then
16063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16064$as_echo "$PKG_CONFIG" >&6; }
16065else
16066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16067$as_echo "no" >&6; }
16068fi
16069
16070
16071fi
16072if test -z "$ac_cv_path_PKG_CONFIG"; then
16073  ac_pt_PKG_CONFIG=$PKG_CONFIG
16074  # Extract the first word of "pkg-config", so it can be a program name with args.
16075set dummy pkg-config; ac_word=$2
16076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16077$as_echo_n "checking for $ac_word... " >&6; }
16078if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
16079  $as_echo_n "(cached) " >&6
16080else
16081  case $ac_pt_PKG_CONFIG in
16082  [\\/]* | ?:[\\/]*)
16083  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16084  ;;
16085  *)
16086  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16087for as_dir in $PATH
16088do
16089  IFS=$as_save_IFS
16090  test -z "$as_dir" && as_dir=.
16091    for ac_exec_ext in '' $ac_executable_extensions; do
16092  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16093    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16094    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16095    break 2
16096  fi
16097done
16098  done
16099IFS=$as_save_IFS
16100
16101  ;;
16102esac
16103fi
16104ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16105if test -n "$ac_pt_PKG_CONFIG"; then
16106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16107$as_echo "$ac_pt_PKG_CONFIG" >&6; }
16108else
16109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16110$as_echo "no" >&6; }
16111fi
16112
16113  if test "x$ac_pt_PKG_CONFIG" = x; then
16114    PKG_CONFIG=""
16115  else
16116    case $cross_compiling:$ac_tool_warned in
16117yes:)
16118{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16119$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16120ac_tool_warned=yes ;;
16121esac
16122    PKG_CONFIG=$ac_pt_PKG_CONFIG
16123  fi
16124else
16125  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16126fi
16127
16128fi
16129if test -n "$PKG_CONFIG"; then
16130	_pkg_min_version=0.9.0
16131	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16132$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16133	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16134		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16135$as_echo "yes" >&6; }
16136	else
16137		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16138$as_echo "no" >&6; }
16139		PKG_CONFIG=""
16140	fi
16141fi
16142
16143pkg_failed=no
16144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PACKAGE" >&5
16145$as_echo_n "checking for PACKAGE... " >&6; }
16146
16147if test -n "$PACKAGE_CFLAGS"; then
16148    pkg_cv_PACKAGE_CFLAGS="$PACKAGE_CFLAGS"
16149 elif test -n "$PKG_CONFIG"; then
16150    if test -n "$PKG_CONFIG" && \
16151    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\""; } >&5
16152  ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5
16153  ac_status=$?
16154  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16155  test $ac_status = 0; }; then
16156  pkg_cv_PACKAGE_CFLAGS=`$PKG_CONFIG --cflags "$pkg_modules" 2>/dev/null`
16157else
16158  pkg_failed=yes
16159fi
16160 else
16161    pkg_failed=untried
16162fi
16163if test -n "$PACKAGE_LIBS"; then
16164    pkg_cv_PACKAGE_LIBS="$PACKAGE_LIBS"
16165 elif test -n "$PKG_CONFIG"; then
16166    if test -n "$PKG_CONFIG" && \
16167    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\""; } >&5
16168  ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5
16169  ac_status=$?
16170  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16171  test $ac_status = 0; }; then
16172  pkg_cv_PACKAGE_LIBS=`$PKG_CONFIG --libs "$pkg_modules" 2>/dev/null`
16173else
16174  pkg_failed=yes
16175fi
16176 else
16177    pkg_failed=untried
16178fi
16179
16180
16181
16182if test $pkg_failed = yes; then
16183   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16184$as_echo "no" >&6; }
16185
16186if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16187        _pkg_short_errors_supported=yes
16188else
16189        _pkg_short_errors_supported=no
16190fi
16191        if test $_pkg_short_errors_supported = yes; then
16192	        PACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$pkg_modules" 2>&1`
16193        else
16194	        PACKAGE_PKG_ERRORS=`$PKG_CONFIG --print-errors "$pkg_modules" 2>&1`
16195        fi
16196	# Put the nasty error message in config.log where it belongs
16197	echo "$PACKAGE_PKG_ERRORS" >&5
16198
16199	as_fn_error $? "Package requirements ($pkg_modules) were not met:
16200
16201$PACKAGE_PKG_ERRORS
16202
16203Consider adjusting the PKG_CONFIG_PATH environment variable if you
16204installed software in a non-standard prefix.
16205
16206Alternatively, you may set the environment variables PACKAGE_CFLAGS
16207and PACKAGE_LIBS to avoid the need to call pkg-config.
16208See the pkg-config man page for more details." "$LINENO" 5
16209elif test $pkg_failed = untried; then
16210     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16211$as_echo "no" >&6; }
16212	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16213$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16214as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
16215is in your PATH or set the PKG_CONFIG environment variable to the full
16216path to pkg-config.
16217
16218Alternatively, you may set the environment variables PACKAGE_CFLAGS
16219and PACKAGE_LIBS to avoid the need to call pkg-config.
16220See the pkg-config man page for more details.
16221
16222To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16223See \`config.log' for more details" "$LINENO" 5 ; }
16224else
16225	PACKAGE_CFLAGS=$pkg_cv_PACKAGE_CFLAGS
16226	PACKAGE_LIBS=$pkg_cv_PACKAGE_LIBS
16227        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16228$as_echo "yes" >&6; }
16229
16230fi
16231
16232
16233
16234GETTEXT_PACKAGE=rawstudio
16235
16236
16237cat >>confdefs.h <<_ACEOF
16238#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
16239_ACEOF
16240
16241
16242ALL_LINGUAS="cs da de en fr it nb pl ru fi es sv nl pt_BR ca hu ja"
16243
16244   for ac_header in locale.h
16245do :
16246  ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
16247if test "x$ac_cv_header_locale_h" = x""yes; then :
16248  cat >>confdefs.h <<_ACEOF
16249#define HAVE_LOCALE_H 1
16250_ACEOF
16251
16252fi
16253
16254done
16255
16256    if test $ac_cv_header_locale_h = yes; then
16257    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
16258$as_echo_n "checking for LC_MESSAGES... " >&6; }
16259if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
16260  $as_echo_n "(cached) " >&6
16261else
16262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16263/* end confdefs.h.  */
16264#include <locale.h>
16265int
16266main ()
16267{
16268return LC_MESSAGES
16269  ;
16270  return 0;
16271}
16272_ACEOF
16273if ac_fn_c_try_link "$LINENO"; then :
16274  am_cv_val_LC_MESSAGES=yes
16275else
16276  am_cv_val_LC_MESSAGES=no
16277fi
16278rm -f core conftest.err conftest.$ac_objext \
16279    conftest$ac_exeext conftest.$ac_ext
16280fi
16281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
16282$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
16283    if test $am_cv_val_LC_MESSAGES = yes; then
16284
16285$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
16286
16287    fi
16288  fi
16289     USE_NLS=yes
16290
16291
16292    gt_cv_have_gettext=no
16293
16294    CATOBJEXT=NONE
16295    XGETTEXT=:
16296    INTLLIBS=
16297
16298    ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
16299if test "x$ac_cv_header_libintl_h" = x""yes; then :
16300  gt_cv_func_dgettext_libintl="no"
16301      libintl_extra_libs=""
16302
16303      #
16304      # First check in libc
16305      #
16306      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
16307$as_echo_n "checking for ngettext in libc... " >&6; }
16308if test "${gt_cv_func_ngettext_libc+set}" = set; then :
16309  $as_echo_n "(cached) " >&6
16310else
16311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16312/* end confdefs.h.  */
16313
16314#include <libintl.h>
16315
16316int
16317main ()
16318{
16319return !ngettext ("","", 1)
16320  ;
16321  return 0;
16322}
16323_ACEOF
16324if ac_fn_c_try_link "$LINENO"; then :
16325  gt_cv_func_ngettext_libc=yes
16326else
16327  gt_cv_func_ngettext_libc=no
16328fi
16329rm -f core conftest.err conftest.$ac_objext \
16330    conftest$ac_exeext conftest.$ac_ext
16331
16332fi
16333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
16334$as_echo "$gt_cv_func_ngettext_libc" >&6; }
16335
16336      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
16337	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
16338$as_echo_n "checking for dgettext in libc... " >&6; }
16339if test "${gt_cv_func_dgettext_libc+set}" = set; then :
16340  $as_echo_n "(cached) " >&6
16341else
16342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16343/* end confdefs.h.  */
16344
16345#include <libintl.h>
16346
16347int
16348main ()
16349{
16350return !dgettext ("","")
16351  ;
16352  return 0;
16353}
16354_ACEOF
16355if ac_fn_c_try_link "$LINENO"; then :
16356  gt_cv_func_dgettext_libc=yes
16357else
16358  gt_cv_func_dgettext_libc=no
16359fi
16360rm -f core conftest.err conftest.$ac_objext \
16361    conftest$ac_exeext conftest.$ac_ext
16362
16363fi
16364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
16365$as_echo "$gt_cv_func_dgettext_libc" >&6; }
16366      fi
16367
16368      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
16369        for ac_func in bind_textdomain_codeset
16370do :
16371  ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
16372if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
16373  cat >>confdefs.h <<_ACEOF
16374#define HAVE_BIND_TEXTDOMAIN_CODESET 1
16375_ACEOF
16376
16377fi
16378done
16379
16380      fi
16381
16382      #
16383      # If we don't have everything we want, check in libintl
16384      #
16385      if test "$gt_cv_func_dgettext_libc" != "yes" \
16386	 || test "$gt_cv_func_ngettext_libc" != "yes" \
16387         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
16388
16389        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
16390$as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
16391if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then :
16392  $as_echo_n "(cached) " >&6
16393else
16394  ac_check_lib_save_LIBS=$LIBS
16395LIBS="-lintl  $LIBS"
16396cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16397/* end confdefs.h.  */
16398
16399/* Override any GCC internal prototype to avoid an error.
16400   Use char because int might match the return type of a GCC
16401   builtin and then its argument prototype would still apply.  */
16402#ifdef __cplusplus
16403extern "C"
16404#endif
16405char bindtextdomain ();
16406int
16407main ()
16408{
16409return bindtextdomain ();
16410  ;
16411  return 0;
16412}
16413_ACEOF
16414if ac_fn_c_try_link "$LINENO"; then :
16415  ac_cv_lib_intl_bindtextdomain=yes
16416else
16417  ac_cv_lib_intl_bindtextdomain=no
16418fi
16419rm -f core conftest.err conftest.$ac_objext \
16420    conftest$ac_exeext conftest.$ac_ext
16421LIBS=$ac_check_lib_save_LIBS
16422fi
16423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
16424$as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
16425if test "x$ac_cv_lib_intl_bindtextdomain" = x""yes; then :
16426  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
16427$as_echo_n "checking for ngettext in -lintl... " >&6; }
16428if test "${ac_cv_lib_intl_ngettext+set}" = set; then :
16429  $as_echo_n "(cached) " >&6
16430else
16431  ac_check_lib_save_LIBS=$LIBS
16432LIBS="-lintl  $LIBS"
16433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16434/* end confdefs.h.  */
16435
16436/* Override any GCC internal prototype to avoid an error.
16437   Use char because int might match the return type of a GCC
16438   builtin and then its argument prototype would still apply.  */
16439#ifdef __cplusplus
16440extern "C"
16441#endif
16442char ngettext ();
16443int
16444main ()
16445{
16446return ngettext ();
16447  ;
16448  return 0;
16449}
16450_ACEOF
16451if ac_fn_c_try_link "$LINENO"; then :
16452  ac_cv_lib_intl_ngettext=yes
16453else
16454  ac_cv_lib_intl_ngettext=no
16455fi
16456rm -f core conftest.err conftest.$ac_objext \
16457    conftest$ac_exeext conftest.$ac_ext
16458LIBS=$ac_check_lib_save_LIBS
16459fi
16460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
16461$as_echo "$ac_cv_lib_intl_ngettext" >&6; }
16462if test "x$ac_cv_lib_intl_ngettext" = x""yes; then :
16463  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
16464$as_echo_n "checking for dgettext in -lintl... " >&6; }
16465if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
16466  $as_echo_n "(cached) " >&6
16467else
16468  ac_check_lib_save_LIBS=$LIBS
16469LIBS="-lintl  $LIBS"
16470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16471/* end confdefs.h.  */
16472
16473/* Override any GCC internal prototype to avoid an error.
16474   Use char because int might match the return type of a GCC
16475   builtin and then its argument prototype would still apply.  */
16476#ifdef __cplusplus
16477extern "C"
16478#endif
16479char dgettext ();
16480int
16481main ()
16482{
16483return dgettext ();
16484  ;
16485  return 0;
16486}
16487_ACEOF
16488if ac_fn_c_try_link "$LINENO"; then :
16489  ac_cv_lib_intl_dgettext=yes
16490else
16491  ac_cv_lib_intl_dgettext=no
16492fi
16493rm -f core conftest.err conftest.$ac_objext \
16494    conftest$ac_exeext conftest.$ac_ext
16495LIBS=$ac_check_lib_save_LIBS
16496fi
16497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
16498$as_echo "$ac_cv_lib_intl_dgettext" >&6; }
16499if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
16500  gt_cv_func_dgettext_libintl=yes
16501fi
16502
16503fi
16504
16505fi
16506
16507
16508	if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
16509	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
16510$as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
16511	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
16512$as_echo "" >&6; }
16513  	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
16514$as_echo_n "checking for ngettext in -lintl... " >&6; }
16515if test "${ac_cv_lib_intl_ngettext+set}" = set; then :
16516  $as_echo_n "(cached) " >&6
16517else
16518  ac_check_lib_save_LIBS=$LIBS
16519LIBS="-lintl -liconv $LIBS"
16520cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16521/* end confdefs.h.  */
16522
16523/* Override any GCC internal prototype to avoid an error.
16524   Use char because int might match the return type of a GCC
16525   builtin and then its argument prototype would still apply.  */
16526#ifdef __cplusplus
16527extern "C"
16528#endif
16529char ngettext ();
16530int
16531main ()
16532{
16533return ngettext ();
16534  ;
16535  return 0;
16536}
16537_ACEOF
16538if ac_fn_c_try_link "$LINENO"; then :
16539  ac_cv_lib_intl_ngettext=yes
16540else
16541  ac_cv_lib_intl_ngettext=no
16542fi
16543rm -f core conftest.err conftest.$ac_objext \
16544    conftest$ac_exeext conftest.$ac_ext
16545LIBS=$ac_check_lib_save_LIBS
16546fi
16547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
16548$as_echo "$ac_cv_lib_intl_ngettext" >&6; }
16549if test "x$ac_cv_lib_intl_ngettext" = x""yes; then :
16550  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
16551$as_echo_n "checking for dcgettext in -lintl... " >&6; }
16552if test "${ac_cv_lib_intl_dcgettext+set}" = set; then :
16553  $as_echo_n "(cached) " >&6
16554else
16555  ac_check_lib_save_LIBS=$LIBS
16556LIBS="-lintl -liconv $LIBS"
16557cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16558/* end confdefs.h.  */
16559
16560/* Override any GCC internal prototype to avoid an error.
16561   Use char because int might match the return type of a GCC
16562   builtin and then its argument prototype would still apply.  */
16563#ifdef __cplusplus
16564extern "C"
16565#endif
16566char dcgettext ();
16567int
16568main ()
16569{
16570return dcgettext ();
16571  ;
16572  return 0;
16573}
16574_ACEOF
16575if ac_fn_c_try_link "$LINENO"; then :
16576  ac_cv_lib_intl_dcgettext=yes
16577else
16578  ac_cv_lib_intl_dcgettext=no
16579fi
16580rm -f core conftest.err conftest.$ac_objext \
16581    conftest$ac_exeext conftest.$ac_ext
16582LIBS=$ac_check_lib_save_LIBS
16583fi
16584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
16585$as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
16586if test "x$ac_cv_lib_intl_dcgettext" = x""yes; then :
16587  gt_cv_func_dgettext_libintl=yes
16588			libintl_extra_libs=-liconv
16589else
16590  :
16591fi
16592
16593else
16594  :
16595fi
16596
16597        fi
16598
16599        #
16600        # If we found libintl, then check in it for bind_textdomain_codeset();
16601        # we'll prefer libc if neither have bind_textdomain_codeset(),
16602        # and both have dgettext and ngettext
16603        #
16604        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
16605          glib_save_LIBS="$LIBS"
16606          LIBS="$LIBS -lintl $libintl_extra_libs"
16607          unset ac_cv_func_bind_textdomain_codeset
16608          for ac_func in bind_textdomain_codeset
16609do :
16610  ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
16611if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
16612  cat >>confdefs.h <<_ACEOF
16613#define HAVE_BIND_TEXTDOMAIN_CODESET 1
16614_ACEOF
16615
16616fi
16617done
16618
16619          LIBS="$glib_save_LIBS"
16620
16621          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
16622            gt_cv_func_dgettext_libc=no
16623          else
16624            if test "$gt_cv_func_dgettext_libc" = "yes" \
16625		&& test "$gt_cv_func_ngettext_libc" = "yes"; then
16626              gt_cv_func_dgettext_libintl=no
16627            fi
16628          fi
16629        fi
16630      fi
16631
16632      if test "$gt_cv_func_dgettext_libc" = "yes" \
16633	|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
16634        gt_cv_have_gettext=yes
16635      fi
16636
16637      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
16638        INTLLIBS="-lintl $libintl_extra_libs"
16639      fi
16640
16641      if test "$gt_cv_have_gettext" = "yes"; then
16642
16643$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
16644
16645	# Extract the first word of "msgfmt", so it can be a program name with args.
16646set dummy msgfmt; ac_word=$2
16647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16648$as_echo_n "checking for $ac_word... " >&6; }
16649if test "${ac_cv_path_MSGFMT+set}" = set; then :
16650  $as_echo_n "(cached) " >&6
16651else
16652  case "$MSGFMT" in
16653  /*)
16654  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16655  ;;
16656  *)
16657  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
16658  for ac_dir in $PATH; do
16659    test -z "$ac_dir" && ac_dir=.
16660    if test -f $ac_dir/$ac_word; then
16661      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
16662	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
16663	break
16664      fi
16665    fi
16666  done
16667  IFS="$ac_save_ifs"
16668  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
16669  ;;
16670esac
16671fi
16672MSGFMT="$ac_cv_path_MSGFMT"
16673if test "$MSGFMT" != "no"; then
16674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16675$as_echo "$MSGFMT" >&6; }
16676else
16677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16678$as_echo "no" >&6; }
16679fi
16680	if test "$MSGFMT" != "no"; then
16681          glib_save_LIBS="$LIBS"
16682          LIBS="$LIBS $INTLLIBS"
16683	  for ac_func in dcgettext
16684do :
16685  ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
16686if test "x$ac_cv_func_dcgettext" = x""yes; then :
16687  cat >>confdefs.h <<_ACEOF
16688#define HAVE_DCGETTEXT 1
16689_ACEOF
16690
16691fi
16692done
16693
16694	  MSGFMT_OPTS=
16695	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5
16696$as_echo_n "checking if msgfmt accepts -c... " >&6; }
16697	  cat >conftest.foo <<_ACEOF
16698
16699msgid ""
16700msgstr ""
16701"Content-Type: text/plain; charset=UTF-8\n"
16702"Project-Id-Version: test 1.0\n"
16703"PO-Revision-Date: 2007-02-15 12:01+0100\n"
16704"Last-Translator: test <foo@bar.xx>\n"
16705"Language-Team: C <LL@li.org>\n"
16706"MIME-Version: 1.0\n"
16707"Content-Transfer-Encoding: 8bit\n"
16708
16709_ACEOF
16710if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5
16711  ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
16712  ac_status=$?
16713  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16714  test $ac_status = 0; }; then
16715  MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16716$as_echo "yes" >&6; }
16717else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16718$as_echo "no" >&6; }
16719echo "$as_me: failed input was:" >&5
16720sed 's/^/| /' conftest.foo >&5
16721fi
16722
16723	  # Extract the first word of "gmsgfmt", so it can be a program name with args.
16724set dummy gmsgfmt; ac_word=$2
16725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16726$as_echo_n "checking for $ac_word... " >&6; }
16727if test "${ac_cv_path_GMSGFMT+set}" = set; then :
16728  $as_echo_n "(cached) " >&6
16729else
16730  case $GMSGFMT in
16731  [\\/]* | ?:[\\/]*)
16732  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16733  ;;
16734  *)
16735  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16736for as_dir in $PATH
16737do
16738  IFS=$as_save_IFS
16739  test -z "$as_dir" && as_dir=.
16740    for ac_exec_ext in '' $ac_executable_extensions; do
16741  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16742    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16743    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16744    break 2
16745  fi
16746done
16747  done
16748IFS=$as_save_IFS
16749
16750  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16751  ;;
16752esac
16753fi
16754GMSGFMT=$ac_cv_path_GMSGFMT
16755if test -n "$GMSGFMT"; then
16756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16757$as_echo "$GMSGFMT" >&6; }
16758else
16759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16760$as_echo "no" >&6; }
16761fi
16762
16763
16764	  # Extract the first word of "xgettext", so it can be a program name with args.
16765set dummy xgettext; ac_word=$2
16766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16767$as_echo_n "checking for $ac_word... " >&6; }
16768if test "${ac_cv_path_XGETTEXT+set}" = set; then :
16769  $as_echo_n "(cached) " >&6
16770else
16771  case "$XGETTEXT" in
16772  /*)
16773  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16774  ;;
16775  *)
16776  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
16777  for ac_dir in $PATH; do
16778    test -z "$ac_dir" && ac_dir=.
16779    if test -f $ac_dir/$ac_word; then
16780      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
16781	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
16782	break
16783      fi
16784    fi
16785  done
16786  IFS="$ac_save_ifs"
16787  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16788  ;;
16789esac
16790fi
16791XGETTEXT="$ac_cv_path_XGETTEXT"
16792if test "$XGETTEXT" != ":"; then
16793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16794$as_echo "$XGETTEXT" >&6; }
16795else
16796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16797$as_echo "no" >&6; }
16798fi
16799
16800	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16801/* end confdefs.h.  */
16802
16803int
16804main ()
16805{
16806extern int _nl_msg_cat_cntr;
16807			 return _nl_msg_cat_cntr
16808  ;
16809  return 0;
16810}
16811_ACEOF
16812if ac_fn_c_try_link "$LINENO"; then :
16813  CATOBJEXT=.gmo
16814             DATADIRNAME=share
16815else
16816  case $host in
16817	    *-*-solaris*)
16818	    	                	    	                ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
16819if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
16820  CATOBJEXT=.gmo
16821               DATADIRNAME=share
16822else
16823  CATOBJEXT=.mo
16824               DATADIRNAME=lib
16825fi
16826
16827	    ;;
16828	    *)
16829	    CATOBJEXT=.mo
16830            DATADIRNAME=lib
16831	    ;;
16832	    esac
16833fi
16834rm -f core conftest.err conftest.$ac_objext \
16835    conftest$ac_exeext conftest.$ac_ext
16836          LIBS="$glib_save_LIBS"
16837	  INSTOBJEXT=.mo
16838	else
16839	  gt_cv_have_gettext=no
16840	fi
16841      fi
16842
16843fi
16844
16845
16846
16847    if test "$gt_cv_have_gettext" = "yes" ; then
16848
16849$as_echo "#define ENABLE_NLS 1" >>confdefs.h
16850
16851    fi
16852
16853        if test "$XGETTEXT" != ":"; then
16854                  if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
16855        : ;
16856      else
16857        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16858$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16859        XGETTEXT=":"
16860      fi
16861    fi
16862
16863    # We need to process the po/ directory.
16864    POSUB=po
16865
16866    ac_config_commands="$ac_config_commands default-1"
16867
16868
16869                for lang in $ALL_LINGUAS; do
16870      GMOFILES="$GMOFILES $lang.gmo"
16871      POFILES="$POFILES $lang.po"
16872    done
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886   if test "$gt_cv_have_gettext" = "yes"; then
16887     if test "x$ALL_LINGUAS" = "x"; then
16888       LINGUAS=
16889     else
16890       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
16891$as_echo_n "checking for catalogs to be installed... " >&6; }
16892       NEW_LINGUAS=
16893       for presentlang in $ALL_LINGUAS; do
16894         useit=no
16895         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
16896           desiredlanguages="$LINGUAS"
16897         else
16898           desiredlanguages="$ALL_LINGUAS"
16899         fi
16900         for desiredlang in $desiredlanguages; do
16901 	   # Use the presentlang catalog if desiredlang is
16902           #   a. equal to presentlang, or
16903           #   b. a variant of presentlang (because in this case,
16904           #      presentlang can be used as a fallback for messages
16905           #      which are not translated in the desiredlang catalog).
16906           case "$desiredlang" in
16907             "$presentlang"*) useit=yes;;
16908           esac
16909         done
16910         if test $useit = yes; then
16911           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
16912         fi
16913       done
16914       LINGUAS=$NEW_LINGUAS
16915       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
16916$as_echo "$LINGUAS" >&6; }
16917     fi
16918
16919          if test -n "$LINGUAS"; then
16920       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
16921     fi
16922   fi
16923
16924            MKINSTALLDIRS=
16925   if test -n "$ac_aux_dir"; then
16926     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
16927   fi
16928   if test -z "$MKINSTALLDIRS"; then
16929     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16930   fi
16931
16932
16933         test -d po || mkdir po
16934   if test "x$srcdir" != "x."; then
16935     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
16936       posrcprefix="$srcdir/"
16937     else
16938       posrcprefix="../$srcdir/"
16939     fi
16940   else
16941     posrcprefix="../"
16942   fi
16943   rm -f po/POTFILES
16944   sed -e "/^#/d" -e "/^\$/d" -e "s,.*,	$posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
16945	< $srcdir/po/POTFILES.in > po/POTFILES
16946
16947for ac_func in memmem
16948do :
16949  ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
16950if test "x$ac_cv_func_memmem" = x""yes; then :
16951  cat >>confdefs.h <<_ACEOF
16952#define HAVE_MEMMEM 1
16953_ACEOF
16954
16955fi
16956done
16957
16958
16959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts \"-msse2\"" >&5
16960$as_echo_n "checking whether C compiler accepts \"-msse2\"... " >&6; }
16961ax_save_FLAGS=$CFLAGS
16962   CFLAGS=""-msse2""
16963   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16964/* end confdefs.h.  */
16965
16966int
16967main ()
16968{
16969
16970  ;
16971  return 0;
16972}
16973_ACEOF
16974if ac_fn_c_try_compile "$LINENO"; then :
16975  eval `$as_echo "ax_cv_c_flags_"-msse2"" | $as_tr_sh`=yes
16976else
16977  eval `$as_echo "ax_cv_c_flags_"-msse2"" | $as_tr_sh`=no
16978fi
16979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16980   CFLAGS=$ax_save_FLAGS
16981eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_"-msse2"" | $as_tr_sh`
16982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
16983$as_echo "$ax_check_compiler_flags" >&6; }
16984if test "x$ax_check_compiler_flags" = xyes; then
16985	_CAN_COMPILE_SSE2=yes
16986else
16987	_CAN_COMPILE_SSE2=no
16988fi
16989
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts \"-msse4.1\"" >&5
16991$as_echo_n "checking whether C compiler accepts \"-msse4.1\"... " >&6; }
16992ax_save_FLAGS=$CFLAGS
16993   CFLAGS=""-msse4.1""
16994   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16995/* end confdefs.h.  */
16996
16997int
16998main ()
16999{
17000
17001  ;
17002  return 0;
17003}
17004_ACEOF
17005if ac_fn_c_try_compile "$LINENO"; then :
17006  eval `$as_echo "ax_cv_c_flags_"-msse4.1"" | $as_tr_sh`=yes
17007else
17008  eval `$as_echo "ax_cv_c_flags_"-msse4.1"" | $as_tr_sh`=no
17009fi
17010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17011   CFLAGS=$ax_save_FLAGS
17012eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_"-msse4.1"" | $as_tr_sh`
17013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
17014$as_echo "$ax_check_compiler_flags" >&6; }
17015if test "x$ax_check_compiler_flags" = xyes; then
17016	_CAN_COMPILE_SSE4_1=yes
17017else
17018	_CAN_COMPILE_SSE4_1=no
17019fi
17020
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts \"-mavx\"" >&5
17022$as_echo_n "checking whether C compiler accepts \"-mavx\"... " >&6; }
17023ax_save_FLAGS=$CFLAGS
17024   CFLAGS=""-mavx""
17025   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17026/* end confdefs.h.  */
17027
17028int
17029main ()
17030{
17031
17032  ;
17033  return 0;
17034}
17035_ACEOF
17036if ac_fn_c_try_compile "$LINENO"; then :
17037  eval `$as_echo "ax_cv_c_flags_"-mavx"" | $as_tr_sh`=yes
17038else
17039  eval `$as_echo "ax_cv_c_flags_"-mavx"" | $as_tr_sh`=no
17040fi
17041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17042   CFLAGS=$ax_save_FLAGS
17043eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_"-mavx"" | $as_tr_sh`
17044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
17045$as_echo "$ax_check_compiler_flags" >&6; }
17046if test "x$ax_check_compiler_flags" = xyes; then
17047	_CAN_COMPILE_AVX=yes
17048else
17049	_CAN_COMPILE_AVX=no
17050fi
17051
17052
17053 if test "$_CAN_COMPILE_SSE4_1" = yes; then
17054  CAN_COMPILE_SSE4_1_TRUE=
17055  CAN_COMPILE_SSE4_1_FALSE='#'
17056else
17057  CAN_COMPILE_SSE4_1_TRUE='#'
17058  CAN_COMPILE_SSE4_1_FALSE=
17059fi
17060
17061 if test "$_CAN_COMPILE_SSE2" = yes; then
17062  CAN_COMPILE_SSE2_TRUE=
17063  CAN_COMPILE_SSE2_FALSE='#'
17064else
17065  CAN_COMPILE_SSE2_TRUE='#'
17066  CAN_COMPILE_SSE2_FALSE=
17067fi
17068
17069 if test "$_CAN_COMPILE_AVX" = yes; then
17070  CAN_COMPILE_AVX_TRUE=
17071  CAN_COMPILE_AVX_FALSE='#'
17072else
17073  CAN_COMPILE_AVX_TRUE='#'
17074  CAN_COMPILE_AVX_FALSE=
17075fi
17076
17077
17078
17079branchname()
17080{
17081	awk '
17082/^Repository Root:/ {
17083	root=$3;
17084}
17085
17086/^URL:/ {
17087	url=$2;
17088}
17089
17090END{
17091	sub(root, "", url);
17092	if (index(url, "/branches/") == 1) {
17093		branch = substr(url, 11);
17094		printf(" (branch %s)", branch);
17095	} else if (index(url, "/tags/") == 1) {
17096		tag = substr(url, 7);
17097		printf(" (tag %s)", tag);
17098	} else {
17099		printf(" (trunk)");
17100	}
17101}
17102'
17103}
17104
17105if test -f .version  ; then
17106  RAWSTUDIO_VERSION=$(cat .version)
17107else
17108  RAWSTUDIO_VERSION="${VERSION}"
17109fi
17110if test -d .svn && svn --version>/dev/null 2>&1 ; then
17111  RAWSTUDIO_SVNREV=$(LC_ALL=C svn info | awk '/^Revision:/ {printf("-svn%s",$2); }')
17112  RAWSTUDIO_BRANCH=$(LC_ALL=C svn info |branchname)
17113elif test -f .svninfo ; then
17114  RAWSTUDIO_SVNREV=$(awk '/^Revision:/ {printf("-snapshot%s",$2); }' .svninfo)
17115  RAWSTUDIO_BRANCH=$(cat .svninfo|branchname)
17116else
17117  RAWSTUDIO_SVNREV=""
17118  RAWSTUDIO_BRANCH=""
17119fi
17120
17121RAWSTUDIO_VERSION="${RAWSTUDIO_VERSION}${RAWSTUDIO_SVNREV}${RAWSTUDIO_BRANCH}"
17122
17123
17124cat >>confdefs.h <<_ACEOF
17125#define RAWSTUDIO_VERSION "$RAWSTUDIO_VERSION"
17126_ACEOF
17127
17128
17129if test -f .svninfo; then
17130  SVNINFO=".svninfo"
17131else
17132  SVNINFO=""
17133fi
17134
17135
17136ac_config_files="$ac_config_files Makefile librawstudio/Makefile librawstudio/rawstudio-2.0.pc plugins/Makefile plugins/cache/Makefile plugins/colorspace-adobergb/Makefile plugins/colorspace-prophoto/Makefile plugins/colorspace-srgb/Makefile plugins/colorspace-transform/Makefile plugins/crop/Makefile plugins/dcp/Makefile plugins/demosaic/Makefile plugins/denoise/Makefile plugins/exposure-mask/Makefile plugins/fuji-rotate/Makefile plugins/input-file/Makefile plugins/input-image16/Makefile plugins/lensfun/Makefile plugins/load-dcraw/Makefile plugins/load-gdk/Makefile plugins/load-rawspeed/Makefile plugins/meta-ciff/Makefile plugins/meta-exiv2/Makefile plugins/meta-mrw/Makefile plugins/meta-raf/Makefile plugins/meta-tiff/Makefile plugins/meta-x3f/Makefile plugins/output-jpegfile/Makefile plugins/output-pngfile/Makefile plugins/output-picasa/Makefile plugins/output-facebook/Makefile plugins/output-flickr/Makefile plugins/output-tifffile/Makefile plugins/resample/Makefile plugins/rotate/Makefile src/Makefile po/Makefile.in pixmaps/Makefile profiles/Makefile"
17137
17138cat >confcache <<\_ACEOF
17139# This file is a shell script that caches the results of configure
17140# tests run on this system so they can be shared between configure
17141# scripts and configure runs, see configure's option --config-cache.
17142# It is not useful on other systems.  If it contains results you don't
17143# want to keep, you may remove or edit it.
17144#
17145# config.status only pays attention to the cache file if you give it
17146# the --recheck option to rerun configure.
17147#
17148# `ac_cv_env_foo' variables (set or unset) will be overridden when
17149# loading this file, other *unset* `ac_cv_foo' will be assigned the
17150# following values.
17151
17152_ACEOF
17153
17154# The following way of writing the cache mishandles newlines in values,
17155# but we know of no workaround that is simple, portable, and efficient.
17156# So, we kill variables containing newlines.
17157# Ultrix sh set writes to stderr and can't be redirected directly,
17158# and sets the high bit in the cache file unless we assign to the vars.
17159(
17160  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17161    eval ac_val=\$$ac_var
17162    case $ac_val in #(
17163    *${as_nl}*)
17164      case $ac_var in #(
17165      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17166$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17167      esac
17168      case $ac_var in #(
17169      _ | IFS | as_nl) ;; #(
17170      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17171      *) { eval $ac_var=; unset $ac_var;} ;;
17172      esac ;;
17173    esac
17174  done
17175
17176  (set) 2>&1 |
17177    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17178    *${as_nl}ac_space=\ *)
17179      # `set' does not quote correctly, so add quotes: double-quote
17180      # substitution turns \\\\ into \\, and sed turns \\ into \.
17181      sed -n \
17182	"s/'/'\\\\''/g;
17183	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17184      ;; #(
17185    *)
17186      # `set' quotes correctly as required by POSIX, so do not add quotes.
17187      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17188      ;;
17189    esac |
17190    sort
17191) |
17192  sed '
17193     /^ac_cv_env_/b end
17194     t clear
17195     :clear
17196     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17197     t end
17198     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17199     :end' >>confcache
17200if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17201  if test -w "$cache_file"; then
17202    test "x$cache_file" != "x/dev/null" &&
17203      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17204$as_echo "$as_me: updating cache $cache_file" >&6;}
17205    cat confcache >$cache_file
17206  else
17207    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17208$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17209  fi
17210fi
17211rm -f confcache
17212
17213test "x$prefix" = xNONE && prefix=$ac_default_prefix
17214# Let make expand exec_prefix.
17215test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17216
17217DEFS=-DHAVE_CONFIG_H
17218
17219ac_libobjs=
17220ac_ltlibobjs=
17221U=
17222for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17223  # 1. Remove the extension, and $U if already installed.
17224  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17225  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17226  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17227  #    will be set to the directory where LIBOBJS objects are built.
17228  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17229  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17230done
17231LIBOBJS=$ac_libobjs
17232
17233LTLIBOBJS=$ac_ltlibobjs
17234
17235
17236 if test -n "$EXEEXT"; then
17237  am__EXEEXT_TRUE=
17238  am__EXEEXT_FALSE='#'
17239else
17240  am__EXEEXT_TRUE='#'
17241  am__EXEEXT_FALSE=
17242fi
17243
17244if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17245  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17246Usually this means the macro was only invoked conditionally." "$LINENO" 5
17247fi
17248if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17249  as_fn_error $? "conditional \"AMDEP\" was never defined.
17250Usually this means the macro was only invoked conditionally." "$LINENO" 5
17251fi
17252if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17253  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17254Usually this means the macro was only invoked conditionally." "$LINENO" 5
17255fi
17256if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17257  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17258Usually this means the macro was only invoked conditionally." "$LINENO" 5
17259fi
17260if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17261  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17262Usually this means the macro was only invoked conditionally." "$LINENO" 5
17263fi
17264if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17265  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17266Usually this means the macro was only invoked conditionally." "$LINENO" 5
17267fi
17268if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17269  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17270Usually this means the macro was only invoked conditionally." "$LINENO" 5
17271fi
17272if test -z "${CAN_COMPILE_SSE4_1_TRUE}" && test -z "${CAN_COMPILE_SSE4_1_FALSE}"; then
17273  as_fn_error $? "conditional \"CAN_COMPILE_SSE4_1\" was never defined.
17274Usually this means the macro was only invoked conditionally." "$LINENO" 5
17275fi
17276if test -z "${CAN_COMPILE_SSE2_TRUE}" && test -z "${CAN_COMPILE_SSE2_FALSE}"; then
17277  as_fn_error $? "conditional \"CAN_COMPILE_SSE2\" was never defined.
17278Usually this means the macro was only invoked conditionally." "$LINENO" 5
17279fi
17280if test -z "${CAN_COMPILE_AVX_TRUE}" && test -z "${CAN_COMPILE_AVX_FALSE}"; then
17281  as_fn_error $? "conditional \"CAN_COMPILE_AVX\" was never defined.
17282Usually this means the macro was only invoked conditionally." "$LINENO" 5
17283fi
17284
17285: ${CONFIG_STATUS=./config.status}
17286ac_write_fail=0
17287ac_clean_files_save=$ac_clean_files
17288ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17289{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17290$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17291as_write_fail=0
17292cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17293#! $SHELL
17294# Generated by $as_me.
17295# Run this file to recreate the current configuration.
17296# Compiler output produced by configure, useful for debugging
17297# configure, is in config.log if it exists.
17298
17299debug=false
17300ac_cs_recheck=false
17301ac_cs_silent=false
17302
17303SHELL=\${CONFIG_SHELL-$SHELL}
17304export SHELL
17305_ASEOF
17306cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17307## -------------------- ##
17308## M4sh Initialization. ##
17309## -------------------- ##
17310
17311# Be more Bourne compatible
17312DUALCASE=1; export DUALCASE # for MKS sh
17313if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17314  emulate sh
17315  NULLCMD=:
17316  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17317  # is contrary to our usage.  Disable this feature.
17318  alias -g '${1+"$@"}'='"$@"'
17319  setopt NO_GLOB_SUBST
17320else
17321  case `(set -o) 2>/dev/null` in #(
17322  *posix*) :
17323    set -o posix ;; #(
17324  *) :
17325     ;;
17326esac
17327fi
17328
17329
17330as_nl='
17331'
17332export as_nl
17333# Printing a long string crashes Solaris 7 /usr/bin/printf.
17334as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17335as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17336as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17337# Prefer a ksh shell builtin over an external printf program on Solaris,
17338# but without wasting forks for bash or zsh.
17339if test -z "$BASH_VERSION$ZSH_VERSION" \
17340    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17341  as_echo='print -r --'
17342  as_echo_n='print -rn --'
17343elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17344  as_echo='printf %s\n'
17345  as_echo_n='printf %s'
17346else
17347  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17348    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17349    as_echo_n='/usr/ucb/echo -n'
17350  else
17351    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17352    as_echo_n_body='eval
17353      arg=$1;
17354      case $arg in #(
17355      *"$as_nl"*)
17356	expr "X$arg" : "X\\(.*\\)$as_nl";
17357	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17358      esac;
17359      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17360    '
17361    export as_echo_n_body
17362    as_echo_n='sh -c $as_echo_n_body as_echo'
17363  fi
17364  export as_echo_body
17365  as_echo='sh -c $as_echo_body as_echo'
17366fi
17367
17368# The user is always right.
17369if test "${PATH_SEPARATOR+set}" != set; then
17370  PATH_SEPARATOR=:
17371  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17372    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17373      PATH_SEPARATOR=';'
17374  }
17375fi
17376
17377
17378# IFS
17379# We need space, tab and new line, in precisely that order.  Quoting is
17380# there to prevent editors from complaining about space-tab.
17381# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17382# splitting by setting IFS to empty value.)
17383IFS=" ""	$as_nl"
17384
17385# Find who we are.  Look in the path if we contain no directory separator.
17386case $0 in #((
17387  *[\\/]* ) as_myself=$0 ;;
17388  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17389for as_dir in $PATH
17390do
17391  IFS=$as_save_IFS
17392  test -z "$as_dir" && as_dir=.
17393    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17394  done
17395IFS=$as_save_IFS
17396
17397     ;;
17398esac
17399# We did not find ourselves, most probably we were run as `sh COMMAND'
17400# in which case we are not to be found in the path.
17401if test "x$as_myself" = x; then
17402  as_myself=$0
17403fi
17404if test ! -f "$as_myself"; then
17405  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17406  exit 1
17407fi
17408
17409# Unset variables that we do not need and which cause bugs (e.g. in
17410# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17411# suppresses any "Segmentation fault" message there.  '((' could
17412# trigger a bug in pdksh 5.2.14.
17413for as_var in BASH_ENV ENV MAIL MAILPATH
17414do eval test x\${$as_var+set} = xset \
17415  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17416done
17417PS1='$ '
17418PS2='> '
17419PS4='+ '
17420
17421# NLS nuisances.
17422LC_ALL=C
17423export LC_ALL
17424LANGUAGE=C
17425export LANGUAGE
17426
17427# CDPATH.
17428(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17429
17430
17431# as_fn_error STATUS ERROR [LINENO LOG_FD]
17432# ----------------------------------------
17433# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17434# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17435# script with STATUS, using 1 if that was 0.
17436as_fn_error ()
17437{
17438  as_status=$1; test $as_status -eq 0 && as_status=1
17439  if test "$4"; then
17440    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17441    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17442  fi
17443  $as_echo "$as_me: error: $2" >&2
17444  as_fn_exit $as_status
17445} # as_fn_error
17446
17447
17448# as_fn_set_status STATUS
17449# -----------------------
17450# Set $? to STATUS, without forking.
17451as_fn_set_status ()
17452{
17453  return $1
17454} # as_fn_set_status
17455
17456# as_fn_exit STATUS
17457# -----------------
17458# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17459as_fn_exit ()
17460{
17461  set +e
17462  as_fn_set_status $1
17463  exit $1
17464} # as_fn_exit
17465
17466# as_fn_unset VAR
17467# ---------------
17468# Portably unset VAR.
17469as_fn_unset ()
17470{
17471  { eval $1=; unset $1;}
17472}
17473as_unset=as_fn_unset
17474# as_fn_append VAR VALUE
17475# ----------------------
17476# Append the text in VALUE to the end of the definition contained in VAR. Take
17477# advantage of any shell optimizations that allow amortized linear growth over
17478# repeated appends, instead of the typical quadratic growth present in naive
17479# implementations.
17480if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17481  eval 'as_fn_append ()
17482  {
17483    eval $1+=\$2
17484  }'
17485else
17486  as_fn_append ()
17487  {
17488    eval $1=\$$1\$2
17489  }
17490fi # as_fn_append
17491
17492# as_fn_arith ARG...
17493# ------------------
17494# Perform arithmetic evaluation on the ARGs, and store the result in the
17495# global $as_val. Take advantage of shells that can avoid forks. The arguments
17496# must be portable across $(()) and expr.
17497if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17498  eval 'as_fn_arith ()
17499  {
17500    as_val=$(( $* ))
17501  }'
17502else
17503  as_fn_arith ()
17504  {
17505    as_val=`expr "$@" || test $? -eq 1`
17506  }
17507fi # as_fn_arith
17508
17509
17510if expr a : '\(a\)' >/dev/null 2>&1 &&
17511   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17512  as_expr=expr
17513else
17514  as_expr=false
17515fi
17516
17517if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17518  as_basename=basename
17519else
17520  as_basename=false
17521fi
17522
17523if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17524  as_dirname=dirname
17525else
17526  as_dirname=false
17527fi
17528
17529as_me=`$as_basename -- "$0" ||
17530$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17531	 X"$0" : 'X\(//\)$' \| \
17532	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17533$as_echo X/"$0" |
17534    sed '/^.*\/\([^/][^/]*\)\/*$/{
17535	    s//\1/
17536	    q
17537	  }
17538	  /^X\/\(\/\/\)$/{
17539	    s//\1/
17540	    q
17541	  }
17542	  /^X\/\(\/\).*/{
17543	    s//\1/
17544	    q
17545	  }
17546	  s/.*/./; q'`
17547
17548# Avoid depending upon Character Ranges.
17549as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17550as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17551as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17552as_cr_digits='0123456789'
17553as_cr_alnum=$as_cr_Letters$as_cr_digits
17554
17555ECHO_C= ECHO_N= ECHO_T=
17556case `echo -n x` in #(((((
17557-n*)
17558  case `echo 'xy\c'` in
17559  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17560  xy)  ECHO_C='\c';;
17561  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17562       ECHO_T='	';;
17563  esac;;
17564*)
17565  ECHO_N='-n';;
17566esac
17567
17568rm -f conf$$ conf$$.exe conf$$.file
17569if test -d conf$$.dir; then
17570  rm -f conf$$.dir/conf$$.file
17571else
17572  rm -f conf$$.dir
17573  mkdir conf$$.dir 2>/dev/null
17574fi
17575if (echo >conf$$.file) 2>/dev/null; then
17576  if ln -s conf$$.file conf$$ 2>/dev/null; then
17577    as_ln_s='ln -s'
17578    # ... but there are two gotchas:
17579    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17580    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17581    # In both cases, we have to default to `cp -p'.
17582    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17583      as_ln_s='cp -p'
17584  elif ln conf$$.file conf$$ 2>/dev/null; then
17585    as_ln_s=ln
17586  else
17587    as_ln_s='cp -p'
17588  fi
17589else
17590  as_ln_s='cp -p'
17591fi
17592rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17593rmdir conf$$.dir 2>/dev/null
17594
17595
17596# as_fn_mkdir_p
17597# -------------
17598# Create "$as_dir" as a directory, including parents if necessary.
17599as_fn_mkdir_p ()
17600{
17601
17602  case $as_dir in #(
17603  -*) as_dir=./$as_dir;;
17604  esac
17605  test -d "$as_dir" || eval $as_mkdir_p || {
17606    as_dirs=
17607    while :; do
17608      case $as_dir in #(
17609      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17610      *) as_qdir=$as_dir;;
17611      esac
17612      as_dirs="'$as_qdir' $as_dirs"
17613      as_dir=`$as_dirname -- "$as_dir" ||
17614$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17615	 X"$as_dir" : 'X\(//\)[^/]' \| \
17616	 X"$as_dir" : 'X\(//\)$' \| \
17617	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17618$as_echo X"$as_dir" |
17619    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17620	    s//\1/
17621	    q
17622	  }
17623	  /^X\(\/\/\)[^/].*/{
17624	    s//\1/
17625	    q
17626	  }
17627	  /^X\(\/\/\)$/{
17628	    s//\1/
17629	    q
17630	  }
17631	  /^X\(\/\).*/{
17632	    s//\1/
17633	    q
17634	  }
17635	  s/.*/./; q'`
17636      test -d "$as_dir" && break
17637    done
17638    test -z "$as_dirs" || eval "mkdir $as_dirs"
17639  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17640
17641
17642} # as_fn_mkdir_p
17643if mkdir -p . 2>/dev/null; then
17644  as_mkdir_p='mkdir -p "$as_dir"'
17645else
17646  test -d ./-p && rmdir ./-p
17647  as_mkdir_p=false
17648fi
17649
17650if test -x / >/dev/null 2>&1; then
17651  as_test_x='test -x'
17652else
17653  if ls -dL / >/dev/null 2>&1; then
17654    as_ls_L_option=L
17655  else
17656    as_ls_L_option=
17657  fi
17658  as_test_x='
17659    eval sh -c '\''
17660      if test -d "$1"; then
17661	test -d "$1/.";
17662      else
17663	case $1 in #(
17664	-*)set "./$1";;
17665	esac;
17666	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17667	???[sx]*):;;*)false;;esac;fi
17668    '\'' sh
17669  '
17670fi
17671as_executable_p=$as_test_x
17672
17673# Sed expression to map a string onto a valid CPP name.
17674as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17675
17676# Sed expression to map a string onto a valid variable name.
17677as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17678
17679
17680exec 6>&1
17681## ----------------------------------- ##
17682## Main body of $CONFIG_STATUS script. ##
17683## ----------------------------------- ##
17684_ASEOF
17685test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17686
17687cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17688# Save the log message, to keep $0 and so on meaningful, and to
17689# report actual input values of CONFIG_FILES etc. instead of their
17690# values after options handling.
17691ac_log="
17692This file was extended by $as_me, which was
17693generated by GNU Autoconf 2.67.  Invocation command line was
17694
17695  CONFIG_FILES    = $CONFIG_FILES
17696  CONFIG_HEADERS  = $CONFIG_HEADERS
17697  CONFIG_LINKS    = $CONFIG_LINKS
17698  CONFIG_COMMANDS = $CONFIG_COMMANDS
17699  $ $0 $@
17700
17701on `(hostname || uname -n) 2>/dev/null | sed 1q`
17702"
17703
17704_ACEOF
17705
17706case $ac_config_files in *"
17707"*) set x $ac_config_files; shift; ac_config_files=$*;;
17708esac
17709
17710case $ac_config_headers in *"
17711"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17712esac
17713
17714
17715cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17716# Files that config.status was made for.
17717config_files="$ac_config_files"
17718config_headers="$ac_config_headers"
17719config_commands="$ac_config_commands"
17720
17721_ACEOF
17722
17723cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17724ac_cs_usage="\
17725\`$as_me' instantiates files and other configuration actions
17726from templates according to the current configuration.  Unless the files
17727and actions are specified as TAGs, all are instantiated by default.
17728
17729Usage: $0 [OPTION]... [TAG]...
17730
17731  -h, --help       print this help, then exit
17732  -V, --version    print version number and configuration settings, then exit
17733      --config     print configuration, then exit
17734  -q, --quiet, --silent
17735                   do not print progress messages
17736  -d, --debug      don't remove temporary files
17737      --recheck    update $as_me by reconfiguring in the same conditions
17738      --file=FILE[:TEMPLATE]
17739                   instantiate the configuration file FILE
17740      --header=FILE[:TEMPLATE]
17741                   instantiate the configuration header FILE
17742
17743Configuration files:
17744$config_files
17745
17746Configuration headers:
17747$config_headers
17748
17749Configuration commands:
17750$config_commands
17751
17752Report bugs to the package provider."
17753
17754_ACEOF
17755cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17756ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17757ac_cs_version="\\
17758config.status
17759configured by $0, generated by GNU Autoconf 2.67,
17760  with options \\"\$ac_cs_config\\"
17761
17762Copyright (C) 2010 Free Software Foundation, Inc.
17763This config.status script is free software; the Free Software Foundation
17764gives unlimited permission to copy, distribute and modify it."
17765
17766ac_pwd='$ac_pwd'
17767srcdir='$srcdir'
17768INSTALL='$INSTALL'
17769MKDIR_P='$MKDIR_P'
17770AWK='$AWK'
17771test -n "\$AWK" || AWK=awk
17772_ACEOF
17773
17774cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17775# The default lists apply if the user does not specify any file.
17776ac_need_defaults=:
17777while test $# != 0
17778do
17779  case $1 in
17780  --*=?*)
17781    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17782    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17783    ac_shift=:
17784    ;;
17785  --*=)
17786    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17787    ac_optarg=
17788    ac_shift=:
17789    ;;
17790  *)
17791    ac_option=$1
17792    ac_optarg=$2
17793    ac_shift=shift
17794    ;;
17795  esac
17796
17797  case $ac_option in
17798  # Handling of the options.
17799  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17800    ac_cs_recheck=: ;;
17801  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17802    $as_echo "$ac_cs_version"; exit ;;
17803  --config | --confi | --conf | --con | --co | --c )
17804    $as_echo "$ac_cs_config"; exit ;;
17805  --debug | --debu | --deb | --de | --d | -d )
17806    debug=: ;;
17807  --file | --fil | --fi | --f )
17808    $ac_shift
17809    case $ac_optarg in
17810    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17811    '') as_fn_error $? "missing file argument" ;;
17812    esac
17813    as_fn_append CONFIG_FILES " '$ac_optarg'"
17814    ac_need_defaults=false;;
17815  --header | --heade | --head | --hea )
17816    $ac_shift
17817    case $ac_optarg in
17818    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17819    esac
17820    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17821    ac_need_defaults=false;;
17822  --he | --h)
17823    # Conflict between --help and --header
17824    as_fn_error $? "ambiguous option: \`$1'
17825Try \`$0 --help' for more information.";;
17826  --help | --hel | -h )
17827    $as_echo "$ac_cs_usage"; exit ;;
17828  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17829  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17830    ac_cs_silent=: ;;
17831
17832  # This is an error.
17833  -*) as_fn_error $? "unrecognized option: \`$1'
17834Try \`$0 --help' for more information." ;;
17835
17836  *) as_fn_append ac_config_targets " $1"
17837     ac_need_defaults=false ;;
17838
17839  esac
17840  shift
17841done
17842
17843ac_configure_extra_args=
17844
17845if $ac_cs_silent; then
17846  exec 6>/dev/null
17847  ac_configure_extra_args="$ac_configure_extra_args --silent"
17848fi
17849
17850_ACEOF
17851cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17852if \$ac_cs_recheck; then
17853  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17854  shift
17855  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17856  CONFIG_SHELL='$SHELL'
17857  export CONFIG_SHELL
17858  exec "\$@"
17859fi
17860
17861_ACEOF
17862cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17863exec 5>>config.log
17864{
17865  echo
17866  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17867## Running $as_me. ##
17868_ASBOX
17869  $as_echo "$ac_log"
17870} >&5
17871
17872_ACEOF
17873cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17874#
17875# INIT-COMMANDS
17876#
17877AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17878
17879
17880# The HP-UX ksh and POSIX shell print the target directory to stdout
17881# if CDPATH is set.
17882(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17883
17884sed_quote_subst='$sed_quote_subst'
17885double_quote_subst='$double_quote_subst'
17886delay_variable_subst='$delay_variable_subst'
17887macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17888macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17889enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17890enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17891pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17892enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17893host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17894host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17895host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17896build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17897build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17898build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17899SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17900Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17901GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17902EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17903FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17904LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17905NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17906LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17907max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17908ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17909exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17910lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17911lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17912lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17913reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17914reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17915OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17916deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17917file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17918AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17919AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17920STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17921RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17922old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17923old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17924old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17925CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17926CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17927compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17928GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17929lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17930lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17931lt_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"`'
17932lt_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"`'
17933objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17934SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17935ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17936MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17937lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17938lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17939lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17940lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17941lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17942need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17943DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17944NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17945LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17946OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17947OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17948libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17949shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17950extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17951archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17952enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17953export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17954whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17955compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17956old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17957old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17958archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17959archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17960module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17961module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17962with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17963allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17964no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17965hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17966hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17967hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17968hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17969hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17970hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17971hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17972hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17973inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17974link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17975fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17976always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17977export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17978exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17979include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17980prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17981file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17982variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17983need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17984need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17985version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17986runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17987shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17988shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17989libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17990library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17991soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17992postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17993postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17994finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17995finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17996hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17997sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17998sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17999hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
18000enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
18001enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
18002enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
18003old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
18004striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
18005compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
18006predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
18007postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
18008predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
18009postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
18010compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
18011LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18012old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18013compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18014GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18015lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18016lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18017lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18018lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18019lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18020archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18021enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18022export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18023whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18024compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18025old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18026old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18027archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18028archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18029module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18030module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18031with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18032allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18033no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18034hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18035hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18036hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18037hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18038hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18039hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18040hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18041hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18042inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18043link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18044fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18045always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18046export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18047exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18048include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18049prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18050file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18051hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18052compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18053predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18054postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18055predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18056postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18057compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18058
18059LTCC='$LTCC'
18060LTCFLAGS='$LTCFLAGS'
18061compiler='$compiler_DEFAULT'
18062
18063# Quote evaled strings.
18064for var in SED \
18065GREP \
18066EGREP \
18067FGREP \
18068LD \
18069NM \
18070LN_S \
18071lt_SP2NL \
18072lt_NL2SP \
18073reload_flag \
18074OBJDUMP \
18075deplibs_check_method \
18076file_magic_cmd \
18077AR \
18078AR_FLAGS \
18079STRIP \
18080RANLIB \
18081CC \
18082CFLAGS \
18083compiler \
18084lt_cv_sys_global_symbol_pipe \
18085lt_cv_sys_global_symbol_to_cdecl \
18086lt_cv_sys_global_symbol_to_c_name_address \
18087lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18088SHELL \
18089ECHO \
18090lt_prog_compiler_no_builtin_flag \
18091lt_prog_compiler_wl \
18092lt_prog_compiler_pic \
18093lt_prog_compiler_static \
18094lt_cv_prog_compiler_c_o \
18095need_locks \
18096DSYMUTIL \
18097NMEDIT \
18098LIPO \
18099OTOOL \
18100OTOOL64 \
18101shrext_cmds \
18102export_dynamic_flag_spec \
18103whole_archive_flag_spec \
18104compiler_needs_object \
18105with_gnu_ld \
18106allow_undefined_flag \
18107no_undefined_flag \
18108hardcode_libdir_flag_spec \
18109hardcode_libdir_flag_spec_ld \
18110hardcode_libdir_separator \
18111fix_srcfile_path \
18112exclude_expsyms \
18113include_expsyms \
18114file_list_spec \
18115variables_saved_for_relink \
18116libname_spec \
18117library_names_spec \
18118soname_spec \
18119finish_eval \
18120old_striplib \
18121striplib \
18122compiler_lib_search_dirs \
18123predep_objects \
18124postdep_objects \
18125predeps \
18126postdeps \
18127compiler_lib_search_path \
18128LD_CXX \
18129compiler_CXX \
18130lt_prog_compiler_no_builtin_flag_CXX \
18131lt_prog_compiler_wl_CXX \
18132lt_prog_compiler_pic_CXX \
18133lt_prog_compiler_static_CXX \
18134lt_cv_prog_compiler_c_o_CXX \
18135export_dynamic_flag_spec_CXX \
18136whole_archive_flag_spec_CXX \
18137compiler_needs_object_CXX \
18138with_gnu_ld_CXX \
18139allow_undefined_flag_CXX \
18140no_undefined_flag_CXX \
18141hardcode_libdir_flag_spec_CXX \
18142hardcode_libdir_flag_spec_ld_CXX \
18143hardcode_libdir_separator_CXX \
18144fix_srcfile_path_CXX \
18145exclude_expsyms_CXX \
18146include_expsyms_CXX \
18147file_list_spec_CXX \
18148compiler_lib_search_dirs_CXX \
18149predep_objects_CXX \
18150postdep_objects_CXX \
18151predeps_CXX \
18152postdeps_CXX \
18153compiler_lib_search_path_CXX; do
18154    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18155    *[\\\\\\\`\\"\\\$]*)
18156      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18157      ;;
18158    *)
18159      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18160      ;;
18161    esac
18162done
18163
18164# Double-quote double-evaled strings.
18165for var in reload_cmds \
18166old_postinstall_cmds \
18167old_postuninstall_cmds \
18168old_archive_cmds \
18169extract_expsyms_cmds \
18170old_archive_from_new_cmds \
18171old_archive_from_expsyms_cmds \
18172archive_cmds \
18173archive_expsym_cmds \
18174module_cmds \
18175module_expsym_cmds \
18176export_symbols_cmds \
18177prelink_cmds \
18178postinstall_cmds \
18179postuninstall_cmds \
18180finish_cmds \
18181sys_lib_search_path_spec \
18182sys_lib_dlsearch_path_spec \
18183old_archive_cmds_CXX \
18184old_archive_from_new_cmds_CXX \
18185old_archive_from_expsyms_cmds_CXX \
18186archive_cmds_CXX \
18187archive_expsym_cmds_CXX \
18188module_cmds_CXX \
18189module_expsym_cmds_CXX \
18190export_symbols_cmds_CXX \
18191prelink_cmds_CXX; do
18192    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18193    *[\\\\\\\`\\"\\\$]*)
18194      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18195      ;;
18196    *)
18197      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18198      ;;
18199    esac
18200done
18201
18202# Fix-up fallback echo if it was mangled by the above quoting rules.
18203case \$lt_ECHO in
18204*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
18205  ;;
18206esac
18207
18208ac_aux_dir='$ac_aux_dir'
18209xsi_shell='$xsi_shell'
18210lt_shell_append='$lt_shell_append'
18211
18212# See if we are running on zsh, and set the options which allow our
18213# commands through without removal of \ escapes INIT.
18214if test -n "\${ZSH_VERSION+set}" ; then
18215   setopt NO_GLOB_SUBST
18216fi
18217
18218
18219    PACKAGE='$PACKAGE'
18220    VERSION='$VERSION'
18221    TIMESTAMP='$TIMESTAMP'
18222    RM='$RM'
18223    ofile='$ofile'
18224
18225
18226
18227
18228
18229
18230
18231_ACEOF
18232
18233cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18234
18235# Handling of arguments.
18236for ac_config_target in $ac_config_targets
18237do
18238  case $ac_config_target in
18239    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18240    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18241    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18242    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18243    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18244    "librawstudio/Makefile") CONFIG_FILES="$CONFIG_FILES librawstudio/Makefile" ;;
18245    "librawstudio/rawstudio-2.0.pc") CONFIG_FILES="$CONFIG_FILES librawstudio/rawstudio-2.0.pc" ;;
18246    "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
18247    "plugins/cache/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/cache/Makefile" ;;
18248    "plugins/colorspace-adobergb/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/colorspace-adobergb/Makefile" ;;
18249    "plugins/colorspace-prophoto/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/colorspace-prophoto/Makefile" ;;
18250    "plugins/colorspace-srgb/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/colorspace-srgb/Makefile" ;;
18251    "plugins/colorspace-transform/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/colorspace-transform/Makefile" ;;
18252    "plugins/crop/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/crop/Makefile" ;;
18253    "plugins/dcp/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/dcp/Makefile" ;;
18254    "plugins/demosaic/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/demosaic/Makefile" ;;
18255    "plugins/denoise/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/denoise/Makefile" ;;
18256    "plugins/exposure-mask/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/exposure-mask/Makefile" ;;
18257    "plugins/fuji-rotate/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/fuji-rotate/Makefile" ;;
18258    "plugins/input-file/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/input-file/Makefile" ;;
18259    "plugins/input-image16/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/input-image16/Makefile" ;;
18260    "plugins/lensfun/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/lensfun/Makefile" ;;
18261    "plugins/load-dcraw/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/load-dcraw/Makefile" ;;
18262    "plugins/load-gdk/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/load-gdk/Makefile" ;;
18263    "plugins/load-rawspeed/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/load-rawspeed/Makefile" ;;
18264    "plugins/meta-ciff/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/meta-ciff/Makefile" ;;
18265    "plugins/meta-exiv2/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/meta-exiv2/Makefile" ;;
18266    "plugins/meta-mrw/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/meta-mrw/Makefile" ;;
18267    "plugins/meta-raf/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/meta-raf/Makefile" ;;
18268    "plugins/meta-tiff/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/meta-tiff/Makefile" ;;
18269    "plugins/meta-x3f/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/meta-x3f/Makefile" ;;
18270    "plugins/output-jpegfile/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/output-jpegfile/Makefile" ;;
18271    "plugins/output-pngfile/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/output-pngfile/Makefile" ;;
18272    "plugins/output-picasa/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/output-picasa/Makefile" ;;
18273    "plugins/output-facebook/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/output-facebook/Makefile" ;;
18274    "plugins/output-flickr/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/output-flickr/Makefile" ;;
18275    "plugins/output-tifffile/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/output-tifffile/Makefile" ;;
18276    "plugins/resample/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/resample/Makefile" ;;
18277    "plugins/rotate/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/rotate/Makefile" ;;
18278    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18279    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
18280    "pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/Makefile" ;;
18281    "profiles/Makefile") CONFIG_FILES="$CONFIG_FILES profiles/Makefile" ;;
18282
18283  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
18284  esac
18285done
18286
18287
18288# If the user did not use the arguments to specify the items to instantiate,
18289# then the envvar interface is used.  Set only those that are not.
18290# We use the long form for the default assignment because of an extremely
18291# bizarre bug on SunOS 4.1.3.
18292if $ac_need_defaults; then
18293  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18294  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18295  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18296fi
18297
18298# Have a temporary directory for convenience.  Make it in the build tree
18299# simply because there is no reason against having it here, and in addition,
18300# creating and moving files from /tmp can sometimes cause problems.
18301# Hook for its removal unless debugging.
18302# Note that there is a small window in which the directory will not be cleaned:
18303# after its creation but before its name has been assigned to `$tmp'.
18304$debug ||
18305{
18306  tmp=
18307  trap 'exit_status=$?
18308  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18309' 0
18310  trap 'as_fn_exit 1' 1 2 13 15
18311}
18312# Create a (secure) tmp directory for tmp files.
18313
18314{
18315  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18316  test -n "$tmp" && test -d "$tmp"
18317}  ||
18318{
18319  tmp=./conf$$-$RANDOM
18320  (umask 077 && mkdir "$tmp")
18321} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18322
18323# Set up the scripts for CONFIG_FILES section.
18324# No need to generate them if there are no CONFIG_FILES.
18325# This happens for instance with `./config.status config.h'.
18326if test -n "$CONFIG_FILES"; then
18327
18328
18329ac_cr=`echo X | tr X '\015'`
18330# On cygwin, bash can eat \r inside `` if the user requested igncr.
18331# But we know of no other shell where ac_cr would be empty at this
18332# point, so we can use a bashism as a fallback.
18333if test "x$ac_cr" = x; then
18334  eval ac_cr=\$\'\\r\'
18335fi
18336ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18337if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18338  ac_cs_awk_cr='\\r'
18339else
18340  ac_cs_awk_cr=$ac_cr
18341fi
18342
18343echo 'BEGIN {' >"$tmp/subs1.awk" &&
18344_ACEOF
18345
18346
18347{
18348  echo "cat >conf$$subs.awk <<_ACEOF" &&
18349  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18350  echo "_ACEOF"
18351} >conf$$subs.sh ||
18352  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18353ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18354ac_delim='%!_!# '
18355for ac_last_try in false false false false false :; do
18356  . ./conf$$subs.sh ||
18357    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18358
18359  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18360  if test $ac_delim_n = $ac_delim_num; then
18361    break
18362  elif $ac_last_try; then
18363    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18364  else
18365    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18366  fi
18367done
18368rm -f conf$$subs.sh
18369
18370cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18371cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18372_ACEOF
18373sed -n '
18374h
18375s/^/S["/; s/!.*/"]=/
18376p
18377g
18378s/^[^!]*!//
18379:repl
18380t repl
18381s/'"$ac_delim"'$//
18382t delim
18383:nl
18384h
18385s/\(.\{148\}\)..*/\1/
18386t more1
18387s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18388p
18389n
18390b repl
18391:more1
18392s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18393p
18394g
18395s/.\{148\}//
18396t nl
18397:delim
18398h
18399s/\(.\{148\}\)..*/\1/
18400t more2
18401s/["\\]/\\&/g; s/^/"/; s/$/"/
18402p
18403b
18404:more2
18405s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18406p
18407g
18408s/.\{148\}//
18409t delim
18410' <conf$$subs.awk | sed '
18411/^[^""]/{
18412  N
18413  s/\n//
18414}
18415' >>$CONFIG_STATUS || ac_write_fail=1
18416rm -f conf$$subs.awk
18417cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18418_ACAWK
18419cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18420  for (key in S) S_is_set[key] = 1
18421  FS = ""
18422
18423}
18424{
18425  line = $ 0
18426  nfields = split(line, field, "@")
18427  substed = 0
18428  len = length(field[1])
18429  for (i = 2; i < nfields; i++) {
18430    key = field[i]
18431    keylen = length(key)
18432    if (S_is_set[key]) {
18433      value = S[key]
18434      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18435      len += length(value) + length(field[++i])
18436      substed = 1
18437    } else
18438      len += 1 + keylen
18439  }
18440
18441  print line
18442}
18443
18444_ACAWK
18445_ACEOF
18446cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18447if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18448  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18449else
18450  cat
18451fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18452  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18453_ACEOF
18454
18455# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18456# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18457# trailing colons and then remove the whole line if VPATH becomes empty
18458# (actually we leave an empty line to preserve line numbers).
18459if test "x$srcdir" = x.; then
18460  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
18461h
18462s///
18463s/^/:/
18464s/[	 ]*$/:/
18465s/:\$(srcdir):/:/g
18466s/:\${srcdir}:/:/g
18467s/:@srcdir@:/:/g
18468s/^:*//
18469s/:*$//
18470x
18471s/\(=[	 ]*\).*/\1/
18472G
18473s/\n//
18474s/^[^=]*=[	 ]*$//
18475}'
18476fi
18477
18478cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18479fi # test -n "$CONFIG_FILES"
18480
18481# Set up the scripts for CONFIG_HEADERS section.
18482# No need to generate them if there are no CONFIG_HEADERS.
18483# This happens for instance with `./config.status Makefile'.
18484if test -n "$CONFIG_HEADERS"; then
18485cat >"$tmp/defines.awk" <<\_ACAWK ||
18486BEGIN {
18487_ACEOF
18488
18489# Transform confdefs.h into an awk script `defines.awk', embedded as
18490# here-document in config.status, that substitutes the proper values into
18491# config.h.in to produce config.h.
18492
18493# Create a delimiter string that does not exist in confdefs.h, to ease
18494# handling of long lines.
18495ac_delim='%!_!# '
18496for ac_last_try in false false :; do
18497  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18498  if test -z "$ac_t"; then
18499    break
18500  elif $ac_last_try; then
18501    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18502  else
18503    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18504  fi
18505done
18506
18507# For the awk script, D is an array of macro values keyed by name,
18508# likewise P contains macro parameters if any.  Preserve backslash
18509# newline sequences.
18510
18511ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18512sed -n '
18513s/.\{148\}/&'"$ac_delim"'/g
18514t rset
18515:rset
18516s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
18517t def
18518d
18519:def
18520s/\\$//
18521t bsnl
18522s/["\\]/\\&/g
18523s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18524D["\1"]=" \3"/p
18525s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
18526d
18527:bsnl
18528s/["\\]/\\&/g
18529s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18530D["\1"]=" \3\\\\\\n"\\/p
18531t cont
18532s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18533t cont
18534d
18535:cont
18536n
18537s/.\{148\}/&'"$ac_delim"'/g
18538t clear
18539:clear
18540s/\\$//
18541t bsnlc
18542s/["\\]/\\&/g; s/^/"/; s/$/"/p
18543d
18544:bsnlc
18545s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18546b cont
18547' <confdefs.h | sed '
18548s/'"$ac_delim"'/"\\\
18549"/g' >>$CONFIG_STATUS || ac_write_fail=1
18550
18551cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18552  for (key in D) D_is_set[key] = 1
18553  FS = ""
18554}
18555/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18556  line = \$ 0
18557  split(line, arg, " ")
18558  if (arg[1] == "#") {
18559    defundef = arg[2]
18560    mac1 = arg[3]
18561  } else {
18562    defundef = substr(arg[1], 2)
18563    mac1 = arg[2]
18564  }
18565  split(mac1, mac2, "(") #)
18566  macro = mac2[1]
18567  prefix = substr(line, 1, index(line, defundef) - 1)
18568  if (D_is_set[macro]) {
18569    # Preserve the white space surrounding the "#".
18570    print prefix "define", macro P[macro] D[macro]
18571    next
18572  } else {
18573    # Replace #undef with comments.  This is necessary, for example,
18574    # in the case of _POSIX_SOURCE, which is predefined and required
18575    # on some systems where configure will not decide to define it.
18576    if (defundef == "undef") {
18577      print "/*", prefix defundef, macro, "*/"
18578      next
18579    }
18580  }
18581}
18582{ print }
18583_ACAWK
18584_ACEOF
18585cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18586  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18587fi # test -n "$CONFIG_HEADERS"
18588
18589
18590eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18591shift
18592for ac_tag
18593do
18594  case $ac_tag in
18595  :[FHLC]) ac_mode=$ac_tag; continue;;
18596  esac
18597  case $ac_mode$ac_tag in
18598  :[FHL]*:*);;
18599  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
18600  :[FH]-) ac_tag=-:-;;
18601  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18602  esac
18603  ac_save_IFS=$IFS
18604  IFS=:
18605  set x $ac_tag
18606  IFS=$ac_save_IFS
18607  shift
18608  ac_file=$1
18609  shift
18610
18611  case $ac_mode in
18612  :L) ac_source=$1;;
18613  :[FH])
18614    ac_file_inputs=
18615    for ac_f
18616    do
18617      case $ac_f in
18618      -) ac_f="$tmp/stdin";;
18619      *) # Look for the file first in the build tree, then in the source tree
18620	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18621	 # because $ac_f cannot contain `:'.
18622	 test -f "$ac_f" ||
18623	   case $ac_f in
18624	   [\\/$]*) false;;
18625	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18626	   esac ||
18627	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
18628      esac
18629      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18630      as_fn_append ac_file_inputs " '$ac_f'"
18631    done
18632
18633    # Let's still pretend it is `configure' which instantiates (i.e., don't
18634    # use $as_me), people would be surprised to read:
18635    #    /* config.h.  Generated by config.status.  */
18636    configure_input='Generated from '`
18637	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18638	`' by configure.'
18639    if test x"$ac_file" != x-; then
18640      configure_input="$ac_file.  $configure_input"
18641      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18642$as_echo "$as_me: creating $ac_file" >&6;}
18643    fi
18644    # Neutralize special characters interpreted by sed in replacement strings.
18645    case $configure_input in #(
18646    *\&* | *\|* | *\\* )
18647       ac_sed_conf_input=`$as_echo "$configure_input" |
18648       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18649    *) ac_sed_conf_input=$configure_input;;
18650    esac
18651
18652    case $ac_tag in
18653    *:-:* | *:-) cat >"$tmp/stdin" \
18654      || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
18655    esac
18656    ;;
18657  esac
18658
18659  ac_dir=`$as_dirname -- "$ac_file" ||
18660$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18661	 X"$ac_file" : 'X\(//\)[^/]' \| \
18662	 X"$ac_file" : 'X\(//\)$' \| \
18663	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18664$as_echo X"$ac_file" |
18665    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18666	    s//\1/
18667	    q
18668	  }
18669	  /^X\(\/\/\)[^/].*/{
18670	    s//\1/
18671	    q
18672	  }
18673	  /^X\(\/\/\)$/{
18674	    s//\1/
18675	    q
18676	  }
18677	  /^X\(\/\).*/{
18678	    s//\1/
18679	    q
18680	  }
18681	  s/.*/./; q'`
18682  as_dir="$ac_dir"; as_fn_mkdir_p
18683  ac_builddir=.
18684
18685case "$ac_dir" in
18686.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18687*)
18688  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18689  # A ".." for each directory in $ac_dir_suffix.
18690  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18691  case $ac_top_builddir_sub in
18692  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18693  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18694  esac ;;
18695esac
18696ac_abs_top_builddir=$ac_pwd
18697ac_abs_builddir=$ac_pwd$ac_dir_suffix
18698# for backward compatibility:
18699ac_top_builddir=$ac_top_build_prefix
18700
18701case $srcdir in
18702  .)  # We are building in place.
18703    ac_srcdir=.
18704    ac_top_srcdir=$ac_top_builddir_sub
18705    ac_abs_top_srcdir=$ac_pwd ;;
18706  [\\/]* | ?:[\\/]* )  # Absolute name.
18707    ac_srcdir=$srcdir$ac_dir_suffix;
18708    ac_top_srcdir=$srcdir
18709    ac_abs_top_srcdir=$srcdir ;;
18710  *) # Relative name.
18711    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18712    ac_top_srcdir=$ac_top_build_prefix$srcdir
18713    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18714esac
18715ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18716
18717
18718  case $ac_mode in
18719  :F)
18720  #
18721  # CONFIG_FILE
18722  #
18723
18724  case $INSTALL in
18725  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18726  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18727  esac
18728  ac_MKDIR_P=$MKDIR_P
18729  case $MKDIR_P in
18730  [\\/$]* | ?:[\\/]* ) ;;
18731  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18732  esac
18733_ACEOF
18734
18735cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18736# If the template does not know about datarootdir, expand it.
18737# FIXME: This hack should be removed a few years after 2.60.
18738ac_datarootdir_hack=; ac_datarootdir_seen=
18739ac_sed_dataroot='
18740/datarootdir/ {
18741  p
18742  q
18743}
18744/@datadir@/p
18745/@docdir@/p
18746/@infodir@/p
18747/@localedir@/p
18748/@mandir@/p'
18749case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18750*datarootdir*) ac_datarootdir_seen=yes;;
18751*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18752  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18753$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18754_ACEOF
18755cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18756  ac_datarootdir_hack='
18757  s&@datadir@&$datadir&g
18758  s&@docdir@&$docdir&g
18759  s&@infodir@&$infodir&g
18760  s&@localedir@&$localedir&g
18761  s&@mandir@&$mandir&g
18762  s&\\\${datarootdir}&$datarootdir&g' ;;
18763esac
18764_ACEOF
18765
18766# Neutralize VPATH when `$srcdir' = `.'.
18767# Shell code in configure.ac might set extrasub.
18768# FIXME: do we really want to maintain this feature?
18769cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18770ac_sed_extra="$ac_vpsub
18771$extrasub
18772_ACEOF
18773cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18774:t
18775/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18776s|@configure_input@|$ac_sed_conf_input|;t t
18777s&@top_builddir@&$ac_top_builddir_sub&;t t
18778s&@top_build_prefix@&$ac_top_build_prefix&;t t
18779s&@srcdir@&$ac_srcdir&;t t
18780s&@abs_srcdir@&$ac_abs_srcdir&;t t
18781s&@top_srcdir@&$ac_top_srcdir&;t t
18782s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18783s&@builddir@&$ac_builddir&;t t
18784s&@abs_builddir@&$ac_abs_builddir&;t t
18785s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18786s&@INSTALL@&$ac_INSTALL&;t t
18787s&@MKDIR_P@&$ac_MKDIR_P&;t t
18788$ac_datarootdir_hack
18789"
18790eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18791  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18792
18793test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18794  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18795  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18796  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18797which seems to be undefined.  Please make sure it is defined" >&5
18798$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18799which seems to be undefined.  Please make sure it is defined" >&2;}
18800
18801  rm -f "$tmp/stdin"
18802  case $ac_file in
18803  -) cat "$tmp/out" && rm -f "$tmp/out";;
18804  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18805  esac \
18806  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18807 ;;
18808  :H)
18809  #
18810  # CONFIG_HEADER
18811  #
18812  if test x"$ac_file" != x-; then
18813    {
18814      $as_echo "/* $configure_input  */" \
18815      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18816    } >"$tmp/config.h" \
18817      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18818    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18819      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18820$as_echo "$as_me: $ac_file is unchanged" >&6;}
18821    else
18822      rm -f "$ac_file"
18823      mv "$tmp/config.h" "$ac_file" \
18824	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
18825    fi
18826  else
18827    $as_echo "/* $configure_input  */" \
18828      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18829      || as_fn_error $? "could not create -" "$LINENO" 5
18830  fi
18831# Compute "$ac_file"'s index in $config_headers.
18832_am_arg="$ac_file"
18833_am_stamp_count=1
18834for _am_header in $config_headers :; do
18835  case $_am_header in
18836    $_am_arg | $_am_arg:* )
18837      break ;;
18838    * )
18839      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18840  esac
18841done
18842echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18843$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18844	 X"$_am_arg" : 'X\(//\)[^/]' \| \
18845	 X"$_am_arg" : 'X\(//\)$' \| \
18846	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18847$as_echo X"$_am_arg" |
18848    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18849	    s//\1/
18850	    q
18851	  }
18852	  /^X\(\/\/\)[^/].*/{
18853	    s//\1/
18854	    q
18855	  }
18856	  /^X\(\/\/\)$/{
18857	    s//\1/
18858	    q
18859	  }
18860	  /^X\(\/\).*/{
18861	    s//\1/
18862	    q
18863	  }
18864	  s/.*/./; q'`/stamp-h$_am_stamp_count
18865 ;;
18866
18867  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18868$as_echo "$as_me: executing $ac_file commands" >&6;}
18869 ;;
18870  esac
18871
18872
18873  case $ac_file$ac_mode in
18874    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18875  # Autoconf 2.62 quotes --file arguments for eval, but not when files
18876  # are listed without --file.  Let's play safe and only enable the eval
18877  # if we detect the quoting.
18878  case $CONFIG_FILES in
18879  *\'*) eval set x "$CONFIG_FILES" ;;
18880  *)   set x $CONFIG_FILES ;;
18881  esac
18882  shift
18883  for mf
18884  do
18885    # Strip MF so we end up with the name of the file.
18886    mf=`echo "$mf" | sed -e 's/:.*$//'`
18887    # Check whether this is an Automake generated Makefile or not.
18888    # We used to match only the files named `Makefile.in', but
18889    # some people rename them; so instead we look at the file content.
18890    # Grep'ing the first line is not enough: some people post-process
18891    # each Makefile.in and add a new line on top of each file to say so.
18892    # Grep'ing the whole file is not good either: AIX grep has a line
18893    # limit of 2048, but all sed's we know have understand at least 4000.
18894    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18895      dirpart=`$as_dirname -- "$mf" ||
18896$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18897	 X"$mf" : 'X\(//\)[^/]' \| \
18898	 X"$mf" : 'X\(//\)$' \| \
18899	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18900$as_echo X"$mf" |
18901    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18902	    s//\1/
18903	    q
18904	  }
18905	  /^X\(\/\/\)[^/].*/{
18906	    s//\1/
18907	    q
18908	  }
18909	  /^X\(\/\/\)$/{
18910	    s//\1/
18911	    q
18912	  }
18913	  /^X\(\/\).*/{
18914	    s//\1/
18915	    q
18916	  }
18917	  s/.*/./; q'`
18918    else
18919      continue
18920    fi
18921    # Extract the definition of DEPDIR, am__include, and am__quote
18922    # from the Makefile without running `make'.
18923    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18924    test -z "$DEPDIR" && continue
18925    am__include=`sed -n 's/^am__include = //p' < "$mf"`
18926    test -z "am__include" && continue
18927    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18928    # When using ansi2knr, U may be empty or an underscore; expand it
18929    U=`sed -n 's/^U = //p' < "$mf"`
18930    # Find all dependency output files, they are included files with
18931    # $(DEPDIR) in their names.  We invoke sed twice because it is the
18932    # simplest approach to changing $(DEPDIR) to its actual value in the
18933    # expansion.
18934    for file in `sed -n "
18935      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18936	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18937      # Make sure the directory exists.
18938      test -f "$dirpart/$file" && continue
18939      fdir=`$as_dirname -- "$file" ||
18940$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18941	 X"$file" : 'X\(//\)[^/]' \| \
18942	 X"$file" : 'X\(//\)$' \| \
18943	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18944$as_echo X"$file" |
18945    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18946	    s//\1/
18947	    q
18948	  }
18949	  /^X\(\/\/\)[^/].*/{
18950	    s//\1/
18951	    q
18952	  }
18953	  /^X\(\/\/\)$/{
18954	    s//\1/
18955	    q
18956	  }
18957	  /^X\(\/\).*/{
18958	    s//\1/
18959	    q
18960	  }
18961	  s/.*/./; q'`
18962      as_dir=$dirpart/$fdir; as_fn_mkdir_p
18963      # echo "creating $dirpart/$file"
18964      echo '# dummy' > "$dirpart/$file"
18965    done
18966  done
18967}
18968 ;;
18969    "libtool":C)
18970
18971    # See if we are running on zsh, and set the options which allow our
18972    # commands through without removal of \ escapes.
18973    if test -n "${ZSH_VERSION+set}" ; then
18974      setopt NO_GLOB_SUBST
18975    fi
18976
18977    cfgfile="${ofile}T"
18978    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18979    $RM "$cfgfile"
18980
18981    cat <<_LT_EOF >> "$cfgfile"
18982#! $SHELL
18983
18984# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18985# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18986# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18987# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18988#
18989#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18990#                 2006, 2007, 2008 Free Software Foundation, Inc.
18991#   Written by Gordon Matzigkeit, 1996
18992#
18993#   This file is part of GNU Libtool.
18994#
18995# GNU Libtool is free software; you can redistribute it and/or
18996# modify it under the terms of the GNU General Public License as
18997# published by the Free Software Foundation; either version 2 of
18998# the License, or (at your option) any later version.
18999#
19000# As a special exception to the GNU General Public License,
19001# if you distribute this file as part of a program or library that
19002# is built using GNU Libtool, you may include this file under the
19003# same distribution terms that you use for the rest of that program.
19004#
19005# GNU Libtool is distributed in the hope that it will be useful,
19006# but WITHOUT ANY WARRANTY; without even the implied warranty of
19007# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19008# GNU General Public License for more details.
19009#
19010# You should have received a copy of the GNU General Public License
19011# along with GNU Libtool; see the file COPYING.  If not, a copy
19012# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19013# obtained by writing to the Free Software Foundation, Inc.,
19014# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19015
19016
19017# The names of the tagged configurations supported by this script.
19018available_tags="CXX "
19019
19020# ### BEGIN LIBTOOL CONFIG
19021
19022# Which release of libtool.m4 was used?
19023macro_version=$macro_version
19024macro_revision=$macro_revision
19025
19026# Whether or not to build shared libraries.
19027build_libtool_libs=$enable_shared
19028
19029# Whether or not to build static libraries.
19030build_old_libs=$enable_static
19031
19032# What type of objects to build.
19033pic_mode=$pic_mode
19034
19035# Whether or not to optimize for fast installation.
19036fast_install=$enable_fast_install
19037
19038# The host system.
19039host_alias=$host_alias
19040host=$host
19041host_os=$host_os
19042
19043# The build system.
19044build_alias=$build_alias
19045build=$build
19046build_os=$build_os
19047
19048# A sed program that does not truncate output.
19049SED=$lt_SED
19050
19051# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19052Xsed="\$SED -e 1s/^X//"
19053
19054# A grep program that handles long lines.
19055GREP=$lt_GREP
19056
19057# An ERE matcher.
19058EGREP=$lt_EGREP
19059
19060# A literal string matcher.
19061FGREP=$lt_FGREP
19062
19063# A BSD- or MS-compatible name lister.
19064NM=$lt_NM
19065
19066# Whether we need soft or hard links.
19067LN_S=$lt_LN_S
19068
19069# What is the maximum length of a command?
19070max_cmd_len=$max_cmd_len
19071
19072# Object file suffix (normally "o").
19073objext=$ac_objext
19074
19075# Executable file suffix (normally "").
19076exeext=$exeext
19077
19078# whether the shell understands "unset".
19079lt_unset=$lt_unset
19080
19081# turn spaces into newlines.
19082SP2NL=$lt_lt_SP2NL
19083
19084# turn newlines into spaces.
19085NL2SP=$lt_lt_NL2SP
19086
19087# How to create reloadable object files.
19088reload_flag=$lt_reload_flag
19089reload_cmds=$lt_reload_cmds
19090
19091# An object symbol dumper.
19092OBJDUMP=$lt_OBJDUMP
19093
19094# Method to check whether dependent libraries are shared objects.
19095deplibs_check_method=$lt_deplibs_check_method
19096
19097# Command to use when deplibs_check_method == "file_magic".
19098file_magic_cmd=$lt_file_magic_cmd
19099
19100# The archiver.
19101AR=$lt_AR
19102AR_FLAGS=$lt_AR_FLAGS
19103
19104# A symbol stripping program.
19105STRIP=$lt_STRIP
19106
19107# Commands used to install an old-style archive.
19108RANLIB=$lt_RANLIB
19109old_postinstall_cmds=$lt_old_postinstall_cmds
19110old_postuninstall_cmds=$lt_old_postuninstall_cmds
19111
19112# A C compiler.
19113LTCC=$lt_CC
19114
19115# LTCC compiler flags.
19116LTCFLAGS=$lt_CFLAGS
19117
19118# Take the output of nm and produce a listing of raw symbols and C names.
19119global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19120
19121# Transform the output of nm in a proper C declaration.
19122global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19123
19124# Transform the output of nm in a C name address pair.
19125global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19126
19127# Transform the output of nm in a C name address pair when lib prefix is needed.
19128global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19129
19130# The name of the directory that contains temporary libtool files.
19131objdir=$objdir
19132
19133# Shell to use when invoking shell scripts.
19134SHELL=$lt_SHELL
19135
19136# An echo program that does not interpret backslashes.
19137ECHO=$lt_ECHO
19138
19139# Used to examine libraries when file_magic_cmd begins with "file".
19140MAGIC_CMD=$MAGIC_CMD
19141
19142# Must we lock files when doing compilation?
19143need_locks=$lt_need_locks
19144
19145# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19146DSYMUTIL=$lt_DSYMUTIL
19147
19148# Tool to change global to local symbols on Mac OS X.
19149NMEDIT=$lt_NMEDIT
19150
19151# Tool to manipulate fat objects and archives on Mac OS X.
19152LIPO=$lt_LIPO
19153
19154# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19155OTOOL=$lt_OTOOL
19156
19157# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19158OTOOL64=$lt_OTOOL64
19159
19160# Old archive suffix (normally "a").
19161libext=$libext
19162
19163# Shared library suffix (normally ".so").
19164shrext_cmds=$lt_shrext_cmds
19165
19166# The commands to extract the exported symbol list from a shared archive.
19167extract_expsyms_cmds=$lt_extract_expsyms_cmds
19168
19169# Variables whose values should be saved in libtool wrapper scripts and
19170# restored at link time.
19171variables_saved_for_relink=$lt_variables_saved_for_relink
19172
19173# Do we need the "lib" prefix for modules?
19174need_lib_prefix=$need_lib_prefix
19175
19176# Do we need a version for libraries?
19177need_version=$need_version
19178
19179# Library versioning type.
19180version_type=$version_type
19181
19182# Shared library runtime path variable.
19183runpath_var=$runpath_var
19184
19185# Shared library path variable.
19186shlibpath_var=$shlibpath_var
19187
19188# Is shlibpath searched before the hard-coded library search path?
19189shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19190
19191# Format of library name prefix.
19192libname_spec=$lt_libname_spec
19193
19194# List of archive names.  First name is the real one, the rest are links.
19195# The last name is the one that the linker finds with -lNAME
19196library_names_spec=$lt_library_names_spec
19197
19198# The coded name of the library, if different from the real name.
19199soname_spec=$lt_soname_spec
19200
19201# Command to use after installation of a shared archive.
19202postinstall_cmds=$lt_postinstall_cmds
19203
19204# Command to use after uninstallation of a shared archive.
19205postuninstall_cmds=$lt_postuninstall_cmds
19206
19207# Commands used to finish a libtool library installation in a directory.
19208finish_cmds=$lt_finish_cmds
19209
19210# As "finish_cmds", except a single script fragment to be evaled but
19211# not shown.
19212finish_eval=$lt_finish_eval
19213
19214# Whether we should hardcode library paths into libraries.
19215hardcode_into_libs=$hardcode_into_libs
19216
19217# Compile-time system search path for libraries.
19218sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19219
19220# Run-time system search path for libraries.
19221sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19222
19223# Whether dlopen is supported.
19224dlopen_support=$enable_dlopen
19225
19226# Whether dlopen of programs is supported.
19227dlopen_self=$enable_dlopen_self
19228
19229# Whether dlopen of statically linked programs is supported.
19230dlopen_self_static=$enable_dlopen_self_static
19231
19232# Commands to strip libraries.
19233old_striplib=$lt_old_striplib
19234striplib=$lt_striplib
19235
19236
19237# The linker used to build libraries.
19238LD=$lt_LD
19239
19240# Commands used to build an old-style archive.
19241old_archive_cmds=$lt_old_archive_cmds
19242
19243# A language specific compiler.
19244CC=$lt_compiler
19245
19246# Is the compiler the GNU compiler?
19247with_gcc=$GCC
19248
19249# Compiler flag to turn off builtin functions.
19250no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19251
19252# How to pass a linker flag through the compiler.
19253wl=$lt_lt_prog_compiler_wl
19254
19255# Additional compiler flags for building library objects.
19256pic_flag=$lt_lt_prog_compiler_pic
19257
19258# Compiler flag to prevent dynamic linking.
19259link_static_flag=$lt_lt_prog_compiler_static
19260
19261# Does compiler simultaneously support -c and -o options?
19262compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19263
19264# Whether or not to add -lc for building shared libraries.
19265build_libtool_need_lc=$archive_cmds_need_lc
19266
19267# Whether or not to disallow shared libs when runtime libs are static.
19268allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19269
19270# Compiler flag to allow reflexive dlopens.
19271export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19272
19273# Compiler flag to generate shared objects directly from archives.
19274whole_archive_flag_spec=$lt_whole_archive_flag_spec
19275
19276# Whether the compiler copes with passing no objects directly.
19277compiler_needs_object=$lt_compiler_needs_object
19278
19279# Create an old-style archive from a shared archive.
19280old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19281
19282# Create a temporary old-style archive to link instead of a shared archive.
19283old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19284
19285# Commands used to build a shared archive.
19286archive_cmds=$lt_archive_cmds
19287archive_expsym_cmds=$lt_archive_expsym_cmds
19288
19289# Commands used to build a loadable module if different from building
19290# a shared archive.
19291module_cmds=$lt_module_cmds
19292module_expsym_cmds=$lt_module_expsym_cmds
19293
19294# Whether we are building with GNU ld or not.
19295with_gnu_ld=$lt_with_gnu_ld
19296
19297# Flag that allows shared libraries with undefined symbols to be built.
19298allow_undefined_flag=$lt_allow_undefined_flag
19299
19300# Flag that enforces no undefined symbols.
19301no_undefined_flag=$lt_no_undefined_flag
19302
19303# Flag to hardcode \$libdir into a binary during linking.
19304# This must work even if \$libdir does not exist
19305hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19306
19307# If ld is used when linking, flag to hardcode \$libdir into a binary
19308# during linking.  This must work even if \$libdir does not exist.
19309hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19310
19311# Whether we need a single "-rpath" flag with a separated argument.
19312hardcode_libdir_separator=$lt_hardcode_libdir_separator
19313
19314# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19315# DIR into the resulting binary.
19316hardcode_direct=$hardcode_direct
19317
19318# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19319# DIR into the resulting binary and the resulting library dependency is
19320# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19321# library is relocated.
19322hardcode_direct_absolute=$hardcode_direct_absolute
19323
19324# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19325# into the resulting binary.
19326hardcode_minus_L=$hardcode_minus_L
19327
19328# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19329# into the resulting binary.
19330hardcode_shlibpath_var=$hardcode_shlibpath_var
19331
19332# Set to "yes" if building a shared library automatically hardcodes DIR
19333# into the library and all subsequent libraries and executables linked
19334# against it.
19335hardcode_automatic=$hardcode_automatic
19336
19337# Set to yes if linker adds runtime paths of dependent libraries
19338# to runtime path list.
19339inherit_rpath=$inherit_rpath
19340
19341# Whether libtool must link a program against all its dependency libraries.
19342link_all_deplibs=$link_all_deplibs
19343
19344# Fix the shell variable \$srcfile for the compiler.
19345fix_srcfile_path=$lt_fix_srcfile_path
19346
19347# Set to "yes" if exported symbols are required.
19348always_export_symbols=$always_export_symbols
19349
19350# The commands to list exported symbols.
19351export_symbols_cmds=$lt_export_symbols_cmds
19352
19353# Symbols that should not be listed in the preloaded symbols.
19354exclude_expsyms=$lt_exclude_expsyms
19355
19356# Symbols that must always be exported.
19357include_expsyms=$lt_include_expsyms
19358
19359# Commands necessary for linking programs (against libraries) with templates.
19360prelink_cmds=$lt_prelink_cmds
19361
19362# Specify filename containing input files.
19363file_list_spec=$lt_file_list_spec
19364
19365# How to hardcode a shared library path into an executable.
19366hardcode_action=$hardcode_action
19367
19368# The directories searched by this compiler when creating a shared library.
19369compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19370
19371# Dependencies to place before and after the objects being linked to
19372# create a shared library.
19373predep_objects=$lt_predep_objects
19374postdep_objects=$lt_postdep_objects
19375predeps=$lt_predeps
19376postdeps=$lt_postdeps
19377
19378# The library search path used internally by the compiler when linking
19379# a shared library.
19380compiler_lib_search_path=$lt_compiler_lib_search_path
19381
19382# ### END LIBTOOL CONFIG
19383
19384_LT_EOF
19385
19386  case $host_os in
19387  aix3*)
19388    cat <<\_LT_EOF >> "$cfgfile"
19389# AIX sometimes has problems with the GCC collect2 program.  For some
19390# reason, if we set the COLLECT_NAMES environment variable, the problems
19391# vanish in a puff of smoke.
19392if test "X${COLLECT_NAMES+set}" != Xset; then
19393  COLLECT_NAMES=
19394  export COLLECT_NAMES
19395fi
19396_LT_EOF
19397    ;;
19398  esac
19399
19400
19401ltmain="$ac_aux_dir/ltmain.sh"
19402
19403
19404  # We use sed instead of cat because bash on DJGPP gets confused if
19405  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19406  # text mode, it properly converts lines to CR/LF.  This bash problem
19407  # is reportedly fixed, but why not run on old versions too?
19408  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19409    || (rm -f "$cfgfile"; exit 1)
19410
19411  case $xsi_shell in
19412  yes)
19413    cat << \_LT_EOF >> "$cfgfile"
19414
19415# func_dirname file append nondir_replacement
19416# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19417# otherwise set result to NONDIR_REPLACEMENT.
19418func_dirname ()
19419{
19420  case ${1} in
19421    */*) func_dirname_result="${1%/*}${2}" ;;
19422    *  ) func_dirname_result="${3}" ;;
19423  esac
19424}
19425
19426# func_basename file
19427func_basename ()
19428{
19429  func_basename_result="${1##*/}"
19430}
19431
19432# func_dirname_and_basename file append nondir_replacement
19433# perform func_basename and func_dirname in a single function
19434# call:
19435#   dirname:  Compute the dirname of FILE.  If nonempty,
19436#             add APPEND to the result, otherwise set result
19437#             to NONDIR_REPLACEMENT.
19438#             value returned in "$func_dirname_result"
19439#   basename: Compute filename of FILE.
19440#             value retuned in "$func_basename_result"
19441# Implementation must be kept synchronized with func_dirname
19442# and func_basename. For efficiency, we do not delegate to
19443# those functions but instead duplicate the functionality here.
19444func_dirname_and_basename ()
19445{
19446  case ${1} in
19447    */*) func_dirname_result="${1%/*}${2}" ;;
19448    *  ) func_dirname_result="${3}" ;;
19449  esac
19450  func_basename_result="${1##*/}"
19451}
19452
19453# func_stripname prefix suffix name
19454# strip PREFIX and SUFFIX off of NAME.
19455# PREFIX and SUFFIX must not contain globbing or regex special
19456# characters, hashes, percent signs, but SUFFIX may contain a leading
19457# dot (in which case that matches only a dot).
19458func_stripname ()
19459{
19460  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19461  # positional parameters, so assign one to ordinary parameter first.
19462  func_stripname_result=${3}
19463  func_stripname_result=${func_stripname_result#"${1}"}
19464  func_stripname_result=${func_stripname_result%"${2}"}
19465}
19466
19467# func_opt_split
19468func_opt_split ()
19469{
19470  func_opt_split_opt=${1%%=*}
19471  func_opt_split_arg=${1#*=}
19472}
19473
19474# func_lo2o object
19475func_lo2o ()
19476{
19477  case ${1} in
19478    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19479    *)    func_lo2o_result=${1} ;;
19480  esac
19481}
19482
19483# func_xform libobj-or-source
19484func_xform ()
19485{
19486  func_xform_result=${1%.*}.lo
19487}
19488
19489# func_arith arithmetic-term...
19490func_arith ()
19491{
19492  func_arith_result=$(( $* ))
19493}
19494
19495# func_len string
19496# STRING may not start with a hyphen.
19497func_len ()
19498{
19499  func_len_result=${#1}
19500}
19501
19502_LT_EOF
19503    ;;
19504  *) # Bourne compatible functions.
19505    cat << \_LT_EOF >> "$cfgfile"
19506
19507# func_dirname file append nondir_replacement
19508# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19509# otherwise set result to NONDIR_REPLACEMENT.
19510func_dirname ()
19511{
19512  # Extract subdirectory from the argument.
19513  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
19514  if test "X$func_dirname_result" = "X${1}"; then
19515    func_dirname_result="${3}"
19516  else
19517    func_dirname_result="$func_dirname_result${2}"
19518  fi
19519}
19520
19521# func_basename file
19522func_basename ()
19523{
19524  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
19525}
19526
19527
19528# func_stripname prefix suffix name
19529# strip PREFIX and SUFFIX off of NAME.
19530# PREFIX and SUFFIX must not contain globbing or regex special
19531# characters, hashes, percent signs, but SUFFIX may contain a leading
19532# dot (in which case that matches only a dot).
19533# func_strip_suffix prefix name
19534func_stripname ()
19535{
19536  case ${2} in
19537    .*) func_stripname_result=`$ECHO "X${3}" \
19538           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
19539    *)  func_stripname_result=`$ECHO "X${3}" \
19540           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
19541  esac
19542}
19543
19544# sed scripts:
19545my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19546my_sed_long_arg='1s/^-[^=]*=//'
19547
19548# func_opt_split
19549func_opt_split ()
19550{
19551  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
19552  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
19553}
19554
19555# func_lo2o object
19556func_lo2o ()
19557{
19558  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
19559}
19560
19561# func_xform libobj-or-source
19562func_xform ()
19563{
19564  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
19565}
19566
19567# func_arith arithmetic-term...
19568func_arith ()
19569{
19570  func_arith_result=`expr "$@"`
19571}
19572
19573# func_len string
19574# STRING may not start with a hyphen.
19575func_len ()
19576{
19577  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19578}
19579
19580_LT_EOF
19581esac
19582
19583case $lt_shell_append in
19584  yes)
19585    cat << \_LT_EOF >> "$cfgfile"
19586
19587# func_append var value
19588# Append VALUE to the end of shell variable VAR.
19589func_append ()
19590{
19591  eval "$1+=\$2"
19592}
19593_LT_EOF
19594    ;;
19595  *)
19596    cat << \_LT_EOF >> "$cfgfile"
19597
19598# func_append var value
19599# Append VALUE to the end of shell variable VAR.
19600func_append ()
19601{
19602  eval "$1=\$$1\$2"
19603}
19604
19605_LT_EOF
19606    ;;
19607  esac
19608
19609
19610  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19611    || (rm -f "$cfgfile"; exit 1)
19612
19613  mv -f "$cfgfile" "$ofile" ||
19614    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19615  chmod +x "$ofile"
19616
19617
19618    cat <<_LT_EOF >> "$ofile"
19619
19620# ### BEGIN LIBTOOL TAG CONFIG: CXX
19621
19622# The linker used to build libraries.
19623LD=$lt_LD_CXX
19624
19625# Commands used to build an old-style archive.
19626old_archive_cmds=$lt_old_archive_cmds_CXX
19627
19628# A language specific compiler.
19629CC=$lt_compiler_CXX
19630
19631# Is the compiler the GNU compiler?
19632with_gcc=$GCC_CXX
19633
19634# Compiler flag to turn off builtin functions.
19635no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19636
19637# How to pass a linker flag through the compiler.
19638wl=$lt_lt_prog_compiler_wl_CXX
19639
19640# Additional compiler flags for building library objects.
19641pic_flag=$lt_lt_prog_compiler_pic_CXX
19642
19643# Compiler flag to prevent dynamic linking.
19644link_static_flag=$lt_lt_prog_compiler_static_CXX
19645
19646# Does compiler simultaneously support -c and -o options?
19647compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19648
19649# Whether or not to add -lc for building shared libraries.
19650build_libtool_need_lc=$archive_cmds_need_lc_CXX
19651
19652# Whether or not to disallow shared libs when runtime libs are static.
19653allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19654
19655# Compiler flag to allow reflexive dlopens.
19656export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19657
19658# Compiler flag to generate shared objects directly from archives.
19659whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19660
19661# Whether the compiler copes with passing no objects directly.
19662compiler_needs_object=$lt_compiler_needs_object_CXX
19663
19664# Create an old-style archive from a shared archive.
19665old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19666
19667# Create a temporary old-style archive to link instead of a shared archive.
19668old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19669
19670# Commands used to build a shared archive.
19671archive_cmds=$lt_archive_cmds_CXX
19672archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19673
19674# Commands used to build a loadable module if different from building
19675# a shared archive.
19676module_cmds=$lt_module_cmds_CXX
19677module_expsym_cmds=$lt_module_expsym_cmds_CXX
19678
19679# Whether we are building with GNU ld or not.
19680with_gnu_ld=$lt_with_gnu_ld_CXX
19681
19682# Flag that allows shared libraries with undefined symbols to be built.
19683allow_undefined_flag=$lt_allow_undefined_flag_CXX
19684
19685# Flag that enforces no undefined symbols.
19686no_undefined_flag=$lt_no_undefined_flag_CXX
19687
19688# Flag to hardcode \$libdir into a binary during linking.
19689# This must work even if \$libdir does not exist
19690hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19691
19692# If ld is used when linking, flag to hardcode \$libdir into a binary
19693# during linking.  This must work even if \$libdir does not exist.
19694hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19695
19696# Whether we need a single "-rpath" flag with a separated argument.
19697hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19698
19699# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19700# DIR into the resulting binary.
19701hardcode_direct=$hardcode_direct_CXX
19702
19703# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19704# DIR into the resulting binary and the resulting library dependency is
19705# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19706# library is relocated.
19707hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19708
19709# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19710# into the resulting binary.
19711hardcode_minus_L=$hardcode_minus_L_CXX
19712
19713# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19714# into the resulting binary.
19715hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19716
19717# Set to "yes" if building a shared library automatically hardcodes DIR
19718# into the library and all subsequent libraries and executables linked
19719# against it.
19720hardcode_automatic=$hardcode_automatic_CXX
19721
19722# Set to yes if linker adds runtime paths of dependent libraries
19723# to runtime path list.
19724inherit_rpath=$inherit_rpath_CXX
19725
19726# Whether libtool must link a program against all its dependency libraries.
19727link_all_deplibs=$link_all_deplibs_CXX
19728
19729# Fix the shell variable \$srcfile for the compiler.
19730fix_srcfile_path=$lt_fix_srcfile_path_CXX
19731
19732# Set to "yes" if exported symbols are required.
19733always_export_symbols=$always_export_symbols_CXX
19734
19735# The commands to list exported symbols.
19736export_symbols_cmds=$lt_export_symbols_cmds_CXX
19737
19738# Symbols that should not be listed in the preloaded symbols.
19739exclude_expsyms=$lt_exclude_expsyms_CXX
19740
19741# Symbols that must always be exported.
19742include_expsyms=$lt_include_expsyms_CXX
19743
19744# Commands necessary for linking programs (against libraries) with templates.
19745prelink_cmds=$lt_prelink_cmds_CXX
19746
19747# Specify filename containing input files.
19748file_list_spec=$lt_file_list_spec_CXX
19749
19750# How to hardcode a shared library path into an executable.
19751hardcode_action=$hardcode_action_CXX
19752
19753# The directories searched by this compiler when creating a shared library.
19754compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19755
19756# Dependencies to place before and after the objects being linked to
19757# create a shared library.
19758predep_objects=$lt_predep_objects_CXX
19759postdep_objects=$lt_postdep_objects_CXX
19760predeps=$lt_predeps_CXX
19761postdeps=$lt_postdeps_CXX
19762
19763# The library search path used internally by the compiler when linking
19764# a shared library.
19765compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19766
19767# ### END LIBTOOL TAG CONFIG: CXX
19768_LT_EOF
19769
19770 ;;
19771    "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
19772        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
19773      esac ;;
19774
19775  esac
19776done # for ac_tag
19777
19778
19779as_fn_exit 0
19780_ACEOF
19781ac_clean_files=$ac_clean_files_save
19782
19783test $ac_write_fail = 0 ||
19784  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19785
19786
19787# configure is writing to config.log, and then calls config.status.
19788# config.status does its own redirection, appending to config.log.
19789# Unfortunately, on DOS this fails, as config.log is still kept open
19790# by configure, so config.status won't be able to write to it; its
19791# output is simply discarded.  So we exec the FD to /dev/null,
19792# effectively closing config.log, so it can be properly (re)opened and
19793# appended to by config.status.  When coming back to configure, we
19794# need to make the FD available again.
19795if test "$no_create" != yes; then
19796  ac_cs_success=:
19797  ac_config_status_args=
19798  test "$silent" = yes &&
19799    ac_config_status_args="$ac_config_status_args --quiet"
19800  exec 5>/dev/null
19801  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19802  exec 5>>config.log
19803  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19804  # would make configure fail if this is the last instruction.
19805  $ac_cs_success || as_fn_exit 1
19806fi
19807if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19808  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19809$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19810fi
19811
19812
19813