1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for scim-tables 0.5.10.
4#
5# Report bugs to <suzhe@tsinghua.org.cn>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1"
178  if (eval "$as_required") 2>/dev/null; then :
179  as_have_required=yes
180else
181  as_have_required=no
182fi
183  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189do
190  IFS=$as_save_IFS
191  test -z "$as_dir" && as_dir=.
192  as_found=:
193  case $as_dir in #(
194	 /*)
195	   for as_base in sh bash ksh sh5; do
196	     # Try only shells that exist, to save several forks.
197	     as_shell=$as_dir/$as_base
198	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200  CONFIG_SHELL=$as_shell as_have_required=yes
201		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202  break 2
203fi
204fi
205	   done;;
206       esac
207  as_found=false
208done
209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211  CONFIG_SHELL=$SHELL as_have_required=yes
212fi; }
213IFS=$as_save_IFS
214
215
216      if test "x$CONFIG_SHELL" != x; then :
217  # We cannot yet assume a decent shell, so we have to provide a
218	# neutralization value for shells without unset; and this also
219	# works around shells that cannot unset nonexistent variables.
220	# Preserve -v and -x to the replacement shell.
221	BASH_ENV=/dev/null
222	ENV=/dev/null
223	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224	export CONFIG_SHELL
225	case $- in # ((((
226	  *v*x* | *x*v* ) as_opts=-vx ;;
227	  *v* ) as_opts=-v ;;
228	  *x* ) as_opts=-x ;;
229	  * ) as_opts= ;;
230	esac
231	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232fi
233
234    if test x$as_have_required = xno; then :
235  $as_echo "$0: This script requires a shell more modern than all"
236  $as_echo "$0: the shells that I found on your system."
237  if test x${ZSH_VERSION+set} = xset ; then
238    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240  else
241    $as_echo "$0: Please tell bug-autoconf@gnu.org and
242$0: suzhe@tsinghua.org.cn about your system, including any
243$0: error possibly output before this message. Then install
244$0: a modern shell, or manually run the script under such a
245$0: shell if you do have one."
246  fi
247  exit 1
248fi
249fi
250fi
251SHELL=${CONFIG_SHELL-/bin/sh}
252export SHELL
253# Unset more variables known to interfere with behavior of common tools.
254CLICOLOR_FORCE= GREP_OPTIONS=
255unset CLICOLOR_FORCE GREP_OPTIONS
256
257## --------------------- ##
258## M4sh Shell Functions. ##
259## --------------------- ##
260# as_fn_unset VAR
261# ---------------
262# Portably unset VAR.
263as_fn_unset ()
264{
265  { eval $1=; unset $1;}
266}
267as_unset=as_fn_unset
268
269# as_fn_set_status STATUS
270# -----------------------
271# Set $? to STATUS, without forking.
272as_fn_set_status ()
273{
274  return $1
275} # as_fn_set_status
276
277# as_fn_exit STATUS
278# -----------------
279# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280as_fn_exit ()
281{
282  set +e
283  as_fn_set_status $1
284  exit $1
285} # as_fn_exit
286
287# as_fn_mkdir_p
288# -------------
289# Create "$as_dir" as a directory, including parents if necessary.
290as_fn_mkdir_p ()
291{
292
293  case $as_dir in #(
294  -*) as_dir=./$as_dir;;
295  esac
296  test -d "$as_dir" || eval $as_mkdir_p || {
297    as_dirs=
298    while :; do
299      case $as_dir in #(
300      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301      *) as_qdir=$as_dir;;
302      esac
303      as_dirs="'$as_qdir' $as_dirs"
304      as_dir=`$as_dirname -- "$as_dir" ||
305$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306	 X"$as_dir" : 'X\(//\)[^/]' \| \
307	 X"$as_dir" : 'X\(//\)$' \| \
308	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309$as_echo X"$as_dir" |
310    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311	    s//\1/
312	    q
313	  }
314	  /^X\(\/\/\)[^/].*/{
315	    s//\1/
316	    q
317	  }
318	  /^X\(\/\/\)$/{
319	    s//\1/
320	    q
321	  }
322	  /^X\(\/\).*/{
323	    s//\1/
324	    q
325	  }
326	  s/.*/./; q'`
327      test -d "$as_dir" && break
328    done
329    test -z "$as_dirs" || eval "mkdir $as_dirs"
330  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331
332
333} # as_fn_mkdir_p
334# as_fn_append VAR VALUE
335# ----------------------
336# Append the text in VALUE to the end of the definition contained in VAR. Take
337# advantage of any shell optimizations that allow amortized linear growth over
338# repeated appends, instead of the typical quadratic growth present in naive
339# implementations.
340if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341  eval 'as_fn_append ()
342  {
343    eval $1+=\$2
344  }'
345else
346  as_fn_append ()
347  {
348    eval $1=\$$1\$2
349  }
350fi # as_fn_append
351
352# as_fn_arith ARG...
353# ------------------
354# Perform arithmetic evaluation on the ARGs, and store the result in the
355# global $as_val. Take advantage of shells that can avoid forks. The arguments
356# must be portable across $(()) and expr.
357if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358  eval 'as_fn_arith ()
359  {
360    as_val=$(( $* ))
361  }'
362else
363  as_fn_arith ()
364  {
365    as_val=`expr "$@" || test $? -eq 1`
366  }
367fi # as_fn_arith
368
369
370# as_fn_error STATUS ERROR [LINENO LOG_FD]
371# ----------------------------------------
372# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374# script with STATUS, using 1 if that was 0.
375as_fn_error ()
376{
377  as_status=$1; test $as_status -eq 0 && as_status=1
378  if test "$4"; then
379    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381  fi
382  $as_echo "$as_me: error: $2" >&2
383  as_fn_exit $as_status
384} # as_fn_error
385
386if expr a : '\(a\)' >/dev/null 2>&1 &&
387   test "X`expr 00001 : '.*\(...\)'`" = X001; then
388  as_expr=expr
389else
390  as_expr=false
391fi
392
393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394  as_basename=basename
395else
396  as_basename=false
397fi
398
399if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400  as_dirname=dirname
401else
402  as_dirname=false
403fi
404
405as_me=`$as_basename -- "$0" ||
406$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407	 X"$0" : 'X\(//\)$' \| \
408	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409$as_echo X/"$0" |
410    sed '/^.*\/\([^/][^/]*\)\/*$/{
411	    s//\1/
412	    q
413	  }
414	  /^X\/\(\/\/\)$/{
415	    s//\1/
416	    q
417	  }
418	  /^X\/\(\/\).*/{
419	    s//\1/
420	    q
421	  }
422	  s/.*/./; q'`
423
424# Avoid depending upon Character Ranges.
425as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428as_cr_digits='0123456789'
429as_cr_alnum=$as_cr_Letters$as_cr_digits
430
431
432  as_lineno_1=$LINENO as_lineno_1a=$LINENO
433  as_lineno_2=$LINENO as_lineno_2a=$LINENO
434  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
437  sed -n '
438    p
439    /[$]LINENO/=
440  ' <$as_myself |
441    sed '
442      s/[$]LINENO.*/&-/
443      t lineno
444      b
445      :lineno
446      N
447      :loop
448      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449      t loop
450      s/-\n.*//
451    ' >$as_me.lineno &&
452  chmod +x "$as_me.lineno" ||
453    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454
455  # Don't try to exec as it changes $[0], causing all sort of problems
456  # (the dirname of $[0] is not the place where we might find the
457  # original and so on.  Autoconf is especially sensitive to this).
458  . "./$as_me.lineno"
459  # Exit status is that of the last command.
460  exit
461}
462
463ECHO_C= ECHO_N= ECHO_T=
464case `echo -n x` in #(((((
465-n*)
466  case `echo 'xy\c'` in
467  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
468  xy)  ECHO_C='\c';;
469  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
470       ECHO_T='	';;
471  esac;;
472*)
473  ECHO_N='-n';;
474esac
475
476rm -f conf$$ conf$$.exe conf$$.file
477if test -d conf$$.dir; then
478  rm -f conf$$.dir/conf$$.file
479else
480  rm -f conf$$.dir
481  mkdir conf$$.dir 2>/dev/null
482fi
483if (echo >conf$$.file) 2>/dev/null; then
484  if ln -s conf$$.file conf$$ 2>/dev/null; then
485    as_ln_s='ln -s'
486    # ... but there are two gotchas:
487    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489    # In both cases, we have to default to `cp -p'.
490    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491      as_ln_s='cp -p'
492  elif ln conf$$.file conf$$ 2>/dev/null; then
493    as_ln_s=ln
494  else
495    as_ln_s='cp -p'
496  fi
497else
498  as_ln_s='cp -p'
499fi
500rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501rmdir conf$$.dir 2>/dev/null
502
503if mkdir -p . 2>/dev/null; then
504  as_mkdir_p='mkdir -p "$as_dir"'
505else
506  test -d ./-p && rmdir ./-p
507  as_mkdir_p=false
508fi
509
510if test -x / >/dev/null 2>&1; then
511  as_test_x='test -x'
512else
513  if ls -dL / >/dev/null 2>&1; then
514    as_ls_L_option=L
515  else
516    as_ls_L_option=
517  fi
518  as_test_x='
519    eval sh -c '\''
520      if test -d "$1"; then
521	test -d "$1/.";
522      else
523	case $1 in #(
524	-*)set "./$1";;
525	esac;
526	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527	???[sx]*):;;*)false;;esac;fi
528    '\'' sh
529  '
530fi
531as_executable_p=$as_test_x
532
533# Sed expression to map a string onto a valid CPP name.
534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536# Sed expression to map a string onto a valid variable name.
537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541# Check that we are running under the correct shell.
542SHELL=${CONFIG_SHELL-/bin/sh}
543
544case X$lt_ECHO in
545X*--fallback-echo)
546  # Remove one level of quotation (which was required for Make).
547  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
548  ;;
549esac
550
551ECHO=${lt_ECHO-echo}
552if test "X$1" = X--no-reexec; then
553  # Discard the --no-reexec flag, and continue.
554  shift
555elif test "X$1" = X--fallback-echo; then
556  # Avoid inline document here, it may be left over
557  :
558elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
559  # Yippee, $ECHO works!
560  :
561else
562  # Restart under the correct shell.
563  exec $SHELL "$0" --no-reexec ${1+"$@"}
564fi
565
566if test "X$1" = X--fallback-echo; then
567  # used as fallback echo
568  shift
569  cat <<_LT_EOF
570$*
571_LT_EOF
572  exit 0
573fi
574
575# The HP-UX ksh and POSIX shell print the target directory to stdout
576# if CDPATH is set.
577(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
578
579if test -z "$lt_ECHO"; then
580  if test "X${echo_test_string+set}" != Xset; then
581    # find a string as large as possible, as long as the shell can cope with it
582    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
583      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
584      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
585	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
586      then
587        break
588      fi
589    done
590  fi
591
592  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
593     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
594     test "X$echo_testing_string" = "X$echo_test_string"; then
595    :
596  else
597    # The Solaris, AIX, and Digital Unix default echo programs unquote
598    # backslashes.  This makes it impossible to quote backslashes using
599    #   echo "$something" | sed 's/\\/\\\\/g'
600    #
601    # So, first we look for a working echo in the user's PATH.
602
603    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
604    for dir in $PATH /usr/ucb; do
605      IFS="$lt_save_ifs"
606      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
607         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
608         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
609         test "X$echo_testing_string" = "X$echo_test_string"; then
610        ECHO="$dir/echo"
611        break
612      fi
613    done
614    IFS="$lt_save_ifs"
615
616    if test "X$ECHO" = Xecho; then
617      # We didn't find a better echo, so look for alternatives.
618      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
619         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
620         test "X$echo_testing_string" = "X$echo_test_string"; then
621        # This shell has a builtin print -r that does the trick.
622        ECHO='print -r'
623      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
624	   test "X$CONFIG_SHELL" != X/bin/ksh; then
625        # If we have ksh, try running configure again with it.
626        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
627        export ORIGINAL_CONFIG_SHELL
628        CONFIG_SHELL=/bin/ksh
629        export CONFIG_SHELL
630        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
631      else
632        # Try using printf.
633        ECHO='printf %s\n'
634        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
635	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
636	   test "X$echo_testing_string" = "X$echo_test_string"; then
637	  # Cool, printf works
638	  :
639        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
640	     test "X$echo_testing_string" = 'X\t' &&
641	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
642	     test "X$echo_testing_string" = "X$echo_test_string"; then
643	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
644	  export CONFIG_SHELL
645	  SHELL="$CONFIG_SHELL"
646	  export SHELL
647	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
648        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
649	     test "X$echo_testing_string" = 'X\t' &&
650	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
651	     test "X$echo_testing_string" = "X$echo_test_string"; then
652	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
653        else
654	  # maybe with a smaller string...
655	  prev=:
656
657	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
658	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
659	    then
660	      break
661	    fi
662	    prev="$cmd"
663	  done
664
665	  if test "$prev" != 'sed 50q "$0"'; then
666	    echo_test_string=`eval $prev`
667	    export echo_test_string
668	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
669	  else
670	    # Oops.  We lost completely, so just stick with echo.
671	    ECHO=echo
672	  fi
673        fi
674      fi
675    fi
676  fi
677fi
678
679# Copy echo and quote the copy suitably for passing to libtool from
680# the Makefile, instead of quoting the original, which is used later.
681lt_ECHO=$ECHO
682if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
683   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
684fi
685
686
687
688
689lt_ltdl_dir='libltdl'
690
691lt_dlopen_dir="$lt_ltdl_dir"
692
693test -n "$DJDIR" || exec 7<&0 </dev/null
694exec 6>&1
695
696# Name of the host.
697# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
698# so uname gets run too.
699ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
700
701#
702# Initializations.
703#
704ac_default_prefix=/usr/local
705ac_clean_files=
706ac_config_libobj_dir=.
707LIBOBJS=
708cross_compiling=no
709subdirs=
710MFLAGS=
711MAKEFLAGS=
712
713# Identity of this package.
714PACKAGE_NAME='scim-tables'
715PACKAGE_TARNAME='scim-tables'
716PACKAGE_VERSION='0.5.10'
717PACKAGE_STRING='scim-tables 0.5.10'
718PACKAGE_BUGREPORT='suzhe@tsinghua.org.cn'
719PACKAGE_URL=''
720
721ac_unique_file="src/scim_table_imengine.h"
722# Factoring default headers for most tests.
723ac_includes_default="\
724#include <stdio.h>
725#ifdef HAVE_SYS_TYPES_H
726# include <sys/types.h>
727#endif
728#ifdef HAVE_SYS_STAT_H
729# include <sys/stat.h>
730#endif
731#ifdef STDC_HEADERS
732# include <stdlib.h>
733# include <stddef.h>
734#else
735# ifdef HAVE_STDLIB_H
736#  include <stdlib.h>
737# endif
738#endif
739#ifdef HAVE_STRING_H
740# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
741#  include <memory.h>
742# endif
743# include <string.h>
744#endif
745#ifdef HAVE_STRINGS_H
746# include <strings.h>
747#endif
748#ifdef HAVE_INTTYPES_H
749# include <inttypes.h>
750#endif
751#ifdef HAVE_STDINT_H
752# include <stdint.h>
753#endif
754#ifdef HAVE_UNISTD_H
755# include <unistd.h>
756#endif"
757
758ac_header_list=
759enable_option_checking=no
760ac_subst_vars='ltdl_LTLIBOBJS
761ltdl_LIBOBJS
762am__EXEEXT_FALSE
763am__EXEEXT_TRUE
764LTLIBOBJS
765LIBOBJS
766SCIM_TABLES_ENABLE_SKIM_SUPPORT
767SCIM_TABLES_ENABLE_SKIM_SUPPORT_FALSE
768SCIM_TABLES_ENABLE_SKIM_SUPPORT_TRUE
769SCIM_KDEUTILS_LIBS
770SCIM_KDEUTILS_CFLAGS
771SKIM_LIBS
772SKIM_CFLAGS
773KDEDIR
774SCIM_TABLEDIR
775SCIM_DATADIR
776SCIM_MODULEDIR
777SCIM_ICONDIR
778SCIM_BUILD_SKIM_SETUP_FALSE
779SCIM_BUILD_SKIM_SETUP_TRUE
780LIBTOOL_EXPORT_OPTIONS
781SCIM_BUILD_SETUP
782SCIM_BUILD_SETUP_FALSE
783SCIM_BUILD_SETUP_TRUE
784SCIM_GTKUTILS_LIBS
785SCIM_GTKUTILS_CFLAGS
786SCIM_LIBS
787SCIM_CFLAGS
788PKG_CONFIG_LIBDIR
789PKG_CONFIG_PATH
790PKG_CONFIG
791CXXCPP
792am__fastdepCXX_FALSE
793am__fastdepCXX_TRUE
794CXXDEPMODE
795ac_ct_CXX
796CXXFLAGS
797CXX
798LIBTOOL_DEPS
799LTDLOPEN
800LT_CONFIG_H
801subdirs
802CONVENIENCE_LTDL_FALSE
803CONVENIENCE_LTDL_TRUE
804INSTALL_LTDL_FALSE
805INSTALL_LTDL_TRUE
806ARGZ_H
807sys_symbol_underscore
808LIBADD_DL
809LT_DLPREOPEN
810LIBADD_DLD_LINK
811LIBADD_SHL_LOAD
812LIBADD_DLOPEN
813LT_DLLOADERS
814INCLTDL
815LTDLINCL
816LTDLDEPS
817LIBLTDL
818OTOOL64
819OTOOL
820LIPO
821NMEDIT
822DSYMUTIL
823lt_ECHO
824AR
825LN_S
826NM
827ac_ct_DUMPBIN
828DUMPBIN
829LD
830FGREP
831SED
832LIBTOOL
833OBJDUMP
834DLLTOOL
835AS
836POSUB
837LTLIBINTL
838LIBINTL
839INTLLIBS
840INTL_LIBTOOL_SUFFIX_PREFIX
841INTLOBJS
842GENCAT
843INSTOBJEXT
844DATADIRNAME
845CATOBJEXT
846USE_INCLUDED_LIBINTL
847BUILD_INCLUDED_LIBINTL
848INTLBISON
849LTLIBICONV
850LIBICONV
851HAVE_WPRINTF
852HAVE_SNPRINTF
853HAVE_ASPRINTF
854HAVE_POSIX_PRINTF
855GLIBC21
856ALLOCA
857EGREP
858GREP
859CPP
860RANLIB
861host_os
862host_vendor
863host_cpu
864host
865build_os
866build_vendor
867build_cpu
868build
869am__fastdepCC_FALSE
870am__fastdepCC_TRUE
871CCDEPMODE
872AMDEPBACKSLASH
873AMDEP_FALSE
874AMDEP_TRUE
875am__quote
876am__include
877DEPDIR
878OBJEXT
879EXEEXT
880ac_ct_CC
881CPPFLAGS
882LDFLAGS
883CFLAGS
884CC
885MSGMERGE
886XGETTEXT
887GMSGFMT
888MSGFMT
889USE_NLS
890MKINSTALLDIRS
891am__untar
892am__tar
893AMTAR
894am__leading_dot
895SET_MAKE
896AWK
897mkdir_p
898MKDIR_P
899INSTALL_STRIP_PROGRAM
900STRIP
901install_sh
902MAKEINFO
903AUTOHEADER
904AUTOMAKE
905AUTOCONF
906ACLOCAL
907VERSION
908PACKAGE
909CYGPATH_W
910am__isrc
911INSTALL_DATA
912INSTALL_SCRIPT
913INSTALL_PROGRAM
914GETTEXT_PACKAGE
915SCIM_VERSION
916target_alias
917host_alias
918build_alias
919LIBS
920ECHO_T
921ECHO_N
922ECHO_C
923DEFS
924mandir
925localedir
926libdir
927psdir
928pdfdir
929dvidir
930htmldir
931infodir
932docdir
933oldincludedir
934includedir
935localstatedir
936sharedstatedir
937sysconfdir
938datadir
939datarootdir
940libexecdir
941sbindir
942bindir
943program_transform_name
944prefix
945exec_prefix
946PACKAGE_URL
947PACKAGE_BUGREPORT
948PACKAGE_STRING
949PACKAGE_VERSION
950PACKAGE_TARNAME
951PACKAGE_NAME
952PATH_SEPARATOR
953SHELL'
954ac_subst_files=''
955ac_user_opts='
956enable_option_checking
957enable_nls
958enable_dependency_tracking
959with_gnu_ld
960enable_rpath
961with_libiconv_prefix
962with_included_gettext
963with_libintl_prefix
964enable_shared
965enable_static
966with_pic
967enable_fast_install
968enable_libtool_lock
969with_included_ltdl
970with_ltdl_include
971with_ltdl_lib
972enable_ltdl_install
973enable_debug
974enable_skim_support
975'
976      ac_precious_vars='build_alias
977host_alias
978target_alias
979CC
980CFLAGS
981LDFLAGS
982LIBS
983CPPFLAGS
984CPP
985CXX
986CXXFLAGS
987CCC
988CXXCPP
989PKG_CONFIG
990PKG_CONFIG_PATH
991PKG_CONFIG_LIBDIR
992SCIM_CFLAGS
993SCIM_LIBS
994SCIM_GTKUTILS_CFLAGS
995SCIM_GTKUTILS_LIBS
996SKIM_CFLAGS
997SKIM_LIBS
998SCIM_KDEUTILS_CFLAGS
999SCIM_KDEUTILS_LIBS'
1000ac_subdirs_all='libltdl
1001skim'
1002
1003# Initialize some variables set by options.
1004ac_init_help=
1005ac_init_version=false
1006ac_unrecognized_opts=
1007ac_unrecognized_sep=
1008# The variables have the same names as the options, with
1009# dashes changed to underlines.
1010cache_file=/dev/null
1011exec_prefix=NONE
1012no_create=
1013no_recursion=
1014prefix=NONE
1015program_prefix=NONE
1016program_suffix=NONE
1017program_transform_name=s,x,x,
1018silent=
1019site=
1020srcdir=
1021verbose=
1022x_includes=NONE
1023x_libraries=NONE
1024
1025# Installation directory options.
1026# These are left unexpanded so users can "make install exec_prefix=/foo"
1027# and all the variables that are supposed to be based on exec_prefix
1028# by default will actually change.
1029# Use braces instead of parens because sh, perl, etc. also accept them.
1030# (The list follows the same order as the GNU Coding Standards.)
1031bindir='${exec_prefix}/bin'
1032sbindir='${exec_prefix}/sbin'
1033libexecdir='${exec_prefix}/libexec'
1034datarootdir='${prefix}/share'
1035datadir='${datarootdir}'
1036sysconfdir='${prefix}/etc'
1037sharedstatedir='${prefix}/com'
1038localstatedir='${prefix}/var'
1039includedir='${prefix}/include'
1040oldincludedir='/usr/include'
1041docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1042infodir='${datarootdir}/info'
1043htmldir='${docdir}'
1044dvidir='${docdir}'
1045pdfdir='${docdir}'
1046psdir='${docdir}'
1047libdir='${exec_prefix}/lib'
1048localedir='${datarootdir}/locale'
1049mandir='${datarootdir}/man'
1050
1051ac_prev=
1052ac_dashdash=
1053for ac_option
1054do
1055  # If the previous option needs an argument, assign it.
1056  if test -n "$ac_prev"; then
1057    eval $ac_prev=\$ac_option
1058    ac_prev=
1059    continue
1060  fi
1061
1062  case $ac_option in
1063  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1064  *=)   ac_optarg= ;;
1065  *)    ac_optarg=yes ;;
1066  esac
1067
1068  # Accept the important Cygnus configure options, so we can diagnose typos.
1069
1070  case $ac_dashdash$ac_option in
1071  --)
1072    ac_dashdash=yes ;;
1073
1074  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1075    ac_prev=bindir ;;
1076  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1077    bindir=$ac_optarg ;;
1078
1079  -build | --build | --buil | --bui | --bu)
1080    ac_prev=build_alias ;;
1081  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1082    build_alias=$ac_optarg ;;
1083
1084  -cache-file | --cache-file | --cache-fil | --cache-fi \
1085  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1086    ac_prev=cache_file ;;
1087  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1088  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1089    cache_file=$ac_optarg ;;
1090
1091  --config-cache | -C)
1092    cache_file=config.cache ;;
1093
1094  -datadir | --datadir | --datadi | --datad)
1095    ac_prev=datadir ;;
1096  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1097    datadir=$ac_optarg ;;
1098
1099  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1100  | --dataroo | --dataro | --datar)
1101    ac_prev=datarootdir ;;
1102  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1103  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1104    datarootdir=$ac_optarg ;;
1105
1106  -disable-* | --disable-*)
1107    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1108    # Reject names that are not valid shell variable names.
1109    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110      as_fn_error $? "invalid feature name: $ac_useropt"
1111    ac_useropt_orig=$ac_useropt
1112    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113    case $ac_user_opts in
1114      *"
1115"enable_$ac_useropt"
1116"*) ;;
1117      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1118	 ac_unrecognized_sep=', ';;
1119    esac
1120    eval enable_$ac_useropt=no ;;
1121
1122  -docdir | --docdir | --docdi | --doc | --do)
1123    ac_prev=docdir ;;
1124  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1125    docdir=$ac_optarg ;;
1126
1127  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1128    ac_prev=dvidir ;;
1129  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1130    dvidir=$ac_optarg ;;
1131
1132  -enable-* | --enable-*)
1133    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1134    # Reject names that are not valid shell variable names.
1135    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136      as_fn_error $? "invalid feature name: $ac_useropt"
1137    ac_useropt_orig=$ac_useropt
1138    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139    case $ac_user_opts in
1140      *"
1141"enable_$ac_useropt"
1142"*) ;;
1143      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1144	 ac_unrecognized_sep=', ';;
1145    esac
1146    eval enable_$ac_useropt=\$ac_optarg ;;
1147
1148  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1149  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1150  | --exec | --exe | --ex)
1151    ac_prev=exec_prefix ;;
1152  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1153  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1154  | --exec=* | --exe=* | --ex=*)
1155    exec_prefix=$ac_optarg ;;
1156
1157  -gas | --gas | --ga | --g)
1158    # Obsolete; use --with-gas.
1159    with_gas=yes ;;
1160
1161  -help | --help | --hel | --he | -h)
1162    ac_init_help=long ;;
1163  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1164    ac_init_help=recursive ;;
1165  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1166    ac_init_help=short ;;
1167
1168  -host | --host | --hos | --ho)
1169    ac_prev=host_alias ;;
1170  -host=* | --host=* | --hos=* | --ho=*)
1171    host_alias=$ac_optarg ;;
1172
1173  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1174    ac_prev=htmldir ;;
1175  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1176  | --ht=*)
1177    htmldir=$ac_optarg ;;
1178
1179  -includedir | --includedir | --includedi | --included | --include \
1180  | --includ | --inclu | --incl | --inc)
1181    ac_prev=includedir ;;
1182  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1183  | --includ=* | --inclu=* | --incl=* | --inc=*)
1184    includedir=$ac_optarg ;;
1185
1186  -infodir | --infodir | --infodi | --infod | --info | --inf)
1187    ac_prev=infodir ;;
1188  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1189    infodir=$ac_optarg ;;
1190
1191  -libdir | --libdir | --libdi | --libd)
1192    ac_prev=libdir ;;
1193  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1194    libdir=$ac_optarg ;;
1195
1196  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1197  | --libexe | --libex | --libe)
1198    ac_prev=libexecdir ;;
1199  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1200  | --libexe=* | --libex=* | --libe=*)
1201    libexecdir=$ac_optarg ;;
1202
1203  -localedir | --localedir | --localedi | --localed | --locale)
1204    ac_prev=localedir ;;
1205  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1206    localedir=$ac_optarg ;;
1207
1208  -localstatedir | --localstatedir | --localstatedi | --localstated \
1209  | --localstate | --localstat | --localsta | --localst | --locals)
1210    ac_prev=localstatedir ;;
1211  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1212  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1213    localstatedir=$ac_optarg ;;
1214
1215  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1216    ac_prev=mandir ;;
1217  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1218    mandir=$ac_optarg ;;
1219
1220  -nfp | --nfp | --nf)
1221    # Obsolete; use --without-fp.
1222    with_fp=no ;;
1223
1224  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1225  | --no-cr | --no-c | -n)
1226    no_create=yes ;;
1227
1228  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1229  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1230    no_recursion=yes ;;
1231
1232  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1233  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1234  | --oldin | --oldi | --old | --ol | --o)
1235    ac_prev=oldincludedir ;;
1236  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1237  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1238  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1239    oldincludedir=$ac_optarg ;;
1240
1241  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1242    ac_prev=prefix ;;
1243  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1244    prefix=$ac_optarg ;;
1245
1246  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1247  | --program-pre | --program-pr | --program-p)
1248    ac_prev=program_prefix ;;
1249  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1250  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1251    program_prefix=$ac_optarg ;;
1252
1253  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1254  | --program-suf | --program-su | --program-s)
1255    ac_prev=program_suffix ;;
1256  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1257  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1258    program_suffix=$ac_optarg ;;
1259
1260  -program-transform-name | --program-transform-name \
1261  | --program-transform-nam | --program-transform-na \
1262  | --program-transform-n | --program-transform- \
1263  | --program-transform | --program-transfor \
1264  | --program-transfo | --program-transf \
1265  | --program-trans | --program-tran \
1266  | --progr-tra | --program-tr | --program-t)
1267    ac_prev=program_transform_name ;;
1268  -program-transform-name=* | --program-transform-name=* \
1269  | --program-transform-nam=* | --program-transform-na=* \
1270  | --program-transform-n=* | --program-transform-=* \
1271  | --program-transform=* | --program-transfor=* \
1272  | --program-transfo=* | --program-transf=* \
1273  | --program-trans=* | --program-tran=* \
1274  | --progr-tra=* | --program-tr=* | --program-t=*)
1275    program_transform_name=$ac_optarg ;;
1276
1277  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1278    ac_prev=pdfdir ;;
1279  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1280    pdfdir=$ac_optarg ;;
1281
1282  -psdir | --psdir | --psdi | --psd | --ps)
1283    ac_prev=psdir ;;
1284  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1285    psdir=$ac_optarg ;;
1286
1287  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1288  | -silent | --silent | --silen | --sile | --sil)
1289    silent=yes ;;
1290
1291  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1292    ac_prev=sbindir ;;
1293  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1294  | --sbi=* | --sb=*)
1295    sbindir=$ac_optarg ;;
1296
1297  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1298  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1299  | --sharedst | --shareds | --shared | --share | --shar \
1300  | --sha | --sh)
1301    ac_prev=sharedstatedir ;;
1302  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1303  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1304  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1305  | --sha=* | --sh=*)
1306    sharedstatedir=$ac_optarg ;;
1307
1308  -site | --site | --sit)
1309    ac_prev=site ;;
1310  -site=* | --site=* | --sit=*)
1311    site=$ac_optarg ;;
1312
1313  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1314    ac_prev=srcdir ;;
1315  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1316    srcdir=$ac_optarg ;;
1317
1318  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1319  | --syscon | --sysco | --sysc | --sys | --sy)
1320    ac_prev=sysconfdir ;;
1321  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1322  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1323    sysconfdir=$ac_optarg ;;
1324
1325  -target | --target | --targe | --targ | --tar | --ta | --t)
1326    ac_prev=target_alias ;;
1327  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1328    target_alias=$ac_optarg ;;
1329
1330  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1331    verbose=yes ;;
1332
1333  -version | --version | --versio | --versi | --vers | -V)
1334    ac_init_version=: ;;
1335
1336  -with-* | --with-*)
1337    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1338    # Reject names that are not valid shell variable names.
1339    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1340      as_fn_error $? "invalid package name: $ac_useropt"
1341    ac_useropt_orig=$ac_useropt
1342    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1343    case $ac_user_opts in
1344      *"
1345"with_$ac_useropt"
1346"*) ;;
1347      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1348	 ac_unrecognized_sep=', ';;
1349    esac
1350    eval with_$ac_useropt=\$ac_optarg ;;
1351
1352  -without-* | --without-*)
1353    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1354    # Reject names that are not valid shell variable names.
1355    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1356      as_fn_error $? "invalid package name: $ac_useropt"
1357    ac_useropt_orig=$ac_useropt
1358    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1359    case $ac_user_opts in
1360      *"
1361"with_$ac_useropt"
1362"*) ;;
1363      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1364	 ac_unrecognized_sep=', ';;
1365    esac
1366    eval with_$ac_useropt=no ;;
1367
1368  --x)
1369    # Obsolete; use --with-x.
1370    with_x=yes ;;
1371
1372  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1373  | --x-incl | --x-inc | --x-in | --x-i)
1374    ac_prev=x_includes ;;
1375  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1376  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1377    x_includes=$ac_optarg ;;
1378
1379  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1380  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1381    ac_prev=x_libraries ;;
1382  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1383  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1384    x_libraries=$ac_optarg ;;
1385
1386  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1387Try \`$0 --help' for more information"
1388    ;;
1389
1390  *=*)
1391    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1392    # Reject names that are not valid shell variable names.
1393    case $ac_envvar in #(
1394      '' | [0-9]* | *[!_$as_cr_alnum]* )
1395      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1396    esac
1397    eval $ac_envvar=\$ac_optarg
1398    export $ac_envvar ;;
1399
1400  *)
1401    # FIXME: should be removed in autoconf 3.0.
1402    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1403    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1404      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1405    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1406    ;;
1407
1408  esac
1409done
1410
1411if test -n "$ac_prev"; then
1412  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1413  as_fn_error $? "missing argument to $ac_option"
1414fi
1415
1416if test -n "$ac_unrecognized_opts"; then
1417  case $enable_option_checking in
1418    no) ;;
1419    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1420    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1421  esac
1422fi
1423
1424# Check all directory arguments for consistency.
1425for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1426		datadir sysconfdir sharedstatedir localstatedir includedir \
1427		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1428		libdir localedir mandir
1429do
1430  eval ac_val=\$$ac_var
1431  # Remove trailing slashes.
1432  case $ac_val in
1433    */ )
1434      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1435      eval $ac_var=\$ac_val;;
1436  esac
1437  # Be sure to have absolute directory names.
1438  case $ac_val in
1439    [\\/$]* | ?:[\\/]* )  continue;;
1440    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1441  esac
1442  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1443done
1444
1445# There might be people who depend on the old broken behavior: `$host'
1446# used to hold the argument of --host etc.
1447# FIXME: To remove some day.
1448build=$build_alias
1449host=$host_alias
1450target=$target_alias
1451
1452# FIXME: To remove some day.
1453if test "x$host_alias" != x; then
1454  if test "x$build_alias" = x; then
1455    cross_compiling=maybe
1456    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1457    If a cross compiler is detected then cross compile mode will be used" >&2
1458  elif test "x$build_alias" != "x$host_alias"; then
1459    cross_compiling=yes
1460  fi
1461fi
1462
1463ac_tool_prefix=
1464test -n "$host_alias" && ac_tool_prefix=$host_alias-
1465
1466test "$silent" = yes && exec 6>/dev/null
1467
1468
1469ac_pwd=`pwd` && test -n "$ac_pwd" &&
1470ac_ls_di=`ls -di .` &&
1471ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1472  as_fn_error $? "working directory cannot be determined"
1473test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1474  as_fn_error $? "pwd does not report name of working directory"
1475
1476
1477# Find the source files, if location was not specified.
1478if test -z "$srcdir"; then
1479  ac_srcdir_defaulted=yes
1480  # Try the directory containing this script, then the parent directory.
1481  ac_confdir=`$as_dirname -- "$as_myself" ||
1482$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1483	 X"$as_myself" : 'X\(//\)[^/]' \| \
1484	 X"$as_myself" : 'X\(//\)$' \| \
1485	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1486$as_echo X"$as_myself" |
1487    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1488	    s//\1/
1489	    q
1490	  }
1491	  /^X\(\/\/\)[^/].*/{
1492	    s//\1/
1493	    q
1494	  }
1495	  /^X\(\/\/\)$/{
1496	    s//\1/
1497	    q
1498	  }
1499	  /^X\(\/\).*/{
1500	    s//\1/
1501	    q
1502	  }
1503	  s/.*/./; q'`
1504  srcdir=$ac_confdir
1505  if test ! -r "$srcdir/$ac_unique_file"; then
1506    srcdir=..
1507  fi
1508else
1509  ac_srcdir_defaulted=no
1510fi
1511if test ! -r "$srcdir/$ac_unique_file"; then
1512  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1513  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1514fi
1515ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1516ac_abs_confdir=`(
1517	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1518	pwd)`
1519# When building in place, set srcdir=.
1520if test "$ac_abs_confdir" = "$ac_pwd"; then
1521  srcdir=.
1522fi
1523# Remove unnecessary trailing slashes from srcdir.
1524# Double slashes in file names in object file debugging info
1525# mess up M-x gdb in Emacs.
1526case $srcdir in
1527*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1528esac
1529for ac_var in $ac_precious_vars; do
1530  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1531  eval ac_env_${ac_var}_value=\$${ac_var}
1532  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1533  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1534done
1535
1536#
1537# Report the --help message.
1538#
1539if test "$ac_init_help" = "long"; then
1540  # Omit some internal or obsolete options to make the list less imposing.
1541  # This message is too long to be a string in the A/UX 3.1 sh.
1542  cat <<_ACEOF
1543\`configure' configures scim-tables 0.5.10 to adapt to many kinds of systems.
1544
1545Usage: $0 [OPTION]... [VAR=VALUE]...
1546
1547To assign environment variables (e.g., CC, CFLAGS...), specify them as
1548VAR=VALUE.  See below for descriptions of some of the useful variables.
1549
1550Defaults for the options are specified in brackets.
1551
1552Configuration:
1553  -h, --help              display this help and exit
1554      --help=short        display options specific to this package
1555      --help=recursive    display the short help of all the included packages
1556  -V, --version           display version information and exit
1557  -q, --quiet, --silent   do not print \`checking ...' messages
1558      --cache-file=FILE   cache test results in FILE [disabled]
1559  -C, --config-cache      alias for \`--cache-file=config.cache'
1560  -n, --no-create         do not create output files
1561      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1562
1563Installation directories:
1564  --prefix=PREFIX         install architecture-independent files in PREFIX
1565                          [$ac_default_prefix]
1566  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1567                          [PREFIX]
1568
1569By default, \`make install' will install all the files in
1570\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1571an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1572for instance \`--prefix=\$HOME'.
1573
1574For better control, use the options below.
1575
1576Fine tuning of the installation directories:
1577  --bindir=DIR            user executables [EPREFIX/bin]
1578  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1579  --libexecdir=DIR        program executables [EPREFIX/libexec]
1580  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1581  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1582  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1583  --libdir=DIR            object code libraries [EPREFIX/lib]
1584  --includedir=DIR        C header files [PREFIX/include]
1585  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1586  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1587  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1588  --infodir=DIR           info documentation [DATAROOTDIR/info]
1589  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1590  --mandir=DIR            man documentation [DATAROOTDIR/man]
1591  --docdir=DIR            documentation root [DATAROOTDIR/doc/scim-tables]
1592  --htmldir=DIR           html documentation [DOCDIR]
1593  --dvidir=DIR            dvi documentation [DOCDIR]
1594  --pdfdir=DIR            pdf documentation [DOCDIR]
1595  --psdir=DIR             ps documentation [DOCDIR]
1596_ACEOF
1597
1598  cat <<\_ACEOF
1599
1600Program names:
1601  --program-prefix=PREFIX            prepend PREFIX to installed program names
1602  --program-suffix=SUFFIX            append SUFFIX to installed program names
1603  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1604
1605System types:
1606  --build=BUILD     configure for building on BUILD [guessed]
1607  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1608_ACEOF
1609fi
1610
1611if test -n "$ac_init_help"; then
1612  case $ac_init_help in
1613     short | recursive ) echo "Configuration of scim-tables 0.5.10:";;
1614   esac
1615  cat <<\_ACEOF
1616
1617Optional Features:
1618  --disable-option-checking  ignore unrecognized --enable/--with options
1619  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1620  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1621  --disable-nls           do not use Native Language Support
1622  --disable-dependency-tracking  speeds up one-time build
1623  --enable-dependency-tracking   do not reject slow dependency extractors
1624  --disable-rpath         do not hardcode runtime library paths
1625  --enable-shared[=PKGS]  build shared libraries [default=yes]
1626  --enable-static[=PKGS]  build static libraries [default=yes]
1627  --enable-fast-install[=PKGS]
1628                          optimize for fast installation [default=yes]
1629  --disable-libtool-lock  avoid locking (might break parallel builds)
1630  --enable-ltdl-install   install libltdl
1631  --enable-debug          Turn on debugging
1632  --enable-skim-support  Enable skim Setup UI
1633
1634Optional Packages:
1635  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1636  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1637  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1638  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1639  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1640  --with-included-gettext use the GNU gettext library included here
1641  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1642  --without-libintl-prefix     don't search for libintl in includedir and libdir
1643  --with-pic              try to use only PIC/non-PIC objects [default=use
1644                          both]
1645  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1646  --with-included-ltdl    use the GNU ltdl sources included here
1647  --with-ltdl-include=DIR use the ltdl headers installed in DIR
1648  --with-ltdl-lib=DIR     use the libltdl.la installed in DIR
1649
1650Some influential environment variables:
1651  CC          C compiler command
1652  CFLAGS      C compiler flags
1653  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1654              nonstandard directory <lib dir>
1655  LIBS        libraries to pass to the linker, e.g. -l<library>
1656  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1657              you have headers in a nonstandard directory <include dir>
1658  CPP         C preprocessor
1659  CXX         C++ compiler command
1660  CXXFLAGS    C++ compiler flags
1661  CXXCPP      C++ preprocessor
1662  PKG_CONFIG  path to pkg-config utility
1663  PKG_CONFIG_PATH
1664              directories to add to pkg-config's search path
1665  PKG_CONFIG_LIBDIR
1666              path overriding pkg-config's built-in search path
1667  SCIM_CFLAGS C compiler flags for SCIM, overriding pkg-config
1668  SCIM_LIBS   linker flags for SCIM, overriding pkg-config
1669  SCIM_GTKUTILS_CFLAGS
1670              C compiler flags for SCIM_GTKUTILS, overriding pkg-config
1671  SCIM_GTKUTILS_LIBS
1672              linker flags for SCIM_GTKUTILS, overriding pkg-config
1673  SKIM_CFLAGS C compiler flags for SKIM, overriding pkg-config
1674  SKIM_LIBS   linker flags for SKIM, overriding pkg-config
1675  SCIM_KDEUTILS_CFLAGS
1676              C compiler flags for SCIM_KDEUTILS, overriding pkg-config
1677  SCIM_KDEUTILS_LIBS
1678              linker flags for SCIM_KDEUTILS, overriding pkg-config
1679
1680Use these variables to override the choices made by `configure' or to help
1681it to find libraries and programs with nonstandard names/locations.
1682
1683Report bugs to <suzhe@tsinghua.org.cn>.
1684_ACEOF
1685ac_status=$?
1686fi
1687
1688if test "$ac_init_help" = "recursive"; then
1689  # If there are subdirs, report their specific --help.
1690  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1691    test -d "$ac_dir" ||
1692      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1693      continue
1694    ac_builddir=.
1695
1696case "$ac_dir" in
1697.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1698*)
1699  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1700  # A ".." for each directory in $ac_dir_suffix.
1701  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1702  case $ac_top_builddir_sub in
1703  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1704  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1705  esac ;;
1706esac
1707ac_abs_top_builddir=$ac_pwd
1708ac_abs_builddir=$ac_pwd$ac_dir_suffix
1709# for backward compatibility:
1710ac_top_builddir=$ac_top_build_prefix
1711
1712case $srcdir in
1713  .)  # We are building in place.
1714    ac_srcdir=.
1715    ac_top_srcdir=$ac_top_builddir_sub
1716    ac_abs_top_srcdir=$ac_pwd ;;
1717  [\\/]* | ?:[\\/]* )  # Absolute name.
1718    ac_srcdir=$srcdir$ac_dir_suffix;
1719    ac_top_srcdir=$srcdir
1720    ac_abs_top_srcdir=$srcdir ;;
1721  *) # Relative name.
1722    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1723    ac_top_srcdir=$ac_top_build_prefix$srcdir
1724    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1725esac
1726ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1727
1728    cd "$ac_dir" || { ac_status=$?; continue; }
1729    # Check for guested configure.
1730    if test -f "$ac_srcdir/configure.gnu"; then
1731      echo &&
1732      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1733    elif test -f "$ac_srcdir/configure"; then
1734      echo &&
1735      $SHELL "$ac_srcdir/configure" --help=recursive
1736    else
1737      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1738    fi || ac_status=$?
1739    cd "$ac_pwd" || { ac_status=$?; break; }
1740  done
1741fi
1742
1743test -n "$ac_init_help" && exit $ac_status
1744if $ac_init_version; then
1745  cat <<\_ACEOF
1746scim-tables configure 0.5.10
1747generated by GNU Autoconf 2.68
1748
1749Copyright (C) 2010 Free Software Foundation, Inc.
1750This configure script is free software; the Free Software Foundation
1751gives unlimited permission to copy, distribute and modify it.
1752_ACEOF
1753  exit
1754fi
1755
1756## ------------------------ ##
1757## Autoconf initialization. ##
1758## ------------------------ ##
1759
1760# ac_fn_c_try_compile LINENO
1761# --------------------------
1762# Try to compile conftest.$ac_ext, and return whether this succeeded.
1763ac_fn_c_try_compile ()
1764{
1765  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766  rm -f conftest.$ac_objext
1767  if { { ac_try="$ac_compile"
1768case "(($ac_try" in
1769  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770  *) ac_try_echo=$ac_try;;
1771esac
1772eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773$as_echo "$ac_try_echo"; } >&5
1774  (eval "$ac_compile") 2>conftest.err
1775  ac_status=$?
1776  if test -s conftest.err; then
1777    grep -v '^ *+' conftest.err >conftest.er1
1778    cat conftest.er1 >&5
1779    mv -f conftest.er1 conftest.err
1780  fi
1781  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782  test $ac_status = 0; } && {
1783	 test -z "$ac_c_werror_flag" ||
1784	 test ! -s conftest.err
1785       } && test -s conftest.$ac_objext; then :
1786  ac_retval=0
1787else
1788  $as_echo "$as_me: failed program was:" >&5
1789sed 's/^/| /' conftest.$ac_ext >&5
1790
1791	ac_retval=1
1792fi
1793  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794  as_fn_set_status $ac_retval
1795
1796} # ac_fn_c_try_compile
1797
1798# ac_fn_c_try_link LINENO
1799# -----------------------
1800# Try to link conftest.$ac_ext, and return whether this succeeded.
1801ac_fn_c_try_link ()
1802{
1803  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804  rm -f conftest.$ac_objext conftest$ac_exeext
1805  if { { ac_try="$ac_link"
1806case "(($ac_try" in
1807  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808  *) ac_try_echo=$ac_try;;
1809esac
1810eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811$as_echo "$ac_try_echo"; } >&5
1812  (eval "$ac_link") 2>conftest.err
1813  ac_status=$?
1814  if test -s conftest.err; then
1815    grep -v '^ *+' conftest.err >conftest.er1
1816    cat conftest.er1 >&5
1817    mv -f conftest.er1 conftest.err
1818  fi
1819  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820  test $ac_status = 0; } && {
1821	 test -z "$ac_c_werror_flag" ||
1822	 test ! -s conftest.err
1823       } && test -s conftest$ac_exeext && {
1824	 test "$cross_compiling" = yes ||
1825	 $as_test_x conftest$ac_exeext
1826       }; then :
1827  ac_retval=0
1828else
1829  $as_echo "$as_me: failed program was:" >&5
1830sed 's/^/| /' conftest.$ac_ext >&5
1831
1832	ac_retval=1
1833fi
1834  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1835  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1836  # interfere with the next link command; also delete a directory that is
1837  # left behind by Apple's compiler.  We do this before executing the actions.
1838  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1839  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840  as_fn_set_status $ac_retval
1841
1842} # ac_fn_c_try_link
1843
1844# ac_fn_c_try_cpp LINENO
1845# ----------------------
1846# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1847ac_fn_c_try_cpp ()
1848{
1849  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850  if { { ac_try="$ac_cpp conftest.$ac_ext"
1851case "(($ac_try" in
1852  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853  *) ac_try_echo=$ac_try;;
1854esac
1855eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856$as_echo "$ac_try_echo"; } >&5
1857  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1858  ac_status=$?
1859  if test -s conftest.err; then
1860    grep -v '^ *+' conftest.err >conftest.er1
1861    cat conftest.er1 >&5
1862    mv -f conftest.er1 conftest.err
1863  fi
1864  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1865  test $ac_status = 0; } > conftest.i && {
1866	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1867	 test ! -s conftest.err
1868       }; then :
1869  ac_retval=0
1870else
1871  $as_echo "$as_me: failed program was:" >&5
1872sed 's/^/| /' conftest.$ac_ext >&5
1873
1874    ac_retval=1
1875fi
1876  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877  as_fn_set_status $ac_retval
1878
1879} # ac_fn_c_try_cpp
1880
1881# ac_fn_c_try_run LINENO
1882# ----------------------
1883# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1884# that executables *can* be run.
1885ac_fn_c_try_run ()
1886{
1887  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888  if { { ac_try="$ac_link"
1889case "(($ac_try" in
1890  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1891  *) ac_try_echo=$ac_try;;
1892esac
1893eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894$as_echo "$ac_try_echo"; } >&5
1895  (eval "$ac_link") 2>&5
1896  ac_status=$?
1897  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1898  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1899  { { case "(($ac_try" in
1900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901  *) ac_try_echo=$ac_try;;
1902esac
1903eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904$as_echo "$ac_try_echo"; } >&5
1905  (eval "$ac_try") 2>&5
1906  ac_status=$?
1907  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1908  test $ac_status = 0; }; }; then :
1909  ac_retval=0
1910else
1911  $as_echo "$as_me: program exited with status $ac_status" >&5
1912       $as_echo "$as_me: failed program was:" >&5
1913sed 's/^/| /' conftest.$ac_ext >&5
1914
1915       ac_retval=$ac_status
1916fi
1917  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1918  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919  as_fn_set_status $ac_retval
1920
1921} # ac_fn_c_try_run
1922
1923# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1924# -------------------------------------------
1925# Tests whether TYPE exists after having included INCLUDES, setting cache
1926# variable VAR accordingly.
1927ac_fn_c_check_type ()
1928{
1929  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1931$as_echo_n "checking for $2... " >&6; }
1932if eval \${$3+:} false; then :
1933  $as_echo_n "(cached) " >&6
1934else
1935  eval "$3=no"
1936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937/* end confdefs.h.  */
1938$4
1939int
1940main ()
1941{
1942if (sizeof ($2))
1943	 return 0;
1944  ;
1945  return 0;
1946}
1947_ACEOF
1948if ac_fn_c_try_compile "$LINENO"; then :
1949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950/* end confdefs.h.  */
1951$4
1952int
1953main ()
1954{
1955if (sizeof (($2)))
1956	    return 0;
1957  ;
1958  return 0;
1959}
1960_ACEOF
1961if ac_fn_c_try_compile "$LINENO"; then :
1962
1963else
1964  eval "$3=yes"
1965fi
1966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1967fi
1968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1969fi
1970eval ac_res=\$$3
1971	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1972$as_echo "$ac_res" >&6; }
1973  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1974
1975} # ac_fn_c_check_type
1976
1977# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1978# -------------------------------------------------------
1979# Tests whether HEADER exists and can be compiled using the include files in
1980# INCLUDES, setting the cache variable VAR accordingly.
1981ac_fn_c_check_header_compile ()
1982{
1983  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1985$as_echo_n "checking for $2... " >&6; }
1986if eval \${$3+:} false; then :
1987  $as_echo_n "(cached) " >&6
1988else
1989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990/* end confdefs.h.  */
1991$4
1992#include <$2>
1993_ACEOF
1994if ac_fn_c_try_compile "$LINENO"; then :
1995  eval "$3=yes"
1996else
1997  eval "$3=no"
1998fi
1999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2000fi
2001eval ac_res=\$$3
2002	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2003$as_echo "$ac_res" >&6; }
2004  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2005
2006} # ac_fn_c_check_header_compile
2007
2008# ac_fn_c_check_func LINENO FUNC VAR
2009# ----------------------------------
2010# Tests whether FUNC exists, setting the cache variable VAR accordingly
2011ac_fn_c_check_func ()
2012{
2013  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2015$as_echo_n "checking for $2... " >&6; }
2016if eval \${$3+:} false; then :
2017  $as_echo_n "(cached) " >&6
2018else
2019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020/* end confdefs.h.  */
2021/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2022   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2023#define $2 innocuous_$2
2024
2025/* System header to define __stub macros and hopefully few prototypes,
2026    which can conflict with char $2 (); below.
2027    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2028    <limits.h> exists even on freestanding compilers.  */
2029
2030#ifdef __STDC__
2031# include <limits.h>
2032#else
2033# include <assert.h>
2034#endif
2035
2036#undef $2
2037
2038/* Override any GCC internal prototype to avoid an error.
2039   Use char because int might match the return type of a GCC
2040   builtin and then its argument prototype would still apply.  */
2041#ifdef __cplusplus
2042extern "C"
2043#endif
2044char $2 ();
2045/* The GNU C library defines this for functions which it implements
2046    to always fail with ENOSYS.  Some functions are actually named
2047    something starting with __ and the normal name is an alias.  */
2048#if defined __stub_$2 || defined __stub___$2
2049choke me
2050#endif
2051
2052int
2053main ()
2054{
2055return $2 ();
2056  ;
2057  return 0;
2058}
2059_ACEOF
2060if ac_fn_c_try_link "$LINENO"; then :
2061  eval "$3=yes"
2062else
2063  eval "$3=no"
2064fi
2065rm -f core conftest.err conftest.$ac_objext \
2066    conftest$ac_exeext conftest.$ac_ext
2067fi
2068eval ac_res=\$$3
2069	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2070$as_echo "$ac_res" >&6; }
2071  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2072
2073} # ac_fn_c_check_func
2074
2075# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2076# -------------------------------------------------------
2077# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2078# the include files in INCLUDES and setting the cache variable VAR
2079# accordingly.
2080ac_fn_c_check_header_mongrel ()
2081{
2082  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083  if eval \${$3+:} false; then :
2084  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2085$as_echo_n "checking for $2... " >&6; }
2086if eval \${$3+:} false; then :
2087  $as_echo_n "(cached) " >&6
2088fi
2089eval ac_res=\$$3
2090	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2091$as_echo "$ac_res" >&6; }
2092else
2093  # Is the header compilable?
2094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2095$as_echo_n "checking $2 usability... " >&6; }
2096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097/* end confdefs.h.  */
2098$4
2099#include <$2>
2100_ACEOF
2101if ac_fn_c_try_compile "$LINENO"; then :
2102  ac_header_compiler=yes
2103else
2104  ac_header_compiler=no
2105fi
2106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2108$as_echo "$ac_header_compiler" >&6; }
2109
2110# Is the header present?
2111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2112$as_echo_n "checking $2 presence... " >&6; }
2113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114/* end confdefs.h.  */
2115#include <$2>
2116_ACEOF
2117if ac_fn_c_try_cpp "$LINENO"; then :
2118  ac_header_preproc=yes
2119else
2120  ac_header_preproc=no
2121fi
2122rm -f conftest.err conftest.i conftest.$ac_ext
2123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2124$as_echo "$ac_header_preproc" >&6; }
2125
2126# So?  What about this header?
2127case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2128  yes:no: )
2129    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2130$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2131    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2132$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2133    ;;
2134  no:yes:* )
2135    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2136$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2137    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2138$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2139    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2140$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2141    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2142$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2143    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2144$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2145( $as_echo "## ------------------------------------ ##
2146## Report this to suzhe@tsinghua.org.cn ##
2147## ------------------------------------ ##"
2148     ) | sed "s/^/$as_me: WARNING:     /" >&2
2149    ;;
2150esac
2151  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2152$as_echo_n "checking for $2... " >&6; }
2153if eval \${$3+:} false; then :
2154  $as_echo_n "(cached) " >&6
2155else
2156  eval "$3=\$ac_header_compiler"
2157fi
2158eval ac_res=\$$3
2159	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2160$as_echo "$ac_res" >&6; }
2161fi
2162  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2163
2164} # ac_fn_c_check_header_mongrel
2165
2166# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2167# --------------------------------------------
2168# Tries to find the compile-time value of EXPR in a program that includes
2169# INCLUDES, setting VAR accordingly. Returns whether the value could be
2170# computed
2171ac_fn_c_compute_int ()
2172{
2173  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2174  if test "$cross_compiling" = yes; then
2175    # Depending upon the size, compute the lo and hi bounds.
2176cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177/* end confdefs.h.  */
2178$4
2179int
2180main ()
2181{
2182static int test_array [1 - 2 * !(($2) >= 0)];
2183test_array [0] = 0
2184
2185  ;
2186  return 0;
2187}
2188_ACEOF
2189if ac_fn_c_try_compile "$LINENO"; then :
2190  ac_lo=0 ac_mid=0
2191  while :; do
2192    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2193/* end confdefs.h.  */
2194$4
2195int
2196main ()
2197{
2198static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2199test_array [0] = 0
2200
2201  ;
2202  return 0;
2203}
2204_ACEOF
2205if ac_fn_c_try_compile "$LINENO"; then :
2206  ac_hi=$ac_mid; break
2207else
2208  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2209			if test $ac_lo -le $ac_mid; then
2210			  ac_lo= ac_hi=
2211			  break
2212			fi
2213			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2214fi
2215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2216  done
2217else
2218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219/* end confdefs.h.  */
2220$4
2221int
2222main ()
2223{
2224static int test_array [1 - 2 * !(($2) < 0)];
2225test_array [0] = 0
2226
2227  ;
2228  return 0;
2229}
2230_ACEOF
2231if ac_fn_c_try_compile "$LINENO"; then :
2232  ac_hi=-1 ac_mid=-1
2233  while :; do
2234    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2235/* end confdefs.h.  */
2236$4
2237int
2238main ()
2239{
2240static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2241test_array [0] = 0
2242
2243  ;
2244  return 0;
2245}
2246_ACEOF
2247if ac_fn_c_try_compile "$LINENO"; then :
2248  ac_lo=$ac_mid; break
2249else
2250  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2251			if test $ac_mid -le $ac_hi; then
2252			  ac_lo= ac_hi=
2253			  break
2254			fi
2255			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2256fi
2257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2258  done
2259else
2260  ac_lo= ac_hi=
2261fi
2262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2263fi
2264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2265# Binary search between lo and hi bounds.
2266while test "x$ac_lo" != "x$ac_hi"; do
2267  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2269/* end confdefs.h.  */
2270$4
2271int
2272main ()
2273{
2274static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2275test_array [0] = 0
2276
2277  ;
2278  return 0;
2279}
2280_ACEOF
2281if ac_fn_c_try_compile "$LINENO"; then :
2282  ac_hi=$ac_mid
2283else
2284  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2285fi
2286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2287done
2288case $ac_lo in #((
2289?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2290'') ac_retval=1 ;;
2291esac
2292  else
2293    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294/* end confdefs.h.  */
2295$4
2296static long int longval () { return $2; }
2297static unsigned long int ulongval () { return $2; }
2298#include <stdio.h>
2299#include <stdlib.h>
2300int
2301main ()
2302{
2303
2304  FILE *f = fopen ("conftest.val", "w");
2305  if (! f)
2306    return 1;
2307  if (($2) < 0)
2308    {
2309      long int i = longval ();
2310      if (i != ($2))
2311	return 1;
2312      fprintf (f, "%ld", i);
2313    }
2314  else
2315    {
2316      unsigned long int i = ulongval ();
2317      if (i != ($2))
2318	return 1;
2319      fprintf (f, "%lu", i);
2320    }
2321  /* Do not output a trailing newline, as this causes \r\n confusion
2322     on some platforms.  */
2323  return ferror (f) || fclose (f) != 0;
2324
2325  ;
2326  return 0;
2327}
2328_ACEOF
2329if ac_fn_c_try_run "$LINENO"; then :
2330  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2331else
2332  ac_retval=1
2333fi
2334rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2335  conftest.$ac_objext conftest.beam conftest.$ac_ext
2336rm -f conftest.val
2337
2338  fi
2339  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2340  as_fn_set_status $ac_retval
2341
2342} # ac_fn_c_compute_int
2343
2344# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2345# ---------------------------------------------
2346# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2347# accordingly.
2348ac_fn_c_check_decl ()
2349{
2350  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2351  as_decl_name=`echo $2|sed 's/ *(.*//'`
2352  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2353  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2354$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2355if eval \${$3+:} false; then :
2356  $as_echo_n "(cached) " >&6
2357else
2358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2359/* end confdefs.h.  */
2360$4
2361int
2362main ()
2363{
2364#ifndef $as_decl_name
2365#ifdef __cplusplus
2366  (void) $as_decl_use;
2367#else
2368  (void) $as_decl_name;
2369#endif
2370#endif
2371
2372  ;
2373  return 0;
2374}
2375_ACEOF
2376if ac_fn_c_try_compile "$LINENO"; then :
2377  eval "$3=yes"
2378else
2379  eval "$3=no"
2380fi
2381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2382fi
2383eval ac_res=\$$3
2384	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2385$as_echo "$ac_res" >&6; }
2386  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2387
2388} # ac_fn_c_check_decl
2389
2390# ac_fn_cxx_try_compile LINENO
2391# ----------------------------
2392# Try to compile conftest.$ac_ext, and return whether this succeeded.
2393ac_fn_cxx_try_compile ()
2394{
2395  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2396  rm -f conftest.$ac_objext
2397  if { { ac_try="$ac_compile"
2398case "(($ac_try" in
2399  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2400  *) ac_try_echo=$ac_try;;
2401esac
2402eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2403$as_echo "$ac_try_echo"; } >&5
2404  (eval "$ac_compile") 2>conftest.err
2405  ac_status=$?
2406  if test -s conftest.err; then
2407    grep -v '^ *+' conftest.err >conftest.er1
2408    cat conftest.er1 >&5
2409    mv -f conftest.er1 conftest.err
2410  fi
2411  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2412  test $ac_status = 0; } && {
2413	 test -z "$ac_cxx_werror_flag" ||
2414	 test ! -s conftest.err
2415       } && test -s conftest.$ac_objext; then :
2416  ac_retval=0
2417else
2418  $as_echo "$as_me: failed program was:" >&5
2419sed 's/^/| /' conftest.$ac_ext >&5
2420
2421	ac_retval=1
2422fi
2423  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2424  as_fn_set_status $ac_retval
2425
2426} # ac_fn_cxx_try_compile
2427
2428# ac_fn_cxx_try_cpp LINENO
2429# ------------------------
2430# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2431ac_fn_cxx_try_cpp ()
2432{
2433  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2434  if { { ac_try="$ac_cpp conftest.$ac_ext"
2435case "(($ac_try" in
2436  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2437  *) ac_try_echo=$ac_try;;
2438esac
2439eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2440$as_echo "$ac_try_echo"; } >&5
2441  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2442  ac_status=$?
2443  if test -s conftest.err; then
2444    grep -v '^ *+' conftest.err >conftest.er1
2445    cat conftest.er1 >&5
2446    mv -f conftest.er1 conftest.err
2447  fi
2448  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2449  test $ac_status = 0; } > conftest.i && {
2450	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2451	 test ! -s conftest.err
2452       }; then :
2453  ac_retval=0
2454else
2455  $as_echo "$as_me: failed program was:" >&5
2456sed 's/^/| /' conftest.$ac_ext >&5
2457
2458    ac_retval=1
2459fi
2460  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2461  as_fn_set_status $ac_retval
2462
2463} # ac_fn_cxx_try_cpp
2464
2465# ac_fn_cxx_try_link LINENO
2466# -------------------------
2467# Try to link conftest.$ac_ext, and return whether this succeeded.
2468ac_fn_cxx_try_link ()
2469{
2470  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2471  rm -f conftest.$ac_objext conftest$ac_exeext
2472  if { { ac_try="$ac_link"
2473case "(($ac_try" in
2474  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2475  *) ac_try_echo=$ac_try;;
2476esac
2477eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2478$as_echo "$ac_try_echo"; } >&5
2479  (eval "$ac_link") 2>conftest.err
2480  ac_status=$?
2481  if test -s conftest.err; then
2482    grep -v '^ *+' conftest.err >conftest.er1
2483    cat conftest.er1 >&5
2484    mv -f conftest.er1 conftest.err
2485  fi
2486  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2487  test $ac_status = 0; } && {
2488	 test -z "$ac_cxx_werror_flag" ||
2489	 test ! -s conftest.err
2490       } && test -s conftest$ac_exeext && {
2491	 test "$cross_compiling" = yes ||
2492	 $as_test_x conftest$ac_exeext
2493       }; then :
2494  ac_retval=0
2495else
2496  $as_echo "$as_me: failed program was:" >&5
2497sed 's/^/| /' conftest.$ac_ext >&5
2498
2499	ac_retval=1
2500fi
2501  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2502  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2503  # interfere with the next link command; also delete a directory that is
2504  # left behind by Apple's compiler.  We do this before executing the actions.
2505  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2506  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2507  as_fn_set_status $ac_retval
2508
2509} # ac_fn_cxx_try_link
2510
2511# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2512# ---------------------------------------------
2513# Tests whether TYPE exists after having included INCLUDES, setting cache
2514# variable VAR accordingly.
2515ac_fn_cxx_check_type ()
2516{
2517  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2518  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2519$as_echo_n "checking for $2... " >&6; }
2520if eval \${$3+:} false; then :
2521  $as_echo_n "(cached) " >&6
2522else
2523  eval "$3=no"
2524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2525/* end confdefs.h.  */
2526$4
2527int
2528main ()
2529{
2530if (sizeof ($2))
2531	 return 0;
2532  ;
2533  return 0;
2534}
2535_ACEOF
2536if ac_fn_cxx_try_compile "$LINENO"; then :
2537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2538/* end confdefs.h.  */
2539$4
2540int
2541main ()
2542{
2543if (sizeof (($2)))
2544	    return 0;
2545  ;
2546  return 0;
2547}
2548_ACEOF
2549if ac_fn_cxx_try_compile "$LINENO"; then :
2550
2551else
2552  eval "$3=yes"
2553fi
2554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2555fi
2556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2557fi
2558eval ac_res=\$$3
2559	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2560$as_echo "$ac_res" >&6; }
2561  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2562
2563} # ac_fn_cxx_check_type
2564
2565# ac_fn_cxx_try_run LINENO
2566# ------------------------
2567# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2568# that executables *can* be run.
2569ac_fn_cxx_try_run ()
2570{
2571  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2572  if { { ac_try="$ac_link"
2573case "(($ac_try" in
2574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2575  *) ac_try_echo=$ac_try;;
2576esac
2577eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2578$as_echo "$ac_try_echo"; } >&5
2579  (eval "$ac_link") 2>&5
2580  ac_status=$?
2581  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2582  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2583  { { case "(($ac_try" in
2584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585  *) ac_try_echo=$ac_try;;
2586esac
2587eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2588$as_echo "$ac_try_echo"; } >&5
2589  (eval "$ac_try") 2>&5
2590  ac_status=$?
2591  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2592  test $ac_status = 0; }; }; then :
2593  ac_retval=0
2594else
2595  $as_echo "$as_me: program exited with status $ac_status" >&5
2596       $as_echo "$as_me: failed program was:" >&5
2597sed 's/^/| /' conftest.$ac_ext >&5
2598
2599       ac_retval=$ac_status
2600fi
2601  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2602  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2603  as_fn_set_status $ac_retval
2604
2605} # ac_fn_cxx_try_run
2606
2607# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2608# ---------------------------------------------------------
2609# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2610# the include files in INCLUDES and setting the cache variable VAR
2611# accordingly.
2612ac_fn_cxx_check_header_mongrel ()
2613{
2614  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2615  if eval \${$3+:} false; then :
2616  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2617$as_echo_n "checking for $2... " >&6; }
2618if eval \${$3+:} false; then :
2619  $as_echo_n "(cached) " >&6
2620fi
2621eval ac_res=\$$3
2622	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2623$as_echo "$ac_res" >&6; }
2624else
2625  # Is the header compilable?
2626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2627$as_echo_n "checking $2 usability... " >&6; }
2628cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2629/* end confdefs.h.  */
2630$4
2631#include <$2>
2632_ACEOF
2633if ac_fn_cxx_try_compile "$LINENO"; then :
2634  ac_header_compiler=yes
2635else
2636  ac_header_compiler=no
2637fi
2638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2640$as_echo "$ac_header_compiler" >&6; }
2641
2642# Is the header present?
2643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2644$as_echo_n "checking $2 presence... " >&6; }
2645cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2646/* end confdefs.h.  */
2647#include <$2>
2648_ACEOF
2649if ac_fn_cxx_try_cpp "$LINENO"; then :
2650  ac_header_preproc=yes
2651else
2652  ac_header_preproc=no
2653fi
2654rm -f conftest.err conftest.i conftest.$ac_ext
2655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2656$as_echo "$ac_header_preproc" >&6; }
2657
2658# So?  What about this header?
2659case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2660  yes:no: )
2661    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2662$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2663    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2664$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2665    ;;
2666  no:yes:* )
2667    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2668$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2669    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2670$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2671    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2672$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2673    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2674$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2675    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2676$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2677( $as_echo "## ------------------------------------ ##
2678## Report this to suzhe@tsinghua.org.cn ##
2679## ------------------------------------ ##"
2680     ) | sed "s/^/$as_me: WARNING:     /" >&2
2681    ;;
2682esac
2683  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2684$as_echo_n "checking for $2... " >&6; }
2685if eval \${$3+:} false; then :
2686  $as_echo_n "(cached) " >&6
2687else
2688  eval "$3=\$ac_header_compiler"
2689fi
2690eval ac_res=\$$3
2691	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2692$as_echo "$ac_res" >&6; }
2693fi
2694  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2695
2696} # ac_fn_cxx_check_header_mongrel
2697cat >config.log <<_ACEOF
2698This file contains any messages produced by compilers while
2699running configure, to aid debugging if configure makes a mistake.
2700
2701It was created by scim-tables $as_me 0.5.10, which was
2702generated by GNU Autoconf 2.68.  Invocation command line was
2703
2704  $ $0 $@
2705
2706_ACEOF
2707exec 5>>config.log
2708{
2709cat <<_ASUNAME
2710## --------- ##
2711## Platform. ##
2712## --------- ##
2713
2714hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2715uname -m = `(uname -m) 2>/dev/null || echo unknown`
2716uname -r = `(uname -r) 2>/dev/null || echo unknown`
2717uname -s = `(uname -s) 2>/dev/null || echo unknown`
2718uname -v = `(uname -v) 2>/dev/null || echo unknown`
2719
2720/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2721/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2722
2723/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2724/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2725/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2726/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2727/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2728/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2729/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2730
2731_ASUNAME
2732
2733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2734for as_dir in $PATH
2735do
2736  IFS=$as_save_IFS
2737  test -z "$as_dir" && as_dir=.
2738    $as_echo "PATH: $as_dir"
2739  done
2740IFS=$as_save_IFS
2741
2742} >&5
2743
2744cat >&5 <<_ACEOF
2745
2746
2747## ----------- ##
2748## Core tests. ##
2749## ----------- ##
2750
2751_ACEOF
2752
2753
2754# Keep a trace of the command line.
2755# Strip out --no-create and --no-recursion so they do not pile up.
2756# Strip out --silent because we don't want to record it for future runs.
2757# Also quote any args containing shell meta-characters.
2758# Make two passes to allow for proper duplicate-argument suppression.
2759ac_configure_args=
2760ac_configure_args0=
2761ac_configure_args1=
2762ac_must_keep_next=false
2763for ac_pass in 1 2
2764do
2765  for ac_arg
2766  do
2767    case $ac_arg in
2768    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2769    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2770    | -silent | --silent | --silen | --sile | --sil)
2771      continue ;;
2772    *\'*)
2773      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2774    esac
2775    case $ac_pass in
2776    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2777    2)
2778      as_fn_append ac_configure_args1 " '$ac_arg'"
2779      if test $ac_must_keep_next = true; then
2780	ac_must_keep_next=false # Got value, back to normal.
2781      else
2782	case $ac_arg in
2783	  *=* | --config-cache | -C | -disable-* | --disable-* \
2784	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2785	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2786	  | -with-* | --with-* | -without-* | --without-* | --x)
2787	    case "$ac_configure_args0 " in
2788	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2789	    esac
2790	    ;;
2791	  -* ) ac_must_keep_next=true ;;
2792	esac
2793      fi
2794      as_fn_append ac_configure_args " '$ac_arg'"
2795      ;;
2796    esac
2797  done
2798done
2799{ ac_configure_args0=; unset ac_configure_args0;}
2800{ ac_configure_args1=; unset ac_configure_args1;}
2801
2802# When interrupted or exit'd, cleanup temporary files, and complete
2803# config.log.  We remove comments because anyway the quotes in there
2804# would cause problems or look ugly.
2805# WARNING: Use '\'' to represent an apostrophe within the trap.
2806# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2807trap 'exit_status=$?
2808  # Save into config.log some information that might help in debugging.
2809  {
2810    echo
2811
2812    $as_echo "## ---------------- ##
2813## Cache variables. ##
2814## ---------------- ##"
2815    echo
2816    # The following way of writing the cache mishandles newlines in values,
2817(
2818  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2819    eval ac_val=\$$ac_var
2820    case $ac_val in #(
2821    *${as_nl}*)
2822      case $ac_var in #(
2823      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2824$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2825      esac
2826      case $ac_var in #(
2827      _ | IFS | as_nl) ;; #(
2828      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2829      *) { eval $ac_var=; unset $ac_var;} ;;
2830      esac ;;
2831    esac
2832  done
2833  (set) 2>&1 |
2834    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2835    *${as_nl}ac_space=\ *)
2836      sed -n \
2837	"s/'\''/'\''\\\\'\'''\''/g;
2838	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2839      ;; #(
2840    *)
2841      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2842      ;;
2843    esac |
2844    sort
2845)
2846    echo
2847
2848    $as_echo "## ----------------- ##
2849## Output variables. ##
2850## ----------------- ##"
2851    echo
2852    for ac_var in $ac_subst_vars
2853    do
2854      eval ac_val=\$$ac_var
2855      case $ac_val in
2856      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2857      esac
2858      $as_echo "$ac_var='\''$ac_val'\''"
2859    done | sort
2860    echo
2861
2862    if test -n "$ac_subst_files"; then
2863      $as_echo "## ------------------- ##
2864## File substitutions. ##
2865## ------------------- ##"
2866      echo
2867      for ac_var in $ac_subst_files
2868      do
2869	eval ac_val=\$$ac_var
2870	case $ac_val in
2871	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2872	esac
2873	$as_echo "$ac_var='\''$ac_val'\''"
2874      done | sort
2875      echo
2876    fi
2877
2878    if test -s confdefs.h; then
2879      $as_echo "## ----------- ##
2880## confdefs.h. ##
2881## ----------- ##"
2882      echo
2883      cat confdefs.h
2884      echo
2885    fi
2886    test "$ac_signal" != 0 &&
2887      $as_echo "$as_me: caught signal $ac_signal"
2888    $as_echo "$as_me: exit $exit_status"
2889  } >&5
2890  rm -f core *.core core.conftest.* &&
2891    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2892    exit $exit_status
2893' 0
2894for ac_signal in 1 2 13 15; do
2895  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2896done
2897ac_signal=0
2898
2899# confdefs.h avoids OS command line length limits that DEFS can exceed.
2900rm -f -r conftest* confdefs.h
2901
2902$as_echo "/* confdefs.h */" > confdefs.h
2903
2904# Predefined preprocessor variables.
2905
2906cat >>confdefs.h <<_ACEOF
2907#define PACKAGE_NAME "$PACKAGE_NAME"
2908_ACEOF
2909
2910cat >>confdefs.h <<_ACEOF
2911#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2912_ACEOF
2913
2914cat >>confdefs.h <<_ACEOF
2915#define PACKAGE_VERSION "$PACKAGE_VERSION"
2916_ACEOF
2917
2918cat >>confdefs.h <<_ACEOF
2919#define PACKAGE_STRING "$PACKAGE_STRING"
2920_ACEOF
2921
2922cat >>confdefs.h <<_ACEOF
2923#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2924_ACEOF
2925
2926cat >>confdefs.h <<_ACEOF
2927#define PACKAGE_URL "$PACKAGE_URL"
2928_ACEOF
2929
2930
2931# Let the site file select an alternate cache file if it wants to.
2932# Prefer an explicitly selected file to automatically selected ones.
2933ac_site_file1=NONE
2934ac_site_file2=NONE
2935if test -n "$CONFIG_SITE"; then
2936  # We do not want a PATH search for config.site.
2937  case $CONFIG_SITE in #((
2938    -*)  ac_site_file1=./$CONFIG_SITE;;
2939    */*) ac_site_file1=$CONFIG_SITE;;
2940    *)   ac_site_file1=./$CONFIG_SITE;;
2941  esac
2942elif test "x$prefix" != xNONE; then
2943  ac_site_file1=$prefix/share/config.site
2944  ac_site_file2=$prefix/etc/config.site
2945else
2946  ac_site_file1=$ac_default_prefix/share/config.site
2947  ac_site_file2=$ac_default_prefix/etc/config.site
2948fi
2949for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2950do
2951  test "x$ac_site_file" = xNONE && continue
2952  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2953    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2954$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2955    sed 's/^/| /' "$ac_site_file" >&5
2956    . "$ac_site_file" \
2957      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2958$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2959as_fn_error $? "failed to load site script $ac_site_file
2960See \`config.log' for more details" "$LINENO" 5; }
2961  fi
2962done
2963
2964if test -r "$cache_file"; then
2965  # Some versions of bash will fail to source /dev/null (special files
2966  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2967  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2968    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2969$as_echo "$as_me: loading cache $cache_file" >&6;}
2970    case $cache_file in
2971      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2972      *)                      . "./$cache_file";;
2973    esac
2974  fi
2975else
2976  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2977$as_echo "$as_me: creating cache $cache_file" >&6;}
2978  >$cache_file
2979fi
2980
2981as_fn_append ac_header_list " stdlib.h"
2982as_fn_append ac_header_list " unistd.h"
2983as_fn_append ac_header_list " sys/param.h"
2984# Check that the precious variables saved in the cache have kept the same
2985# value.
2986ac_cache_corrupted=false
2987for ac_var in $ac_precious_vars; do
2988  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2989  eval ac_new_set=\$ac_env_${ac_var}_set
2990  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2991  eval ac_new_val=\$ac_env_${ac_var}_value
2992  case $ac_old_set,$ac_new_set in
2993    set,)
2994      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2995$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2996      ac_cache_corrupted=: ;;
2997    ,set)
2998      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2999$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3000      ac_cache_corrupted=: ;;
3001    ,);;
3002    *)
3003      if test "x$ac_old_val" != "x$ac_new_val"; then
3004	# differences in whitespace do not lead to failure.
3005	ac_old_val_w=`echo x $ac_old_val`
3006	ac_new_val_w=`echo x $ac_new_val`
3007	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3008	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3009$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3010	  ac_cache_corrupted=:
3011	else
3012	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3013$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3014	  eval $ac_var=\$ac_old_val
3015	fi
3016	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3017$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3018	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3019$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3020      fi;;
3021  esac
3022  # Pass precious variables to config.status.
3023  if test "$ac_new_set" = set; then
3024    case $ac_new_val in
3025    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3026    *) ac_arg=$ac_var=$ac_new_val ;;
3027    esac
3028    case " $ac_configure_args " in
3029      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3030      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3031    esac
3032  fi
3033done
3034if $ac_cache_corrupted; then
3035  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3036$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3037  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3038$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3039  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3040fi
3041## -------------------- ##
3042## Main body of script. ##
3043## -------------------- ##
3044
3045ac_ext=c
3046ac_cpp='$CPP $CPPFLAGS'
3047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3049ac_compiler_gnu=$ac_cv_c_compiler_gnu
3050
3051 #do not forget to edit skim/configure.in.in to change the version
3052
3053
3054SCIM_VERSION=1.4.9
3055
3056
3057
3058GETTEXT_PACKAGE=scim-tables
3059
3060
3061cat >>confdefs.h <<_ACEOF
3062#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
3063_ACEOF
3064
3065
3066# Init automake stuff
3067am__api_version='1.11'
3068
3069ac_aux_dir=
3070for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3071  if test -f "$ac_dir/install-sh"; then
3072    ac_aux_dir=$ac_dir
3073    ac_install_sh="$ac_aux_dir/install-sh -c"
3074    break
3075  elif test -f "$ac_dir/install.sh"; then
3076    ac_aux_dir=$ac_dir
3077    ac_install_sh="$ac_aux_dir/install.sh -c"
3078    break
3079  elif test -f "$ac_dir/shtool"; then
3080    ac_aux_dir=$ac_dir
3081    ac_install_sh="$ac_aux_dir/shtool install -c"
3082    break
3083  fi
3084done
3085if test -z "$ac_aux_dir"; then
3086  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3087fi
3088
3089# These three variables are undocumented and unsupported,
3090# and are intended to be withdrawn in a future Autoconf release.
3091# They can cause serious problems if a builder's source tree is in a directory
3092# whose full name contains unusual characters.
3093ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3094ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3095ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3096
3097
3098# Find a good install program.  We prefer a C program (faster),
3099# so one script is as good as another.  But avoid the broken or
3100# incompatible versions:
3101# SysV /etc/install, /usr/sbin/install
3102# SunOS /usr/etc/install
3103# IRIX /sbin/install
3104# AIX /bin/install
3105# AmigaOS /C/install, which installs bootblocks on floppy discs
3106# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3107# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3108# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3109# OS/2's system install, which has a completely different semantic
3110# ./install, which can be erroneously created by make from ./install.sh.
3111# Reject install programs that cannot install multiple files.
3112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3113$as_echo_n "checking for a BSD-compatible install... " >&6; }
3114if test -z "$INSTALL"; then
3115if ${ac_cv_path_install+:} false; then :
3116  $as_echo_n "(cached) " >&6
3117else
3118  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119for as_dir in $PATH
3120do
3121  IFS=$as_save_IFS
3122  test -z "$as_dir" && as_dir=.
3123    # Account for people who put trailing slashes in PATH elements.
3124case $as_dir/ in #((
3125  ./ | .// | /[cC]/* | \
3126  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3127  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3128  /usr/ucb/* ) ;;
3129  *)
3130    # OSF1 and SCO ODT 3.0 have their own names for install.
3131    # Don't use installbsd from OSF since it installs stuff as root
3132    # by default.
3133    for ac_prog in ginstall scoinst install; do
3134      for ac_exec_ext in '' $ac_executable_extensions; do
3135	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3136	  if test $ac_prog = install &&
3137	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3138	    # AIX install.  It has an incompatible calling convention.
3139	    :
3140	  elif test $ac_prog = install &&
3141	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3142	    # program-specific install script used by HP pwplus--don't use.
3143	    :
3144	  else
3145	    rm -rf conftest.one conftest.two conftest.dir
3146	    echo one > conftest.one
3147	    echo two > conftest.two
3148	    mkdir conftest.dir
3149	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3150	      test -s conftest.one && test -s conftest.two &&
3151	      test -s conftest.dir/conftest.one &&
3152	      test -s conftest.dir/conftest.two
3153	    then
3154	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3155	      break 3
3156	    fi
3157	  fi
3158	fi
3159      done
3160    done
3161    ;;
3162esac
3163
3164  done
3165IFS=$as_save_IFS
3166
3167rm -rf conftest.one conftest.two conftest.dir
3168
3169fi
3170  if test "${ac_cv_path_install+set}" = set; then
3171    INSTALL=$ac_cv_path_install
3172  else
3173    # As a last resort, use the slow shell script.  Don't cache a
3174    # value for INSTALL within a source directory, because that will
3175    # break other packages using the cache if that directory is
3176    # removed, or if the value is a relative name.
3177    INSTALL=$ac_install_sh
3178  fi
3179fi
3180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3181$as_echo "$INSTALL" >&6; }
3182
3183# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3184# It thinks the first close brace ends the variable substitution.
3185test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3186
3187test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3188
3189test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3190
3191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3192$as_echo_n "checking whether build environment is sane... " >&6; }
3193# Just in case
3194sleep 1
3195echo timestamp > conftest.file
3196# Reject unsafe characters in $srcdir or the absolute working directory
3197# name.  Accept space and tab only in the latter.
3198am_lf='
3199'
3200case `pwd` in
3201  *[\\\"\#\$\&\'\`$am_lf]*)
3202    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3203esac
3204case $srcdir in
3205  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3206    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3207esac
3208
3209# Do `set' in a subshell so we don't clobber the current shell's
3210# arguments.  Must try -L first in case configure is actually a
3211# symlink; some systems play weird games with the mod time of symlinks
3212# (eg FreeBSD returns the mod time of the symlink's containing
3213# directory).
3214if (
3215   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3216   if test "$*" = "X"; then
3217      # -L didn't work.
3218      set X `ls -t "$srcdir/configure" conftest.file`
3219   fi
3220   rm -f conftest.file
3221   if test "$*" != "X $srcdir/configure conftest.file" \
3222      && test "$*" != "X conftest.file $srcdir/configure"; then
3223
3224      # If neither matched, then we have a broken ls.  This can happen
3225      # if, for instance, CONFIG_SHELL is bash and it inherits a
3226      # broken ls alias from the environment.  This has actually
3227      # happened.  Such a system could not be considered "sane".
3228      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3229alias in your environment" "$LINENO" 5
3230   fi
3231
3232   test "$2" = conftest.file
3233   )
3234then
3235   # Ok.
3236   :
3237else
3238   as_fn_error $? "newly created file is older than distributed files!
3239Check your system clock" "$LINENO" 5
3240fi
3241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3242$as_echo "yes" >&6; }
3243test "$program_prefix" != NONE &&
3244  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3245# Use a double $ so make ignores it.
3246test "$program_suffix" != NONE &&
3247  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3248# Double any \ or $.
3249# By default was `s,x,x', remove it if useless.
3250ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3251program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3252
3253# expand $ac_aux_dir to an absolute path
3254am_aux_dir=`cd $ac_aux_dir && pwd`
3255
3256if test x"${MISSING+set}" != xset; then
3257  case $am_aux_dir in
3258  *\ * | *\	*)
3259    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3260  *)
3261    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3262  esac
3263fi
3264# Use eval to expand $SHELL
3265if eval "$MISSING --run true"; then
3266  am_missing_run="$MISSING --run "
3267else
3268  am_missing_run=
3269  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3270$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3271fi
3272
3273if test x"${install_sh}" != xset; then
3274  case $am_aux_dir in
3275  *\ * | *\	*)
3276    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3277  *)
3278    install_sh="\${SHELL} $am_aux_dir/install-sh"
3279  esac
3280fi
3281
3282# Installed binaries are usually stripped using `strip' when the user
3283# run `make install-strip'.  However `strip' might not be the right
3284# tool to use in cross-compilation environments, therefore Automake
3285# will honor the `STRIP' environment variable to overrule this program.
3286if test "$cross_compiling" != no; then
3287  if test -n "$ac_tool_prefix"; then
3288  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3289set dummy ${ac_tool_prefix}strip; ac_word=$2
3290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3291$as_echo_n "checking for $ac_word... " >&6; }
3292if ${ac_cv_prog_STRIP+:} false; then :
3293  $as_echo_n "(cached) " >&6
3294else
3295  if test -n "$STRIP"; then
3296  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3297else
3298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299for as_dir in $PATH
3300do
3301  IFS=$as_save_IFS
3302  test -z "$as_dir" && as_dir=.
3303    for ac_exec_ext in '' $ac_executable_extensions; do
3304  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3305    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3306    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3307    break 2
3308  fi
3309done
3310  done
3311IFS=$as_save_IFS
3312
3313fi
3314fi
3315STRIP=$ac_cv_prog_STRIP
3316if test -n "$STRIP"; then
3317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3318$as_echo "$STRIP" >&6; }
3319else
3320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3321$as_echo "no" >&6; }
3322fi
3323
3324
3325fi
3326if test -z "$ac_cv_prog_STRIP"; then
3327  ac_ct_STRIP=$STRIP
3328  # Extract the first word of "strip", so it can be a program name with args.
3329set dummy strip; ac_word=$2
3330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3331$as_echo_n "checking for $ac_word... " >&6; }
3332if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3333  $as_echo_n "(cached) " >&6
3334else
3335  if test -n "$ac_ct_STRIP"; then
3336  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3337else
3338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339for as_dir in $PATH
3340do
3341  IFS=$as_save_IFS
3342  test -z "$as_dir" && as_dir=.
3343    for ac_exec_ext in '' $ac_executable_extensions; do
3344  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3345    ac_cv_prog_ac_ct_STRIP="strip"
3346    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3347    break 2
3348  fi
3349done
3350  done
3351IFS=$as_save_IFS
3352
3353fi
3354fi
3355ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3356if test -n "$ac_ct_STRIP"; then
3357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3358$as_echo "$ac_ct_STRIP" >&6; }
3359else
3360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3361$as_echo "no" >&6; }
3362fi
3363
3364  if test "x$ac_ct_STRIP" = x; then
3365    STRIP=":"
3366  else
3367    case $cross_compiling:$ac_tool_warned in
3368yes:)
3369{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3370$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3371ac_tool_warned=yes ;;
3372esac
3373    STRIP=$ac_ct_STRIP
3374  fi
3375else
3376  STRIP="$ac_cv_prog_STRIP"
3377fi
3378
3379fi
3380INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3381
3382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3383$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3384if test -z "$MKDIR_P"; then
3385  if ${ac_cv_path_mkdir+:} false; then :
3386  $as_echo_n "(cached) " >&6
3387else
3388  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3390do
3391  IFS=$as_save_IFS
3392  test -z "$as_dir" && as_dir=.
3393    for ac_prog in mkdir gmkdir; do
3394	 for ac_exec_ext in '' $ac_executable_extensions; do
3395	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3396	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3397	     'mkdir (GNU coreutils) '* | \
3398	     'mkdir (coreutils) '* | \
3399	     'mkdir (fileutils) '4.1*)
3400	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3401	       break 3;;
3402	   esac
3403	 done
3404       done
3405  done
3406IFS=$as_save_IFS
3407
3408fi
3409
3410  test -d ./--version && rmdir ./--version
3411  if test "${ac_cv_path_mkdir+set}" = set; then
3412    MKDIR_P="$ac_cv_path_mkdir -p"
3413  else
3414    # As a last resort, use the slow shell script.  Don't cache a
3415    # value for MKDIR_P within a source directory, because that will
3416    # break other packages using the cache if that directory is
3417    # removed, or if the value is a relative name.
3418    MKDIR_P="$ac_install_sh -d"
3419  fi
3420fi
3421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3422$as_echo "$MKDIR_P" >&6; }
3423
3424mkdir_p="$MKDIR_P"
3425case $mkdir_p in
3426  [\\/$]* | ?:[\\/]*) ;;
3427  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3428esac
3429
3430for ac_prog in gawk mawk nawk awk
3431do
3432  # Extract the first word of "$ac_prog", so it can be a program name with args.
3433set dummy $ac_prog; ac_word=$2
3434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3435$as_echo_n "checking for $ac_word... " >&6; }
3436if ${ac_cv_prog_AWK+:} false; then :
3437  $as_echo_n "(cached) " >&6
3438else
3439  if test -n "$AWK"; then
3440  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3441else
3442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3443for as_dir in $PATH
3444do
3445  IFS=$as_save_IFS
3446  test -z "$as_dir" && as_dir=.
3447    for ac_exec_ext in '' $ac_executable_extensions; do
3448  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3449    ac_cv_prog_AWK="$ac_prog"
3450    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3451    break 2
3452  fi
3453done
3454  done
3455IFS=$as_save_IFS
3456
3457fi
3458fi
3459AWK=$ac_cv_prog_AWK
3460if test -n "$AWK"; then
3461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3462$as_echo "$AWK" >&6; }
3463else
3464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3465$as_echo "no" >&6; }
3466fi
3467
3468
3469  test -n "$AWK" && break
3470done
3471
3472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3473$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3474set x ${MAKE-make}
3475ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3476if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3477  $as_echo_n "(cached) " >&6
3478else
3479  cat >conftest.make <<\_ACEOF
3480SHELL = /bin/sh
3481all:
3482	@echo '@@@%%%=$(MAKE)=@@@%%%'
3483_ACEOF
3484# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3485case `${MAKE-make} -f conftest.make 2>/dev/null` in
3486  *@@@%%%=?*=@@@%%%*)
3487    eval ac_cv_prog_make_${ac_make}_set=yes;;
3488  *)
3489    eval ac_cv_prog_make_${ac_make}_set=no;;
3490esac
3491rm -f conftest.make
3492fi
3493if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3495$as_echo "yes" >&6; }
3496  SET_MAKE=
3497else
3498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3499$as_echo "no" >&6; }
3500  SET_MAKE="MAKE=${MAKE-make}"
3501fi
3502
3503rm -rf .tst 2>/dev/null
3504mkdir .tst 2>/dev/null
3505if test -d .tst; then
3506  am__leading_dot=.
3507else
3508  am__leading_dot=_
3509fi
3510rmdir .tst 2>/dev/null
3511
3512if test "`cd $srcdir && pwd`" != "`pwd`"; then
3513  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3514  # is not polluted with repeated "-I."
3515  am__isrc=' -I$(srcdir)'
3516  # test to see if srcdir already configured
3517  if test -f $srcdir/config.status; then
3518    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3519  fi
3520fi
3521
3522# test whether we have cygpath
3523if test -z "$CYGPATH_W"; then
3524  if (cygpath --version) >/dev/null 2>/dev/null; then
3525    CYGPATH_W='cygpath -w'
3526  else
3527    CYGPATH_W=echo
3528  fi
3529fi
3530
3531
3532# Define the identity of the package.
3533 PACKAGE='scim-tables'
3534 VERSION='0.5.10'
3535
3536
3537cat >>confdefs.h <<_ACEOF
3538#define PACKAGE "$PACKAGE"
3539_ACEOF
3540
3541
3542cat >>confdefs.h <<_ACEOF
3543#define VERSION "$VERSION"
3544_ACEOF
3545
3546# Some tools Automake needs.
3547
3548ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3549
3550
3551AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3552
3553
3554AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3555
3556
3557AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3558
3559
3560MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3561
3562# We need awk for the "check" target.  The system "awk" is bad on
3563# some platforms.
3564# Always define AMTAR for backward compatibility.
3565
3566AMTAR=${AMTAR-"${am_missing_run}tar"}
3567
3568am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3569
3570
3571
3572
3573
3574ac_config_headers="$ac_config_headers config.h"
3575
3576
3577# Init gettext
3578ALL_LINGUAS="zh_CN zh_TW ja ko de fr it pa nl"
3579
3580        MKINSTALLDIRS=
3581  if test -n "$ac_aux_dir"; then
3582    case "$ac_aux_dir" in
3583      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
3584      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
3585    esac
3586  fi
3587  if test -z "$MKINSTALLDIRS"; then
3588    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3589  fi
3590
3591
3592
3593  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
3594$as_echo_n "checking whether NLS is requested... " >&6; }
3595    # Check whether --enable-nls was given.
3596if test "${enable_nls+set}" = set; then :
3597  enableval=$enable_nls; USE_NLS=$enableval
3598else
3599  USE_NLS=yes
3600fi
3601
3602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
3603$as_echo "$USE_NLS" >&6; }
3604
3605
3606
3607
3608
3609
3610# Prepare PATH_SEPARATOR.
3611# The user is always right.
3612if test "${PATH_SEPARATOR+set}" != set; then
3613  echo "#! /bin/sh" >conf$$.sh
3614  echo  "exit 0"   >>conf$$.sh
3615  chmod +x conf$$.sh
3616  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3617    PATH_SEPARATOR=';'
3618  else
3619    PATH_SEPARATOR=:
3620  fi
3621  rm -f conf$$.sh
3622fi
3623
3624# Find out how to test for executable files. Don't use a zero-byte file,
3625# as systems may use methods other than mode bits to determine executability.
3626cat >conf$$.file <<_ASEOF
3627#! /bin/sh
3628exit 0
3629_ASEOF
3630chmod +x conf$$.file
3631if test -x conf$$.file >/dev/null 2>&1; then
3632  ac_executable_p="test -x"
3633else
3634  ac_executable_p="test -f"
3635fi
3636rm -f conf$$.file
3637
3638# Extract the first word of "msgfmt", so it can be a program name with args.
3639set dummy msgfmt; ac_word=$2
3640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3641$as_echo_n "checking for $ac_word... " >&6; }
3642if ${ac_cv_path_MSGFMT+:} false; then :
3643  $as_echo_n "(cached) " >&6
3644else
3645  case "$MSGFMT" in
3646  [\\/]* | ?:[\\/]*)
3647    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3648    ;;
3649  *)
3650    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3651    for ac_dir in $PATH; do
3652      IFS="$ac_save_IFS"
3653      test -z "$ac_dir" && ac_dir=.
3654      for ac_exec_ext in '' $ac_executable_extensions; do
3655        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3656          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
3657     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3658            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
3659            break 2
3660          fi
3661        fi
3662      done
3663    done
3664    IFS="$ac_save_IFS"
3665  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3666    ;;
3667esac
3668fi
3669MSGFMT="$ac_cv_path_MSGFMT"
3670if test "$MSGFMT" != ":"; then
3671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
3672$as_echo "$MSGFMT" >&6; }
3673else
3674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3675$as_echo "no" >&6; }
3676fi
3677
3678  # Extract the first word of "gmsgfmt", so it can be a program name with args.
3679set dummy gmsgfmt; ac_word=$2
3680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3681$as_echo_n "checking for $ac_word... " >&6; }
3682if ${ac_cv_path_GMSGFMT+:} false; then :
3683  $as_echo_n "(cached) " >&6
3684else
3685  case $GMSGFMT in
3686  [\\/]* | ?:[\\/]*)
3687  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3688  ;;
3689  *)
3690  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3691for as_dir in $PATH
3692do
3693  IFS=$as_save_IFS
3694  test -z "$as_dir" && as_dir=.
3695    for ac_exec_ext in '' $ac_executable_extensions; do
3696  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3697    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
3698    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3699    break 2
3700  fi
3701done
3702  done
3703IFS=$as_save_IFS
3704
3705  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3706  ;;
3707esac
3708fi
3709GMSGFMT=$ac_cv_path_GMSGFMT
3710if test -n "$GMSGFMT"; then
3711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
3712$as_echo "$GMSGFMT" >&6; }
3713else
3714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3715$as_echo "no" >&6; }
3716fi
3717
3718
3719
3720
3721# Prepare PATH_SEPARATOR.
3722# The user is always right.
3723if test "${PATH_SEPARATOR+set}" != set; then
3724  echo "#! /bin/sh" >conf$$.sh
3725  echo  "exit 0"   >>conf$$.sh
3726  chmod +x conf$$.sh
3727  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3728    PATH_SEPARATOR=';'
3729  else
3730    PATH_SEPARATOR=:
3731  fi
3732  rm -f conf$$.sh
3733fi
3734
3735# Find out how to test for executable files. Don't use a zero-byte file,
3736# as systems may use methods other than mode bits to determine executability.
3737cat >conf$$.file <<_ASEOF
3738#! /bin/sh
3739exit 0
3740_ASEOF
3741chmod +x conf$$.file
3742if test -x conf$$.file >/dev/null 2>&1; then
3743  ac_executable_p="test -x"
3744else
3745  ac_executable_p="test -f"
3746fi
3747rm -f conf$$.file
3748
3749# Extract the first word of "xgettext", so it can be a program name with args.
3750set dummy xgettext; ac_word=$2
3751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3752$as_echo_n "checking for $ac_word... " >&6; }
3753if ${ac_cv_path_XGETTEXT+:} false; then :
3754  $as_echo_n "(cached) " >&6
3755else
3756  case "$XGETTEXT" in
3757  [\\/]* | ?:[\\/]*)
3758    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3759    ;;
3760  *)
3761    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3762    for ac_dir in $PATH; do
3763      IFS="$ac_save_IFS"
3764      test -z "$ac_dir" && ac_dir=.
3765      for ac_exec_ext in '' $ac_executable_extensions; do
3766        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3767          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3768     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3769            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
3770            break 2
3771          fi
3772        fi
3773      done
3774    done
3775    IFS="$ac_save_IFS"
3776  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3777    ;;
3778esac
3779fi
3780XGETTEXT="$ac_cv_path_XGETTEXT"
3781if test "$XGETTEXT" != ":"; then
3782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
3783$as_echo "$XGETTEXT" >&6; }
3784else
3785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3786$as_echo "no" >&6; }
3787fi
3788
3789    rm -f messages.po
3790
3791
3792# Prepare PATH_SEPARATOR.
3793# The user is always right.
3794if test "${PATH_SEPARATOR+set}" != set; then
3795  echo "#! /bin/sh" >conf$$.sh
3796  echo  "exit 0"   >>conf$$.sh
3797  chmod +x conf$$.sh
3798  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3799    PATH_SEPARATOR=';'
3800  else
3801    PATH_SEPARATOR=:
3802  fi
3803  rm -f conf$$.sh
3804fi
3805
3806# Find out how to test for executable files. Don't use a zero-byte file,
3807# as systems may use methods other than mode bits to determine executability.
3808cat >conf$$.file <<_ASEOF
3809#! /bin/sh
3810exit 0
3811_ASEOF
3812chmod +x conf$$.file
3813if test -x conf$$.file >/dev/null 2>&1; then
3814  ac_executable_p="test -x"
3815else
3816  ac_executable_p="test -f"
3817fi
3818rm -f conf$$.file
3819
3820# Extract the first word of "msgmerge", so it can be a program name with args.
3821set dummy msgmerge; ac_word=$2
3822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3823$as_echo_n "checking for $ac_word... " >&6; }
3824if ${ac_cv_path_MSGMERGE+:} false; then :
3825  $as_echo_n "(cached) " >&6
3826else
3827  case "$MSGMERGE" in
3828  [\\/]* | ?:[\\/]*)
3829    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3830    ;;
3831  *)
3832    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3833    for ac_dir in $PATH; do
3834      IFS="$ac_save_IFS"
3835      test -z "$ac_dir" && ac_dir=.
3836      for ac_exec_ext in '' $ac_executable_extensions; do
3837        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3838          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
3839            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
3840            break 2
3841          fi
3842        fi
3843      done
3844    done
3845    IFS="$ac_save_IFS"
3846  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3847    ;;
3848esac
3849fi
3850MSGMERGE="$ac_cv_path_MSGMERGE"
3851if test "$MSGMERGE" != ":"; then
3852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
3853$as_echo "$MSGMERGE" >&6; }
3854else
3855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3856$as_echo "no" >&6; }
3857fi
3858
3859
3860      if test "$GMSGFMT" != ":"; then
3861            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
3862       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3863      : ;
3864    else
3865      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3866      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
3867$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
3868      GMSGFMT=":"
3869    fi
3870  fi
3871
3872      if test "$XGETTEXT" != ":"; then
3873            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3874       (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3875      : ;
3876    else
3877      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
3878$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
3879      XGETTEXT=":"
3880    fi
3881        rm -f messages.po
3882  fi
3883
3884  ac_config_commands="$ac_config_commands default-1"
3885
3886
3887DEPDIR="${am__leading_dot}deps"
3888
3889ac_config_commands="$ac_config_commands depfiles"
3890
3891
3892am_make=${MAKE-make}
3893cat > confinc << 'END'
3894am__doit:
3895	@echo this is the am__doit target
3896.PHONY: am__doit
3897END
3898# If we don't find an include directive, just comment out the code.
3899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3900$as_echo_n "checking for style of include used by $am_make... " >&6; }
3901am__include="#"
3902am__quote=
3903_am_result=none
3904# First try GNU make style include.
3905echo "include confinc" > confmf
3906# Ignore all kinds of additional output from `make'.
3907case `$am_make -s -f confmf 2> /dev/null` in #(
3908*the\ am__doit\ target*)
3909  am__include=include
3910  am__quote=
3911  _am_result=GNU
3912  ;;
3913esac
3914# Now try BSD make style include.
3915if test "$am__include" = "#"; then
3916   echo '.include "confinc"' > confmf
3917   case `$am_make -s -f confmf 2> /dev/null` in #(
3918   *the\ am__doit\ target*)
3919     am__include=.include
3920     am__quote="\""
3921     _am_result=BSD
3922     ;;
3923   esac
3924fi
3925
3926
3927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3928$as_echo "$_am_result" >&6; }
3929rm -f confinc confmf
3930
3931# Check whether --enable-dependency-tracking was given.
3932if test "${enable_dependency_tracking+set}" = set; then :
3933  enableval=$enable_dependency_tracking;
3934fi
3935
3936if test "x$enable_dependency_tracking" != xno; then
3937  am_depcomp="$ac_aux_dir/depcomp"
3938  AMDEPBACKSLASH='\'
3939fi
3940 if test "x$enable_dependency_tracking" != xno; then
3941  AMDEP_TRUE=
3942  AMDEP_FALSE='#'
3943else
3944  AMDEP_TRUE='#'
3945  AMDEP_FALSE=
3946fi
3947
3948
3949ac_ext=c
3950ac_cpp='$CPP $CPPFLAGS'
3951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3953ac_compiler_gnu=$ac_cv_c_compiler_gnu
3954if test -n "$ac_tool_prefix"; then
3955  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3956set dummy ${ac_tool_prefix}gcc; ac_word=$2
3957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3958$as_echo_n "checking for $ac_word... " >&6; }
3959if ${ac_cv_prog_CC+:} false; then :
3960  $as_echo_n "(cached) " >&6
3961else
3962  if test -n "$CC"; then
3963  ac_cv_prog_CC="$CC" # Let the user override the test.
3964else
3965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966for as_dir in $PATH
3967do
3968  IFS=$as_save_IFS
3969  test -z "$as_dir" && as_dir=.
3970    for ac_exec_ext in '' $ac_executable_extensions; do
3971  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3972    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3973    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3974    break 2
3975  fi
3976done
3977  done
3978IFS=$as_save_IFS
3979
3980fi
3981fi
3982CC=$ac_cv_prog_CC
3983if test -n "$CC"; then
3984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3985$as_echo "$CC" >&6; }
3986else
3987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3988$as_echo "no" >&6; }
3989fi
3990
3991
3992fi
3993if test -z "$ac_cv_prog_CC"; then
3994  ac_ct_CC=$CC
3995  # Extract the first word of "gcc", so it can be a program name with args.
3996set dummy gcc; ac_word=$2
3997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3998$as_echo_n "checking for $ac_word... " >&6; }
3999if ${ac_cv_prog_ac_ct_CC+:} false; then :
4000  $as_echo_n "(cached) " >&6
4001else
4002  if test -n "$ac_ct_CC"; then
4003  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4004else
4005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006for as_dir in $PATH
4007do
4008  IFS=$as_save_IFS
4009  test -z "$as_dir" && as_dir=.
4010    for ac_exec_ext in '' $ac_executable_extensions; do
4011  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4012    ac_cv_prog_ac_ct_CC="gcc"
4013    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4014    break 2
4015  fi
4016done
4017  done
4018IFS=$as_save_IFS
4019
4020fi
4021fi
4022ac_ct_CC=$ac_cv_prog_ac_ct_CC
4023if test -n "$ac_ct_CC"; then
4024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4025$as_echo "$ac_ct_CC" >&6; }
4026else
4027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4028$as_echo "no" >&6; }
4029fi
4030
4031  if test "x$ac_ct_CC" = x; then
4032    CC=""
4033  else
4034    case $cross_compiling:$ac_tool_warned in
4035yes:)
4036{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4037$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4038ac_tool_warned=yes ;;
4039esac
4040    CC=$ac_ct_CC
4041  fi
4042else
4043  CC="$ac_cv_prog_CC"
4044fi
4045
4046if test -z "$CC"; then
4047          if test -n "$ac_tool_prefix"; then
4048    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4049set dummy ${ac_tool_prefix}cc; ac_word=$2
4050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4051$as_echo_n "checking for $ac_word... " >&6; }
4052if ${ac_cv_prog_CC+:} false; then :
4053  $as_echo_n "(cached) " >&6
4054else
4055  if test -n "$CC"; then
4056  ac_cv_prog_CC="$CC" # Let the user override the test.
4057else
4058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4059for as_dir in $PATH
4060do
4061  IFS=$as_save_IFS
4062  test -z "$as_dir" && as_dir=.
4063    for ac_exec_ext in '' $ac_executable_extensions; do
4064  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4065    ac_cv_prog_CC="${ac_tool_prefix}cc"
4066    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4067    break 2
4068  fi
4069done
4070  done
4071IFS=$as_save_IFS
4072
4073fi
4074fi
4075CC=$ac_cv_prog_CC
4076if test -n "$CC"; then
4077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4078$as_echo "$CC" >&6; }
4079else
4080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4081$as_echo "no" >&6; }
4082fi
4083
4084
4085  fi
4086fi
4087if test -z "$CC"; then
4088  # Extract the first word of "cc", so it can be a program name with args.
4089set dummy cc; ac_word=$2
4090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4091$as_echo_n "checking for $ac_word... " >&6; }
4092if ${ac_cv_prog_CC+:} false; then :
4093  $as_echo_n "(cached) " >&6
4094else
4095  if test -n "$CC"; then
4096  ac_cv_prog_CC="$CC" # Let the user override the test.
4097else
4098  ac_prog_rejected=no
4099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100for as_dir in $PATH
4101do
4102  IFS=$as_save_IFS
4103  test -z "$as_dir" && as_dir=.
4104    for ac_exec_ext in '' $ac_executable_extensions; do
4105  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4106    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4107       ac_prog_rejected=yes
4108       continue
4109     fi
4110    ac_cv_prog_CC="cc"
4111    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4112    break 2
4113  fi
4114done
4115  done
4116IFS=$as_save_IFS
4117
4118if test $ac_prog_rejected = yes; then
4119  # We found a bogon in the path, so make sure we never use it.
4120  set dummy $ac_cv_prog_CC
4121  shift
4122  if test $# != 0; then
4123    # We chose a different compiler from the bogus one.
4124    # However, it has the same basename, so the bogon will be chosen
4125    # first if we set CC to just the basename; use the full file name.
4126    shift
4127    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4128  fi
4129fi
4130fi
4131fi
4132CC=$ac_cv_prog_CC
4133if test -n "$CC"; then
4134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4135$as_echo "$CC" >&6; }
4136else
4137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4138$as_echo "no" >&6; }
4139fi
4140
4141
4142fi
4143if test -z "$CC"; then
4144  if test -n "$ac_tool_prefix"; then
4145  for ac_prog in cl.exe
4146  do
4147    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4148set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4150$as_echo_n "checking for $ac_word... " >&6; }
4151if ${ac_cv_prog_CC+:} false; then :
4152  $as_echo_n "(cached) " >&6
4153else
4154  if test -n "$CC"; then
4155  ac_cv_prog_CC="$CC" # Let the user override the test.
4156else
4157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158for as_dir in $PATH
4159do
4160  IFS=$as_save_IFS
4161  test -z "$as_dir" && as_dir=.
4162    for ac_exec_ext in '' $ac_executable_extensions; do
4163  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4164    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4165    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4166    break 2
4167  fi
4168done
4169  done
4170IFS=$as_save_IFS
4171
4172fi
4173fi
4174CC=$ac_cv_prog_CC
4175if test -n "$CC"; then
4176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4177$as_echo "$CC" >&6; }
4178else
4179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4180$as_echo "no" >&6; }
4181fi
4182
4183
4184    test -n "$CC" && break
4185  done
4186fi
4187if test -z "$CC"; then
4188  ac_ct_CC=$CC
4189  for ac_prog in cl.exe
4190do
4191  # Extract the first word of "$ac_prog", so it can be a program name with args.
4192set dummy $ac_prog; ac_word=$2
4193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4194$as_echo_n "checking for $ac_word... " >&6; }
4195if ${ac_cv_prog_ac_ct_CC+:} false; then :
4196  $as_echo_n "(cached) " >&6
4197else
4198  if test -n "$ac_ct_CC"; then
4199  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4200else
4201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202for as_dir in $PATH
4203do
4204  IFS=$as_save_IFS
4205  test -z "$as_dir" && as_dir=.
4206    for ac_exec_ext in '' $ac_executable_extensions; do
4207  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4208    ac_cv_prog_ac_ct_CC="$ac_prog"
4209    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4210    break 2
4211  fi
4212done
4213  done
4214IFS=$as_save_IFS
4215
4216fi
4217fi
4218ac_ct_CC=$ac_cv_prog_ac_ct_CC
4219if test -n "$ac_ct_CC"; then
4220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4221$as_echo "$ac_ct_CC" >&6; }
4222else
4223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4224$as_echo "no" >&6; }
4225fi
4226
4227
4228  test -n "$ac_ct_CC" && break
4229done
4230
4231  if test "x$ac_ct_CC" = x; then
4232    CC=""
4233  else
4234    case $cross_compiling:$ac_tool_warned in
4235yes:)
4236{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4237$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4238ac_tool_warned=yes ;;
4239esac
4240    CC=$ac_ct_CC
4241  fi
4242fi
4243
4244fi
4245
4246
4247test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4248$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4249as_fn_error $? "no acceptable C compiler found in \$PATH
4250See \`config.log' for more details" "$LINENO" 5; }
4251
4252# Provide some information about the compiler.
4253$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4254set X $ac_compile
4255ac_compiler=$2
4256for ac_option in --version -v -V -qversion; do
4257  { { ac_try="$ac_compiler $ac_option >&5"
4258case "(($ac_try" in
4259  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260  *) ac_try_echo=$ac_try;;
4261esac
4262eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4263$as_echo "$ac_try_echo"; } >&5
4264  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4265  ac_status=$?
4266  if test -s conftest.err; then
4267    sed '10a\
4268... rest of stderr output deleted ...
4269         10q' conftest.err >conftest.er1
4270    cat conftest.er1 >&5
4271  fi
4272  rm -f conftest.er1 conftest.err
4273  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4274  test $ac_status = 0; }
4275done
4276
4277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278/* end confdefs.h.  */
4279
4280int
4281main ()
4282{
4283
4284  ;
4285  return 0;
4286}
4287_ACEOF
4288ac_clean_files_save=$ac_clean_files
4289ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4290# Try to create an executable without -o first, disregard a.out.
4291# It will help us diagnose broken compilers, and finding out an intuition
4292# of exeext.
4293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4294$as_echo_n "checking whether the C compiler works... " >&6; }
4295ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4296
4297# The possible output files:
4298ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4299
4300ac_rmfiles=
4301for ac_file in $ac_files
4302do
4303  case $ac_file in
4304    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4305    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4306  esac
4307done
4308rm -f $ac_rmfiles
4309
4310if { { ac_try="$ac_link_default"
4311case "(($ac_try" in
4312  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4313  *) ac_try_echo=$ac_try;;
4314esac
4315eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4316$as_echo "$ac_try_echo"; } >&5
4317  (eval "$ac_link_default") 2>&5
4318  ac_status=$?
4319  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4320  test $ac_status = 0; }; then :
4321  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4322# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4323# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4324# so that the user can short-circuit this test for compilers unknown to
4325# Autoconf.
4326for ac_file in $ac_files ''
4327do
4328  test -f "$ac_file" || continue
4329  case $ac_file in
4330    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4331	;;
4332    [ab].out )
4333	# We found the default executable, but exeext='' is most
4334	# certainly right.
4335	break;;
4336    *.* )
4337	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4338	then :; else
4339	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4340	fi
4341	# We set ac_cv_exeext here because the later test for it is not
4342	# safe: cross compilers may not add the suffix if given an `-o'
4343	# argument, so we may need to know it at that point already.
4344	# Even if this section looks crufty: it has the advantage of
4345	# actually working.
4346	break;;
4347    * )
4348	break;;
4349  esac
4350done
4351test "$ac_cv_exeext" = no && ac_cv_exeext=
4352
4353else
4354  ac_file=''
4355fi
4356if test -z "$ac_file"; then :
4357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4358$as_echo "no" >&6; }
4359$as_echo "$as_me: failed program was:" >&5
4360sed 's/^/| /' conftest.$ac_ext >&5
4361
4362{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4363$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4364as_fn_error 77 "C compiler cannot create executables
4365See \`config.log' for more details" "$LINENO" 5; }
4366else
4367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4368$as_echo "yes" >&6; }
4369fi
4370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4371$as_echo_n "checking for C compiler default output file name... " >&6; }
4372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4373$as_echo "$ac_file" >&6; }
4374ac_exeext=$ac_cv_exeext
4375
4376rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4377ac_clean_files=$ac_clean_files_save
4378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4379$as_echo_n "checking for suffix of executables... " >&6; }
4380if { { ac_try="$ac_link"
4381case "(($ac_try" in
4382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4383  *) ac_try_echo=$ac_try;;
4384esac
4385eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4386$as_echo "$ac_try_echo"; } >&5
4387  (eval "$ac_link") 2>&5
4388  ac_status=$?
4389  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4390  test $ac_status = 0; }; then :
4391  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4392# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4393# work properly (i.e., refer to `conftest.exe'), while it won't with
4394# `rm'.
4395for ac_file in conftest.exe conftest conftest.*; do
4396  test -f "$ac_file" || continue
4397  case $ac_file in
4398    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4399    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4400	  break;;
4401    * ) break;;
4402  esac
4403done
4404else
4405  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4406$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4407as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4408See \`config.log' for more details" "$LINENO" 5; }
4409fi
4410rm -f conftest conftest$ac_cv_exeext
4411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4412$as_echo "$ac_cv_exeext" >&6; }
4413
4414rm -f conftest.$ac_ext
4415EXEEXT=$ac_cv_exeext
4416ac_exeext=$EXEEXT
4417cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4418/* end confdefs.h.  */
4419#include <stdio.h>
4420int
4421main ()
4422{
4423FILE *f = fopen ("conftest.out", "w");
4424 return ferror (f) || fclose (f) != 0;
4425
4426  ;
4427  return 0;
4428}
4429_ACEOF
4430ac_clean_files="$ac_clean_files conftest.out"
4431# Check that the compiler produces executables we can run.  If not, either
4432# the compiler is broken, or we cross compile.
4433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4434$as_echo_n "checking whether we are cross compiling... " >&6; }
4435if test "$cross_compiling" != yes; then
4436  { { ac_try="$ac_link"
4437case "(($ac_try" in
4438  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439  *) ac_try_echo=$ac_try;;
4440esac
4441eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4442$as_echo "$ac_try_echo"; } >&5
4443  (eval "$ac_link") 2>&5
4444  ac_status=$?
4445  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4446  test $ac_status = 0; }
4447  if { ac_try='./conftest$ac_cv_exeext'
4448  { { case "(($ac_try" in
4449  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450  *) ac_try_echo=$ac_try;;
4451esac
4452eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4453$as_echo "$ac_try_echo"; } >&5
4454  (eval "$ac_try") 2>&5
4455  ac_status=$?
4456  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4457  test $ac_status = 0; }; }; then
4458    cross_compiling=no
4459  else
4460    if test "$cross_compiling" = maybe; then
4461	cross_compiling=yes
4462    else
4463	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4464$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4465as_fn_error $? "cannot run C compiled programs.
4466If you meant to cross compile, use \`--host'.
4467See \`config.log' for more details" "$LINENO" 5; }
4468    fi
4469  fi
4470fi
4471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4472$as_echo "$cross_compiling" >&6; }
4473
4474rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4475ac_clean_files=$ac_clean_files_save
4476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4477$as_echo_n "checking for suffix of object files... " >&6; }
4478if ${ac_cv_objext+:} false; then :
4479  $as_echo_n "(cached) " >&6
4480else
4481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482/* end confdefs.h.  */
4483
4484int
4485main ()
4486{
4487
4488  ;
4489  return 0;
4490}
4491_ACEOF
4492rm -f conftest.o conftest.obj
4493if { { ac_try="$ac_compile"
4494case "(($ac_try" in
4495  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4496  *) ac_try_echo=$ac_try;;
4497esac
4498eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4499$as_echo "$ac_try_echo"; } >&5
4500  (eval "$ac_compile") 2>&5
4501  ac_status=$?
4502  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4503  test $ac_status = 0; }; then :
4504  for ac_file in conftest.o conftest.obj conftest.*; do
4505  test -f "$ac_file" || continue;
4506  case $ac_file in
4507    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4508    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4509       break;;
4510  esac
4511done
4512else
4513  $as_echo "$as_me: failed program was:" >&5
4514sed 's/^/| /' conftest.$ac_ext >&5
4515
4516{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4517$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4518as_fn_error $? "cannot compute suffix of object files: cannot compile
4519See \`config.log' for more details" "$LINENO" 5; }
4520fi
4521rm -f conftest.$ac_cv_objext conftest.$ac_ext
4522fi
4523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4524$as_echo "$ac_cv_objext" >&6; }
4525OBJEXT=$ac_cv_objext
4526ac_objext=$OBJEXT
4527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4528$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4529if ${ac_cv_c_compiler_gnu+:} false; then :
4530  $as_echo_n "(cached) " >&6
4531else
4532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4533/* end confdefs.h.  */
4534
4535int
4536main ()
4537{
4538#ifndef __GNUC__
4539       choke me
4540#endif
4541
4542  ;
4543  return 0;
4544}
4545_ACEOF
4546if ac_fn_c_try_compile "$LINENO"; then :
4547  ac_compiler_gnu=yes
4548else
4549  ac_compiler_gnu=no
4550fi
4551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4552ac_cv_c_compiler_gnu=$ac_compiler_gnu
4553
4554fi
4555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4556$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4557if test $ac_compiler_gnu = yes; then
4558  GCC=yes
4559else
4560  GCC=
4561fi
4562ac_test_CFLAGS=${CFLAGS+set}
4563ac_save_CFLAGS=$CFLAGS
4564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4565$as_echo_n "checking whether $CC accepts -g... " >&6; }
4566if ${ac_cv_prog_cc_g+:} false; then :
4567  $as_echo_n "(cached) " >&6
4568else
4569  ac_save_c_werror_flag=$ac_c_werror_flag
4570   ac_c_werror_flag=yes
4571   ac_cv_prog_cc_g=no
4572   CFLAGS="-g"
4573   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574/* end confdefs.h.  */
4575
4576int
4577main ()
4578{
4579
4580  ;
4581  return 0;
4582}
4583_ACEOF
4584if ac_fn_c_try_compile "$LINENO"; then :
4585  ac_cv_prog_cc_g=yes
4586else
4587  CFLAGS=""
4588      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4589/* end confdefs.h.  */
4590
4591int
4592main ()
4593{
4594
4595  ;
4596  return 0;
4597}
4598_ACEOF
4599if ac_fn_c_try_compile "$LINENO"; then :
4600
4601else
4602  ac_c_werror_flag=$ac_save_c_werror_flag
4603	 CFLAGS="-g"
4604	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605/* end confdefs.h.  */
4606
4607int
4608main ()
4609{
4610
4611  ;
4612  return 0;
4613}
4614_ACEOF
4615if ac_fn_c_try_compile "$LINENO"; then :
4616  ac_cv_prog_cc_g=yes
4617fi
4618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4619fi
4620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4621fi
4622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4623   ac_c_werror_flag=$ac_save_c_werror_flag
4624fi
4625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4626$as_echo "$ac_cv_prog_cc_g" >&6; }
4627if test "$ac_test_CFLAGS" = set; then
4628  CFLAGS=$ac_save_CFLAGS
4629elif test $ac_cv_prog_cc_g = yes; then
4630  if test "$GCC" = yes; then
4631    CFLAGS="-g -O2"
4632  else
4633    CFLAGS="-g"
4634  fi
4635else
4636  if test "$GCC" = yes; then
4637    CFLAGS="-O2"
4638  else
4639    CFLAGS=
4640  fi
4641fi
4642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4643$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4644if ${ac_cv_prog_cc_c89+:} false; then :
4645  $as_echo_n "(cached) " >&6
4646else
4647  ac_cv_prog_cc_c89=no
4648ac_save_CC=$CC
4649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4650/* end confdefs.h.  */
4651#include <stdarg.h>
4652#include <stdio.h>
4653#include <sys/types.h>
4654#include <sys/stat.h>
4655/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4656struct buf { int x; };
4657FILE * (*rcsopen) (struct buf *, struct stat *, int);
4658static char *e (p, i)
4659     char **p;
4660     int i;
4661{
4662  return p[i];
4663}
4664static char *f (char * (*g) (char **, int), char **p, ...)
4665{
4666  char *s;
4667  va_list v;
4668  va_start (v,p);
4669  s = g (p, va_arg (v,int));
4670  va_end (v);
4671  return s;
4672}
4673
4674/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4675   function prototypes and stuff, but not '\xHH' hex character constants.
4676   These don't provoke an error unfortunately, instead are silently treated
4677   as 'x'.  The following induces an error, until -std is added to get
4678   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4679   array size at least.  It's necessary to write '\x00'==0 to get something
4680   that's true only with -std.  */
4681int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4682
4683/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4684   inside strings and character constants.  */
4685#define FOO(x) 'x'
4686int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4687
4688int test (int i, double x);
4689struct s1 {int (*f) (int a);};
4690struct s2 {int (*f) (double a);};
4691int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4692int argc;
4693char **argv;
4694int
4695main ()
4696{
4697return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4698  ;
4699  return 0;
4700}
4701_ACEOF
4702for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4703	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4704do
4705  CC="$ac_save_CC $ac_arg"
4706  if ac_fn_c_try_compile "$LINENO"; then :
4707  ac_cv_prog_cc_c89=$ac_arg
4708fi
4709rm -f core conftest.err conftest.$ac_objext
4710  test "x$ac_cv_prog_cc_c89" != "xno" && break
4711done
4712rm -f conftest.$ac_ext
4713CC=$ac_save_CC
4714
4715fi
4716# AC_CACHE_VAL
4717case "x$ac_cv_prog_cc_c89" in
4718  x)
4719    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4720$as_echo "none needed" >&6; } ;;
4721  xno)
4722    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4723$as_echo "unsupported" >&6; } ;;
4724  *)
4725    CC="$CC $ac_cv_prog_cc_c89"
4726    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4727$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4728esac
4729if test "x$ac_cv_prog_cc_c89" != xno; then :
4730
4731fi
4732
4733ac_ext=c
4734ac_cpp='$CPP $CPPFLAGS'
4735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4737ac_compiler_gnu=$ac_cv_c_compiler_gnu
4738
4739depcc="$CC"   am_compiler_list=
4740
4741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4742$as_echo_n "checking dependency style of $depcc... " >&6; }
4743if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4744  $as_echo_n "(cached) " >&6
4745else
4746  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4747  # We make a subdir and do the tests there.  Otherwise we can end up
4748  # making bogus files that we don't know about and never remove.  For
4749  # instance it was reported that on HP-UX the gcc test will end up
4750  # making a dummy file named `D' -- because `-MD' means `put the output
4751  # in D'.
4752  mkdir conftest.dir
4753  # Copy depcomp to subdir because otherwise we won't find it if we're
4754  # using a relative directory.
4755  cp "$am_depcomp" conftest.dir
4756  cd conftest.dir
4757  # We will build objects and dependencies in a subdirectory because
4758  # it helps to detect inapplicable dependency modes.  For instance
4759  # both Tru64's cc and ICC support -MD to output dependencies as a
4760  # side effect of compilation, but ICC will put the dependencies in
4761  # the current directory while Tru64 will put them in the object
4762  # directory.
4763  mkdir sub
4764
4765  am_cv_CC_dependencies_compiler_type=none
4766  if test "$am_compiler_list" = ""; then
4767     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4768  fi
4769  am__universal=false
4770  case " $depcc " in #(
4771     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4772     esac
4773
4774  for depmode in $am_compiler_list; do
4775    # Setup a source with many dependencies, because some compilers
4776    # like to wrap large dependency lists on column 80 (with \), and
4777    # we should not choose a depcomp mode which is confused by this.
4778    #
4779    # We need to recreate these files for each test, as the compiler may
4780    # overwrite some of them when testing with obscure command lines.
4781    # This happens at least with the AIX C compiler.
4782    : > sub/conftest.c
4783    for i in 1 2 3 4 5 6; do
4784      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4785      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4786      # Solaris 8's {/usr,}/bin/sh.
4787      touch sub/conftst$i.h
4788    done
4789    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4790
4791    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4792    # mode.  It turns out that the SunPro C++ compiler does not properly
4793    # handle `-M -o', and we need to detect this.  Also, some Intel
4794    # versions had trouble with output in subdirs
4795    am__obj=sub/conftest.${OBJEXT-o}
4796    am__minus_obj="-o $am__obj"
4797    case $depmode in
4798    gcc)
4799      # This depmode causes a compiler race in universal mode.
4800      test "$am__universal" = false || continue
4801      ;;
4802    nosideeffect)
4803      # after this tag, mechanisms are not by side-effect, so they'll
4804      # only be used when explicitly requested
4805      if test "x$enable_dependency_tracking" = xyes; then
4806	continue
4807      else
4808	break
4809      fi
4810      ;;
4811    msvisualcpp | msvcmsys)
4812      # This compiler won't grok `-c -o', but also, the minuso test has
4813      # not run yet.  These depmodes are late enough in the game, and
4814      # so weak that their functioning should not be impacted.
4815      am__obj=conftest.${OBJEXT-o}
4816      am__minus_obj=
4817      ;;
4818    none) break ;;
4819    esac
4820    if depmode=$depmode \
4821       source=sub/conftest.c object=$am__obj \
4822       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4823       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4824         >/dev/null 2>conftest.err &&
4825       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4826       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4827       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4828       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4829      # icc doesn't choke on unknown options, it will just issue warnings
4830      # or remarks (even with -Werror).  So we grep stderr for any message
4831      # that says an option was ignored or not supported.
4832      # When given -MP, icc 7.0 and 7.1 complain thusly:
4833      #   icc: Command line warning: ignoring option '-M'; no argument required
4834      # The diagnosis changed in icc 8.0:
4835      #   icc: Command line remark: option '-MP' not supported
4836      if (grep 'ignoring option' conftest.err ||
4837          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4838        am_cv_CC_dependencies_compiler_type=$depmode
4839        break
4840      fi
4841    fi
4842  done
4843
4844  cd ..
4845  rm -rf conftest.dir
4846else
4847  am_cv_CC_dependencies_compiler_type=none
4848fi
4849
4850fi
4851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4852$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4853CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4854
4855 if
4856  test "x$enable_dependency_tracking" != xno \
4857  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4858  am__fastdepCC_TRUE=
4859  am__fastdepCC_FALSE='#'
4860else
4861  am__fastdepCC_TRUE='#'
4862  am__fastdepCC_FALSE=
4863fi
4864
4865
4866# Make sure we can run config.sub.
4867$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4868  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4869
4870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4871$as_echo_n "checking build system type... " >&6; }
4872if ${ac_cv_build+:} false; then :
4873  $as_echo_n "(cached) " >&6
4874else
4875  ac_build_alias=$build_alias
4876test "x$ac_build_alias" = x &&
4877  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4878test "x$ac_build_alias" = x &&
4879  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4880ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4881  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4882
4883fi
4884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4885$as_echo "$ac_cv_build" >&6; }
4886case $ac_cv_build in
4887*-*-*) ;;
4888*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4889esac
4890build=$ac_cv_build
4891ac_save_IFS=$IFS; IFS='-'
4892set x $ac_cv_build
4893shift
4894build_cpu=$1
4895build_vendor=$2
4896shift; shift
4897# Remember, the first character of IFS is used to create $*,
4898# except with old shells:
4899build_os=$*
4900IFS=$ac_save_IFS
4901case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4902
4903
4904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4905$as_echo_n "checking host system type... " >&6; }
4906if ${ac_cv_host+:} false; then :
4907  $as_echo_n "(cached) " >&6
4908else
4909  if test "x$host_alias" = x; then
4910  ac_cv_host=$ac_cv_build
4911else
4912  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4913    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4914fi
4915
4916fi
4917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4918$as_echo "$ac_cv_host" >&6; }
4919case $ac_cv_host in
4920*-*-*) ;;
4921*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4922esac
4923host=$ac_cv_host
4924ac_save_IFS=$IFS; IFS='-'
4925set x $ac_cv_host
4926shift
4927host_cpu=$1
4928host_vendor=$2
4929shift; shift
4930# Remember, the first character of IFS is used to create $*,
4931# except with old shells:
4932host_os=$*
4933IFS=$ac_save_IFS
4934case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4935
4936
4937if test -n "$ac_tool_prefix"; then
4938  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4939set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4941$as_echo_n "checking for $ac_word... " >&6; }
4942if ${ac_cv_prog_RANLIB+:} false; then :
4943  $as_echo_n "(cached) " >&6
4944else
4945  if test -n "$RANLIB"; then
4946  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4947else
4948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949for as_dir in $PATH
4950do
4951  IFS=$as_save_IFS
4952  test -z "$as_dir" && as_dir=.
4953    for ac_exec_ext in '' $ac_executable_extensions; do
4954  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4955    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4956    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4957    break 2
4958  fi
4959done
4960  done
4961IFS=$as_save_IFS
4962
4963fi
4964fi
4965RANLIB=$ac_cv_prog_RANLIB
4966if test -n "$RANLIB"; then
4967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4968$as_echo "$RANLIB" >&6; }
4969else
4970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4971$as_echo "no" >&6; }
4972fi
4973
4974
4975fi
4976if test -z "$ac_cv_prog_RANLIB"; then
4977  ac_ct_RANLIB=$RANLIB
4978  # Extract the first word of "ranlib", so it can be a program name with args.
4979set dummy ranlib; ac_word=$2
4980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4981$as_echo_n "checking for $ac_word... " >&6; }
4982if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4983  $as_echo_n "(cached) " >&6
4984else
4985  if test -n "$ac_ct_RANLIB"; then
4986  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4987else
4988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989for as_dir in $PATH
4990do
4991  IFS=$as_save_IFS
4992  test -z "$as_dir" && as_dir=.
4993    for ac_exec_ext in '' $ac_executable_extensions; do
4994  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4995    ac_cv_prog_ac_ct_RANLIB="ranlib"
4996    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4997    break 2
4998  fi
4999done
5000  done
5001IFS=$as_save_IFS
5002
5003fi
5004fi
5005ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5006if test -n "$ac_ct_RANLIB"; then
5007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5008$as_echo "$ac_ct_RANLIB" >&6; }
5009else
5010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5011$as_echo "no" >&6; }
5012fi
5013
5014  if test "x$ac_ct_RANLIB" = x; then
5015    RANLIB=":"
5016  else
5017    case $cross_compiling:$ac_tool_warned in
5018yes:)
5019{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5020$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5021ac_tool_warned=yes ;;
5022esac
5023    RANLIB=$ac_ct_RANLIB
5024  fi
5025else
5026  RANLIB="$ac_cv_prog_RANLIB"
5027fi
5028
5029
5030
5031        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
5032$as_echo_n "checking for strerror in -lcposix... " >&6; }
5033if ${ac_cv_lib_cposix_strerror+:} false; then :
5034  $as_echo_n "(cached) " >&6
5035else
5036  ac_check_lib_save_LIBS=$LIBS
5037LIBS="-lcposix  $LIBS"
5038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5039/* end confdefs.h.  */
5040
5041/* Override any GCC internal prototype to avoid an error.
5042   Use char because int might match the return type of a GCC
5043   builtin and then its argument prototype would still apply.  */
5044#ifdef __cplusplus
5045extern "C"
5046#endif
5047char strerror ();
5048int
5049main ()
5050{
5051return strerror ();
5052  ;
5053  return 0;
5054}
5055_ACEOF
5056if ac_fn_c_try_link "$LINENO"; then :
5057  ac_cv_lib_cposix_strerror=yes
5058else
5059  ac_cv_lib_cposix_strerror=no
5060fi
5061rm -f core conftest.err conftest.$ac_objext \
5062    conftest$ac_exeext conftest.$ac_ext
5063LIBS=$ac_check_lib_save_LIBS
5064fi
5065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
5066$as_echo "$ac_cv_lib_cposix_strerror" >&6; }
5067if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
5068  LIBS="$LIBS -lcposix"
5069fi
5070
5071
5072
5073ac_ext=c
5074ac_cpp='$CPP $CPPFLAGS'
5075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5077ac_compiler_gnu=$ac_cv_c_compiler_gnu
5078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5079$as_echo_n "checking how to run the C preprocessor... " >&6; }
5080# On Suns, sometimes $CPP names a directory.
5081if test -n "$CPP" && test -d "$CPP"; then
5082  CPP=
5083fi
5084if test -z "$CPP"; then
5085  if ${ac_cv_prog_CPP+:} false; then :
5086  $as_echo_n "(cached) " >&6
5087else
5088      # Double quotes because CPP needs to be expanded
5089    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5090    do
5091      ac_preproc_ok=false
5092for ac_c_preproc_warn_flag in '' yes
5093do
5094  # Use a header file that comes with gcc, so configuring glibc
5095  # with a fresh cross-compiler works.
5096  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5097  # <limits.h> exists even on freestanding compilers.
5098  # On the NeXT, cc -E runs the code through the compiler's parser,
5099  # not just through cpp. "Syntax error" is here to catch this case.
5100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101/* end confdefs.h.  */
5102#ifdef __STDC__
5103# include <limits.h>
5104#else
5105# include <assert.h>
5106#endif
5107		     Syntax error
5108_ACEOF
5109if ac_fn_c_try_cpp "$LINENO"; then :
5110
5111else
5112  # Broken: fails on valid input.
5113continue
5114fi
5115rm -f conftest.err conftest.i conftest.$ac_ext
5116
5117  # OK, works on sane cases.  Now check whether nonexistent headers
5118  # can be detected and how.
5119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120/* end confdefs.h.  */
5121#include <ac_nonexistent.h>
5122_ACEOF
5123if ac_fn_c_try_cpp "$LINENO"; then :
5124  # Broken: success on invalid input.
5125continue
5126else
5127  # Passes both tests.
5128ac_preproc_ok=:
5129break
5130fi
5131rm -f conftest.err conftest.i conftest.$ac_ext
5132
5133done
5134# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5135rm -f conftest.i conftest.err conftest.$ac_ext
5136if $ac_preproc_ok; then :
5137  break
5138fi
5139
5140    done
5141    ac_cv_prog_CPP=$CPP
5142
5143fi
5144  CPP=$ac_cv_prog_CPP
5145else
5146  ac_cv_prog_CPP=$CPP
5147fi
5148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5149$as_echo "$CPP" >&6; }
5150ac_preproc_ok=false
5151for ac_c_preproc_warn_flag in '' yes
5152do
5153  # Use a header file that comes with gcc, so configuring glibc
5154  # with a fresh cross-compiler works.
5155  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5156  # <limits.h> exists even on freestanding compilers.
5157  # On the NeXT, cc -E runs the code through the compiler's parser,
5158  # not just through cpp. "Syntax error" is here to catch this case.
5159  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5160/* end confdefs.h.  */
5161#ifdef __STDC__
5162# include <limits.h>
5163#else
5164# include <assert.h>
5165#endif
5166		     Syntax error
5167_ACEOF
5168if ac_fn_c_try_cpp "$LINENO"; then :
5169
5170else
5171  # Broken: fails on valid input.
5172continue
5173fi
5174rm -f conftest.err conftest.i conftest.$ac_ext
5175
5176  # OK, works on sane cases.  Now check whether nonexistent headers
5177  # can be detected and how.
5178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5179/* end confdefs.h.  */
5180#include <ac_nonexistent.h>
5181_ACEOF
5182if ac_fn_c_try_cpp "$LINENO"; then :
5183  # Broken: success on invalid input.
5184continue
5185else
5186  # Passes both tests.
5187ac_preproc_ok=:
5188break
5189fi
5190rm -f conftest.err conftest.i conftest.$ac_ext
5191
5192done
5193# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5194rm -f conftest.i conftest.err conftest.$ac_ext
5195if $ac_preproc_ok; then :
5196
5197else
5198  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5199$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5200as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5201See \`config.log' for more details" "$LINENO" 5; }
5202fi
5203
5204ac_ext=c
5205ac_cpp='$CPP $CPPFLAGS'
5206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5208ac_compiler_gnu=$ac_cv_c_compiler_gnu
5209
5210
5211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5212$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5213if ${ac_cv_path_GREP+:} false; then :
5214  $as_echo_n "(cached) " >&6
5215else
5216  if test -z "$GREP"; then
5217  ac_path_GREP_found=false
5218  # Loop through the user's path and test for each of PROGNAME-LIST
5219  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5221do
5222  IFS=$as_save_IFS
5223  test -z "$as_dir" && as_dir=.
5224    for ac_prog in grep ggrep; do
5225    for ac_exec_ext in '' $ac_executable_extensions; do
5226      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5227      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5228# Check for GNU ac_path_GREP and select it if it is found.
5229  # Check for GNU $ac_path_GREP
5230case `"$ac_path_GREP" --version 2>&1` in
5231*GNU*)
5232  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5233*)
5234  ac_count=0
5235  $as_echo_n 0123456789 >"conftest.in"
5236  while :
5237  do
5238    cat "conftest.in" "conftest.in" >"conftest.tmp"
5239    mv "conftest.tmp" "conftest.in"
5240    cp "conftest.in" "conftest.nl"
5241    $as_echo 'GREP' >> "conftest.nl"
5242    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5243    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5244    as_fn_arith $ac_count + 1 && ac_count=$as_val
5245    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5246      # Best one so far, save it but keep looking for a better one
5247      ac_cv_path_GREP="$ac_path_GREP"
5248      ac_path_GREP_max=$ac_count
5249    fi
5250    # 10*(2^10) chars as input seems more than enough
5251    test $ac_count -gt 10 && break
5252  done
5253  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5254esac
5255
5256      $ac_path_GREP_found && break 3
5257    done
5258  done
5259  done
5260IFS=$as_save_IFS
5261  if test -z "$ac_cv_path_GREP"; then
5262    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5263  fi
5264else
5265  ac_cv_path_GREP=$GREP
5266fi
5267
5268fi
5269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5270$as_echo "$ac_cv_path_GREP" >&6; }
5271 GREP="$ac_cv_path_GREP"
5272
5273
5274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5275$as_echo_n "checking for egrep... " >&6; }
5276if ${ac_cv_path_EGREP+:} false; then :
5277  $as_echo_n "(cached) " >&6
5278else
5279  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5280   then ac_cv_path_EGREP="$GREP -E"
5281   else
5282     if test -z "$EGREP"; then
5283  ac_path_EGREP_found=false
5284  # Loop through the user's path and test for each of PROGNAME-LIST
5285  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5286for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5287do
5288  IFS=$as_save_IFS
5289  test -z "$as_dir" && as_dir=.
5290    for ac_prog in egrep; do
5291    for ac_exec_ext in '' $ac_executable_extensions; do
5292      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5293      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5294# Check for GNU ac_path_EGREP and select it if it is found.
5295  # Check for GNU $ac_path_EGREP
5296case `"$ac_path_EGREP" --version 2>&1` in
5297*GNU*)
5298  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5299*)
5300  ac_count=0
5301  $as_echo_n 0123456789 >"conftest.in"
5302  while :
5303  do
5304    cat "conftest.in" "conftest.in" >"conftest.tmp"
5305    mv "conftest.tmp" "conftest.in"
5306    cp "conftest.in" "conftest.nl"
5307    $as_echo 'EGREP' >> "conftest.nl"
5308    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5309    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5310    as_fn_arith $ac_count + 1 && ac_count=$as_val
5311    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5312      # Best one so far, save it but keep looking for a better one
5313      ac_cv_path_EGREP="$ac_path_EGREP"
5314      ac_path_EGREP_max=$ac_count
5315    fi
5316    # 10*(2^10) chars as input seems more than enough
5317    test $ac_count -gt 10 && break
5318  done
5319  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5320esac
5321
5322      $ac_path_EGREP_found && break 3
5323    done
5324  done
5325  done
5326IFS=$as_save_IFS
5327  if test -z "$ac_cv_path_EGREP"; then
5328    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5329  fi
5330else
5331  ac_cv_path_EGREP=$EGREP
5332fi
5333
5334   fi
5335fi
5336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5337$as_echo "$ac_cv_path_EGREP" >&6; }
5338 EGREP="$ac_cv_path_EGREP"
5339
5340
5341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5342$as_echo_n "checking for ANSI C header files... " >&6; }
5343if ${ac_cv_header_stdc+:} false; then :
5344  $as_echo_n "(cached) " >&6
5345else
5346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5347/* end confdefs.h.  */
5348#include <stdlib.h>
5349#include <stdarg.h>
5350#include <string.h>
5351#include <float.h>
5352
5353int
5354main ()
5355{
5356
5357  ;
5358  return 0;
5359}
5360_ACEOF
5361if ac_fn_c_try_compile "$LINENO"; then :
5362  ac_cv_header_stdc=yes
5363else
5364  ac_cv_header_stdc=no
5365fi
5366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5367
5368if test $ac_cv_header_stdc = yes; then
5369  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5371/* end confdefs.h.  */
5372#include <string.h>
5373
5374_ACEOF
5375if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5376  $EGREP "memchr" >/dev/null 2>&1; then :
5377
5378else
5379  ac_cv_header_stdc=no
5380fi
5381rm -f conftest*
5382
5383fi
5384
5385if test $ac_cv_header_stdc = yes; then
5386  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388/* end confdefs.h.  */
5389#include <stdlib.h>
5390
5391_ACEOF
5392if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5393  $EGREP "free" >/dev/null 2>&1; then :
5394
5395else
5396  ac_cv_header_stdc=no
5397fi
5398rm -f conftest*
5399
5400fi
5401
5402if test $ac_cv_header_stdc = yes; then
5403  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5404  if test "$cross_compiling" = yes; then :
5405  :
5406else
5407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408/* end confdefs.h.  */
5409#include <ctype.h>
5410#include <stdlib.h>
5411#if ((' ' & 0x0FF) == 0x020)
5412# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5413# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5414#else
5415# define ISLOWER(c) \
5416		   (('a' <= (c) && (c) <= 'i') \
5417		     || ('j' <= (c) && (c) <= 'r') \
5418		     || ('s' <= (c) && (c) <= 'z'))
5419# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5420#endif
5421
5422#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5423int
5424main ()
5425{
5426  int i;
5427  for (i = 0; i < 256; i++)
5428    if (XOR (islower (i), ISLOWER (i))
5429	|| toupper (i) != TOUPPER (i))
5430      return 2;
5431  return 0;
5432}
5433_ACEOF
5434if ac_fn_c_try_run "$LINENO"; then :
5435
5436else
5437  ac_cv_header_stdc=no
5438fi
5439rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5440  conftest.$ac_objext conftest.beam conftest.$ac_ext
5441fi
5442
5443fi
5444fi
5445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5446$as_echo "$ac_cv_header_stdc" >&6; }
5447if test $ac_cv_header_stdc = yes; then
5448
5449$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5450
5451fi
5452
5453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5454$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5455if ${ac_cv_c_const+:} false; then :
5456  $as_echo_n "(cached) " >&6
5457else
5458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5459/* end confdefs.h.  */
5460
5461int
5462main ()
5463{
5464/* FIXME: Include the comments suggested by Paul. */
5465#ifndef __cplusplus
5466  /* Ultrix mips cc rejects this.  */
5467  typedef int charset[2];
5468  const charset cs;
5469  /* SunOS 4.1.1 cc rejects this.  */
5470  char const *const *pcpcc;
5471  char **ppc;
5472  /* NEC SVR4.0.2 mips cc rejects this.  */
5473  struct point {int x, y;};
5474  static struct point const zero = {0,0};
5475  /* AIX XL C 1.02.0.0 rejects this.
5476     It does not let you subtract one const X* pointer from another in
5477     an arm of an if-expression whose if-part is not a constant
5478     expression */
5479  const char *g = "string";
5480  pcpcc = &g + (g ? g-g : 0);
5481  /* HPUX 7.0 cc rejects these. */
5482  ++pcpcc;
5483  ppc = (char**) pcpcc;
5484  pcpcc = (char const *const *) ppc;
5485  { /* SCO 3.2v4 cc rejects this.  */
5486    char *t;
5487    char const *s = 0 ? (char *) 0 : (char const *) 0;
5488
5489    *t++ = 0;
5490    if (s) return 0;
5491  }
5492  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5493    int x[] = {25, 17};
5494    const int *foo = &x[0];
5495    ++foo;
5496  }
5497  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5498    typedef const int *iptr;
5499    iptr p = 0;
5500    ++p;
5501  }
5502  { /* AIX XL C 1.02.0.0 rejects this saying
5503       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5504    struct s { int j; const int *ap[3]; };
5505    struct s *b; b->j = 5;
5506  }
5507  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5508    const int foo = 10;
5509    if (!foo) return 0;
5510  }
5511  return !cs[0] && !zero.x;
5512#endif
5513
5514  ;
5515  return 0;
5516}
5517_ACEOF
5518if ac_fn_c_try_compile "$LINENO"; then :
5519  ac_cv_c_const=yes
5520else
5521  ac_cv_c_const=no
5522fi
5523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5524fi
5525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5526$as_echo "$ac_cv_c_const" >&6; }
5527if test $ac_cv_c_const = no; then
5528
5529$as_echo "#define const /**/" >>confdefs.h
5530
5531fi
5532
5533
5534  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
5535$as_echo_n "checking for signed... " >&6; }
5536if ${bh_cv_c_signed+:} false; then :
5537  $as_echo_n "(cached) " >&6
5538else
5539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540/* end confdefs.h.  */
5541
5542int
5543main ()
5544{
5545signed char x;
5546  ;
5547  return 0;
5548}
5549_ACEOF
5550if ac_fn_c_try_compile "$LINENO"; then :
5551  bh_cv_c_signed=yes
5552else
5553  bh_cv_c_signed=no
5554fi
5555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5556fi
5557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
5558$as_echo "$bh_cv_c_signed" >&6; }
5559  if test $bh_cv_c_signed = no; then
5560
5561$as_echo "#define signed /**/" >>confdefs.h
5562
5563  fi
5564
5565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5566$as_echo_n "checking for inline... " >&6; }
5567if ${ac_cv_c_inline+:} false; then :
5568  $as_echo_n "(cached) " >&6
5569else
5570  ac_cv_c_inline=no
5571for ac_kw in inline __inline__ __inline; do
5572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5573/* end confdefs.h.  */
5574#ifndef __cplusplus
5575typedef int foo_t;
5576static $ac_kw foo_t static_foo () {return 0; }
5577$ac_kw foo_t foo () {return 0; }
5578#endif
5579
5580_ACEOF
5581if ac_fn_c_try_compile "$LINENO"; then :
5582  ac_cv_c_inline=$ac_kw
5583fi
5584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5585  test "$ac_cv_c_inline" != no && break
5586done
5587
5588fi
5589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5590$as_echo "$ac_cv_c_inline" >&6; }
5591
5592case $ac_cv_c_inline in
5593  inline | yes) ;;
5594  *)
5595    case $ac_cv_c_inline in
5596      no) ac_val=;;
5597      *) ac_val=$ac_cv_c_inline;;
5598    esac
5599    cat >>confdefs.h <<_ACEOF
5600#ifndef __cplusplus
5601#define inline $ac_val
5602#endif
5603_ACEOF
5604    ;;
5605esac
5606
5607# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5608for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5609		  inttypes.h stdint.h unistd.h
5610do :
5611  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5612ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5613"
5614if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5615  cat >>confdefs.h <<_ACEOF
5616#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5617_ACEOF
5618
5619fi
5620
5621done
5622
5623
5624ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5625if test "x$ac_cv_type_off_t" = xyes; then :
5626
5627else
5628
5629cat >>confdefs.h <<_ACEOF
5630#define off_t long int
5631_ACEOF
5632
5633fi
5634
5635ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5636if test "x$ac_cv_type_size_t" = xyes; then :
5637
5638else
5639
5640cat >>confdefs.h <<_ACEOF
5641#define size_t unsigned int
5642_ACEOF
5643
5644fi
5645
5646
5647  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
5648$as_echo_n "checking for long long... " >&6; }
5649if ${ac_cv_type_long_long+:} false; then :
5650  $as_echo_n "(cached) " >&6
5651else
5652  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653/* end confdefs.h.  */
5654long long ll = 1LL; int i = 63;
5655int
5656main ()
5657{
5658long long llmax = (long long) -1;
5659     return ll << i | ll >> i | llmax / ll | llmax % ll;
5660  ;
5661  return 0;
5662}
5663_ACEOF
5664if ac_fn_c_try_link "$LINENO"; then :
5665  ac_cv_type_long_long=yes
5666else
5667  ac_cv_type_long_long=no
5668fi
5669rm -f core conftest.err conftest.$ac_objext \
5670    conftest$ac_exeext conftest.$ac_ext
5671fi
5672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
5673$as_echo "$ac_cv_type_long_long" >&6; }
5674  if test $ac_cv_type_long_long = yes; then
5675
5676$as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
5677
5678  fi
5679
5680
5681  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
5682$as_echo_n "checking for long double... " >&6; }
5683if ${gt_cv_c_long_double+:} false; then :
5684  $as_echo_n "(cached) " >&6
5685else
5686  if test "$GCC" = yes; then
5687       gt_cv_c_long_double=yes
5688     else
5689       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5690/* end confdefs.h.  */
5691
5692         /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
5693         long double foo = 0.0;
5694         /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
5695         int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5696
5697int
5698main ()
5699{
5700
5701  ;
5702  return 0;
5703}
5704_ACEOF
5705if ac_fn_c_try_compile "$LINENO"; then :
5706  gt_cv_c_long_double=yes
5707else
5708  gt_cv_c_long_double=no
5709fi
5710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5711     fi
5712fi
5713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
5714$as_echo "$gt_cv_c_long_double" >&6; }
5715  if test $gt_cv_c_long_double = yes; then
5716
5717$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
5718
5719  fi
5720
5721
5722  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
5723$as_echo_n "checking for wchar_t... " >&6; }
5724if ${gt_cv_c_wchar_t+:} false; then :
5725  $as_echo_n "(cached) " >&6
5726else
5727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5728/* end confdefs.h.  */
5729#include <stddef.h>
5730       wchar_t foo = (wchar_t)'\0';
5731int
5732main ()
5733{
5734
5735  ;
5736  return 0;
5737}
5738_ACEOF
5739if ac_fn_c_try_compile "$LINENO"; then :
5740  gt_cv_c_wchar_t=yes
5741else
5742  gt_cv_c_wchar_t=no
5743fi
5744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5745fi
5746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
5747$as_echo "$gt_cv_c_wchar_t" >&6; }
5748  if test $gt_cv_c_wchar_t = yes; then
5749
5750$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
5751
5752  fi
5753
5754
5755  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
5756$as_echo_n "checking for wint_t... " >&6; }
5757if ${gt_cv_c_wint_t+:} false; then :
5758  $as_echo_n "(cached) " >&6
5759else
5760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761/* end confdefs.h.  */
5762#include <wchar.h>
5763       wint_t foo = (wchar_t)'\0';
5764int
5765main ()
5766{
5767
5768  ;
5769  return 0;
5770}
5771_ACEOF
5772if ac_fn_c_try_compile "$LINENO"; then :
5773  gt_cv_c_wint_t=yes
5774else
5775  gt_cv_c_wint_t=no
5776fi
5777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5778fi
5779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
5780$as_echo "$gt_cv_c_wint_t" >&6; }
5781  if test $gt_cv_c_wint_t = yes; then
5782
5783$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
5784
5785  fi
5786
5787
5788  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
5789$as_echo_n "checking for inttypes.h... " >&6; }
5790if ${jm_ac_cv_header_inttypes_h+:} false; then :
5791  $as_echo_n "(cached) " >&6
5792else
5793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5794/* end confdefs.h.  */
5795#include <sys/types.h>
5796#include <inttypes.h>
5797int
5798main ()
5799{
5800uintmax_t i = (uintmax_t) -1;
5801  ;
5802  return 0;
5803}
5804_ACEOF
5805if ac_fn_c_try_compile "$LINENO"; then :
5806  jm_ac_cv_header_inttypes_h=yes
5807else
5808  jm_ac_cv_header_inttypes_h=no
5809fi
5810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5811fi
5812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
5813$as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
5814  if test $jm_ac_cv_header_inttypes_h = yes; then
5815
5816cat >>confdefs.h <<_ACEOF
5817#define HAVE_INTTYPES_H_WITH_UINTMAX 1
5818_ACEOF
5819
5820  fi
5821
5822
5823  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
5824$as_echo_n "checking for stdint.h... " >&6; }
5825if ${jm_ac_cv_header_stdint_h+:} false; then :
5826  $as_echo_n "(cached) " >&6
5827else
5828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5829/* end confdefs.h.  */
5830#include <sys/types.h>
5831#include <stdint.h>
5832int
5833main ()
5834{
5835uintmax_t i = (uintmax_t) -1;
5836  ;
5837  return 0;
5838}
5839_ACEOF
5840if ac_fn_c_try_compile "$LINENO"; then :
5841  jm_ac_cv_header_stdint_h=yes
5842else
5843  jm_ac_cv_header_stdint_h=no
5844fi
5845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5846fi
5847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
5848$as_echo "$jm_ac_cv_header_stdint_h" >&6; }
5849  if test $jm_ac_cv_header_stdint_h = yes; then
5850
5851cat >>confdefs.h <<_ACEOF
5852#define HAVE_STDINT_H_WITH_UINTMAX 1
5853_ACEOF
5854
5855  fi
5856
5857
5858
5859
5860  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
5861$as_echo_n "checking for intmax_t... " >&6; }
5862if ${gt_cv_c_intmax_t+:} false; then :
5863  $as_echo_n "(cached) " >&6
5864else
5865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5866/* end confdefs.h.  */
5867
5868#include <stddef.h>
5869#include <stdlib.h>
5870#if HAVE_STDINT_H_WITH_UINTMAX
5871#include <stdint.h>
5872#endif
5873#if HAVE_INTTYPES_H_WITH_UINTMAX
5874#include <inttypes.h>
5875#endif
5876
5877int
5878main ()
5879{
5880intmax_t x = -1;
5881  ;
5882  return 0;
5883}
5884_ACEOF
5885if ac_fn_c_try_compile "$LINENO"; then :
5886  gt_cv_c_intmax_t=yes
5887else
5888  gt_cv_c_intmax_t=no
5889fi
5890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5891fi
5892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
5893$as_echo "$gt_cv_c_intmax_t" >&6; }
5894  if test $gt_cv_c_intmax_t = yes; then
5895
5896$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
5897
5898  fi
5899
5900
5901
5902  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
5903$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
5904if ${gt_cv_func_printf_posix+:} false; then :
5905  $as_echo_n "(cached) " >&6
5906else
5907
5908      if test "$cross_compiling" = yes; then :
5909
5910        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5911/* end confdefs.h.  */
5912
5913#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5914  notposix
5915#endif
5916
5917_ACEOF
5918if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5919  $EGREP "notposix" >/dev/null 2>&1; then :
5920  gt_cv_func_printf_posix="guessing no"
5921else
5922  gt_cv_func_printf_posix="guessing yes"
5923fi
5924rm -f conftest*
5925
5926
5927else
5928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5929/* end confdefs.h.  */
5930
5931#include <stdio.h>
5932#include <string.h>
5933/* The string "%2$d %1$d", with dollar characters protected from the shell's
5934   dollar expansion (possibly an autoconf bug).  */
5935static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5936static char buf[100];
5937int main ()
5938{
5939  sprintf (buf, format, 33, 55);
5940  return (strcmp (buf, "55 33") != 0);
5941}
5942_ACEOF
5943if ac_fn_c_try_run "$LINENO"; then :
5944  gt_cv_func_printf_posix=yes
5945else
5946  gt_cv_func_printf_posix=no
5947fi
5948rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5949  conftest.$ac_objext conftest.beam conftest.$ac_ext
5950fi
5951
5952
5953fi
5954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
5955$as_echo "$gt_cv_func_printf_posix" >&6; }
5956  case $gt_cv_func_printf_posix in
5957    *yes)
5958
5959$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
5960
5961      ;;
5962  esac
5963
5964# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5965# for constant arguments.  Useless!
5966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5967$as_echo_n "checking for working alloca.h... " >&6; }
5968if ${ac_cv_working_alloca_h+:} false; then :
5969  $as_echo_n "(cached) " >&6
5970else
5971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5972/* end confdefs.h.  */
5973#include <alloca.h>
5974int
5975main ()
5976{
5977char *p = (char *) alloca (2 * sizeof (int));
5978			  if (p) return 0;
5979  ;
5980  return 0;
5981}
5982_ACEOF
5983if ac_fn_c_try_link "$LINENO"; then :
5984  ac_cv_working_alloca_h=yes
5985else
5986  ac_cv_working_alloca_h=no
5987fi
5988rm -f core conftest.err conftest.$ac_objext \
5989    conftest$ac_exeext conftest.$ac_ext
5990fi
5991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5992$as_echo "$ac_cv_working_alloca_h" >&6; }
5993if test $ac_cv_working_alloca_h = yes; then
5994
5995$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5996
5997fi
5998
5999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6000$as_echo_n "checking for alloca... " >&6; }
6001if ${ac_cv_func_alloca_works+:} false; then :
6002  $as_echo_n "(cached) " >&6
6003else
6004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6005/* end confdefs.h.  */
6006#ifdef __GNUC__
6007# define alloca __builtin_alloca
6008#else
6009# ifdef _MSC_VER
6010#  include <malloc.h>
6011#  define alloca _alloca
6012# else
6013#  ifdef HAVE_ALLOCA_H
6014#   include <alloca.h>
6015#  else
6016#   ifdef _AIX
6017 #pragma alloca
6018#   else
6019#    ifndef alloca /* predefined by HP cc +Olibcalls */
6020void *alloca (size_t);
6021#    endif
6022#   endif
6023#  endif
6024# endif
6025#endif
6026
6027int
6028main ()
6029{
6030char *p = (char *) alloca (1);
6031				    if (p) return 0;
6032  ;
6033  return 0;
6034}
6035_ACEOF
6036if ac_fn_c_try_link "$LINENO"; then :
6037  ac_cv_func_alloca_works=yes
6038else
6039  ac_cv_func_alloca_works=no
6040fi
6041rm -f core conftest.err conftest.$ac_objext \
6042    conftest$ac_exeext conftest.$ac_ext
6043fi
6044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6045$as_echo "$ac_cv_func_alloca_works" >&6; }
6046
6047if test $ac_cv_func_alloca_works = yes; then
6048
6049$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6050
6051else
6052  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6053# that cause trouble.  Some versions do not even contain alloca or
6054# contain a buggy version.  If you still want to use their alloca,
6055# use ar to extract alloca.o from them instead of compiling alloca.c.
6056
6057ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6058
6059$as_echo "#define C_ALLOCA 1" >>confdefs.h
6060
6061
6062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6063$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6064if ${ac_cv_os_cray+:} false; then :
6065  $as_echo_n "(cached) " >&6
6066else
6067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6068/* end confdefs.h.  */
6069#if defined CRAY && ! defined CRAY2
6070webecray
6071#else
6072wenotbecray
6073#endif
6074
6075_ACEOF
6076if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6077  $EGREP "webecray" >/dev/null 2>&1; then :
6078  ac_cv_os_cray=yes
6079else
6080  ac_cv_os_cray=no
6081fi
6082rm -f conftest*
6083
6084fi
6085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6086$as_echo "$ac_cv_os_cray" >&6; }
6087if test $ac_cv_os_cray = yes; then
6088  for ac_func in _getb67 GETB67 getb67; do
6089    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6090ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6091if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6092
6093cat >>confdefs.h <<_ACEOF
6094#define CRAY_STACKSEG_END $ac_func
6095_ACEOF
6096
6097    break
6098fi
6099
6100  done
6101fi
6102
6103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6104$as_echo_n "checking stack direction for C alloca... " >&6; }
6105if ${ac_cv_c_stack_direction+:} false; then :
6106  $as_echo_n "(cached) " >&6
6107else
6108  if test "$cross_compiling" = yes; then :
6109  ac_cv_c_stack_direction=0
6110else
6111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6112/* end confdefs.h.  */
6113$ac_includes_default
6114int
6115find_stack_direction ()
6116{
6117  static char *addr = 0;
6118  auto char dummy;
6119  if (addr == 0)
6120    {
6121      addr = &dummy;
6122      return find_stack_direction ();
6123    }
6124  else
6125    return (&dummy > addr) ? 1 : -1;
6126}
6127
6128int
6129main ()
6130{
6131  return find_stack_direction () < 0;
6132}
6133_ACEOF
6134if ac_fn_c_try_run "$LINENO"; then :
6135  ac_cv_c_stack_direction=1
6136else
6137  ac_cv_c_stack_direction=-1
6138fi
6139rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6140  conftest.$ac_objext conftest.beam conftest.$ac_ext
6141fi
6142
6143fi
6144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6145$as_echo "$ac_cv_c_stack_direction" >&6; }
6146cat >>confdefs.h <<_ACEOF
6147#define STACK_DIRECTION $ac_cv_c_stack_direction
6148_ACEOF
6149
6150
6151fi
6152
6153
6154
6155
6156  for ac_header in $ac_header_list
6157do :
6158  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6159ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6160"
6161if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6162  cat >>confdefs.h <<_ACEOF
6163#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6164_ACEOF
6165
6166fi
6167
6168done
6169
6170
6171
6172
6173
6174
6175
6176
6177for ac_func in getpagesize
6178do :
6179  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6180if test "x$ac_cv_func_getpagesize" = xyes; then :
6181  cat >>confdefs.h <<_ACEOF
6182#define HAVE_GETPAGESIZE 1
6183_ACEOF
6184
6185fi
6186done
6187
6188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6189$as_echo_n "checking for working mmap... " >&6; }
6190if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
6191  $as_echo_n "(cached) " >&6
6192else
6193  if test "$cross_compiling" = yes; then :
6194  ac_cv_func_mmap_fixed_mapped=no
6195else
6196  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6197/* end confdefs.h.  */
6198$ac_includes_default
6199/* malloc might have been renamed as rpl_malloc. */
6200#undef malloc
6201
6202/* Thanks to Mike Haertel and Jim Avera for this test.
6203   Here is a matrix of mmap possibilities:
6204	mmap private not fixed
6205	mmap private fixed at somewhere currently unmapped
6206	mmap private fixed at somewhere already mapped
6207	mmap shared not fixed
6208	mmap shared fixed at somewhere currently unmapped
6209	mmap shared fixed at somewhere already mapped
6210   For private mappings, we should verify that changes cannot be read()
6211   back from the file, nor mmap's back from the file at a different
6212   address.  (There have been systems where private was not correctly
6213   implemented like the infamous i386 svr4.0, and systems where the
6214   VM page cache was not coherent with the file system buffer cache
6215   like early versions of FreeBSD and possibly contemporary NetBSD.)
6216   For shared mappings, we should conversely verify that changes get
6217   propagated back to all the places they're supposed to be.
6218
6219   Grep wants private fixed already mapped.
6220   The main things grep needs to know about mmap are:
6221   * does it exist and is it safe to write into the mmap'd area
6222   * how to use it (BSD variants)  */
6223
6224#include <fcntl.h>
6225#include <sys/mman.h>
6226
6227#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6228char *malloc ();
6229#endif
6230
6231/* This mess was copied from the GNU getpagesize.h.  */
6232#ifndef HAVE_GETPAGESIZE
6233# ifdef _SC_PAGESIZE
6234#  define getpagesize() sysconf(_SC_PAGESIZE)
6235# else /* no _SC_PAGESIZE */
6236#  ifdef HAVE_SYS_PARAM_H
6237#   include <sys/param.h>
6238#   ifdef EXEC_PAGESIZE
6239#    define getpagesize() EXEC_PAGESIZE
6240#   else /* no EXEC_PAGESIZE */
6241#    ifdef NBPG
6242#     define getpagesize() NBPG * CLSIZE
6243#     ifndef CLSIZE
6244#      define CLSIZE 1
6245#     endif /* no CLSIZE */
6246#    else /* no NBPG */
6247#     ifdef NBPC
6248#      define getpagesize() NBPC
6249#     else /* no NBPC */
6250#      ifdef PAGESIZE
6251#       define getpagesize() PAGESIZE
6252#      endif /* PAGESIZE */
6253#     endif /* no NBPC */
6254#    endif /* no NBPG */
6255#   endif /* no EXEC_PAGESIZE */
6256#  else /* no HAVE_SYS_PARAM_H */
6257#   define getpagesize() 8192	/* punt totally */
6258#  endif /* no HAVE_SYS_PARAM_H */
6259# endif /* no _SC_PAGESIZE */
6260
6261#endif /* no HAVE_GETPAGESIZE */
6262
6263int
6264main ()
6265{
6266  char *data, *data2, *data3;
6267  const char *cdata2;
6268  int i, pagesize;
6269  int fd, fd2;
6270
6271  pagesize = getpagesize ();
6272
6273  /* First, make a file with some known garbage in it. */
6274  data = (char *) malloc (pagesize);
6275  if (!data)
6276    return 1;
6277  for (i = 0; i < pagesize; ++i)
6278    *(data + i) = rand ();
6279  umask (0);
6280  fd = creat ("conftest.mmap", 0600);
6281  if (fd < 0)
6282    return 2;
6283  if (write (fd, data, pagesize) != pagesize)
6284    return 3;
6285  close (fd);
6286
6287  /* Next, check that the tail of a page is zero-filled.  File must have
6288     non-zero length, otherwise we risk SIGBUS for entire page.  */
6289  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6290  if (fd2 < 0)
6291    return 4;
6292  cdata2 = "";
6293  if (write (fd2, cdata2, 1) != 1)
6294    return 5;
6295  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6296  if (data2 == MAP_FAILED)
6297    return 6;
6298  for (i = 0; i < pagesize; ++i)
6299    if (*(data2 + i))
6300      return 7;
6301  close (fd2);
6302  if (munmap (data2, pagesize))
6303    return 8;
6304
6305  /* Next, try to mmap the file at a fixed address which already has
6306     something else allocated at it.  If we can, also make sure that
6307     we see the same garbage.  */
6308  fd = open ("conftest.mmap", O_RDWR);
6309  if (fd < 0)
6310    return 9;
6311  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6312		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
6313    return 10;
6314  for (i = 0; i < pagesize; ++i)
6315    if (*(data + i) != *(data2 + i))
6316      return 11;
6317
6318  /* Finally, make sure that changes to the mapped area do not
6319     percolate back to the file as seen by read().  (This is a bug on
6320     some variants of i386 svr4.0.)  */
6321  for (i = 0; i < pagesize; ++i)
6322    *(data2 + i) = *(data2 + i) + 1;
6323  data3 = (char *) malloc (pagesize);
6324  if (!data3)
6325    return 12;
6326  if (read (fd, data3, pagesize) != pagesize)
6327    return 13;
6328  for (i = 0; i < pagesize; ++i)
6329    if (*(data + i) != *(data3 + i))
6330      return 14;
6331  close (fd);
6332  return 0;
6333}
6334_ACEOF
6335if ac_fn_c_try_run "$LINENO"; then :
6336  ac_cv_func_mmap_fixed_mapped=yes
6337else
6338  ac_cv_func_mmap_fixed_mapped=no
6339fi
6340rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6341  conftest.$ac_objext conftest.beam conftest.$ac_ext
6342fi
6343
6344fi
6345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6346$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6347if test $ac_cv_func_mmap_fixed_mapped = yes; then
6348
6349$as_echo "#define HAVE_MMAP 1" >>confdefs.h
6350
6351fi
6352rm -f conftest.mmap conftest.txt
6353
6354
6355    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
6356$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
6357if ${ac_cv_gnu_library_2_1+:} false; then :
6358  $as_echo_n "(cached) " >&6
6359else
6360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6361/* end confdefs.h.  */
6362
6363#include <features.h>
6364#ifdef __GNU_LIBRARY__
6365 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6366  Lucky GNU user
6367 #endif
6368#endif
6369
6370_ACEOF
6371if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6372  $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6373  ac_cv_gnu_library_2_1=yes
6374else
6375  ac_cv_gnu_library_2_1=no
6376fi
6377rm -f conftest*
6378
6379
6380
6381fi
6382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
6383$as_echo "$ac_cv_gnu_library_2_1" >&6; }
6384
6385    GLIBC21="$ac_cv_gnu_library_2_1"
6386
6387
6388
6389
6390  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
6391$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
6392if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
6393  $as_echo_n "(cached) " >&6
6394else
6395
6396      if test "$cross_compiling" = yes; then :
6397
6398          # Guess based on the CPU.
6399          case "$host_cpu" in
6400            alpha* | i3456786 | m68k | s390*)
6401              gt_cv_int_divbyzero_sigfpe="guessing yes";;
6402            *)
6403              gt_cv_int_divbyzero_sigfpe="guessing no";;
6404          esac
6405
6406else
6407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6408/* end confdefs.h.  */
6409
6410#include <stdlib.h>
6411#include <signal.h>
6412
6413static void
6414#ifdef __cplusplus
6415sigfpe_handler (int sig)
6416#else
6417sigfpe_handler (sig) int sig;
6418#endif
6419{
6420  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
6421  exit (sig != SIGFPE);
6422}
6423
6424int x = 1;
6425int y = 0;
6426int z;
6427int nan;
6428
6429int main ()
6430{
6431  signal (SIGFPE, sigfpe_handler);
6432/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
6433#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6434  signal (SIGTRAP, sigfpe_handler);
6435#endif
6436/* Linux/SPARC yields signal SIGILL.  */
6437#if defined (__sparc__) && defined (__linux__)
6438  signal (SIGILL, sigfpe_handler);
6439#endif
6440
6441  z = x / y;
6442  nan = y / y;
6443  exit (1);
6444}
6445
6446_ACEOF
6447if ac_fn_c_try_run "$LINENO"; then :
6448  gt_cv_int_divbyzero_sigfpe=yes
6449else
6450  gt_cv_int_divbyzero_sigfpe=no
6451fi
6452rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6453  conftest.$ac_objext conftest.beam conftest.$ac_ext
6454fi
6455
6456
6457fi
6458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
6459$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
6460  case "$gt_cv_int_divbyzero_sigfpe" in
6461    *yes) value=1;;
6462    *) value=0;;
6463  esac
6464
6465cat >>confdefs.h <<_ACEOF
6466#define INTDIV0_RAISES_SIGFPE $value
6467_ACEOF
6468
6469
6470
6471  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
6472$as_echo_n "checking for unsigned long long... " >&6; }
6473if ${ac_cv_type_unsigned_long_long+:} false; then :
6474  $as_echo_n "(cached) " >&6
6475else
6476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6477/* end confdefs.h.  */
6478unsigned long long ull = 1ULL; int i = 63;
6479int
6480main ()
6481{
6482unsigned long long ullmax = (unsigned long long) -1;
6483     return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6484  ;
6485  return 0;
6486}
6487_ACEOF
6488if ac_fn_c_try_link "$LINENO"; then :
6489  ac_cv_type_unsigned_long_long=yes
6490else
6491  ac_cv_type_unsigned_long_long=no
6492fi
6493rm -f core conftest.err conftest.$ac_objext \
6494    conftest$ac_exeext conftest.$ac_ext
6495fi
6496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
6497$as_echo "$ac_cv_type_unsigned_long_long" >&6; }
6498  if test $ac_cv_type_unsigned_long_long = yes; then
6499
6500$as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
6501
6502  fi
6503
6504
6505
6506
6507  if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
6508
6509    test $ac_cv_type_unsigned_long_long = yes \
6510      && ac_type='unsigned long long' \
6511      || ac_type='unsigned long'
6512
6513cat >>confdefs.h <<_ACEOF
6514#define uintmax_t $ac_type
6515_ACEOF
6516
6517  else
6518
6519$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6520
6521  fi
6522
6523
6524  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
6525$as_echo_n "checking for inttypes.h... " >&6; }
6526if ${gt_cv_header_inttypes_h+:} false; then :
6527  $as_echo_n "(cached) " >&6
6528else
6529
6530    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6531/* end confdefs.h.  */
6532#include <sys/types.h>
6533#include <inttypes.h>
6534int
6535main ()
6536{
6537
6538  ;
6539  return 0;
6540}
6541_ACEOF
6542if ac_fn_c_try_compile "$LINENO"; then :
6543  gt_cv_header_inttypes_h=yes
6544else
6545  gt_cv_header_inttypes_h=no
6546fi
6547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6548
6549fi
6550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
6551$as_echo "$gt_cv_header_inttypes_h" >&6; }
6552  if test $gt_cv_header_inttypes_h = yes; then
6553
6554cat >>confdefs.h <<_ACEOF
6555#define HAVE_INTTYPES_H 1
6556_ACEOF
6557
6558  fi
6559
6560
6561
6562  if test $gt_cv_header_inttypes_h = yes; then
6563    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
6564$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
6565if ${gt_cv_inttypes_pri_broken+:} false; then :
6566  $as_echo_n "(cached) " >&6
6567else
6568
6569        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6570/* end confdefs.h.  */
6571#include <inttypes.h>
6572#ifdef PRId32
6573char *p = PRId32;
6574#endif
6575
6576int
6577main ()
6578{
6579
6580  ;
6581  return 0;
6582}
6583_ACEOF
6584if ac_fn_c_try_compile "$LINENO"; then :
6585  gt_cv_inttypes_pri_broken=no
6586else
6587  gt_cv_inttypes_pri_broken=yes
6588fi
6589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6590
6591fi
6592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
6593$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
6594  fi
6595  if test "$gt_cv_inttypes_pri_broken" = yes; then
6596
6597cat >>confdefs.h <<_ACEOF
6598#define PRI_MACROS_BROKEN 1
6599_ACEOF
6600
6601  fi
6602
6603
6604  for ac_header in stdint.h
6605do :
6606  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
6607if test "x$ac_cv_header_stdint_h" = xyes; then :
6608  cat >>confdefs.h <<_ACEOF
6609#define HAVE_STDINT_H 1
6610_ACEOF
6611
6612fi
6613
6614done
6615
6616    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
6617$as_echo_n "checking for SIZE_MAX... " >&6; }
6618  result=
6619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6620/* end confdefs.h.  */
6621
6622#include <limits.h>
6623#if HAVE_STDINT_H
6624#include <stdint.h>
6625#endif
6626#ifdef SIZE_MAX
6627Found it
6628#endif
6629
6630_ACEOF
6631if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6632  $EGREP "Found it" >/dev/null 2>&1; then :
6633  result=yes
6634fi
6635rm -f conftest*
6636
6637  if test -z "$result"; then
6638                    if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
6639
6640else
6641  result=?
6642fi
6643
6644
6645    if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
6646
6647else
6648  result=?
6649fi
6650
6651
6652    if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
6653
6654else
6655  result=?
6656fi
6657
6658
6659    if test "$fits_in_uint" = 1; then
6660                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6661/* end confdefs.h.  */
6662#include <stddef.h>
6663        extern size_t foo;
6664        extern unsigned long foo;
6665
6666int
6667main ()
6668{
6669
6670  ;
6671  return 0;
6672}
6673_ACEOF
6674if ac_fn_c_try_compile "$LINENO"; then :
6675  fits_in_uint=0
6676fi
6677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6678    fi
6679    if test -z "$result"; then
6680      if test "$fits_in_uint" = 1; then
6681        result="$res_hi$res_lo"U
6682      else
6683        result="$res_hi$res_lo"UL
6684      fi
6685    else
6686            result='~(size_t)0'
6687    fi
6688  fi
6689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
6690$as_echo "$result" >&6; }
6691  if test "$result" != yes; then
6692
6693cat >>confdefs.h <<_ACEOF
6694#define SIZE_MAX $result
6695_ACEOF
6696
6697  fi
6698
6699
6700
6701  for ac_header in stdint.h
6702do :
6703  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
6704if test "x$ac_cv_header_stdint_h" = xyes; then :
6705  cat >>confdefs.h <<_ACEOF
6706#define HAVE_STDINT_H 1
6707_ACEOF
6708
6709fi
6710
6711done
6712
6713
6714
6715      if test "X$prefix" = "XNONE"; then
6716    acl_final_prefix="$ac_default_prefix"
6717  else
6718    acl_final_prefix="$prefix"
6719  fi
6720  if test "X$exec_prefix" = "XNONE"; then
6721    acl_final_exec_prefix='${prefix}'
6722  else
6723    acl_final_exec_prefix="$exec_prefix"
6724  fi
6725  acl_save_prefix="$prefix"
6726  prefix="$acl_final_prefix"
6727  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6728  prefix="$acl_save_prefix"
6729
6730
6731# Check whether --with-gnu-ld was given.
6732if test "${with_gnu_ld+set}" = set; then :
6733  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6734else
6735  with_gnu_ld=no
6736fi
6737
6738# Prepare PATH_SEPARATOR.
6739# The user is always right.
6740if test "${PATH_SEPARATOR+set}" != set; then
6741  echo "#! /bin/sh" >conf$$.sh
6742  echo  "exit 0"   >>conf$$.sh
6743  chmod +x conf$$.sh
6744  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6745    PATH_SEPARATOR=';'
6746  else
6747    PATH_SEPARATOR=:
6748  fi
6749  rm -f conf$$.sh
6750fi
6751ac_prog=ld
6752if test "$GCC" = yes; then
6753  # Check if gcc -print-prog-name=ld gives a path.
6754  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6755$as_echo_n "checking for ld used by GCC... " >&6; }
6756  case $host in
6757  *-*-mingw*)
6758    # gcc leaves a trailing carriage return which upsets mingw
6759    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6760  *)
6761    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6762  esac
6763  case $ac_prog in
6764    # Accept absolute paths.
6765    [\\/]* | [A-Za-z]:[\\/]*)
6766      re_direlt='/[^/][^/]*/\.\./'
6767      # Canonicalize the path of ld
6768      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6769      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6770	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6771      done
6772      test -z "$LD" && LD="$ac_prog"
6773      ;;
6774  "")
6775    # If it fails, then pretend we aren't using GCC.
6776    ac_prog=ld
6777    ;;
6778  *)
6779    # If it is relative, then search for the first ld in PATH.
6780    with_gnu_ld=unknown
6781    ;;
6782  esac
6783elif test "$with_gnu_ld" = yes; then
6784  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6785$as_echo_n "checking for GNU ld... " >&6; }
6786else
6787  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6788$as_echo_n "checking for non-GNU ld... " >&6; }
6789fi
6790if ${acl_cv_path_LD+:} false; then :
6791  $as_echo_n "(cached) " >&6
6792else
6793  if test -z "$LD"; then
6794  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6795  for ac_dir in $PATH; do
6796    test -z "$ac_dir" && ac_dir=.
6797    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6798      acl_cv_path_LD="$ac_dir/$ac_prog"
6799      # Check to see if the program is GNU ld.  I'd rather use --version,
6800      # but apparently some GNU ld's only accept -v.
6801      # Break only if it was the GNU/non-GNU ld that we prefer.
6802      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6803      *GNU* | *'with BFD'*)
6804	test "$with_gnu_ld" != no && break ;;
6805      *)
6806	test "$with_gnu_ld" != yes && break ;;
6807      esac
6808    fi
6809  done
6810  IFS="$ac_save_ifs"
6811else
6812  acl_cv_path_LD="$LD" # Let the user override the test with a path.
6813fi
6814fi
6815
6816LD="$acl_cv_path_LD"
6817if test -n "$LD"; then
6818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6819$as_echo "$LD" >&6; }
6820else
6821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6822$as_echo "no" >&6; }
6823fi
6824test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6826$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6827if ${acl_cv_prog_gnu_ld+:} false; then :
6828  $as_echo_n "(cached) " >&6
6829else
6830  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6831case `$LD -v 2>&1 </dev/null` in
6832*GNU* | *'with BFD'*)
6833  acl_cv_prog_gnu_ld=yes ;;
6834*)
6835  acl_cv_prog_gnu_ld=no ;;
6836esac
6837fi
6838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6839$as_echo "$acl_cv_prog_gnu_ld" >&6; }
6840with_gnu_ld=$acl_cv_prog_gnu_ld
6841
6842
6843
6844                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6845$as_echo_n "checking for shared library run path origin... " >&6; }
6846if ${acl_cv_rpath+:} false; then :
6847  $as_echo_n "(cached) " >&6
6848else
6849
6850    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6851    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6852    . ./conftest.sh
6853    rm -f ./conftest.sh
6854    acl_cv_rpath=done
6855
6856fi
6857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6858$as_echo "$acl_cv_rpath" >&6; }
6859  wl="$acl_cv_wl"
6860  libext="$acl_cv_libext"
6861  shlibext="$acl_cv_shlibext"
6862  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6863  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6864  hardcode_direct="$acl_cv_hardcode_direct"
6865  hardcode_minus_L="$acl_cv_hardcode_minus_L"
6866    # Check whether --enable-rpath was given.
6867if test "${enable_rpath+set}" = set; then :
6868  enableval=$enable_rpath; :
6869else
6870  enable_rpath=yes
6871fi
6872
6873
6874
6875
6876
6877
6878
6879
6880    use_additional=yes
6881
6882  acl_save_prefix="$prefix"
6883  prefix="$acl_final_prefix"
6884  acl_save_exec_prefix="$exec_prefix"
6885  exec_prefix="$acl_final_exec_prefix"
6886
6887    eval additional_includedir=\"$includedir\"
6888    eval additional_libdir=\"$libdir\"
6889
6890  exec_prefix="$acl_save_exec_prefix"
6891  prefix="$acl_save_prefix"
6892
6893
6894# Check whether --with-libiconv-prefix was given.
6895if test "${with_libiconv_prefix+set}" = set; then :
6896  withval=$with_libiconv_prefix;
6897    if test "X$withval" = "Xno"; then
6898      use_additional=no
6899    else
6900      if test "X$withval" = "X"; then
6901
6902  acl_save_prefix="$prefix"
6903  prefix="$acl_final_prefix"
6904  acl_save_exec_prefix="$exec_prefix"
6905  exec_prefix="$acl_final_exec_prefix"
6906
6907          eval additional_includedir=\"$includedir\"
6908          eval additional_libdir=\"$libdir\"
6909
6910  exec_prefix="$acl_save_exec_prefix"
6911  prefix="$acl_save_prefix"
6912
6913      else
6914        additional_includedir="$withval/include"
6915        additional_libdir="$withval/lib"
6916      fi
6917    fi
6918
6919fi
6920
6921      LIBICONV=
6922  LTLIBICONV=
6923  INCICONV=
6924  rpathdirs=
6925  ltrpathdirs=
6926  names_already_handled=
6927  names_next_round='iconv '
6928  while test -n "$names_next_round"; do
6929    names_this_round="$names_next_round"
6930    names_next_round=
6931    for name in $names_this_round; do
6932      already_handled=
6933      for n in $names_already_handled; do
6934        if test "$n" = "$name"; then
6935          already_handled=yes
6936          break
6937        fi
6938      done
6939      if test -z "$already_handled"; then
6940        names_already_handled="$names_already_handled $name"
6941                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6942        eval value=\"\$HAVE_LIB$uppername\"
6943        if test -n "$value"; then
6944          if test "$value" = yes; then
6945            eval value=\"\$LIB$uppername\"
6946            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6947            eval value=\"\$LTLIB$uppername\"
6948            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6949          else
6950                                    :
6951          fi
6952        else
6953                              found_dir=
6954          found_la=
6955          found_so=
6956          found_a=
6957          if test $use_additional = yes; then
6958            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6959              found_dir="$additional_libdir"
6960              found_so="$additional_libdir/lib$name.$shlibext"
6961              if test -f "$additional_libdir/lib$name.la"; then
6962                found_la="$additional_libdir/lib$name.la"
6963              fi
6964            else
6965              if test -f "$additional_libdir/lib$name.$libext"; then
6966                found_dir="$additional_libdir"
6967                found_a="$additional_libdir/lib$name.$libext"
6968                if test -f "$additional_libdir/lib$name.la"; then
6969                  found_la="$additional_libdir/lib$name.la"
6970                fi
6971              fi
6972            fi
6973          fi
6974          if test "X$found_dir" = "X"; then
6975            for x in $LDFLAGS $LTLIBICONV; do
6976
6977  acl_save_prefix="$prefix"
6978  prefix="$acl_final_prefix"
6979  acl_save_exec_prefix="$exec_prefix"
6980  exec_prefix="$acl_final_exec_prefix"
6981  eval x=\"$x\"
6982  exec_prefix="$acl_save_exec_prefix"
6983  prefix="$acl_save_prefix"
6984
6985              case "$x" in
6986                -L*)
6987                  dir=`echo "X$x" | sed -e 's/^X-L//'`
6988                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6989                    found_dir="$dir"
6990                    found_so="$dir/lib$name.$shlibext"
6991                    if test -f "$dir/lib$name.la"; then
6992                      found_la="$dir/lib$name.la"
6993                    fi
6994                  else
6995                    if test -f "$dir/lib$name.$libext"; then
6996                      found_dir="$dir"
6997                      found_a="$dir/lib$name.$libext"
6998                      if test -f "$dir/lib$name.la"; then
6999                        found_la="$dir/lib$name.la"
7000                      fi
7001                    fi
7002                  fi
7003                  ;;
7004              esac
7005              if test "X$found_dir" != "X"; then
7006                break
7007              fi
7008            done
7009          fi
7010          if test "X$found_dir" != "X"; then
7011                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7012            if test "X$found_so" != "X"; then
7013                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7014                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7015              else
7016                                                                                haveit=
7017                for x in $ltrpathdirs; do
7018                  if test "X$x" = "X$found_dir"; then
7019                    haveit=yes
7020                    break
7021                  fi
7022                done
7023                if test -z "$haveit"; then
7024                  ltrpathdirs="$ltrpathdirs $found_dir"
7025                fi
7026                                if test "$hardcode_direct" = yes; then
7027                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7028                else
7029                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7030                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7031                                                            haveit=
7032                    for x in $rpathdirs; do
7033                      if test "X$x" = "X$found_dir"; then
7034                        haveit=yes
7035                        break
7036                      fi
7037                    done
7038                    if test -z "$haveit"; then
7039                      rpathdirs="$rpathdirs $found_dir"
7040                    fi
7041                  else
7042                                                                                haveit=
7043                    for x in $LDFLAGS $LIBICONV; do
7044
7045  acl_save_prefix="$prefix"
7046  prefix="$acl_final_prefix"
7047  acl_save_exec_prefix="$exec_prefix"
7048  exec_prefix="$acl_final_exec_prefix"
7049  eval x=\"$x\"
7050  exec_prefix="$acl_save_exec_prefix"
7051  prefix="$acl_save_prefix"
7052
7053                      if test "X$x" = "X-L$found_dir"; then
7054                        haveit=yes
7055                        break
7056                      fi
7057                    done
7058                    if test -z "$haveit"; then
7059                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7060                    fi
7061                    if test "$hardcode_minus_L" != no; then
7062                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7063                    else
7064                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7065                    fi
7066                  fi
7067                fi
7068              fi
7069            else
7070              if test "X$found_a" != "X"; then
7071                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7072              else
7073                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7074              fi
7075            fi
7076                        additional_includedir=
7077            case "$found_dir" in
7078              */lib | */lib/)
7079                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7080                additional_includedir="$basedir/include"
7081                ;;
7082            esac
7083            if test "X$additional_includedir" != "X"; then
7084                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
7085                haveit=
7086                if test "X$additional_includedir" = "X/usr/local/include"; then
7087                  if test -n "$GCC"; then
7088                    case $host_os in
7089                      linux*) haveit=yes;;
7090                    esac
7091                  fi
7092                fi
7093                if test -z "$haveit"; then
7094                  for x in $CPPFLAGS $INCICONV; do
7095
7096  acl_save_prefix="$prefix"
7097  prefix="$acl_final_prefix"
7098  acl_save_exec_prefix="$exec_prefix"
7099  exec_prefix="$acl_final_exec_prefix"
7100  eval x=\"$x\"
7101  exec_prefix="$acl_save_exec_prefix"
7102  prefix="$acl_save_prefix"
7103
7104                    if test "X$x" = "X-I$additional_includedir"; then
7105                      haveit=yes
7106                      break
7107                    fi
7108                  done
7109                  if test -z "$haveit"; then
7110                    if test -d "$additional_includedir"; then
7111                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7112                    fi
7113                  fi
7114                fi
7115              fi
7116            fi
7117                        if test -n "$found_la"; then
7118                                                        save_libdir="$libdir"
7119              case "$found_la" in
7120                */* | *\\*) . "$found_la" ;;
7121                *) . "./$found_la" ;;
7122              esac
7123              libdir="$save_libdir"
7124                            for dep in $dependency_libs; do
7125                case "$dep" in
7126                  -L*)
7127                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7128                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
7129                      haveit=
7130                      if test "X$additional_libdir" = "X/usr/local/lib"; then
7131                        if test -n "$GCC"; then
7132                          case $host_os in
7133                            linux*) haveit=yes;;
7134                          esac
7135                        fi
7136                      fi
7137                      if test -z "$haveit"; then
7138                        haveit=
7139                        for x in $LDFLAGS $LIBICONV; do
7140
7141  acl_save_prefix="$prefix"
7142  prefix="$acl_final_prefix"
7143  acl_save_exec_prefix="$exec_prefix"
7144  exec_prefix="$acl_final_exec_prefix"
7145  eval x=\"$x\"
7146  exec_prefix="$acl_save_exec_prefix"
7147  prefix="$acl_save_prefix"
7148
7149                          if test "X$x" = "X-L$additional_libdir"; then
7150                            haveit=yes
7151                            break
7152                          fi
7153                        done
7154                        if test -z "$haveit"; then
7155                          if test -d "$additional_libdir"; then
7156                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7157                          fi
7158                        fi
7159                        haveit=
7160                        for x in $LDFLAGS $LTLIBICONV; do
7161
7162  acl_save_prefix="$prefix"
7163  prefix="$acl_final_prefix"
7164  acl_save_exec_prefix="$exec_prefix"
7165  exec_prefix="$acl_final_exec_prefix"
7166  eval x=\"$x\"
7167  exec_prefix="$acl_save_exec_prefix"
7168  prefix="$acl_save_prefix"
7169
7170                          if test "X$x" = "X-L$additional_libdir"; then
7171                            haveit=yes
7172                            break
7173                          fi
7174                        done
7175                        if test -z "$haveit"; then
7176                          if test -d "$additional_libdir"; then
7177                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7178                          fi
7179                        fi
7180                      fi
7181                    fi
7182                    ;;
7183                  -R*)
7184                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
7185                    if test "$enable_rpath" != no; then
7186                                                                  haveit=
7187                      for x in $rpathdirs; do
7188                        if test "X$x" = "X$dir"; then
7189                          haveit=yes
7190                          break
7191                        fi
7192                      done
7193                      if test -z "$haveit"; then
7194                        rpathdirs="$rpathdirs $dir"
7195                      fi
7196                                                                  haveit=
7197                      for x in $ltrpathdirs; do
7198                        if test "X$x" = "X$dir"; then
7199                          haveit=yes
7200                          break
7201                        fi
7202                      done
7203                      if test -z "$haveit"; then
7204                        ltrpathdirs="$ltrpathdirs $dir"
7205                      fi
7206                    fi
7207                    ;;
7208                  -l*)
7209                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7210                    ;;
7211                  *.la)
7212                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7213                    ;;
7214                  *)
7215                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7216                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7217                    ;;
7218                esac
7219              done
7220            fi
7221          else
7222                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7223            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7224          fi
7225        fi
7226      fi
7227    done
7228  done
7229  if test "X$rpathdirs" != "X"; then
7230    if test -n "$hardcode_libdir_separator"; then
7231                        alldirs=
7232      for found_dir in $rpathdirs; do
7233        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7234      done
7235            acl_save_libdir="$libdir"
7236      libdir="$alldirs"
7237      eval flag=\"$hardcode_libdir_flag_spec\"
7238      libdir="$acl_save_libdir"
7239      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7240    else
7241            for found_dir in $rpathdirs; do
7242        acl_save_libdir="$libdir"
7243        libdir="$found_dir"
7244        eval flag=\"$hardcode_libdir_flag_spec\"
7245        libdir="$acl_save_libdir"
7246        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7247      done
7248    fi
7249  fi
7250  if test "X$ltrpathdirs" != "X"; then
7251            for found_dir in $ltrpathdirs; do
7252      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7253    done
7254  fi
7255
7256
7257
7258
7259
7260
7261
7262
7263  ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
7264if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
7265
7266else
7267
7268$as_echo "#define ptrdiff_t long" >>confdefs.h
7269
7270
7271fi
7272
7273  for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
7274stdlib.h string.h unistd.h sys/param.h
7275do :
7276  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7277ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7278if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7279  cat >>confdefs.h <<_ACEOF
7280#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7281_ACEOF
7282
7283fi
7284
7285done
7286
7287  for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
7288mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
7289strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
7290__fsetlocking
7291do :
7292  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7293ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7294if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7295  cat >>confdefs.h <<_ACEOF
7296#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7297_ACEOF
7298
7299fi
7300done
7301
7302
7303
7304  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
7305$as_echo_n "checking whether _snprintf is declared... " >&6; }
7306if ${ac_cv_have_decl__snprintf+:} false; then :
7307  $as_echo_n "(cached) " >&6
7308else
7309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7310/* end confdefs.h.  */
7311#include <stdio.h>
7312int
7313main ()
7314{
7315
7316#ifndef _snprintf
7317  char *p = (char *) _snprintf;
7318#endif
7319
7320  ;
7321  return 0;
7322}
7323_ACEOF
7324if ac_fn_c_try_compile "$LINENO"; then :
7325  ac_cv_have_decl__snprintf=yes
7326else
7327  ac_cv_have_decl__snprintf=no
7328fi
7329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7330fi
7331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
7332$as_echo "$ac_cv_have_decl__snprintf" >&6; }
7333  if test $ac_cv_have_decl__snprintf = yes; then
7334    gt_value=1
7335  else
7336    gt_value=0
7337  fi
7338
7339cat >>confdefs.h <<_ACEOF
7340#define HAVE_DECL__SNPRINTF $gt_value
7341_ACEOF
7342
7343
7344
7345  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
7346$as_echo_n "checking whether _snwprintf is declared... " >&6; }
7347if ${ac_cv_have_decl__snwprintf+:} false; then :
7348  $as_echo_n "(cached) " >&6
7349else
7350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7351/* end confdefs.h.  */
7352#include <stdio.h>
7353int
7354main ()
7355{
7356
7357#ifndef _snwprintf
7358  char *p = (char *) _snwprintf;
7359#endif
7360
7361  ;
7362  return 0;
7363}
7364_ACEOF
7365if ac_fn_c_try_compile "$LINENO"; then :
7366  ac_cv_have_decl__snwprintf=yes
7367else
7368  ac_cv_have_decl__snwprintf=no
7369fi
7370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7371fi
7372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
7373$as_echo "$ac_cv_have_decl__snwprintf" >&6; }
7374  if test $ac_cv_have_decl__snwprintf = yes; then
7375    gt_value=1
7376  else
7377    gt_value=0
7378  fi
7379
7380cat >>confdefs.h <<_ACEOF
7381#define HAVE_DECL__SNWPRINTF $gt_value
7382_ACEOF
7383
7384
7385
7386
7387  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
7388$as_echo_n "checking whether feof_unlocked is declared... " >&6; }
7389if ${ac_cv_have_decl_feof_unlocked+:} false; then :
7390  $as_echo_n "(cached) " >&6
7391else
7392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7393/* end confdefs.h.  */
7394#include <stdio.h>
7395int
7396main ()
7397{
7398
7399#ifndef feof_unlocked
7400  char *p = (char *) feof_unlocked;
7401#endif
7402
7403  ;
7404  return 0;
7405}
7406_ACEOF
7407if ac_fn_c_try_compile "$LINENO"; then :
7408  ac_cv_have_decl_feof_unlocked=yes
7409else
7410  ac_cv_have_decl_feof_unlocked=no
7411fi
7412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7413fi
7414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
7415$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
7416  if test $ac_cv_have_decl_feof_unlocked = yes; then
7417    gt_value=1
7418  else
7419    gt_value=0
7420  fi
7421
7422cat >>confdefs.h <<_ACEOF
7423#define HAVE_DECL_FEOF_UNLOCKED $gt_value
7424_ACEOF
7425
7426
7427
7428  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
7429$as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
7430if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
7431  $as_echo_n "(cached) " >&6
7432else
7433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7434/* end confdefs.h.  */
7435#include <stdio.h>
7436int
7437main ()
7438{
7439
7440#ifndef fgets_unlocked
7441  char *p = (char *) fgets_unlocked;
7442#endif
7443
7444  ;
7445  return 0;
7446}
7447_ACEOF
7448if ac_fn_c_try_compile "$LINENO"; then :
7449  ac_cv_have_decl_fgets_unlocked=yes
7450else
7451  ac_cv_have_decl_fgets_unlocked=no
7452fi
7453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7454fi
7455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
7456$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
7457  if test $ac_cv_have_decl_fgets_unlocked = yes; then
7458    gt_value=1
7459  else
7460    gt_value=0
7461  fi
7462
7463cat >>confdefs.h <<_ACEOF
7464#define HAVE_DECL_FGETS_UNLOCKED $gt_value
7465_ACEOF
7466
7467
7468
7469  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
7470$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
7471if ${ac_cv_have_decl_getc_unlocked+:} false; then :
7472  $as_echo_n "(cached) " >&6
7473else
7474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475/* end confdefs.h.  */
7476#include <stdio.h>
7477int
7478main ()
7479{
7480
7481#ifndef getc_unlocked
7482  char *p = (char *) getc_unlocked;
7483#endif
7484
7485  ;
7486  return 0;
7487}
7488_ACEOF
7489if ac_fn_c_try_compile "$LINENO"; then :
7490  ac_cv_have_decl_getc_unlocked=yes
7491else
7492  ac_cv_have_decl_getc_unlocked=no
7493fi
7494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7495fi
7496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
7497$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
7498  if test $ac_cv_have_decl_getc_unlocked = yes; then
7499    gt_value=1
7500  else
7501    gt_value=0
7502  fi
7503
7504cat >>confdefs.h <<_ACEOF
7505#define HAVE_DECL_GETC_UNLOCKED $gt_value
7506_ACEOF
7507
7508
7509
7510  case $gt_cv_func_printf_posix in
7511    *yes) HAVE_POSIX_PRINTF=1 ;;
7512    *) HAVE_POSIX_PRINTF=0 ;;
7513  esac
7514
7515  if test "$ac_cv_func_asprintf" = yes; then
7516    HAVE_ASPRINTF=1
7517  else
7518    HAVE_ASPRINTF=0
7519  fi
7520
7521  if test "$ac_cv_func_snprintf" = yes; then
7522    HAVE_SNPRINTF=1
7523  else
7524    HAVE_SNPRINTF=0
7525  fi
7526
7527  if test "$ac_cv_func_wprintf" = yes; then
7528    HAVE_WPRINTF=1
7529  else
7530    HAVE_WPRINTF=0
7531  fi
7532
7533
7534
7535
7536
7537
7538
7539          am_save_CPPFLAGS="$CPPFLAGS"
7540
7541  for element in $INCICONV; do
7542    haveit=
7543    for x in $CPPFLAGS; do
7544
7545  acl_save_prefix="$prefix"
7546  prefix="$acl_final_prefix"
7547  acl_save_exec_prefix="$exec_prefix"
7548  exec_prefix="$acl_final_exec_prefix"
7549  eval x=\"$x\"
7550  exec_prefix="$acl_save_exec_prefix"
7551  prefix="$acl_save_prefix"
7552
7553      if test "X$x" = "X$element"; then
7554        haveit=yes
7555        break
7556      fi
7557    done
7558    if test -z "$haveit"; then
7559      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7560    fi
7561  done
7562
7563
7564  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7565$as_echo_n "checking for iconv... " >&6; }
7566if ${am_cv_func_iconv+:} false; then :
7567  $as_echo_n "(cached) " >&6
7568else
7569
7570    am_cv_func_iconv="no, consider installing GNU libiconv"
7571    am_cv_lib_iconv=no
7572    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7573/* end confdefs.h.  */
7574#include <stdlib.h>
7575#include <iconv.h>
7576int
7577main ()
7578{
7579iconv_t cd = iconv_open("","");
7580       iconv(cd,NULL,NULL,NULL,NULL);
7581       iconv_close(cd);
7582  ;
7583  return 0;
7584}
7585_ACEOF
7586if ac_fn_c_try_link "$LINENO"; then :
7587  am_cv_func_iconv=yes
7588fi
7589rm -f core conftest.err conftest.$ac_objext \
7590    conftest$ac_exeext conftest.$ac_ext
7591    if test "$am_cv_func_iconv" != yes; then
7592      am_save_LIBS="$LIBS"
7593      LIBS="$LIBS $LIBICONV"
7594      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7595/* end confdefs.h.  */
7596#include <stdlib.h>
7597#include <iconv.h>
7598int
7599main ()
7600{
7601iconv_t cd = iconv_open("","");
7602         iconv(cd,NULL,NULL,NULL,NULL);
7603         iconv_close(cd);
7604  ;
7605  return 0;
7606}
7607_ACEOF
7608if ac_fn_c_try_link "$LINENO"; then :
7609  am_cv_lib_iconv=yes
7610        am_cv_func_iconv=yes
7611fi
7612rm -f core conftest.err conftest.$ac_objext \
7613    conftest$ac_exeext conftest.$ac_ext
7614      LIBS="$am_save_LIBS"
7615    fi
7616
7617fi
7618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7619$as_echo "$am_cv_func_iconv" >&6; }
7620  if test "$am_cv_func_iconv" = yes; then
7621
7622$as_echo "#define HAVE_ICONV 1" >>confdefs.h
7623
7624  fi
7625  if test "$am_cv_lib_iconv" = yes; then
7626    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7627$as_echo_n "checking how to link with libiconv... " >&6; }
7628    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7629$as_echo "$LIBICONV" >&6; }
7630  else
7631            CPPFLAGS="$am_save_CPPFLAGS"
7632    LIBICONV=
7633    LTLIBICONV=
7634  fi
7635
7636
7637
7638  if test "$am_cv_func_iconv" = yes; then
7639    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7640$as_echo_n "checking for iconv declaration... " >&6; }
7641    if ${am_cv_proto_iconv+:} false; then :
7642  $as_echo_n "(cached) " >&6
7643else
7644
7645      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7646/* end confdefs.h.  */
7647
7648#include <stdlib.h>
7649#include <iconv.h>
7650extern
7651#ifdef __cplusplus
7652"C"
7653#endif
7654#if defined(__STDC__) || defined(__cplusplus)
7655size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7656#else
7657size_t iconv();
7658#endif
7659
7660int
7661main ()
7662{
7663
7664  ;
7665  return 0;
7666}
7667_ACEOF
7668if ac_fn_c_try_compile "$LINENO"; then :
7669  am_cv_proto_iconv_arg1=""
7670else
7671  am_cv_proto_iconv_arg1="const"
7672fi
7673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7674      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
7675fi
7676
7677    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7678    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
7679         }$am_cv_proto_iconv" >&5
7680$as_echo "${ac_t:-
7681         }$am_cv_proto_iconv" >&6; }
7682
7683cat >>confdefs.h <<_ACEOF
7684#define ICONV_CONST $am_cv_proto_iconv_arg1
7685_ACEOF
7686
7687  fi
7688
7689
7690  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
7691$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
7692if ${am_cv_langinfo_codeset+:} false; then :
7693  $as_echo_n "(cached) " >&6
7694else
7695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696/* end confdefs.h.  */
7697#include <langinfo.h>
7698int
7699main ()
7700{
7701char* cs = nl_langinfo(CODESET);
7702  ;
7703  return 0;
7704}
7705_ACEOF
7706if ac_fn_c_try_link "$LINENO"; then :
7707  am_cv_langinfo_codeset=yes
7708else
7709  am_cv_langinfo_codeset=no
7710fi
7711rm -f core conftest.err conftest.$ac_objext \
7712    conftest$ac_exeext conftest.$ac_ext
7713
7714fi
7715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
7716$as_echo "$am_cv_langinfo_codeset" >&6; }
7717  if test $am_cv_langinfo_codeset = yes; then
7718
7719$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
7720
7721  fi
7722
7723  if test $ac_cv_header_locale_h = yes; then
7724
7725  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
7726$as_echo_n "checking for LC_MESSAGES... " >&6; }
7727if ${am_cv_val_LC_MESSAGES+:} false; then :
7728  $as_echo_n "(cached) " >&6
7729else
7730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7731/* end confdefs.h.  */
7732#include <locale.h>
7733int
7734main ()
7735{
7736return LC_MESSAGES
7737  ;
7738  return 0;
7739}
7740_ACEOF
7741if ac_fn_c_try_link "$LINENO"; then :
7742  am_cv_val_LC_MESSAGES=yes
7743else
7744  am_cv_val_LC_MESSAGES=no
7745fi
7746rm -f core conftest.err conftest.$ac_objext \
7747    conftest$ac_exeext conftest.$ac_ext
7748fi
7749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
7750$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
7751  if test $am_cv_val_LC_MESSAGES = yes; then
7752
7753$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
7754
7755  fi
7756
7757  fi
7758
7759                      for ac_prog in bison
7760do
7761  # Extract the first word of "$ac_prog", so it can be a program name with args.
7762set dummy $ac_prog; ac_word=$2
7763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7764$as_echo_n "checking for $ac_word... " >&6; }
7765if ${ac_cv_prog_INTLBISON+:} false; then :
7766  $as_echo_n "(cached) " >&6
7767else
7768  if test -n "$INTLBISON"; then
7769  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
7770else
7771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772for as_dir in $PATH
7773do
7774  IFS=$as_save_IFS
7775  test -z "$as_dir" && as_dir=.
7776    for ac_exec_ext in '' $ac_executable_extensions; do
7777  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7778    ac_cv_prog_INTLBISON="$ac_prog"
7779    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7780    break 2
7781  fi
7782done
7783  done
7784IFS=$as_save_IFS
7785
7786fi
7787fi
7788INTLBISON=$ac_cv_prog_INTLBISON
7789if test -n "$INTLBISON"; then
7790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
7791$as_echo "$INTLBISON" >&6; }
7792else
7793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7794$as_echo "no" >&6; }
7795fi
7796
7797
7798  test -n "$INTLBISON" && break
7799done
7800
7801  if test -z "$INTLBISON"; then
7802    ac_verc_fail=yes
7803  else
7804        { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
7805$as_echo_n "checking version of bison... " >&6; }
7806    ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
7807    case $ac_prog_version in
7808      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
7809      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
7810         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
7811      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
7812    esac
7813    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
7814$as_echo "$ac_prog_version" >&6; }
7815  fi
7816  if test $ac_verc_fail = yes; then
7817    INTLBISON=:
7818  fi
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7836$as_echo_n "checking whether NLS is requested... " >&6; }
7837    # Check whether --enable-nls was given.
7838if test "${enable_nls+set}" = set; then :
7839  enableval=$enable_nls; USE_NLS=$enableval
7840else
7841  USE_NLS=yes
7842fi
7843
7844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7845$as_echo "$USE_NLS" >&6; }
7846
7847
7848
7849
7850    BUILD_INCLUDED_LIBINTL=no
7851    USE_INCLUDED_LIBINTL=no
7852
7853  LIBINTL=
7854  LTLIBINTL=
7855  POSUB=
7856
7857    if test "$USE_NLS" = "yes"; then
7858    gt_use_preinstalled_gnugettext=no
7859
7860      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
7861$as_echo_n "checking whether included gettext is requested... " >&6; }
7862
7863# Check whether --with-included-gettext was given.
7864if test "${with_included_gettext+set}" = set; then :
7865  withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
7866else
7867  nls_cv_force_use_gnu_gettext=no
7868fi
7869
7870      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
7871$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
7872
7873      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7874      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7875
7876
7877
7878
7879
7880
7881        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
7882$as_echo_n "checking for GNU gettext in libc... " >&6; }
7883if ${gt_cv_func_gnugettext1_libc+:} false; then :
7884  $as_echo_n "(cached) " >&6
7885else
7886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7887/* end confdefs.h.  */
7888#include <libintl.h>
7889extern int _nl_msg_cat_cntr;
7890extern int *_nl_domain_bindings;
7891int
7892main ()
7893{
7894bindtextdomain ("", "");
7895return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
7896  ;
7897  return 0;
7898}
7899_ACEOF
7900if ac_fn_c_try_link "$LINENO"; then :
7901  gt_cv_func_gnugettext1_libc=yes
7902else
7903  gt_cv_func_gnugettext1_libc=no
7904fi
7905rm -f core conftest.err conftest.$ac_objext \
7906    conftest$ac_exeext conftest.$ac_ext
7907fi
7908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
7909$as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
7910
7911        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
7912
7913
7914
7915    use_additional=yes
7916
7917  acl_save_prefix="$prefix"
7918  prefix="$acl_final_prefix"
7919  acl_save_exec_prefix="$exec_prefix"
7920  exec_prefix="$acl_final_exec_prefix"
7921
7922    eval additional_includedir=\"$includedir\"
7923    eval additional_libdir=\"$libdir\"
7924
7925  exec_prefix="$acl_save_exec_prefix"
7926  prefix="$acl_save_prefix"
7927
7928
7929# Check whether --with-libintl-prefix was given.
7930if test "${with_libintl_prefix+set}" = set; then :
7931  withval=$with_libintl_prefix;
7932    if test "X$withval" = "Xno"; then
7933      use_additional=no
7934    else
7935      if test "X$withval" = "X"; then
7936
7937  acl_save_prefix="$prefix"
7938  prefix="$acl_final_prefix"
7939  acl_save_exec_prefix="$exec_prefix"
7940  exec_prefix="$acl_final_exec_prefix"
7941
7942          eval additional_includedir=\"$includedir\"
7943          eval additional_libdir=\"$libdir\"
7944
7945  exec_prefix="$acl_save_exec_prefix"
7946  prefix="$acl_save_prefix"
7947
7948      else
7949        additional_includedir="$withval/include"
7950        additional_libdir="$withval/lib"
7951      fi
7952    fi
7953
7954fi
7955
7956      LIBINTL=
7957  LTLIBINTL=
7958  INCINTL=
7959  rpathdirs=
7960  ltrpathdirs=
7961  names_already_handled=
7962  names_next_round='intl '
7963  while test -n "$names_next_round"; do
7964    names_this_round="$names_next_round"
7965    names_next_round=
7966    for name in $names_this_round; do
7967      already_handled=
7968      for n in $names_already_handled; do
7969        if test "$n" = "$name"; then
7970          already_handled=yes
7971          break
7972        fi
7973      done
7974      if test -z "$already_handled"; then
7975        names_already_handled="$names_already_handled $name"
7976                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7977        eval value=\"\$HAVE_LIB$uppername\"
7978        if test -n "$value"; then
7979          if test "$value" = yes; then
7980            eval value=\"\$LIB$uppername\"
7981            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7982            eval value=\"\$LTLIB$uppername\"
7983            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7984          else
7985                                    :
7986          fi
7987        else
7988                              found_dir=
7989          found_la=
7990          found_so=
7991          found_a=
7992          if test $use_additional = yes; then
7993            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7994              found_dir="$additional_libdir"
7995              found_so="$additional_libdir/lib$name.$shlibext"
7996              if test -f "$additional_libdir/lib$name.la"; then
7997                found_la="$additional_libdir/lib$name.la"
7998              fi
7999            else
8000              if test -f "$additional_libdir/lib$name.$libext"; then
8001                found_dir="$additional_libdir"
8002                found_a="$additional_libdir/lib$name.$libext"
8003                if test -f "$additional_libdir/lib$name.la"; then
8004                  found_la="$additional_libdir/lib$name.la"
8005                fi
8006              fi
8007            fi
8008          fi
8009          if test "X$found_dir" = "X"; then
8010            for x in $LDFLAGS $LTLIBINTL; do
8011
8012  acl_save_prefix="$prefix"
8013  prefix="$acl_final_prefix"
8014  acl_save_exec_prefix="$exec_prefix"
8015  exec_prefix="$acl_final_exec_prefix"
8016  eval x=\"$x\"
8017  exec_prefix="$acl_save_exec_prefix"
8018  prefix="$acl_save_prefix"
8019
8020              case "$x" in
8021                -L*)
8022                  dir=`echo "X$x" | sed -e 's/^X-L//'`
8023                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8024                    found_dir="$dir"
8025                    found_so="$dir/lib$name.$shlibext"
8026                    if test -f "$dir/lib$name.la"; then
8027                      found_la="$dir/lib$name.la"
8028                    fi
8029                  else
8030                    if test -f "$dir/lib$name.$libext"; then
8031                      found_dir="$dir"
8032                      found_a="$dir/lib$name.$libext"
8033                      if test -f "$dir/lib$name.la"; then
8034                        found_la="$dir/lib$name.la"
8035                      fi
8036                    fi
8037                  fi
8038                  ;;
8039              esac
8040              if test "X$found_dir" != "X"; then
8041                break
8042              fi
8043            done
8044          fi
8045          if test "X$found_dir" != "X"; then
8046                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8047            if test "X$found_so" != "X"; then
8048                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8049                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8050              else
8051                                                                                haveit=
8052                for x in $ltrpathdirs; do
8053                  if test "X$x" = "X$found_dir"; then
8054                    haveit=yes
8055                    break
8056                  fi
8057                done
8058                if test -z "$haveit"; then
8059                  ltrpathdirs="$ltrpathdirs $found_dir"
8060                fi
8061                                if test "$hardcode_direct" = yes; then
8062                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8063                else
8064                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8065                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8066                                                            haveit=
8067                    for x in $rpathdirs; do
8068                      if test "X$x" = "X$found_dir"; then
8069                        haveit=yes
8070                        break
8071                      fi
8072                    done
8073                    if test -z "$haveit"; then
8074                      rpathdirs="$rpathdirs $found_dir"
8075                    fi
8076                  else
8077                                                                                haveit=
8078                    for x in $LDFLAGS $LIBINTL; do
8079
8080  acl_save_prefix="$prefix"
8081  prefix="$acl_final_prefix"
8082  acl_save_exec_prefix="$exec_prefix"
8083  exec_prefix="$acl_final_exec_prefix"
8084  eval x=\"$x\"
8085  exec_prefix="$acl_save_exec_prefix"
8086  prefix="$acl_save_prefix"
8087
8088                      if test "X$x" = "X-L$found_dir"; then
8089                        haveit=yes
8090                        break
8091                      fi
8092                    done
8093                    if test -z "$haveit"; then
8094                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8095                    fi
8096                    if test "$hardcode_minus_L" != no; then
8097                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8098                    else
8099                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8100                    fi
8101                  fi
8102                fi
8103              fi
8104            else
8105              if test "X$found_a" != "X"; then
8106                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8107              else
8108                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8109              fi
8110            fi
8111                        additional_includedir=
8112            case "$found_dir" in
8113              */lib | */lib/)
8114                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8115                additional_includedir="$basedir/include"
8116                ;;
8117            esac
8118            if test "X$additional_includedir" != "X"; then
8119                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
8120                haveit=
8121                if test "X$additional_includedir" = "X/usr/local/include"; then
8122                  if test -n "$GCC"; then
8123                    case $host_os in
8124                      linux*) haveit=yes;;
8125                    esac
8126                  fi
8127                fi
8128                if test -z "$haveit"; then
8129                  for x in $CPPFLAGS $INCINTL; do
8130
8131  acl_save_prefix="$prefix"
8132  prefix="$acl_final_prefix"
8133  acl_save_exec_prefix="$exec_prefix"
8134  exec_prefix="$acl_final_exec_prefix"
8135  eval x=\"$x\"
8136  exec_prefix="$acl_save_exec_prefix"
8137  prefix="$acl_save_prefix"
8138
8139                    if test "X$x" = "X-I$additional_includedir"; then
8140                      haveit=yes
8141                      break
8142                    fi
8143                  done
8144                  if test -z "$haveit"; then
8145                    if test -d "$additional_includedir"; then
8146                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8147                    fi
8148                  fi
8149                fi
8150              fi
8151            fi
8152                        if test -n "$found_la"; then
8153                                                        save_libdir="$libdir"
8154              case "$found_la" in
8155                */* | *\\*) . "$found_la" ;;
8156                *) . "./$found_la" ;;
8157              esac
8158              libdir="$save_libdir"
8159                            for dep in $dependency_libs; do
8160                case "$dep" in
8161                  -L*)
8162                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8163                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
8164                      haveit=
8165                      if test "X$additional_libdir" = "X/usr/local/lib"; then
8166                        if test -n "$GCC"; then
8167                          case $host_os in
8168                            linux*) haveit=yes;;
8169                          esac
8170                        fi
8171                      fi
8172                      if test -z "$haveit"; then
8173                        haveit=
8174                        for x in $LDFLAGS $LIBINTL; do
8175
8176  acl_save_prefix="$prefix"
8177  prefix="$acl_final_prefix"
8178  acl_save_exec_prefix="$exec_prefix"
8179  exec_prefix="$acl_final_exec_prefix"
8180  eval x=\"$x\"
8181  exec_prefix="$acl_save_exec_prefix"
8182  prefix="$acl_save_prefix"
8183
8184                          if test "X$x" = "X-L$additional_libdir"; then
8185                            haveit=yes
8186                            break
8187                          fi
8188                        done
8189                        if test -z "$haveit"; then
8190                          if test -d "$additional_libdir"; then
8191                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8192                          fi
8193                        fi
8194                        haveit=
8195                        for x in $LDFLAGS $LTLIBINTL; do
8196
8197  acl_save_prefix="$prefix"
8198  prefix="$acl_final_prefix"
8199  acl_save_exec_prefix="$exec_prefix"
8200  exec_prefix="$acl_final_exec_prefix"
8201  eval x=\"$x\"
8202  exec_prefix="$acl_save_exec_prefix"
8203  prefix="$acl_save_prefix"
8204
8205                          if test "X$x" = "X-L$additional_libdir"; then
8206                            haveit=yes
8207                            break
8208                          fi
8209                        done
8210                        if test -z "$haveit"; then
8211                          if test -d "$additional_libdir"; then
8212                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8213                          fi
8214                        fi
8215                      fi
8216                    fi
8217                    ;;
8218                  -R*)
8219                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
8220                    if test "$enable_rpath" != no; then
8221                                                                  haveit=
8222                      for x in $rpathdirs; do
8223                        if test "X$x" = "X$dir"; then
8224                          haveit=yes
8225                          break
8226                        fi
8227                      done
8228                      if test -z "$haveit"; then
8229                        rpathdirs="$rpathdirs $dir"
8230                      fi
8231                                                                  haveit=
8232                      for x in $ltrpathdirs; do
8233                        if test "X$x" = "X$dir"; then
8234                          haveit=yes
8235                          break
8236                        fi
8237                      done
8238                      if test -z "$haveit"; then
8239                        ltrpathdirs="$ltrpathdirs $dir"
8240                      fi
8241                    fi
8242                    ;;
8243                  -l*)
8244                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8245                    ;;
8246                  *.la)
8247                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8248                    ;;
8249                  *)
8250                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8251                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8252                    ;;
8253                esac
8254              done
8255            fi
8256          else
8257                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8258            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8259          fi
8260        fi
8261      fi
8262    done
8263  done
8264  if test "X$rpathdirs" != "X"; then
8265    if test -n "$hardcode_libdir_separator"; then
8266                        alldirs=
8267      for found_dir in $rpathdirs; do
8268        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8269      done
8270            acl_save_libdir="$libdir"
8271      libdir="$alldirs"
8272      eval flag=\"$hardcode_libdir_flag_spec\"
8273      libdir="$acl_save_libdir"
8274      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8275    else
8276            for found_dir in $rpathdirs; do
8277        acl_save_libdir="$libdir"
8278        libdir="$found_dir"
8279        eval flag=\"$hardcode_libdir_flag_spec\"
8280        libdir="$acl_save_libdir"
8281        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8282      done
8283    fi
8284  fi
8285  if test "X$ltrpathdirs" != "X"; then
8286            for found_dir in $ltrpathdirs; do
8287      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8288    done
8289  fi
8290
8291          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
8292$as_echo_n "checking for GNU gettext in libintl... " >&6; }
8293if ${gt_cv_func_gnugettext1_libintl+:} false; then :
8294  $as_echo_n "(cached) " >&6
8295else
8296  gt_save_CPPFLAGS="$CPPFLAGS"
8297            CPPFLAGS="$CPPFLAGS $INCINTL"
8298            gt_save_LIBS="$LIBS"
8299            LIBS="$LIBS $LIBINTL"
8300                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8301/* end confdefs.h.  */
8302#include <libintl.h>
8303extern int _nl_msg_cat_cntr;
8304extern
8305#ifdef __cplusplus
8306"C"
8307#endif
8308const char *_nl_expand_alias ();
8309int
8310main ()
8311{
8312bindtextdomain ("", "");
8313return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
8314  ;
8315  return 0;
8316}
8317_ACEOF
8318if ac_fn_c_try_link "$LINENO"; then :
8319  gt_cv_func_gnugettext1_libintl=yes
8320else
8321  gt_cv_func_gnugettext1_libintl=no
8322fi
8323rm -f core conftest.err conftest.$ac_objext \
8324    conftest$ac_exeext conftest.$ac_ext
8325                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
8326              LIBS="$LIBS $LIBICONV"
8327              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8328/* end confdefs.h.  */
8329#include <libintl.h>
8330extern int _nl_msg_cat_cntr;
8331extern
8332#ifdef __cplusplus
8333"C"
8334#endif
8335const char *_nl_expand_alias ();
8336int
8337main ()
8338{
8339bindtextdomain ("", "");
8340return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
8341  ;
8342  return 0;
8343}
8344_ACEOF
8345if ac_fn_c_try_link "$LINENO"; then :
8346  LIBINTL="$LIBINTL $LIBICONV"
8347                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
8348                gt_cv_func_gnugettext1_libintl=yes
8349
8350fi
8351rm -f core conftest.err conftest.$ac_objext \
8352    conftest$ac_exeext conftest.$ac_ext
8353            fi
8354            CPPFLAGS="$gt_save_CPPFLAGS"
8355            LIBS="$gt_save_LIBS"
8356fi
8357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
8358$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
8359        fi
8360
8361                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
8362           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
8363                && test "$PACKAGE" != gettext-runtime \
8364                && test "$PACKAGE" != gettext-tools; }; then
8365          gt_use_preinstalled_gnugettext=yes
8366        else
8367                    LIBINTL=
8368          LTLIBINTL=
8369          INCINTL=
8370        fi
8371
8372
8373        if test "$gt_use_preinstalled_gnugettext" != "yes"; then
8374                              nls_cv_use_gnu_gettext=yes
8375        fi
8376      fi
8377
8378      if test "$nls_cv_use_gnu_gettext" = "yes"; then
8379                BUILD_INCLUDED_LIBINTL=yes
8380        USE_INCLUDED_LIBINTL=yes
8381        LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
8382        LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
8383        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
8384      fi
8385
8386      if test "$gt_use_preinstalled_gnugettext" = "yes" \
8387         || test "$nls_cv_use_gnu_gettext" = "yes"; then
8388                CATOBJEXT=.gmo
8389      fi
8390
8391
8392    if test "$gt_use_preinstalled_gnugettext" = "yes" \
8393       || test "$nls_cv_use_gnu_gettext" = "yes"; then
8394
8395$as_echo "#define ENABLE_NLS 1" >>confdefs.h
8396
8397    else
8398      USE_NLS=no
8399    fi
8400  fi
8401
8402  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
8403$as_echo_n "checking whether to use NLS... " >&6; }
8404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8405$as_echo "$USE_NLS" >&6; }
8406  if test "$USE_NLS" = "yes"; then
8407    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
8408$as_echo_n "checking where the gettext function comes from... " >&6; }
8409    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8410      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
8411        gt_source="external libintl"
8412      else
8413        gt_source="libc"
8414      fi
8415    else
8416      gt_source="included intl directory"
8417    fi
8418    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
8419$as_echo "$gt_source" >&6; }
8420  fi
8421
8422  if test "$USE_NLS" = "yes"; then
8423
8424    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8425      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
8426        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
8427$as_echo_n "checking how to link with libintl... " >&6; }
8428        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
8429$as_echo "$LIBINTL" >&6; }
8430
8431  for element in $INCINTL; do
8432    haveit=
8433    for x in $CPPFLAGS; do
8434
8435  acl_save_prefix="$prefix"
8436  prefix="$acl_final_prefix"
8437  acl_save_exec_prefix="$exec_prefix"
8438  exec_prefix="$acl_final_exec_prefix"
8439  eval x=\"$x\"
8440  exec_prefix="$acl_save_exec_prefix"
8441  prefix="$acl_save_prefix"
8442
8443      if test "X$x" = "X$element"; then
8444        haveit=yes
8445        break
8446      fi
8447    done
8448    if test -z "$haveit"; then
8449      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8450    fi
8451  done
8452
8453      fi
8454
8455
8456$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
8457
8458
8459$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
8460
8461    fi
8462
8463        POSUB=po
8464  fi
8465
8466
8467            if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
8468      BUILD_INCLUDED_LIBINTL=yes
8469    fi
8470
8471
8472
8473
8474
8475        nls_cv_header_intl=
8476    nls_cv_header_libgt=
8477
8478        DATADIRNAME=share
8479
8480
8481        INSTOBJEXT=.mo
8482
8483
8484        GENCAT=gencat
8485
8486
8487        if test "$USE_INCLUDED_LIBINTL" = yes; then
8488      INTLOBJS="\$(GETTOBJS)"
8489    fi
8490
8491
8492        INTL_LIBTOOL_SUFFIX_PREFIX=
8493
8494
8495
8496    INTLLIBS="$LIBINTL"
8497
8498
8499
8500
8501
8502
8503
8504enable_win32_dll=yes
8505
8506case $host in
8507*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
8508  if test -n "$ac_tool_prefix"; then
8509  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8510set dummy ${ac_tool_prefix}as; ac_word=$2
8511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8512$as_echo_n "checking for $ac_word... " >&6; }
8513if ${ac_cv_prog_AS+:} false; then :
8514  $as_echo_n "(cached) " >&6
8515else
8516  if test -n "$AS"; then
8517  ac_cv_prog_AS="$AS" # Let the user override the test.
8518else
8519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8520for as_dir in $PATH
8521do
8522  IFS=$as_save_IFS
8523  test -z "$as_dir" && as_dir=.
8524    for ac_exec_ext in '' $ac_executable_extensions; do
8525  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8526    ac_cv_prog_AS="${ac_tool_prefix}as"
8527    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8528    break 2
8529  fi
8530done
8531  done
8532IFS=$as_save_IFS
8533
8534fi
8535fi
8536AS=$ac_cv_prog_AS
8537if test -n "$AS"; then
8538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8539$as_echo "$AS" >&6; }
8540else
8541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8542$as_echo "no" >&6; }
8543fi
8544
8545
8546fi
8547if test -z "$ac_cv_prog_AS"; then
8548  ac_ct_AS=$AS
8549  # Extract the first word of "as", so it can be a program name with args.
8550set dummy as; ac_word=$2
8551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8552$as_echo_n "checking for $ac_word... " >&6; }
8553if ${ac_cv_prog_ac_ct_AS+:} false; then :
8554  $as_echo_n "(cached) " >&6
8555else
8556  if test -n "$ac_ct_AS"; then
8557  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8558else
8559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8560for as_dir in $PATH
8561do
8562  IFS=$as_save_IFS
8563  test -z "$as_dir" && as_dir=.
8564    for ac_exec_ext in '' $ac_executable_extensions; do
8565  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8566    ac_cv_prog_ac_ct_AS="as"
8567    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8568    break 2
8569  fi
8570done
8571  done
8572IFS=$as_save_IFS
8573
8574fi
8575fi
8576ac_ct_AS=$ac_cv_prog_ac_ct_AS
8577if test -n "$ac_ct_AS"; then
8578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8579$as_echo "$ac_ct_AS" >&6; }
8580else
8581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8582$as_echo "no" >&6; }
8583fi
8584
8585  if test "x$ac_ct_AS" = x; then
8586    AS="false"
8587  else
8588    case $cross_compiling:$ac_tool_warned in
8589yes:)
8590{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8591$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8592ac_tool_warned=yes ;;
8593esac
8594    AS=$ac_ct_AS
8595  fi
8596else
8597  AS="$ac_cv_prog_AS"
8598fi
8599
8600  if test -n "$ac_tool_prefix"; then
8601  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8602set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8604$as_echo_n "checking for $ac_word... " >&6; }
8605if ${ac_cv_prog_DLLTOOL+:} false; then :
8606  $as_echo_n "(cached) " >&6
8607else
8608  if test -n "$DLLTOOL"; then
8609  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8610else
8611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8612for as_dir in $PATH
8613do
8614  IFS=$as_save_IFS
8615  test -z "$as_dir" && as_dir=.
8616    for ac_exec_ext in '' $ac_executable_extensions; do
8617  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8618    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8619    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8620    break 2
8621  fi
8622done
8623  done
8624IFS=$as_save_IFS
8625
8626fi
8627fi
8628DLLTOOL=$ac_cv_prog_DLLTOOL
8629if test -n "$DLLTOOL"; then
8630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8631$as_echo "$DLLTOOL" >&6; }
8632else
8633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8634$as_echo "no" >&6; }
8635fi
8636
8637
8638fi
8639if test -z "$ac_cv_prog_DLLTOOL"; then
8640  ac_ct_DLLTOOL=$DLLTOOL
8641  # Extract the first word of "dlltool", so it can be a program name with args.
8642set dummy dlltool; ac_word=$2
8643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8644$as_echo_n "checking for $ac_word... " >&6; }
8645if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8646  $as_echo_n "(cached) " >&6
8647else
8648  if test -n "$ac_ct_DLLTOOL"; then
8649  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8650else
8651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8652for as_dir in $PATH
8653do
8654  IFS=$as_save_IFS
8655  test -z "$as_dir" && as_dir=.
8656    for ac_exec_ext in '' $ac_executable_extensions; do
8657  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8658    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8659    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8660    break 2
8661  fi
8662done
8663  done
8664IFS=$as_save_IFS
8665
8666fi
8667fi
8668ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8669if test -n "$ac_ct_DLLTOOL"; then
8670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8671$as_echo "$ac_ct_DLLTOOL" >&6; }
8672else
8673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8674$as_echo "no" >&6; }
8675fi
8676
8677  if test "x$ac_ct_DLLTOOL" = x; then
8678    DLLTOOL="false"
8679  else
8680    case $cross_compiling:$ac_tool_warned in
8681yes:)
8682{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8683$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8684ac_tool_warned=yes ;;
8685esac
8686    DLLTOOL=$ac_ct_DLLTOOL
8687  fi
8688else
8689  DLLTOOL="$ac_cv_prog_DLLTOOL"
8690fi
8691
8692  if test -n "$ac_tool_prefix"; then
8693  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8694set dummy ${ac_tool_prefix}objdump; ac_word=$2
8695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8696$as_echo_n "checking for $ac_word... " >&6; }
8697if ${ac_cv_prog_OBJDUMP+:} false; then :
8698  $as_echo_n "(cached) " >&6
8699else
8700  if test -n "$OBJDUMP"; then
8701  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8702else
8703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8704for as_dir in $PATH
8705do
8706  IFS=$as_save_IFS
8707  test -z "$as_dir" && as_dir=.
8708    for ac_exec_ext in '' $ac_executable_extensions; do
8709  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8710    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8711    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8712    break 2
8713  fi
8714done
8715  done
8716IFS=$as_save_IFS
8717
8718fi
8719fi
8720OBJDUMP=$ac_cv_prog_OBJDUMP
8721if test -n "$OBJDUMP"; then
8722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8723$as_echo "$OBJDUMP" >&6; }
8724else
8725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8726$as_echo "no" >&6; }
8727fi
8728
8729
8730fi
8731if test -z "$ac_cv_prog_OBJDUMP"; then
8732  ac_ct_OBJDUMP=$OBJDUMP
8733  # Extract the first word of "objdump", so it can be a program name with args.
8734set dummy objdump; ac_word=$2
8735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8736$as_echo_n "checking for $ac_word... " >&6; }
8737if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8738  $as_echo_n "(cached) " >&6
8739else
8740  if test -n "$ac_ct_OBJDUMP"; then
8741  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8742else
8743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8744for as_dir in $PATH
8745do
8746  IFS=$as_save_IFS
8747  test -z "$as_dir" && as_dir=.
8748    for ac_exec_ext in '' $ac_executable_extensions; do
8749  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8750    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8751    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8752    break 2
8753  fi
8754done
8755  done
8756IFS=$as_save_IFS
8757
8758fi
8759fi
8760ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8761if test -n "$ac_ct_OBJDUMP"; then
8762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8763$as_echo "$ac_ct_OBJDUMP" >&6; }
8764else
8765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8766$as_echo "no" >&6; }
8767fi
8768
8769  if test "x$ac_ct_OBJDUMP" = x; then
8770    OBJDUMP="false"
8771  else
8772    case $cross_compiling:$ac_tool_warned in
8773yes:)
8774{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8775$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8776ac_tool_warned=yes ;;
8777esac
8778    OBJDUMP=$ac_ct_OBJDUMP
8779  fi
8780else
8781  OBJDUMP="$ac_cv_prog_OBJDUMP"
8782fi
8783
8784  ;;
8785esac
8786
8787test -z "$AS" && AS=as
8788
8789
8790
8791
8792
8793test -z "$DLLTOOL" && DLLTOOL=dlltool
8794
8795
8796
8797
8798
8799test -z "$OBJDUMP" && OBJDUMP=objdump
8800
8801
8802
8803
8804
8805
8806
8807enable_dlopen=yes
8808
8809
8810
8811case `pwd` in
8812  *\ * | *\	*)
8813    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8814$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8815esac
8816
8817
8818
8819macro_version='2.2.6b'
8820macro_revision='1.3018'
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834ltmain="$ac_aux_dir/ltmain.sh"
8835
8836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8837$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8838if ${ac_cv_path_SED+:} false; then :
8839  $as_echo_n "(cached) " >&6
8840else
8841            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8842     for ac_i in 1 2 3 4 5 6 7; do
8843       ac_script="$ac_script$as_nl$ac_script"
8844     done
8845     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8846     { ac_script=; unset ac_script;}
8847     if test -z "$SED"; then
8848  ac_path_SED_found=false
8849  # Loop through the user's path and test for each of PROGNAME-LIST
8850  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8851for as_dir in $PATH
8852do
8853  IFS=$as_save_IFS
8854  test -z "$as_dir" && as_dir=.
8855    for ac_prog in sed gsed; do
8856    for ac_exec_ext in '' $ac_executable_extensions; do
8857      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8858      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
8859# Check for GNU ac_path_SED and select it if it is found.
8860  # Check for GNU $ac_path_SED
8861case `"$ac_path_SED" --version 2>&1` in
8862*GNU*)
8863  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8864*)
8865  ac_count=0
8866  $as_echo_n 0123456789 >"conftest.in"
8867  while :
8868  do
8869    cat "conftest.in" "conftest.in" >"conftest.tmp"
8870    mv "conftest.tmp" "conftest.in"
8871    cp "conftest.in" "conftest.nl"
8872    $as_echo '' >> "conftest.nl"
8873    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8874    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8875    as_fn_arith $ac_count + 1 && ac_count=$as_val
8876    if test $ac_count -gt ${ac_path_SED_max-0}; then
8877      # Best one so far, save it but keep looking for a better one
8878      ac_cv_path_SED="$ac_path_SED"
8879      ac_path_SED_max=$ac_count
8880    fi
8881    # 10*(2^10) chars as input seems more than enough
8882    test $ac_count -gt 10 && break
8883  done
8884  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8885esac
8886
8887      $ac_path_SED_found && break 3
8888    done
8889  done
8890  done
8891IFS=$as_save_IFS
8892  if test -z "$ac_cv_path_SED"; then
8893    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8894  fi
8895else
8896  ac_cv_path_SED=$SED
8897fi
8898
8899fi
8900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8901$as_echo "$ac_cv_path_SED" >&6; }
8902 SED="$ac_cv_path_SED"
8903  rm -f conftest.sed
8904
8905test -z "$SED" && SED=sed
8906Xsed="$SED -e 1s/^X//"
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8919$as_echo_n "checking for fgrep... " >&6; }
8920if ${ac_cv_path_FGREP+:} false; then :
8921  $as_echo_n "(cached) " >&6
8922else
8923  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8924   then ac_cv_path_FGREP="$GREP -F"
8925   else
8926     if test -z "$FGREP"; then
8927  ac_path_FGREP_found=false
8928  # Loop through the user's path and test for each of PROGNAME-LIST
8929  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8930for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8931do
8932  IFS=$as_save_IFS
8933  test -z "$as_dir" && as_dir=.
8934    for ac_prog in fgrep; do
8935    for ac_exec_ext in '' $ac_executable_extensions; do
8936      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8937      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
8938# Check for GNU ac_path_FGREP and select it if it is found.
8939  # Check for GNU $ac_path_FGREP
8940case `"$ac_path_FGREP" --version 2>&1` in
8941*GNU*)
8942  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8943*)
8944  ac_count=0
8945  $as_echo_n 0123456789 >"conftest.in"
8946  while :
8947  do
8948    cat "conftest.in" "conftest.in" >"conftest.tmp"
8949    mv "conftest.tmp" "conftest.in"
8950    cp "conftest.in" "conftest.nl"
8951    $as_echo 'FGREP' >> "conftest.nl"
8952    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8953    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8954    as_fn_arith $ac_count + 1 && ac_count=$as_val
8955    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8956      # Best one so far, save it but keep looking for a better one
8957      ac_cv_path_FGREP="$ac_path_FGREP"
8958      ac_path_FGREP_max=$ac_count
8959    fi
8960    # 10*(2^10) chars as input seems more than enough
8961    test $ac_count -gt 10 && break
8962  done
8963  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8964esac
8965
8966      $ac_path_FGREP_found && break 3
8967    done
8968  done
8969  done
8970IFS=$as_save_IFS
8971  if test -z "$ac_cv_path_FGREP"; then
8972    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8973  fi
8974else
8975  ac_cv_path_FGREP=$FGREP
8976fi
8977
8978   fi
8979fi
8980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8981$as_echo "$ac_cv_path_FGREP" >&6; }
8982 FGREP="$ac_cv_path_FGREP"
8983
8984
8985test -z "$GREP" && GREP=grep
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005# Check whether --with-gnu-ld was given.
9006if test "${with_gnu_ld+set}" = set; then :
9007  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9008else
9009  with_gnu_ld=no
9010fi
9011
9012ac_prog=ld
9013if test "$GCC" = yes; then
9014  # Check if gcc -print-prog-name=ld gives a path.
9015  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9016$as_echo_n "checking for ld used by $CC... " >&6; }
9017  case $host in
9018  *-*-mingw*)
9019    # gcc leaves a trailing carriage return which upsets mingw
9020    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9021  *)
9022    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9023  esac
9024  case $ac_prog in
9025    # Accept absolute paths.
9026    [\\/]* | ?:[\\/]*)
9027      re_direlt='/[^/][^/]*/\.\./'
9028      # Canonicalize the pathname of ld
9029      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
9030      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
9031	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
9032      done
9033      test -z "$LD" && LD="$ac_prog"
9034      ;;
9035  "")
9036    # If it fails, then pretend we aren't using GCC.
9037    ac_prog=ld
9038    ;;
9039  *)
9040    # If it is relative, then search for the first ld in PATH.
9041    with_gnu_ld=unknown
9042    ;;
9043  esac
9044elif test "$with_gnu_ld" = yes; then
9045  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9046$as_echo_n "checking for GNU ld... " >&6; }
9047else
9048  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9049$as_echo_n "checking for non-GNU ld... " >&6; }
9050fi
9051if ${lt_cv_path_LD+:} false; then :
9052  $as_echo_n "(cached) " >&6
9053else
9054  if test -z "$LD"; then
9055  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9056  for ac_dir in $PATH; do
9057    IFS="$lt_save_ifs"
9058    test -z "$ac_dir" && ac_dir=.
9059    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9060      lt_cv_path_LD="$ac_dir/$ac_prog"
9061      # Check to see if the program is GNU ld.  I'd rather use --version,
9062      # but apparently some variants of GNU ld only accept -v.
9063      # Break only if it was the GNU/non-GNU ld that we prefer.
9064      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9065      *GNU* | *'with BFD'*)
9066	test "$with_gnu_ld" != no && break
9067	;;
9068      *)
9069	test "$with_gnu_ld" != yes && break
9070	;;
9071      esac
9072    fi
9073  done
9074  IFS="$lt_save_ifs"
9075else
9076  lt_cv_path_LD="$LD" # Let the user override the test with a path.
9077fi
9078fi
9079
9080LD="$lt_cv_path_LD"
9081if test -n "$LD"; then
9082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9083$as_echo "$LD" >&6; }
9084else
9085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9086$as_echo "no" >&6; }
9087fi
9088test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9090$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9091if ${lt_cv_prog_gnu_ld+:} false; then :
9092  $as_echo_n "(cached) " >&6
9093else
9094  # I'd rather use --version here, but apparently some GNU lds only accept -v.
9095case `$LD -v 2>&1 </dev/null` in
9096*GNU* | *'with BFD'*)
9097  lt_cv_prog_gnu_ld=yes
9098  ;;
9099*)
9100  lt_cv_prog_gnu_ld=no
9101  ;;
9102esac
9103fi
9104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
9105$as_echo "$lt_cv_prog_gnu_ld" >&6; }
9106with_gnu_ld=$lt_cv_prog_gnu_ld
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9117$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9118if ${lt_cv_path_NM+:} false; then :
9119  $as_echo_n "(cached) " >&6
9120else
9121  if test -n "$NM"; then
9122  # Let the user override the test.
9123  lt_cv_path_NM="$NM"
9124else
9125  lt_nm_to_check="${ac_tool_prefix}nm"
9126  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9127    lt_nm_to_check="$lt_nm_to_check nm"
9128  fi
9129  for lt_tmp_nm in $lt_nm_to_check; do
9130    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9131    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9132      IFS="$lt_save_ifs"
9133      test -z "$ac_dir" && ac_dir=.
9134      tmp_nm="$ac_dir/$lt_tmp_nm"
9135      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9136	# Check to see if the nm accepts a BSD-compat flag.
9137	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
9138	#   nm: unknown option "B" ignored
9139	# Tru64's nm complains that /dev/null is an invalid object file
9140	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9141	*/dev/null* | *'Invalid file or object type'*)
9142	  lt_cv_path_NM="$tmp_nm -B"
9143	  break
9144	  ;;
9145	*)
9146	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9147	  */dev/null*)
9148	    lt_cv_path_NM="$tmp_nm -p"
9149	    break
9150	    ;;
9151	  *)
9152	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9153	    continue # so that we can try to find one that supports BSD flags
9154	    ;;
9155	  esac
9156	  ;;
9157	esac
9158      fi
9159    done
9160    IFS="$lt_save_ifs"
9161  done
9162  : ${lt_cv_path_NM=no}
9163fi
9164fi
9165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9166$as_echo "$lt_cv_path_NM" >&6; }
9167if test "$lt_cv_path_NM" != "no"; then
9168  NM="$lt_cv_path_NM"
9169else
9170  # Didn't find any BSD compatible name lister, look for dumpbin.
9171  if test -n "$ac_tool_prefix"; then
9172  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
9173  do
9174    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9175set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9177$as_echo_n "checking for $ac_word... " >&6; }
9178if ${ac_cv_prog_DUMPBIN+:} false; then :
9179  $as_echo_n "(cached) " >&6
9180else
9181  if test -n "$DUMPBIN"; then
9182  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9183else
9184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9185for as_dir in $PATH
9186do
9187  IFS=$as_save_IFS
9188  test -z "$as_dir" && as_dir=.
9189    for ac_exec_ext in '' $ac_executable_extensions; do
9190  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9191    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9192    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9193    break 2
9194  fi
9195done
9196  done
9197IFS=$as_save_IFS
9198
9199fi
9200fi
9201DUMPBIN=$ac_cv_prog_DUMPBIN
9202if test -n "$DUMPBIN"; then
9203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9204$as_echo "$DUMPBIN" >&6; }
9205else
9206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9207$as_echo "no" >&6; }
9208fi
9209
9210
9211    test -n "$DUMPBIN" && break
9212  done
9213fi
9214if test -z "$DUMPBIN"; then
9215  ac_ct_DUMPBIN=$DUMPBIN
9216  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
9217do
9218  # Extract the first word of "$ac_prog", so it can be a program name with args.
9219set dummy $ac_prog; ac_word=$2
9220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9221$as_echo_n "checking for $ac_word... " >&6; }
9222if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
9223  $as_echo_n "(cached) " >&6
9224else
9225  if test -n "$ac_ct_DUMPBIN"; then
9226  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9227else
9228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9229for as_dir in $PATH
9230do
9231  IFS=$as_save_IFS
9232  test -z "$as_dir" && as_dir=.
9233    for ac_exec_ext in '' $ac_executable_extensions; do
9234  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9235    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9236    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9237    break 2
9238  fi
9239done
9240  done
9241IFS=$as_save_IFS
9242
9243fi
9244fi
9245ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9246if test -n "$ac_ct_DUMPBIN"; then
9247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9248$as_echo "$ac_ct_DUMPBIN" >&6; }
9249else
9250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9251$as_echo "no" >&6; }
9252fi
9253
9254
9255  test -n "$ac_ct_DUMPBIN" && break
9256done
9257
9258  if test "x$ac_ct_DUMPBIN" = x; then
9259    DUMPBIN=":"
9260  else
9261    case $cross_compiling:$ac_tool_warned in
9262yes:)
9263{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9264$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9265ac_tool_warned=yes ;;
9266esac
9267    DUMPBIN=$ac_ct_DUMPBIN
9268  fi
9269fi
9270
9271
9272  if test "$DUMPBIN" != ":"; then
9273    NM="$DUMPBIN"
9274  fi
9275fi
9276test -z "$NM" && NM=nm
9277
9278
9279
9280
9281
9282
9283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9284$as_echo_n "checking the name lister ($NM) interface... " >&6; }
9285if ${lt_cv_nm_interface+:} false; then :
9286  $as_echo_n "(cached) " >&6
9287else
9288  lt_cv_nm_interface="BSD nm"
9289  echo "int some_variable = 0;" > conftest.$ac_ext
9290  (eval echo "\"\$as_me:9290: $ac_compile\"" >&5)
9291  (eval "$ac_compile" 2>conftest.err)
9292  cat conftest.err >&5
9293  (eval echo "\"\$as_me:9293: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9294  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9295  cat conftest.err >&5
9296  (eval echo "\"\$as_me:9296: output\"" >&5)
9297  cat conftest.out >&5
9298  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9299    lt_cv_nm_interface="MS dumpbin"
9300  fi
9301  rm -f conftest*
9302fi
9303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9304$as_echo "$lt_cv_nm_interface" >&6; }
9305
9306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9307$as_echo_n "checking whether ln -s works... " >&6; }
9308LN_S=$as_ln_s
9309if test "$LN_S" = "ln -s"; then
9310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9311$as_echo "yes" >&6; }
9312else
9313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9314$as_echo "no, using $LN_S" >&6; }
9315fi
9316
9317# find the maximum length of command line arguments
9318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9319$as_echo_n "checking the maximum length of command line arguments... " >&6; }
9320if ${lt_cv_sys_max_cmd_len+:} false; then :
9321  $as_echo_n "(cached) " >&6
9322else
9323    i=0
9324  teststring="ABCD"
9325
9326  case $build_os in
9327  msdosdjgpp*)
9328    # On DJGPP, this test can blow up pretty badly due to problems in libc
9329    # (any single argument exceeding 2000 bytes causes a buffer overrun
9330    # during glob expansion).  Even if it were fixed, the result of this
9331    # check would be larger than it should be.
9332    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
9333    ;;
9334
9335  gnu*)
9336    # Under GNU Hurd, this test is not required because there is
9337    # no limit to the length of command line arguments.
9338    # Libtool will interpret -1 as no limit whatsoever
9339    lt_cv_sys_max_cmd_len=-1;
9340    ;;
9341
9342  cygwin* | mingw* | cegcc*)
9343    # On Win9x/ME, this test blows up -- it succeeds, but takes
9344    # about 5 minutes as the teststring grows exponentially.
9345    # Worse, since 9x/ME are not pre-emptively multitasking,
9346    # you end up with a "frozen" computer, even though with patience
9347    # the test eventually succeeds (with a max line length of 256k).
9348    # Instead, let's just punt: use the minimum linelength reported by
9349    # all of the supported platforms: 8192 (on NT/2K/XP).
9350    lt_cv_sys_max_cmd_len=8192;
9351    ;;
9352
9353  amigaos*)
9354    # On AmigaOS with pdksh, this test takes hours, literally.
9355    # So we just punt and use a minimum line length of 8192.
9356    lt_cv_sys_max_cmd_len=8192;
9357    ;;
9358
9359  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9360    # This has been around since 386BSD, at least.  Likely further.
9361    if test -x /sbin/sysctl; then
9362      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9363    elif test -x /usr/sbin/sysctl; then
9364      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9365    else
9366      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
9367    fi
9368    # And add a safety zone
9369    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9370    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9371    ;;
9372
9373  interix*)
9374    # We know the value 262144 and hardcode it with a safety zone (like BSD)
9375    lt_cv_sys_max_cmd_len=196608
9376    ;;
9377
9378  osf*)
9379    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9380    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9381    # nice to cause kernel panics so lets avoid the loop below.
9382    # First set a reasonable default.
9383    lt_cv_sys_max_cmd_len=16384
9384    #
9385    if test -x /sbin/sysconfig; then
9386      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9387        *1*) lt_cv_sys_max_cmd_len=-1 ;;
9388      esac
9389    fi
9390    ;;
9391  sco3.2v5*)
9392    lt_cv_sys_max_cmd_len=102400
9393    ;;
9394  sysv5* | sco5v6* | sysv4.2uw2*)
9395    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9396    if test -n "$kargmax"; then
9397      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
9398    else
9399      lt_cv_sys_max_cmd_len=32768
9400    fi
9401    ;;
9402  *)
9403    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9404    if test -n "$lt_cv_sys_max_cmd_len"; then
9405      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9406      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9407    else
9408      # Make teststring a little bigger before we do anything with it.
9409      # a 1K string should be a reasonable start.
9410      for i in 1 2 3 4 5 6 7 8 ; do
9411        teststring=$teststring$teststring
9412      done
9413      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9414      # If test is not a shell built-in, we'll probably end up computing a
9415      # maximum length that is only half of the actual maximum length, but
9416      # we can't tell.
9417      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
9418	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
9419	      test $i != 17 # 1/2 MB should be enough
9420      do
9421        i=`expr $i + 1`
9422        teststring=$teststring$teststring
9423      done
9424      # Only check the string length outside the loop.
9425      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9426      teststring=
9427      # Add a significant safety factor because C++ compilers can tack on
9428      # massive amounts of additional arguments before passing them to the
9429      # linker.  It appears as though 1/2 is a usable value.
9430      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9431    fi
9432    ;;
9433  esac
9434
9435fi
9436
9437if test -n $lt_cv_sys_max_cmd_len ; then
9438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9439$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9440else
9441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9442$as_echo "none" >&6; }
9443fi
9444max_cmd_len=$lt_cv_sys_max_cmd_len
9445
9446
9447
9448
9449
9450
9451: ${CP="cp -f"}
9452: ${MV="mv -f"}
9453: ${RM="rm -f"}
9454
9455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9456$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9457# Try some XSI features
9458xsi_shell=no
9459( _lt_dummy="a/b/c"
9460  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9461      = c,a/b,, \
9462    && eval 'test $(( 1 + 1 )) -eq 2 \
9463    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9464  && xsi_shell=yes
9465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9466$as_echo "$xsi_shell" >&6; }
9467
9468
9469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9470$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9471lt_shell_append=no
9472( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9473    >/dev/null 2>&1 \
9474  && lt_shell_append=yes
9475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9476$as_echo "$lt_shell_append" >&6; }
9477
9478
9479if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9480  lt_unset=unset
9481else
9482  lt_unset=false
9483fi
9484
9485
9486
9487
9488
9489# test EBCDIC or ASCII
9490case `echo X|tr X '\101'` in
9491 A) # ASCII based system
9492    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9493  lt_SP2NL='tr \040 \012'
9494  lt_NL2SP='tr \015\012 \040\040'
9495  ;;
9496 *) # EBCDIC based system
9497  lt_SP2NL='tr \100 \n'
9498  lt_NL2SP='tr \r\n \100\100'
9499  ;;
9500esac
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9511$as_echo_n "checking for $LD option to reload object files... " >&6; }
9512if ${lt_cv_ld_reload_flag+:} false; then :
9513  $as_echo_n "(cached) " >&6
9514else
9515  lt_cv_ld_reload_flag='-r'
9516fi
9517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9518$as_echo "$lt_cv_ld_reload_flag" >&6; }
9519reload_flag=$lt_cv_ld_reload_flag
9520case $reload_flag in
9521"" | " "*) ;;
9522*) reload_flag=" $reload_flag" ;;
9523esac
9524reload_cmds='$LD$reload_flag -o $output$reload_objs'
9525case $host_os in
9526  darwin*)
9527    if test "$GCC" = yes; then
9528      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9529    else
9530      reload_cmds='$LD$reload_flag -o $output$reload_objs'
9531    fi
9532    ;;
9533esac
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543if test -n "$ac_tool_prefix"; then
9544  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9545set dummy ${ac_tool_prefix}objdump; ac_word=$2
9546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9547$as_echo_n "checking for $ac_word... " >&6; }
9548if ${ac_cv_prog_OBJDUMP+:} false; then :
9549  $as_echo_n "(cached) " >&6
9550else
9551  if test -n "$OBJDUMP"; then
9552  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9553else
9554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9555for as_dir in $PATH
9556do
9557  IFS=$as_save_IFS
9558  test -z "$as_dir" && as_dir=.
9559    for ac_exec_ext in '' $ac_executable_extensions; do
9560  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9561    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9562    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9563    break 2
9564  fi
9565done
9566  done
9567IFS=$as_save_IFS
9568
9569fi
9570fi
9571OBJDUMP=$ac_cv_prog_OBJDUMP
9572if test -n "$OBJDUMP"; then
9573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9574$as_echo "$OBJDUMP" >&6; }
9575else
9576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9577$as_echo "no" >&6; }
9578fi
9579
9580
9581fi
9582if test -z "$ac_cv_prog_OBJDUMP"; then
9583  ac_ct_OBJDUMP=$OBJDUMP
9584  # Extract the first word of "objdump", so it can be a program name with args.
9585set dummy objdump; ac_word=$2
9586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9587$as_echo_n "checking for $ac_word... " >&6; }
9588if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9589  $as_echo_n "(cached) " >&6
9590else
9591  if test -n "$ac_ct_OBJDUMP"; then
9592  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9593else
9594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9595for as_dir in $PATH
9596do
9597  IFS=$as_save_IFS
9598  test -z "$as_dir" && as_dir=.
9599    for ac_exec_ext in '' $ac_executable_extensions; do
9600  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9601    ac_cv_prog_ac_ct_OBJDUMP="objdump"
9602    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9603    break 2
9604  fi
9605done
9606  done
9607IFS=$as_save_IFS
9608
9609fi
9610fi
9611ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9612if test -n "$ac_ct_OBJDUMP"; then
9613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9614$as_echo "$ac_ct_OBJDUMP" >&6; }
9615else
9616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9617$as_echo "no" >&6; }
9618fi
9619
9620  if test "x$ac_ct_OBJDUMP" = x; then
9621    OBJDUMP="false"
9622  else
9623    case $cross_compiling:$ac_tool_warned in
9624yes:)
9625{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9626$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9627ac_tool_warned=yes ;;
9628esac
9629    OBJDUMP=$ac_ct_OBJDUMP
9630  fi
9631else
9632  OBJDUMP="$ac_cv_prog_OBJDUMP"
9633fi
9634
9635test -z "$OBJDUMP" && OBJDUMP=objdump
9636
9637
9638
9639
9640
9641
9642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9643$as_echo_n "checking how to recognize dependent libraries... " >&6; }
9644if ${lt_cv_deplibs_check_method+:} false; then :
9645  $as_echo_n "(cached) " >&6
9646else
9647  lt_cv_file_magic_cmd='$MAGIC_CMD'
9648lt_cv_file_magic_test_file=
9649lt_cv_deplibs_check_method='unknown'
9650# Need to set the preceding variable on all platforms that support
9651# interlibrary dependencies.
9652# 'none' -- dependencies not supported.
9653# `unknown' -- same as none, but documents that we really don't know.
9654# 'pass_all' -- all dependencies passed with no checks.
9655# 'test_compile' -- check by making test program.
9656# 'file_magic [[regex]]' -- check by looking for files in library path
9657# which responds to the $file_magic_cmd with a given extended regex.
9658# If you have `file' or equivalent on your system and you're not sure
9659# whether `pass_all' will *always* work, you probably want this one.
9660
9661case $host_os in
9662aix[4-9]*)
9663  lt_cv_deplibs_check_method=pass_all
9664  ;;
9665
9666beos*)
9667  lt_cv_deplibs_check_method=pass_all
9668  ;;
9669
9670bsdi[45]*)
9671  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9672  lt_cv_file_magic_cmd='/usr/bin/file -L'
9673  lt_cv_file_magic_test_file=/shlib/libc.so
9674  ;;
9675
9676cygwin*)
9677  # func_win32_libid is a shell function defined in ltmain.sh
9678  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9679  lt_cv_file_magic_cmd='func_win32_libid'
9680  ;;
9681
9682mingw* | pw32*)
9683  # Base MSYS/MinGW do not provide the 'file' command needed by
9684  # func_win32_libid shell function, so use a weaker test based on 'objdump',
9685  # unless we find 'file', for example because we are cross-compiling.
9686  if ( file / ) >/dev/null 2>&1; then
9687    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9688    lt_cv_file_magic_cmd='func_win32_libid'
9689  else
9690    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
9691    lt_cv_file_magic_cmd='$OBJDUMP -f'
9692  fi
9693  ;;
9694
9695cegcc)
9696  # use the weaker test based on 'objdump'. See mingw*.
9697  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9698  lt_cv_file_magic_cmd='$OBJDUMP -f'
9699  ;;
9700
9701darwin* | rhapsody*)
9702  lt_cv_deplibs_check_method=pass_all
9703  ;;
9704
9705freebsd* | dragonfly*)
9706  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9707    case $host_cpu in
9708    i*86 )
9709      # Not sure whether the presence of OpenBSD here was a mistake.
9710      # Let's accept both of them until this is cleared up.
9711      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9712      lt_cv_file_magic_cmd=/usr/bin/file
9713      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9714      ;;
9715    esac
9716  else
9717    lt_cv_deplibs_check_method=pass_all
9718  fi
9719  ;;
9720
9721gnu*)
9722  lt_cv_deplibs_check_method=pass_all
9723  ;;
9724
9725hpux10.20* | hpux11*)
9726  lt_cv_file_magic_cmd=/usr/bin/file
9727  case $host_cpu in
9728  ia64*)
9729    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9730    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9731    ;;
9732  hppa*64*)
9733    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]'
9734    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9735    ;;
9736  *)
9737    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
9738    lt_cv_file_magic_test_file=/usr/lib/libc.sl
9739    ;;
9740  esac
9741  ;;
9742
9743interix[3-9]*)
9744  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9745  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9746  ;;
9747
9748irix5* | irix6* | nonstopux*)
9749  case $LD in
9750  *-32|*"-32 ") libmagic=32-bit;;
9751  *-n32|*"-n32 ") libmagic=N32;;
9752  *-64|*"-64 ") libmagic=64-bit;;
9753  *) libmagic=never-match;;
9754  esac
9755  lt_cv_deplibs_check_method=pass_all
9756  ;;
9757
9758# This must be Linux ELF.
9759linux* | k*bsd*-gnu)
9760  lt_cv_deplibs_check_method=pass_all
9761  ;;
9762
9763netbsd*)
9764  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9765    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9766  else
9767    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9768  fi
9769  ;;
9770
9771newos6*)
9772  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9773  lt_cv_file_magic_cmd=/usr/bin/file
9774  lt_cv_file_magic_test_file=/usr/lib/libnls.so
9775  ;;
9776
9777*nto* | *qnx*)
9778  lt_cv_deplibs_check_method=pass_all
9779  ;;
9780
9781openbsd*)
9782  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9783    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9784  else
9785    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9786  fi
9787  ;;
9788
9789osf3* | osf4* | osf5*)
9790  lt_cv_deplibs_check_method=pass_all
9791  ;;
9792
9793rdos*)
9794  lt_cv_deplibs_check_method=pass_all
9795  ;;
9796
9797solaris*)
9798  lt_cv_deplibs_check_method=pass_all
9799  ;;
9800
9801sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9802  lt_cv_deplibs_check_method=pass_all
9803  ;;
9804
9805sysv4 | sysv4.3*)
9806  case $host_vendor in
9807  motorola)
9808    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]'
9809    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9810    ;;
9811  ncr)
9812    lt_cv_deplibs_check_method=pass_all
9813    ;;
9814  sequent)
9815    lt_cv_file_magic_cmd='/bin/file'
9816    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9817    ;;
9818  sni)
9819    lt_cv_file_magic_cmd='/bin/file'
9820    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9821    lt_cv_file_magic_test_file=/lib/libc.so
9822    ;;
9823  siemens)
9824    lt_cv_deplibs_check_method=pass_all
9825    ;;
9826  pc)
9827    lt_cv_deplibs_check_method=pass_all
9828    ;;
9829  esac
9830  ;;
9831
9832tpf*)
9833  lt_cv_deplibs_check_method=pass_all
9834  ;;
9835esac
9836
9837fi
9838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9839$as_echo "$lt_cv_deplibs_check_method" >&6; }
9840file_magic_cmd=$lt_cv_file_magic_cmd
9841deplibs_check_method=$lt_cv_deplibs_check_method
9842test -z "$deplibs_check_method" && deplibs_check_method=unknown
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855if test -n "$ac_tool_prefix"; then
9856  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9857set dummy ${ac_tool_prefix}ar; ac_word=$2
9858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9859$as_echo_n "checking for $ac_word... " >&6; }
9860if ${ac_cv_prog_AR+:} false; then :
9861  $as_echo_n "(cached) " >&6
9862else
9863  if test -n "$AR"; then
9864  ac_cv_prog_AR="$AR" # Let the user override the test.
9865else
9866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9867for as_dir in $PATH
9868do
9869  IFS=$as_save_IFS
9870  test -z "$as_dir" && as_dir=.
9871    for ac_exec_ext in '' $ac_executable_extensions; do
9872  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9873    ac_cv_prog_AR="${ac_tool_prefix}ar"
9874    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9875    break 2
9876  fi
9877done
9878  done
9879IFS=$as_save_IFS
9880
9881fi
9882fi
9883AR=$ac_cv_prog_AR
9884if test -n "$AR"; then
9885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9886$as_echo "$AR" >&6; }
9887else
9888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9889$as_echo "no" >&6; }
9890fi
9891
9892
9893fi
9894if test -z "$ac_cv_prog_AR"; then
9895  ac_ct_AR=$AR
9896  # Extract the first word of "ar", so it can be a program name with args.
9897set dummy ar; ac_word=$2
9898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9899$as_echo_n "checking for $ac_word... " >&6; }
9900if ${ac_cv_prog_ac_ct_AR+:} false; then :
9901  $as_echo_n "(cached) " >&6
9902else
9903  if test -n "$ac_ct_AR"; then
9904  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9905else
9906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9907for as_dir in $PATH
9908do
9909  IFS=$as_save_IFS
9910  test -z "$as_dir" && as_dir=.
9911    for ac_exec_ext in '' $ac_executable_extensions; do
9912  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9913    ac_cv_prog_ac_ct_AR="ar"
9914    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9915    break 2
9916  fi
9917done
9918  done
9919IFS=$as_save_IFS
9920
9921fi
9922fi
9923ac_ct_AR=$ac_cv_prog_ac_ct_AR
9924if test -n "$ac_ct_AR"; then
9925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9926$as_echo "$ac_ct_AR" >&6; }
9927else
9928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9929$as_echo "no" >&6; }
9930fi
9931
9932  if test "x$ac_ct_AR" = x; then
9933    AR="false"
9934  else
9935    case $cross_compiling:$ac_tool_warned in
9936yes:)
9937{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9938$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9939ac_tool_warned=yes ;;
9940esac
9941    AR=$ac_ct_AR
9942  fi
9943else
9944  AR="$ac_cv_prog_AR"
9945fi
9946
9947test -z "$AR" && AR=ar
9948test -z "$AR_FLAGS" && AR_FLAGS=cru
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960if test -n "$ac_tool_prefix"; then
9961  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9962set dummy ${ac_tool_prefix}strip; ac_word=$2
9963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9964$as_echo_n "checking for $ac_word... " >&6; }
9965if ${ac_cv_prog_STRIP+:} false; then :
9966  $as_echo_n "(cached) " >&6
9967else
9968  if test -n "$STRIP"; then
9969  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9970else
9971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9972for as_dir in $PATH
9973do
9974  IFS=$as_save_IFS
9975  test -z "$as_dir" && as_dir=.
9976    for ac_exec_ext in '' $ac_executable_extensions; do
9977  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9978    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9979    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9980    break 2
9981  fi
9982done
9983  done
9984IFS=$as_save_IFS
9985
9986fi
9987fi
9988STRIP=$ac_cv_prog_STRIP
9989if test -n "$STRIP"; then
9990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9991$as_echo "$STRIP" >&6; }
9992else
9993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9994$as_echo "no" >&6; }
9995fi
9996
9997
9998fi
9999if test -z "$ac_cv_prog_STRIP"; then
10000  ac_ct_STRIP=$STRIP
10001  # Extract the first word of "strip", so it can be a program name with args.
10002set dummy strip; ac_word=$2
10003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10004$as_echo_n "checking for $ac_word... " >&6; }
10005if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10006  $as_echo_n "(cached) " >&6
10007else
10008  if test -n "$ac_ct_STRIP"; then
10009  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10010else
10011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10012for as_dir in $PATH
10013do
10014  IFS=$as_save_IFS
10015  test -z "$as_dir" && as_dir=.
10016    for ac_exec_ext in '' $ac_executable_extensions; do
10017  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10018    ac_cv_prog_ac_ct_STRIP="strip"
10019    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10020    break 2
10021  fi
10022done
10023  done
10024IFS=$as_save_IFS
10025
10026fi
10027fi
10028ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10029if test -n "$ac_ct_STRIP"; then
10030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10031$as_echo "$ac_ct_STRIP" >&6; }
10032else
10033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10034$as_echo "no" >&6; }
10035fi
10036
10037  if test "x$ac_ct_STRIP" = x; then
10038    STRIP=":"
10039  else
10040    case $cross_compiling:$ac_tool_warned in
10041yes:)
10042{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10043$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10044ac_tool_warned=yes ;;
10045esac
10046    STRIP=$ac_ct_STRIP
10047  fi
10048else
10049  STRIP="$ac_cv_prog_STRIP"
10050fi
10051
10052test -z "$STRIP" && STRIP=:
10053
10054
10055
10056
10057
10058
10059if test -n "$ac_tool_prefix"; then
10060  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10061set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10063$as_echo_n "checking for $ac_word... " >&6; }
10064if ${ac_cv_prog_RANLIB+:} false; then :
10065  $as_echo_n "(cached) " >&6
10066else
10067  if test -n "$RANLIB"; then
10068  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10069else
10070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10071for as_dir in $PATH
10072do
10073  IFS=$as_save_IFS
10074  test -z "$as_dir" && as_dir=.
10075    for ac_exec_ext in '' $ac_executable_extensions; do
10076  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10077    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10078    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10079    break 2
10080  fi
10081done
10082  done
10083IFS=$as_save_IFS
10084
10085fi
10086fi
10087RANLIB=$ac_cv_prog_RANLIB
10088if test -n "$RANLIB"; then
10089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10090$as_echo "$RANLIB" >&6; }
10091else
10092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10093$as_echo "no" >&6; }
10094fi
10095
10096
10097fi
10098if test -z "$ac_cv_prog_RANLIB"; then
10099  ac_ct_RANLIB=$RANLIB
10100  # Extract the first word of "ranlib", so it can be a program name with args.
10101set dummy ranlib; ac_word=$2
10102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10103$as_echo_n "checking for $ac_word... " >&6; }
10104if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10105  $as_echo_n "(cached) " >&6
10106else
10107  if test -n "$ac_ct_RANLIB"; then
10108  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10109else
10110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10111for as_dir in $PATH
10112do
10113  IFS=$as_save_IFS
10114  test -z "$as_dir" && as_dir=.
10115    for ac_exec_ext in '' $ac_executable_extensions; do
10116  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10117    ac_cv_prog_ac_ct_RANLIB="ranlib"
10118    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10119    break 2
10120  fi
10121done
10122  done
10123IFS=$as_save_IFS
10124
10125fi
10126fi
10127ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10128if test -n "$ac_ct_RANLIB"; then
10129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10130$as_echo "$ac_ct_RANLIB" >&6; }
10131else
10132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10133$as_echo "no" >&6; }
10134fi
10135
10136  if test "x$ac_ct_RANLIB" = x; then
10137    RANLIB=":"
10138  else
10139    case $cross_compiling:$ac_tool_warned in
10140yes:)
10141{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10142$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10143ac_tool_warned=yes ;;
10144esac
10145    RANLIB=$ac_ct_RANLIB
10146  fi
10147else
10148  RANLIB="$ac_cv_prog_RANLIB"
10149fi
10150
10151test -z "$RANLIB" && RANLIB=:
10152
10153
10154
10155
10156
10157
10158# Determine commands to create old-style static archives.
10159old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10160old_postinstall_cmds='chmod 644 $oldlib'
10161old_postuninstall_cmds=
10162
10163if test -n "$RANLIB"; then
10164  case $host_os in
10165  openbsd*)
10166    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10167    ;;
10168  *)
10169    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10170    ;;
10171  esac
10172  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10173fi
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208# If no C compiler was specified, use CC.
10209LTCC=${LTCC-"$CC"}
10210
10211# If no C compiler flags were specified, use CFLAGS.
10212LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10213
10214# Allow CC to be a program name with arguments.
10215compiler=$CC
10216
10217
10218# Check for command to grab the raw symbol name followed by C symbol from nm.
10219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10220$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10221if ${lt_cv_sys_global_symbol_pipe+:} false; then :
10222  $as_echo_n "(cached) " >&6
10223else
10224
10225# These are sane defaults that work on at least a few old systems.
10226# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10227
10228# Character class describing NM global symbol codes.
10229symcode='[BCDEGRST]'
10230
10231# Regexp to match symbols that can be accessed directly from C.
10232sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10233
10234# Define system-specific variables.
10235case $host_os in
10236aix*)
10237  symcode='[BCDT]'
10238  ;;
10239cygwin* | mingw* | pw32* | cegcc*)
10240  symcode='[ABCDGISTW]'
10241  ;;
10242hpux*)
10243  if test "$host_cpu" = ia64; then
10244    symcode='[ABCDEGRST]'
10245  fi
10246  ;;
10247irix* | nonstopux*)
10248  symcode='[BCDEGRST]'
10249  ;;
10250osf*)
10251  symcode='[BCDEGQRST]'
10252  ;;
10253solaris*)
10254  symcode='[BDRT]'
10255  ;;
10256sco3.2v5*)
10257  symcode='[DT]'
10258  ;;
10259sysv4.2uw2*)
10260  symcode='[DT]'
10261  ;;
10262sysv5* | sco5v6* | unixware* | OpenUNIX*)
10263  symcode='[ABDT]'
10264  ;;
10265sysv4)
10266  symcode='[DFNSTU]'
10267  ;;
10268esac
10269
10270# If we're using GNU nm, then use its standard symbol codes.
10271case `$NM -V 2>&1` in
10272*GNU* | *'with BFD'*)
10273  symcode='[ABCDGIRSTW]' ;;
10274esac
10275
10276# Transform an extracted symbol line into a proper C declaration.
10277# Some systems (esp. on ia64) link data and code symbols differently,
10278# so use this general approach.
10279lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10280
10281# Transform an extracted symbol line into symbol name and symbol address
10282lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
10283lt_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'"
10284
10285# Handle CRLF in mingw tool chain
10286opt_cr=
10287case $build_os in
10288mingw*)
10289  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10290  ;;
10291esac
10292
10293# Try without a prefix underscore, then with it.
10294for ac_symprfx in "" "_"; do
10295
10296  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10297  symxfrm="\\1 $ac_symprfx\\2 \\2"
10298
10299  # Write the raw and C identifiers.
10300  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10301    # Fake it for dumpbin and say T for any non-static function
10302    # and D for any global variable.
10303    # Also find C++ and __fastcall symbols from MSVC++,
10304    # which start with @ or ?.
10305    lt_cv_sys_global_symbol_pipe="$AWK '"\
10306"     {last_section=section; section=\$ 3};"\
10307"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10308"     \$ 0!~/External *\|/{next};"\
10309"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10310"     {if(hide[section]) next};"\
10311"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10312"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10313"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
10314"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10315"     ' prfx=^$ac_symprfx"
10316  else
10317    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10318  fi
10319
10320  # Check to see that the pipe works correctly.
10321  pipe_works=no
10322
10323  rm -f conftest*
10324  cat > conftest.$ac_ext <<_LT_EOF
10325#ifdef __cplusplus
10326extern "C" {
10327#endif
10328char nm_test_var;
10329void nm_test_func(void);
10330void nm_test_func(void){}
10331#ifdef __cplusplus
10332}
10333#endif
10334int main(){nm_test_var='a';nm_test_func();return(0);}
10335_LT_EOF
10336
10337  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10338  (eval $ac_compile) 2>&5
10339  ac_status=$?
10340  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10341  test $ac_status = 0; }; then
10342    # Now try to grab the symbols.
10343    nlist=conftest.nm
10344    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
10345  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10346  ac_status=$?
10347  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10348  test $ac_status = 0; } && test -s "$nlist"; then
10349      # Try sorting and uniquifying the output.
10350      if sort "$nlist" | uniq > "$nlist"T; then
10351	mv -f "$nlist"T "$nlist"
10352      else
10353	rm -f "$nlist"T
10354      fi
10355
10356      # Make sure that we snagged all the symbols we need.
10357      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10358	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10359	  cat <<_LT_EOF > conftest.$ac_ext
10360#ifdef __cplusplus
10361extern "C" {
10362#endif
10363
10364_LT_EOF
10365	  # Now generate the symbol file.
10366	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10367
10368	  cat <<_LT_EOF >> conftest.$ac_ext
10369
10370/* The mapping between symbol names and symbols.  */
10371const struct {
10372  const char *name;
10373  void       *address;
10374}
10375lt__PROGRAM__LTX_preloaded_symbols[] =
10376{
10377  { "@PROGRAM@", (void *) 0 },
10378_LT_EOF
10379	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10380	  cat <<\_LT_EOF >> conftest.$ac_ext
10381  {0, (void *) 0}
10382};
10383
10384/* This works around a problem in FreeBSD linker */
10385#ifdef FREEBSD_WORKAROUND
10386static const void *lt_preloaded_setup() {
10387  return lt__PROGRAM__LTX_preloaded_symbols;
10388}
10389#endif
10390
10391#ifdef __cplusplus
10392}
10393#endif
10394_LT_EOF
10395	  # Now try linking the two files.
10396	  mv conftest.$ac_objext conftstm.$ac_objext
10397	  lt_save_LIBS="$LIBS"
10398	  lt_save_CFLAGS="$CFLAGS"
10399	  LIBS="conftstm.$ac_objext"
10400	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10401	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10402  (eval $ac_link) 2>&5
10403  ac_status=$?
10404  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10405  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
10406	    pipe_works=yes
10407	  fi
10408	  LIBS="$lt_save_LIBS"
10409	  CFLAGS="$lt_save_CFLAGS"
10410	else
10411	  echo "cannot find nm_test_func in $nlist" >&5
10412	fi
10413      else
10414	echo "cannot find nm_test_var in $nlist" >&5
10415      fi
10416    else
10417      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10418    fi
10419  else
10420    echo "$progname: failed program was:" >&5
10421    cat conftest.$ac_ext >&5
10422  fi
10423  rm -rf conftest* conftst*
10424
10425  # Do not use the global_symbol_pipe unless it works.
10426  if test "$pipe_works" = yes; then
10427    break
10428  else
10429    lt_cv_sys_global_symbol_pipe=
10430  fi
10431done
10432
10433fi
10434
10435if test -z "$lt_cv_sys_global_symbol_pipe"; then
10436  lt_cv_sys_global_symbol_to_cdecl=
10437fi
10438if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10440$as_echo "failed" >&6; }
10441else
10442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10443$as_echo "ok" >&6; }
10444fi
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467# Check whether --enable-libtool-lock was given.
10468if test "${enable_libtool_lock+set}" = set; then :
10469  enableval=$enable_libtool_lock;
10470fi
10471
10472test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10473
10474# Some flags need to be propagated to the compiler or linker for good
10475# libtool support.
10476case $host in
10477ia64-*-hpux*)
10478  # Find out which ABI we are using.
10479  echo 'int i;' > conftest.$ac_ext
10480  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10481  (eval $ac_compile) 2>&5
10482  ac_status=$?
10483  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10484  test $ac_status = 0; }; then
10485    case `/usr/bin/file conftest.$ac_objext` in
10486      *ELF-32*)
10487	HPUX_IA64_MODE="32"
10488	;;
10489      *ELF-64*)
10490	HPUX_IA64_MODE="64"
10491	;;
10492    esac
10493  fi
10494  rm -rf conftest*
10495  ;;
10496*-*-irix6*)
10497  # Find out which ABI we are using.
10498  echo '#line 10498 "configure"' > conftest.$ac_ext
10499  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10500  (eval $ac_compile) 2>&5
10501  ac_status=$?
10502  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10503  test $ac_status = 0; }; then
10504    if test "$lt_cv_prog_gnu_ld" = yes; then
10505      case `/usr/bin/file conftest.$ac_objext` in
10506	*32-bit*)
10507	  LD="${LD-ld} -melf32bsmip"
10508	  ;;
10509	*N32*)
10510	  LD="${LD-ld} -melf32bmipn32"
10511	  ;;
10512	*64-bit*)
10513	  LD="${LD-ld} -melf64bmip"
10514	;;
10515      esac
10516    else
10517      case `/usr/bin/file conftest.$ac_objext` in
10518	*32-bit*)
10519	  LD="${LD-ld} -32"
10520	  ;;
10521	*N32*)
10522	  LD="${LD-ld} -n32"
10523	  ;;
10524	*64-bit*)
10525	  LD="${LD-ld} -64"
10526	  ;;
10527      esac
10528    fi
10529  fi
10530  rm -rf conftest*
10531  ;;
10532
10533x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10534s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10535  # Find out which ABI we are using.
10536  echo 'int i;' > conftest.$ac_ext
10537  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10538  (eval $ac_compile) 2>&5
10539  ac_status=$?
10540  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10541  test $ac_status = 0; }; then
10542    case `/usr/bin/file conftest.o` in
10543      *32-bit*)
10544	case $host in
10545	  x86_64-*kfreebsd*-gnu)
10546	    LD="${LD-ld} -m elf_i386_fbsd"
10547	    ;;
10548	  x86_64-*linux*)
10549	    LD="${LD-ld} -m elf_i386"
10550	    ;;
10551	  ppc64-*linux*|powerpc64-*linux*)
10552	    LD="${LD-ld} -m elf32ppclinux"
10553	    ;;
10554	  s390x-*linux*)
10555	    LD="${LD-ld} -m elf_s390"
10556	    ;;
10557	  sparc64-*linux*)
10558	    LD="${LD-ld} -m elf32_sparc"
10559	    ;;
10560	esac
10561	;;
10562      *64-bit*)
10563	case $host in
10564	  x86_64-*kfreebsd*-gnu)
10565	    LD="${LD-ld} -m elf_x86_64_fbsd"
10566	    ;;
10567	  x86_64-*linux*)
10568	    LD="${LD-ld} -m elf_x86_64"
10569	    ;;
10570	  ppc*-*linux*|powerpc*-*linux*)
10571	    LD="${LD-ld} -m elf64ppc"
10572	    ;;
10573	  s390*-*linux*|s390*-*tpf*)
10574	    LD="${LD-ld} -m elf64_s390"
10575	    ;;
10576	  sparc*-*linux*)
10577	    LD="${LD-ld} -m elf64_sparc"
10578	    ;;
10579	esac
10580	;;
10581    esac
10582  fi
10583  rm -rf conftest*
10584  ;;
10585
10586*-*-sco3.2v5*)
10587  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10588  SAVE_CFLAGS="$CFLAGS"
10589  CFLAGS="$CFLAGS -belf"
10590  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10591$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10592if ${lt_cv_cc_needs_belf+:} false; then :
10593  $as_echo_n "(cached) " >&6
10594else
10595  ac_ext=c
10596ac_cpp='$CPP $CPPFLAGS'
10597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10599ac_compiler_gnu=$ac_cv_c_compiler_gnu
10600
10601     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10602/* end confdefs.h.  */
10603
10604int
10605main ()
10606{
10607
10608  ;
10609  return 0;
10610}
10611_ACEOF
10612if ac_fn_c_try_link "$LINENO"; then :
10613  lt_cv_cc_needs_belf=yes
10614else
10615  lt_cv_cc_needs_belf=no
10616fi
10617rm -f core conftest.err conftest.$ac_objext \
10618    conftest$ac_exeext conftest.$ac_ext
10619     ac_ext=c
10620ac_cpp='$CPP $CPPFLAGS'
10621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10623ac_compiler_gnu=$ac_cv_c_compiler_gnu
10624
10625fi
10626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10627$as_echo "$lt_cv_cc_needs_belf" >&6; }
10628  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10629    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10630    CFLAGS="$SAVE_CFLAGS"
10631  fi
10632  ;;
10633sparc*-*solaris*)
10634  # Find out which ABI we are using.
10635  echo 'int i;' > conftest.$ac_ext
10636  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10637  (eval $ac_compile) 2>&5
10638  ac_status=$?
10639  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10640  test $ac_status = 0; }; then
10641    case `/usr/bin/file conftest.o` in
10642    *64-bit*)
10643      case $lt_cv_prog_gnu_ld in
10644      yes*) LD="${LD-ld} -m elf64_sparc" ;;
10645      *)
10646	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10647	  LD="${LD-ld} -64"
10648	fi
10649	;;
10650      esac
10651      ;;
10652    esac
10653  fi
10654  rm -rf conftest*
10655  ;;
10656esac
10657
10658need_locks="$enable_libtool_lock"
10659
10660
10661  case $host_os in
10662    rhapsody* | darwin*)
10663    if test -n "$ac_tool_prefix"; then
10664  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10665set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10667$as_echo_n "checking for $ac_word... " >&6; }
10668if ${ac_cv_prog_DSYMUTIL+:} false; then :
10669  $as_echo_n "(cached) " >&6
10670else
10671  if test -n "$DSYMUTIL"; then
10672  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10673else
10674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10675for as_dir in $PATH
10676do
10677  IFS=$as_save_IFS
10678  test -z "$as_dir" && as_dir=.
10679    for ac_exec_ext in '' $ac_executable_extensions; do
10680  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10681    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10682    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10683    break 2
10684  fi
10685done
10686  done
10687IFS=$as_save_IFS
10688
10689fi
10690fi
10691DSYMUTIL=$ac_cv_prog_DSYMUTIL
10692if test -n "$DSYMUTIL"; then
10693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10694$as_echo "$DSYMUTIL" >&6; }
10695else
10696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10697$as_echo "no" >&6; }
10698fi
10699
10700
10701fi
10702if test -z "$ac_cv_prog_DSYMUTIL"; then
10703  ac_ct_DSYMUTIL=$DSYMUTIL
10704  # Extract the first word of "dsymutil", so it can be a program name with args.
10705set dummy dsymutil; ac_word=$2
10706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10707$as_echo_n "checking for $ac_word... " >&6; }
10708if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10709  $as_echo_n "(cached) " >&6
10710else
10711  if test -n "$ac_ct_DSYMUTIL"; then
10712  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10713else
10714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10715for as_dir in $PATH
10716do
10717  IFS=$as_save_IFS
10718  test -z "$as_dir" && as_dir=.
10719    for ac_exec_ext in '' $ac_executable_extensions; do
10720  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10721    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10722    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10723    break 2
10724  fi
10725done
10726  done
10727IFS=$as_save_IFS
10728
10729fi
10730fi
10731ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10732if test -n "$ac_ct_DSYMUTIL"; then
10733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10734$as_echo "$ac_ct_DSYMUTIL" >&6; }
10735else
10736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10737$as_echo "no" >&6; }
10738fi
10739
10740  if test "x$ac_ct_DSYMUTIL" = x; then
10741    DSYMUTIL=":"
10742  else
10743    case $cross_compiling:$ac_tool_warned in
10744yes:)
10745{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10746$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10747ac_tool_warned=yes ;;
10748esac
10749    DSYMUTIL=$ac_ct_DSYMUTIL
10750  fi
10751else
10752  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10753fi
10754
10755    if test -n "$ac_tool_prefix"; then
10756  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10757set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10759$as_echo_n "checking for $ac_word... " >&6; }
10760if ${ac_cv_prog_NMEDIT+:} false; then :
10761  $as_echo_n "(cached) " >&6
10762else
10763  if test -n "$NMEDIT"; then
10764  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10765else
10766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10767for as_dir in $PATH
10768do
10769  IFS=$as_save_IFS
10770  test -z "$as_dir" && as_dir=.
10771    for ac_exec_ext in '' $ac_executable_extensions; do
10772  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10773    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10774    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10775    break 2
10776  fi
10777done
10778  done
10779IFS=$as_save_IFS
10780
10781fi
10782fi
10783NMEDIT=$ac_cv_prog_NMEDIT
10784if test -n "$NMEDIT"; then
10785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10786$as_echo "$NMEDIT" >&6; }
10787else
10788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10789$as_echo "no" >&6; }
10790fi
10791
10792
10793fi
10794if test -z "$ac_cv_prog_NMEDIT"; then
10795  ac_ct_NMEDIT=$NMEDIT
10796  # Extract the first word of "nmedit", so it can be a program name with args.
10797set dummy nmedit; ac_word=$2
10798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10799$as_echo_n "checking for $ac_word... " >&6; }
10800if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10801  $as_echo_n "(cached) " >&6
10802else
10803  if test -n "$ac_ct_NMEDIT"; then
10804  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10805else
10806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10807for as_dir in $PATH
10808do
10809  IFS=$as_save_IFS
10810  test -z "$as_dir" && as_dir=.
10811    for ac_exec_ext in '' $ac_executable_extensions; do
10812  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10813    ac_cv_prog_ac_ct_NMEDIT="nmedit"
10814    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10815    break 2
10816  fi
10817done
10818  done
10819IFS=$as_save_IFS
10820
10821fi
10822fi
10823ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10824if test -n "$ac_ct_NMEDIT"; then
10825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10826$as_echo "$ac_ct_NMEDIT" >&6; }
10827else
10828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10829$as_echo "no" >&6; }
10830fi
10831
10832  if test "x$ac_ct_NMEDIT" = x; then
10833    NMEDIT=":"
10834  else
10835    case $cross_compiling:$ac_tool_warned in
10836yes:)
10837{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10838$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10839ac_tool_warned=yes ;;
10840esac
10841    NMEDIT=$ac_ct_NMEDIT
10842  fi
10843else
10844  NMEDIT="$ac_cv_prog_NMEDIT"
10845fi
10846
10847    if test -n "$ac_tool_prefix"; then
10848  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10849set dummy ${ac_tool_prefix}lipo; ac_word=$2
10850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10851$as_echo_n "checking for $ac_word... " >&6; }
10852if ${ac_cv_prog_LIPO+:} false; then :
10853  $as_echo_n "(cached) " >&6
10854else
10855  if test -n "$LIPO"; then
10856  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10857else
10858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10859for as_dir in $PATH
10860do
10861  IFS=$as_save_IFS
10862  test -z "$as_dir" && as_dir=.
10863    for ac_exec_ext in '' $ac_executable_extensions; do
10864  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10865    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10866    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10867    break 2
10868  fi
10869done
10870  done
10871IFS=$as_save_IFS
10872
10873fi
10874fi
10875LIPO=$ac_cv_prog_LIPO
10876if test -n "$LIPO"; then
10877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10878$as_echo "$LIPO" >&6; }
10879else
10880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10881$as_echo "no" >&6; }
10882fi
10883
10884
10885fi
10886if test -z "$ac_cv_prog_LIPO"; then
10887  ac_ct_LIPO=$LIPO
10888  # Extract the first word of "lipo", so it can be a program name with args.
10889set dummy lipo; ac_word=$2
10890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10891$as_echo_n "checking for $ac_word... " >&6; }
10892if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10893  $as_echo_n "(cached) " >&6
10894else
10895  if test -n "$ac_ct_LIPO"; then
10896  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10897else
10898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10899for as_dir in $PATH
10900do
10901  IFS=$as_save_IFS
10902  test -z "$as_dir" && as_dir=.
10903    for ac_exec_ext in '' $ac_executable_extensions; do
10904  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10905    ac_cv_prog_ac_ct_LIPO="lipo"
10906    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10907    break 2
10908  fi
10909done
10910  done
10911IFS=$as_save_IFS
10912
10913fi
10914fi
10915ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10916if test -n "$ac_ct_LIPO"; then
10917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10918$as_echo "$ac_ct_LIPO" >&6; }
10919else
10920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10921$as_echo "no" >&6; }
10922fi
10923
10924  if test "x$ac_ct_LIPO" = x; then
10925    LIPO=":"
10926  else
10927    case $cross_compiling:$ac_tool_warned in
10928yes:)
10929{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10930$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10931ac_tool_warned=yes ;;
10932esac
10933    LIPO=$ac_ct_LIPO
10934  fi
10935else
10936  LIPO="$ac_cv_prog_LIPO"
10937fi
10938
10939    if test -n "$ac_tool_prefix"; then
10940  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10941set dummy ${ac_tool_prefix}otool; ac_word=$2
10942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10943$as_echo_n "checking for $ac_word... " >&6; }
10944if ${ac_cv_prog_OTOOL+:} false; then :
10945  $as_echo_n "(cached) " >&6
10946else
10947  if test -n "$OTOOL"; then
10948  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10949else
10950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10951for as_dir in $PATH
10952do
10953  IFS=$as_save_IFS
10954  test -z "$as_dir" && as_dir=.
10955    for ac_exec_ext in '' $ac_executable_extensions; do
10956  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10957    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10958    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10959    break 2
10960  fi
10961done
10962  done
10963IFS=$as_save_IFS
10964
10965fi
10966fi
10967OTOOL=$ac_cv_prog_OTOOL
10968if test -n "$OTOOL"; then
10969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10970$as_echo "$OTOOL" >&6; }
10971else
10972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10973$as_echo "no" >&6; }
10974fi
10975
10976
10977fi
10978if test -z "$ac_cv_prog_OTOOL"; then
10979  ac_ct_OTOOL=$OTOOL
10980  # Extract the first word of "otool", so it can be a program name with args.
10981set dummy otool; ac_word=$2
10982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10983$as_echo_n "checking for $ac_word... " >&6; }
10984if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10985  $as_echo_n "(cached) " >&6
10986else
10987  if test -n "$ac_ct_OTOOL"; then
10988  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10989else
10990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10991for as_dir in $PATH
10992do
10993  IFS=$as_save_IFS
10994  test -z "$as_dir" && as_dir=.
10995    for ac_exec_ext in '' $ac_executable_extensions; do
10996  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10997    ac_cv_prog_ac_ct_OTOOL="otool"
10998    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10999    break 2
11000  fi
11001done
11002  done
11003IFS=$as_save_IFS
11004
11005fi
11006fi
11007ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11008if test -n "$ac_ct_OTOOL"; then
11009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11010$as_echo "$ac_ct_OTOOL" >&6; }
11011else
11012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11013$as_echo "no" >&6; }
11014fi
11015
11016  if test "x$ac_ct_OTOOL" = x; then
11017    OTOOL=":"
11018  else
11019    case $cross_compiling:$ac_tool_warned in
11020yes:)
11021{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11022$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11023ac_tool_warned=yes ;;
11024esac
11025    OTOOL=$ac_ct_OTOOL
11026  fi
11027else
11028  OTOOL="$ac_cv_prog_OTOOL"
11029fi
11030
11031    if test -n "$ac_tool_prefix"; then
11032  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11033set dummy ${ac_tool_prefix}otool64; ac_word=$2
11034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11035$as_echo_n "checking for $ac_word... " >&6; }
11036if ${ac_cv_prog_OTOOL64+:} false; then :
11037  $as_echo_n "(cached) " >&6
11038else
11039  if test -n "$OTOOL64"; then
11040  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11041else
11042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11043for as_dir in $PATH
11044do
11045  IFS=$as_save_IFS
11046  test -z "$as_dir" && as_dir=.
11047    for ac_exec_ext in '' $ac_executable_extensions; do
11048  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11049    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11050    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11051    break 2
11052  fi
11053done
11054  done
11055IFS=$as_save_IFS
11056
11057fi
11058fi
11059OTOOL64=$ac_cv_prog_OTOOL64
11060if test -n "$OTOOL64"; then
11061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11062$as_echo "$OTOOL64" >&6; }
11063else
11064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11065$as_echo "no" >&6; }
11066fi
11067
11068
11069fi
11070if test -z "$ac_cv_prog_OTOOL64"; then
11071  ac_ct_OTOOL64=$OTOOL64
11072  # Extract the first word of "otool64", so it can be a program name with args.
11073set dummy otool64; ac_word=$2
11074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11075$as_echo_n "checking for $ac_word... " >&6; }
11076if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
11077  $as_echo_n "(cached) " >&6
11078else
11079  if test -n "$ac_ct_OTOOL64"; then
11080  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11081else
11082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11083for as_dir in $PATH
11084do
11085  IFS=$as_save_IFS
11086  test -z "$as_dir" && as_dir=.
11087    for ac_exec_ext in '' $ac_executable_extensions; do
11088  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11089    ac_cv_prog_ac_ct_OTOOL64="otool64"
11090    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11091    break 2
11092  fi
11093done
11094  done
11095IFS=$as_save_IFS
11096
11097fi
11098fi
11099ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11100if test -n "$ac_ct_OTOOL64"; then
11101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11102$as_echo "$ac_ct_OTOOL64" >&6; }
11103else
11104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11105$as_echo "no" >&6; }
11106fi
11107
11108  if test "x$ac_ct_OTOOL64" = x; then
11109    OTOOL64=":"
11110  else
11111    case $cross_compiling:$ac_tool_warned in
11112yes:)
11113{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11114$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11115ac_tool_warned=yes ;;
11116esac
11117    OTOOL64=$ac_ct_OTOOL64
11118  fi
11119else
11120  OTOOL64="$ac_cv_prog_OTOOL64"
11121fi
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11150$as_echo_n "checking for -single_module linker flag... " >&6; }
11151if ${lt_cv_apple_cc_single_mod+:} false; then :
11152  $as_echo_n "(cached) " >&6
11153else
11154  lt_cv_apple_cc_single_mod=no
11155      if test -z "${LT_MULTI_MODULE}"; then
11156	# By default we will add the -single_module flag. You can override
11157	# by either setting the environment variable LT_MULTI_MODULE
11158	# non-empty at configure time, or by adding -multi_module to the
11159	# link flags.
11160	rm -rf libconftest.dylib*
11161	echo "int foo(void){return 1;}" > conftest.c
11162	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11163-dynamiclib -Wl,-single_module conftest.c" >&5
11164	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11165	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11166        _lt_result=$?
11167	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11168	  lt_cv_apple_cc_single_mod=yes
11169	else
11170	  cat conftest.err >&5
11171	fi
11172	rm -rf libconftest.dylib*
11173	rm -f conftest.*
11174      fi
11175fi
11176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11177$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11178    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11179$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11180if ${lt_cv_ld_exported_symbols_list+:} false; then :
11181  $as_echo_n "(cached) " >&6
11182else
11183  lt_cv_ld_exported_symbols_list=no
11184      save_LDFLAGS=$LDFLAGS
11185      echo "_main" > conftest.sym
11186      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11187      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11188/* end confdefs.h.  */
11189
11190int
11191main ()
11192{
11193
11194  ;
11195  return 0;
11196}
11197_ACEOF
11198if ac_fn_c_try_link "$LINENO"; then :
11199  lt_cv_ld_exported_symbols_list=yes
11200else
11201  lt_cv_ld_exported_symbols_list=no
11202fi
11203rm -f core conftest.err conftest.$ac_objext \
11204    conftest$ac_exeext conftest.$ac_ext
11205	LDFLAGS="$save_LDFLAGS"
11206
11207fi
11208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11209$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11210    case $host_os in
11211    rhapsody* | darwin1.[012])
11212      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11213    darwin1.*)
11214      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11215    darwin*) # darwin 5.x on
11216      # if running on 10.5 or later, the deployment target defaults
11217      # to the OS version, if on x86, and 10.4, the deployment
11218      # target defaults to 10.4. Don't you love it?
11219      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11220	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11221	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11222	10.[012]*)
11223	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11224	10.*)
11225	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11226      esac
11227    ;;
11228  esac
11229    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11230      _lt_dar_single_mod='$single_module'
11231    fi
11232    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11233      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11234    else
11235      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11236    fi
11237    if test "$DSYMUTIL" != ":"; then
11238      _lt_dsymutil='~$DSYMUTIL $lib || :'
11239    else
11240      _lt_dsymutil=
11241    fi
11242    ;;
11243  esac
11244
11245for ac_header in dlfcn.h
11246do :
11247  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11248"
11249if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11250  cat >>confdefs.h <<_ACEOF
11251#define HAVE_DLFCN_H 1
11252_ACEOF
11253
11254fi
11255
11256done
11257
11258
11259
11260# Set options
11261
11262
11263
11264
11265
11266            # Check whether --enable-shared was given.
11267if test "${enable_shared+set}" = set; then :
11268  enableval=$enable_shared; p=${PACKAGE-default}
11269    case $enableval in
11270    yes) enable_shared=yes ;;
11271    no) enable_shared=no ;;
11272    *)
11273      enable_shared=no
11274      # Look at the argument we got.  We use all the common list separators.
11275      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11276      for pkg in $enableval; do
11277	IFS="$lt_save_ifs"
11278	if test "X$pkg" = "X$p"; then
11279	  enable_shared=yes
11280	fi
11281      done
11282      IFS="$lt_save_ifs"
11283      ;;
11284    esac
11285else
11286  enable_shared=yes
11287fi
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297  # Check whether --enable-static was given.
11298if test "${enable_static+set}" = set; then :
11299  enableval=$enable_static; p=${PACKAGE-default}
11300    case $enableval in
11301    yes) enable_static=yes ;;
11302    no) enable_static=no ;;
11303    *)
11304     enable_static=no
11305      # Look at the argument we got.  We use all the common list separators.
11306      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11307      for pkg in $enableval; do
11308	IFS="$lt_save_ifs"
11309	if test "X$pkg" = "X$p"; then
11310	  enable_static=yes
11311	fi
11312      done
11313      IFS="$lt_save_ifs"
11314      ;;
11315    esac
11316else
11317  enable_static=yes
11318fi
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329# Check whether --with-pic was given.
11330if test "${with_pic+set}" = set; then :
11331  withval=$with_pic; pic_mode="$withval"
11332else
11333  pic_mode=default
11334fi
11335
11336
11337test -z "$pic_mode" && pic_mode=default
11338
11339
11340
11341
11342
11343
11344
11345  # Check whether --enable-fast-install was given.
11346if test "${enable_fast_install+set}" = set; then :
11347  enableval=$enable_fast_install; p=${PACKAGE-default}
11348    case $enableval in
11349    yes) enable_fast_install=yes ;;
11350    no) enable_fast_install=no ;;
11351    *)
11352      enable_fast_install=no
11353      # Look at the argument we got.  We use all the common list separators.
11354      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11355      for pkg in $enableval; do
11356	IFS="$lt_save_ifs"
11357	if test "X$pkg" = "X$p"; then
11358	  enable_fast_install=yes
11359	fi
11360      done
11361      IFS="$lt_save_ifs"
11362      ;;
11363    esac
11364else
11365  enable_fast_install=yes
11366fi
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378# This can be used to rebuild libtool when needed
11379LIBTOOL_DEPS="$ltmain"
11380
11381# Always use our own libtool.
11382LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408test -z "$LN_S" && LN_S="ln -s"
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423if test -n "${ZSH_VERSION+set}" ; then
11424   setopt NO_GLOB_SUBST
11425fi
11426
11427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11428$as_echo_n "checking for objdir... " >&6; }
11429if ${lt_cv_objdir+:} false; then :
11430  $as_echo_n "(cached) " >&6
11431else
11432  rm -f .libs 2>/dev/null
11433mkdir .libs 2>/dev/null
11434if test -d .libs; then
11435  lt_cv_objdir=.libs
11436else
11437  # MS-DOS does not allow filenames that begin with a dot.
11438  lt_cv_objdir=_libs
11439fi
11440rmdir .libs 2>/dev/null
11441fi
11442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11443$as_echo "$lt_cv_objdir" >&6; }
11444objdir=$lt_cv_objdir
11445
11446
11447
11448
11449
11450cat >>confdefs.h <<_ACEOF
11451#define LT_OBJDIR "$lt_cv_objdir/"
11452_ACEOF
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470case $host_os in
11471aix3*)
11472  # AIX sometimes has problems with the GCC collect2 program.  For some
11473  # reason, if we set the COLLECT_NAMES environment variable, the problems
11474  # vanish in a puff of smoke.
11475  if test "X${COLLECT_NAMES+set}" != Xset; then
11476    COLLECT_NAMES=
11477    export COLLECT_NAMES
11478  fi
11479  ;;
11480esac
11481
11482# Sed substitution that helps us do robust quoting.  It backslashifies
11483# metacharacters that are still active within double-quoted strings.
11484sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11485
11486# Same as above, but do not quote variable references.
11487double_quote_subst='s/\(["`\\]\)/\\\1/g'
11488
11489# Sed substitution to delay expansion of an escaped shell variable in a
11490# double_quote_subst'ed string.
11491delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11492
11493# Sed substitution to delay expansion of an escaped single quote.
11494delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11495
11496# Sed substitution to avoid accidental globbing in evaled expressions
11497no_glob_subst='s/\*/\\\*/g'
11498
11499# Global variables:
11500ofile=libtool
11501can_build_shared=yes
11502
11503# All known linkers require a `.a' archive for static linking (except MSVC,
11504# which needs '.lib').
11505libext=a
11506
11507with_gnu_ld="$lt_cv_prog_gnu_ld"
11508
11509old_CC="$CC"
11510old_CFLAGS="$CFLAGS"
11511
11512# Set sane defaults for various variables
11513test -z "$CC" && CC=cc
11514test -z "$LTCC" && LTCC=$CC
11515test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11516test -z "$LD" && LD=ld
11517test -z "$ac_objext" && ac_objext=o
11518
11519for cc_temp in $compiler""; do
11520  case $cc_temp in
11521    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11522    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11523    \-*) ;;
11524    *) break;;
11525  esac
11526done
11527cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11528
11529
11530# Only perform the check for file, if the check method requires it
11531test -z "$MAGIC_CMD" && MAGIC_CMD=file
11532case $deplibs_check_method in
11533file_magic*)
11534  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11535    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11536$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11537if ${lt_cv_path_MAGIC_CMD+:} false; then :
11538  $as_echo_n "(cached) " >&6
11539else
11540  case $MAGIC_CMD in
11541[\\/*] |  ?:[\\/]*)
11542  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11543  ;;
11544*)
11545  lt_save_MAGIC_CMD="$MAGIC_CMD"
11546  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11547  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11548  for ac_dir in $ac_dummy; do
11549    IFS="$lt_save_ifs"
11550    test -z "$ac_dir" && ac_dir=.
11551    if test -f $ac_dir/${ac_tool_prefix}file; then
11552      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11553      if test -n "$file_magic_test_file"; then
11554	case $deplibs_check_method in
11555	"file_magic "*)
11556	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11557	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11558	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11559	    $EGREP "$file_magic_regex" > /dev/null; then
11560	    :
11561	  else
11562	    cat <<_LT_EOF 1>&2
11563
11564*** Warning: the command libtool uses to detect shared libraries,
11565*** $file_magic_cmd, produces output that libtool cannot recognize.
11566*** The result is that libtool may fail to recognize shared libraries
11567*** as such.  This will affect the creation of libtool libraries that
11568*** depend on shared libraries, but programs linked with such libtool
11569*** libraries will work regardless of this problem.  Nevertheless, you
11570*** may want to report the problem to your system manager and/or to
11571*** bug-libtool@gnu.org
11572
11573_LT_EOF
11574	  fi ;;
11575	esac
11576      fi
11577      break
11578    fi
11579  done
11580  IFS="$lt_save_ifs"
11581  MAGIC_CMD="$lt_save_MAGIC_CMD"
11582  ;;
11583esac
11584fi
11585
11586MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11587if test -n "$MAGIC_CMD"; then
11588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11589$as_echo "$MAGIC_CMD" >&6; }
11590else
11591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11592$as_echo "no" >&6; }
11593fi
11594
11595
11596
11597
11598
11599if test -z "$lt_cv_path_MAGIC_CMD"; then
11600  if test -n "$ac_tool_prefix"; then
11601    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11602$as_echo_n "checking for file... " >&6; }
11603if ${lt_cv_path_MAGIC_CMD+:} false; then :
11604  $as_echo_n "(cached) " >&6
11605else
11606  case $MAGIC_CMD in
11607[\\/*] |  ?:[\\/]*)
11608  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11609  ;;
11610*)
11611  lt_save_MAGIC_CMD="$MAGIC_CMD"
11612  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11613  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11614  for ac_dir in $ac_dummy; do
11615    IFS="$lt_save_ifs"
11616    test -z "$ac_dir" && ac_dir=.
11617    if test -f $ac_dir/file; then
11618      lt_cv_path_MAGIC_CMD="$ac_dir/file"
11619      if test -n "$file_magic_test_file"; then
11620	case $deplibs_check_method in
11621	"file_magic "*)
11622	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11623	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11624	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11625	    $EGREP "$file_magic_regex" > /dev/null; then
11626	    :
11627	  else
11628	    cat <<_LT_EOF 1>&2
11629
11630*** Warning: the command libtool uses to detect shared libraries,
11631*** $file_magic_cmd, produces output that libtool cannot recognize.
11632*** The result is that libtool may fail to recognize shared libraries
11633*** as such.  This will affect the creation of libtool libraries that
11634*** depend on shared libraries, but programs linked with such libtool
11635*** libraries will work regardless of this problem.  Nevertheless, you
11636*** may want to report the problem to your system manager and/or to
11637*** bug-libtool@gnu.org
11638
11639_LT_EOF
11640	  fi ;;
11641	esac
11642      fi
11643      break
11644    fi
11645  done
11646  IFS="$lt_save_ifs"
11647  MAGIC_CMD="$lt_save_MAGIC_CMD"
11648  ;;
11649esac
11650fi
11651
11652MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11653if test -n "$MAGIC_CMD"; then
11654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11655$as_echo "$MAGIC_CMD" >&6; }
11656else
11657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11658$as_echo "no" >&6; }
11659fi
11660
11661
11662  else
11663    MAGIC_CMD=:
11664  fi
11665fi
11666
11667  fi
11668  ;;
11669esac
11670
11671# Use C for the default configuration in the libtool script
11672
11673lt_save_CC="$CC"
11674ac_ext=c
11675ac_cpp='$CPP $CPPFLAGS'
11676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11678ac_compiler_gnu=$ac_cv_c_compiler_gnu
11679
11680
11681# Source file extension for C test sources.
11682ac_ext=c
11683
11684# Object file extension for compiled C test sources.
11685objext=o
11686objext=$objext
11687
11688# Code to be used in simple compile tests
11689lt_simple_compile_test_code="int some_variable = 0;"
11690
11691# Code to be used in simple link tests
11692lt_simple_link_test_code='int main(){return(0);}'
11693
11694
11695
11696
11697
11698
11699
11700# If no C compiler was specified, use CC.
11701LTCC=${LTCC-"$CC"}
11702
11703# If no C compiler flags were specified, use CFLAGS.
11704LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11705
11706# Allow CC to be a program name with arguments.
11707compiler=$CC
11708
11709# Save the default compiler, since it gets overwritten when the other
11710# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11711compiler_DEFAULT=$CC
11712
11713# save warnings/boilerplate of simple test code
11714ac_outfile=conftest.$ac_objext
11715echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11716eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11717_lt_compiler_boilerplate=`cat conftest.err`
11718$RM conftest*
11719
11720ac_outfile=conftest.$ac_objext
11721echo "$lt_simple_link_test_code" >conftest.$ac_ext
11722eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11723_lt_linker_boilerplate=`cat conftest.err`
11724$RM -r conftest*
11725
11726
11727## CAVEAT EMPTOR:
11728## There is no encapsulation within the following macros, do not change
11729## the running order or otherwise move them around unless you know exactly
11730## what you are doing...
11731if test -n "$compiler"; then
11732
11733lt_prog_compiler_no_builtin_flag=
11734
11735if test "$GCC" = yes; then
11736  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11737
11738  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11739$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11740if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11741  $as_echo_n "(cached) " >&6
11742else
11743  lt_cv_prog_compiler_rtti_exceptions=no
11744   ac_outfile=conftest.$ac_objext
11745   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11746   lt_compiler_flag="-fno-rtti -fno-exceptions"
11747   # Insert the option either (1) after the last *FLAGS variable, or
11748   # (2) before a word containing "conftest.", or (3) at the end.
11749   # Note that $ac_compile itself does not contain backslashes and begins
11750   # with a dollar sign (not a hyphen), so the echo should work correctly.
11751   # The option is referenced via a variable to avoid confusing sed.
11752   lt_compile=`echo "$ac_compile" | $SED \
11753   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11754   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11755   -e 's:$: $lt_compiler_flag:'`
11756   (eval echo "\"\$as_me:11756: $lt_compile\"" >&5)
11757   (eval "$lt_compile" 2>conftest.err)
11758   ac_status=$?
11759   cat conftest.err >&5
11760   echo "$as_me:11760: \$? = $ac_status" >&5
11761   if (exit $ac_status) && test -s "$ac_outfile"; then
11762     # The compiler can only warn and ignore the option if not recognized
11763     # So say no if there are warnings other than the usual output.
11764     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11765     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11766     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11767       lt_cv_prog_compiler_rtti_exceptions=yes
11768     fi
11769   fi
11770   $RM conftest*
11771
11772fi
11773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11774$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11775
11776if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11777    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11778else
11779    :
11780fi
11781
11782fi
11783
11784
11785
11786
11787
11788
11789  lt_prog_compiler_wl=
11790lt_prog_compiler_pic=
11791lt_prog_compiler_static=
11792
11793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11794$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11795
11796  if test "$GCC" = yes; then
11797    lt_prog_compiler_wl='-Wl,'
11798    lt_prog_compiler_static='-static'
11799
11800    case $host_os in
11801      aix*)
11802      # All AIX code is PIC.
11803      if test "$host_cpu" = ia64; then
11804	# AIX 5 now supports IA64 processor
11805	lt_prog_compiler_static='-Bstatic'
11806      fi
11807      ;;
11808
11809    amigaos*)
11810      case $host_cpu in
11811      powerpc)
11812            # see comment about AmigaOS4 .so support
11813            lt_prog_compiler_pic='-fPIC'
11814        ;;
11815      m68k)
11816            # FIXME: we need at least 68020 code to build shared libraries, but
11817            # adding the `-m68020' flag to GCC prevents building anything better,
11818            # like `-m68040'.
11819            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11820        ;;
11821      esac
11822      ;;
11823
11824    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11825      # PIC is the default for these OSes.
11826      ;;
11827
11828    mingw* | cygwin* | pw32* | os2* | cegcc*)
11829      # This hack is so that the source file can tell whether it is being
11830      # built for inclusion in a dll (and should export symbols for example).
11831      # Although the cygwin gcc ignores -fPIC, still need this for old-style
11832      # (--disable-auto-import) libraries
11833      lt_prog_compiler_pic='-DDLL_EXPORT'
11834      ;;
11835
11836    darwin* | rhapsody*)
11837      # PIC is the default on this platform
11838      # Common symbols not allowed in MH_DYLIB files
11839      lt_prog_compiler_pic='-fno-common'
11840      ;;
11841
11842    hpux*)
11843      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11844      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11845      # sets the default TLS model and affects inlining.
11846      case $host_cpu in
11847      hppa*64*)
11848	# +Z the default
11849	;;
11850      *)
11851	lt_prog_compiler_pic='-fPIC'
11852	;;
11853      esac
11854      ;;
11855
11856    interix[3-9]*)
11857      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11858      # Instead, we relocate shared libraries at runtime.
11859      ;;
11860
11861    msdosdjgpp*)
11862      # Just because we use GCC doesn't mean we suddenly get shared libraries
11863      # on systems that don't support them.
11864      lt_prog_compiler_can_build_shared=no
11865      enable_shared=no
11866      ;;
11867
11868    *nto* | *qnx*)
11869      # QNX uses GNU C++, but need to define -shared option too, otherwise
11870      # it will coredump.
11871      lt_prog_compiler_pic='-fPIC -shared'
11872      ;;
11873
11874    sysv4*MP*)
11875      if test -d /usr/nec; then
11876	lt_prog_compiler_pic=-Kconform_pic
11877      fi
11878      ;;
11879
11880    *)
11881      lt_prog_compiler_pic='-fPIC'
11882      ;;
11883    esac
11884  else
11885    # PORTME Check for flag to pass linker flags through the system compiler.
11886    case $host_os in
11887    aix*)
11888      lt_prog_compiler_wl='-Wl,'
11889      if test "$host_cpu" = ia64; then
11890	# AIX 5 now supports IA64 processor
11891	lt_prog_compiler_static='-Bstatic'
11892      else
11893	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11894      fi
11895      ;;
11896
11897    mingw* | cygwin* | pw32* | os2* | cegcc*)
11898      # This hack is so that the source file can tell whether it is being
11899      # built for inclusion in a dll (and should export symbols for example).
11900      lt_prog_compiler_pic='-DDLL_EXPORT'
11901      ;;
11902
11903    hpux9* | hpux10* | hpux11*)
11904      lt_prog_compiler_wl='-Wl,'
11905      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11906      # not for PA HP-UX.
11907      case $host_cpu in
11908      hppa*64*|ia64*)
11909	# +Z the default
11910	;;
11911      *)
11912	lt_prog_compiler_pic='+Z'
11913	;;
11914      esac
11915      # Is there a better lt_prog_compiler_static that works with the bundled CC?
11916      lt_prog_compiler_static='${wl}-a ${wl}archive'
11917      ;;
11918
11919    irix5* | irix6* | nonstopux*)
11920      lt_prog_compiler_wl='-Wl,'
11921      # PIC (with -KPIC) is the default.
11922      lt_prog_compiler_static='-non_shared'
11923      ;;
11924
11925    linux* | k*bsd*-gnu)
11926      case $cc_basename in
11927      # old Intel for x86_64 which still supported -KPIC.
11928      ecc*)
11929	lt_prog_compiler_wl='-Wl,'
11930	lt_prog_compiler_pic='-KPIC'
11931	lt_prog_compiler_static='-static'
11932        ;;
11933      # icc used to be incompatible with GCC.
11934      # ICC 10 doesn't accept -KPIC any more.
11935      icc* | ifort*)
11936	lt_prog_compiler_wl='-Wl,'
11937	lt_prog_compiler_pic='-fPIC'
11938	lt_prog_compiler_static='-static'
11939        ;;
11940      # Lahey Fortran 8.1.
11941      lf95*)
11942	lt_prog_compiler_wl='-Wl,'
11943	lt_prog_compiler_pic='--shared'
11944	lt_prog_compiler_static='--static'
11945	;;
11946      pgcc* | pgf77* | pgf90* | pgf95*)
11947        # Portland Group compilers (*not* the Pentium gcc compiler,
11948	# which looks to be a dead project)
11949	lt_prog_compiler_wl='-Wl,'
11950	lt_prog_compiler_pic='-fpic'
11951	lt_prog_compiler_static='-Bstatic'
11952        ;;
11953      ccc*)
11954        lt_prog_compiler_wl='-Wl,'
11955        # All Alpha code is PIC.
11956        lt_prog_compiler_static='-non_shared'
11957        ;;
11958      xl*)
11959	# IBM XL C 8.0/Fortran 10.1 on PPC
11960	lt_prog_compiler_wl='-Wl,'
11961	lt_prog_compiler_pic='-qpic'
11962	lt_prog_compiler_static='-qstaticlink'
11963	;;
11964      *)
11965	case `$CC -V 2>&1 | sed 5q` in
11966	*Sun\ C*)
11967	  # Sun C 5.9
11968	  lt_prog_compiler_pic='-KPIC'
11969	  lt_prog_compiler_static='-Bstatic'
11970	  lt_prog_compiler_wl='-Wl,'
11971	  ;;
11972	*Sun\ F*)
11973	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
11974	  lt_prog_compiler_pic='-KPIC'
11975	  lt_prog_compiler_static='-Bstatic'
11976	  lt_prog_compiler_wl=''
11977	  ;;
11978	esac
11979	;;
11980      esac
11981      ;;
11982
11983    newsos6)
11984      lt_prog_compiler_pic='-KPIC'
11985      lt_prog_compiler_static='-Bstatic'
11986      ;;
11987
11988    *nto* | *qnx*)
11989      # QNX uses GNU C++, but need to define -shared option too, otherwise
11990      # it will coredump.
11991      lt_prog_compiler_pic='-fPIC -shared'
11992      ;;
11993
11994    osf3* | osf4* | osf5*)
11995      lt_prog_compiler_wl='-Wl,'
11996      # All OSF/1 code is PIC.
11997      lt_prog_compiler_static='-non_shared'
11998      ;;
11999
12000    rdos*)
12001      lt_prog_compiler_static='-non_shared'
12002      ;;
12003
12004    solaris*)
12005      lt_prog_compiler_pic='-KPIC'
12006      lt_prog_compiler_static='-Bstatic'
12007      case $cc_basename in
12008      f77* | f90* | f95*)
12009	lt_prog_compiler_wl='-Qoption ld ';;
12010      *)
12011	lt_prog_compiler_wl='-Wl,';;
12012      esac
12013      ;;
12014
12015    sunos4*)
12016      lt_prog_compiler_wl='-Qoption ld '
12017      lt_prog_compiler_pic='-PIC'
12018      lt_prog_compiler_static='-Bstatic'
12019      ;;
12020
12021    sysv4 | sysv4.2uw2* | sysv4.3*)
12022      lt_prog_compiler_wl='-Wl,'
12023      lt_prog_compiler_pic='-KPIC'
12024      lt_prog_compiler_static='-Bstatic'
12025      ;;
12026
12027    sysv4*MP*)
12028      if test -d /usr/nec ;then
12029	lt_prog_compiler_pic='-Kconform_pic'
12030	lt_prog_compiler_static='-Bstatic'
12031      fi
12032      ;;
12033
12034    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12035      lt_prog_compiler_wl='-Wl,'
12036      lt_prog_compiler_pic='-KPIC'
12037      lt_prog_compiler_static='-Bstatic'
12038      ;;
12039
12040    unicos*)
12041      lt_prog_compiler_wl='-Wl,'
12042      lt_prog_compiler_can_build_shared=no
12043      ;;
12044
12045    uts4*)
12046      lt_prog_compiler_pic='-pic'
12047      lt_prog_compiler_static='-Bstatic'
12048      ;;
12049
12050    *)
12051      lt_prog_compiler_can_build_shared=no
12052      ;;
12053    esac
12054  fi
12055
12056case $host_os in
12057  # For platforms which do not support PIC, -DPIC is meaningless:
12058  *djgpp*)
12059    lt_prog_compiler_pic=
12060    ;;
12061  *)
12062    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12063    ;;
12064esac
12065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
12066$as_echo "$lt_prog_compiler_pic" >&6; }
12067
12068
12069
12070
12071
12072
12073#
12074# Check to make sure the PIC flag actually works.
12075#
12076if test -n "$lt_prog_compiler_pic"; then
12077  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12078$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12079if ${lt_cv_prog_compiler_pic_works+:} false; then :
12080  $as_echo_n "(cached) " >&6
12081else
12082  lt_cv_prog_compiler_pic_works=no
12083   ac_outfile=conftest.$ac_objext
12084   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12085   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12086   # Insert the option either (1) after the last *FLAGS variable, or
12087   # (2) before a word containing "conftest.", or (3) at the end.
12088   # Note that $ac_compile itself does not contain backslashes and begins
12089   # with a dollar sign (not a hyphen), so the echo should work correctly.
12090   # The option is referenced via a variable to avoid confusing sed.
12091   lt_compile=`echo "$ac_compile" | $SED \
12092   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12093   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12094   -e 's:$: $lt_compiler_flag:'`
12095   (eval echo "\"\$as_me:12095: $lt_compile\"" >&5)
12096   (eval "$lt_compile" 2>conftest.err)
12097   ac_status=$?
12098   cat conftest.err >&5
12099   echo "$as_me:12099: \$? = $ac_status" >&5
12100   if (exit $ac_status) && test -s "$ac_outfile"; then
12101     # The compiler can only warn and ignore the option if not recognized
12102     # So say no if there are warnings other than the usual output.
12103     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12104     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12105     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12106       lt_cv_prog_compiler_pic_works=yes
12107     fi
12108   fi
12109   $RM conftest*
12110
12111fi
12112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12113$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12114
12115if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12116    case $lt_prog_compiler_pic in
12117     "" | " "*) ;;
12118     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12119     esac
12120else
12121    lt_prog_compiler_pic=
12122     lt_prog_compiler_can_build_shared=no
12123fi
12124
12125fi
12126
12127
12128
12129
12130
12131
12132#
12133# Check to make sure the static flag actually works.
12134#
12135wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12137$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12138if ${lt_cv_prog_compiler_static_works+:} false; then :
12139  $as_echo_n "(cached) " >&6
12140else
12141  lt_cv_prog_compiler_static_works=no
12142   save_LDFLAGS="$LDFLAGS"
12143   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12144   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12145   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12146     # The linker can only warn and ignore the option if not recognized
12147     # So say no if there are warnings
12148     if test -s conftest.err; then
12149       # Append any errors to the config.log.
12150       cat conftest.err 1>&5
12151       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12152       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12153       if diff conftest.exp conftest.er2 >/dev/null; then
12154         lt_cv_prog_compiler_static_works=yes
12155       fi
12156     else
12157       lt_cv_prog_compiler_static_works=yes
12158     fi
12159   fi
12160   $RM -r conftest*
12161   LDFLAGS="$save_LDFLAGS"
12162
12163fi
12164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12165$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12166
12167if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12168    :
12169else
12170    lt_prog_compiler_static=
12171fi
12172
12173
12174
12175
12176
12177
12178
12179  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12180$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12181if ${lt_cv_prog_compiler_c_o+:} false; then :
12182  $as_echo_n "(cached) " >&6
12183else
12184  lt_cv_prog_compiler_c_o=no
12185   $RM -r conftest 2>/dev/null
12186   mkdir conftest
12187   cd conftest
12188   mkdir out
12189   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12190
12191   lt_compiler_flag="-o out/conftest2.$ac_objext"
12192   # Insert the option either (1) after the last *FLAGS variable, or
12193   # (2) before a word containing "conftest.", or (3) at the end.
12194   # Note that $ac_compile itself does not contain backslashes and begins
12195   # with a dollar sign (not a hyphen), so the echo should work correctly.
12196   lt_compile=`echo "$ac_compile" | $SED \
12197   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12198   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12199   -e 's:$: $lt_compiler_flag:'`
12200   (eval echo "\"\$as_me:12200: $lt_compile\"" >&5)
12201   (eval "$lt_compile" 2>out/conftest.err)
12202   ac_status=$?
12203   cat out/conftest.err >&5
12204   echo "$as_me:12204: \$? = $ac_status" >&5
12205   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12206   then
12207     # The compiler can only warn and ignore the option if not recognized
12208     # So say no if there are warnings
12209     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12210     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12211     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12212       lt_cv_prog_compiler_c_o=yes
12213     fi
12214   fi
12215   chmod u+w . 2>&5
12216   $RM conftest*
12217   # SGI C++ compiler will create directory out/ii_files/ for
12218   # template instantiation
12219   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12220   $RM out/* && rmdir out
12221   cd ..
12222   $RM -r conftest
12223   $RM conftest*
12224
12225fi
12226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12227$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12228
12229
12230
12231
12232
12233
12234  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12235$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12236if ${lt_cv_prog_compiler_c_o+:} false; then :
12237  $as_echo_n "(cached) " >&6
12238else
12239  lt_cv_prog_compiler_c_o=no
12240   $RM -r conftest 2>/dev/null
12241   mkdir conftest
12242   cd conftest
12243   mkdir out
12244   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12245
12246   lt_compiler_flag="-o out/conftest2.$ac_objext"
12247   # Insert the option either (1) after the last *FLAGS variable, or
12248   # (2) before a word containing "conftest.", or (3) at the end.
12249   # Note that $ac_compile itself does not contain backslashes and begins
12250   # with a dollar sign (not a hyphen), so the echo should work correctly.
12251   lt_compile=`echo "$ac_compile" | $SED \
12252   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12253   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12254   -e 's:$: $lt_compiler_flag:'`
12255   (eval echo "\"\$as_me:12255: $lt_compile\"" >&5)
12256   (eval "$lt_compile" 2>out/conftest.err)
12257   ac_status=$?
12258   cat out/conftest.err >&5
12259   echo "$as_me:12259: \$? = $ac_status" >&5
12260   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12261   then
12262     # The compiler can only warn and ignore the option if not recognized
12263     # So say no if there are warnings
12264     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12265     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12266     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12267       lt_cv_prog_compiler_c_o=yes
12268     fi
12269   fi
12270   chmod u+w . 2>&5
12271   $RM conftest*
12272   # SGI C++ compiler will create directory out/ii_files/ for
12273   # template instantiation
12274   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12275   $RM out/* && rmdir out
12276   cd ..
12277   $RM -r conftest
12278   $RM conftest*
12279
12280fi
12281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12282$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12283
12284
12285
12286
12287hard_links="nottested"
12288if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12289  # do not overwrite the value of need_locks provided by the user
12290  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12291$as_echo_n "checking if we can lock with hard links... " >&6; }
12292  hard_links=yes
12293  $RM conftest*
12294  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12295  touch conftest.a
12296  ln conftest.a conftest.b 2>&5 || hard_links=no
12297  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12299$as_echo "$hard_links" >&6; }
12300  if test "$hard_links" = no; then
12301    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12302$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12303    need_locks=warn
12304  fi
12305else
12306  need_locks=no
12307fi
12308
12309
12310
12311
12312
12313
12314  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12315$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12316
12317  runpath_var=
12318  allow_undefined_flag=
12319  always_export_symbols=no
12320  archive_cmds=
12321  archive_expsym_cmds=
12322  compiler_needs_object=no
12323  enable_shared_with_static_runtimes=no
12324  export_dynamic_flag_spec=
12325  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12326  hardcode_automatic=no
12327  hardcode_direct=no
12328  hardcode_direct_absolute=no
12329  hardcode_libdir_flag_spec=
12330  hardcode_libdir_flag_spec_ld=
12331  hardcode_libdir_separator=
12332  hardcode_minus_L=no
12333  hardcode_shlibpath_var=unsupported
12334  inherit_rpath=no
12335  link_all_deplibs=unknown
12336  module_cmds=
12337  module_expsym_cmds=
12338  old_archive_from_new_cmds=
12339  old_archive_from_expsyms_cmds=
12340  thread_safe_flag_spec=
12341  whole_archive_flag_spec=
12342  # include_expsyms should be a list of space-separated symbols to be *always*
12343  # included in the symbol list
12344  include_expsyms=
12345  # exclude_expsyms can be an extended regexp of symbols to exclude
12346  # it will be wrapped by ` (' and `)$', so one must not match beginning or
12347  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12348  # as well as any symbol that contains `d'.
12349  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12350  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12351  # platforms (ab)use it in PIC code, but their linkers get confused if
12352  # the symbol is explicitly referenced.  Since portable code cannot
12353  # rely on this symbol name, it's probably fine to never include it in
12354  # preloaded symbol tables.
12355  # Exclude shared library initialization/finalization symbols.
12356  extract_expsyms_cmds=
12357
12358  case $host_os in
12359  cygwin* | mingw* | pw32* | cegcc*)
12360    # FIXME: the MSVC++ port hasn't been tested in a loooong time
12361    # When not using gcc, we currently assume that we are using
12362    # Microsoft Visual C++.
12363    if test "$GCC" != yes; then
12364      with_gnu_ld=no
12365    fi
12366    ;;
12367  interix*)
12368    # we just hope/assume this is gcc and not c89 (= MSVC++)
12369    with_gnu_ld=yes
12370    ;;
12371  openbsd*)
12372    with_gnu_ld=no
12373    ;;
12374  esac
12375
12376  ld_shlibs=yes
12377  if test "$with_gnu_ld" = yes; then
12378    # If archive_cmds runs LD, not CC, wlarc should be empty
12379    wlarc='${wl}'
12380
12381    # Set some defaults for GNU ld with shared library support. These
12382    # are reset later if shared libraries are not supported. Putting them
12383    # here allows them to be overridden if necessary.
12384    runpath_var=LD_RUN_PATH
12385    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12386    export_dynamic_flag_spec='${wl}--export-dynamic'
12387    # ancient GNU ld didn't support --whole-archive et. al.
12388    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12389      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12390    else
12391      whole_archive_flag_spec=
12392    fi
12393    supports_anon_versioning=no
12394    case `$LD -v 2>&1` in
12395      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12396      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12397      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12398      *\ 2.11.*) ;; # other 2.11 versions
12399      *) supports_anon_versioning=yes ;;
12400    esac
12401
12402    # See if GNU ld supports shared libraries.
12403    case $host_os in
12404    aix[3-9]*)
12405      # On AIX/PPC, the GNU linker is very broken
12406      if test "$host_cpu" != ia64; then
12407	ld_shlibs=no
12408	cat <<_LT_EOF 1>&2
12409
12410*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12411*** to be unable to reliably create shared libraries on AIX.
12412*** Therefore, libtool is disabling shared libraries support.  If you
12413*** really care for shared libraries, you may want to modify your PATH
12414*** so that a non-GNU linker is found, and then restart.
12415
12416_LT_EOF
12417      fi
12418      ;;
12419
12420    amigaos*)
12421      case $host_cpu in
12422      powerpc)
12423            # see comment about AmigaOS4 .so support
12424            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12425            archive_expsym_cmds=''
12426        ;;
12427      m68k)
12428            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)'
12429            hardcode_libdir_flag_spec='-L$libdir'
12430            hardcode_minus_L=yes
12431        ;;
12432      esac
12433      ;;
12434
12435    beos*)
12436      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12437	allow_undefined_flag=unsupported
12438	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12439	# support --undefined.  This deserves some investigation.  FIXME
12440	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12441      else
12442	ld_shlibs=no
12443      fi
12444      ;;
12445
12446    cygwin* | mingw* | pw32* | cegcc*)
12447      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12448      # as there is no search path for DLLs.
12449      hardcode_libdir_flag_spec='-L$libdir'
12450      allow_undefined_flag=unsupported
12451      always_export_symbols=no
12452      enable_shared_with_static_runtimes=yes
12453      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12454
12455      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12456        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12457	# If the export-symbols file already is a .def file (1st line
12458	# is EXPORTS), use it as is; otherwise, prepend...
12459	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12460	  cp $export_symbols $output_objdir/$soname.def;
12461	else
12462	  echo EXPORTS > $output_objdir/$soname.def;
12463	  cat $export_symbols >> $output_objdir/$soname.def;
12464	fi~
12465	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12466      else
12467	ld_shlibs=no
12468      fi
12469      ;;
12470
12471    interix[3-9]*)
12472      hardcode_direct=no
12473      hardcode_shlibpath_var=no
12474      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12475      export_dynamic_flag_spec='${wl}-E'
12476      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12477      # Instead, shared libraries are loaded at an image base (0x10000000 by
12478      # default) and relocated if they conflict, which is a slow very memory
12479      # consuming and fragmenting process.  To avoid this, we pick a random,
12480      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12481      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12482      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12483      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'
12484      ;;
12485
12486    gnu* | linux* | tpf* | k*bsd*-gnu)
12487      tmp_diet=no
12488      if test "$host_os" = linux-dietlibc; then
12489	case $cc_basename in
12490	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
12491	esac
12492      fi
12493      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12494	 && test "$tmp_diet" = no
12495      then
12496	tmp_addflag=
12497	tmp_sharedflag='-shared'
12498	case $cc_basename,$host_cpu in
12499        pgcc*)				# Portland Group C compiler
12500	  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'
12501	  tmp_addflag=' $pic_flag'
12502	  ;;
12503	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
12504	  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'
12505	  tmp_addflag=' $pic_flag -Mnomain' ;;
12506	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
12507	  tmp_addflag=' -i_dynamic' ;;
12508	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
12509	  tmp_addflag=' -i_dynamic -nofor_main' ;;
12510	ifc* | ifort*)			# Intel Fortran compiler
12511	  tmp_addflag=' -nofor_main' ;;
12512	lf95*)				# Lahey Fortran 8.1
12513	  whole_archive_flag_spec=
12514	  tmp_sharedflag='--shared' ;;
12515	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
12516	  tmp_sharedflag='-qmkshrobj'
12517	  tmp_addflag= ;;
12518	esac
12519	case `$CC -V 2>&1 | sed 5q` in
12520	*Sun\ C*)			# Sun C 5.9
12521	  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'
12522	  compiler_needs_object=yes
12523	  tmp_sharedflag='-G' ;;
12524	*Sun\ F*)			# Sun Fortran 8.3
12525	  tmp_sharedflag='-G' ;;
12526	esac
12527	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12528
12529        if test "x$supports_anon_versioning" = xyes; then
12530          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12531	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12532	    echo "local: *; };" >> $output_objdir/$libname.ver~
12533	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12534        fi
12535
12536	case $cc_basename in
12537	xlf*)
12538	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12539	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12540	  hardcode_libdir_flag_spec=
12541	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
12542	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12543	  if test "x$supports_anon_versioning" = xyes; then
12544	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12545	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12546	      echo "local: *; };" >> $output_objdir/$libname.ver~
12547	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12548	  fi
12549	  ;;
12550	esac
12551      else
12552        ld_shlibs=no
12553      fi
12554      ;;
12555
12556    netbsd*)
12557      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12558	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12559	wlarc=
12560      else
12561	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12562	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12563      fi
12564      ;;
12565
12566    solaris*)
12567      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12568	ld_shlibs=no
12569	cat <<_LT_EOF 1>&2
12570
12571*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12572*** create shared libraries on Solaris systems.  Therefore, libtool
12573*** is disabling shared libraries support.  We urge you to upgrade GNU
12574*** binutils to release 2.9.1 or newer.  Another option is to modify
12575*** your PATH or compiler configuration so that the native linker is
12576*** used, and then restart.
12577
12578_LT_EOF
12579      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12580	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12581	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12582      else
12583	ld_shlibs=no
12584      fi
12585      ;;
12586
12587    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12588      case `$LD -v 2>&1` in
12589        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12590	ld_shlibs=no
12591	cat <<_LT_EOF 1>&2
12592
12593*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12594*** reliably create shared libraries on SCO systems.  Therefore, libtool
12595*** is disabling shared libraries support.  We urge you to upgrade GNU
12596*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12597*** your PATH or compiler configuration so that the native linker is
12598*** used, and then restart.
12599
12600_LT_EOF
12601	;;
12602	*)
12603	  # For security reasons, it is highly recommended that you always
12604	  # use absolute paths for naming shared libraries, and exclude the
12605	  # DT_RUNPATH tag from executables and libraries.  But doing so
12606	  # requires that you compile everything twice, which is a pain.
12607	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12608	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12609	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12610	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12611	  else
12612	    ld_shlibs=no
12613	  fi
12614	;;
12615      esac
12616      ;;
12617
12618    sunos4*)
12619      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12620      wlarc=
12621      hardcode_direct=yes
12622      hardcode_shlibpath_var=no
12623      ;;
12624
12625    *)
12626      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12627	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12628	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12629      else
12630	ld_shlibs=no
12631      fi
12632      ;;
12633    esac
12634
12635    if test "$ld_shlibs" = no; then
12636      runpath_var=
12637      hardcode_libdir_flag_spec=
12638      export_dynamic_flag_spec=
12639      whole_archive_flag_spec=
12640    fi
12641  else
12642    # PORTME fill in a description of your system's linker (not GNU ld)
12643    case $host_os in
12644    aix3*)
12645      allow_undefined_flag=unsupported
12646      always_export_symbols=yes
12647      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'
12648      # Note: this linker hardcodes the directories in LIBPATH if there
12649      # are no directories specified by -L.
12650      hardcode_minus_L=yes
12651      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12652	# Neither direct hardcoding nor static linking is supported with a
12653	# broken collect2.
12654	hardcode_direct=unsupported
12655      fi
12656      ;;
12657
12658    aix[4-9]*)
12659      if test "$host_cpu" = ia64; then
12660	# On IA64, the linker does run time linking by default, so we don't
12661	# have to do anything special.
12662	aix_use_runtimelinking=no
12663	exp_sym_flag='-Bexport'
12664	no_entry_flag=""
12665      else
12666	# If we're using GNU nm, then we don't want the "-C" option.
12667	# -C means demangle to AIX nm, but means don't demangle with GNU nm
12668	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12669	  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'
12670	else
12671	  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'
12672	fi
12673	aix_use_runtimelinking=no
12674
12675	# Test if we are trying to use run time linking or normal
12676	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12677	# need to do runtime linking.
12678	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12679	  for ld_flag in $LDFLAGS; do
12680	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12681	    aix_use_runtimelinking=yes
12682	    break
12683	  fi
12684	  done
12685	  ;;
12686	esac
12687
12688	exp_sym_flag='-bexport'
12689	no_entry_flag='-bnoentry'
12690      fi
12691
12692      # When large executables or shared objects are built, AIX ld can
12693      # have problems creating the table of contents.  If linking a library
12694      # or program results in "error TOC overflow" add -mminimal-toc to
12695      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12696      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12697
12698      archive_cmds=''
12699      hardcode_direct=yes
12700      hardcode_direct_absolute=yes
12701      hardcode_libdir_separator=':'
12702      link_all_deplibs=yes
12703      file_list_spec='${wl}-f,'
12704
12705      if test "$GCC" = yes; then
12706	case $host_os in aix4.[012]|aix4.[012].*)
12707	# We only want to do this on AIX 4.2 and lower, the check
12708	# below for broken collect2 doesn't work under 4.3+
12709	  collect2name=`${CC} -print-prog-name=collect2`
12710	  if test -f "$collect2name" &&
12711	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12712	  then
12713	  # We have reworked collect2
12714	  :
12715	  else
12716	  # We have old collect2
12717	  hardcode_direct=unsupported
12718	  # It fails to find uninstalled libraries when the uninstalled
12719	  # path is not listed in the libpath.  Setting hardcode_minus_L
12720	  # to unsupported forces relinking
12721	  hardcode_minus_L=yes
12722	  hardcode_libdir_flag_spec='-L$libdir'
12723	  hardcode_libdir_separator=
12724	  fi
12725	  ;;
12726	esac
12727	shared_flag='-shared'
12728	if test "$aix_use_runtimelinking" = yes; then
12729	  shared_flag="$shared_flag "'${wl}-G'
12730	fi
12731      else
12732	# not using gcc
12733	if test "$host_cpu" = ia64; then
12734	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12735	# chokes on -Wl,-G. The following line is correct:
12736	  shared_flag='-G'
12737	else
12738	  if test "$aix_use_runtimelinking" = yes; then
12739	    shared_flag='${wl}-G'
12740	  else
12741	    shared_flag='${wl}-bM:SRE'
12742	  fi
12743	fi
12744      fi
12745
12746      export_dynamic_flag_spec='${wl}-bexpall'
12747      # It seems that -bexpall does not export symbols beginning with
12748      # underscore (_), so it is better to generate a list of symbols to export.
12749      always_export_symbols=yes
12750      if test "$aix_use_runtimelinking" = yes; then
12751	# Warning - without using the other runtime loading flags (-brtl),
12752	# -berok will link without error, but may produce a broken library.
12753	allow_undefined_flag='-berok'
12754        # Determine the default libpath from the value encoded in an
12755        # empty executable.
12756        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12757/* end confdefs.h.  */
12758
12759int
12760main ()
12761{
12762
12763  ;
12764  return 0;
12765}
12766_ACEOF
12767if ac_fn_c_try_link "$LINENO"; then :
12768
12769lt_aix_libpath_sed='
12770    /Import File Strings/,/^$/ {
12771	/^0/ {
12772	    s/^0  *\(.*\)$/\1/
12773	    p
12774	}
12775    }'
12776aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12777# Check for a 64-bit object if we didn't find anything.
12778if test -z "$aix_libpath"; then
12779  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12780fi
12781fi
12782rm -f core conftest.err conftest.$ac_objext \
12783    conftest$ac_exeext conftest.$ac_ext
12784if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12785
12786        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12787        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"
12788      else
12789	if test "$host_cpu" = ia64; then
12790	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12791	  allow_undefined_flag="-z nodefs"
12792	  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"
12793	else
12794	 # Determine the default libpath from the value encoded in an
12795	 # empty executable.
12796	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12797/* end confdefs.h.  */
12798
12799int
12800main ()
12801{
12802
12803  ;
12804  return 0;
12805}
12806_ACEOF
12807if ac_fn_c_try_link "$LINENO"; then :
12808
12809lt_aix_libpath_sed='
12810    /Import File Strings/,/^$/ {
12811	/^0/ {
12812	    s/^0  *\(.*\)$/\1/
12813	    p
12814	}
12815    }'
12816aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12817# Check for a 64-bit object if we didn't find anything.
12818if test -z "$aix_libpath"; then
12819  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12820fi
12821fi
12822rm -f core conftest.err conftest.$ac_objext \
12823    conftest$ac_exeext conftest.$ac_ext
12824if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12825
12826	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12827	  # Warning - without using the other run time loading flags,
12828	  # -berok will link without error, but may produce a broken library.
12829	  no_undefined_flag=' ${wl}-bernotok'
12830	  allow_undefined_flag=' ${wl}-berok'
12831	  # Exported symbols can be pulled into shared objects from archives
12832	  whole_archive_flag_spec='$convenience'
12833	  archive_cmds_need_lc=yes
12834	  # This is similar to how AIX traditionally builds its shared libraries.
12835	  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'
12836	fi
12837      fi
12838      ;;
12839
12840    amigaos*)
12841      case $host_cpu in
12842      powerpc)
12843            # see comment about AmigaOS4 .so support
12844            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12845            archive_expsym_cmds=''
12846        ;;
12847      m68k)
12848            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)'
12849            hardcode_libdir_flag_spec='-L$libdir'
12850            hardcode_minus_L=yes
12851        ;;
12852      esac
12853      ;;
12854
12855    bsdi[45]*)
12856      export_dynamic_flag_spec=-rdynamic
12857      ;;
12858
12859    cygwin* | mingw* | pw32* | cegcc*)
12860      # When not using gcc, we currently assume that we are using
12861      # Microsoft Visual C++.
12862      # hardcode_libdir_flag_spec is actually meaningless, as there is
12863      # no search path for DLLs.
12864      hardcode_libdir_flag_spec=' '
12865      allow_undefined_flag=unsupported
12866      # Tell ltmain to make .lib files, not .a files.
12867      libext=lib
12868      # Tell ltmain to make .dll files, not .so files.
12869      shrext_cmds=".dll"
12870      # FIXME: Setting linknames here is a bad hack.
12871      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
12872      # The linker will automatically build a .lib file if we build a DLL.
12873      old_archive_from_new_cmds='true'
12874      # FIXME: Should let the user specify the lib program.
12875      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12876      fix_srcfile_path='`cygpath -w "$srcfile"`'
12877      enable_shared_with_static_runtimes=yes
12878      ;;
12879
12880    darwin* | rhapsody*)
12881
12882
12883  archive_cmds_need_lc=no
12884  hardcode_direct=no
12885  hardcode_automatic=yes
12886  hardcode_shlibpath_var=unsupported
12887  whole_archive_flag_spec=''
12888  link_all_deplibs=yes
12889  allow_undefined_flag="$_lt_dar_allow_undefined"
12890  case $cc_basename in
12891     ifort*) _lt_dar_can_shared=yes ;;
12892     *) _lt_dar_can_shared=$GCC ;;
12893  esac
12894  if test "$_lt_dar_can_shared" = "yes"; then
12895    output_verbose_link_cmd=echo
12896    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12897    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12898    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}"
12899    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}"
12900
12901  else
12902  ld_shlibs=no
12903  fi
12904
12905      ;;
12906
12907    dgux*)
12908      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12909      hardcode_libdir_flag_spec='-L$libdir'
12910      hardcode_shlibpath_var=no
12911      ;;
12912
12913    freebsd1*)
12914      ld_shlibs=no
12915      ;;
12916
12917    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12918    # support.  Future versions do this automatically, but an explicit c++rt0.o
12919    # does not break anything, and helps significantly (at the cost of a little
12920    # extra space).
12921    freebsd2.2*)
12922      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12923      hardcode_libdir_flag_spec='-R$libdir'
12924      hardcode_direct=yes
12925      hardcode_shlibpath_var=no
12926      ;;
12927
12928    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12929    freebsd2*)
12930      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12931      hardcode_direct=yes
12932      hardcode_minus_L=yes
12933      hardcode_shlibpath_var=no
12934      ;;
12935
12936    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12937    freebsd* | dragonfly*)
12938      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12939      hardcode_libdir_flag_spec='-R$libdir'
12940      hardcode_direct=yes
12941      hardcode_shlibpath_var=no
12942      ;;
12943
12944    hpux9*)
12945      if test "$GCC" = yes; then
12946	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'
12947      else
12948	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'
12949      fi
12950      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12951      hardcode_libdir_separator=:
12952      hardcode_direct=yes
12953
12954      # hardcode_minus_L: Not really in the search PATH,
12955      # but as the default location of the library.
12956      hardcode_minus_L=yes
12957      export_dynamic_flag_spec='${wl}-E'
12958      ;;
12959
12960    hpux10*)
12961      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12962	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12963      else
12964	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12965      fi
12966      if test "$with_gnu_ld" = no; then
12967	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12968	hardcode_libdir_flag_spec_ld='+b $libdir'
12969	hardcode_libdir_separator=:
12970	hardcode_direct=yes
12971	hardcode_direct_absolute=yes
12972	export_dynamic_flag_spec='${wl}-E'
12973	# hardcode_minus_L: Not really in the search PATH,
12974	# but as the default location of the library.
12975	hardcode_minus_L=yes
12976      fi
12977      ;;
12978
12979    hpux11*)
12980      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12981	case $host_cpu in
12982	hppa*64*)
12983	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12984	  ;;
12985	ia64*)
12986	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12987	  ;;
12988	*)
12989	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12990	  ;;
12991	esac
12992      else
12993	case $host_cpu in
12994	hppa*64*)
12995	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12996	  ;;
12997	ia64*)
12998	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12999	  ;;
13000	*)
13001	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13002	  ;;
13003	esac
13004      fi
13005      if test "$with_gnu_ld" = no; then
13006	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13007	hardcode_libdir_separator=:
13008
13009	case $host_cpu in
13010	hppa*64*|ia64*)
13011	  hardcode_direct=no
13012	  hardcode_shlibpath_var=no
13013	  ;;
13014	*)
13015	  hardcode_direct=yes
13016	  hardcode_direct_absolute=yes
13017	  export_dynamic_flag_spec='${wl}-E'
13018
13019	  # hardcode_minus_L: Not really in the search PATH,
13020	  # but as the default location of the library.
13021	  hardcode_minus_L=yes
13022	  ;;
13023	esac
13024      fi
13025      ;;
13026
13027    irix5* | irix6* | nonstopux*)
13028      if test "$GCC" = yes; then
13029	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'
13030	# Try to use the -exported_symbol ld option, if it does not
13031	# work, assume that -exports_file does not work either and
13032	# implicitly export all symbols.
13033        save_LDFLAGS="$LDFLAGS"
13034        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13035        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13036/* end confdefs.h.  */
13037int foo (void) { return 0; }
13038_ACEOF
13039if ac_fn_c_try_link "$LINENO"; then :
13040
13041          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'
13042
13043fi
13044rm -f core conftest.err conftest.$ac_objext \
13045    conftest$ac_exeext conftest.$ac_ext
13046        LDFLAGS="$save_LDFLAGS"
13047      else
13048	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'
13049	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'
13050      fi
13051      archive_cmds_need_lc='no'
13052      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13053      hardcode_libdir_separator=:
13054      inherit_rpath=yes
13055      link_all_deplibs=yes
13056      ;;
13057
13058    netbsd*)
13059      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13060	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13061      else
13062	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13063      fi
13064      hardcode_libdir_flag_spec='-R$libdir'
13065      hardcode_direct=yes
13066      hardcode_shlibpath_var=no
13067      ;;
13068
13069    newsos6)
13070      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13071      hardcode_direct=yes
13072      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13073      hardcode_libdir_separator=:
13074      hardcode_shlibpath_var=no
13075      ;;
13076
13077    *nto* | *qnx*)
13078      ;;
13079
13080    openbsd*)
13081      if test -f /usr/libexec/ld.so; then
13082	hardcode_direct=yes
13083	hardcode_shlibpath_var=no
13084	hardcode_direct_absolute=yes
13085	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13086	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13087	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13088	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13089	  export_dynamic_flag_spec='${wl}-E'
13090	else
13091	  case $host_os in
13092	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13093	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13094	     hardcode_libdir_flag_spec='-R$libdir'
13095	     ;;
13096	   *)
13097	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13098	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13099	     ;;
13100	  esac
13101	fi
13102      else
13103	ld_shlibs=no
13104      fi
13105      ;;
13106
13107    os2*)
13108      hardcode_libdir_flag_spec='-L$libdir'
13109      hardcode_minus_L=yes
13110      allow_undefined_flag=unsupported
13111      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'
13112      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13113      ;;
13114
13115    osf3*)
13116      if test "$GCC" = yes; then
13117	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13118	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'
13119      else
13120	allow_undefined_flag=' -expect_unresolved \*'
13121	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'
13122      fi
13123      archive_cmds_need_lc='no'
13124      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13125      hardcode_libdir_separator=:
13126      ;;
13127
13128    osf4* | osf5*)	# as osf3* with the addition of -msym flag
13129      if test "$GCC" = yes; then
13130	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13131	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'
13132	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13133      else
13134	allow_undefined_flag=' -expect_unresolved \*'
13135	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'
13136	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~
13137	$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'
13138
13139	# Both c and cxx compiler support -rpath directly
13140	hardcode_libdir_flag_spec='-rpath $libdir'
13141      fi
13142      archive_cmds_need_lc='no'
13143      hardcode_libdir_separator=:
13144      ;;
13145
13146    solaris*)
13147      no_undefined_flag=' -z defs'
13148      if test "$GCC" = yes; then
13149	wlarc='${wl}'
13150	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13151	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13152	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13153      else
13154	case `$CC -V 2>&1` in
13155	*"Compilers 5.0"*)
13156	  wlarc=''
13157	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13158	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13159	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13160	  ;;
13161	*)
13162	  wlarc='${wl}'
13163	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13164	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13165	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13166	  ;;
13167	esac
13168      fi
13169      hardcode_libdir_flag_spec='-R$libdir'
13170      hardcode_shlibpath_var=no
13171      case $host_os in
13172      solaris2.[0-5] | solaris2.[0-5].*) ;;
13173      *)
13174	# The compiler driver will combine and reorder linker options,
13175	# but understands `-z linker_flag'.  GCC discards it without `$wl',
13176	# but is careful enough not to reorder.
13177	# Supported since Solaris 2.6 (maybe 2.5.1?)
13178	if test "$GCC" = yes; then
13179	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13180	else
13181	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13182	fi
13183	;;
13184      esac
13185      link_all_deplibs=yes
13186      ;;
13187
13188    sunos4*)
13189      if test "x$host_vendor" = xsequent; then
13190	# Use $CC to link under sequent, because it throws in some extra .o
13191	# files that make .init and .fini sections work.
13192	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13193      else
13194	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13195      fi
13196      hardcode_libdir_flag_spec='-L$libdir'
13197      hardcode_direct=yes
13198      hardcode_minus_L=yes
13199      hardcode_shlibpath_var=no
13200      ;;
13201
13202    sysv4)
13203      case $host_vendor in
13204	sni)
13205	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13206	  hardcode_direct=yes # is this really true???
13207	;;
13208	siemens)
13209	  ## LD is ld it makes a PLAMLIB
13210	  ## CC just makes a GrossModule.
13211	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13212	  reload_cmds='$CC -r -o $output$reload_objs'
13213	  hardcode_direct=no
13214        ;;
13215	motorola)
13216	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13217	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13218	;;
13219      esac
13220      runpath_var='LD_RUN_PATH'
13221      hardcode_shlibpath_var=no
13222      ;;
13223
13224    sysv4.3*)
13225      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13226      hardcode_shlibpath_var=no
13227      export_dynamic_flag_spec='-Bexport'
13228      ;;
13229
13230    sysv4*MP*)
13231      if test -d /usr/nec; then
13232	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13233	hardcode_shlibpath_var=no
13234	runpath_var=LD_RUN_PATH
13235	hardcode_runpath_var=yes
13236	ld_shlibs=yes
13237      fi
13238      ;;
13239
13240    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13241      no_undefined_flag='${wl}-z,text'
13242      archive_cmds_need_lc=no
13243      hardcode_shlibpath_var=no
13244      runpath_var='LD_RUN_PATH'
13245
13246      if test "$GCC" = yes; then
13247	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13248	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13249      else
13250	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13251	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13252      fi
13253      ;;
13254
13255    sysv5* | sco3.2v5* | sco5v6*)
13256      # Note: We can NOT use -z defs as we might desire, because we do not
13257      # link with -lc, and that would cause any symbols used from libc to
13258      # always be unresolved, which means just about no library would
13259      # ever link correctly.  If we're not using GNU ld we use -z text
13260      # though, which does catch some bad symbols but isn't as heavy-handed
13261      # as -z defs.
13262      no_undefined_flag='${wl}-z,text'
13263      allow_undefined_flag='${wl}-z,nodefs'
13264      archive_cmds_need_lc=no
13265      hardcode_shlibpath_var=no
13266      hardcode_libdir_flag_spec='${wl}-R,$libdir'
13267      hardcode_libdir_separator=':'
13268      link_all_deplibs=yes
13269      export_dynamic_flag_spec='${wl}-Bexport'
13270      runpath_var='LD_RUN_PATH'
13271
13272      if test "$GCC" = yes; then
13273	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13274	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13275      else
13276	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13277	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13278      fi
13279      ;;
13280
13281    uts4*)
13282      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13283      hardcode_libdir_flag_spec='-L$libdir'
13284      hardcode_shlibpath_var=no
13285      ;;
13286
13287    *)
13288      ld_shlibs=no
13289      ;;
13290    esac
13291
13292    if test x$host_vendor = xsni; then
13293      case $host in
13294      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13295	export_dynamic_flag_spec='${wl}-Blargedynsym'
13296	;;
13297      esac
13298    fi
13299  fi
13300
13301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13302$as_echo "$ld_shlibs" >&6; }
13303test "$ld_shlibs" = no && can_build_shared=no
13304
13305with_gnu_ld=$with_gnu_ld
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321#
13322# Do we need to explicitly link libc?
13323#
13324case "x$archive_cmds_need_lc" in
13325x|xyes)
13326  # Assume -lc should be added
13327  archive_cmds_need_lc=yes
13328
13329  if test "$enable_shared" = yes && test "$GCC" = yes; then
13330    case $archive_cmds in
13331    *'~'*)
13332      # FIXME: we may have to deal with multi-command sequences.
13333      ;;
13334    '$CC '*)
13335      # Test whether the compiler implicitly links with -lc since on some
13336      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13337      # to ld, don't add -lc before -lgcc.
13338      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13339$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13340      $RM conftest*
13341      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13342
13343      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13344  (eval $ac_compile) 2>&5
13345  ac_status=$?
13346  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13347  test $ac_status = 0; } 2>conftest.err; then
13348        soname=conftest
13349        lib=conftest
13350        libobjs=conftest.$ac_objext
13351        deplibs=
13352        wl=$lt_prog_compiler_wl
13353	pic_flag=$lt_prog_compiler_pic
13354        compiler_flags=-v
13355        linker_flags=-v
13356        verstring=
13357        output_objdir=.
13358        libname=conftest
13359        lt_save_allow_undefined_flag=$allow_undefined_flag
13360        allow_undefined_flag=
13361        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13362  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13363  ac_status=$?
13364  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13365  test $ac_status = 0; }
13366        then
13367	  archive_cmds_need_lc=no
13368        else
13369	  archive_cmds_need_lc=yes
13370        fi
13371        allow_undefined_flag=$lt_save_allow_undefined_flag
13372      else
13373        cat conftest.err 1>&5
13374      fi
13375      $RM conftest*
13376      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
13377$as_echo "$archive_cmds_need_lc" >&6; }
13378      ;;
13379    esac
13380  fi
13381  ;;
13382esac
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13541$as_echo_n "checking dynamic linker characteristics... " >&6; }
13542
13543if test "$GCC" = yes; then
13544  case $host_os in
13545    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13546    *) lt_awk_arg="/^libraries:/" ;;
13547  esac
13548  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13549  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
13550    # if the path contains ";" then we assume it to be the separator
13551    # otherwise default to the standard path separator (i.e. ":") - it is
13552    # assumed that no part of a normal pathname contains ";" but that should
13553    # okay in the real world where ";" in dirpaths is itself problematic.
13554    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
13555  else
13556    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13557  fi
13558  # Ok, now we have the path, separated by spaces, we can step through it
13559  # and add multilib dir if necessary.
13560  lt_tmp_lt_search_path_spec=
13561  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13562  for lt_sys_path in $lt_search_path_spec; do
13563    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13564      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13565    else
13566      test -d "$lt_sys_path" && \
13567	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13568    fi
13569  done
13570  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
13571BEGIN {RS=" "; FS="/|\n";} {
13572  lt_foo="";
13573  lt_count=0;
13574  for (lt_i = NF; lt_i > 0; lt_i--) {
13575    if ($lt_i != "" && $lt_i != ".") {
13576      if ($lt_i == "..") {
13577        lt_count++;
13578      } else {
13579        if (lt_count == 0) {
13580          lt_foo="/" $lt_i lt_foo;
13581        } else {
13582          lt_count--;
13583        }
13584      }
13585    }
13586  }
13587  if (lt_foo != "") { lt_freq[lt_foo]++; }
13588  if (lt_freq[lt_foo] == 1) { print lt_foo; }
13589}'`
13590  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
13591else
13592  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13593fi
13594library_names_spec=
13595libname_spec='lib$name'
13596soname_spec=
13597shrext_cmds=".so"
13598postinstall_cmds=
13599postuninstall_cmds=
13600finish_cmds=
13601finish_eval=
13602shlibpath_var=
13603shlibpath_overrides_runpath=unknown
13604version_type=none
13605dynamic_linker="$host_os ld.so"
13606sys_lib_dlsearch_path_spec="/lib /usr/lib"
13607need_lib_prefix=unknown
13608hardcode_into_libs=no
13609
13610# when you set need_version to no, make sure it does not cause -set_version
13611# flags to be left without arguments
13612need_version=unknown
13613
13614case $host_os in
13615aix3*)
13616  version_type=linux
13617  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13618  shlibpath_var=LIBPATH
13619
13620  # AIX 3 has no versioning support, so we append a major version to the name.
13621  soname_spec='${libname}${release}${shared_ext}$major'
13622  ;;
13623
13624aix[4-9]*)
13625  version_type=linux
13626  need_lib_prefix=no
13627  need_version=no
13628  hardcode_into_libs=yes
13629  if test "$host_cpu" = ia64; then
13630    # AIX 5 supports IA64
13631    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13632    shlibpath_var=LD_LIBRARY_PATH
13633  else
13634    # With GCC up to 2.95.x, collect2 would create an import file
13635    # for dependence libraries.  The import file would start with
13636    # the line `#! .'.  This would cause the generated library to
13637    # depend on `.', always an invalid library.  This was fixed in
13638    # development snapshots of GCC prior to 3.0.
13639    case $host_os in
13640      aix4 | aix4.[01] | aix4.[01].*)
13641      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13642	   echo ' yes '
13643	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13644	:
13645      else
13646	can_build_shared=no
13647      fi
13648      ;;
13649    esac
13650    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13651    # soname into executable. Probably we can add versioning support to
13652    # collect2, so additional links can be useful in future.
13653    if test "$aix_use_runtimelinking" = yes; then
13654      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13655      # instead of lib<name>.a to let people know that these are not
13656      # typical AIX shared libraries.
13657      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13658    else
13659      # We preserve .a as extension for shared libraries through AIX4.2
13660      # and later when we are not doing run time linking.
13661      library_names_spec='${libname}${release}.a $libname.a'
13662      soname_spec='${libname}${release}${shared_ext}$major'
13663    fi
13664    shlibpath_var=LIBPATH
13665  fi
13666  ;;
13667
13668amigaos*)
13669  case $host_cpu in
13670  powerpc)
13671    # Since July 2007 AmigaOS4 officially supports .so libraries.
13672    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13673    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13674    ;;
13675  m68k)
13676    library_names_spec='$libname.ixlibrary $libname.a'
13677    # Create ${libname}_ixlibrary.a entries in /sys/libs.
13678    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'
13679    ;;
13680  esac
13681  ;;
13682
13683beos*)
13684  library_names_spec='${libname}${shared_ext}'
13685  dynamic_linker="$host_os ld.so"
13686  shlibpath_var=LIBRARY_PATH
13687  ;;
13688
13689bsdi[45]*)
13690  version_type=linux
13691  need_version=no
13692  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13693  soname_spec='${libname}${release}${shared_ext}$major'
13694  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13695  shlibpath_var=LD_LIBRARY_PATH
13696  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13697  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13698  # the default ld.so.conf also contains /usr/contrib/lib and
13699  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13700  # libtool to hard-code these into programs
13701  ;;
13702
13703cygwin* | mingw* | pw32* | cegcc*)
13704  version_type=windows
13705  shrext_cmds=".dll"
13706  need_version=no
13707  need_lib_prefix=no
13708
13709  case $GCC,$host_os in
13710  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13711    library_names_spec='$libname.dll.a'
13712    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13713    postinstall_cmds='base_file=`basename \${file}`~
13714      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13715      dldir=$destdir/`dirname \$dlpath`~
13716      test -d \$dldir || mkdir -p \$dldir~
13717      $install_prog $dir/$dlname \$dldir/$dlname~
13718      chmod a+x \$dldir/$dlname~
13719      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13720        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13721      fi'
13722    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13723      dlpath=$dir/\$dldll~
13724       $RM \$dlpath'
13725    shlibpath_overrides_runpath=yes
13726
13727    case $host_os in
13728    cygwin*)
13729      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13730      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13731      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13732      ;;
13733    mingw* | cegcc*)
13734      # MinGW DLLs use traditional 'lib' prefix
13735      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13736      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13737      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13738        # It is most probably a Windows format PATH printed by
13739        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13740        # path with ; separators, and with drive letters. We can handle the
13741        # drive letters (cygwin fileutils understands them), so leave them,
13742        # especially as we might pass files found there to a mingw objdump,
13743        # which wouldn't understand a cygwinified path. Ahh.
13744        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13745      else
13746        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13747      fi
13748      ;;
13749    pw32*)
13750      # pw32 DLLs use 'pw' prefix rather than 'lib'
13751      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13752      ;;
13753    esac
13754    ;;
13755
13756  *)
13757    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13758    ;;
13759  esac
13760  dynamic_linker='Win32 ld.exe'
13761  # FIXME: first we should search . and the directory the executable is in
13762  shlibpath_var=PATH
13763  ;;
13764
13765darwin* | rhapsody*)
13766  dynamic_linker="$host_os dyld"
13767  version_type=darwin
13768  need_lib_prefix=no
13769  need_version=no
13770  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13771  soname_spec='${libname}${release}${major}$shared_ext'
13772  shlibpath_overrides_runpath=yes
13773  shlibpath_var=DYLD_LIBRARY_PATH
13774  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13775
13776  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13777  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13778  ;;
13779
13780dgux*)
13781  version_type=linux
13782  need_lib_prefix=no
13783  need_version=no
13784  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13785  soname_spec='${libname}${release}${shared_ext}$major'
13786  shlibpath_var=LD_LIBRARY_PATH
13787  ;;
13788
13789freebsd1*)
13790  dynamic_linker=no
13791  ;;
13792
13793freebsd* | dragonfly*)
13794  # DragonFly does not have aout.  When/if they implement a new
13795  # versioning mechanism, adjust this.
13796  if test -x /usr/bin/objformat; then
13797    objformat=`/usr/bin/objformat`
13798  else
13799    case $host_os in
13800    freebsd[123]*) objformat=aout ;;
13801    *) objformat=elf ;;
13802    esac
13803  fi
13804  version_type=freebsd-$objformat
13805  case $version_type in
13806    freebsd-elf*)
13807      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13808      need_version=no
13809      need_lib_prefix=no
13810      ;;
13811    freebsd-*)
13812      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13813      need_version=yes
13814      ;;
13815  esac
13816  shlibpath_var=LD_LIBRARY_PATH
13817  case $host_os in
13818  freebsd2*)
13819    shlibpath_overrides_runpath=yes
13820    ;;
13821  freebsd3.[01]* | freebsdelf3.[01]*)
13822    shlibpath_overrides_runpath=yes
13823    hardcode_into_libs=yes
13824    ;;
13825  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13826  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13827    shlibpath_overrides_runpath=no
13828    hardcode_into_libs=yes
13829    ;;
13830  *) # from 4.6 on, and DragonFly
13831    shlibpath_overrides_runpath=yes
13832    hardcode_into_libs=yes
13833    ;;
13834  esac
13835  ;;
13836
13837gnu*)
13838  version_type=linux
13839  need_lib_prefix=no
13840  need_version=no
13841  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13842  soname_spec='${libname}${release}${shared_ext}$major'
13843  shlibpath_var=LD_LIBRARY_PATH
13844  hardcode_into_libs=yes
13845  ;;
13846
13847hpux9* | hpux10* | hpux11*)
13848  # Give a soname corresponding to the major version so that dld.sl refuses to
13849  # link against other versions.
13850  version_type=sunos
13851  need_lib_prefix=no
13852  need_version=no
13853  case $host_cpu in
13854  ia64*)
13855    shrext_cmds='.so'
13856    hardcode_into_libs=yes
13857    dynamic_linker="$host_os dld.so"
13858    shlibpath_var=LD_LIBRARY_PATH
13859    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13860    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13861    soname_spec='${libname}${release}${shared_ext}$major'
13862    if test "X$HPUX_IA64_MODE" = X32; then
13863      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13864    else
13865      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13866    fi
13867    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13868    ;;
13869  hppa*64*)
13870    shrext_cmds='.sl'
13871    hardcode_into_libs=yes
13872    dynamic_linker="$host_os dld.sl"
13873    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13874    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13875    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13876    soname_spec='${libname}${release}${shared_ext}$major'
13877    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13878    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13879    ;;
13880  *)
13881    shrext_cmds='.sl'
13882    dynamic_linker="$host_os dld.sl"
13883    shlibpath_var=SHLIB_PATH
13884    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13885    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13886    soname_spec='${libname}${release}${shared_ext}$major'
13887    ;;
13888  esac
13889  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13890  postinstall_cmds='chmod 555 $lib'
13891  ;;
13892
13893interix[3-9]*)
13894  version_type=linux
13895  need_lib_prefix=no
13896  need_version=no
13897  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13898  soname_spec='${libname}${release}${shared_ext}$major'
13899  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13900  shlibpath_var=LD_LIBRARY_PATH
13901  shlibpath_overrides_runpath=no
13902  hardcode_into_libs=yes
13903  ;;
13904
13905irix5* | irix6* | nonstopux*)
13906  case $host_os in
13907    nonstopux*) version_type=nonstopux ;;
13908    *)
13909	if test "$lt_cv_prog_gnu_ld" = yes; then
13910		version_type=linux
13911	else
13912		version_type=irix
13913	fi ;;
13914  esac
13915  need_lib_prefix=no
13916  need_version=no
13917  soname_spec='${libname}${release}${shared_ext}$major'
13918  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13919  case $host_os in
13920  irix5* | nonstopux*)
13921    libsuff= shlibsuff=
13922    ;;
13923  *)
13924    case $LD in # libtool.m4 will add one of these switches to LD
13925    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13926      libsuff= shlibsuff= libmagic=32-bit;;
13927    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13928      libsuff=32 shlibsuff=N32 libmagic=N32;;
13929    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13930      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13931    *) libsuff= shlibsuff= libmagic=never-match;;
13932    esac
13933    ;;
13934  esac
13935  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13936  shlibpath_overrides_runpath=no
13937  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13938  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13939  hardcode_into_libs=yes
13940  ;;
13941
13942# No shared lib support for Linux oldld, aout, or coff.
13943linux*oldld* | linux*aout* | linux*coff*)
13944  dynamic_linker=no
13945  ;;
13946
13947# This must be Linux ELF.
13948linux* | k*bsd*-gnu)
13949  version_type=linux
13950  need_lib_prefix=no
13951  need_version=no
13952  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13953  soname_spec='${libname}${release}${shared_ext}$major'
13954  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13955  shlibpath_var=LD_LIBRARY_PATH
13956  shlibpath_overrides_runpath=no
13957  # Some binutils ld are patched to set DT_RUNPATH
13958  save_LDFLAGS=$LDFLAGS
13959  save_libdir=$libdir
13960  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13961       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13963/* end confdefs.h.  */
13964
13965int
13966main ()
13967{
13968
13969  ;
13970  return 0;
13971}
13972_ACEOF
13973if ac_fn_c_try_link "$LINENO"; then :
13974  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13975  shlibpath_overrides_runpath=yes
13976fi
13977fi
13978rm -f core conftest.err conftest.$ac_objext \
13979    conftest$ac_exeext conftest.$ac_ext
13980  LDFLAGS=$save_LDFLAGS
13981  libdir=$save_libdir
13982
13983  # This implies no fast_install, which is unacceptable.
13984  # Some rework will be needed to allow for fast_install
13985  # before this can be enabled.
13986  hardcode_into_libs=yes
13987
13988  # Append ld.so.conf contents to the search path
13989  if test -f /etc/ld.so.conf; then
13990    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' ' '`
13991    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13992  fi
13993
13994  # We used to test for /lib/ld.so.1 and disable shared libraries on
13995  # powerpc, because MkLinux only supported shared libraries with the
13996  # GNU dynamic linker.  Since this was broken with cross compilers,
13997  # most powerpc-linux boxes support dynamic linking these days and
13998  # people can always --disable-shared, the test was removed, and we
13999  # assume the GNU/Linux dynamic linker is in use.
14000  dynamic_linker='GNU/Linux ld.so'
14001  ;;
14002
14003netbsd*)
14004  version_type=sunos
14005  need_lib_prefix=no
14006  need_version=no
14007  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14008    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14009    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14010    dynamic_linker='NetBSD (a.out) ld.so'
14011  else
14012    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14013    soname_spec='${libname}${release}${shared_ext}$major'
14014    dynamic_linker='NetBSD ld.elf_so'
14015  fi
14016  shlibpath_var=LD_LIBRARY_PATH
14017  shlibpath_overrides_runpath=yes
14018  hardcode_into_libs=yes
14019  ;;
14020
14021newsos6)
14022  version_type=linux
14023  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14024  shlibpath_var=LD_LIBRARY_PATH
14025  shlibpath_overrides_runpath=yes
14026  ;;
14027
14028*nto* | *qnx*)
14029  version_type=qnx
14030  need_lib_prefix=no
14031  need_version=no
14032  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14033  soname_spec='${libname}${release}${shared_ext}$major'
14034  shlibpath_var=LD_LIBRARY_PATH
14035  shlibpath_overrides_runpath=no
14036  hardcode_into_libs=yes
14037  dynamic_linker='ldqnx.so'
14038  ;;
14039
14040openbsd*)
14041  version_type=sunos
14042  sys_lib_dlsearch_path_spec="/usr/lib"
14043  need_lib_prefix=no
14044  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14045  case $host_os in
14046    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
14047    *)				need_version=no  ;;
14048  esac
14049  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14050  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14051  shlibpath_var=LD_LIBRARY_PATH
14052  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14053    case $host_os in
14054      openbsd2.[89] | openbsd2.[89].*)
14055	shlibpath_overrides_runpath=no
14056	;;
14057      *)
14058	shlibpath_overrides_runpath=yes
14059	;;
14060      esac
14061  else
14062    shlibpath_overrides_runpath=yes
14063  fi
14064  ;;
14065
14066os2*)
14067  libname_spec='$name'
14068  shrext_cmds=".dll"
14069  need_lib_prefix=no
14070  library_names_spec='$libname${shared_ext} $libname.a'
14071  dynamic_linker='OS/2 ld.exe'
14072  shlibpath_var=LIBPATH
14073  ;;
14074
14075osf3* | osf4* | osf5*)
14076  version_type=osf
14077  need_lib_prefix=no
14078  need_version=no
14079  soname_spec='${libname}${release}${shared_ext}$major'
14080  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14081  shlibpath_var=LD_LIBRARY_PATH
14082  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14083  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14084  ;;
14085
14086rdos*)
14087  dynamic_linker=no
14088  ;;
14089
14090solaris*)
14091  version_type=linux
14092  need_lib_prefix=no
14093  need_version=no
14094  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14095  soname_spec='${libname}${release}${shared_ext}$major'
14096  shlibpath_var=LD_LIBRARY_PATH
14097  shlibpath_overrides_runpath=yes
14098  hardcode_into_libs=yes
14099  # ldd complains unless libraries are executable
14100  postinstall_cmds='chmod +x $lib'
14101  ;;
14102
14103sunos4*)
14104  version_type=sunos
14105  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14106  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14107  shlibpath_var=LD_LIBRARY_PATH
14108  shlibpath_overrides_runpath=yes
14109  if test "$with_gnu_ld" = yes; then
14110    need_lib_prefix=no
14111  fi
14112  need_version=yes
14113  ;;
14114
14115sysv4 | sysv4.3*)
14116  version_type=linux
14117  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14118  soname_spec='${libname}${release}${shared_ext}$major'
14119  shlibpath_var=LD_LIBRARY_PATH
14120  case $host_vendor in
14121    sni)
14122      shlibpath_overrides_runpath=no
14123      need_lib_prefix=no
14124      runpath_var=LD_RUN_PATH
14125      ;;
14126    siemens)
14127      need_lib_prefix=no
14128      ;;
14129    motorola)
14130      need_lib_prefix=no
14131      need_version=no
14132      shlibpath_overrides_runpath=no
14133      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14134      ;;
14135  esac
14136  ;;
14137
14138sysv4*MP*)
14139  if test -d /usr/nec ;then
14140    version_type=linux
14141    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14142    soname_spec='$libname${shared_ext}.$major'
14143    shlibpath_var=LD_LIBRARY_PATH
14144  fi
14145  ;;
14146
14147sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14148  version_type=freebsd-elf
14149  need_lib_prefix=no
14150  need_version=no
14151  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14152  soname_spec='${libname}${release}${shared_ext}$major'
14153  shlibpath_var=LD_LIBRARY_PATH
14154  shlibpath_overrides_runpath=yes
14155  hardcode_into_libs=yes
14156  if test "$with_gnu_ld" = yes; then
14157    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14158  else
14159    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14160    case $host_os in
14161      sco3.2v5*)
14162        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14163	;;
14164    esac
14165  fi
14166  sys_lib_dlsearch_path_spec='/usr/lib'
14167  ;;
14168
14169tpf*)
14170  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14171  version_type=linux
14172  need_lib_prefix=no
14173  need_version=no
14174  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14175  shlibpath_var=LD_LIBRARY_PATH
14176  shlibpath_overrides_runpath=no
14177  hardcode_into_libs=yes
14178  ;;
14179
14180uts4*)
14181  version_type=linux
14182  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14183  soname_spec='${libname}${release}${shared_ext}$major'
14184  shlibpath_var=LD_LIBRARY_PATH
14185  ;;
14186
14187*)
14188  dynamic_linker=no
14189  ;;
14190esac
14191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14192$as_echo "$dynamic_linker" >&6; }
14193test "$dynamic_linker" = no && can_build_shared=no
14194
14195variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14196if test "$GCC" = yes; then
14197  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14198fi
14199
14200if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14201  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14202fi
14203if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14204  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14205fi
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14294$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14295hardcode_action=
14296if test -n "$hardcode_libdir_flag_spec" ||
14297   test -n "$runpath_var" ||
14298   test "X$hardcode_automatic" = "Xyes" ; then
14299
14300  # We can hardcode non-existent directories.
14301  if test "$hardcode_direct" != no &&
14302     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14303     # have to relink, otherwise we might link with an installed library
14304     # when we should be linking with a yet-to-be-installed one
14305     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14306     test "$hardcode_minus_L" != no; then
14307    # Linking always hardcodes the temporary library directory.
14308    hardcode_action=relink
14309  else
14310    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14311    hardcode_action=immediate
14312  fi
14313else
14314  # We cannot hardcode anything, or else we can only hardcode existing
14315  # directories.
14316  hardcode_action=unsupported
14317fi
14318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14319$as_echo "$hardcode_action" >&6; }
14320
14321if test "$hardcode_action" = relink ||
14322   test "$inherit_rpath" = yes; then
14323  # Fast installation is not supported
14324  enable_fast_install=no
14325elif test "$shlibpath_overrides_runpath" = yes ||
14326     test "$enable_shared" = no; then
14327  # Fast installation is not necessary
14328  enable_fast_install=needless
14329fi
14330
14331
14332
14333
14334
14335
14336  if test "x$enable_dlopen" != xyes; then
14337  enable_dlopen=unknown
14338  enable_dlopen_self=unknown
14339  enable_dlopen_self_static=unknown
14340else
14341  lt_cv_dlopen=no
14342  lt_cv_dlopen_libs=
14343
14344  case $host_os in
14345  beos*)
14346    lt_cv_dlopen="load_add_on"
14347    lt_cv_dlopen_libs=
14348    lt_cv_dlopen_self=yes
14349    ;;
14350
14351  mingw* | pw32* | cegcc*)
14352    lt_cv_dlopen="LoadLibrary"
14353    lt_cv_dlopen_libs=
14354    ;;
14355
14356  cygwin*)
14357    lt_cv_dlopen="dlopen"
14358    lt_cv_dlopen_libs=
14359    ;;
14360
14361  darwin*)
14362  # if libdl is installed we need to link against it
14363    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14364$as_echo_n "checking for dlopen in -ldl... " >&6; }
14365if ${ac_cv_lib_dl_dlopen+:} false; then :
14366  $as_echo_n "(cached) " >&6
14367else
14368  ac_check_lib_save_LIBS=$LIBS
14369LIBS="-ldl  $LIBS"
14370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14371/* end confdefs.h.  */
14372
14373/* Override any GCC internal prototype to avoid an error.
14374   Use char because int might match the return type of a GCC
14375   builtin and then its argument prototype would still apply.  */
14376#ifdef __cplusplus
14377extern "C"
14378#endif
14379char dlopen ();
14380int
14381main ()
14382{
14383return dlopen ();
14384  ;
14385  return 0;
14386}
14387_ACEOF
14388if ac_fn_c_try_link "$LINENO"; then :
14389  ac_cv_lib_dl_dlopen=yes
14390else
14391  ac_cv_lib_dl_dlopen=no
14392fi
14393rm -f core conftest.err conftest.$ac_objext \
14394    conftest$ac_exeext conftest.$ac_ext
14395LIBS=$ac_check_lib_save_LIBS
14396fi
14397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14398$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14399if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14400  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14401else
14402
14403    lt_cv_dlopen="dyld"
14404    lt_cv_dlopen_libs=
14405    lt_cv_dlopen_self=yes
14406
14407fi
14408
14409    ;;
14410
14411  *)
14412    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14413if test "x$ac_cv_func_shl_load" = xyes; then :
14414  lt_cv_dlopen="shl_load"
14415else
14416  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14417$as_echo_n "checking for shl_load in -ldld... " >&6; }
14418if ${ac_cv_lib_dld_shl_load+:} false; then :
14419  $as_echo_n "(cached) " >&6
14420else
14421  ac_check_lib_save_LIBS=$LIBS
14422LIBS="-ldld  $LIBS"
14423cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14424/* end confdefs.h.  */
14425
14426/* Override any GCC internal prototype to avoid an error.
14427   Use char because int might match the return type of a GCC
14428   builtin and then its argument prototype would still apply.  */
14429#ifdef __cplusplus
14430extern "C"
14431#endif
14432char shl_load ();
14433int
14434main ()
14435{
14436return shl_load ();
14437  ;
14438  return 0;
14439}
14440_ACEOF
14441if ac_fn_c_try_link "$LINENO"; then :
14442  ac_cv_lib_dld_shl_load=yes
14443else
14444  ac_cv_lib_dld_shl_load=no
14445fi
14446rm -f core conftest.err conftest.$ac_objext \
14447    conftest$ac_exeext conftest.$ac_ext
14448LIBS=$ac_check_lib_save_LIBS
14449fi
14450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14451$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14452if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14453  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14454else
14455  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14456if test "x$ac_cv_func_dlopen" = xyes; then :
14457  lt_cv_dlopen="dlopen"
14458else
14459  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14460$as_echo_n "checking for dlopen in -ldl... " >&6; }
14461if ${ac_cv_lib_dl_dlopen+:} false; then :
14462  $as_echo_n "(cached) " >&6
14463else
14464  ac_check_lib_save_LIBS=$LIBS
14465LIBS="-ldl  $LIBS"
14466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14467/* end confdefs.h.  */
14468
14469/* Override any GCC internal prototype to avoid an error.
14470   Use char because int might match the return type of a GCC
14471   builtin and then its argument prototype would still apply.  */
14472#ifdef __cplusplus
14473extern "C"
14474#endif
14475char dlopen ();
14476int
14477main ()
14478{
14479return dlopen ();
14480  ;
14481  return 0;
14482}
14483_ACEOF
14484if ac_fn_c_try_link "$LINENO"; then :
14485  ac_cv_lib_dl_dlopen=yes
14486else
14487  ac_cv_lib_dl_dlopen=no
14488fi
14489rm -f core conftest.err conftest.$ac_objext \
14490    conftest$ac_exeext conftest.$ac_ext
14491LIBS=$ac_check_lib_save_LIBS
14492fi
14493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14494$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14495if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14496  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14497else
14498  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14499$as_echo_n "checking for dlopen in -lsvld... " >&6; }
14500if ${ac_cv_lib_svld_dlopen+:} false; then :
14501  $as_echo_n "(cached) " >&6
14502else
14503  ac_check_lib_save_LIBS=$LIBS
14504LIBS="-lsvld  $LIBS"
14505cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14506/* end confdefs.h.  */
14507
14508/* Override any GCC internal prototype to avoid an error.
14509   Use char because int might match the return type of a GCC
14510   builtin and then its argument prototype would still apply.  */
14511#ifdef __cplusplus
14512extern "C"
14513#endif
14514char dlopen ();
14515int
14516main ()
14517{
14518return dlopen ();
14519  ;
14520  return 0;
14521}
14522_ACEOF
14523if ac_fn_c_try_link "$LINENO"; then :
14524  ac_cv_lib_svld_dlopen=yes
14525else
14526  ac_cv_lib_svld_dlopen=no
14527fi
14528rm -f core conftest.err conftest.$ac_objext \
14529    conftest$ac_exeext conftest.$ac_ext
14530LIBS=$ac_check_lib_save_LIBS
14531fi
14532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14533$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14534if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14535  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14536else
14537  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14538$as_echo_n "checking for dld_link in -ldld... " >&6; }
14539if ${ac_cv_lib_dld_dld_link+:} false; then :
14540  $as_echo_n "(cached) " >&6
14541else
14542  ac_check_lib_save_LIBS=$LIBS
14543LIBS="-ldld  $LIBS"
14544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14545/* end confdefs.h.  */
14546
14547/* Override any GCC internal prototype to avoid an error.
14548   Use char because int might match the return type of a GCC
14549   builtin and then its argument prototype would still apply.  */
14550#ifdef __cplusplus
14551extern "C"
14552#endif
14553char dld_link ();
14554int
14555main ()
14556{
14557return dld_link ();
14558  ;
14559  return 0;
14560}
14561_ACEOF
14562if ac_fn_c_try_link "$LINENO"; then :
14563  ac_cv_lib_dld_dld_link=yes
14564else
14565  ac_cv_lib_dld_dld_link=no
14566fi
14567rm -f core conftest.err conftest.$ac_objext \
14568    conftest$ac_exeext conftest.$ac_ext
14569LIBS=$ac_check_lib_save_LIBS
14570fi
14571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14572$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14573if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14574  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14575fi
14576
14577
14578fi
14579
14580
14581fi
14582
14583
14584fi
14585
14586
14587fi
14588
14589
14590fi
14591
14592    ;;
14593  esac
14594
14595  if test "x$lt_cv_dlopen" != xno; then
14596    enable_dlopen=yes
14597  else
14598    enable_dlopen=no
14599  fi
14600
14601  case $lt_cv_dlopen in
14602  dlopen)
14603    save_CPPFLAGS="$CPPFLAGS"
14604    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14605
14606    save_LDFLAGS="$LDFLAGS"
14607    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14608
14609    save_LIBS="$LIBS"
14610    LIBS="$lt_cv_dlopen_libs $LIBS"
14611
14612    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14613$as_echo_n "checking whether a program can dlopen itself... " >&6; }
14614if ${lt_cv_dlopen_self+:} false; then :
14615  $as_echo_n "(cached) " >&6
14616else
14617  	  if test "$cross_compiling" = yes; then :
14618  lt_cv_dlopen_self=cross
14619else
14620  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14621  lt_status=$lt_dlunknown
14622  cat > conftest.$ac_ext <<_LT_EOF
14623#line 14623 "configure"
14624#include "confdefs.h"
14625
14626#if HAVE_DLFCN_H
14627#include <dlfcn.h>
14628#endif
14629
14630#include <stdio.h>
14631
14632#ifdef RTLD_GLOBAL
14633#  define LT_DLGLOBAL		RTLD_GLOBAL
14634#else
14635#  ifdef DL_GLOBAL
14636#    define LT_DLGLOBAL		DL_GLOBAL
14637#  else
14638#    define LT_DLGLOBAL		0
14639#  endif
14640#endif
14641
14642/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14643   find out it does not work in some platform. */
14644#ifndef LT_DLLAZY_OR_NOW
14645#  ifdef RTLD_LAZY
14646#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14647#  else
14648#    ifdef DL_LAZY
14649#      define LT_DLLAZY_OR_NOW		DL_LAZY
14650#    else
14651#      ifdef RTLD_NOW
14652#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14653#      else
14654#        ifdef DL_NOW
14655#          define LT_DLLAZY_OR_NOW	DL_NOW
14656#        else
14657#          define LT_DLLAZY_OR_NOW	0
14658#        endif
14659#      endif
14660#    endif
14661#  endif
14662#endif
14663
14664void fnord() { int i=42;}
14665int main ()
14666{
14667  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14668  int status = $lt_dlunknown;
14669
14670  if (self)
14671    {
14672      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14673      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14674      /* dlclose (self); */
14675    }
14676  else
14677    puts (dlerror ());
14678
14679  return status;
14680}
14681_LT_EOF
14682  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14683  (eval $ac_link) 2>&5
14684  ac_status=$?
14685  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14686  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14687    (./conftest; exit; ) >&5 2>/dev/null
14688    lt_status=$?
14689    case x$lt_status in
14690      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14691      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14692      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14693    esac
14694  else :
14695    # compilation failed
14696    lt_cv_dlopen_self=no
14697  fi
14698fi
14699rm -fr conftest*
14700
14701
14702fi
14703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14704$as_echo "$lt_cv_dlopen_self" >&6; }
14705
14706    if test "x$lt_cv_dlopen_self" = xyes; then
14707      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14708      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14709$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14710if ${lt_cv_dlopen_self_static+:} false; then :
14711  $as_echo_n "(cached) " >&6
14712else
14713  	  if test "$cross_compiling" = yes; then :
14714  lt_cv_dlopen_self_static=cross
14715else
14716  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14717  lt_status=$lt_dlunknown
14718  cat > conftest.$ac_ext <<_LT_EOF
14719#line 14719 "configure"
14720#include "confdefs.h"
14721
14722#if HAVE_DLFCN_H
14723#include <dlfcn.h>
14724#endif
14725
14726#include <stdio.h>
14727
14728#ifdef RTLD_GLOBAL
14729#  define LT_DLGLOBAL		RTLD_GLOBAL
14730#else
14731#  ifdef DL_GLOBAL
14732#    define LT_DLGLOBAL		DL_GLOBAL
14733#  else
14734#    define LT_DLGLOBAL		0
14735#  endif
14736#endif
14737
14738/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14739   find out it does not work in some platform. */
14740#ifndef LT_DLLAZY_OR_NOW
14741#  ifdef RTLD_LAZY
14742#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14743#  else
14744#    ifdef DL_LAZY
14745#      define LT_DLLAZY_OR_NOW		DL_LAZY
14746#    else
14747#      ifdef RTLD_NOW
14748#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14749#      else
14750#        ifdef DL_NOW
14751#          define LT_DLLAZY_OR_NOW	DL_NOW
14752#        else
14753#          define LT_DLLAZY_OR_NOW	0
14754#        endif
14755#      endif
14756#    endif
14757#  endif
14758#endif
14759
14760void fnord() { int i=42;}
14761int main ()
14762{
14763  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14764  int status = $lt_dlunknown;
14765
14766  if (self)
14767    {
14768      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14769      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14770      /* dlclose (self); */
14771    }
14772  else
14773    puts (dlerror ());
14774
14775  return status;
14776}
14777_LT_EOF
14778  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14779  (eval $ac_link) 2>&5
14780  ac_status=$?
14781  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14782  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14783    (./conftest; exit; ) >&5 2>/dev/null
14784    lt_status=$?
14785    case x$lt_status in
14786      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14787      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14788      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14789    esac
14790  else :
14791    # compilation failed
14792    lt_cv_dlopen_self_static=no
14793  fi
14794fi
14795rm -fr conftest*
14796
14797
14798fi
14799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14800$as_echo "$lt_cv_dlopen_self_static" >&6; }
14801    fi
14802
14803    CPPFLAGS="$save_CPPFLAGS"
14804    LDFLAGS="$save_LDFLAGS"
14805    LIBS="$save_LIBS"
14806    ;;
14807  esac
14808
14809  case $lt_cv_dlopen_self in
14810  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14811  *) enable_dlopen_self=unknown ;;
14812  esac
14813
14814  case $lt_cv_dlopen_self_static in
14815  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14816  *) enable_dlopen_self_static=unknown ;;
14817  esac
14818fi
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836striplib=
14837old_striplib=
14838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14839$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14840if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14841  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14842  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14844$as_echo "yes" >&6; }
14845else
14846# FIXME - insert some real tests, host_os isn't really good enough
14847  case $host_os in
14848  darwin*)
14849    if test -n "$STRIP" ; then
14850      striplib="$STRIP -x"
14851      old_striplib="$STRIP -S"
14852      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14853$as_echo "yes" >&6; }
14854    else
14855      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14856$as_echo "no" >&6; }
14857    fi
14858    ;;
14859  *)
14860    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14861$as_echo "no" >&6; }
14862    ;;
14863  esac
14864fi
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877  # Report which library types will actually be built
14878  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14879$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14881$as_echo "$can_build_shared" >&6; }
14882
14883  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14884$as_echo_n "checking whether to build shared libraries... " >&6; }
14885  test "$can_build_shared" = "no" && enable_shared=no
14886
14887  # On AIX, shared libraries and static libraries use the same namespace, and
14888  # are all built from PIC.
14889  case $host_os in
14890  aix3*)
14891    test "$enable_shared" = yes && enable_static=no
14892    if test -n "$RANLIB"; then
14893      archive_cmds="$archive_cmds~\$RANLIB \$lib"
14894      postinstall_cmds='$RANLIB $lib'
14895    fi
14896    ;;
14897
14898  aix[4-9]*)
14899    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14900      test "$enable_shared" = yes && enable_static=no
14901    fi
14902    ;;
14903  esac
14904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14905$as_echo "$enable_shared" >&6; }
14906
14907  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14908$as_echo_n "checking whether to build static libraries... " >&6; }
14909  # Make sure either enable_shared or enable_static is yes.
14910  test "$enable_shared" = yes || enable_static=yes
14911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14912$as_echo "$enable_static" >&6; }
14913
14914
14915
14916
14917fi
14918ac_ext=c
14919ac_cpp='$CPP $CPPFLAGS'
14920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14922ac_compiler_gnu=$ac_cv_c_compiler_gnu
14923
14924CC="$lt_save_CC"
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938        ac_config_commands="$ac_config_commands libtool"
14939
14940
14941
14942
14943# Only expand once:
14944
14945
14946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
14947$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
14948if ${libltdl_cv_shlibext+:} false; then :
14949  $as_echo_n "(cached) " >&6
14950else
14951
14952module=yes
14953eval libltdl_cv_shlibext=$shrext_cmds
14954
14955fi
14956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
14957$as_echo "$libltdl_cv_shlibext" >&6; }
14958if test -n "$libltdl_cv_shlibext"; then
14959
14960cat >>confdefs.h <<_ACEOF
14961#define LT_MODULE_EXT "$libltdl_cv_shlibext"
14962_ACEOF
14963
14964fi
14965
14966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
14967$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
14968if ${lt_cv_module_path_var+:} false; then :
14969  $as_echo_n "(cached) " >&6
14970else
14971  lt_cv_module_path_var="$shlibpath_var"
14972fi
14973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
14974$as_echo "$lt_cv_module_path_var" >&6; }
14975if test -n "$lt_cv_module_path_var"; then
14976
14977cat >>confdefs.h <<_ACEOF
14978#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
14979_ACEOF
14980
14981fi
14982
14983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
14984$as_echo_n "checking for the default library search path... " >&6; }
14985if ${lt_cv_sys_dlsearch_path+:} false; then :
14986  $as_echo_n "(cached) " >&6
14987else
14988  lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
14989fi
14990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
14991$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
14992if test -n "$lt_cv_sys_dlsearch_path"; then
14993  sys_dlsearch_path=
14994  for dir in $lt_cv_sys_dlsearch_path; do
14995    if test -z "$sys_dlsearch_path"; then
14996      sys_dlsearch_path="$dir"
14997    else
14998      sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
14999    fi
15000  done
15001
15002cat >>confdefs.h <<_ACEOF
15003#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
15004_ACEOF
15005
15006fi
15007
15008
15009LT_DLLOADERS=
15010
15011
15012ac_ext=c
15013ac_cpp='$CPP $CPPFLAGS'
15014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15016ac_compiler_gnu=$ac_cv_c_compiler_gnu
15017
15018
15019LIBADD_DLOPEN=
15020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15021$as_echo_n "checking for library containing dlopen... " >&6; }
15022if ${ac_cv_search_dlopen+:} false; then :
15023  $as_echo_n "(cached) " >&6
15024else
15025  ac_func_search_save_LIBS=$LIBS
15026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15027/* end confdefs.h.  */
15028
15029/* Override any GCC internal prototype to avoid an error.
15030   Use char because int might match the return type of a GCC
15031   builtin and then its argument prototype would still apply.  */
15032#ifdef __cplusplus
15033extern "C"
15034#endif
15035char dlopen ();
15036int
15037main ()
15038{
15039return dlopen ();
15040  ;
15041  return 0;
15042}
15043_ACEOF
15044for ac_lib in '' dl; do
15045  if test -z "$ac_lib"; then
15046    ac_res="none required"
15047  else
15048    ac_res=-l$ac_lib
15049    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15050  fi
15051  if ac_fn_c_try_link "$LINENO"; then :
15052  ac_cv_search_dlopen=$ac_res
15053fi
15054rm -f core conftest.err conftest.$ac_objext \
15055    conftest$ac_exeext
15056  if ${ac_cv_search_dlopen+:} false; then :
15057  break
15058fi
15059done
15060if ${ac_cv_search_dlopen+:} false; then :
15061
15062else
15063  ac_cv_search_dlopen=no
15064fi
15065rm conftest.$ac_ext
15066LIBS=$ac_func_search_save_LIBS
15067fi
15068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15069$as_echo "$ac_cv_search_dlopen" >&6; }
15070ac_res=$ac_cv_search_dlopen
15071if test "$ac_res" != no; then :
15072  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15073
15074$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
15075
15076	if test "$ac_cv_search_dlopen" != "none required" ; then
15077	  LIBADD_DLOPEN="-ldl"
15078	fi
15079	libltdl_cv_lib_dl_dlopen="yes"
15080	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15081else
15082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15083/* end confdefs.h.  */
15084#if HAVE_DLFCN_H
15085#  include <dlfcn.h>
15086#endif
15087
15088int
15089main ()
15090{
15091dlopen(0, 0);
15092  ;
15093  return 0;
15094}
15095_ACEOF
15096if ac_fn_c_try_link "$LINENO"; then :
15097
15098$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
15099
15100	    libltdl_cv_func_dlopen="yes"
15101	    LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15102else
15103  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15104$as_echo_n "checking for dlopen in -lsvld... " >&6; }
15105if ${ac_cv_lib_svld_dlopen+:} false; then :
15106  $as_echo_n "(cached) " >&6
15107else
15108  ac_check_lib_save_LIBS=$LIBS
15109LIBS="-lsvld  $LIBS"
15110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15111/* end confdefs.h.  */
15112
15113/* Override any GCC internal prototype to avoid an error.
15114   Use char because int might match the return type of a GCC
15115   builtin and then its argument prototype would still apply.  */
15116#ifdef __cplusplus
15117extern "C"
15118#endif
15119char dlopen ();
15120int
15121main ()
15122{
15123return dlopen ();
15124  ;
15125  return 0;
15126}
15127_ACEOF
15128if ac_fn_c_try_link "$LINENO"; then :
15129  ac_cv_lib_svld_dlopen=yes
15130else
15131  ac_cv_lib_svld_dlopen=no
15132fi
15133rm -f core conftest.err conftest.$ac_objext \
15134    conftest$ac_exeext conftest.$ac_ext
15135LIBS=$ac_check_lib_save_LIBS
15136fi
15137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15138$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15139if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15140
15141$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
15142
15143	        LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
15144		LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15145fi
15146
15147fi
15148rm -f core conftest.err conftest.$ac_objext \
15149    conftest$ac_exeext conftest.$ac_ext
15150fi
15151
15152if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
15153then
15154  lt_save_LIBS="$LIBS"
15155  LIBS="$LIBS $LIBADD_DLOPEN"
15156  for ac_func in dlerror
15157do :
15158  ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
15159if test "x$ac_cv_func_dlerror" = xyes; then :
15160  cat >>confdefs.h <<_ACEOF
15161#define HAVE_DLERROR 1
15162_ACEOF
15163
15164fi
15165done
15166
15167  LIBS="$lt_save_LIBS"
15168fi
15169
15170
15171LIBADD_SHL_LOAD=
15172ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15173if test "x$ac_cv_func_shl_load" = xyes; then :
15174
15175$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
15176
15177	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15178else
15179  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15180$as_echo_n "checking for shl_load in -ldld... " >&6; }
15181if ${ac_cv_lib_dld_shl_load+:} false; then :
15182  $as_echo_n "(cached) " >&6
15183else
15184  ac_check_lib_save_LIBS=$LIBS
15185LIBS="-ldld  $LIBS"
15186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15187/* end confdefs.h.  */
15188
15189/* Override any GCC internal prototype to avoid an error.
15190   Use char because int might match the return type of a GCC
15191   builtin and then its argument prototype would still apply.  */
15192#ifdef __cplusplus
15193extern "C"
15194#endif
15195char shl_load ();
15196int
15197main ()
15198{
15199return shl_load ();
15200  ;
15201  return 0;
15202}
15203_ACEOF
15204if ac_fn_c_try_link "$LINENO"; then :
15205  ac_cv_lib_dld_shl_load=yes
15206else
15207  ac_cv_lib_dld_shl_load=no
15208fi
15209rm -f core conftest.err conftest.$ac_objext \
15210    conftest$ac_exeext conftest.$ac_ext
15211LIBS=$ac_check_lib_save_LIBS
15212fi
15213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15214$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15215if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15216
15217$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
15218
15219	    LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15220	    LIBADD_SHL_LOAD="-ldld"
15221fi
15222
15223fi
15224
15225
15226
15227case $host_os in
15228darwin[1567].*)
15229# We only want this for pre-Mac OS X 10.4.
15230  ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
15231if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
15232
15233$as_echo "#define HAVE_DYLD 1" >>confdefs.h
15234
15235	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
15236fi
15237
15238  ;;
15239beos*)
15240  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
15241  ;;
15242cygwin* | mingw* | os2* | pw32*)
15243  ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
15244"
15245if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
15246  ac_have_decl=1
15247else
15248  ac_have_decl=0
15249fi
15250
15251cat >>confdefs.h <<_ACEOF
15252#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
15253_ACEOF
15254
15255  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
15256  ;;
15257esac
15258
15259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15260$as_echo_n "checking for dld_link in -ldld... " >&6; }
15261if ${ac_cv_lib_dld_dld_link+:} false; then :
15262  $as_echo_n "(cached) " >&6
15263else
15264  ac_check_lib_save_LIBS=$LIBS
15265LIBS="-ldld  $LIBS"
15266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15267/* end confdefs.h.  */
15268
15269/* Override any GCC internal prototype to avoid an error.
15270   Use char because int might match the return type of a GCC
15271   builtin and then its argument prototype would still apply.  */
15272#ifdef __cplusplus
15273extern "C"
15274#endif
15275char dld_link ();
15276int
15277main ()
15278{
15279return dld_link ();
15280  ;
15281  return 0;
15282}
15283_ACEOF
15284if ac_fn_c_try_link "$LINENO"; then :
15285  ac_cv_lib_dld_dld_link=yes
15286else
15287  ac_cv_lib_dld_dld_link=no
15288fi
15289rm -f core conftest.err conftest.$ac_objext \
15290    conftest$ac_exeext conftest.$ac_ext
15291LIBS=$ac_check_lib_save_LIBS
15292fi
15293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15294$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15295if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15296
15297$as_echo "#define HAVE_DLD 1" >>confdefs.h
15298
15299		LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
15300fi
15301
15302
15303
15304
15305LT_DLPREOPEN=
15306if test -n "$LT_DLLOADERS"
15307then
15308  for lt_loader in $LT_DLLOADERS; do
15309    LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
15310  done
15311
15312$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
15313
15314fi
15315
15316
15317LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
15318
15319
15320ac_ext=c
15321ac_cpp='$CPP $CPPFLAGS'
15322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15324ac_compiler_gnu=$ac_cv_c_compiler_gnu
15325
15326
15327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
15328$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
15329if ${lt_cv_sys_symbol_underscore+:} false; then :
15330  $as_echo_n "(cached) " >&6
15331else
15332  lt_cv_sys_symbol_underscore=no
15333  cat > conftest.$ac_ext <<_LT_EOF
15334void nm_test_func(){}
15335int main(){nm_test_func;return 0;}
15336_LT_EOF
15337  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15338  (eval $ac_compile) 2>&5
15339  ac_status=$?
15340  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15341  test $ac_status = 0; }; then
15342    # Now try to grab the symbols.
15343    ac_nlist=conftest.nm
15344    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
15345  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
15346  ac_status=$?
15347  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15348  test $ac_status = 0; } && test -s "$ac_nlist"; then
15349      # See whether the symbols have a leading underscore.
15350      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
15351        lt_cv_sys_symbol_underscore=yes
15352      else
15353        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
15354	  :
15355        else
15356	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
15357        fi
15358      fi
15359    else
15360      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
15361    fi
15362  else
15363    echo "configure: failed program was:" >&5
15364    cat conftest.c >&5
15365  fi
15366  rm -rf conftest*
15367
15368fi
15369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
15370$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
15371  sys_symbol_underscore=$lt_cv_sys_symbol_underscore
15372
15373
15374if test x"$lt_cv_sys_symbol_underscore" = xyes; then
15375  if test x"$libltdl_cv_func_dlopen" = xyes ||
15376     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
15377	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
15378$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
15379if ${libltdl_cv_need_uscore+:} false; then :
15380  $as_echo_n "(cached) " >&6
15381else
15382  libltdl_cv_need_uscore=unknown
15383          save_LIBS="$LIBS"
15384          LIBS="$LIBS $LIBADD_DLOPEN"
15385	  if test "$cross_compiling" = yes; then :
15386  libltdl_cv_need_uscore=cross
15387else
15388  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15389  lt_status=$lt_dlunknown
15390  cat > conftest.$ac_ext <<_LT_EOF
15391#line 15391 "configure"
15392#include "confdefs.h"
15393
15394#if HAVE_DLFCN_H
15395#include <dlfcn.h>
15396#endif
15397
15398#include <stdio.h>
15399
15400#ifdef RTLD_GLOBAL
15401#  define LT_DLGLOBAL		RTLD_GLOBAL
15402#else
15403#  ifdef DL_GLOBAL
15404#    define LT_DLGLOBAL		DL_GLOBAL
15405#  else
15406#    define LT_DLGLOBAL		0
15407#  endif
15408#endif
15409
15410/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15411   find out it does not work in some platform. */
15412#ifndef LT_DLLAZY_OR_NOW
15413#  ifdef RTLD_LAZY
15414#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
15415#  else
15416#    ifdef DL_LAZY
15417#      define LT_DLLAZY_OR_NOW		DL_LAZY
15418#    else
15419#      ifdef RTLD_NOW
15420#        define LT_DLLAZY_OR_NOW	RTLD_NOW
15421#      else
15422#        ifdef DL_NOW
15423#          define LT_DLLAZY_OR_NOW	DL_NOW
15424#        else
15425#          define LT_DLLAZY_OR_NOW	0
15426#        endif
15427#      endif
15428#    endif
15429#  endif
15430#endif
15431
15432void fnord() { int i=42;}
15433int main ()
15434{
15435  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15436  int status = $lt_dlunknown;
15437
15438  if (self)
15439    {
15440      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15441      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15442      /* dlclose (self); */
15443    }
15444  else
15445    puts (dlerror ());
15446
15447  return status;
15448}
15449_LT_EOF
15450  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15451  (eval $ac_link) 2>&5
15452  ac_status=$?
15453  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15454  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15455    (./conftest; exit; ) >&5 2>/dev/null
15456    lt_status=$?
15457    case x$lt_status in
15458      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
15459      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
15460      x$lt_dlunknown|x*)  ;;
15461    esac
15462  else :
15463    # compilation failed
15464
15465  fi
15466fi
15467rm -fr conftest*
15468
15469	  LIBS="$save_LIBS"
15470
15471fi
15472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
15473$as_echo "$libltdl_cv_need_uscore" >&6; }
15474  fi
15475fi
15476
15477if test x"$libltdl_cv_need_uscore" = xyes; then
15478
15479$as_echo "#define NEED_USCORE 1" >>confdefs.h
15480
15481fi
15482
15483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
15484$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
15485if ${lt_cv_sys_dlopen_deplibs+:} false; then :
15486  $as_echo_n "(cached) " >&6
15487else
15488  # PORTME does your system automatically load deplibs for dlopen?
15489  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
15490  # For now, we just catch OSes we know something about -- in the
15491  # future, we'll try test this programmatically.
15492  lt_cv_sys_dlopen_deplibs=unknown
15493  case $host_os in
15494  aix3*|aix4.1.*|aix4.2.*)
15495    # Unknown whether this is true for these versions of AIX, but
15496    # we want this `case' here to explicitly catch those versions.
15497    lt_cv_sys_dlopen_deplibs=unknown
15498    ;;
15499  aix[4-9]*)
15500    lt_cv_sys_dlopen_deplibs=yes
15501    ;;
15502  amigaos*)
15503    case $host_cpu in
15504    powerpc)
15505      lt_cv_sys_dlopen_deplibs=no
15506      ;;
15507    esac
15508    ;;
15509  darwin*)
15510    # Assuming the user has installed a libdl from somewhere, this is true
15511    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
15512    lt_cv_sys_dlopen_deplibs=yes
15513    ;;
15514  freebsd* | dragonfly*)
15515    lt_cv_sys_dlopen_deplibs=yes
15516    ;;
15517  gnu* | linux* | k*bsd*-gnu)
15518    # GNU and its variants, using gnu ld.so (Glibc)
15519    lt_cv_sys_dlopen_deplibs=yes
15520    ;;
15521  hpux10*|hpux11*)
15522    lt_cv_sys_dlopen_deplibs=yes
15523    ;;
15524  interix*)
15525    lt_cv_sys_dlopen_deplibs=yes
15526    ;;
15527  irix[12345]*|irix6.[01]*)
15528    # Catch all versions of IRIX before 6.2, and indicate that we don't
15529    # know how it worked for any of those versions.
15530    lt_cv_sys_dlopen_deplibs=unknown
15531    ;;
15532  irix*)
15533    # The case above catches anything before 6.2, and it's known that
15534    # at 6.2 and later dlopen does load deplibs.
15535    lt_cv_sys_dlopen_deplibs=yes
15536    ;;
15537  netbsd*)
15538    lt_cv_sys_dlopen_deplibs=yes
15539    ;;
15540  openbsd*)
15541    lt_cv_sys_dlopen_deplibs=yes
15542    ;;
15543  osf[1234]*)
15544    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
15545    # it did *not* use an RPATH in a shared library to find objects the
15546    # library depends on, so we explicitly say `no'.
15547    lt_cv_sys_dlopen_deplibs=no
15548    ;;
15549  osf5.0|osf5.0a|osf5.1)
15550    # dlopen *does* load deplibs and with the right loader patch applied
15551    # it even uses RPATH in a shared library to search for shared objects
15552    # that the library depends on, but there's no easy way to know if that
15553    # patch is installed.  Since this is the case, all we can really
15554    # say is unknown -- it depends on the patch being installed.  If
15555    # it is, this changes to `yes'.  Without it, it would be `no'.
15556    lt_cv_sys_dlopen_deplibs=unknown
15557    ;;
15558  osf*)
15559    # the two cases above should catch all versions of osf <= 5.1.  Read
15560    # the comments above for what we know about them.
15561    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
15562    # is used to find them so we can finally say `yes'.
15563    lt_cv_sys_dlopen_deplibs=yes
15564    ;;
15565  qnx*)
15566    lt_cv_sys_dlopen_deplibs=yes
15567    ;;
15568  solaris*)
15569    lt_cv_sys_dlopen_deplibs=yes
15570    ;;
15571  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15572    libltdl_cv_sys_dlopen_deplibs=yes
15573    ;;
15574  esac
15575
15576fi
15577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
15578$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
15579if test "$lt_cv_sys_dlopen_deplibs" != yes; then
15580
15581$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
15582
15583fi
15584
15585:
15586
15587for ac_header in argz.h
15588do :
15589  ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
15590"
15591if test "x$ac_cv_header_argz_h" = xyes; then :
15592  cat >>confdefs.h <<_ACEOF
15593#define HAVE_ARGZ_H 1
15594_ACEOF
15595
15596fi
15597
15598done
15599
15600
15601ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
15602#  include <argz.h>
15603#endif
15604"
15605if test "x$ac_cv_type_error_t" = xyes; then :
15606
15607cat >>confdefs.h <<_ACEOF
15608#define HAVE_ERROR_T 1
15609_ACEOF
15610
15611
15612else
15613
15614$as_echo "#define error_t int" >>confdefs.h
15615
15616
15617$as_echo "#define __error_t_defined 1" >>confdefs.h
15618
15619fi
15620
15621
15622ARGZ_H=
15623for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
15624	argz_next argz_stringify
15625do :
15626  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15627ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15628if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15629  cat >>confdefs.h <<_ACEOF
15630#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15631_ACEOF
15632
15633else
15634  ARGZ_H=argz.h;
15635
15636  _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
15637
15638fi
15639done
15640
15641
15642if test -z "$ARGZ_H"; then :
15643  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
15644$as_echo_n "checking if argz actually works... " >&6; }
15645if ${lt_cv_sys_argz_works+:} false; then :
15646  $as_echo_n "(cached) " >&6
15647else
15648  case $host_os in #(
15649	 *cygwin*)
15650	   lt_cv_sys_argz_works=no
15651	   if test "$cross_compiling" != no; then
15652	     lt_cv_sys_argz_works="guessing no"
15653	   else
15654	     lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
15655	     save_IFS=$IFS
15656	     IFS=-.
15657	     set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
15658	     IFS=$save_IFS
15659	     lt_os_major=${2-0}
15660	     lt_os_minor=${3-0}
15661	     lt_os_micro=${4-0}
15662	     if test "$lt_os_major" -gt 1 \
15663		|| { test "$lt_os_major" -eq 1 \
15664		  && { test "$lt_os_minor" -gt 5 \
15665		    || { test "$lt_os_minor" -eq 5 \
15666		      && test "$lt_os_micro" -gt 24; }; }; }; then
15667	       lt_cv_sys_argz_works=yes
15668	     fi
15669	   fi
15670	   ;; #(
15671	 *) lt_cv_sys_argz_works=yes ;;
15672	 esac
15673fi
15674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
15675$as_echo "$lt_cv_sys_argz_works" >&6; }
15676     if test $lt_cv_sys_argz_works = yes; then :
15677
15678$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
15679
15680else
15681  ARGZ_H=argz.h
15682
15683
15684  _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
15685
15686fi
15687fi
15688
15689
15690
15691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
15692$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
15693if ${libltdl_cv_preloaded_symbols+:} false; then :
15694  $as_echo_n "(cached) " >&6
15695else
15696  if test -n "$lt_cv_sys_global_symbol_pipe"; then
15697    libltdl_cv_preloaded_symbols=yes
15698  else
15699    libltdl_cv_preloaded_symbols=no
15700  fi
15701
15702fi
15703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
15704$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
15705if test x"$libltdl_cv_preloaded_symbols" = xyes; then
15706
15707$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
15708
15709fi
15710
15711
15712
15713# Set options
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726# Check whether --with-included_ltdl was given.
15727if test "${with_included_ltdl+set}" = set; then :
15728  withval=$with_included_ltdl;
15729fi
15730
15731
15732if test "x$with_included_ltdl" != xyes; then
15733  # We are not being forced to use the included libltdl sources, so
15734  # decide whether there is a useful installed version we can use.
15735  ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
15736
15737"
15738if test "x$ac_cv_header_ltdl_h" = xyes; then :
15739  ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
15740	    #include <ltdl.h>
15741"
15742if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
15743  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
15744$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
15745if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
15746  $as_echo_n "(cached) " >&6
15747else
15748  ac_check_lib_save_LIBS=$LIBS
15749LIBS="-lltdl  $LIBS"
15750cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15751/* end confdefs.h.  */
15752
15753/* Override any GCC internal prototype to avoid an error.
15754   Use char because int might match the return type of a GCC
15755   builtin and then its argument prototype would still apply.  */
15756#ifdef __cplusplus
15757extern "C"
15758#endif
15759char lt_dladvise_preload ();
15760int
15761main ()
15762{
15763return lt_dladvise_preload ();
15764  ;
15765  return 0;
15766}
15767_ACEOF
15768if ac_fn_c_try_link "$LINENO"; then :
15769  ac_cv_lib_ltdl_lt_dladvise_preload=yes
15770else
15771  ac_cv_lib_ltdl_lt_dladvise_preload=no
15772fi
15773rm -f core conftest.err conftest.$ac_objext \
15774    conftest$ac_exeext conftest.$ac_ext
15775LIBS=$ac_check_lib_save_LIBS
15776fi
15777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
15778$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
15779if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
15780  with_included_ltdl=no
15781else
15782  with_included_ltdl=yes
15783fi
15784
15785else
15786  with_included_ltdl=yes
15787fi
15788
15789else
15790  with_included_ltdl=yes
15791fi
15792
15793
15794fi
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804# Check whether --with-ltdl_include was given.
15805if test "${with_ltdl_include+set}" = set; then :
15806  withval=$with_ltdl_include;
15807fi
15808
15809
15810if test -n "$with_ltdl_include"; then
15811  if test -f "$with_ltdl_include/ltdl.h"; then :
15812  else
15813    as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
15814  fi
15815else
15816  with_ltdl_include=no
15817fi
15818
15819
15820# Check whether --with-ltdl_lib was given.
15821if test "${with_ltdl_lib+set}" = set; then :
15822  withval=$with_ltdl_lib;
15823fi
15824
15825
15826if test -n "$with_ltdl_lib"; then
15827  if test -f "$with_ltdl_lib/libltdl.la"; then :
15828  else
15829    as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
15830  fi
15831else
15832  with_ltdl_lib=no
15833fi
15834
15835case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
15836  ,yes,no,no,)
15837	case $enable_ltdl_convenience in
15838  no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
15839  "") enable_ltdl_convenience=yes
15840      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
15841esac
15842LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
15843LTDLDEPS=$LIBLTDL
15844LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
15845
15846
15847
15848
15849
15850# For backwards non-gettext consistent compatibility...
15851INCLTDL="$LTDLINCL"
15852
15853
15854	;;
15855  ,no,no,no,)
15856	# If the included ltdl is not to be used, then use the
15857	# preinstalled libltdl we found.
15858
15859$as_echo "#define HAVE_LTDL 1" >>confdefs.h
15860
15861	LIBLTDL=-lltdl
15862	LTDLDEPS=
15863	LTDLINCL=
15864	;;
15865  ,no*,no,*)
15866	as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
15867	;;
15868  *)	with_included_ltdl=no
15869	LIBLTDL="-L$with_ltdl_lib -lltdl"
15870	LTDLDEPS=
15871	LTDLINCL="-I$with_ltdl_include"
15872	;;
15873esac
15874INCLTDL="$LTDLINCL"
15875
15876# Report our decision...
15877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
15878$as_echo_n "checking where to find libltdl headers... " >&6; }
15879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
15880$as_echo "$LTDLINCL" >&6; }
15881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
15882$as_echo_n "checking where to find libltdl library... " >&6; }
15883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
15884$as_echo "$LIBLTDL" >&6; }
15885
15886
15887
15888# Check whether --enable-ltdl-install was given.
15889if test "${enable_ltdl_install+set}" = set; then :
15890  enableval=$enable_ltdl_install;
15891fi
15892
15893
15894case ,${enable_ltdl_install},${enable_ltdl_convenience} in
15895  *yes*) ;;
15896  *) enable_ltdl_convenience=yes ;;
15897esac
15898
15899 if test x"${enable_ltdl_install-no}" != xno; then
15900  INSTALL_LTDL_TRUE=
15901  INSTALL_LTDL_FALSE='#'
15902else
15903  INSTALL_LTDL_TRUE='#'
15904  INSTALL_LTDL_FALSE=
15905fi
15906
15907  if test x"${enable_ltdl_convenience-no}" != xno; then
15908  CONVENIENCE_LTDL_TRUE=
15909  CONVENIENCE_LTDL_FALSE='#'
15910else
15911  CONVENIENCE_LTDL_TRUE='#'
15912  CONVENIENCE_LTDL_FALSE=
15913fi
15914
15915
15916
15917    subdirs="$subdirs libltdl"
15918
15919
15920
15921
15922
15923# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
15924# the user used.  This is so that ltdl.h can pick up the parent projects
15925# config.h file, The first file in AC_CONFIG_HEADERS must contain the
15926# definitions required by ltdl.c.
15927# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
15928
15929
15930
15931for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
15932do :
15933  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15934ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15935"
15936if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15937  cat >>confdefs.h <<_ACEOF
15938#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15939_ACEOF
15940
15941fi
15942
15943done
15944
15945
15946for ac_func in closedir opendir readdir
15947do :
15948  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15949ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15950if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15951  cat >>confdefs.h <<_ACEOF
15952#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15953_ACEOF
15954
15955else
15956
15957
15958  _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
15959
15960fi
15961done
15962
15963for ac_func in strlcat strlcpy
15964do :
15965  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15966ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15967if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15968  cat >>confdefs.h <<_ACEOF
15969#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15970_ACEOF
15971
15972else
15973
15974
15975  _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
15976
15977fi
15978done
15979
15980
15981
15982cat >>confdefs.h <<_ACEOF
15983#define LT_LIBEXT "$libext"
15984_ACEOF
15985
15986
15987name=ltdl
15988LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
15989
15990
15991
15992
15993
15994
15995
15996
15997# Only expand once:
15998
15999
16000
16001
16002ac_ext=cpp
16003ac_cpp='$CXXCPP $CPPFLAGS'
16004ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16005ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16006ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16007if test -z "$CXX"; then
16008  if test -n "$CCC"; then
16009    CXX=$CCC
16010  else
16011    if test -n "$ac_tool_prefix"; then
16012  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
16013  do
16014    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16015set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16017$as_echo_n "checking for $ac_word... " >&6; }
16018if ${ac_cv_prog_CXX+:} false; then :
16019  $as_echo_n "(cached) " >&6
16020else
16021  if test -n "$CXX"; then
16022  ac_cv_prog_CXX="$CXX" # Let the user override the test.
16023else
16024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16025for as_dir in $PATH
16026do
16027  IFS=$as_save_IFS
16028  test -z "$as_dir" && as_dir=.
16029    for ac_exec_ext in '' $ac_executable_extensions; do
16030  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16031    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
16032    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16033    break 2
16034  fi
16035done
16036  done
16037IFS=$as_save_IFS
16038
16039fi
16040fi
16041CXX=$ac_cv_prog_CXX
16042if test -n "$CXX"; then
16043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
16044$as_echo "$CXX" >&6; }
16045else
16046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16047$as_echo "no" >&6; }
16048fi
16049
16050
16051    test -n "$CXX" && break
16052  done
16053fi
16054if test -z "$CXX"; then
16055  ac_ct_CXX=$CXX
16056  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
16057do
16058  # Extract the first word of "$ac_prog", so it can be a program name with args.
16059set dummy $ac_prog; ac_word=$2
16060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16061$as_echo_n "checking for $ac_word... " >&6; }
16062if ${ac_cv_prog_ac_ct_CXX+:} false; then :
16063  $as_echo_n "(cached) " >&6
16064else
16065  if test -n "$ac_ct_CXX"; then
16066  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
16067else
16068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16069for as_dir in $PATH
16070do
16071  IFS=$as_save_IFS
16072  test -z "$as_dir" && as_dir=.
16073    for ac_exec_ext in '' $ac_executable_extensions; do
16074  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16075    ac_cv_prog_ac_ct_CXX="$ac_prog"
16076    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16077    break 2
16078  fi
16079done
16080  done
16081IFS=$as_save_IFS
16082
16083fi
16084fi
16085ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
16086if test -n "$ac_ct_CXX"; then
16087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
16088$as_echo "$ac_ct_CXX" >&6; }
16089else
16090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16091$as_echo "no" >&6; }
16092fi
16093
16094
16095  test -n "$ac_ct_CXX" && break
16096done
16097
16098  if test "x$ac_ct_CXX" = x; then
16099    CXX="g++"
16100  else
16101    case $cross_compiling:$ac_tool_warned in
16102yes:)
16103{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16104$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16105ac_tool_warned=yes ;;
16106esac
16107    CXX=$ac_ct_CXX
16108  fi
16109fi
16110
16111  fi
16112fi
16113# Provide some information about the compiler.
16114$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
16115set X $ac_compile
16116ac_compiler=$2
16117for ac_option in --version -v -V -qversion; do
16118  { { ac_try="$ac_compiler $ac_option >&5"
16119case "(($ac_try" in
16120  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16121  *) ac_try_echo=$ac_try;;
16122esac
16123eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16124$as_echo "$ac_try_echo"; } >&5
16125  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
16126  ac_status=$?
16127  if test -s conftest.err; then
16128    sed '10a\
16129... rest of stderr output deleted ...
16130         10q' conftest.err >conftest.er1
16131    cat conftest.er1 >&5
16132  fi
16133  rm -f conftest.er1 conftest.err
16134  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16135  test $ac_status = 0; }
16136done
16137
16138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
16139$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
16140if ${ac_cv_cxx_compiler_gnu+:} false; then :
16141  $as_echo_n "(cached) " >&6
16142else
16143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16144/* end confdefs.h.  */
16145
16146int
16147main ()
16148{
16149#ifndef __GNUC__
16150       choke me
16151#endif
16152
16153  ;
16154  return 0;
16155}
16156_ACEOF
16157if ac_fn_cxx_try_compile "$LINENO"; then :
16158  ac_compiler_gnu=yes
16159else
16160  ac_compiler_gnu=no
16161fi
16162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16163ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
16164
16165fi
16166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
16167$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
16168if test $ac_compiler_gnu = yes; then
16169  GXX=yes
16170else
16171  GXX=
16172fi
16173ac_test_CXXFLAGS=${CXXFLAGS+set}
16174ac_save_CXXFLAGS=$CXXFLAGS
16175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
16176$as_echo_n "checking whether $CXX accepts -g... " >&6; }
16177if ${ac_cv_prog_cxx_g+:} false; then :
16178  $as_echo_n "(cached) " >&6
16179else
16180  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
16181   ac_cxx_werror_flag=yes
16182   ac_cv_prog_cxx_g=no
16183   CXXFLAGS="-g"
16184   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16185/* end confdefs.h.  */
16186
16187int
16188main ()
16189{
16190
16191  ;
16192  return 0;
16193}
16194_ACEOF
16195if ac_fn_cxx_try_compile "$LINENO"; then :
16196  ac_cv_prog_cxx_g=yes
16197else
16198  CXXFLAGS=""
16199      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16200/* end confdefs.h.  */
16201
16202int
16203main ()
16204{
16205
16206  ;
16207  return 0;
16208}
16209_ACEOF
16210if ac_fn_cxx_try_compile "$LINENO"; then :
16211
16212else
16213  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
16214	 CXXFLAGS="-g"
16215	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16216/* end confdefs.h.  */
16217
16218int
16219main ()
16220{
16221
16222  ;
16223  return 0;
16224}
16225_ACEOF
16226if ac_fn_cxx_try_compile "$LINENO"; then :
16227  ac_cv_prog_cxx_g=yes
16228fi
16229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16230fi
16231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16232fi
16233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16234   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
16235fi
16236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
16237$as_echo "$ac_cv_prog_cxx_g" >&6; }
16238if test "$ac_test_CXXFLAGS" = set; then
16239  CXXFLAGS=$ac_save_CXXFLAGS
16240elif test $ac_cv_prog_cxx_g = yes; then
16241  if test "$GXX" = yes; then
16242    CXXFLAGS="-g -O2"
16243  else
16244    CXXFLAGS="-g"
16245  fi
16246else
16247  if test "$GXX" = yes; then
16248    CXXFLAGS="-O2"
16249  else
16250    CXXFLAGS=
16251  fi
16252fi
16253ac_ext=c
16254ac_cpp='$CPP $CPPFLAGS'
16255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16257ac_compiler_gnu=$ac_cv_c_compiler_gnu
16258
16259depcc="$CXX"  am_compiler_list=
16260
16261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16262$as_echo_n "checking dependency style of $depcc... " >&6; }
16263if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
16264  $as_echo_n "(cached) " >&6
16265else
16266  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16267  # We make a subdir and do the tests there.  Otherwise we can end up
16268  # making bogus files that we don't know about and never remove.  For
16269  # instance it was reported that on HP-UX the gcc test will end up
16270  # making a dummy file named `D' -- because `-MD' means `put the output
16271  # in D'.
16272  mkdir conftest.dir
16273  # Copy depcomp to subdir because otherwise we won't find it if we're
16274  # using a relative directory.
16275  cp "$am_depcomp" conftest.dir
16276  cd conftest.dir
16277  # We will build objects and dependencies in a subdirectory because
16278  # it helps to detect inapplicable dependency modes.  For instance
16279  # both Tru64's cc and ICC support -MD to output dependencies as a
16280  # side effect of compilation, but ICC will put the dependencies in
16281  # the current directory while Tru64 will put them in the object
16282  # directory.
16283  mkdir sub
16284
16285  am_cv_CXX_dependencies_compiler_type=none
16286  if test "$am_compiler_list" = ""; then
16287     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16288  fi
16289  am__universal=false
16290  case " $depcc " in #(
16291     *\ -arch\ *\ -arch\ *) am__universal=true ;;
16292     esac
16293
16294  for depmode in $am_compiler_list; do
16295    # Setup a source with many dependencies, because some compilers
16296    # like to wrap large dependency lists on column 80 (with \), and
16297    # we should not choose a depcomp mode which is confused by this.
16298    #
16299    # We need to recreate these files for each test, as the compiler may
16300    # overwrite some of them when testing with obscure command lines.
16301    # This happens at least with the AIX C compiler.
16302    : > sub/conftest.c
16303    for i in 1 2 3 4 5 6; do
16304      echo '#include "conftst'$i'.h"' >> sub/conftest.c
16305      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16306      # Solaris 8's {/usr,}/bin/sh.
16307      touch sub/conftst$i.h
16308    done
16309    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16310
16311    # We check with `-c' and `-o' for the sake of the "dashmstdout"
16312    # mode.  It turns out that the SunPro C++ compiler does not properly
16313    # handle `-M -o', and we need to detect this.  Also, some Intel
16314    # versions had trouble with output in subdirs
16315    am__obj=sub/conftest.${OBJEXT-o}
16316    am__minus_obj="-o $am__obj"
16317    case $depmode in
16318    gcc)
16319      # This depmode causes a compiler race in universal mode.
16320      test "$am__universal" = false || continue
16321      ;;
16322    nosideeffect)
16323      # after this tag, mechanisms are not by side-effect, so they'll
16324      # only be used when explicitly requested
16325      if test "x$enable_dependency_tracking" = xyes; then
16326	continue
16327      else
16328	break
16329      fi
16330      ;;
16331    msvisualcpp | msvcmsys)
16332      # This compiler won't grok `-c -o', but also, the minuso test has
16333      # not run yet.  These depmodes are late enough in the game, and
16334      # so weak that their functioning should not be impacted.
16335      am__obj=conftest.${OBJEXT-o}
16336      am__minus_obj=
16337      ;;
16338    none) break ;;
16339    esac
16340    if depmode=$depmode \
16341       source=sub/conftest.c object=$am__obj \
16342       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16343       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16344         >/dev/null 2>conftest.err &&
16345       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16346       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16347       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16348       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16349      # icc doesn't choke on unknown options, it will just issue warnings
16350      # or remarks (even with -Werror).  So we grep stderr for any message
16351      # that says an option was ignored or not supported.
16352      # When given -MP, icc 7.0 and 7.1 complain thusly:
16353      #   icc: Command line warning: ignoring option '-M'; no argument required
16354      # The diagnosis changed in icc 8.0:
16355      #   icc: Command line remark: option '-MP' not supported
16356      if (grep 'ignoring option' conftest.err ||
16357          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16358        am_cv_CXX_dependencies_compiler_type=$depmode
16359        break
16360      fi
16361    fi
16362  done
16363
16364  cd ..
16365  rm -rf conftest.dir
16366else
16367  am_cv_CXX_dependencies_compiler_type=none
16368fi
16369
16370fi
16371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
16372$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
16373CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
16374
16375 if
16376  test "x$enable_dependency_tracking" != xno \
16377  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
16378  am__fastdepCXX_TRUE=
16379  am__fastdepCXX_FALSE='#'
16380else
16381  am__fastdepCXX_TRUE='#'
16382  am__fastdepCXX_FALSE=
16383fi
16384
16385
16386
16387ac_ext=cpp
16388ac_cpp='$CXXCPP $CPPFLAGS'
16389ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16390ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16391ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16392if test -z "$CXX"; then
16393  if test -n "$CCC"; then
16394    CXX=$CCC
16395  else
16396    if test -n "$ac_tool_prefix"; then
16397  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
16398  do
16399    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16400set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16402$as_echo_n "checking for $ac_word... " >&6; }
16403if ${ac_cv_prog_CXX+:} false; then :
16404  $as_echo_n "(cached) " >&6
16405else
16406  if test -n "$CXX"; then
16407  ac_cv_prog_CXX="$CXX" # Let the user override the test.
16408else
16409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16410for as_dir in $PATH
16411do
16412  IFS=$as_save_IFS
16413  test -z "$as_dir" && as_dir=.
16414    for ac_exec_ext in '' $ac_executable_extensions; do
16415  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16416    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
16417    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16418    break 2
16419  fi
16420done
16421  done
16422IFS=$as_save_IFS
16423
16424fi
16425fi
16426CXX=$ac_cv_prog_CXX
16427if test -n "$CXX"; then
16428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
16429$as_echo "$CXX" >&6; }
16430else
16431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16432$as_echo "no" >&6; }
16433fi
16434
16435
16436    test -n "$CXX" && break
16437  done
16438fi
16439if test -z "$CXX"; then
16440  ac_ct_CXX=$CXX
16441  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
16442do
16443  # Extract the first word of "$ac_prog", so it can be a program name with args.
16444set dummy $ac_prog; ac_word=$2
16445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16446$as_echo_n "checking for $ac_word... " >&6; }
16447if ${ac_cv_prog_ac_ct_CXX+:} false; then :
16448  $as_echo_n "(cached) " >&6
16449else
16450  if test -n "$ac_ct_CXX"; then
16451  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
16452else
16453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16454for as_dir in $PATH
16455do
16456  IFS=$as_save_IFS
16457  test -z "$as_dir" && as_dir=.
16458    for ac_exec_ext in '' $ac_executable_extensions; do
16459  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16460    ac_cv_prog_ac_ct_CXX="$ac_prog"
16461    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16462    break 2
16463  fi
16464done
16465  done
16466IFS=$as_save_IFS
16467
16468fi
16469fi
16470ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
16471if test -n "$ac_ct_CXX"; then
16472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
16473$as_echo "$ac_ct_CXX" >&6; }
16474else
16475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16476$as_echo "no" >&6; }
16477fi
16478
16479
16480  test -n "$ac_ct_CXX" && break
16481done
16482
16483  if test "x$ac_ct_CXX" = x; then
16484    CXX="g++"
16485  else
16486    case $cross_compiling:$ac_tool_warned in
16487yes:)
16488{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16489$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16490ac_tool_warned=yes ;;
16491esac
16492    CXX=$ac_ct_CXX
16493  fi
16494fi
16495
16496  fi
16497fi
16498# Provide some information about the compiler.
16499$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
16500set X $ac_compile
16501ac_compiler=$2
16502for ac_option in --version -v -V -qversion; do
16503  { { ac_try="$ac_compiler $ac_option >&5"
16504case "(($ac_try" in
16505  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16506  *) ac_try_echo=$ac_try;;
16507esac
16508eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16509$as_echo "$ac_try_echo"; } >&5
16510  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
16511  ac_status=$?
16512  if test -s conftest.err; then
16513    sed '10a\
16514... rest of stderr output deleted ...
16515         10q' conftest.err >conftest.er1
16516    cat conftest.er1 >&5
16517  fi
16518  rm -f conftest.er1 conftest.err
16519  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16520  test $ac_status = 0; }
16521done
16522
16523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
16524$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
16525if ${ac_cv_cxx_compiler_gnu+:} false; then :
16526  $as_echo_n "(cached) " >&6
16527else
16528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16529/* end confdefs.h.  */
16530
16531int
16532main ()
16533{
16534#ifndef __GNUC__
16535       choke me
16536#endif
16537
16538  ;
16539  return 0;
16540}
16541_ACEOF
16542if ac_fn_cxx_try_compile "$LINENO"; then :
16543  ac_compiler_gnu=yes
16544else
16545  ac_compiler_gnu=no
16546fi
16547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16548ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
16549
16550fi
16551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
16552$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
16553if test $ac_compiler_gnu = yes; then
16554  GXX=yes
16555else
16556  GXX=
16557fi
16558ac_test_CXXFLAGS=${CXXFLAGS+set}
16559ac_save_CXXFLAGS=$CXXFLAGS
16560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
16561$as_echo_n "checking whether $CXX accepts -g... " >&6; }
16562if ${ac_cv_prog_cxx_g+:} false; then :
16563  $as_echo_n "(cached) " >&6
16564else
16565  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
16566   ac_cxx_werror_flag=yes
16567   ac_cv_prog_cxx_g=no
16568   CXXFLAGS="-g"
16569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16570/* end confdefs.h.  */
16571
16572int
16573main ()
16574{
16575
16576  ;
16577  return 0;
16578}
16579_ACEOF
16580if ac_fn_cxx_try_compile "$LINENO"; then :
16581  ac_cv_prog_cxx_g=yes
16582else
16583  CXXFLAGS=""
16584      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16585/* end confdefs.h.  */
16586
16587int
16588main ()
16589{
16590
16591  ;
16592  return 0;
16593}
16594_ACEOF
16595if ac_fn_cxx_try_compile "$LINENO"; then :
16596
16597else
16598  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
16599	 CXXFLAGS="-g"
16600	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16601/* end confdefs.h.  */
16602
16603int
16604main ()
16605{
16606
16607  ;
16608  return 0;
16609}
16610_ACEOF
16611if ac_fn_cxx_try_compile "$LINENO"; then :
16612  ac_cv_prog_cxx_g=yes
16613fi
16614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16615fi
16616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16617fi
16618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16619   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
16620fi
16621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
16622$as_echo "$ac_cv_prog_cxx_g" >&6; }
16623if test "$ac_test_CXXFLAGS" = set; then
16624  CXXFLAGS=$ac_save_CXXFLAGS
16625elif test $ac_cv_prog_cxx_g = yes; then
16626  if test "$GXX" = yes; then
16627    CXXFLAGS="-g -O2"
16628  else
16629    CXXFLAGS="-g"
16630  fi
16631else
16632  if test "$GXX" = yes; then
16633    CXXFLAGS="-O2"
16634  else
16635    CXXFLAGS=
16636  fi
16637fi
16638ac_ext=c
16639ac_cpp='$CPP $CPPFLAGS'
16640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16642ac_compiler_gnu=$ac_cv_c_compiler_gnu
16643
16644depcc="$CXX"  am_compiler_list=
16645
16646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16647$as_echo_n "checking dependency style of $depcc... " >&6; }
16648if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
16649  $as_echo_n "(cached) " >&6
16650else
16651  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16652  # We make a subdir and do the tests there.  Otherwise we can end up
16653  # making bogus files that we don't know about and never remove.  For
16654  # instance it was reported that on HP-UX the gcc test will end up
16655  # making a dummy file named `D' -- because `-MD' means `put the output
16656  # in D'.
16657  mkdir conftest.dir
16658  # Copy depcomp to subdir because otherwise we won't find it if we're
16659  # using a relative directory.
16660  cp "$am_depcomp" conftest.dir
16661  cd conftest.dir
16662  # We will build objects and dependencies in a subdirectory because
16663  # it helps to detect inapplicable dependency modes.  For instance
16664  # both Tru64's cc and ICC support -MD to output dependencies as a
16665  # side effect of compilation, but ICC will put the dependencies in
16666  # the current directory while Tru64 will put them in the object
16667  # directory.
16668  mkdir sub
16669
16670  am_cv_CXX_dependencies_compiler_type=none
16671  if test "$am_compiler_list" = ""; then
16672     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16673  fi
16674  am__universal=false
16675  case " $depcc " in #(
16676     *\ -arch\ *\ -arch\ *) am__universal=true ;;
16677     esac
16678
16679  for depmode in $am_compiler_list; do
16680    # Setup a source with many dependencies, because some compilers
16681    # like to wrap large dependency lists on column 80 (with \), and
16682    # we should not choose a depcomp mode which is confused by this.
16683    #
16684    # We need to recreate these files for each test, as the compiler may
16685    # overwrite some of them when testing with obscure command lines.
16686    # This happens at least with the AIX C compiler.
16687    : > sub/conftest.c
16688    for i in 1 2 3 4 5 6; do
16689      echo '#include "conftst'$i'.h"' >> sub/conftest.c
16690      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16691      # Solaris 8's {/usr,}/bin/sh.
16692      touch sub/conftst$i.h
16693    done
16694    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16695
16696    # We check with `-c' and `-o' for the sake of the "dashmstdout"
16697    # mode.  It turns out that the SunPro C++ compiler does not properly
16698    # handle `-M -o', and we need to detect this.  Also, some Intel
16699    # versions had trouble with output in subdirs
16700    am__obj=sub/conftest.${OBJEXT-o}
16701    am__minus_obj="-o $am__obj"
16702    case $depmode in
16703    gcc)
16704      # This depmode causes a compiler race in universal mode.
16705      test "$am__universal" = false || continue
16706      ;;
16707    nosideeffect)
16708      # after this tag, mechanisms are not by side-effect, so they'll
16709      # only be used when explicitly requested
16710      if test "x$enable_dependency_tracking" = xyes; then
16711	continue
16712      else
16713	break
16714      fi
16715      ;;
16716    msvisualcpp | msvcmsys)
16717      # This compiler won't grok `-c -o', but also, the minuso test has
16718      # not run yet.  These depmodes are late enough in the game, and
16719      # so weak that their functioning should not be impacted.
16720      am__obj=conftest.${OBJEXT-o}
16721      am__minus_obj=
16722      ;;
16723    none) break ;;
16724    esac
16725    if depmode=$depmode \
16726       source=sub/conftest.c object=$am__obj \
16727       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16728       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16729         >/dev/null 2>conftest.err &&
16730       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16731       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16732       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16733       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16734      # icc doesn't choke on unknown options, it will just issue warnings
16735      # or remarks (even with -Werror).  So we grep stderr for any message
16736      # that says an option was ignored or not supported.
16737      # When given -MP, icc 7.0 and 7.1 complain thusly:
16738      #   icc: Command line warning: ignoring option '-M'; no argument required
16739      # The diagnosis changed in icc 8.0:
16740      #   icc: Command line remark: option '-MP' not supported
16741      if (grep 'ignoring option' conftest.err ||
16742          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16743        am_cv_CXX_dependencies_compiler_type=$depmode
16744        break
16745      fi
16746    fi
16747  done
16748
16749  cd ..
16750  rm -rf conftest.dir
16751else
16752  am_cv_CXX_dependencies_compiler_type=none
16753fi
16754
16755fi
16756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
16757$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
16758CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
16759
16760 if
16761  test "x$enable_dependency_tracking" != xno \
16762  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
16763  am__fastdepCXX_TRUE=
16764  am__fastdepCXX_FALSE='#'
16765else
16766  am__fastdepCXX_TRUE='#'
16767  am__fastdepCXX_FALSE=
16768fi
16769
16770
16771if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16772    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16773    (test "X$CXX" != "Xg++"))) ; then
16774  ac_ext=cpp
16775ac_cpp='$CXXCPP $CPPFLAGS'
16776ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16777ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16778ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16780$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16781if test -z "$CXXCPP"; then
16782  if ${ac_cv_prog_CXXCPP+:} false; then :
16783  $as_echo_n "(cached) " >&6
16784else
16785      # Double quotes because CXXCPP needs to be expanded
16786    for CXXCPP in "$CXX -E" "/lib/cpp"
16787    do
16788      ac_preproc_ok=false
16789for ac_cxx_preproc_warn_flag in '' yes
16790do
16791  # Use a header file that comes with gcc, so configuring glibc
16792  # with a fresh cross-compiler works.
16793  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16794  # <limits.h> exists even on freestanding compilers.
16795  # On the NeXT, cc -E runs the code through the compiler's parser,
16796  # not just through cpp. "Syntax error" is here to catch this case.
16797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16798/* end confdefs.h.  */
16799#ifdef __STDC__
16800# include <limits.h>
16801#else
16802# include <assert.h>
16803#endif
16804		     Syntax error
16805_ACEOF
16806if ac_fn_cxx_try_cpp "$LINENO"; then :
16807
16808else
16809  # Broken: fails on valid input.
16810continue
16811fi
16812rm -f conftest.err conftest.i conftest.$ac_ext
16813
16814  # OK, works on sane cases.  Now check whether nonexistent headers
16815  # can be detected and how.
16816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16817/* end confdefs.h.  */
16818#include <ac_nonexistent.h>
16819_ACEOF
16820if ac_fn_cxx_try_cpp "$LINENO"; then :
16821  # Broken: success on invalid input.
16822continue
16823else
16824  # Passes both tests.
16825ac_preproc_ok=:
16826break
16827fi
16828rm -f conftest.err conftest.i conftest.$ac_ext
16829
16830done
16831# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16832rm -f conftest.i conftest.err conftest.$ac_ext
16833if $ac_preproc_ok; then :
16834  break
16835fi
16836
16837    done
16838    ac_cv_prog_CXXCPP=$CXXCPP
16839
16840fi
16841  CXXCPP=$ac_cv_prog_CXXCPP
16842else
16843  ac_cv_prog_CXXCPP=$CXXCPP
16844fi
16845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16846$as_echo "$CXXCPP" >&6; }
16847ac_preproc_ok=false
16848for ac_cxx_preproc_warn_flag in '' yes
16849do
16850  # Use a header file that comes with gcc, so configuring glibc
16851  # with a fresh cross-compiler works.
16852  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16853  # <limits.h> exists even on freestanding compilers.
16854  # On the NeXT, cc -E runs the code through the compiler's parser,
16855  # not just through cpp. "Syntax error" is here to catch this case.
16856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16857/* end confdefs.h.  */
16858#ifdef __STDC__
16859# include <limits.h>
16860#else
16861# include <assert.h>
16862#endif
16863		     Syntax error
16864_ACEOF
16865if ac_fn_cxx_try_cpp "$LINENO"; then :
16866
16867else
16868  # Broken: fails on valid input.
16869continue
16870fi
16871rm -f conftest.err conftest.i conftest.$ac_ext
16872
16873  # OK, works on sane cases.  Now check whether nonexistent headers
16874  # can be detected and how.
16875  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16876/* end confdefs.h.  */
16877#include <ac_nonexistent.h>
16878_ACEOF
16879if ac_fn_cxx_try_cpp "$LINENO"; then :
16880  # Broken: success on invalid input.
16881continue
16882else
16883  # Passes both tests.
16884ac_preproc_ok=:
16885break
16886fi
16887rm -f conftest.err conftest.i conftest.$ac_ext
16888
16889done
16890# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16891rm -f conftest.i conftest.err conftest.$ac_ext
16892if $ac_preproc_ok; then :
16893
16894else
16895  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16896$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16897_lt_caught_CXX_error=yes; }
16898fi
16899
16900ac_ext=c
16901ac_cpp='$CPP $CPPFLAGS'
16902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16904ac_compiler_gnu=$ac_cv_c_compiler_gnu
16905
16906else
16907  _lt_caught_CXX_error=yes
16908fi
16909
16910
16911
16912
16913ac_ext=cpp
16914ac_cpp='$CXXCPP $CPPFLAGS'
16915ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16916ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16917ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16918
16919archive_cmds_need_lc_CXX=no
16920allow_undefined_flag_CXX=
16921always_export_symbols_CXX=no
16922archive_expsym_cmds_CXX=
16923compiler_needs_object_CXX=no
16924export_dynamic_flag_spec_CXX=
16925hardcode_direct_CXX=no
16926hardcode_direct_absolute_CXX=no
16927hardcode_libdir_flag_spec_CXX=
16928hardcode_libdir_flag_spec_ld_CXX=
16929hardcode_libdir_separator_CXX=
16930hardcode_minus_L_CXX=no
16931hardcode_shlibpath_var_CXX=unsupported
16932hardcode_automatic_CXX=no
16933inherit_rpath_CXX=no
16934module_cmds_CXX=
16935module_expsym_cmds_CXX=
16936link_all_deplibs_CXX=unknown
16937old_archive_cmds_CXX=$old_archive_cmds
16938no_undefined_flag_CXX=
16939whole_archive_flag_spec_CXX=
16940enable_shared_with_static_runtimes_CXX=no
16941
16942# Source file extension for C++ test sources.
16943ac_ext=cpp
16944
16945# Object file extension for compiled C++ test sources.
16946objext=o
16947objext_CXX=$objext
16948
16949# No sense in running all these tests if we already determined that
16950# the CXX compiler isn't working.  Some variables (like enable_shared)
16951# are currently assumed to apply to all compilers on this platform,
16952# and will be corrupted by setting them based on a non-working compiler.
16953if test "$_lt_caught_CXX_error" != yes; then
16954  # Code to be used in simple compile tests
16955  lt_simple_compile_test_code="int some_variable = 0;"
16956
16957  # Code to be used in simple link tests
16958  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16959
16960  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16961
16962
16963
16964
16965
16966
16967# If no C compiler was specified, use CC.
16968LTCC=${LTCC-"$CC"}
16969
16970# If no C compiler flags were specified, use CFLAGS.
16971LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16972
16973# Allow CC to be a program name with arguments.
16974compiler=$CC
16975
16976
16977  # save warnings/boilerplate of simple test code
16978  ac_outfile=conftest.$ac_objext
16979echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16980eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16981_lt_compiler_boilerplate=`cat conftest.err`
16982$RM conftest*
16983
16984  ac_outfile=conftest.$ac_objext
16985echo "$lt_simple_link_test_code" >conftest.$ac_ext
16986eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16987_lt_linker_boilerplate=`cat conftest.err`
16988$RM -r conftest*
16989
16990
16991  # Allow CC to be a program name with arguments.
16992  lt_save_CC=$CC
16993  lt_save_LD=$LD
16994  lt_save_GCC=$GCC
16995  GCC=$GXX
16996  lt_save_with_gnu_ld=$with_gnu_ld
16997  lt_save_path_LD=$lt_cv_path_LD
16998  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16999    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17000  else
17001    $as_unset lt_cv_prog_gnu_ld
17002  fi
17003  if test -n "${lt_cv_path_LDCXX+set}"; then
17004    lt_cv_path_LD=$lt_cv_path_LDCXX
17005  else
17006    $as_unset lt_cv_path_LD
17007  fi
17008  test -z "${LDCXX+set}" || LD=$LDCXX
17009  CC=${CXX-"c++"}
17010  compiler=$CC
17011  compiler_CXX=$CC
17012  for cc_temp in $compiler""; do
17013  case $cc_temp in
17014    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17015    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17016    \-*) ;;
17017    *) break;;
17018  esac
17019done
17020cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17021
17022
17023  if test -n "$compiler"; then
17024    # We don't want -fno-exception when compiling C++ code, so set the
17025    # no_builtin_flag separately
17026    if test "$GXX" = yes; then
17027      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17028    else
17029      lt_prog_compiler_no_builtin_flag_CXX=
17030    fi
17031
17032    if test "$GXX" = yes; then
17033      # Set up default GNU C++ configuration
17034
17035
17036
17037# Check whether --with-gnu-ld was given.
17038if test "${with_gnu_ld+set}" = set; then :
17039  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17040else
17041  with_gnu_ld=no
17042fi
17043
17044ac_prog=ld
17045if test "$GCC" = yes; then
17046  # Check if gcc -print-prog-name=ld gives a path.
17047  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17048$as_echo_n "checking for ld used by $CC... " >&6; }
17049  case $host in
17050  *-*-mingw*)
17051    # gcc leaves a trailing carriage return which upsets mingw
17052    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17053  *)
17054    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17055  esac
17056  case $ac_prog in
17057    # Accept absolute paths.
17058    [\\/]* | ?:[\\/]*)
17059      re_direlt='/[^/][^/]*/\.\./'
17060      # Canonicalize the pathname of ld
17061      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17062      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17063	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17064      done
17065      test -z "$LD" && LD="$ac_prog"
17066      ;;
17067  "")
17068    # If it fails, then pretend we aren't using GCC.
17069    ac_prog=ld
17070    ;;
17071  *)
17072    # If it is relative, then search for the first ld in PATH.
17073    with_gnu_ld=unknown
17074    ;;
17075  esac
17076elif test "$with_gnu_ld" = yes; then
17077  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17078$as_echo_n "checking for GNU ld... " >&6; }
17079else
17080  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17081$as_echo_n "checking for non-GNU ld... " >&6; }
17082fi
17083if ${lt_cv_path_LD+:} false; then :
17084  $as_echo_n "(cached) " >&6
17085else
17086  if test -z "$LD"; then
17087  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17088  for ac_dir in $PATH; do
17089    IFS="$lt_save_ifs"
17090    test -z "$ac_dir" && ac_dir=.
17091    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17092      lt_cv_path_LD="$ac_dir/$ac_prog"
17093      # Check to see if the program is GNU ld.  I'd rather use --version,
17094      # but apparently some variants of GNU ld only accept -v.
17095      # Break only if it was the GNU/non-GNU ld that we prefer.
17096      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17097      *GNU* | *'with BFD'*)
17098	test "$with_gnu_ld" != no && break
17099	;;
17100      *)
17101	test "$with_gnu_ld" != yes && break
17102	;;
17103      esac
17104    fi
17105  done
17106  IFS="$lt_save_ifs"
17107else
17108  lt_cv_path_LD="$LD" # Let the user override the test with a path.
17109fi
17110fi
17111
17112LD="$lt_cv_path_LD"
17113if test -n "$LD"; then
17114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17115$as_echo "$LD" >&6; }
17116else
17117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17118$as_echo "no" >&6; }
17119fi
17120test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17122$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17123if ${lt_cv_prog_gnu_ld+:} false; then :
17124  $as_echo_n "(cached) " >&6
17125else
17126  # I'd rather use --version here, but apparently some GNU lds only accept -v.
17127case `$LD -v 2>&1 </dev/null` in
17128*GNU* | *'with BFD'*)
17129  lt_cv_prog_gnu_ld=yes
17130  ;;
17131*)
17132  lt_cv_prog_gnu_ld=no
17133  ;;
17134esac
17135fi
17136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17137$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17138with_gnu_ld=$lt_cv_prog_gnu_ld
17139
17140
17141
17142
17143
17144
17145
17146      # Check if GNU C++ uses GNU ld as the underlying linker, since the
17147      # archiving commands below assume that GNU ld is being used.
17148      if test "$with_gnu_ld" = yes; then
17149        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17150        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'
17151
17152        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17153        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17154
17155        # If archive_cmds runs LD, not CC, wlarc should be empty
17156        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17157        #     investigate it a little bit more. (MM)
17158        wlarc='${wl}'
17159
17160        # ancient GNU ld didn't support --whole-archive et. al.
17161        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17162	  $GREP 'no-whole-archive' > /dev/null; then
17163          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17164        else
17165          whole_archive_flag_spec_CXX=
17166        fi
17167      else
17168        with_gnu_ld=no
17169        wlarc=
17170
17171        # A generic and very simple default shared library creation
17172        # command for GNU C++ for the case where it uses the native
17173        # linker, instead of GNU ld.  If possible, this setting should
17174        # overridden to take advantage of the native linker features on
17175        # the platform it is being used on.
17176        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17177      fi
17178
17179      # Commands to make compiler produce verbose output that lists
17180      # what "hidden" libraries, object files and flags are used when
17181      # linking a shared library.
17182      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
17183
17184    else
17185      GXX=no
17186      with_gnu_ld=no
17187      wlarc=
17188    fi
17189
17190    # PORTME: fill in a description of your system's C++ link characteristics
17191    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17192$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17193    ld_shlibs_CXX=yes
17194    case $host_os in
17195      aix3*)
17196        # FIXME: insert proper C++ library support
17197        ld_shlibs_CXX=no
17198        ;;
17199      aix[4-9]*)
17200        if test "$host_cpu" = ia64; then
17201          # On IA64, the linker does run time linking by default, so we don't
17202          # have to do anything special.
17203          aix_use_runtimelinking=no
17204          exp_sym_flag='-Bexport'
17205          no_entry_flag=""
17206        else
17207          aix_use_runtimelinking=no
17208
17209          # Test if we are trying to use run time linking or normal
17210          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17211          # need to do runtime linking.
17212          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17213	    for ld_flag in $LDFLAGS; do
17214	      case $ld_flag in
17215	      *-brtl*)
17216	        aix_use_runtimelinking=yes
17217	        break
17218	        ;;
17219	      esac
17220	    done
17221	    ;;
17222          esac
17223
17224          exp_sym_flag='-bexport'
17225          no_entry_flag='-bnoentry'
17226        fi
17227
17228        # When large executables or shared objects are built, AIX ld can
17229        # have problems creating the table of contents.  If linking a library
17230        # or program results in "error TOC overflow" add -mminimal-toc to
17231        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17232        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17233
17234        archive_cmds_CXX=''
17235        hardcode_direct_CXX=yes
17236        hardcode_direct_absolute_CXX=yes
17237        hardcode_libdir_separator_CXX=':'
17238        link_all_deplibs_CXX=yes
17239        file_list_spec_CXX='${wl}-f,'
17240
17241        if test "$GXX" = yes; then
17242          case $host_os in aix4.[012]|aix4.[012].*)
17243          # We only want to do this on AIX 4.2 and lower, the check
17244          # below for broken collect2 doesn't work under 4.3+
17245	  collect2name=`${CC} -print-prog-name=collect2`
17246	  if test -f "$collect2name" &&
17247	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17248	  then
17249	    # We have reworked collect2
17250	    :
17251	  else
17252	    # We have old collect2
17253	    hardcode_direct_CXX=unsupported
17254	    # It fails to find uninstalled libraries when the uninstalled
17255	    # path is not listed in the libpath.  Setting hardcode_minus_L
17256	    # to unsupported forces relinking
17257	    hardcode_minus_L_CXX=yes
17258	    hardcode_libdir_flag_spec_CXX='-L$libdir'
17259	    hardcode_libdir_separator_CXX=
17260	  fi
17261          esac
17262          shared_flag='-shared'
17263	  if test "$aix_use_runtimelinking" = yes; then
17264	    shared_flag="$shared_flag "'${wl}-G'
17265	  fi
17266        else
17267          # not using gcc
17268          if test "$host_cpu" = ia64; then
17269	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17270	  # chokes on -Wl,-G. The following line is correct:
17271	  shared_flag='-G'
17272          else
17273	    if test "$aix_use_runtimelinking" = yes; then
17274	      shared_flag='${wl}-G'
17275	    else
17276	      shared_flag='${wl}-bM:SRE'
17277	    fi
17278          fi
17279        fi
17280
17281        export_dynamic_flag_spec_CXX='${wl}-bexpall'
17282        # It seems that -bexpall does not export symbols beginning with
17283        # underscore (_), so it is better to generate a list of symbols to
17284	# export.
17285        always_export_symbols_CXX=yes
17286        if test "$aix_use_runtimelinking" = yes; then
17287          # Warning - without using the other runtime loading flags (-brtl),
17288          # -berok will link without error, but may produce a broken library.
17289          allow_undefined_flag_CXX='-berok'
17290          # Determine the default libpath from the value encoded in an empty
17291          # executable.
17292          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17293/* end confdefs.h.  */
17294
17295int
17296main ()
17297{
17298
17299  ;
17300  return 0;
17301}
17302_ACEOF
17303if ac_fn_cxx_try_link "$LINENO"; then :
17304
17305lt_aix_libpath_sed='
17306    /Import File Strings/,/^$/ {
17307	/^0/ {
17308	    s/^0  *\(.*\)$/\1/
17309	    p
17310	}
17311    }'
17312aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17313# Check for a 64-bit object if we didn't find anything.
17314if test -z "$aix_libpath"; then
17315  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17316fi
17317fi
17318rm -f core conftest.err conftest.$ac_objext \
17319    conftest$ac_exeext conftest.$ac_ext
17320if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17321
17322          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17323
17324          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"
17325        else
17326          if test "$host_cpu" = ia64; then
17327	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17328	    allow_undefined_flag_CXX="-z nodefs"
17329	    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"
17330          else
17331	    # Determine the default libpath from the value encoded in an
17332	    # empty executable.
17333	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17334/* end confdefs.h.  */
17335
17336int
17337main ()
17338{
17339
17340  ;
17341  return 0;
17342}
17343_ACEOF
17344if ac_fn_cxx_try_link "$LINENO"; then :
17345
17346lt_aix_libpath_sed='
17347    /Import File Strings/,/^$/ {
17348	/^0/ {
17349	    s/^0  *\(.*\)$/\1/
17350	    p
17351	}
17352    }'
17353aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17354# Check for a 64-bit object if we didn't find anything.
17355if test -z "$aix_libpath"; then
17356  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17357fi
17358fi
17359rm -f core conftest.err conftest.$ac_objext \
17360    conftest$ac_exeext conftest.$ac_ext
17361if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17362
17363	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17364	    # Warning - without using the other run time loading flags,
17365	    # -berok will link without error, but may produce a broken library.
17366	    no_undefined_flag_CXX=' ${wl}-bernotok'
17367	    allow_undefined_flag_CXX=' ${wl}-berok'
17368	    # Exported symbols can be pulled into shared objects from archives
17369	    whole_archive_flag_spec_CXX='$convenience'
17370	    archive_cmds_need_lc_CXX=yes
17371	    # This is similar to how AIX traditionally builds its shared
17372	    # libraries.
17373	    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'
17374          fi
17375        fi
17376        ;;
17377
17378      beos*)
17379	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17380	  allow_undefined_flag_CXX=unsupported
17381	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17382	  # support --undefined.  This deserves some investigation.  FIXME
17383	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17384	else
17385	  ld_shlibs_CXX=no
17386	fi
17387	;;
17388
17389      chorus*)
17390        case $cc_basename in
17391          *)
17392	  # FIXME: insert proper C++ library support
17393	  ld_shlibs_CXX=no
17394	  ;;
17395        esac
17396        ;;
17397
17398      cygwin* | mingw* | pw32* | cegcc*)
17399        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17400        # as there is no search path for DLLs.
17401        hardcode_libdir_flag_spec_CXX='-L$libdir'
17402        allow_undefined_flag_CXX=unsupported
17403        always_export_symbols_CXX=no
17404        enable_shared_with_static_runtimes_CXX=yes
17405
17406        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17407          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'
17408          # If the export-symbols file already is a .def file (1st line
17409          # is EXPORTS), use it as is; otherwise, prepend...
17410          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17411	    cp $export_symbols $output_objdir/$soname.def;
17412          else
17413	    echo EXPORTS > $output_objdir/$soname.def;
17414	    cat $export_symbols >> $output_objdir/$soname.def;
17415          fi~
17416          $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'
17417        else
17418          ld_shlibs_CXX=no
17419        fi
17420        ;;
17421      darwin* | rhapsody*)
17422
17423
17424  archive_cmds_need_lc_CXX=no
17425  hardcode_direct_CXX=no
17426  hardcode_automatic_CXX=yes
17427  hardcode_shlibpath_var_CXX=unsupported
17428  whole_archive_flag_spec_CXX=''
17429  link_all_deplibs_CXX=yes
17430  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17431  case $cc_basename in
17432     ifort*) _lt_dar_can_shared=yes ;;
17433     *) _lt_dar_can_shared=$GCC ;;
17434  esac
17435  if test "$_lt_dar_can_shared" = "yes"; then
17436    output_verbose_link_cmd=echo
17437    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}"
17438    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17439    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}"
17440    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}"
17441       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17442      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}"
17443      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}"
17444    fi
17445
17446  else
17447  ld_shlibs_CXX=no
17448  fi
17449
17450	;;
17451
17452      dgux*)
17453        case $cc_basename in
17454          ec++*)
17455	    # FIXME: insert proper C++ library support
17456	    ld_shlibs_CXX=no
17457	    ;;
17458          ghcx*)
17459	    # Green Hills C++ Compiler
17460	    # FIXME: insert proper C++ library support
17461	    ld_shlibs_CXX=no
17462	    ;;
17463          *)
17464	    # FIXME: insert proper C++ library support
17465	    ld_shlibs_CXX=no
17466	    ;;
17467        esac
17468        ;;
17469
17470      freebsd[12]*)
17471        # C++ shared libraries reported to be fairly broken before
17472	# switch to ELF
17473        ld_shlibs_CXX=no
17474        ;;
17475
17476      freebsd-elf*)
17477        archive_cmds_need_lc_CXX=no
17478        ;;
17479
17480      freebsd* | dragonfly*)
17481        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17482        # conventions
17483        ld_shlibs_CXX=yes
17484        ;;
17485
17486      gnu*)
17487        ;;
17488
17489      hpux9*)
17490        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17491        hardcode_libdir_separator_CXX=:
17492        export_dynamic_flag_spec_CXX='${wl}-E'
17493        hardcode_direct_CXX=yes
17494        hardcode_minus_L_CXX=yes # Not in the search PATH,
17495				             # but as the default
17496				             # location of the library.
17497
17498        case $cc_basename in
17499          CC*)
17500            # FIXME: insert proper C++ library support
17501            ld_shlibs_CXX=no
17502            ;;
17503          aCC*)
17504            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'
17505            # Commands to make compiler produce verbose output that lists
17506            # what "hidden" libraries, object files and flags are used when
17507            # linking a shared library.
17508            #
17509            # There doesn't appear to be a way to prevent this compiler from
17510            # explicitly linking system object files so we need to strip them
17511            # from the output so that they don't get included in the library
17512            # dependencies.
17513            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'
17514            ;;
17515          *)
17516            if test "$GXX" = yes; then
17517              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'
17518            else
17519              # FIXME: insert proper C++ library support
17520              ld_shlibs_CXX=no
17521            fi
17522            ;;
17523        esac
17524        ;;
17525
17526      hpux10*|hpux11*)
17527        if test $with_gnu_ld = no; then
17528	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17529	  hardcode_libdir_separator_CXX=:
17530
17531          case $host_cpu in
17532            hppa*64*|ia64*)
17533              ;;
17534            *)
17535	      export_dynamic_flag_spec_CXX='${wl}-E'
17536              ;;
17537          esac
17538        fi
17539        case $host_cpu in
17540          hppa*64*|ia64*)
17541            hardcode_direct_CXX=no
17542            hardcode_shlibpath_var_CXX=no
17543            ;;
17544          *)
17545            hardcode_direct_CXX=yes
17546            hardcode_direct_absolute_CXX=yes
17547            hardcode_minus_L_CXX=yes # Not in the search PATH,
17548					         # but as the default
17549					         # location of the library.
17550            ;;
17551        esac
17552
17553        case $cc_basename in
17554          CC*)
17555	    # FIXME: insert proper C++ library support
17556	    ld_shlibs_CXX=no
17557	    ;;
17558          aCC*)
17559	    case $host_cpu in
17560	      hppa*64*)
17561	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17562	        ;;
17563	      ia64*)
17564	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17565	        ;;
17566	      *)
17567	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17568	        ;;
17569	    esac
17570	    # Commands to make compiler produce verbose output that lists
17571	    # what "hidden" libraries, object files and flags are used when
17572	    # linking a shared library.
17573	    #
17574	    # There doesn't appear to be a way to prevent this compiler from
17575	    # explicitly linking system object files so we need to strip them
17576	    # from the output so that they don't get included in the library
17577	    # dependencies.
17578	    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'
17579	    ;;
17580          *)
17581	    if test "$GXX" = yes; then
17582	      if test $with_gnu_ld = no; then
17583	        case $host_cpu in
17584	          hppa*64*)
17585	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17586	            ;;
17587	          ia64*)
17588	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17589	            ;;
17590	          *)
17591	            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'
17592	            ;;
17593	        esac
17594	      fi
17595	    else
17596	      # FIXME: insert proper C++ library support
17597	      ld_shlibs_CXX=no
17598	    fi
17599	    ;;
17600        esac
17601        ;;
17602
17603      interix[3-9]*)
17604	hardcode_direct_CXX=no
17605	hardcode_shlibpath_var_CXX=no
17606	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17607	export_dynamic_flag_spec_CXX='${wl}-E'
17608	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17609	# Instead, shared libraries are loaded at an image base (0x10000000 by
17610	# default) and relocated if they conflict, which is a slow very memory
17611	# consuming and fragmenting process.  To avoid this, we pick a random,
17612	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17613	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17614	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'
17615	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'
17616	;;
17617      irix5* | irix6*)
17618        case $cc_basename in
17619          CC*)
17620	    # SGI C++
17621	    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'
17622
17623	    # Archives containing C++ object files must be created using
17624	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
17625	    # necessary to make sure instantiated templates are included
17626	    # in the archive.
17627	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17628	    ;;
17629          *)
17630	    if test "$GXX" = yes; then
17631	      if test "$with_gnu_ld" = no; then
17632	        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'
17633	      else
17634	        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'
17635	      fi
17636	    fi
17637	    link_all_deplibs_CXX=yes
17638	    ;;
17639        esac
17640        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17641        hardcode_libdir_separator_CXX=:
17642        inherit_rpath_CXX=yes
17643        ;;
17644
17645      linux* | k*bsd*-gnu)
17646        case $cc_basename in
17647          KCC*)
17648	    # Kuck and Associates, Inc. (KAI) C++ Compiler
17649
17650	    # KCC will only create a shared library if the output file
17651	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
17652	    # to its proper name (with version) after linking.
17653	    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'
17654	    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'
17655	    # Commands to make compiler produce verbose output that lists
17656	    # what "hidden" libraries, object files and flags are used when
17657	    # linking a shared library.
17658	    #
17659	    # There doesn't appear to be a way to prevent this compiler from
17660	    # explicitly linking system object files so we need to strip them
17661	    # from the output so that they don't get included in the library
17662	    # dependencies.
17663	    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'
17664
17665	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17666	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17667
17668	    # Archives containing C++ object files must be created using
17669	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17670	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17671	    ;;
17672	  icpc* | ecpc* )
17673	    # Intel C++
17674	    with_gnu_ld=yes
17675	    # version 8.0 and above of icpc choke on multiply defined symbols
17676	    # if we add $predep_objects and $postdep_objects, however 7.1 and
17677	    # earlier do not add the objects themselves.
17678	    case `$CC -V 2>&1` in
17679	      *"Version 7."*)
17680	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17681		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'
17682		;;
17683	      *)  # Version 8.0 or newer
17684	        tmp_idyn=
17685	        case $host_cpu in
17686		  ia64*) tmp_idyn=' -i_dynamic';;
17687		esac
17688	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17689		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'
17690		;;
17691	    esac
17692	    archive_cmds_need_lc_CXX=no
17693	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17694	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17695	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17696	    ;;
17697          pgCC* | pgcpp*)
17698            # Portland Group C++ compiler
17699	    case `$CC -V` in
17700	    *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
17701	      prelink_cmds_CXX='tpldir=Template.dir~
17702		rm -rf $tpldir~
17703		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
17704		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
17705	      old_archive_cmds_CXX='tpldir=Template.dir~
17706		rm -rf $tpldir~
17707		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
17708		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
17709		$RANLIB $oldlib'
17710	      archive_cmds_CXX='tpldir=Template.dir~
17711		rm -rf $tpldir~
17712		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17713		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17714	      archive_expsym_cmds_CXX='tpldir=Template.dir~
17715		rm -rf $tpldir~
17716		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17717		$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'
17718	      ;;
17719	    *) # Version 6 will use weak symbols
17720	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17721	      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'
17722	      ;;
17723	    esac
17724
17725	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17726	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17727	    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'
17728            ;;
17729	  cxx*)
17730	    # Compaq C++
17731	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17732	    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'
17733
17734	    runpath_var=LD_RUN_PATH
17735	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17736	    hardcode_libdir_separator_CXX=:
17737
17738	    # Commands to make compiler produce verbose output that lists
17739	    # what "hidden" libraries, object files and flags are used when
17740	    # linking a shared library.
17741	    #
17742	    # There doesn't appear to be a way to prevent this compiler from
17743	    # explicitly linking system object files so we need to strip them
17744	    # from the output so that they don't get included in the library
17745	    # dependencies.
17746	    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'
17747	    ;;
17748	  xl*)
17749	    # IBM XL 8.0 on PPC, with GNU ld
17750	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17751	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17752	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17753	    if test "x$supports_anon_versioning" = xyes; then
17754	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17755		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17756		echo "local: *; };" >> $output_objdir/$libname.ver~
17757		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17758	    fi
17759	    ;;
17760	  *)
17761	    case `$CC -V 2>&1 | sed 5q` in
17762	    *Sun\ C*)
17763	      # Sun C++ 5.9
17764	      no_undefined_flag_CXX=' -zdefs'
17765	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17766	      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'
17767	      hardcode_libdir_flag_spec_CXX='-R$libdir'
17768	      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'
17769	      compiler_needs_object_CXX=yes
17770
17771	      # Not sure whether something based on
17772	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17773	      # would be better.
17774	      output_verbose_link_cmd='echo'
17775
17776	      # Archives containing C++ object files must be created using
17777	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
17778	      # necessary to make sure instantiated templates are included
17779	      # in the archive.
17780	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17781	      ;;
17782	    esac
17783	    ;;
17784	esac
17785	;;
17786
17787      lynxos*)
17788        # FIXME: insert proper C++ library support
17789	ld_shlibs_CXX=no
17790	;;
17791
17792      m88k*)
17793        # FIXME: insert proper C++ library support
17794        ld_shlibs_CXX=no
17795	;;
17796
17797      mvs*)
17798        case $cc_basename in
17799          cxx*)
17800	    # FIXME: insert proper C++ library support
17801	    ld_shlibs_CXX=no
17802	    ;;
17803	  *)
17804	    # FIXME: insert proper C++ library support
17805	    ld_shlibs_CXX=no
17806	    ;;
17807	esac
17808	;;
17809
17810      netbsd*)
17811        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17812	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17813	  wlarc=
17814	  hardcode_libdir_flag_spec_CXX='-R$libdir'
17815	  hardcode_direct_CXX=yes
17816	  hardcode_shlibpath_var_CXX=no
17817	fi
17818	# Workaround some broken pre-1.5 toolchains
17819	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17820	;;
17821
17822      *nto* | *qnx*)
17823        ld_shlibs_CXX=yes
17824	;;
17825
17826      openbsd2*)
17827        # C++ shared libraries are fairly broken
17828	ld_shlibs_CXX=no
17829	;;
17830
17831      openbsd*)
17832	if test -f /usr/libexec/ld.so; then
17833	  hardcode_direct_CXX=yes
17834	  hardcode_shlibpath_var_CXX=no
17835	  hardcode_direct_absolute_CXX=yes
17836	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17837	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17838	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17839	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17840	    export_dynamic_flag_spec_CXX='${wl}-E'
17841	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17842	  fi
17843	  output_verbose_link_cmd=echo
17844	else
17845	  ld_shlibs_CXX=no
17846	fi
17847	;;
17848
17849      osf3* | osf4* | osf5*)
17850        case $cc_basename in
17851          KCC*)
17852	    # Kuck and Associates, Inc. (KAI) C++ Compiler
17853
17854	    # KCC will only create a shared library if the output file
17855	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
17856	    # to its proper name (with version) after linking.
17857	    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'
17858
17859	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17860	    hardcode_libdir_separator_CXX=:
17861
17862	    # Archives containing C++ object files must be created using
17863	    # the KAI C++ compiler.
17864	    case $host in
17865	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17866	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17867	    esac
17868	    ;;
17869          RCC*)
17870	    # Rational C++ 2.4.1
17871	    # FIXME: insert proper C++ library support
17872	    ld_shlibs_CXX=no
17873	    ;;
17874          cxx*)
17875	    case $host in
17876	      osf3*)
17877	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17878	        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'
17879	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17880		;;
17881	      *)
17882	        allow_undefined_flag_CXX=' -expect_unresolved \*'
17883	        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'
17884	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17885	          echo "-hidden">> $lib.exp~
17886	          $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~
17887	          $RM $lib.exp'
17888	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17889		;;
17890	    esac
17891
17892	    hardcode_libdir_separator_CXX=:
17893
17894	    # Commands to make compiler produce verbose output that lists
17895	    # what "hidden" libraries, object files and flags are used when
17896	    # linking a shared library.
17897	    #
17898	    # There doesn't appear to be a way to prevent this compiler from
17899	    # explicitly linking system object files so we need to strip them
17900	    # from the output so that they don't get included in the library
17901	    # dependencies.
17902	    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'
17903	    ;;
17904	  *)
17905	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17906	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17907	      case $host in
17908	        osf3*)
17909	          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'
17910		  ;;
17911	        *)
17912	          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'
17913		  ;;
17914	      esac
17915
17916	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17917	      hardcode_libdir_separator_CXX=:
17918
17919	      # Commands to make compiler produce verbose output that lists
17920	      # what "hidden" libraries, object files and flags are used when
17921	      # linking a shared library.
17922	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
17923
17924	    else
17925	      # FIXME: insert proper C++ library support
17926	      ld_shlibs_CXX=no
17927	    fi
17928	    ;;
17929        esac
17930        ;;
17931
17932      psos*)
17933        # FIXME: insert proper C++ library support
17934        ld_shlibs_CXX=no
17935        ;;
17936
17937      sunos4*)
17938        case $cc_basename in
17939          CC*)
17940	    # Sun C++ 4.x
17941	    # FIXME: insert proper C++ library support
17942	    ld_shlibs_CXX=no
17943	    ;;
17944          lcc*)
17945	    # Lucid
17946	    # FIXME: insert proper C++ library support
17947	    ld_shlibs_CXX=no
17948	    ;;
17949          *)
17950	    # FIXME: insert proper C++ library support
17951	    ld_shlibs_CXX=no
17952	    ;;
17953        esac
17954        ;;
17955
17956      solaris*)
17957        case $cc_basename in
17958          CC*)
17959	    # Sun C++ 4.2, 5.x and Centerline C++
17960            archive_cmds_need_lc_CXX=yes
17961	    no_undefined_flag_CXX=' -zdefs'
17962	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17963	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17964	      $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'
17965
17966	    hardcode_libdir_flag_spec_CXX='-R$libdir'
17967	    hardcode_shlibpath_var_CXX=no
17968	    case $host_os in
17969	      solaris2.[0-5] | solaris2.[0-5].*) ;;
17970	      *)
17971		# The compiler driver will combine and reorder linker options,
17972		# but understands `-z linker_flag'.
17973	        # Supported since Solaris 2.6 (maybe 2.5.1?)
17974		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17975	        ;;
17976	    esac
17977	    link_all_deplibs_CXX=yes
17978
17979	    output_verbose_link_cmd='echo'
17980
17981	    # Archives containing C++ object files must be created using
17982	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
17983	    # necessary to make sure instantiated templates are included
17984	    # in the archive.
17985	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17986	    ;;
17987          gcx*)
17988	    # Green Hills C++ Compiler
17989	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17990
17991	    # The C++ compiler must be used to create the archive.
17992	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17993	    ;;
17994          *)
17995	    # GNU C++ compiler with Solaris linker
17996	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17997	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17998	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17999	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18000	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18001		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18002
18003	        # Commands to make compiler produce verbose output that lists
18004	        # what "hidden" libraries, object files and flags are used when
18005	        # linking a shared library.
18006	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
18007	      else
18008	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
18009	        # platform.
18010	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18011	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18012		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18013
18014	        # Commands to make compiler produce verbose output that lists
18015	        # what "hidden" libraries, object files and flags are used when
18016	        # linking a shared library.
18017	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
18018	      fi
18019
18020	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18021	      case $host_os in
18022		solaris2.[0-5] | solaris2.[0-5].*) ;;
18023		*)
18024		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18025		  ;;
18026	      esac
18027	    fi
18028	    ;;
18029        esac
18030        ;;
18031
18032    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18033      no_undefined_flag_CXX='${wl}-z,text'
18034      archive_cmds_need_lc_CXX=no
18035      hardcode_shlibpath_var_CXX=no
18036      runpath_var='LD_RUN_PATH'
18037
18038      case $cc_basename in
18039        CC*)
18040	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18041	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18042	  ;;
18043	*)
18044	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18045	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18046	  ;;
18047      esac
18048      ;;
18049
18050      sysv5* | sco3.2v5* | sco5v6*)
18051	# Note: We can NOT use -z defs as we might desire, because we do not
18052	# link with -lc, and that would cause any symbols used from libc to
18053	# always be unresolved, which means just about no library would
18054	# ever link correctly.  If we're not using GNU ld we use -z text
18055	# though, which does catch some bad symbols but isn't as heavy-handed
18056	# as -z defs.
18057	no_undefined_flag_CXX='${wl}-z,text'
18058	allow_undefined_flag_CXX='${wl}-z,nodefs'
18059	archive_cmds_need_lc_CXX=no
18060	hardcode_shlibpath_var_CXX=no
18061	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18062	hardcode_libdir_separator_CXX=':'
18063	link_all_deplibs_CXX=yes
18064	export_dynamic_flag_spec_CXX='${wl}-Bexport'
18065	runpath_var='LD_RUN_PATH'
18066
18067	case $cc_basename in
18068          CC*)
18069	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18070	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18071	    ;;
18072	  *)
18073	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18074	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18075	    ;;
18076	esac
18077      ;;
18078
18079      tandem*)
18080        case $cc_basename in
18081          NCC*)
18082	    # NonStop-UX NCC 3.20
18083	    # FIXME: insert proper C++ library support
18084	    ld_shlibs_CXX=no
18085	    ;;
18086          *)
18087	    # FIXME: insert proper C++ library support
18088	    ld_shlibs_CXX=no
18089	    ;;
18090        esac
18091        ;;
18092
18093      vxworks*)
18094        # FIXME: insert proper C++ library support
18095        ld_shlibs_CXX=no
18096        ;;
18097
18098      *)
18099        # FIXME: insert proper C++ library support
18100        ld_shlibs_CXX=no
18101        ;;
18102    esac
18103
18104    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18105$as_echo "$ld_shlibs_CXX" >&6; }
18106    test "$ld_shlibs_CXX" = no && can_build_shared=no
18107
18108    GCC_CXX="$GXX"
18109    LD_CXX="$LD"
18110
18111    ## CAVEAT EMPTOR:
18112    ## There is no encapsulation within the following macros, do not change
18113    ## the running order or otherwise move them around unless you know exactly
18114    ## what you are doing...
18115    # Dependencies to place before and after the object being linked:
18116predep_objects_CXX=
18117postdep_objects_CXX=
18118predeps_CXX=
18119postdeps_CXX=
18120compiler_lib_search_path_CXX=
18121
18122cat > conftest.$ac_ext <<_LT_EOF
18123class Foo
18124{
18125public:
18126  Foo (void) { a = 0; }
18127private:
18128  int a;
18129};
18130_LT_EOF
18131
18132if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18133  (eval $ac_compile) 2>&5
18134  ac_status=$?
18135  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18136  test $ac_status = 0; }; then
18137  # Parse the compiler output and extract the necessary
18138  # objects, libraries and library flags.
18139
18140  # Sentinel used to keep track of whether or not we are before
18141  # the conftest object file.
18142  pre_test_object_deps_done=no
18143
18144  for p in `eval "$output_verbose_link_cmd"`; do
18145    case $p in
18146
18147    -L* | -R* | -l*)
18148       # Some compilers place space between "-{L,R}" and the path.
18149       # Remove the space.
18150       if test $p = "-L" ||
18151          test $p = "-R"; then
18152	 prev=$p
18153	 continue
18154       else
18155	 prev=
18156       fi
18157
18158       if test "$pre_test_object_deps_done" = no; then
18159	 case $p in
18160	 -L* | -R*)
18161	   # Internal compiler library paths should come after those
18162	   # provided the user.  The postdeps already come after the
18163	   # user supplied libs so there is no need to process them.
18164	   if test -z "$compiler_lib_search_path_CXX"; then
18165	     compiler_lib_search_path_CXX="${prev}${p}"
18166	   else
18167	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18168	   fi
18169	   ;;
18170	 # The "-l" case would never come before the object being
18171	 # linked, so don't bother handling this case.
18172	 esac
18173       else
18174	 if test -z "$postdeps_CXX"; then
18175	   postdeps_CXX="${prev}${p}"
18176	 else
18177	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18178	 fi
18179       fi
18180       ;;
18181
18182    *.$objext)
18183       # This assumes that the test object file only shows up
18184       # once in the compiler output.
18185       if test "$p" = "conftest.$objext"; then
18186	 pre_test_object_deps_done=yes
18187	 continue
18188       fi
18189
18190       if test "$pre_test_object_deps_done" = no; then
18191	 if test -z "$predep_objects_CXX"; then
18192	   predep_objects_CXX="$p"
18193	 else
18194	   predep_objects_CXX="$predep_objects_CXX $p"
18195	 fi
18196       else
18197	 if test -z "$postdep_objects_CXX"; then
18198	   postdep_objects_CXX="$p"
18199	 else
18200	   postdep_objects_CXX="$postdep_objects_CXX $p"
18201	 fi
18202       fi
18203       ;;
18204
18205    *) ;; # Ignore the rest.
18206
18207    esac
18208  done
18209
18210  # Clean up.
18211  rm -f a.out a.exe
18212else
18213  echo "libtool.m4: error: problem compiling CXX test program"
18214fi
18215
18216$RM -f confest.$objext
18217
18218# PORTME: override above test on systems where it is broken
18219case $host_os in
18220interix[3-9]*)
18221  # Interix 3.5 installs completely hosed .la files for C++, so rather than
18222  # hack all around it, let's just trust "g++" to DTRT.
18223  predep_objects_CXX=
18224  postdep_objects_CXX=
18225  postdeps_CXX=
18226  ;;
18227
18228linux*)
18229  case `$CC -V 2>&1 | sed 5q` in
18230  *Sun\ C*)
18231    # Sun C++ 5.9
18232
18233    # The more standards-conforming stlport4 library is
18234    # incompatible with the Cstd library. Avoid specifying
18235    # it if it's in CXXFLAGS. Ignore libCrun as
18236    # -library=stlport4 depends on it.
18237    case " $CXX $CXXFLAGS " in
18238    *" -library=stlport4 "*)
18239      solaris_use_stlport4=yes
18240      ;;
18241    esac
18242
18243    if test "$solaris_use_stlport4" != yes; then
18244      postdeps_CXX='-library=Cstd -library=Crun'
18245    fi
18246    ;;
18247  esac
18248  ;;
18249
18250solaris*)
18251  case $cc_basename in
18252  CC*)
18253    # The more standards-conforming stlport4 library is
18254    # incompatible with the Cstd library. Avoid specifying
18255    # it if it's in CXXFLAGS. Ignore libCrun as
18256    # -library=stlport4 depends on it.
18257    case " $CXX $CXXFLAGS " in
18258    *" -library=stlport4 "*)
18259      solaris_use_stlport4=yes
18260      ;;
18261    esac
18262
18263    # Adding this requires a known-good setup of shared libraries for
18264    # Sun compiler versions before 5.6, else PIC objects from an old
18265    # archive will be linked into the output, leading to subtle bugs.
18266    if test "$solaris_use_stlport4" != yes; then
18267      postdeps_CXX='-library=Cstd -library=Crun'
18268    fi
18269    ;;
18270  esac
18271  ;;
18272esac
18273
18274
18275case " $postdeps_CXX " in
18276*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18277esac
18278 compiler_lib_search_dirs_CXX=
18279if test -n "${compiler_lib_search_path_CXX}"; then
18280 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18281fi
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297
18298
18299
18300
18301
18302
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313    lt_prog_compiler_wl_CXX=
18314lt_prog_compiler_pic_CXX=
18315lt_prog_compiler_static_CXX=
18316
18317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18318$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18319
18320  # C++ specific cases for pic, static, wl, etc.
18321  if test "$GXX" = yes; then
18322    lt_prog_compiler_wl_CXX='-Wl,'
18323    lt_prog_compiler_static_CXX='-static'
18324
18325    case $host_os in
18326    aix*)
18327      # All AIX code is PIC.
18328      if test "$host_cpu" = ia64; then
18329	# AIX 5 now supports IA64 processor
18330	lt_prog_compiler_static_CXX='-Bstatic'
18331      fi
18332      ;;
18333
18334    amigaos*)
18335      case $host_cpu in
18336      powerpc)
18337            # see comment about AmigaOS4 .so support
18338            lt_prog_compiler_pic_CXX='-fPIC'
18339        ;;
18340      m68k)
18341            # FIXME: we need at least 68020 code to build shared libraries, but
18342            # adding the `-m68020' flag to GCC prevents building anything better,
18343            # like `-m68040'.
18344            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18345        ;;
18346      esac
18347      ;;
18348
18349    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18350      # PIC is the default for these OSes.
18351      ;;
18352    mingw* | cygwin* | os2* | pw32* | cegcc*)
18353      # This hack is so that the source file can tell whether it is being
18354      # built for inclusion in a dll (and should export symbols for example).
18355      # Although the cygwin gcc ignores -fPIC, still need this for old-style
18356      # (--disable-auto-import) libraries
18357      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18358      ;;
18359    darwin* | rhapsody*)
18360      # PIC is the default on this platform
18361      # Common symbols not allowed in MH_DYLIB files
18362      lt_prog_compiler_pic_CXX='-fno-common'
18363      ;;
18364    *djgpp*)
18365      # DJGPP does not support shared libraries at all
18366      lt_prog_compiler_pic_CXX=
18367      ;;
18368    interix[3-9]*)
18369      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18370      # Instead, we relocate shared libraries at runtime.
18371      ;;
18372    sysv4*MP*)
18373      if test -d /usr/nec; then
18374	lt_prog_compiler_pic_CXX=-Kconform_pic
18375      fi
18376      ;;
18377    hpux*)
18378      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18379      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
18380      # sets the default TLS model and affects inlining.
18381      case $host_cpu in
18382      hppa*64*)
18383	;;
18384      *)
18385	lt_prog_compiler_pic_CXX='-fPIC'
18386	;;
18387      esac
18388      ;;
18389    *qnx* | *nto*)
18390      # QNX uses GNU C++, but need to define -shared option too, otherwise
18391      # it will coredump.
18392      lt_prog_compiler_pic_CXX='-fPIC -shared'
18393      ;;
18394    *)
18395      lt_prog_compiler_pic_CXX='-fPIC'
18396      ;;
18397    esac
18398  else
18399    case $host_os in
18400      aix[4-9]*)
18401	# All AIX code is PIC.
18402	if test "$host_cpu" = ia64; then
18403	  # AIX 5 now supports IA64 processor
18404	  lt_prog_compiler_static_CXX='-Bstatic'
18405	else
18406	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18407	fi
18408	;;
18409      chorus*)
18410	case $cc_basename in
18411	cxch68*)
18412	  # Green Hills C++ Compiler
18413	  # _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"
18414	  ;;
18415	esac
18416	;;
18417      dgux*)
18418	case $cc_basename in
18419	  ec++*)
18420	    lt_prog_compiler_pic_CXX='-KPIC'
18421	    ;;
18422	  ghcx*)
18423	    # Green Hills C++ Compiler
18424	    lt_prog_compiler_pic_CXX='-pic'
18425	    ;;
18426	  *)
18427	    ;;
18428	esac
18429	;;
18430      freebsd* | dragonfly*)
18431	# FreeBSD uses GNU C++
18432	;;
18433      hpux9* | hpux10* | hpux11*)
18434	case $cc_basename in
18435	  CC*)
18436	    lt_prog_compiler_wl_CXX='-Wl,'
18437	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18438	    if test "$host_cpu" != ia64; then
18439	      lt_prog_compiler_pic_CXX='+Z'
18440	    fi
18441	    ;;
18442	  aCC*)
18443	    lt_prog_compiler_wl_CXX='-Wl,'
18444	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18445	    case $host_cpu in
18446	    hppa*64*|ia64*)
18447	      # +Z the default
18448	      ;;
18449	    *)
18450	      lt_prog_compiler_pic_CXX='+Z'
18451	      ;;
18452	    esac
18453	    ;;
18454	  *)
18455	    ;;
18456	esac
18457	;;
18458      interix*)
18459	# This is c89, which is MS Visual C++ (no shared libs)
18460	# Anyone wants to do a port?
18461	;;
18462      irix5* | irix6* | nonstopux*)
18463	case $cc_basename in
18464	  CC*)
18465	    lt_prog_compiler_wl_CXX='-Wl,'
18466	    lt_prog_compiler_static_CXX='-non_shared'
18467	    # CC pic flag -KPIC is the default.
18468	    ;;
18469	  *)
18470	    ;;
18471	esac
18472	;;
18473      linux* | k*bsd*-gnu)
18474	case $cc_basename in
18475	  KCC*)
18476	    # KAI C++ Compiler
18477	    lt_prog_compiler_wl_CXX='--backend -Wl,'
18478	    lt_prog_compiler_pic_CXX='-fPIC'
18479	    ;;
18480	  ecpc* )
18481	    # old Intel C++ for x86_64 which still supported -KPIC.
18482	    lt_prog_compiler_wl_CXX='-Wl,'
18483	    lt_prog_compiler_pic_CXX='-KPIC'
18484	    lt_prog_compiler_static_CXX='-static'
18485	    ;;
18486	  icpc* )
18487	    # Intel C++, used to be incompatible with GCC.
18488	    # ICC 10 doesn't accept -KPIC any more.
18489	    lt_prog_compiler_wl_CXX='-Wl,'
18490	    lt_prog_compiler_pic_CXX='-fPIC'
18491	    lt_prog_compiler_static_CXX='-static'
18492	    ;;
18493	  pgCC* | pgcpp*)
18494	    # Portland Group C++ compiler
18495	    lt_prog_compiler_wl_CXX='-Wl,'
18496	    lt_prog_compiler_pic_CXX='-fpic'
18497	    lt_prog_compiler_static_CXX='-Bstatic'
18498	    ;;
18499	  cxx*)
18500	    # Compaq C++
18501	    # Make sure the PIC flag is empty.  It appears that all Alpha
18502	    # Linux and Compaq Tru64 Unix objects are PIC.
18503	    lt_prog_compiler_pic_CXX=
18504	    lt_prog_compiler_static_CXX='-non_shared'
18505	    ;;
18506	  xlc* | xlC*)
18507	    # IBM XL 8.0 on PPC
18508	    lt_prog_compiler_wl_CXX='-Wl,'
18509	    lt_prog_compiler_pic_CXX='-qpic'
18510	    lt_prog_compiler_static_CXX='-qstaticlink'
18511	    ;;
18512	  *)
18513	    case `$CC -V 2>&1 | sed 5q` in
18514	    *Sun\ C*)
18515	      # Sun C++ 5.9
18516	      lt_prog_compiler_pic_CXX='-KPIC'
18517	      lt_prog_compiler_static_CXX='-Bstatic'
18518	      lt_prog_compiler_wl_CXX='-Qoption ld '
18519	      ;;
18520	    esac
18521	    ;;
18522	esac
18523	;;
18524      lynxos*)
18525	;;
18526      m88k*)
18527	;;
18528      mvs*)
18529	case $cc_basename in
18530	  cxx*)
18531	    lt_prog_compiler_pic_CXX='-W c,exportall'
18532	    ;;
18533	  *)
18534	    ;;
18535	esac
18536	;;
18537      netbsd*)
18538	;;
18539      *qnx* | *nto*)
18540        # QNX uses GNU C++, but need to define -shared option too, otherwise
18541        # it will coredump.
18542        lt_prog_compiler_pic_CXX='-fPIC -shared'
18543        ;;
18544      osf3* | osf4* | osf5*)
18545	case $cc_basename in
18546	  KCC*)
18547	    lt_prog_compiler_wl_CXX='--backend -Wl,'
18548	    ;;
18549	  RCC*)
18550	    # Rational C++ 2.4.1
18551	    lt_prog_compiler_pic_CXX='-pic'
18552	    ;;
18553	  cxx*)
18554	    # Digital/Compaq C++
18555	    lt_prog_compiler_wl_CXX='-Wl,'
18556	    # Make sure the PIC flag is empty.  It appears that all Alpha
18557	    # Linux and Compaq Tru64 Unix objects are PIC.
18558	    lt_prog_compiler_pic_CXX=
18559	    lt_prog_compiler_static_CXX='-non_shared'
18560	    ;;
18561	  *)
18562	    ;;
18563	esac
18564	;;
18565      psos*)
18566	;;
18567      solaris*)
18568	case $cc_basename in
18569	  CC*)
18570	    # Sun C++ 4.2, 5.x and Centerline C++
18571	    lt_prog_compiler_pic_CXX='-KPIC'
18572	    lt_prog_compiler_static_CXX='-Bstatic'
18573	    lt_prog_compiler_wl_CXX='-Qoption ld '
18574	    ;;
18575	  gcx*)
18576	    # Green Hills C++ Compiler
18577	    lt_prog_compiler_pic_CXX='-PIC'
18578	    ;;
18579	  *)
18580	    ;;
18581	esac
18582	;;
18583      sunos4*)
18584	case $cc_basename in
18585	  CC*)
18586	    # Sun C++ 4.x
18587	    lt_prog_compiler_pic_CXX='-pic'
18588	    lt_prog_compiler_static_CXX='-Bstatic'
18589	    ;;
18590	  lcc*)
18591	    # Lucid
18592	    lt_prog_compiler_pic_CXX='-pic'
18593	    ;;
18594	  *)
18595	    ;;
18596	esac
18597	;;
18598      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18599	case $cc_basename in
18600	  CC*)
18601	    lt_prog_compiler_wl_CXX='-Wl,'
18602	    lt_prog_compiler_pic_CXX='-KPIC'
18603	    lt_prog_compiler_static_CXX='-Bstatic'
18604	    ;;
18605	esac
18606	;;
18607      tandem*)
18608	case $cc_basename in
18609	  NCC*)
18610	    # NonStop-UX NCC 3.20
18611	    lt_prog_compiler_pic_CXX='-KPIC'
18612	    ;;
18613	  *)
18614	    ;;
18615	esac
18616	;;
18617      vxworks*)
18618	;;
18619      *)
18620	lt_prog_compiler_can_build_shared_CXX=no
18621	;;
18622    esac
18623  fi
18624
18625case $host_os in
18626  # For platforms which do not support PIC, -DPIC is meaningless:
18627  *djgpp*)
18628    lt_prog_compiler_pic_CXX=
18629    ;;
18630  *)
18631    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18632    ;;
18633esac
18634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
18635$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
18636
18637
18638
18639#
18640# Check to make sure the PIC flag actually works.
18641#
18642if test -n "$lt_prog_compiler_pic_CXX"; then
18643  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18644$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
18645if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
18646  $as_echo_n "(cached) " >&6
18647else
18648  lt_cv_prog_compiler_pic_works_CXX=no
18649   ac_outfile=conftest.$ac_objext
18650   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18651   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18652   # Insert the option either (1) after the last *FLAGS variable, or
18653   # (2) before a word containing "conftest.", or (3) at the end.
18654   # Note that $ac_compile itself does not contain backslashes and begins
18655   # with a dollar sign (not a hyphen), so the echo should work correctly.
18656   # The option is referenced via a variable to avoid confusing sed.
18657   lt_compile=`echo "$ac_compile" | $SED \
18658   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18659   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18660   -e 's:$: $lt_compiler_flag:'`
18661   (eval echo "\"\$as_me:18661: $lt_compile\"" >&5)
18662   (eval "$lt_compile" 2>conftest.err)
18663   ac_status=$?
18664   cat conftest.err >&5
18665   echo "$as_me:18665: \$? = $ac_status" >&5
18666   if (exit $ac_status) && test -s "$ac_outfile"; then
18667     # The compiler can only warn and ignore the option if not recognized
18668     # So say no if there are warnings other than the usual output.
18669     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18670     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18671     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18672       lt_cv_prog_compiler_pic_works_CXX=yes
18673     fi
18674   fi
18675   $RM conftest*
18676
18677fi
18678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18679$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18680
18681if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18682    case $lt_prog_compiler_pic_CXX in
18683     "" | " "*) ;;
18684     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18685     esac
18686else
18687    lt_prog_compiler_pic_CXX=
18688     lt_prog_compiler_can_build_shared_CXX=no
18689fi
18690
18691fi
18692
18693
18694
18695#
18696# Check to make sure the static flag actually works.
18697#
18698wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18700$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18701if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
18702  $as_echo_n "(cached) " >&6
18703else
18704  lt_cv_prog_compiler_static_works_CXX=no
18705   save_LDFLAGS="$LDFLAGS"
18706   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18707   echo "$lt_simple_link_test_code" > conftest.$ac_ext
18708   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18709     # The linker can only warn and ignore the option if not recognized
18710     # So say no if there are warnings
18711     if test -s conftest.err; then
18712       # Append any errors to the config.log.
18713       cat conftest.err 1>&5
18714       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18715       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18716       if diff conftest.exp conftest.er2 >/dev/null; then
18717         lt_cv_prog_compiler_static_works_CXX=yes
18718       fi
18719     else
18720       lt_cv_prog_compiler_static_works_CXX=yes
18721     fi
18722   fi
18723   $RM -r conftest*
18724   LDFLAGS="$save_LDFLAGS"
18725
18726fi
18727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18728$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18729
18730if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18731    :
18732else
18733    lt_prog_compiler_static_CXX=
18734fi
18735
18736
18737
18738
18739    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18740$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18741if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
18742  $as_echo_n "(cached) " >&6
18743else
18744  lt_cv_prog_compiler_c_o_CXX=no
18745   $RM -r conftest 2>/dev/null
18746   mkdir conftest
18747   cd conftest
18748   mkdir out
18749   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18750
18751   lt_compiler_flag="-o out/conftest2.$ac_objext"
18752   # Insert the option either (1) after the last *FLAGS variable, or
18753   # (2) before a word containing "conftest.", or (3) at the end.
18754   # Note that $ac_compile itself does not contain backslashes and begins
18755   # with a dollar sign (not a hyphen), so the echo should work correctly.
18756   lt_compile=`echo "$ac_compile" | $SED \
18757   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18758   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18759   -e 's:$: $lt_compiler_flag:'`
18760   (eval echo "\"\$as_me:18760: $lt_compile\"" >&5)
18761   (eval "$lt_compile" 2>out/conftest.err)
18762   ac_status=$?
18763   cat out/conftest.err >&5
18764   echo "$as_me:18764: \$? = $ac_status" >&5
18765   if (exit $ac_status) && test -s out/conftest2.$ac_objext
18766   then
18767     # The compiler can only warn and ignore the option if not recognized
18768     # So say no if there are warnings
18769     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18770     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18771     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18772       lt_cv_prog_compiler_c_o_CXX=yes
18773     fi
18774   fi
18775   chmod u+w . 2>&5
18776   $RM conftest*
18777   # SGI C++ compiler will create directory out/ii_files/ for
18778   # template instantiation
18779   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18780   $RM out/* && rmdir out
18781   cd ..
18782   $RM -r conftest
18783   $RM conftest*
18784
18785fi
18786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18787$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18788
18789
18790
18791    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18792$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18793if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
18794  $as_echo_n "(cached) " >&6
18795else
18796  lt_cv_prog_compiler_c_o_CXX=no
18797   $RM -r conftest 2>/dev/null
18798   mkdir conftest
18799   cd conftest
18800   mkdir out
18801   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18802
18803   lt_compiler_flag="-o out/conftest2.$ac_objext"
18804   # Insert the option either (1) after the last *FLAGS variable, or
18805   # (2) before a word containing "conftest.", or (3) at the end.
18806   # Note that $ac_compile itself does not contain backslashes and begins
18807   # with a dollar sign (not a hyphen), so the echo should work correctly.
18808   lt_compile=`echo "$ac_compile" | $SED \
18809   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18810   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18811   -e 's:$: $lt_compiler_flag:'`
18812   (eval echo "\"\$as_me:18812: $lt_compile\"" >&5)
18813   (eval "$lt_compile" 2>out/conftest.err)
18814   ac_status=$?
18815   cat out/conftest.err >&5
18816   echo "$as_me:18816: \$? = $ac_status" >&5
18817   if (exit $ac_status) && test -s out/conftest2.$ac_objext
18818   then
18819     # The compiler can only warn and ignore the option if not recognized
18820     # So say no if there are warnings
18821     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18822     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18823     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18824       lt_cv_prog_compiler_c_o_CXX=yes
18825     fi
18826   fi
18827   chmod u+w . 2>&5
18828   $RM conftest*
18829   # SGI C++ compiler will create directory out/ii_files/ for
18830   # template instantiation
18831   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18832   $RM out/* && rmdir out
18833   cd ..
18834   $RM -r conftest
18835   $RM conftest*
18836
18837fi
18838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18839$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18840
18841
18842
18843
18844hard_links="nottested"
18845if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18846  # do not overwrite the value of need_locks provided by the user
18847  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18848$as_echo_n "checking if we can lock with hard links... " >&6; }
18849  hard_links=yes
18850  $RM conftest*
18851  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18852  touch conftest.a
18853  ln conftest.a conftest.b 2>&5 || hard_links=no
18854  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18856$as_echo "$hard_links" >&6; }
18857  if test "$hard_links" = no; then
18858    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18859$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18860    need_locks=warn
18861  fi
18862else
18863  need_locks=no
18864fi
18865
18866
18867
18868    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18869$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18870
18871  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18872  case $host_os in
18873  aix[4-9]*)
18874    # If we're using GNU nm, then we don't want the "-C" option.
18875    # -C means demangle to AIX nm, but means don't demangle with GNU nm
18876    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18877      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'
18878    else
18879      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'
18880    fi
18881    ;;
18882  pw32*)
18883    export_symbols_cmds_CXX="$ltdll_cmds"
18884  ;;
18885  cygwin* | mingw* | cegcc*)
18886    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'
18887  ;;
18888  *)
18889    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18890  ;;
18891  esac
18892  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18893
18894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18895$as_echo "$ld_shlibs_CXX" >&6; }
18896test "$ld_shlibs_CXX" = no && can_build_shared=no
18897
18898with_gnu_ld_CXX=$with_gnu_ld
18899
18900
18901
18902
18903
18904
18905#
18906# Do we need to explicitly link libc?
18907#
18908case "x$archive_cmds_need_lc_CXX" in
18909x|xyes)
18910  # Assume -lc should be added
18911  archive_cmds_need_lc_CXX=yes
18912
18913  if test "$enable_shared" = yes && test "$GCC" = yes; then
18914    case $archive_cmds_CXX in
18915    *'~'*)
18916      # FIXME: we may have to deal with multi-command sequences.
18917      ;;
18918    '$CC '*)
18919      # Test whether the compiler implicitly links with -lc since on some
18920      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18921      # to ld, don't add -lc before -lgcc.
18922      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18923$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18924      $RM conftest*
18925      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18926
18927      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18928  (eval $ac_compile) 2>&5
18929  ac_status=$?
18930  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18931  test $ac_status = 0; } 2>conftest.err; then
18932        soname=conftest
18933        lib=conftest
18934        libobjs=conftest.$ac_objext
18935        deplibs=
18936        wl=$lt_prog_compiler_wl_CXX
18937	pic_flag=$lt_prog_compiler_pic_CXX
18938        compiler_flags=-v
18939        linker_flags=-v
18940        verstring=
18941        output_objdir=.
18942        libname=conftest
18943        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18944        allow_undefined_flag_CXX=
18945        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18946  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18947  ac_status=$?
18948  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18949  test $ac_status = 0; }
18950        then
18951	  archive_cmds_need_lc_CXX=no
18952        else
18953	  archive_cmds_need_lc_CXX=yes
18954        fi
18955        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18956      else
18957        cat conftest.err 1>&5
18958      fi
18959      $RM conftest*
18960      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
18961$as_echo "$archive_cmds_need_lc_CXX" >&6; }
18962      ;;
18963    esac
18964  fi
18965  ;;
18966esac
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19032$as_echo_n "checking dynamic linker characteristics... " >&6; }
19033
19034library_names_spec=
19035libname_spec='lib$name'
19036soname_spec=
19037shrext_cmds=".so"
19038postinstall_cmds=
19039postuninstall_cmds=
19040finish_cmds=
19041finish_eval=
19042shlibpath_var=
19043shlibpath_overrides_runpath=unknown
19044version_type=none
19045dynamic_linker="$host_os ld.so"
19046sys_lib_dlsearch_path_spec="/lib /usr/lib"
19047need_lib_prefix=unknown
19048hardcode_into_libs=no
19049
19050# when you set need_version to no, make sure it does not cause -set_version
19051# flags to be left without arguments
19052need_version=unknown
19053
19054case $host_os in
19055aix3*)
19056  version_type=linux
19057  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19058  shlibpath_var=LIBPATH
19059
19060  # AIX 3 has no versioning support, so we append a major version to the name.
19061  soname_spec='${libname}${release}${shared_ext}$major'
19062  ;;
19063
19064aix[4-9]*)
19065  version_type=linux
19066  need_lib_prefix=no
19067  need_version=no
19068  hardcode_into_libs=yes
19069  if test "$host_cpu" = ia64; then
19070    # AIX 5 supports IA64
19071    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19072    shlibpath_var=LD_LIBRARY_PATH
19073  else
19074    # With GCC up to 2.95.x, collect2 would create an import file
19075    # for dependence libraries.  The import file would start with
19076    # the line `#! .'.  This would cause the generated library to
19077    # depend on `.', always an invalid library.  This was fixed in
19078    # development snapshots of GCC prior to 3.0.
19079    case $host_os in
19080      aix4 | aix4.[01] | aix4.[01].*)
19081      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19082	   echo ' yes '
19083	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19084	:
19085      else
19086	can_build_shared=no
19087      fi
19088      ;;
19089    esac
19090    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19091    # soname into executable. Probably we can add versioning support to
19092    # collect2, so additional links can be useful in future.
19093    if test "$aix_use_runtimelinking" = yes; then
19094      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19095      # instead of lib<name>.a to let people know that these are not
19096      # typical AIX shared libraries.
19097      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19098    else
19099      # We preserve .a as extension for shared libraries through AIX4.2
19100      # and later when we are not doing run time linking.
19101      library_names_spec='${libname}${release}.a $libname.a'
19102      soname_spec='${libname}${release}${shared_ext}$major'
19103    fi
19104    shlibpath_var=LIBPATH
19105  fi
19106  ;;
19107
19108amigaos*)
19109  case $host_cpu in
19110  powerpc)
19111    # Since July 2007 AmigaOS4 officially supports .so libraries.
19112    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19113    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19114    ;;
19115  m68k)
19116    library_names_spec='$libname.ixlibrary $libname.a'
19117    # Create ${libname}_ixlibrary.a entries in /sys/libs.
19118    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'
19119    ;;
19120  esac
19121  ;;
19122
19123beos*)
19124  library_names_spec='${libname}${shared_ext}'
19125  dynamic_linker="$host_os ld.so"
19126  shlibpath_var=LIBRARY_PATH
19127  ;;
19128
19129bsdi[45]*)
19130  version_type=linux
19131  need_version=no
19132  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19133  soname_spec='${libname}${release}${shared_ext}$major'
19134  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19135  shlibpath_var=LD_LIBRARY_PATH
19136  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19137  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19138  # the default ld.so.conf also contains /usr/contrib/lib and
19139  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19140  # libtool to hard-code these into programs
19141  ;;
19142
19143cygwin* | mingw* | pw32* | cegcc*)
19144  version_type=windows
19145  shrext_cmds=".dll"
19146  need_version=no
19147  need_lib_prefix=no
19148
19149  case $GCC,$host_os in
19150  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
19151    library_names_spec='$libname.dll.a'
19152    # DLL is installed to $(libdir)/../bin by postinstall_cmds
19153    postinstall_cmds='base_file=`basename \${file}`~
19154      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19155      dldir=$destdir/`dirname \$dlpath`~
19156      test -d \$dldir || mkdir -p \$dldir~
19157      $install_prog $dir/$dlname \$dldir/$dlname~
19158      chmod a+x \$dldir/$dlname~
19159      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19160        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19161      fi'
19162    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19163      dlpath=$dir/\$dldll~
19164       $RM \$dlpath'
19165    shlibpath_overrides_runpath=yes
19166
19167    case $host_os in
19168    cygwin*)
19169      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19170      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19171      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19172      ;;
19173    mingw* | cegcc*)
19174      # MinGW DLLs use traditional 'lib' prefix
19175      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19176      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19177      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19178        # It is most probably a Windows format PATH printed by
19179        # mingw gcc, but we are running on Cygwin. Gcc prints its search
19180        # path with ; separators, and with drive letters. We can handle the
19181        # drive letters (cygwin fileutils understands them), so leave them,
19182        # especially as we might pass files found there to a mingw objdump,
19183        # which wouldn't understand a cygwinified path. Ahh.
19184        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19185      else
19186        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19187      fi
19188      ;;
19189    pw32*)
19190      # pw32 DLLs use 'pw' prefix rather than 'lib'
19191      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19192      ;;
19193    esac
19194    ;;
19195
19196  *)
19197    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19198    ;;
19199  esac
19200  dynamic_linker='Win32 ld.exe'
19201  # FIXME: first we should search . and the directory the executable is in
19202  shlibpath_var=PATH
19203  ;;
19204
19205darwin* | rhapsody*)
19206  dynamic_linker="$host_os dyld"
19207  version_type=darwin
19208  need_lib_prefix=no
19209  need_version=no
19210  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19211  soname_spec='${libname}${release}${major}$shared_ext'
19212  shlibpath_overrides_runpath=yes
19213  shlibpath_var=DYLD_LIBRARY_PATH
19214  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19215
19216  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19217  ;;
19218
19219dgux*)
19220  version_type=linux
19221  need_lib_prefix=no
19222  need_version=no
19223  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19224  soname_spec='${libname}${release}${shared_ext}$major'
19225  shlibpath_var=LD_LIBRARY_PATH
19226  ;;
19227
19228freebsd1*)
19229  dynamic_linker=no
19230  ;;
19231
19232freebsd* | dragonfly*)
19233  # DragonFly does not have aout.  When/if they implement a new
19234  # versioning mechanism, adjust this.
19235  if test -x /usr/bin/objformat; then
19236    objformat=`/usr/bin/objformat`
19237  else
19238    case $host_os in
19239    freebsd[123]*) objformat=aout ;;
19240    *) objformat=elf ;;
19241    esac
19242  fi
19243  version_type=freebsd-$objformat
19244  case $version_type in
19245    freebsd-elf*)
19246      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19247      need_version=no
19248      need_lib_prefix=no
19249      ;;
19250    freebsd-*)
19251      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19252      need_version=yes
19253      ;;
19254  esac
19255  shlibpath_var=LD_LIBRARY_PATH
19256  case $host_os in
19257  freebsd2*)
19258    shlibpath_overrides_runpath=yes
19259    ;;
19260  freebsd3.[01]* | freebsdelf3.[01]*)
19261    shlibpath_overrides_runpath=yes
19262    hardcode_into_libs=yes
19263    ;;
19264  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19265  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19266    shlibpath_overrides_runpath=no
19267    hardcode_into_libs=yes
19268    ;;
19269  *) # from 4.6 on, and DragonFly
19270    shlibpath_overrides_runpath=yes
19271    hardcode_into_libs=yes
19272    ;;
19273  esac
19274  ;;
19275
19276gnu*)
19277  version_type=linux
19278  need_lib_prefix=no
19279  need_version=no
19280  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19281  soname_spec='${libname}${release}${shared_ext}$major'
19282  shlibpath_var=LD_LIBRARY_PATH
19283  hardcode_into_libs=yes
19284  ;;
19285
19286hpux9* | hpux10* | hpux11*)
19287  # Give a soname corresponding to the major version so that dld.sl refuses to
19288  # link against other versions.
19289  version_type=sunos
19290  need_lib_prefix=no
19291  need_version=no
19292  case $host_cpu in
19293  ia64*)
19294    shrext_cmds='.so'
19295    hardcode_into_libs=yes
19296    dynamic_linker="$host_os dld.so"
19297    shlibpath_var=LD_LIBRARY_PATH
19298    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19299    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19300    soname_spec='${libname}${release}${shared_ext}$major'
19301    if test "X$HPUX_IA64_MODE" = X32; then
19302      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19303    else
19304      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19305    fi
19306    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19307    ;;
19308  hppa*64*)
19309    shrext_cmds='.sl'
19310    hardcode_into_libs=yes
19311    dynamic_linker="$host_os dld.sl"
19312    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19313    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19314    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19315    soname_spec='${libname}${release}${shared_ext}$major'
19316    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19317    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19318    ;;
19319  *)
19320    shrext_cmds='.sl'
19321    dynamic_linker="$host_os dld.sl"
19322    shlibpath_var=SHLIB_PATH
19323    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19324    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19325    soname_spec='${libname}${release}${shared_ext}$major'
19326    ;;
19327  esac
19328  # HP-UX runs *really* slowly unless shared libraries are mode 555.
19329  postinstall_cmds='chmod 555 $lib'
19330  ;;
19331
19332interix[3-9]*)
19333  version_type=linux
19334  need_lib_prefix=no
19335  need_version=no
19336  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19337  soname_spec='${libname}${release}${shared_ext}$major'
19338  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19339  shlibpath_var=LD_LIBRARY_PATH
19340  shlibpath_overrides_runpath=no
19341  hardcode_into_libs=yes
19342  ;;
19343
19344irix5* | irix6* | nonstopux*)
19345  case $host_os in
19346    nonstopux*) version_type=nonstopux ;;
19347    *)
19348	if test "$lt_cv_prog_gnu_ld" = yes; then
19349		version_type=linux
19350	else
19351		version_type=irix
19352	fi ;;
19353  esac
19354  need_lib_prefix=no
19355  need_version=no
19356  soname_spec='${libname}${release}${shared_ext}$major'
19357  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19358  case $host_os in
19359  irix5* | nonstopux*)
19360    libsuff= shlibsuff=
19361    ;;
19362  *)
19363    case $LD in # libtool.m4 will add one of these switches to LD
19364    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19365      libsuff= shlibsuff= libmagic=32-bit;;
19366    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19367      libsuff=32 shlibsuff=N32 libmagic=N32;;
19368    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19369      libsuff=64 shlibsuff=64 libmagic=64-bit;;
19370    *) libsuff= shlibsuff= libmagic=never-match;;
19371    esac
19372    ;;
19373  esac
19374  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19375  shlibpath_overrides_runpath=no
19376  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19377  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19378  hardcode_into_libs=yes
19379  ;;
19380
19381# No shared lib support for Linux oldld, aout, or coff.
19382linux*oldld* | linux*aout* | linux*coff*)
19383  dynamic_linker=no
19384  ;;
19385
19386# This must be Linux ELF.
19387linux* | k*bsd*-gnu)
19388  version_type=linux
19389  need_lib_prefix=no
19390  need_version=no
19391  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19392  soname_spec='${libname}${release}${shared_ext}$major'
19393  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19394  shlibpath_var=LD_LIBRARY_PATH
19395  shlibpath_overrides_runpath=no
19396  # Some binutils ld are patched to set DT_RUNPATH
19397  save_LDFLAGS=$LDFLAGS
19398  save_libdir=$libdir
19399  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19400       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19402/* end confdefs.h.  */
19403
19404int
19405main ()
19406{
19407
19408  ;
19409  return 0;
19410}
19411_ACEOF
19412if ac_fn_cxx_try_link "$LINENO"; then :
19413  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
19414  shlibpath_overrides_runpath=yes
19415fi
19416fi
19417rm -f core conftest.err conftest.$ac_objext \
19418    conftest$ac_exeext conftest.$ac_ext
19419  LDFLAGS=$save_LDFLAGS
19420  libdir=$save_libdir
19421
19422  # This implies no fast_install, which is unacceptable.
19423  # Some rework will be needed to allow for fast_install
19424  # before this can be enabled.
19425  hardcode_into_libs=yes
19426
19427  # Append ld.so.conf contents to the search path
19428  if test -f /etc/ld.so.conf; then
19429    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' ' '`
19430    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19431  fi
19432
19433  # We used to test for /lib/ld.so.1 and disable shared libraries on
19434  # powerpc, because MkLinux only supported shared libraries with the
19435  # GNU dynamic linker.  Since this was broken with cross compilers,
19436  # most powerpc-linux boxes support dynamic linking these days and
19437  # people can always --disable-shared, the test was removed, and we
19438  # assume the GNU/Linux dynamic linker is in use.
19439  dynamic_linker='GNU/Linux ld.so'
19440  ;;
19441
19442netbsd*)
19443  version_type=sunos
19444  need_lib_prefix=no
19445  need_version=no
19446  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19447    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19448    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19449    dynamic_linker='NetBSD (a.out) ld.so'
19450  else
19451    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19452    soname_spec='${libname}${release}${shared_ext}$major'
19453    dynamic_linker='NetBSD ld.elf_so'
19454  fi
19455  shlibpath_var=LD_LIBRARY_PATH
19456  shlibpath_overrides_runpath=yes
19457  hardcode_into_libs=yes
19458  ;;
19459
19460newsos6)
19461  version_type=linux
19462  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19463  shlibpath_var=LD_LIBRARY_PATH
19464  shlibpath_overrides_runpath=yes
19465  ;;
19466
19467*nto* | *qnx*)
19468  version_type=qnx
19469  need_lib_prefix=no
19470  need_version=no
19471  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19472  soname_spec='${libname}${release}${shared_ext}$major'
19473  shlibpath_var=LD_LIBRARY_PATH
19474  shlibpath_overrides_runpath=no
19475  hardcode_into_libs=yes
19476  dynamic_linker='ldqnx.so'
19477  ;;
19478
19479openbsd*)
19480  version_type=sunos
19481  sys_lib_dlsearch_path_spec="/usr/lib"
19482  need_lib_prefix=no
19483  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19484  case $host_os in
19485    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
19486    *)				need_version=no  ;;
19487  esac
19488  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19489  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19490  shlibpath_var=LD_LIBRARY_PATH
19491  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19492    case $host_os in
19493      openbsd2.[89] | openbsd2.[89].*)
19494	shlibpath_overrides_runpath=no
19495	;;
19496      *)
19497	shlibpath_overrides_runpath=yes
19498	;;
19499      esac
19500  else
19501    shlibpath_overrides_runpath=yes
19502  fi
19503  ;;
19504
19505os2*)
19506  libname_spec='$name'
19507  shrext_cmds=".dll"
19508  need_lib_prefix=no
19509  library_names_spec='$libname${shared_ext} $libname.a'
19510  dynamic_linker='OS/2 ld.exe'
19511  shlibpath_var=LIBPATH
19512  ;;
19513
19514osf3* | osf4* | osf5*)
19515  version_type=osf
19516  need_lib_prefix=no
19517  need_version=no
19518  soname_spec='${libname}${release}${shared_ext}$major'
19519  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19520  shlibpath_var=LD_LIBRARY_PATH
19521  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19522  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19523  ;;
19524
19525rdos*)
19526  dynamic_linker=no
19527  ;;
19528
19529solaris*)
19530  version_type=linux
19531  need_lib_prefix=no
19532  need_version=no
19533  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19534  soname_spec='${libname}${release}${shared_ext}$major'
19535  shlibpath_var=LD_LIBRARY_PATH
19536  shlibpath_overrides_runpath=yes
19537  hardcode_into_libs=yes
19538  # ldd complains unless libraries are executable
19539  postinstall_cmds='chmod +x $lib'
19540  ;;
19541
19542sunos4*)
19543  version_type=sunos
19544  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19545  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19546  shlibpath_var=LD_LIBRARY_PATH
19547  shlibpath_overrides_runpath=yes
19548  if test "$with_gnu_ld" = yes; then
19549    need_lib_prefix=no
19550  fi
19551  need_version=yes
19552  ;;
19553
19554sysv4 | sysv4.3*)
19555  version_type=linux
19556  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19557  soname_spec='${libname}${release}${shared_ext}$major'
19558  shlibpath_var=LD_LIBRARY_PATH
19559  case $host_vendor in
19560    sni)
19561      shlibpath_overrides_runpath=no
19562      need_lib_prefix=no
19563      runpath_var=LD_RUN_PATH
19564      ;;
19565    siemens)
19566      need_lib_prefix=no
19567      ;;
19568    motorola)
19569      need_lib_prefix=no
19570      need_version=no
19571      shlibpath_overrides_runpath=no
19572      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19573      ;;
19574  esac
19575  ;;
19576
19577sysv4*MP*)
19578  if test -d /usr/nec ;then
19579    version_type=linux
19580    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19581    soname_spec='$libname${shared_ext}.$major'
19582    shlibpath_var=LD_LIBRARY_PATH
19583  fi
19584  ;;
19585
19586sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19587  version_type=freebsd-elf
19588  need_lib_prefix=no
19589  need_version=no
19590  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19591  soname_spec='${libname}${release}${shared_ext}$major'
19592  shlibpath_var=LD_LIBRARY_PATH
19593  shlibpath_overrides_runpath=yes
19594  hardcode_into_libs=yes
19595  if test "$with_gnu_ld" = yes; then
19596    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19597  else
19598    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19599    case $host_os in
19600      sco3.2v5*)
19601        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19602	;;
19603    esac
19604  fi
19605  sys_lib_dlsearch_path_spec='/usr/lib'
19606  ;;
19607
19608tpf*)
19609  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
19610  version_type=linux
19611  need_lib_prefix=no
19612  need_version=no
19613  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19614  shlibpath_var=LD_LIBRARY_PATH
19615  shlibpath_overrides_runpath=no
19616  hardcode_into_libs=yes
19617  ;;
19618
19619uts4*)
19620  version_type=linux
19621  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19622  soname_spec='${libname}${release}${shared_ext}$major'
19623  shlibpath_var=LD_LIBRARY_PATH
19624  ;;
19625
19626*)
19627  dynamic_linker=no
19628  ;;
19629esac
19630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19631$as_echo "$dynamic_linker" >&6; }
19632test "$dynamic_linker" = no && can_build_shared=no
19633
19634variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19635if test "$GCC" = yes; then
19636  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19637fi
19638
19639if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19640  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19641fi
19642if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19643  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19644fi
19645
19646
19647
19648
19649
19650
19651
19652
19653
19654
19655
19656
19657
19658
19659
19660
19661
19662
19663
19664
19665
19666
19667
19668
19669
19670
19671
19672
19673
19674
19675
19676
19677
19678
19679
19680
19681    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19682$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19683hardcode_action_CXX=
19684if test -n "$hardcode_libdir_flag_spec_CXX" ||
19685   test -n "$runpath_var_CXX" ||
19686   test "X$hardcode_automatic_CXX" = "Xyes" ; then
19687
19688  # We can hardcode non-existent directories.
19689  if test "$hardcode_direct_CXX" != no &&
19690     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19691     # have to relink, otherwise we might link with an installed library
19692     # when we should be linking with a yet-to-be-installed one
19693     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19694     test "$hardcode_minus_L_CXX" != no; then
19695    # Linking always hardcodes the temporary library directory.
19696    hardcode_action_CXX=relink
19697  else
19698    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19699    hardcode_action_CXX=immediate
19700  fi
19701else
19702  # We cannot hardcode anything, or else we can only hardcode existing
19703  # directories.
19704  hardcode_action_CXX=unsupported
19705fi
19706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19707$as_echo "$hardcode_action_CXX" >&6; }
19708
19709if test "$hardcode_action_CXX" = relink ||
19710   test "$inherit_rpath_CXX" = yes; then
19711  # Fast installation is not supported
19712  enable_fast_install=no
19713elif test "$shlibpath_overrides_runpath" = yes ||
19714     test "$enable_shared" = no; then
19715  # Fast installation is not necessary
19716  enable_fast_install=needless
19717fi
19718
19719
19720
19721
19722
19723
19724
19725  fi # test -n "$compiler"
19726
19727  CC=$lt_save_CC
19728  LDCXX=$LD
19729  LD=$lt_save_LD
19730  GCC=$lt_save_GCC
19731  with_gnu_ld=$lt_save_with_gnu_ld
19732  lt_cv_path_LDCXX=$lt_cv_path_LD
19733  lt_cv_path_LD=$lt_save_path_LD
19734  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19735  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19736fi # test "$_lt_caught_CXX_error" != yes
19737
19738ac_ext=c
19739ac_cpp='$CPP $CPPFLAGS'
19740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19742ac_compiler_gnu=$ac_cv_c_compiler_gnu
19743
19744
19745ac_ext=c
19746ac_cpp='$CPP $CPPFLAGS'
19747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19749ac_compiler_gnu=$ac_cv_c_compiler_gnu
19750if test -n "$ac_tool_prefix"; then
19751  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19752set dummy ${ac_tool_prefix}gcc; ac_word=$2
19753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19754$as_echo_n "checking for $ac_word... " >&6; }
19755if ${ac_cv_prog_CC+:} false; then :
19756  $as_echo_n "(cached) " >&6
19757else
19758  if test -n "$CC"; then
19759  ac_cv_prog_CC="$CC" # Let the user override the test.
19760else
19761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19762for as_dir in $PATH
19763do
19764  IFS=$as_save_IFS
19765  test -z "$as_dir" && as_dir=.
19766    for ac_exec_ext in '' $ac_executable_extensions; do
19767  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19768    ac_cv_prog_CC="${ac_tool_prefix}gcc"
19769    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19770    break 2
19771  fi
19772done
19773  done
19774IFS=$as_save_IFS
19775
19776fi
19777fi
19778CC=$ac_cv_prog_CC
19779if test -n "$CC"; then
19780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19781$as_echo "$CC" >&6; }
19782else
19783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19784$as_echo "no" >&6; }
19785fi
19786
19787
19788fi
19789if test -z "$ac_cv_prog_CC"; then
19790  ac_ct_CC=$CC
19791  # Extract the first word of "gcc", so it can be a program name with args.
19792set dummy gcc; ac_word=$2
19793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19794$as_echo_n "checking for $ac_word... " >&6; }
19795if ${ac_cv_prog_ac_ct_CC+:} false; then :
19796  $as_echo_n "(cached) " >&6
19797else
19798  if test -n "$ac_ct_CC"; then
19799  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19800else
19801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19802for as_dir in $PATH
19803do
19804  IFS=$as_save_IFS
19805  test -z "$as_dir" && as_dir=.
19806    for ac_exec_ext in '' $ac_executable_extensions; do
19807  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19808    ac_cv_prog_ac_ct_CC="gcc"
19809    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19810    break 2
19811  fi
19812done
19813  done
19814IFS=$as_save_IFS
19815
19816fi
19817fi
19818ac_ct_CC=$ac_cv_prog_ac_ct_CC
19819if test -n "$ac_ct_CC"; then
19820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
19821$as_echo "$ac_ct_CC" >&6; }
19822else
19823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19824$as_echo "no" >&6; }
19825fi
19826
19827  if test "x$ac_ct_CC" = x; then
19828    CC=""
19829  else
19830    case $cross_compiling:$ac_tool_warned in
19831yes:)
19832{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19833$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19834ac_tool_warned=yes ;;
19835esac
19836    CC=$ac_ct_CC
19837  fi
19838else
19839  CC="$ac_cv_prog_CC"
19840fi
19841
19842if test -z "$CC"; then
19843          if test -n "$ac_tool_prefix"; then
19844    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19845set dummy ${ac_tool_prefix}cc; ac_word=$2
19846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19847$as_echo_n "checking for $ac_word... " >&6; }
19848if ${ac_cv_prog_CC+:} false; then :
19849  $as_echo_n "(cached) " >&6
19850else
19851  if test -n "$CC"; then
19852  ac_cv_prog_CC="$CC" # Let the user override the test.
19853else
19854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19855for as_dir in $PATH
19856do
19857  IFS=$as_save_IFS
19858  test -z "$as_dir" && as_dir=.
19859    for ac_exec_ext in '' $ac_executable_extensions; do
19860  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19861    ac_cv_prog_CC="${ac_tool_prefix}cc"
19862    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19863    break 2
19864  fi
19865done
19866  done
19867IFS=$as_save_IFS
19868
19869fi
19870fi
19871CC=$ac_cv_prog_CC
19872if test -n "$CC"; then
19873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19874$as_echo "$CC" >&6; }
19875else
19876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19877$as_echo "no" >&6; }
19878fi
19879
19880
19881  fi
19882fi
19883if test -z "$CC"; then
19884  # Extract the first word of "cc", so it can be a program name with args.
19885set dummy cc; ac_word=$2
19886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19887$as_echo_n "checking for $ac_word... " >&6; }
19888if ${ac_cv_prog_CC+:} false; then :
19889  $as_echo_n "(cached) " >&6
19890else
19891  if test -n "$CC"; then
19892  ac_cv_prog_CC="$CC" # Let the user override the test.
19893else
19894  ac_prog_rejected=no
19895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19896for as_dir in $PATH
19897do
19898  IFS=$as_save_IFS
19899  test -z "$as_dir" && as_dir=.
19900    for ac_exec_ext in '' $ac_executable_extensions; do
19901  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19902    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19903       ac_prog_rejected=yes
19904       continue
19905     fi
19906    ac_cv_prog_CC="cc"
19907    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19908    break 2
19909  fi
19910done
19911  done
19912IFS=$as_save_IFS
19913
19914if test $ac_prog_rejected = yes; then
19915  # We found a bogon in the path, so make sure we never use it.
19916  set dummy $ac_cv_prog_CC
19917  shift
19918  if test $# != 0; then
19919    # We chose a different compiler from the bogus one.
19920    # However, it has the same basename, so the bogon will be chosen
19921    # first if we set CC to just the basename; use the full file name.
19922    shift
19923    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19924  fi
19925fi
19926fi
19927fi
19928CC=$ac_cv_prog_CC
19929if test -n "$CC"; then
19930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19931$as_echo "$CC" >&6; }
19932else
19933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19934$as_echo "no" >&6; }
19935fi
19936
19937
19938fi
19939if test -z "$CC"; then
19940  if test -n "$ac_tool_prefix"; then
19941  for ac_prog in cl.exe
19942  do
19943    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19944set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19946$as_echo_n "checking for $ac_word... " >&6; }
19947if ${ac_cv_prog_CC+:} false; then :
19948  $as_echo_n "(cached) " >&6
19949else
19950  if test -n "$CC"; then
19951  ac_cv_prog_CC="$CC" # Let the user override the test.
19952else
19953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19954for as_dir in $PATH
19955do
19956  IFS=$as_save_IFS
19957  test -z "$as_dir" && as_dir=.
19958    for ac_exec_ext in '' $ac_executable_extensions; do
19959  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19960    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19961    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19962    break 2
19963  fi
19964done
19965  done
19966IFS=$as_save_IFS
19967
19968fi
19969fi
19970CC=$ac_cv_prog_CC
19971if test -n "$CC"; then
19972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19973$as_echo "$CC" >&6; }
19974else
19975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19976$as_echo "no" >&6; }
19977fi
19978
19979
19980    test -n "$CC" && break
19981  done
19982fi
19983if test -z "$CC"; then
19984  ac_ct_CC=$CC
19985  for ac_prog in cl.exe
19986do
19987  # Extract the first word of "$ac_prog", so it can be a program name with args.
19988set dummy $ac_prog; ac_word=$2
19989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19990$as_echo_n "checking for $ac_word... " >&6; }
19991if ${ac_cv_prog_ac_ct_CC+:} false; then :
19992  $as_echo_n "(cached) " >&6
19993else
19994  if test -n "$ac_ct_CC"; then
19995  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19996else
19997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19998for as_dir in $PATH
19999do
20000  IFS=$as_save_IFS
20001  test -z "$as_dir" && as_dir=.
20002    for ac_exec_ext in '' $ac_executable_extensions; do
20003  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20004    ac_cv_prog_ac_ct_CC="$ac_prog"
20005    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20006    break 2
20007  fi
20008done
20009  done
20010IFS=$as_save_IFS
20011
20012fi
20013fi
20014ac_ct_CC=$ac_cv_prog_ac_ct_CC
20015if test -n "$ac_ct_CC"; then
20016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
20017$as_echo "$ac_ct_CC" >&6; }
20018else
20019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20020$as_echo "no" >&6; }
20021fi
20022
20023
20024  test -n "$ac_ct_CC" && break
20025done
20026
20027  if test "x$ac_ct_CC" = x; then
20028    CC=""
20029  else
20030    case $cross_compiling:$ac_tool_warned in
20031yes:)
20032{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20033$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20034ac_tool_warned=yes ;;
20035esac
20036    CC=$ac_ct_CC
20037  fi
20038fi
20039
20040fi
20041
20042
20043test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20044$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20045as_fn_error $? "no acceptable C compiler found in \$PATH
20046See \`config.log' for more details" "$LINENO" 5; }
20047
20048# Provide some information about the compiler.
20049$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
20050set X $ac_compile
20051ac_compiler=$2
20052for ac_option in --version -v -V -qversion; do
20053  { { ac_try="$ac_compiler $ac_option >&5"
20054case "(($ac_try" in
20055  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20056  *) ac_try_echo=$ac_try;;
20057esac
20058eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
20059$as_echo "$ac_try_echo"; } >&5
20060  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
20061  ac_status=$?
20062  if test -s conftest.err; then
20063    sed '10a\
20064... rest of stderr output deleted ...
20065         10q' conftest.err >conftest.er1
20066    cat conftest.er1 >&5
20067  fi
20068  rm -f conftest.er1 conftest.err
20069  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20070  test $ac_status = 0; }
20071done
20072
20073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
20074$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
20075if ${ac_cv_c_compiler_gnu+:} false; then :
20076  $as_echo_n "(cached) " >&6
20077else
20078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20079/* end confdefs.h.  */
20080
20081int
20082main ()
20083{
20084#ifndef __GNUC__
20085       choke me
20086#endif
20087
20088  ;
20089  return 0;
20090}
20091_ACEOF
20092if ac_fn_c_try_compile "$LINENO"; then :
20093  ac_compiler_gnu=yes
20094else
20095  ac_compiler_gnu=no
20096fi
20097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20098ac_cv_c_compiler_gnu=$ac_compiler_gnu
20099
20100fi
20101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
20102$as_echo "$ac_cv_c_compiler_gnu" >&6; }
20103if test $ac_compiler_gnu = yes; then
20104  GCC=yes
20105else
20106  GCC=
20107fi
20108ac_test_CFLAGS=${CFLAGS+set}
20109ac_save_CFLAGS=$CFLAGS
20110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
20111$as_echo_n "checking whether $CC accepts -g... " >&6; }
20112if ${ac_cv_prog_cc_g+:} false; then :
20113  $as_echo_n "(cached) " >&6
20114else
20115  ac_save_c_werror_flag=$ac_c_werror_flag
20116   ac_c_werror_flag=yes
20117   ac_cv_prog_cc_g=no
20118   CFLAGS="-g"
20119   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20120/* end confdefs.h.  */
20121
20122int
20123main ()
20124{
20125
20126  ;
20127  return 0;
20128}
20129_ACEOF
20130if ac_fn_c_try_compile "$LINENO"; then :
20131  ac_cv_prog_cc_g=yes
20132else
20133  CFLAGS=""
20134      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20135/* end confdefs.h.  */
20136
20137int
20138main ()
20139{
20140
20141  ;
20142  return 0;
20143}
20144_ACEOF
20145if ac_fn_c_try_compile "$LINENO"; then :
20146
20147else
20148  ac_c_werror_flag=$ac_save_c_werror_flag
20149	 CFLAGS="-g"
20150	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20151/* end confdefs.h.  */
20152
20153int
20154main ()
20155{
20156
20157  ;
20158  return 0;
20159}
20160_ACEOF
20161if ac_fn_c_try_compile "$LINENO"; then :
20162  ac_cv_prog_cc_g=yes
20163fi
20164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20165fi
20166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20167fi
20168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20169   ac_c_werror_flag=$ac_save_c_werror_flag
20170fi
20171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
20172$as_echo "$ac_cv_prog_cc_g" >&6; }
20173if test "$ac_test_CFLAGS" = set; then
20174  CFLAGS=$ac_save_CFLAGS
20175elif test $ac_cv_prog_cc_g = yes; then
20176  if test "$GCC" = yes; then
20177    CFLAGS="-g -O2"
20178  else
20179    CFLAGS="-g"
20180  fi
20181else
20182  if test "$GCC" = yes; then
20183    CFLAGS="-O2"
20184  else
20185    CFLAGS=
20186  fi
20187fi
20188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
20189$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
20190if ${ac_cv_prog_cc_c89+:} false; then :
20191  $as_echo_n "(cached) " >&6
20192else
20193  ac_cv_prog_cc_c89=no
20194ac_save_CC=$CC
20195cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20196/* end confdefs.h.  */
20197#include <stdarg.h>
20198#include <stdio.h>
20199#include <sys/types.h>
20200#include <sys/stat.h>
20201/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20202struct buf { int x; };
20203FILE * (*rcsopen) (struct buf *, struct stat *, int);
20204static char *e (p, i)
20205     char **p;
20206     int i;
20207{
20208  return p[i];
20209}
20210static char *f (char * (*g) (char **, int), char **p, ...)
20211{
20212  char *s;
20213  va_list v;
20214  va_start (v,p);
20215  s = g (p, va_arg (v,int));
20216  va_end (v);
20217  return s;
20218}
20219
20220/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
20221   function prototypes and stuff, but not '\xHH' hex character constants.
20222   These don't provoke an error unfortunately, instead are silently treated
20223   as 'x'.  The following induces an error, until -std is added to get
20224   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
20225   array size at least.  It's necessary to write '\x00'==0 to get something
20226   that's true only with -std.  */
20227int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20228
20229/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20230   inside strings and character constants.  */
20231#define FOO(x) 'x'
20232int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20233
20234int test (int i, double x);
20235struct s1 {int (*f) (int a);};
20236struct s2 {int (*f) (double a);};
20237int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20238int argc;
20239char **argv;
20240int
20241main ()
20242{
20243return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
20244  ;
20245  return 0;
20246}
20247_ACEOF
20248for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20249	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20250do
20251  CC="$ac_save_CC $ac_arg"
20252  if ac_fn_c_try_compile "$LINENO"; then :
20253  ac_cv_prog_cc_c89=$ac_arg
20254fi
20255rm -f core conftest.err conftest.$ac_objext
20256  test "x$ac_cv_prog_cc_c89" != "xno" && break
20257done
20258rm -f conftest.$ac_ext
20259CC=$ac_save_CC
20260
20261fi
20262# AC_CACHE_VAL
20263case "x$ac_cv_prog_cc_c89" in
20264  x)
20265    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
20266$as_echo "none needed" >&6; } ;;
20267  xno)
20268    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
20269$as_echo "unsupported" >&6; } ;;
20270  *)
20271    CC="$CC $ac_cv_prog_cc_c89"
20272    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
20273$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
20274esac
20275if test "x$ac_cv_prog_cc_c89" != xno; then :
20276
20277fi
20278
20279ac_ext=c
20280ac_cpp='$CPP $CPPFLAGS'
20281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20283ac_compiler_gnu=$ac_cv_c_compiler_gnu
20284
20285depcc="$CC"   am_compiler_list=
20286
20287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
20288$as_echo_n "checking dependency style of $depcc... " >&6; }
20289if ${am_cv_CC_dependencies_compiler_type+:} false; then :
20290  $as_echo_n "(cached) " >&6
20291else
20292  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20293  # We make a subdir and do the tests there.  Otherwise we can end up
20294  # making bogus files that we don't know about and never remove.  For
20295  # instance it was reported that on HP-UX the gcc test will end up
20296  # making a dummy file named `D' -- because `-MD' means `put the output
20297  # in D'.
20298  mkdir conftest.dir
20299  # Copy depcomp to subdir because otherwise we won't find it if we're
20300  # using a relative directory.
20301  cp "$am_depcomp" conftest.dir
20302  cd conftest.dir
20303  # We will build objects and dependencies in a subdirectory because
20304  # it helps to detect inapplicable dependency modes.  For instance
20305  # both Tru64's cc and ICC support -MD to output dependencies as a
20306  # side effect of compilation, but ICC will put the dependencies in
20307  # the current directory while Tru64 will put them in the object
20308  # directory.
20309  mkdir sub
20310
20311  am_cv_CC_dependencies_compiler_type=none
20312  if test "$am_compiler_list" = ""; then
20313     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20314  fi
20315  am__universal=false
20316  case " $depcc " in #(
20317     *\ -arch\ *\ -arch\ *) am__universal=true ;;
20318     esac
20319
20320  for depmode in $am_compiler_list; do
20321    # Setup a source with many dependencies, because some compilers
20322    # like to wrap large dependency lists on column 80 (with \), and
20323    # we should not choose a depcomp mode which is confused by this.
20324    #
20325    # We need to recreate these files for each test, as the compiler may
20326    # overwrite some of them when testing with obscure command lines.
20327    # This happens at least with the AIX C compiler.
20328    : > sub/conftest.c
20329    for i in 1 2 3 4 5 6; do
20330      echo '#include "conftst'$i'.h"' >> sub/conftest.c
20331      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20332      # Solaris 8's {/usr,}/bin/sh.
20333      touch sub/conftst$i.h
20334    done
20335    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20336
20337    # We check with `-c' and `-o' for the sake of the "dashmstdout"
20338    # mode.  It turns out that the SunPro C++ compiler does not properly
20339    # handle `-M -o', and we need to detect this.  Also, some Intel
20340    # versions had trouble with output in subdirs
20341    am__obj=sub/conftest.${OBJEXT-o}
20342    am__minus_obj="-o $am__obj"
20343    case $depmode in
20344    gcc)
20345      # This depmode causes a compiler race in universal mode.
20346      test "$am__universal" = false || continue
20347      ;;
20348    nosideeffect)
20349      # after this tag, mechanisms are not by side-effect, so they'll
20350      # only be used when explicitly requested
20351      if test "x$enable_dependency_tracking" = xyes; then
20352	continue
20353      else
20354	break
20355      fi
20356      ;;
20357    msvisualcpp | msvcmsys)
20358      # This compiler won't grok `-c -o', but also, the minuso test has
20359      # not run yet.  These depmodes are late enough in the game, and
20360      # so weak that their functioning should not be impacted.
20361      am__obj=conftest.${OBJEXT-o}
20362      am__minus_obj=
20363      ;;
20364    none) break ;;
20365    esac
20366    if depmode=$depmode \
20367       source=sub/conftest.c object=$am__obj \
20368       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20369       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
20370         >/dev/null 2>conftest.err &&
20371       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20372       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20373       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
20374       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20375      # icc doesn't choke on unknown options, it will just issue warnings
20376      # or remarks (even with -Werror).  So we grep stderr for any message
20377      # that says an option was ignored or not supported.
20378      # When given -MP, icc 7.0 and 7.1 complain thusly:
20379      #   icc: Command line warning: ignoring option '-M'; no argument required
20380      # The diagnosis changed in icc 8.0:
20381      #   icc: Command line remark: option '-MP' not supported
20382      if (grep 'ignoring option' conftest.err ||
20383          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20384        am_cv_CC_dependencies_compiler_type=$depmode
20385        break
20386      fi
20387    fi
20388  done
20389
20390  cd ..
20391  rm -rf conftest.dir
20392else
20393  am_cv_CC_dependencies_compiler_type=none
20394fi
20395
20396fi
20397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
20398$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
20399CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20400
20401 if
20402  test "x$enable_dependency_tracking" != xno \
20403  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20404  am__fastdepCC_TRUE=
20405  am__fastdepCC_FALSE='#'
20406else
20407  am__fastdepCC_TRUE='#'
20408  am__fastdepCC_FALSE=
20409fi
20410
20411
20412ac_ext=cpp
20413ac_cpp='$CXXCPP $CPPFLAGS'
20414ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20415ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20416ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20417
20418
20419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
20420$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20421if ${ac_cv_c_const+:} false; then :
20422  $as_echo_n "(cached) " >&6
20423else
20424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20425/* end confdefs.h.  */
20426
20427int
20428main ()
20429{
20430/* FIXME: Include the comments suggested by Paul. */
20431#ifndef __cplusplus
20432  /* Ultrix mips cc rejects this.  */
20433  typedef int charset[2];
20434  const charset cs;
20435  /* SunOS 4.1.1 cc rejects this.  */
20436  char const *const *pcpcc;
20437  char **ppc;
20438  /* NEC SVR4.0.2 mips cc rejects this.  */
20439  struct point {int x, y;};
20440  static struct point const zero = {0,0};
20441  /* AIX XL C 1.02.0.0 rejects this.
20442     It does not let you subtract one const X* pointer from another in
20443     an arm of an if-expression whose if-part is not a constant
20444     expression */
20445  const char *g = "string";
20446  pcpcc = &g + (g ? g-g : 0);
20447  /* HPUX 7.0 cc rejects these. */
20448  ++pcpcc;
20449  ppc = (char**) pcpcc;
20450  pcpcc = (char const *const *) ppc;
20451  { /* SCO 3.2v4 cc rejects this.  */
20452    char *t;
20453    char const *s = 0 ? (char *) 0 : (char const *) 0;
20454
20455    *t++ = 0;
20456    if (s) return 0;
20457  }
20458  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20459    int x[] = {25, 17};
20460    const int *foo = &x[0];
20461    ++foo;
20462  }
20463  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20464    typedef const int *iptr;
20465    iptr p = 0;
20466    ++p;
20467  }
20468  { /* AIX XL C 1.02.0.0 rejects this saying
20469       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20470    struct s { int j; const int *ap[3]; };
20471    struct s *b; b->j = 5;
20472  }
20473  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20474    const int foo = 10;
20475    if (!foo) return 0;
20476  }
20477  return !cs[0] && !zero.x;
20478#endif
20479
20480  ;
20481  return 0;
20482}
20483_ACEOF
20484if ac_fn_cxx_try_compile "$LINENO"; then :
20485  ac_cv_c_const=yes
20486else
20487  ac_cv_c_const=no
20488fi
20489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20490fi
20491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20492$as_echo "$ac_cv_c_const" >&6; }
20493if test $ac_cv_c_const = no; then
20494
20495$as_echo "#define const /**/" >>confdefs.h
20496
20497fi
20498
20499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
20500$as_echo_n "checking for inline... " >&6; }
20501if ${ac_cv_c_inline+:} false; then :
20502  $as_echo_n "(cached) " >&6
20503else
20504  ac_cv_c_inline=no
20505for ac_kw in inline __inline__ __inline; do
20506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20507/* end confdefs.h.  */
20508#ifndef __cplusplus
20509typedef int foo_t;
20510static $ac_kw foo_t static_foo () {return 0; }
20511$ac_kw foo_t foo () {return 0; }
20512#endif
20513
20514_ACEOF
20515if ac_fn_cxx_try_compile "$LINENO"; then :
20516  ac_cv_c_inline=$ac_kw
20517fi
20518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20519  test "$ac_cv_c_inline" != no && break
20520done
20521
20522fi
20523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
20524$as_echo "$ac_cv_c_inline" >&6; }
20525
20526case $ac_cv_c_inline in
20527  inline | yes) ;;
20528  *)
20529    case $ac_cv_c_inline in
20530      no) ac_val=;;
20531      *) ac_val=$ac_cv_c_inline;;
20532    esac
20533    cat >>confdefs.h <<_ACEOF
20534#ifndef __cplusplus
20535#define inline $ac_val
20536#endif
20537_ACEOF
20538    ;;
20539esac
20540
20541ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20542if test "x$ac_cv_type_size_t" = xyes; then :
20543
20544else
20545
20546cat >>confdefs.h <<_ACEOF
20547#define size_t unsigned int
20548_ACEOF
20549
20550fi
20551
20552
20553# Check SCIM
20554
20555
20556
20557
20558
20559
20560if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20561	if test -n "$ac_tool_prefix"; then
20562  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20563set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20565$as_echo_n "checking for $ac_word... " >&6; }
20566if ${ac_cv_path_PKG_CONFIG+:} false; then :
20567  $as_echo_n "(cached) " >&6
20568else
20569  case $PKG_CONFIG in
20570  [\\/]* | ?:[\\/]*)
20571  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20572  ;;
20573  *)
20574  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20575for as_dir in $PATH
20576do
20577  IFS=$as_save_IFS
20578  test -z "$as_dir" && as_dir=.
20579    for ac_exec_ext in '' $ac_executable_extensions; do
20580  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20581    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20582    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20583    break 2
20584  fi
20585done
20586  done
20587IFS=$as_save_IFS
20588
20589  ;;
20590esac
20591fi
20592PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20593if test -n "$PKG_CONFIG"; then
20594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20595$as_echo "$PKG_CONFIG" >&6; }
20596else
20597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20598$as_echo "no" >&6; }
20599fi
20600
20601
20602fi
20603if test -z "$ac_cv_path_PKG_CONFIG"; then
20604  ac_pt_PKG_CONFIG=$PKG_CONFIG
20605  # Extract the first word of "pkg-config", so it can be a program name with args.
20606set dummy pkg-config; ac_word=$2
20607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20608$as_echo_n "checking for $ac_word... " >&6; }
20609if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
20610  $as_echo_n "(cached) " >&6
20611else
20612  case $ac_pt_PKG_CONFIG in
20613  [\\/]* | ?:[\\/]*)
20614  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20615  ;;
20616  *)
20617  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20618for as_dir in $PATH
20619do
20620  IFS=$as_save_IFS
20621  test -z "$as_dir" && as_dir=.
20622    for ac_exec_ext in '' $ac_executable_extensions; do
20623  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20624    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20625    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20626    break 2
20627  fi
20628done
20629  done
20630IFS=$as_save_IFS
20631
20632  ;;
20633esac
20634fi
20635ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20636if test -n "$ac_pt_PKG_CONFIG"; then
20637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
20638$as_echo "$ac_pt_PKG_CONFIG" >&6; }
20639else
20640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20641$as_echo "no" >&6; }
20642fi
20643
20644  if test "x$ac_pt_PKG_CONFIG" = x; then
20645    PKG_CONFIG=""
20646  else
20647    case $cross_compiling:$ac_tool_warned in
20648yes:)
20649{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20650$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20651ac_tool_warned=yes ;;
20652esac
20653    PKG_CONFIG=$ac_pt_PKG_CONFIG
20654  fi
20655else
20656  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20657fi
20658
20659fi
20660if test -n "$PKG_CONFIG"; then
20661	_pkg_min_version=0.9.0
20662	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
20663$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
20664	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20665		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20666$as_echo "yes" >&6; }
20667	else
20668		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20669$as_echo "no" >&6; }
20670		PKG_CONFIG=""
20671	fi
20672fi
20673
20674pkg_failed=no
20675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SCIM" >&5
20676$as_echo_n "checking for SCIM... " >&6; }
20677
20678if test -n "$SCIM_CFLAGS"; then
20679    pkg_cv_SCIM_CFLAGS="$SCIM_CFLAGS"
20680 elif test -n "$PKG_CONFIG"; then
20681    if test -n "$PKG_CONFIG" && \
20682    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"scim >= \$SCIM_VERSION\""; } >&5
20683  ($PKG_CONFIG --exists --print-errors "scim >= $SCIM_VERSION") 2>&5
20684  ac_status=$?
20685  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20686  test $ac_status = 0; }; then
20687  pkg_cv_SCIM_CFLAGS=`$PKG_CONFIG --cflags "scim >= $SCIM_VERSION" 2>/dev/null`
20688else
20689  pkg_failed=yes
20690fi
20691 else
20692    pkg_failed=untried
20693fi
20694if test -n "$SCIM_LIBS"; then
20695    pkg_cv_SCIM_LIBS="$SCIM_LIBS"
20696 elif test -n "$PKG_CONFIG"; then
20697    if test -n "$PKG_CONFIG" && \
20698    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"scim >= \$SCIM_VERSION\""; } >&5
20699  ($PKG_CONFIG --exists --print-errors "scim >= $SCIM_VERSION") 2>&5
20700  ac_status=$?
20701  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20702  test $ac_status = 0; }; then
20703  pkg_cv_SCIM_LIBS=`$PKG_CONFIG --libs "scim >= $SCIM_VERSION" 2>/dev/null`
20704else
20705  pkg_failed=yes
20706fi
20707 else
20708    pkg_failed=untried
20709fi
20710
20711
20712
20713if test $pkg_failed = yes; then
20714   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20715$as_echo "no" >&6; }
20716
20717if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20718        _pkg_short_errors_supported=yes
20719else
20720        _pkg_short_errors_supported=no
20721fi
20722        if test $_pkg_short_errors_supported = yes; then
20723	        SCIM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "scim >= $SCIM_VERSION" 2>&1`
20724        else
20725	        SCIM_PKG_ERRORS=`$PKG_CONFIG --print-errors "scim >= $SCIM_VERSION" 2>&1`
20726        fi
20727	# Put the nasty error message in config.log where it belongs
20728	echo "$SCIM_PKG_ERRORS" >&5
20729
20730	as_fn_error $? "Package requirements (scim >= $SCIM_VERSION) were not met:
20731
20732$SCIM_PKG_ERRORS
20733
20734Consider adjusting the PKG_CONFIG_PATH environment variable if you
20735installed software in a non-standard prefix.
20736
20737Alternatively, you may set the environment variables SCIM_CFLAGS
20738and SCIM_LIBS to avoid the need to call pkg-config.
20739See the pkg-config man page for more details." "$LINENO" 5
20740elif test $pkg_failed = untried; then
20741     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20742$as_echo "no" >&6; }
20743	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20744$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20745as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20746is in your PATH or set the PKG_CONFIG environment variable to the full
20747path to pkg-config.
20748
20749Alternatively, you may set the environment variables SCIM_CFLAGS
20750and SCIM_LIBS to avoid the need to call pkg-config.
20751See the pkg-config man page for more details.
20752
20753To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20754See \`config.log' for more details" "$LINENO" 5; }
20755else
20756	SCIM_CFLAGS=$pkg_cv_SCIM_CFLAGS
20757	SCIM_LIBS=$pkg_cv_SCIM_LIBS
20758        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20759$as_echo "yes" >&6; }
20760
20761fi
20762
20763# Check if we should build setup module
20764
20765pkg_failed=no
20766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SCIM_GTKUTILS" >&5
20767$as_echo_n "checking for SCIM_GTKUTILS... " >&6; }
20768
20769if test -n "$SCIM_GTKUTILS_CFLAGS"; then
20770    pkg_cv_SCIM_GTKUTILS_CFLAGS="$SCIM_GTKUTILS_CFLAGS"
20771 elif test -n "$PKG_CONFIG"; then
20772    if test -n "$PKG_CONFIG" && \
20773    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"scim-gtkutils >= \$SCIM_VERSION\""; } >&5
20774  ($PKG_CONFIG --exists --print-errors "scim-gtkutils >= $SCIM_VERSION") 2>&5
20775  ac_status=$?
20776  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20777  test $ac_status = 0; }; then
20778  pkg_cv_SCIM_GTKUTILS_CFLAGS=`$PKG_CONFIG --cflags "scim-gtkutils >= $SCIM_VERSION" 2>/dev/null`
20779else
20780  pkg_failed=yes
20781fi
20782 else
20783    pkg_failed=untried
20784fi
20785if test -n "$SCIM_GTKUTILS_LIBS"; then
20786    pkg_cv_SCIM_GTKUTILS_LIBS="$SCIM_GTKUTILS_LIBS"
20787 elif test -n "$PKG_CONFIG"; then
20788    if test -n "$PKG_CONFIG" && \
20789    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"scim-gtkutils >= \$SCIM_VERSION\""; } >&5
20790  ($PKG_CONFIG --exists --print-errors "scim-gtkutils >= $SCIM_VERSION") 2>&5
20791  ac_status=$?
20792  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20793  test $ac_status = 0; }; then
20794  pkg_cv_SCIM_GTKUTILS_LIBS=`$PKG_CONFIG --libs "scim-gtkutils >= $SCIM_VERSION" 2>/dev/null`
20795else
20796  pkg_failed=yes
20797fi
20798 else
20799    pkg_failed=untried
20800fi
20801
20802
20803
20804if test $pkg_failed = yes; then
20805   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20806$as_echo "no" >&6; }
20807
20808if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20809        _pkg_short_errors_supported=yes
20810else
20811        _pkg_short_errors_supported=no
20812fi
20813        if test $_pkg_short_errors_supported = yes; then
20814	        SCIM_GTKUTILS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "scim-gtkutils >= $SCIM_VERSION" 2>&1`
20815        else
20816	        SCIM_GTKUTILS_PKG_ERRORS=`$PKG_CONFIG --print-errors "scim-gtkutils >= $SCIM_VERSION" 2>&1`
20817        fi
20818	# Put the nasty error message in config.log where it belongs
20819	echo "$SCIM_GTKUTILS_PKG_ERRORS" >&5
20820
20821	SCIM_HAS_GTKUTILS=no
20822elif test $pkg_failed = untried; then
20823     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20824$as_echo "no" >&6; }
20825	SCIM_HAS_GTKUTILS=no
20826else
20827	SCIM_GTKUTILS_CFLAGS=$pkg_cv_SCIM_GTKUTILS_CFLAGS
20828	SCIM_GTKUTILS_LIBS=$pkg_cv_SCIM_GTKUTILS_LIBS
20829        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20830$as_echo "yes" >&6; }
20831	SCIM_HAS_GTKUTILS=yes
20832fi
20833
20834if test "$SCIM_HAS_GTKUTILS" = "yes"; then
20835  SCIM_BUILD_SETUP=1
20836else
20837  SCIM_BUILD_SETUP=0
20838fi
20839
20840 if test "$SCIM_HAS_GTKUTILS" = "yes"; then
20841  SCIM_BUILD_SETUP_TRUE=
20842  SCIM_BUILD_SETUP_FALSE='#'
20843else
20844  SCIM_BUILD_SETUP_TRUE='#'
20845  SCIM_BUILD_SETUP_FALSE=
20846fi
20847
20848
20849
20850# Checks for header files.
20851
20852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
20853$as_echo_n "checking for ANSI C header files... " >&6; }
20854if ${ac_cv_header_stdc+:} false; then :
20855  $as_echo_n "(cached) " >&6
20856else
20857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20858/* end confdefs.h.  */
20859#include <stdlib.h>
20860#include <stdarg.h>
20861#include <string.h>
20862#include <float.h>
20863
20864int
20865main ()
20866{
20867
20868  ;
20869  return 0;
20870}
20871_ACEOF
20872if ac_fn_cxx_try_compile "$LINENO"; then :
20873  ac_cv_header_stdc=yes
20874else
20875  ac_cv_header_stdc=no
20876fi
20877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20878
20879if test $ac_cv_header_stdc = yes; then
20880  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20882/* end confdefs.h.  */
20883#include <string.h>
20884
20885_ACEOF
20886if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20887  $EGREP "memchr" >/dev/null 2>&1; then :
20888
20889else
20890  ac_cv_header_stdc=no
20891fi
20892rm -f conftest*
20893
20894fi
20895
20896if test $ac_cv_header_stdc = yes; then
20897  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20899/* end confdefs.h.  */
20900#include <stdlib.h>
20901
20902_ACEOF
20903if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20904  $EGREP "free" >/dev/null 2>&1; then :
20905
20906else
20907  ac_cv_header_stdc=no
20908fi
20909rm -f conftest*
20910
20911fi
20912
20913if test $ac_cv_header_stdc = yes; then
20914  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20915  if test "$cross_compiling" = yes; then :
20916  :
20917else
20918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20919/* end confdefs.h.  */
20920#include <ctype.h>
20921#include <stdlib.h>
20922#if ((' ' & 0x0FF) == 0x020)
20923# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20924# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20925#else
20926# define ISLOWER(c) \
20927		   (('a' <= (c) && (c) <= 'i') \
20928		     || ('j' <= (c) && (c) <= 'r') \
20929		     || ('s' <= (c) && (c) <= 'z'))
20930# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20931#endif
20932
20933#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20934int
20935main ()
20936{
20937  int i;
20938  for (i = 0; i < 256; i++)
20939    if (XOR (islower (i), ISLOWER (i))
20940	|| toupper (i) != TOUPPER (i))
20941      return 2;
20942  return 0;
20943}
20944_ACEOF
20945if ac_fn_cxx_try_run "$LINENO"; then :
20946
20947else
20948  ac_cv_header_stdc=no
20949fi
20950rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20951  conftest.$ac_objext conftest.beam conftest.$ac_ext
20952fi
20953
20954fi
20955fi
20956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
20957$as_echo "$ac_cv_header_stdc" >&6; }
20958if test $ac_cv_header_stdc = yes; then
20959
20960$as_echo "#define STDC_HEADERS 1" >>confdefs.h
20961
20962fi
20963
20964for ac_header in langinfo.h libintl.h string.h hash_map ext/hash_map
20965do :
20966  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20967ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20968if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20969  cat >>confdefs.h <<_ACEOF
20970#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20971_ACEOF
20972
20973fi
20974
20975done
20976
20977
20978# libtool option to control which symbols are exported
20979# right now, symbols starting with _ are not exported
20980LIBTOOL_EXPORT_OPTIONS='-export-symbols-regex "^[^_].*"'
20981
20982
20983# Extra args.
20984# Check whether --enable-debug was given.
20985if test "${enable_debug+set}" = set; then :
20986  enableval=$enable_debug;
20987else
20988  enable_debug=no
20989fi
20990
20991
20992# Check whether --enable-skim-support was given.
20993if test "${enable_skim_support+set}" = set; then :
20994  enableval=$enable_skim_support;
20995else
20996  enable_skim_support=yes
20997fi
20998
20999
21000 if test "$enable_skim_support" = "yes"; then
21001  SCIM_BUILD_SKIM_SETUP_TRUE=
21002  SCIM_BUILD_SKIM_SETUP_FALSE='#'
21003else
21004  SCIM_BUILD_SKIM_SETUP_TRUE='#'
21005  SCIM_BUILD_SKIM_SETUP_FALSE=
21006fi
21007
21008
21009if test "$enable_debug" = "yes"; then
21010
21011$as_echo "#define ENABLE_DEBUG 1" >>confdefs.h
21012
21013  CFLAGS="$CFLAGS -g"
21014  CXXFLAGS="$CXXFLAGS -g"
21015fi
21016
21017if test "x$SCIM_ICONDIR" = "x"; then
21018  SCIM_ICONDIR=${datadir}/scim/icons
21019fi
21020
21021if test "x$SCIM_MODULEDIR" = "x"; then
21022  SCIM_MODULEDIR=${libdir}/scim-1.0
21023fi
21024
21025if test "x$SCIM_DATADIR" = "x"; then
21026  SCIM_DATADIR=${datadir}/scim
21027fi
21028
21029
21030
21031
21032
21033SCIM_TABLEDIR=$SCIM_DATADIR/tables
21034
21035
21036
21037ac_config_files="$ac_config_files Makefile intl/Makefile po/Makefile.in m4/Makefile docs/Makefile icons/Makefile src/Makefile scim-tables.spec tables/Makefile tables/additional/IPA-Kirshenbaum.txt tables/additional/IPA-X-SAMPA.txt tables/additional/LaTeX.txt tables/additional/Makefile tables/am/Amharic.txt tables/am/Makefile tables/ar/Arabic.txt tables/ar/Makefile tables/bn/Bengali-inscript.txt tables/bn/Bengali-probhat.txt tables/bn/Makefile tables/gr/Makefile tables/gr/greekpoly.txt tables/gu/Gujarati-inscript.txt tables/gu/Gujarati-phonetic.txt tables/gu/Makefile tables/he/Makefile tables/he/classicalhebrew.txt tables/hi/Hindi-inscript.txt tables/hi/Hindi-phonetic.txt tables/hi/Hindi-remington.txt tables/hi/Makefile tables/ja/HIRAGANA.txt tables/ja/KATAKANA.txt tables/ja/Makefile tables/ja/Nippon.txt tables/kn/Kannada-inscript.txt tables/kn/Kannada-kgp.txt tables/kn/Makefile tables/ko/Hangul.txt tables/ko/HangulRomaja.txt tables/ko/Hanja.txt tables/ko/Makefile tables/ml/Makefile tables/ml/Malayalam-inscript.txt tables/ml/Malayalam-phonetic.txt tables/mr/Makefile tables/mr/Marathi-remington.txt tables/ne/Makefile tables/ne/Nepali_Rom.txt tables/ne/Nepali_Trad.txt tables/pa/Makefile tables/pa/Punjabi-inscript.txt tables/pa/Punjabi-jhelum.txt tables/pa/Punjabi-phonetic.txt tables/pa/Punjabi-remington.txt tables/ru/Makefile tables/ru/RussianTraditional.txt tables/ru/Translit.txt tables/ru/Yawerty.txt tables/ta/Makefile tables/ta/Tamil-inscript.txt tables/ta/Tamil-phonetic.txt tables/ta/Tamil-remington.txt tables/ta/Tamil-tamil99.txt tables/te/Makefile tables/te/Telugu-inscript.txt tables/th/Makefile tables/th/Thai.txt tables/ug/Makefile tables/ug/Uyghur-Romanized.txt tables/ug/Uyghur-Standard.txt tables/uk/Makefile tables/uk/Ukrainian-Translit.txt tables/vi/Makefile tables/vi/Viqr.txt tables/zh/Array30.txt tables/zh/CNS11643.txt tables/zh/CangJie.txt tables/zh/CangJie3.txt tables/zh/CangJie5.txt tables/zh/CantonHK.txt tables/zh/Cantonese.txt tables/zh/Dayi3.txt tables/zh/EZ-Big.txt tables/zh/Erbi-QS.txt tables/zh/Erbi.txt tables/zh/Jyutping.txt tables/zh/Makefile tables/zh/Quick.txt tables/zh/Simplex.txt tables/zh/SmartCangJie6.txt tables/zh/Stroke5.txt tables/zh/Wu.txt tables/zh/Wubi.txt tables/zh/ZhuYin-Big.txt tables/zh/ZhuYin.txt tables/zh/Ziranma.txt"
21038
21039
21040if test "$enable_skim_support" = "yes"; then
21041  REQUIRED_SKIM_VERSION=1.2.1
21042    kde_libsuffix=`kde-config --libsuffix`
21043  test -z "$KDEDIR" && KDEDIR=`kde-config --prefix`
21044
21045  export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$KDEDIR/lib${kde_libsuffix}/pkgconfig
21046
21047pkg_failed=no
21048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SKIM" >&5
21049$as_echo_n "checking for SKIM... " >&6; }
21050
21051if test -n "$SKIM_CFLAGS"; then
21052    pkg_cv_SKIM_CFLAGS="$SKIM_CFLAGS"
21053 elif test -n "$PKG_CONFIG"; then
21054    if test -n "$PKG_CONFIG" && \
21055    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"skim >= \$REQUIRED_SKIM_VERSION\""; } >&5
21056  ($PKG_CONFIG --exists --print-errors "skim >= $REQUIRED_SKIM_VERSION") 2>&5
21057  ac_status=$?
21058  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21059  test $ac_status = 0; }; then
21060  pkg_cv_SKIM_CFLAGS=`$PKG_CONFIG --cflags "skim >= $REQUIRED_SKIM_VERSION" 2>/dev/null`
21061else
21062  pkg_failed=yes
21063fi
21064 else
21065    pkg_failed=untried
21066fi
21067if test -n "$SKIM_LIBS"; then
21068    pkg_cv_SKIM_LIBS="$SKIM_LIBS"
21069 elif test -n "$PKG_CONFIG"; then
21070    if test -n "$PKG_CONFIG" && \
21071    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"skim >= \$REQUIRED_SKIM_VERSION\""; } >&5
21072  ($PKG_CONFIG --exists --print-errors "skim >= $REQUIRED_SKIM_VERSION") 2>&5
21073  ac_status=$?
21074  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21075  test $ac_status = 0; }; then
21076  pkg_cv_SKIM_LIBS=`$PKG_CONFIG --libs "skim >= $REQUIRED_SKIM_VERSION" 2>/dev/null`
21077else
21078  pkg_failed=yes
21079fi
21080 else
21081    pkg_failed=untried
21082fi
21083
21084
21085
21086if test $pkg_failed = yes; then
21087   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21088$as_echo "no" >&6; }
21089
21090if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21091        _pkg_short_errors_supported=yes
21092else
21093        _pkg_short_errors_supported=no
21094fi
21095        if test $_pkg_short_errors_supported = yes; then
21096	        SKIM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "skim >= $REQUIRED_SKIM_VERSION" 2>&1`
21097        else
21098	        SKIM_PKG_ERRORS=`$PKG_CONFIG --print-errors "skim >= $REQUIRED_SKIM_VERSION" 2>&1`
21099        fi
21100	# Put the nasty error message in config.log where it belongs
21101	echo "$SKIM_PKG_ERRORS" >&5
21102
21103	HAS_SKIM=no
21104elif test $pkg_failed = untried; then
21105     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21106$as_echo "no" >&6; }
21107	HAS_SKIM=no
21108else
21109	SKIM_CFLAGS=$pkg_cv_SKIM_CFLAGS
21110	SKIM_LIBS=$pkg_cv_SKIM_LIBS
21111        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21112$as_echo "yes" >&6; }
21113	HAS_SKIM=yes
21114fi
21115else
21116  HAS_SKIM=no
21117fi
21118
21119if test "x$HAS_SKIM" = "xyes"; then
21120
21121pkg_failed=no
21122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SCIM_KDEUTILS" >&5
21123$as_echo_n "checking for SCIM_KDEUTILS... " >&6; }
21124
21125if test -n "$SCIM_KDEUTILS_CFLAGS"; then
21126    pkg_cv_SCIM_KDEUTILS_CFLAGS="$SCIM_KDEUTILS_CFLAGS"
21127 elif test -n "$PKG_CONFIG"; then
21128    if test -n "$PKG_CONFIG" && \
21129    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"scim_kdeutils >= \$REQUIRED_SKIM_VERSION\""; } >&5
21130  ($PKG_CONFIG --exists --print-errors "scim_kdeutils >= $REQUIRED_SKIM_VERSION") 2>&5
21131  ac_status=$?
21132  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21133  test $ac_status = 0; }; then
21134  pkg_cv_SCIM_KDEUTILS_CFLAGS=`$PKG_CONFIG --cflags "scim_kdeutils >= $REQUIRED_SKIM_VERSION" 2>/dev/null`
21135else
21136  pkg_failed=yes
21137fi
21138 else
21139    pkg_failed=untried
21140fi
21141if test -n "$SCIM_KDEUTILS_LIBS"; then
21142    pkg_cv_SCIM_KDEUTILS_LIBS="$SCIM_KDEUTILS_LIBS"
21143 elif test -n "$PKG_CONFIG"; then
21144    if test -n "$PKG_CONFIG" && \
21145    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"scim_kdeutils >= \$REQUIRED_SKIM_VERSION\""; } >&5
21146  ($PKG_CONFIG --exists --print-errors "scim_kdeutils >= $REQUIRED_SKIM_VERSION") 2>&5
21147  ac_status=$?
21148  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21149  test $ac_status = 0; }; then
21150  pkg_cv_SCIM_KDEUTILS_LIBS=`$PKG_CONFIG --libs "scim_kdeutils >= $REQUIRED_SKIM_VERSION" 2>/dev/null`
21151else
21152  pkg_failed=yes
21153fi
21154 else
21155    pkg_failed=untried
21156fi
21157
21158
21159
21160if test $pkg_failed = yes; then
21161   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21162$as_echo "no" >&6; }
21163
21164if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21165        _pkg_short_errors_supported=yes
21166else
21167        _pkg_short_errors_supported=no
21168fi
21169        if test $_pkg_short_errors_supported = yes; then
21170	        SCIM_KDEUTILS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "scim_kdeutils >= $REQUIRED_SKIM_VERSION" 2>&1`
21171        else
21172	        SCIM_KDEUTILS_PKG_ERRORS=`$PKG_CONFIG --print-errors "scim_kdeutils >= $REQUIRED_SKIM_VERSION" 2>&1`
21173        fi
21174	# Put the nasty error message in config.log where it belongs
21175	echo "$SCIM_KDEUTILS_PKG_ERRORS" >&5
21176
21177	HAS_KDEUTILS=no
21178elif test $pkg_failed = untried; then
21179     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21180$as_echo "no" >&6; }
21181	HAS_KDEUTILS=no
21182else
21183	SCIM_KDEUTILS_CFLAGS=$pkg_cv_SCIM_KDEUTILS_CFLAGS
21184	SCIM_KDEUTILS_LIBS=$pkg_cv_SCIM_KDEUTILS_LIBS
21185        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21186$as_echo "yes" >&6; }
21187	HAS_KDEUTILS=yes
21188fi
21189  if test "x$HAS_KDEUTILS" = "xyes"; then
21190      subdirs="$subdirs skim"
21191
21192      SCIM_TABLES_ENABLE_SKIM_SUPPORT=1
21193      enable_skim_support=yes
21194  else
21195      SCIM_TABLES_ENABLE_SKIM_SUPPORT=0
21196      enable_skim_support=no
21197  fi
21198else
21199  SCIM_TABLES_ENABLE_SKIM_SUPPORT=0
21200  enable_skim_support=no
21201fi
21202
21203 if test "$SCIM_TABLES_ENABLE_SKIM_SUPPORT" = "1"; then
21204  SCIM_TABLES_ENABLE_SKIM_SUPPORT_TRUE=
21205  SCIM_TABLES_ENABLE_SKIM_SUPPORT_FALSE='#'
21206else
21207  SCIM_TABLES_ENABLE_SKIM_SUPPORT_TRUE='#'
21208  SCIM_TABLES_ENABLE_SKIM_SUPPORT_FALSE=
21209fi
21210
21211
21212cat >confcache <<\_ACEOF
21213# This file is a shell script that caches the results of configure
21214# tests run on this system so they can be shared between configure
21215# scripts and configure runs, see configure's option --config-cache.
21216# It is not useful on other systems.  If it contains results you don't
21217# want to keep, you may remove or edit it.
21218#
21219# config.status only pays attention to the cache file if you give it
21220# the --recheck option to rerun configure.
21221#
21222# `ac_cv_env_foo' variables (set or unset) will be overridden when
21223# loading this file, other *unset* `ac_cv_foo' will be assigned the
21224# following values.
21225
21226_ACEOF
21227
21228# The following way of writing the cache mishandles newlines in values,
21229# but we know of no workaround that is simple, portable, and efficient.
21230# So, we kill variables containing newlines.
21231# Ultrix sh set writes to stderr and can't be redirected directly,
21232# and sets the high bit in the cache file unless we assign to the vars.
21233(
21234  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21235    eval ac_val=\$$ac_var
21236    case $ac_val in #(
21237    *${as_nl}*)
21238      case $ac_var in #(
21239      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21240$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21241      esac
21242      case $ac_var in #(
21243      _ | IFS | as_nl) ;; #(
21244      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21245      *) { eval $ac_var=; unset $ac_var;} ;;
21246      esac ;;
21247    esac
21248  done
21249
21250  (set) 2>&1 |
21251    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21252    *${as_nl}ac_space=\ *)
21253      # `set' does not quote correctly, so add quotes: double-quote
21254      # substitution turns \\\\ into \\, and sed turns \\ into \.
21255      sed -n \
21256	"s/'/'\\\\''/g;
21257	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21258      ;; #(
21259    *)
21260      # `set' quotes correctly as required by POSIX, so do not add quotes.
21261      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21262      ;;
21263    esac |
21264    sort
21265) |
21266  sed '
21267     /^ac_cv_env_/b end
21268     t clear
21269     :clear
21270     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21271     t end
21272     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21273     :end' >>confcache
21274if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21275  if test -w "$cache_file"; then
21276    if test "x$cache_file" != "x/dev/null"; then
21277      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21278$as_echo "$as_me: updating cache $cache_file" >&6;}
21279      if test ! -f "$cache_file" || test -h "$cache_file"; then
21280	cat confcache >"$cache_file"
21281      else
21282        case $cache_file in #(
21283        */* | ?:*)
21284	  mv -f confcache "$cache_file"$$ &&
21285	  mv -f "$cache_file"$$ "$cache_file" ;; #(
21286        *)
21287	  mv -f confcache "$cache_file" ;;
21288	esac
21289      fi
21290    fi
21291  else
21292    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21293$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21294  fi
21295fi
21296rm -f confcache
21297
21298test "x$prefix" = xNONE && prefix=$ac_default_prefix
21299# Let make expand exec_prefix.
21300test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21301
21302DEFS=-DHAVE_CONFIG_H
21303
21304ac_libobjs=
21305ac_ltlibobjs=
21306U=
21307for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21308  # 1. Remove the extension, and $U if already installed.
21309  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21310  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21311  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21312  #    will be set to the directory where LIBOBJS objects are built.
21313  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21314  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21315done
21316LIBOBJS=$ac_libobjs
21317
21318LTLIBOBJS=$ac_ltlibobjs
21319
21320
21321 if test -n "$EXEEXT"; then
21322  am__EXEEXT_TRUE=
21323  am__EXEEXT_FALSE='#'
21324else
21325  am__EXEEXT_TRUE='#'
21326  am__EXEEXT_FALSE=
21327fi
21328
21329if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21330  as_fn_error $? "conditional \"AMDEP\" was never defined.
21331Usually this means the macro was only invoked conditionally." "$LINENO" 5
21332fi
21333if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21334  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21335Usually this means the macro was only invoked conditionally." "$LINENO" 5
21336fi
21337if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21338  as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
21339Usually this means the macro was only invoked conditionally." "$LINENO" 5
21340fi
21341if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21342  as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
21343Usually this means the macro was only invoked conditionally." "$LINENO" 5
21344fi
21345LT_CONFIG_H=config.h
21346
21347    _ltdl_libobjs=
21348    _ltdl_ltlibobjs=
21349    if test -n "$_LT_LIBOBJS"; then
21350      # Remove the extension.
21351      _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
21352      for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
21353        _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
21354        _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
21355      done
21356    fi
21357    ltdl_LIBOBJS=$_ltdl_libobjs
21358
21359    ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
21360
21361
21362if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21363  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
21364Usually this means the macro was only invoked conditionally." "$LINENO" 5
21365fi
21366if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21367  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
21368Usually this means the macro was only invoked conditionally." "$LINENO" 5
21369fi
21370if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21371  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21372Usually this means the macro was only invoked conditionally." "$LINENO" 5
21373fi
21374if test -z "${SCIM_BUILD_SETUP_TRUE}" && test -z "${SCIM_BUILD_SETUP_FALSE}"; then
21375  as_fn_error $? "conditional \"SCIM_BUILD_SETUP\" was never defined.
21376Usually this means the macro was only invoked conditionally." "$LINENO" 5
21377fi
21378if test -z "${SCIM_BUILD_SKIM_SETUP_TRUE}" && test -z "${SCIM_BUILD_SKIM_SETUP_FALSE}"; then
21379  as_fn_error $? "conditional \"SCIM_BUILD_SKIM_SETUP\" was never defined.
21380Usually this means the macro was only invoked conditionally." "$LINENO" 5
21381fi
21382if test -z "${SCIM_TABLES_ENABLE_SKIM_SUPPORT_TRUE}" && test -z "${SCIM_TABLES_ENABLE_SKIM_SUPPORT_FALSE}"; then
21383  as_fn_error $? "conditional \"SCIM_TABLES_ENABLE_SKIM_SUPPORT\" was never defined.
21384Usually this means the macro was only invoked conditionally." "$LINENO" 5
21385fi
21386
21387: "${CONFIG_STATUS=./config.status}"
21388ac_write_fail=0
21389ac_clean_files_save=$ac_clean_files
21390ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21391{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21392$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21393as_write_fail=0
21394cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21395#! $SHELL
21396# Generated by $as_me.
21397# Run this file to recreate the current configuration.
21398# Compiler output produced by configure, useful for debugging
21399# configure, is in config.log if it exists.
21400
21401debug=false
21402ac_cs_recheck=false
21403ac_cs_silent=false
21404
21405SHELL=\${CONFIG_SHELL-$SHELL}
21406export SHELL
21407_ASEOF
21408cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21409## -------------------- ##
21410## M4sh Initialization. ##
21411## -------------------- ##
21412
21413# Be more Bourne compatible
21414DUALCASE=1; export DUALCASE # for MKS sh
21415if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21416  emulate sh
21417  NULLCMD=:
21418  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21419  # is contrary to our usage.  Disable this feature.
21420  alias -g '${1+"$@"}'='"$@"'
21421  setopt NO_GLOB_SUBST
21422else
21423  case `(set -o) 2>/dev/null` in #(
21424  *posix*) :
21425    set -o posix ;; #(
21426  *) :
21427     ;;
21428esac
21429fi
21430
21431
21432as_nl='
21433'
21434export as_nl
21435# Printing a long string crashes Solaris 7 /usr/bin/printf.
21436as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21437as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21438as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21439# Prefer a ksh shell builtin over an external printf program on Solaris,
21440# but without wasting forks for bash or zsh.
21441if test -z "$BASH_VERSION$ZSH_VERSION" \
21442    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21443  as_echo='print -r --'
21444  as_echo_n='print -rn --'
21445elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21446  as_echo='printf %s\n'
21447  as_echo_n='printf %s'
21448else
21449  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21450    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21451    as_echo_n='/usr/ucb/echo -n'
21452  else
21453    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21454    as_echo_n_body='eval
21455      arg=$1;
21456      case $arg in #(
21457      *"$as_nl"*)
21458	expr "X$arg" : "X\\(.*\\)$as_nl";
21459	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21460      esac;
21461      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21462    '
21463    export as_echo_n_body
21464    as_echo_n='sh -c $as_echo_n_body as_echo'
21465  fi
21466  export as_echo_body
21467  as_echo='sh -c $as_echo_body as_echo'
21468fi
21469
21470# The user is always right.
21471if test "${PATH_SEPARATOR+set}" != set; then
21472  PATH_SEPARATOR=:
21473  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21474    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21475      PATH_SEPARATOR=';'
21476  }
21477fi
21478
21479
21480# IFS
21481# We need space, tab and new line, in precisely that order.  Quoting is
21482# there to prevent editors from complaining about space-tab.
21483# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21484# splitting by setting IFS to empty value.)
21485IFS=" ""	$as_nl"
21486
21487# Find who we are.  Look in the path if we contain no directory separator.
21488as_myself=
21489case $0 in #((
21490  *[\\/]* ) as_myself=$0 ;;
21491  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21492for as_dir in $PATH
21493do
21494  IFS=$as_save_IFS
21495  test -z "$as_dir" && as_dir=.
21496    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21497  done
21498IFS=$as_save_IFS
21499
21500     ;;
21501esac
21502# We did not find ourselves, most probably we were run as `sh COMMAND'
21503# in which case we are not to be found in the path.
21504if test "x$as_myself" = x; then
21505  as_myself=$0
21506fi
21507if test ! -f "$as_myself"; then
21508  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21509  exit 1
21510fi
21511
21512# Unset variables that we do not need and which cause bugs (e.g. in
21513# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
21514# suppresses any "Segmentation fault" message there.  '((' could
21515# trigger a bug in pdksh 5.2.14.
21516for as_var in BASH_ENV ENV MAIL MAILPATH
21517do eval test x\${$as_var+set} = xset \
21518  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21519done
21520PS1='$ '
21521PS2='> '
21522PS4='+ '
21523
21524# NLS nuisances.
21525LC_ALL=C
21526export LC_ALL
21527LANGUAGE=C
21528export LANGUAGE
21529
21530# CDPATH.
21531(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21532
21533
21534# as_fn_error STATUS ERROR [LINENO LOG_FD]
21535# ----------------------------------------
21536# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21537# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21538# script with STATUS, using 1 if that was 0.
21539as_fn_error ()
21540{
21541  as_status=$1; test $as_status -eq 0 && as_status=1
21542  if test "$4"; then
21543    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21544    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21545  fi
21546  $as_echo "$as_me: error: $2" >&2
21547  as_fn_exit $as_status
21548} # as_fn_error
21549
21550
21551# as_fn_set_status STATUS
21552# -----------------------
21553# Set $? to STATUS, without forking.
21554as_fn_set_status ()
21555{
21556  return $1
21557} # as_fn_set_status
21558
21559# as_fn_exit STATUS
21560# -----------------
21561# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21562as_fn_exit ()
21563{
21564  set +e
21565  as_fn_set_status $1
21566  exit $1
21567} # as_fn_exit
21568
21569# as_fn_unset VAR
21570# ---------------
21571# Portably unset VAR.
21572as_fn_unset ()
21573{
21574  { eval $1=; unset $1;}
21575}
21576as_unset=as_fn_unset
21577# as_fn_append VAR VALUE
21578# ----------------------
21579# Append the text in VALUE to the end of the definition contained in VAR. Take
21580# advantage of any shell optimizations that allow amortized linear growth over
21581# repeated appends, instead of the typical quadratic growth present in naive
21582# implementations.
21583if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21584  eval 'as_fn_append ()
21585  {
21586    eval $1+=\$2
21587  }'
21588else
21589  as_fn_append ()
21590  {
21591    eval $1=\$$1\$2
21592  }
21593fi # as_fn_append
21594
21595# as_fn_arith ARG...
21596# ------------------
21597# Perform arithmetic evaluation on the ARGs, and store the result in the
21598# global $as_val. Take advantage of shells that can avoid forks. The arguments
21599# must be portable across $(()) and expr.
21600if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21601  eval 'as_fn_arith ()
21602  {
21603    as_val=$(( $* ))
21604  }'
21605else
21606  as_fn_arith ()
21607  {
21608    as_val=`expr "$@" || test $? -eq 1`
21609  }
21610fi # as_fn_arith
21611
21612
21613if expr a : '\(a\)' >/dev/null 2>&1 &&
21614   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21615  as_expr=expr
21616else
21617  as_expr=false
21618fi
21619
21620if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21621  as_basename=basename
21622else
21623  as_basename=false
21624fi
21625
21626if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21627  as_dirname=dirname
21628else
21629  as_dirname=false
21630fi
21631
21632as_me=`$as_basename -- "$0" ||
21633$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21634	 X"$0" : 'X\(//\)$' \| \
21635	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21636$as_echo X/"$0" |
21637    sed '/^.*\/\([^/][^/]*\)\/*$/{
21638	    s//\1/
21639	    q
21640	  }
21641	  /^X\/\(\/\/\)$/{
21642	    s//\1/
21643	    q
21644	  }
21645	  /^X\/\(\/\).*/{
21646	    s//\1/
21647	    q
21648	  }
21649	  s/.*/./; q'`
21650
21651# Avoid depending upon Character Ranges.
21652as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21653as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21654as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21655as_cr_digits='0123456789'
21656as_cr_alnum=$as_cr_Letters$as_cr_digits
21657
21658ECHO_C= ECHO_N= ECHO_T=
21659case `echo -n x` in #(((((
21660-n*)
21661  case `echo 'xy\c'` in
21662  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21663  xy)  ECHO_C='\c';;
21664  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21665       ECHO_T='	';;
21666  esac;;
21667*)
21668  ECHO_N='-n';;
21669esac
21670
21671rm -f conf$$ conf$$.exe conf$$.file
21672if test -d conf$$.dir; then
21673  rm -f conf$$.dir/conf$$.file
21674else
21675  rm -f conf$$.dir
21676  mkdir conf$$.dir 2>/dev/null
21677fi
21678if (echo >conf$$.file) 2>/dev/null; then
21679  if ln -s conf$$.file conf$$ 2>/dev/null; then
21680    as_ln_s='ln -s'
21681    # ... but there are two gotchas:
21682    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21683    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21684    # In both cases, we have to default to `cp -p'.
21685    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21686      as_ln_s='cp -p'
21687  elif ln conf$$.file conf$$ 2>/dev/null; then
21688    as_ln_s=ln
21689  else
21690    as_ln_s='cp -p'
21691  fi
21692else
21693  as_ln_s='cp -p'
21694fi
21695rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21696rmdir conf$$.dir 2>/dev/null
21697
21698
21699# as_fn_mkdir_p
21700# -------------
21701# Create "$as_dir" as a directory, including parents if necessary.
21702as_fn_mkdir_p ()
21703{
21704
21705  case $as_dir in #(
21706  -*) as_dir=./$as_dir;;
21707  esac
21708  test -d "$as_dir" || eval $as_mkdir_p || {
21709    as_dirs=
21710    while :; do
21711      case $as_dir in #(
21712      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21713      *) as_qdir=$as_dir;;
21714      esac
21715      as_dirs="'$as_qdir' $as_dirs"
21716      as_dir=`$as_dirname -- "$as_dir" ||
21717$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21718	 X"$as_dir" : 'X\(//\)[^/]' \| \
21719	 X"$as_dir" : 'X\(//\)$' \| \
21720	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21721$as_echo X"$as_dir" |
21722    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21723	    s//\1/
21724	    q
21725	  }
21726	  /^X\(\/\/\)[^/].*/{
21727	    s//\1/
21728	    q
21729	  }
21730	  /^X\(\/\/\)$/{
21731	    s//\1/
21732	    q
21733	  }
21734	  /^X\(\/\).*/{
21735	    s//\1/
21736	    q
21737	  }
21738	  s/.*/./; q'`
21739      test -d "$as_dir" && break
21740    done
21741    test -z "$as_dirs" || eval "mkdir $as_dirs"
21742  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21743
21744
21745} # as_fn_mkdir_p
21746if mkdir -p . 2>/dev/null; then
21747  as_mkdir_p='mkdir -p "$as_dir"'
21748else
21749  test -d ./-p && rmdir ./-p
21750  as_mkdir_p=false
21751fi
21752
21753if test -x / >/dev/null 2>&1; then
21754  as_test_x='test -x'
21755else
21756  if ls -dL / >/dev/null 2>&1; then
21757    as_ls_L_option=L
21758  else
21759    as_ls_L_option=
21760  fi
21761  as_test_x='
21762    eval sh -c '\''
21763      if test -d "$1"; then
21764	test -d "$1/.";
21765      else
21766	case $1 in #(
21767	-*)set "./$1";;
21768	esac;
21769	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
21770	???[sx]*):;;*)false;;esac;fi
21771    '\'' sh
21772  '
21773fi
21774as_executable_p=$as_test_x
21775
21776# Sed expression to map a string onto a valid CPP name.
21777as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21778
21779# Sed expression to map a string onto a valid variable name.
21780as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21781
21782
21783exec 6>&1
21784## ----------------------------------- ##
21785## Main body of $CONFIG_STATUS script. ##
21786## ----------------------------------- ##
21787_ASEOF
21788test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21789
21790cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21791# Save the log message, to keep $0 and so on meaningful, and to
21792# report actual input values of CONFIG_FILES etc. instead of their
21793# values after options handling.
21794ac_log="
21795This file was extended by scim-tables $as_me 0.5.10, which was
21796generated by GNU Autoconf 2.68.  Invocation command line was
21797
21798  CONFIG_FILES    = $CONFIG_FILES
21799  CONFIG_HEADERS  = $CONFIG_HEADERS
21800  CONFIG_LINKS    = $CONFIG_LINKS
21801  CONFIG_COMMANDS = $CONFIG_COMMANDS
21802  $ $0 $@
21803
21804on `(hostname || uname -n) 2>/dev/null | sed 1q`
21805"
21806
21807_ACEOF
21808
21809case $ac_config_files in *"
21810"*) set x $ac_config_files; shift; ac_config_files=$*;;
21811esac
21812
21813case $ac_config_headers in *"
21814"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21815esac
21816
21817
21818cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21819# Files that config.status was made for.
21820config_files="$ac_config_files"
21821config_headers="$ac_config_headers"
21822config_commands="$ac_config_commands"
21823
21824_ACEOF
21825
21826cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21827ac_cs_usage="\
21828\`$as_me' instantiates files and other configuration actions
21829from templates according to the current configuration.  Unless the files
21830and actions are specified as TAGs, all are instantiated by default.
21831
21832Usage: $0 [OPTION]... [TAG]...
21833
21834  -h, --help       print this help, then exit
21835  -V, --version    print version number and configuration settings, then exit
21836      --config     print configuration, then exit
21837  -q, --quiet, --silent
21838                   do not print progress messages
21839  -d, --debug      don't remove temporary files
21840      --recheck    update $as_me by reconfiguring in the same conditions
21841      --file=FILE[:TEMPLATE]
21842                   instantiate the configuration file FILE
21843      --header=FILE[:TEMPLATE]
21844                   instantiate the configuration header FILE
21845
21846Configuration files:
21847$config_files
21848
21849Configuration headers:
21850$config_headers
21851
21852Configuration commands:
21853$config_commands
21854
21855Report bugs to <suzhe@tsinghua.org.cn>."
21856
21857_ACEOF
21858cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21859ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21860ac_cs_version="\\
21861scim-tables config.status 0.5.10
21862configured by $0, generated by GNU Autoconf 2.68,
21863  with options \\"\$ac_cs_config\\"
21864
21865Copyright (C) 2010 Free Software Foundation, Inc.
21866This config.status script is free software; the Free Software Foundation
21867gives unlimited permission to copy, distribute and modify it."
21868
21869ac_pwd='$ac_pwd'
21870srcdir='$srcdir'
21871INSTALL='$INSTALL'
21872MKDIR_P='$MKDIR_P'
21873AWK='$AWK'
21874test -n "\$AWK" || AWK=awk
21875_ACEOF
21876
21877cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21878# The default lists apply if the user does not specify any file.
21879ac_need_defaults=:
21880while test $# != 0
21881do
21882  case $1 in
21883  --*=?*)
21884    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21885    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21886    ac_shift=:
21887    ;;
21888  --*=)
21889    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21890    ac_optarg=
21891    ac_shift=:
21892    ;;
21893  *)
21894    ac_option=$1
21895    ac_optarg=$2
21896    ac_shift=shift
21897    ;;
21898  esac
21899
21900  case $ac_option in
21901  # Handling of the options.
21902  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21903    ac_cs_recheck=: ;;
21904  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21905    $as_echo "$ac_cs_version"; exit ;;
21906  --config | --confi | --conf | --con | --co | --c )
21907    $as_echo "$ac_cs_config"; exit ;;
21908  --debug | --debu | --deb | --de | --d | -d )
21909    debug=: ;;
21910  --file | --fil | --fi | --f )
21911    $ac_shift
21912    case $ac_optarg in
21913    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21914    '') as_fn_error $? "missing file argument" ;;
21915    esac
21916    as_fn_append CONFIG_FILES " '$ac_optarg'"
21917    ac_need_defaults=false;;
21918  --header | --heade | --head | --hea )
21919    $ac_shift
21920    case $ac_optarg in
21921    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21922    esac
21923    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21924    ac_need_defaults=false;;
21925  --he | --h)
21926    # Conflict between --help and --header
21927    as_fn_error $? "ambiguous option: \`$1'
21928Try \`$0 --help' for more information.";;
21929  --help | --hel | -h )
21930    $as_echo "$ac_cs_usage"; exit ;;
21931  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21932  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21933    ac_cs_silent=: ;;
21934
21935  # This is an error.
21936  -*) as_fn_error $? "unrecognized option: \`$1'
21937Try \`$0 --help' for more information." ;;
21938
21939  *) as_fn_append ac_config_targets " $1"
21940     ac_need_defaults=false ;;
21941
21942  esac
21943  shift
21944done
21945
21946ac_configure_extra_args=
21947
21948if $ac_cs_silent; then
21949  exec 6>/dev/null
21950  ac_configure_extra_args="$ac_configure_extra_args --silent"
21951fi
21952
21953_ACEOF
21954cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21955if \$ac_cs_recheck; then
21956  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21957  shift
21958  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21959  CONFIG_SHELL='$SHELL'
21960  export CONFIG_SHELL
21961  exec "\$@"
21962fi
21963
21964_ACEOF
21965cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21966exec 5>>config.log
21967{
21968  echo
21969  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21970## Running $as_me. ##
21971_ASBOX
21972  $as_echo "$ac_log"
21973} >&5
21974
21975_ACEOF
21976cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21977#
21978# INIT-COMMANDS
21979#
21980# Capture the value of obsolete ALL_LINGUAS because we need it to compute
21981    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
21982    # from automake.
21983    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
21984    # Capture the value of LINGUAS because we need it to compute CATALOGS.
21985    LINGUAS="${LINGUAS-%UNSET%}"
21986
21987AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21988
21989
21990# The HP-UX ksh and POSIX shell print the target directory to stdout
21991# if CDPATH is set.
21992(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21993
21994sed_quote_subst='$sed_quote_subst'
21995double_quote_subst='$double_quote_subst'
21996delay_variable_subst='$delay_variable_subst'
21997AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
21998DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
21999OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
22000macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
22001macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
22002enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
22003enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
22004pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
22005enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
22006host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
22007host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
22008host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
22009build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
22010build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
22011build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
22012SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
22013Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
22014GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
22015EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
22016FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
22017LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
22018NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
22019LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
22020max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
22021ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
22022exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
22023lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
22024lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
22025lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
22026reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
22027reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22028deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
22029file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
22030AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
22031AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22032STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
22033RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
22034old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22035old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22036old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22037CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
22038CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22039compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
22040GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
22041lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
22042lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
22043lt_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"`'
22044lt_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"`'
22045objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
22046SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
22047ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
22048MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
22049lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
22050lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
22051lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
22052lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
22053lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
22054need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
22055DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
22056NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
22057LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
22058OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
22059OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
22060libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
22061shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22062extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22063archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
22064enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
22065export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22066whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22067compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
22068old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22069old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22070archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22071archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22072module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22073module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22074with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
22075allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22076no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22077hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22078hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
22079hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
22080hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
22081hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
22082hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
22083hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22084hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
22085inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
22086link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
22087fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
22088always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
22089export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22090exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22091include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22092prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22093file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
22094variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
22095need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
22096need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
22097version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
22098runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22099shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22100shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
22101libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22102library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
22103soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22104postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22105postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22106finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22107finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
22108hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
22109sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22110sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22111hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
22112enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
22113enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
22114enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
22115old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
22116striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
22117compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
22118predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
22119postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
22120predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
22121postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
22122compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
22123LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22124old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22125compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22126GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22127lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22128lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22129lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22130lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22131lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22132archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22133enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22134export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22135whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22136compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22137old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22138old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22139archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22140archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22141module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22142module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22143with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22144allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22145no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22146hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22147hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22148hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22149hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22150hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22151hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22152hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22153hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22154inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22155link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22156fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22157always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22158export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22159exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22160include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22161prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22162file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22163hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22164compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22165predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22166postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22167predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22168postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22169compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22170
22171LTCC='$LTCC'
22172LTCFLAGS='$LTCFLAGS'
22173compiler='$compiler_DEFAULT'
22174
22175# Quote evaled strings.
22176for var in SED \
22177GREP \
22178EGREP \
22179FGREP \
22180LD \
22181NM \
22182LN_S \
22183lt_SP2NL \
22184lt_NL2SP \
22185reload_flag \
22186deplibs_check_method \
22187file_magic_cmd \
22188AR \
22189AR_FLAGS \
22190STRIP \
22191RANLIB \
22192CC \
22193CFLAGS \
22194compiler \
22195lt_cv_sys_global_symbol_pipe \
22196lt_cv_sys_global_symbol_to_cdecl \
22197lt_cv_sys_global_symbol_to_c_name_address \
22198lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22199SHELL \
22200ECHO \
22201lt_prog_compiler_no_builtin_flag \
22202lt_prog_compiler_wl \
22203lt_prog_compiler_pic \
22204lt_prog_compiler_static \
22205lt_cv_prog_compiler_c_o \
22206need_locks \
22207DSYMUTIL \
22208NMEDIT \
22209LIPO \
22210OTOOL \
22211OTOOL64 \
22212shrext_cmds \
22213export_dynamic_flag_spec \
22214whole_archive_flag_spec \
22215compiler_needs_object \
22216with_gnu_ld \
22217allow_undefined_flag \
22218no_undefined_flag \
22219hardcode_libdir_flag_spec \
22220hardcode_libdir_flag_spec_ld \
22221hardcode_libdir_separator \
22222fix_srcfile_path \
22223exclude_expsyms \
22224include_expsyms \
22225file_list_spec \
22226variables_saved_for_relink \
22227libname_spec \
22228library_names_spec \
22229soname_spec \
22230finish_eval \
22231old_striplib \
22232striplib \
22233compiler_lib_search_dirs \
22234predep_objects \
22235postdep_objects \
22236predeps \
22237postdeps \
22238compiler_lib_search_path \
22239LD_CXX \
22240compiler_CXX \
22241lt_prog_compiler_no_builtin_flag_CXX \
22242lt_prog_compiler_wl_CXX \
22243lt_prog_compiler_pic_CXX \
22244lt_prog_compiler_static_CXX \
22245lt_cv_prog_compiler_c_o_CXX \
22246export_dynamic_flag_spec_CXX \
22247whole_archive_flag_spec_CXX \
22248compiler_needs_object_CXX \
22249with_gnu_ld_CXX \
22250allow_undefined_flag_CXX \
22251no_undefined_flag_CXX \
22252hardcode_libdir_flag_spec_CXX \
22253hardcode_libdir_flag_spec_ld_CXX \
22254hardcode_libdir_separator_CXX \
22255fix_srcfile_path_CXX \
22256exclude_expsyms_CXX \
22257include_expsyms_CXX \
22258file_list_spec_CXX \
22259compiler_lib_search_dirs_CXX \
22260predep_objects_CXX \
22261postdep_objects_CXX \
22262predeps_CXX \
22263postdeps_CXX \
22264compiler_lib_search_path_CXX; do
22265    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22266    *[\\\\\\\`\\"\\\$]*)
22267      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
22268      ;;
22269    *)
22270      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22271      ;;
22272    esac
22273done
22274
22275# Double-quote double-evaled strings.
22276for var in reload_cmds \
22277old_postinstall_cmds \
22278old_postuninstall_cmds \
22279old_archive_cmds \
22280extract_expsyms_cmds \
22281old_archive_from_new_cmds \
22282old_archive_from_expsyms_cmds \
22283archive_cmds \
22284archive_expsym_cmds \
22285module_cmds \
22286module_expsym_cmds \
22287export_symbols_cmds \
22288prelink_cmds \
22289postinstall_cmds \
22290postuninstall_cmds \
22291finish_cmds \
22292sys_lib_search_path_spec \
22293sys_lib_dlsearch_path_spec \
22294old_archive_cmds_CXX \
22295old_archive_from_new_cmds_CXX \
22296old_archive_from_expsyms_cmds_CXX \
22297archive_cmds_CXX \
22298archive_expsym_cmds_CXX \
22299module_cmds_CXX \
22300module_expsym_cmds_CXX \
22301export_symbols_cmds_CXX \
22302prelink_cmds_CXX; do
22303    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22304    *[\\\\\\\`\\"\\\$]*)
22305      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
22306      ;;
22307    *)
22308      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22309      ;;
22310    esac
22311done
22312
22313# Fix-up fallback echo if it was mangled by the above quoting rules.
22314case \$lt_ECHO in
22315*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
22316  ;;
22317esac
22318
22319ac_aux_dir='$ac_aux_dir'
22320xsi_shell='$xsi_shell'
22321lt_shell_append='$lt_shell_append'
22322
22323# See if we are running on zsh, and set the options which allow our
22324# commands through without removal of \ escapes INIT.
22325if test -n "\${ZSH_VERSION+set}" ; then
22326   setopt NO_GLOB_SUBST
22327fi
22328
22329
22330    PACKAGE='$PACKAGE'
22331    VERSION='$VERSION'
22332    TIMESTAMP='$TIMESTAMP'
22333    RM='$RM'
22334    ofile='$ofile'
22335
22336
22337
22338
22339
22340
22341_ACEOF
22342
22343cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22344
22345# Handling of arguments.
22346for ac_config_target in $ac_config_targets
22347do
22348  case $ac_config_target in
22349    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22350    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
22351    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22352    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22353    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22354    "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
22355    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
22356    "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
22357    "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
22358    "icons/Makefile") CONFIG_FILES="$CONFIG_FILES icons/Makefile" ;;
22359    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22360    "scim-tables.spec") CONFIG_FILES="$CONFIG_FILES scim-tables.spec" ;;
22361    "tables/Makefile") CONFIG_FILES="$CONFIG_FILES tables/Makefile" ;;
22362    "tables/additional/IPA-Kirshenbaum.txt") CONFIG_FILES="$CONFIG_FILES tables/additional/IPA-Kirshenbaum.txt" ;;
22363    "tables/additional/IPA-X-SAMPA.txt") CONFIG_FILES="$CONFIG_FILES tables/additional/IPA-X-SAMPA.txt" ;;
22364    "tables/additional/LaTeX.txt") CONFIG_FILES="$CONFIG_FILES tables/additional/LaTeX.txt" ;;
22365    "tables/additional/Makefile") CONFIG_FILES="$CONFIG_FILES tables/additional/Makefile" ;;
22366    "tables/am/Amharic.txt") CONFIG_FILES="$CONFIG_FILES tables/am/Amharic.txt" ;;
22367    "tables/am/Makefile") CONFIG_FILES="$CONFIG_FILES tables/am/Makefile" ;;
22368    "tables/ar/Arabic.txt") CONFIG_FILES="$CONFIG_FILES tables/ar/Arabic.txt" ;;
22369    "tables/ar/Makefile") CONFIG_FILES="$CONFIG_FILES tables/ar/Makefile" ;;
22370    "tables/bn/Bengali-inscript.txt") CONFIG_FILES="$CONFIG_FILES tables/bn/Bengali-inscript.txt" ;;
22371    "tables/bn/Bengali-probhat.txt") CONFIG_FILES="$CONFIG_FILES tables/bn/Bengali-probhat.txt" ;;
22372    "tables/bn/Makefile") CONFIG_FILES="$CONFIG_FILES tables/bn/Makefile" ;;
22373    "tables/gr/Makefile") CONFIG_FILES="$CONFIG_FILES tables/gr/Makefile" ;;
22374    "tables/gr/greekpoly.txt") CONFIG_FILES="$CONFIG_FILES tables/gr/greekpoly.txt" ;;
22375    "tables/gu/Gujarati-inscript.txt") CONFIG_FILES="$CONFIG_FILES tables/gu/Gujarati-inscript.txt" ;;
22376    "tables/gu/Gujarati-phonetic.txt") CONFIG_FILES="$CONFIG_FILES tables/gu/Gujarati-phonetic.txt" ;;
22377    "tables/gu/Makefile") CONFIG_FILES="$CONFIG_FILES tables/gu/Makefile" ;;
22378    "tables/he/Makefile") CONFIG_FILES="$CONFIG_FILES tables/he/Makefile" ;;
22379    "tables/he/classicalhebrew.txt") CONFIG_FILES="$CONFIG_FILES tables/he/classicalhebrew.txt" ;;
22380    "tables/hi/Hindi-inscript.txt") CONFIG_FILES="$CONFIG_FILES tables/hi/Hindi-inscript.txt" ;;
22381    "tables/hi/Hindi-phonetic.txt") CONFIG_FILES="$CONFIG_FILES tables/hi/Hindi-phonetic.txt" ;;
22382    "tables/hi/Hindi-remington.txt") CONFIG_FILES="$CONFIG_FILES tables/hi/Hindi-remington.txt" ;;
22383    "tables/hi/Makefile") CONFIG_FILES="$CONFIG_FILES tables/hi/Makefile" ;;
22384    "tables/ja/HIRAGANA.txt") CONFIG_FILES="$CONFIG_FILES tables/ja/HIRAGANA.txt" ;;
22385    "tables/ja/KATAKANA.txt") CONFIG_FILES="$CONFIG_FILES tables/ja/KATAKANA.txt" ;;
22386    "tables/ja/Makefile") CONFIG_FILES="$CONFIG_FILES tables/ja/Makefile" ;;
22387    "tables/ja/Nippon.txt") CONFIG_FILES="$CONFIG_FILES tables/ja/Nippon.txt" ;;
22388    "tables/kn/Kannada-inscript.txt") CONFIG_FILES="$CONFIG_FILES tables/kn/Kannada-inscript.txt" ;;
22389    "tables/kn/Kannada-kgp.txt") CONFIG_FILES="$CONFIG_FILES tables/kn/Kannada-kgp.txt" ;;
22390    "tables/kn/Makefile") CONFIG_FILES="$CONFIG_FILES tables/kn/Makefile" ;;
22391    "tables/ko/Hangul.txt") CONFIG_FILES="$CONFIG_FILES tables/ko/Hangul.txt" ;;
22392    "tables/ko/HangulRomaja.txt") CONFIG_FILES="$CONFIG_FILES tables/ko/HangulRomaja.txt" ;;
22393    "tables/ko/Hanja.txt") CONFIG_FILES="$CONFIG_FILES tables/ko/Hanja.txt" ;;
22394    "tables/ko/Makefile") CONFIG_FILES="$CONFIG_FILES tables/ko/Makefile" ;;
22395    "tables/ml/Makefile") CONFIG_FILES="$CONFIG_FILES tables/ml/Makefile" ;;
22396    "tables/ml/Malayalam-inscript.txt") CONFIG_FILES="$CONFIG_FILES tables/ml/Malayalam-inscript.txt" ;;
22397    "tables/ml/Malayalam-phonetic.txt") CONFIG_FILES="$CONFIG_FILES tables/ml/Malayalam-phonetic.txt" ;;
22398    "tables/mr/Makefile") CONFIG_FILES="$CONFIG_FILES tables/mr/Makefile" ;;
22399    "tables/mr/Marathi-remington.txt") CONFIG_FILES="$CONFIG_FILES tables/mr/Marathi-remington.txt" ;;
22400    "tables/ne/Makefile") CONFIG_FILES="$CONFIG_FILES tables/ne/Makefile" ;;
22401    "tables/ne/Nepali_Rom.txt") CONFIG_FILES="$CONFIG_FILES tables/ne/Nepali_Rom.txt" ;;
22402    "tables/ne/Nepali_Trad.txt") CONFIG_FILES="$CONFIG_FILES tables/ne/Nepali_Trad.txt" ;;
22403    "tables/pa/Makefile") CONFIG_FILES="$CONFIG_FILES tables/pa/Makefile" ;;
22404    "tables/pa/Punjabi-inscript.txt") CONFIG_FILES="$CONFIG_FILES tables/pa/Punjabi-inscript.txt" ;;
22405    "tables/pa/Punjabi-jhelum.txt") CONFIG_FILES="$CONFIG_FILES tables/pa/Punjabi-jhelum.txt" ;;
22406    "tables/pa/Punjabi-phonetic.txt") CONFIG_FILES="$CONFIG_FILES tables/pa/Punjabi-phonetic.txt" ;;
22407    "tables/pa/Punjabi-remington.txt") CONFIG_FILES="$CONFIG_FILES tables/pa/Punjabi-remington.txt" ;;
22408    "tables/ru/Makefile") CONFIG_FILES="$CONFIG_FILES tables/ru/Makefile" ;;
22409    "tables/ru/RussianTraditional.txt") CONFIG_FILES="$CONFIG_FILES tables/ru/RussianTraditional.txt" ;;
22410    "tables/ru/Translit.txt") CONFIG_FILES="$CONFIG_FILES tables/ru/Translit.txt" ;;
22411    "tables/ru/Yawerty.txt") CONFIG_FILES="$CONFIG_FILES tables/ru/Yawerty.txt" ;;
22412    "tables/ta/Makefile") CONFIG_FILES="$CONFIG_FILES tables/ta/Makefile" ;;
22413    "tables/ta/Tamil-inscript.txt") CONFIG_FILES="$CONFIG_FILES tables/ta/Tamil-inscript.txt" ;;
22414    "tables/ta/Tamil-phonetic.txt") CONFIG_FILES="$CONFIG_FILES tables/ta/Tamil-phonetic.txt" ;;
22415    "tables/ta/Tamil-remington.txt") CONFIG_FILES="$CONFIG_FILES tables/ta/Tamil-remington.txt" ;;
22416    "tables/ta/Tamil-tamil99.txt") CONFIG_FILES="$CONFIG_FILES tables/ta/Tamil-tamil99.txt" ;;
22417    "tables/te/Makefile") CONFIG_FILES="$CONFIG_FILES tables/te/Makefile" ;;
22418    "tables/te/Telugu-inscript.txt") CONFIG_FILES="$CONFIG_FILES tables/te/Telugu-inscript.txt" ;;
22419    "tables/th/Makefile") CONFIG_FILES="$CONFIG_FILES tables/th/Makefile" ;;
22420    "tables/th/Thai.txt") CONFIG_FILES="$CONFIG_FILES tables/th/Thai.txt" ;;
22421    "tables/ug/Makefile") CONFIG_FILES="$CONFIG_FILES tables/ug/Makefile" ;;
22422    "tables/ug/Uyghur-Romanized.txt") CONFIG_FILES="$CONFIG_FILES tables/ug/Uyghur-Romanized.txt" ;;
22423    "tables/ug/Uyghur-Standard.txt") CONFIG_FILES="$CONFIG_FILES tables/ug/Uyghur-Standard.txt" ;;
22424    "tables/uk/Makefile") CONFIG_FILES="$CONFIG_FILES tables/uk/Makefile" ;;
22425    "tables/uk/Ukrainian-Translit.txt") CONFIG_FILES="$CONFIG_FILES tables/uk/Ukrainian-Translit.txt" ;;
22426    "tables/vi/Makefile") CONFIG_FILES="$CONFIG_FILES tables/vi/Makefile" ;;
22427    "tables/vi/Viqr.txt") CONFIG_FILES="$CONFIG_FILES tables/vi/Viqr.txt" ;;
22428    "tables/zh/Array30.txt") CONFIG_FILES="$CONFIG_FILES tables/zh/Array30.txt" ;;
22429    "tables/zh/CNS11643.txt") CONFIG_FILES="$CONFIG_FILES tables/zh/CNS11643.txt" ;;
22430    "tables/zh/CangJie.txt") CONFIG_FILES="$CONFIG_FILES tables/zh/CangJie.txt" ;;
22431    "tables/zh/CangJie3.txt") CONFIG_FILES="$CONFIG_FILES tables/zh/CangJie3.txt" ;;
22432    "tables/zh/CangJie5.txt") CONFIG_FILES="$CONFIG_FILES tables/zh/CangJie5.txt" ;;
22433    "tables/zh/CantonHK.txt") CONFIG_FILES="$CONFIG_FILES tables/zh/CantonHK.txt" ;;
22434    "tables/zh/Cantonese.txt") CONFIG_FILES="$CONFIG_FILES tables/zh/Cantonese.txt" ;;
22435    "tables/zh/Dayi3.txt") CONFIG_FILES="$CONFIG_FILES tables/zh/Dayi3.txt" ;;
22436    "tables/zh/EZ-Big.txt") CONFIG_FILES="$CONFIG_FILES tables/zh/EZ-Big.txt" ;;
22437    "tables/zh/Erbi-QS.txt") CONFIG_FILES="$CONFIG_FILES tables/zh/Erbi-QS.txt" ;;
22438    "tables/zh/Erbi.txt") CONFIG_FILES="$CONFIG_FILES tables/zh/Erbi.txt" ;;
22439    "tables/zh/Jyutping.txt") CONFIG_FILES="$CONFIG_FILES tables/zh/Jyutping.txt" ;;
22440    "tables/zh/Makefile") CONFIG_FILES="$CONFIG_FILES tables/zh/Makefile" ;;
22441    "tables/zh/Quick.txt") CONFIG_FILES="$CONFIG_FILES tables/zh/Quick.txt" ;;
22442    "tables/zh/Simplex.txt") CONFIG_FILES="$CONFIG_FILES tables/zh/Simplex.txt" ;;
22443    "tables/zh/SmartCangJie6.txt") CONFIG_FILES="$CONFIG_FILES tables/zh/SmartCangJie6.txt" ;;
22444    "tables/zh/Stroke5.txt") CONFIG_FILES="$CONFIG_FILES tables/zh/Stroke5.txt" ;;
22445    "tables/zh/Wu.txt") CONFIG_FILES="$CONFIG_FILES tables/zh/Wu.txt" ;;
22446    "tables/zh/Wubi.txt") CONFIG_FILES="$CONFIG_FILES tables/zh/Wubi.txt" ;;
22447    "tables/zh/ZhuYin-Big.txt") CONFIG_FILES="$CONFIG_FILES tables/zh/ZhuYin-Big.txt" ;;
22448    "tables/zh/ZhuYin.txt") CONFIG_FILES="$CONFIG_FILES tables/zh/ZhuYin.txt" ;;
22449    "tables/zh/Ziranma.txt") CONFIG_FILES="$CONFIG_FILES tables/zh/Ziranma.txt" ;;
22450
22451  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22452  esac
22453done
22454
22455
22456# If the user did not use the arguments to specify the items to instantiate,
22457# then the envvar interface is used.  Set only those that are not.
22458# We use the long form for the default assignment because of an extremely
22459# bizarre bug on SunOS 4.1.3.
22460if $ac_need_defaults; then
22461  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22462  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22463  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22464fi
22465
22466# Have a temporary directory for convenience.  Make it in the build tree
22467# simply because there is no reason against having it here, and in addition,
22468# creating and moving files from /tmp can sometimes cause problems.
22469# Hook for its removal unless debugging.
22470# Note that there is a small window in which the directory will not be cleaned:
22471# after its creation but before its name has been assigned to `$tmp'.
22472$debug ||
22473{
22474  tmp= ac_tmp=
22475  trap 'exit_status=$?
22476  : "${ac_tmp:=$tmp}"
22477  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22478' 0
22479  trap 'as_fn_exit 1' 1 2 13 15
22480}
22481# Create a (secure) tmp directory for tmp files.
22482
22483{
22484  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22485  test -d "$tmp"
22486}  ||
22487{
22488  tmp=./conf$$-$RANDOM
22489  (umask 077 && mkdir "$tmp")
22490} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22491ac_tmp=$tmp
22492
22493# Set up the scripts for CONFIG_FILES section.
22494# No need to generate them if there are no CONFIG_FILES.
22495# This happens for instance with `./config.status config.h'.
22496if test -n "$CONFIG_FILES"; then
22497
22498
22499ac_cr=`echo X | tr X '\015'`
22500# On cygwin, bash can eat \r inside `` if the user requested igncr.
22501# But we know of no other shell where ac_cr would be empty at this
22502# point, so we can use a bashism as a fallback.
22503if test "x$ac_cr" = x; then
22504  eval ac_cr=\$\'\\r\'
22505fi
22506ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22507if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22508  ac_cs_awk_cr='\\r'
22509else
22510  ac_cs_awk_cr=$ac_cr
22511fi
22512
22513echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22514_ACEOF
22515
22516
22517{
22518  echo "cat >conf$$subs.awk <<_ACEOF" &&
22519  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22520  echo "_ACEOF"
22521} >conf$$subs.sh ||
22522  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22523ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22524ac_delim='%!_!# '
22525for ac_last_try in false false false false false :; do
22526  . ./conf$$subs.sh ||
22527    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22528
22529  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22530  if test $ac_delim_n = $ac_delim_num; then
22531    break
22532  elif $ac_last_try; then
22533    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22534  else
22535    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22536  fi
22537done
22538rm -f conf$$subs.sh
22539
22540cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22541cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22542_ACEOF
22543sed -n '
22544h
22545s/^/S["/; s/!.*/"]=/
22546p
22547g
22548s/^[^!]*!//
22549:repl
22550t repl
22551s/'"$ac_delim"'$//
22552t delim
22553:nl
22554h
22555s/\(.\{148\}\)..*/\1/
22556t more1
22557s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22558p
22559n
22560b repl
22561:more1
22562s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22563p
22564g
22565s/.\{148\}//
22566t nl
22567:delim
22568h
22569s/\(.\{148\}\)..*/\1/
22570t more2
22571s/["\\]/\\&/g; s/^/"/; s/$/"/
22572p
22573b
22574:more2
22575s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22576p
22577g
22578s/.\{148\}//
22579t delim
22580' <conf$$subs.awk | sed '
22581/^[^""]/{
22582  N
22583  s/\n//
22584}
22585' >>$CONFIG_STATUS || ac_write_fail=1
22586rm -f conf$$subs.awk
22587cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22588_ACAWK
22589cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22590  for (key in S) S_is_set[key] = 1
22591  FS = ""
22592
22593}
22594{
22595  line = $ 0
22596  nfields = split(line, field, "@")
22597  substed = 0
22598  len = length(field[1])
22599  for (i = 2; i < nfields; i++) {
22600    key = field[i]
22601    keylen = length(key)
22602    if (S_is_set[key]) {
22603      value = S[key]
22604      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22605      len += length(value) + length(field[++i])
22606      substed = 1
22607    } else
22608      len += 1 + keylen
22609  }
22610
22611  print line
22612}
22613
22614_ACAWK
22615_ACEOF
22616cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22617if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22618  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22619else
22620  cat
22621fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22622  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22623_ACEOF
22624
22625# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22626# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22627# trailing colons and then remove the whole line if VPATH becomes empty
22628# (actually we leave an empty line to preserve line numbers).
22629if test "x$srcdir" = x.; then
22630  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
22631h
22632s///
22633s/^/:/
22634s/[	 ]*$/:/
22635s/:\$(srcdir):/:/g
22636s/:\${srcdir}:/:/g
22637s/:@srcdir@:/:/g
22638s/^:*//
22639s/:*$//
22640x
22641s/\(=[	 ]*\).*/\1/
22642G
22643s/\n//
22644s/^[^=]*=[	 ]*$//
22645}'
22646fi
22647
22648cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22649fi # test -n "$CONFIG_FILES"
22650
22651# Set up the scripts for CONFIG_HEADERS section.
22652# No need to generate them if there are no CONFIG_HEADERS.
22653# This happens for instance with `./config.status Makefile'.
22654if test -n "$CONFIG_HEADERS"; then
22655cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22656BEGIN {
22657_ACEOF
22658
22659# Transform confdefs.h into an awk script `defines.awk', embedded as
22660# here-document in config.status, that substitutes the proper values into
22661# config.h.in to produce config.h.
22662
22663# Create a delimiter string that does not exist in confdefs.h, to ease
22664# handling of long lines.
22665ac_delim='%!_!# '
22666for ac_last_try in false false :; do
22667  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22668  if test -z "$ac_tt"; then
22669    break
22670  elif $ac_last_try; then
22671    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22672  else
22673    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22674  fi
22675done
22676
22677# For the awk script, D is an array of macro values keyed by name,
22678# likewise P contains macro parameters if any.  Preserve backslash
22679# newline sequences.
22680
22681ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22682sed -n '
22683s/.\{148\}/&'"$ac_delim"'/g
22684t rset
22685:rset
22686s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
22687t def
22688d
22689:def
22690s/\\$//
22691t bsnl
22692s/["\\]/\\&/g
22693s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22694D["\1"]=" \3"/p
22695s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
22696d
22697:bsnl
22698s/["\\]/\\&/g
22699s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22700D["\1"]=" \3\\\\\\n"\\/p
22701t cont
22702s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22703t cont
22704d
22705:cont
22706n
22707s/.\{148\}/&'"$ac_delim"'/g
22708t clear
22709:clear
22710s/\\$//
22711t bsnlc
22712s/["\\]/\\&/g; s/^/"/; s/$/"/p
22713d
22714:bsnlc
22715s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22716b cont
22717' <confdefs.h | sed '
22718s/'"$ac_delim"'/"\\\
22719"/g' >>$CONFIG_STATUS || ac_write_fail=1
22720
22721cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22722  for (key in D) D_is_set[key] = 1
22723  FS = ""
22724}
22725/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22726  line = \$ 0
22727  split(line, arg, " ")
22728  if (arg[1] == "#") {
22729    defundef = arg[2]
22730    mac1 = arg[3]
22731  } else {
22732    defundef = substr(arg[1], 2)
22733    mac1 = arg[2]
22734  }
22735  split(mac1, mac2, "(") #)
22736  macro = mac2[1]
22737  prefix = substr(line, 1, index(line, defundef) - 1)
22738  if (D_is_set[macro]) {
22739    # Preserve the white space surrounding the "#".
22740    print prefix "define", macro P[macro] D[macro]
22741    next
22742  } else {
22743    # Replace #undef with comments.  This is necessary, for example,
22744    # in the case of _POSIX_SOURCE, which is predefined and required
22745    # on some systems where configure will not decide to define it.
22746    if (defundef == "undef") {
22747      print "/*", prefix defundef, macro, "*/"
22748      next
22749    }
22750  }
22751}
22752{ print }
22753_ACAWK
22754_ACEOF
22755cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22756  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22757fi # test -n "$CONFIG_HEADERS"
22758
22759
22760eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22761shift
22762for ac_tag
22763do
22764  case $ac_tag in
22765  :[FHLC]) ac_mode=$ac_tag; continue;;
22766  esac
22767  case $ac_mode$ac_tag in
22768  :[FHL]*:*);;
22769  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22770  :[FH]-) ac_tag=-:-;;
22771  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22772  esac
22773  ac_save_IFS=$IFS
22774  IFS=:
22775  set x $ac_tag
22776  IFS=$ac_save_IFS
22777  shift
22778  ac_file=$1
22779  shift
22780
22781  case $ac_mode in
22782  :L) ac_source=$1;;
22783  :[FH])
22784    ac_file_inputs=
22785    for ac_f
22786    do
22787      case $ac_f in
22788      -) ac_f="$ac_tmp/stdin";;
22789      *) # Look for the file first in the build tree, then in the source tree
22790	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22791	 # because $ac_f cannot contain `:'.
22792	 test -f "$ac_f" ||
22793	   case $ac_f in
22794	   [\\/$]*) false;;
22795	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22796	   esac ||
22797	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22798      esac
22799      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22800      as_fn_append ac_file_inputs " '$ac_f'"
22801    done
22802
22803    # Let's still pretend it is `configure' which instantiates (i.e., don't
22804    # use $as_me), people would be surprised to read:
22805    #    /* config.h.  Generated by config.status.  */
22806    configure_input='Generated from '`
22807	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22808	`' by configure.'
22809    if test x"$ac_file" != x-; then
22810      configure_input="$ac_file.  $configure_input"
22811      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22812$as_echo "$as_me: creating $ac_file" >&6;}
22813    fi
22814    # Neutralize special characters interpreted by sed in replacement strings.
22815    case $configure_input in #(
22816    *\&* | *\|* | *\\* )
22817       ac_sed_conf_input=`$as_echo "$configure_input" |
22818       sed 's/[\\\\&|]/\\\\&/g'`;; #(
22819    *) ac_sed_conf_input=$configure_input;;
22820    esac
22821
22822    case $ac_tag in
22823    *:-:* | *:-) cat >"$ac_tmp/stdin" \
22824      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22825    esac
22826    ;;
22827  esac
22828
22829  ac_dir=`$as_dirname -- "$ac_file" ||
22830$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22831	 X"$ac_file" : 'X\(//\)[^/]' \| \
22832	 X"$ac_file" : 'X\(//\)$' \| \
22833	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22834$as_echo X"$ac_file" |
22835    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22836	    s//\1/
22837	    q
22838	  }
22839	  /^X\(\/\/\)[^/].*/{
22840	    s//\1/
22841	    q
22842	  }
22843	  /^X\(\/\/\)$/{
22844	    s//\1/
22845	    q
22846	  }
22847	  /^X\(\/\).*/{
22848	    s//\1/
22849	    q
22850	  }
22851	  s/.*/./; q'`
22852  as_dir="$ac_dir"; as_fn_mkdir_p
22853  ac_builddir=.
22854
22855case "$ac_dir" in
22856.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22857*)
22858  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22859  # A ".." for each directory in $ac_dir_suffix.
22860  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22861  case $ac_top_builddir_sub in
22862  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22863  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22864  esac ;;
22865esac
22866ac_abs_top_builddir=$ac_pwd
22867ac_abs_builddir=$ac_pwd$ac_dir_suffix
22868# for backward compatibility:
22869ac_top_builddir=$ac_top_build_prefix
22870
22871case $srcdir in
22872  .)  # We are building in place.
22873    ac_srcdir=.
22874    ac_top_srcdir=$ac_top_builddir_sub
22875    ac_abs_top_srcdir=$ac_pwd ;;
22876  [\\/]* | ?:[\\/]* )  # Absolute name.
22877    ac_srcdir=$srcdir$ac_dir_suffix;
22878    ac_top_srcdir=$srcdir
22879    ac_abs_top_srcdir=$srcdir ;;
22880  *) # Relative name.
22881    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22882    ac_top_srcdir=$ac_top_build_prefix$srcdir
22883    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22884esac
22885ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22886
22887
22888  case $ac_mode in
22889  :F)
22890  #
22891  # CONFIG_FILE
22892  #
22893
22894  case $INSTALL in
22895  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22896  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22897  esac
22898  ac_MKDIR_P=$MKDIR_P
22899  case $MKDIR_P in
22900  [\\/$]* | ?:[\\/]* ) ;;
22901  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22902  esac
22903_ACEOF
22904
22905cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22906# If the template does not know about datarootdir, expand it.
22907# FIXME: This hack should be removed a few years after 2.60.
22908ac_datarootdir_hack=; ac_datarootdir_seen=
22909ac_sed_dataroot='
22910/datarootdir/ {
22911  p
22912  q
22913}
22914/@datadir@/p
22915/@docdir@/p
22916/@infodir@/p
22917/@localedir@/p
22918/@mandir@/p'
22919case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22920*datarootdir*) ac_datarootdir_seen=yes;;
22921*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22922  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22923$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22924_ACEOF
22925cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22926  ac_datarootdir_hack='
22927  s&@datadir@&$datadir&g
22928  s&@docdir@&$docdir&g
22929  s&@infodir@&$infodir&g
22930  s&@localedir@&$localedir&g
22931  s&@mandir@&$mandir&g
22932  s&\\\${datarootdir}&$datarootdir&g' ;;
22933esac
22934_ACEOF
22935
22936# Neutralize VPATH when `$srcdir' = `.'.
22937# Shell code in configure.ac might set extrasub.
22938# FIXME: do we really want to maintain this feature?
22939cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22940ac_sed_extra="$ac_vpsub
22941$extrasub
22942_ACEOF
22943cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22944:t
22945/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22946s|@configure_input@|$ac_sed_conf_input|;t t
22947s&@top_builddir@&$ac_top_builddir_sub&;t t
22948s&@top_build_prefix@&$ac_top_build_prefix&;t t
22949s&@srcdir@&$ac_srcdir&;t t
22950s&@abs_srcdir@&$ac_abs_srcdir&;t t
22951s&@top_srcdir@&$ac_top_srcdir&;t t
22952s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22953s&@builddir@&$ac_builddir&;t t
22954s&@abs_builddir@&$ac_abs_builddir&;t t
22955s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22956s&@INSTALL@&$ac_INSTALL&;t t
22957s&@MKDIR_P@&$ac_MKDIR_P&;t t
22958$ac_datarootdir_hack
22959"
22960eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22961  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22962
22963test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22964  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22965  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
22966      "$ac_tmp/out"`; test -z "$ac_out"; } &&
22967  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22968which seems to be undefined.  Please make sure it is defined" >&5
22969$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22970which seems to be undefined.  Please make sure it is defined" >&2;}
22971
22972  rm -f "$ac_tmp/stdin"
22973  case $ac_file in
22974  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22975  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22976  esac \
22977  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22978 ;;
22979  :H)
22980  #
22981  # CONFIG_HEADER
22982  #
22983  if test x"$ac_file" != x-; then
22984    {
22985      $as_echo "/* $configure_input  */" \
22986      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22987    } >"$ac_tmp/config.h" \
22988      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22989    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22990      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22991$as_echo "$as_me: $ac_file is unchanged" >&6;}
22992    else
22993      rm -f "$ac_file"
22994      mv "$ac_tmp/config.h" "$ac_file" \
22995	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
22996    fi
22997  else
22998    $as_echo "/* $configure_input  */" \
22999      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23000      || as_fn_error $? "could not create -" "$LINENO" 5
23001  fi
23002# Compute "$ac_file"'s index in $config_headers.
23003_am_arg="$ac_file"
23004_am_stamp_count=1
23005for _am_header in $config_headers :; do
23006  case $_am_header in
23007    $_am_arg | $_am_arg:* )
23008      break ;;
23009    * )
23010      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23011  esac
23012done
23013echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23014$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23015	 X"$_am_arg" : 'X\(//\)[^/]' \| \
23016	 X"$_am_arg" : 'X\(//\)$' \| \
23017	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23018$as_echo X"$_am_arg" |
23019    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23020	    s//\1/
23021	    q
23022	  }
23023	  /^X\(\/\/\)[^/].*/{
23024	    s//\1/
23025	    q
23026	  }
23027	  /^X\(\/\/\)$/{
23028	    s//\1/
23029	    q
23030	  }
23031	  /^X\(\/\).*/{
23032	    s//\1/
23033	    q
23034	  }
23035	  s/.*/./; q'`/stamp-h$_am_stamp_count
23036 ;;
23037
23038  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23039$as_echo "$as_me: executing $ac_file commands" >&6;}
23040 ;;
23041  esac
23042
23043
23044  case $ac_file$ac_mode in
23045    "default-1":C)
23046    for ac_file in $CONFIG_FILES; do
23047      # Support "outfile[:infile[:infile...]]"
23048      case "$ac_file" in
23049        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23050      esac
23051      # PO directories have a Makefile.in generated from Makefile.in.in.
23052      case "$ac_file" in */Makefile.in)
23053        # Adjust a relative srcdir.
23054        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
23055        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
23056        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
23057        # In autoconf-2.13 it is called $ac_given_srcdir.
23058        # In autoconf-2.50 it is called $srcdir.
23059        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
23060        case "$ac_given_srcdir" in
23061          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
23062          /*) top_srcdir="$ac_given_srcdir" ;;
23063          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
23064        esac
23065        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
23066          rm -f "$ac_dir/POTFILES"
23067          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
23068          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
23069          POMAKEFILEDEPS="POTFILES.in"
23070          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
23071          # on $ac_dir but don't depend on user-specified configuration
23072          # parameters.
23073          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
23074            # The LINGUAS file contains the set of available languages.
23075            if test -n "$OBSOLETE_ALL_LINGUAS"; then
23076              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
23077            fi
23078            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
23079            # Hide the ALL_LINGUAS assigment from automake.
23080            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
23081            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
23082          else
23083            # The set of available languages was given in configure.in.
23084            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
23085          fi
23086          # Compute POFILES
23087          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
23088          # Compute UPDATEPOFILES
23089          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
23090          # Compute DUMMYPOFILES
23091          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
23092          # Compute GMOFILES
23093          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
23094          case "$ac_given_srcdir" in
23095            .) srcdirpre= ;;
23096            *) srcdirpre='$(srcdir)/' ;;
23097          esac
23098          POFILES=
23099          UPDATEPOFILES=
23100          DUMMYPOFILES=
23101          GMOFILES=
23102          for lang in $ALL_LINGUAS; do
23103            POFILES="$POFILES $srcdirpre$lang.po"
23104            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
23105            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
23106            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
23107          done
23108          # CATALOGS depends on both $ac_dir and the user's LINGUAS
23109          # environment variable.
23110          INST_LINGUAS=
23111          if test -n "$ALL_LINGUAS"; then
23112            for presentlang in $ALL_LINGUAS; do
23113              useit=no
23114              if test "%UNSET%" != "$LINGUAS"; then
23115                desiredlanguages="$LINGUAS"
23116              else
23117                desiredlanguages="$ALL_LINGUAS"
23118              fi
23119              for desiredlang in $desiredlanguages; do
23120                # Use the presentlang catalog if desiredlang is
23121                #   a. equal to presentlang, or
23122                #   b. a variant of presentlang (because in this case,
23123                #      presentlang can be used as a fallback for messages
23124                #      which are not translated in the desiredlang catalog).
23125                case "$desiredlang" in
23126                  "$presentlang"*) useit=yes;;
23127                esac
23128              done
23129              if test $useit = yes; then
23130                INST_LINGUAS="$INST_LINGUAS $presentlang"
23131              fi
23132            done
23133          fi
23134          CATALOGS=
23135          if test -n "$INST_LINGUAS"; then
23136            for lang in $INST_LINGUAS; do
23137              CATALOGS="$CATALOGS $lang.gmo"
23138            done
23139          fi
23140          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
23141          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
23142          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
23143            if test -f "$f"; then
23144              case "$f" in
23145                *.orig | *.bak | *~) ;;
23146                *) cat "$f" >> "$ac_dir/Makefile" ;;
23147              esac
23148            fi
23149          done
23150        fi
23151        ;;
23152      esac
23153    done ;;
23154    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23155  # Autoconf 2.62 quotes --file arguments for eval, but not when files
23156  # are listed without --file.  Let's play safe and only enable the eval
23157  # if we detect the quoting.
23158  case $CONFIG_FILES in
23159  *\'*) eval set x "$CONFIG_FILES" ;;
23160  *)   set x $CONFIG_FILES ;;
23161  esac
23162  shift
23163  for mf
23164  do
23165    # Strip MF so we end up with the name of the file.
23166    mf=`echo "$mf" | sed -e 's/:.*$//'`
23167    # Check whether this is an Automake generated Makefile or not.
23168    # We used to match only the files named `Makefile.in', but
23169    # some people rename them; so instead we look at the file content.
23170    # Grep'ing the first line is not enough: some people post-process
23171    # each Makefile.in and add a new line on top of each file to say so.
23172    # Grep'ing the whole file is not good either: AIX grep has a line
23173    # limit of 2048, but all sed's we know have understand at least 4000.
23174    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23175      dirpart=`$as_dirname -- "$mf" ||
23176$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23177	 X"$mf" : 'X\(//\)[^/]' \| \
23178	 X"$mf" : 'X\(//\)$' \| \
23179	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23180$as_echo X"$mf" |
23181    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23182	    s//\1/
23183	    q
23184	  }
23185	  /^X\(\/\/\)[^/].*/{
23186	    s//\1/
23187	    q
23188	  }
23189	  /^X\(\/\/\)$/{
23190	    s//\1/
23191	    q
23192	  }
23193	  /^X\(\/\).*/{
23194	    s//\1/
23195	    q
23196	  }
23197	  s/.*/./; q'`
23198    else
23199      continue
23200    fi
23201    # Extract the definition of DEPDIR, am__include, and am__quote
23202    # from the Makefile without running `make'.
23203    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23204    test -z "$DEPDIR" && continue
23205    am__include=`sed -n 's/^am__include = //p' < "$mf"`
23206    test -z "am__include" && continue
23207    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23208    # When using ansi2knr, U may be empty or an underscore; expand it
23209    U=`sed -n 's/^U = //p' < "$mf"`
23210    # Find all dependency output files, they are included files with
23211    # $(DEPDIR) in their names.  We invoke sed twice because it is the
23212    # simplest approach to changing $(DEPDIR) to its actual value in the
23213    # expansion.
23214    for file in `sed -n "
23215      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23216	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23217      # Make sure the directory exists.
23218      test -f "$dirpart/$file" && continue
23219      fdir=`$as_dirname -- "$file" ||
23220$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23221	 X"$file" : 'X\(//\)[^/]' \| \
23222	 X"$file" : 'X\(//\)$' \| \
23223	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23224$as_echo X"$file" |
23225    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23226	    s//\1/
23227	    q
23228	  }
23229	  /^X\(\/\/\)[^/].*/{
23230	    s//\1/
23231	    q
23232	  }
23233	  /^X\(\/\/\)$/{
23234	    s//\1/
23235	    q
23236	  }
23237	  /^X\(\/\).*/{
23238	    s//\1/
23239	    q
23240	  }
23241	  s/.*/./; q'`
23242      as_dir=$dirpart/$fdir; as_fn_mkdir_p
23243      # echo "creating $dirpart/$file"
23244      echo '# dummy' > "$dirpart/$file"
23245    done
23246  done
23247}
23248 ;;
23249    "libtool":C)
23250
23251    # See if we are running on zsh, and set the options which allow our
23252    # commands through without removal of \ escapes.
23253    if test -n "${ZSH_VERSION+set}" ; then
23254      setopt NO_GLOB_SUBST
23255    fi
23256
23257    cfgfile="${ofile}T"
23258    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23259    $RM "$cfgfile"
23260
23261    cat <<_LT_EOF >> "$cfgfile"
23262#! $SHELL
23263
23264# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
23265# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
23266# NOTE: Changes made to this file will be lost: look at ltmain.sh.
23267#
23268#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23269#                 2006, 2007, 2008 Free Software Foundation, Inc.
23270#   Written by Gordon Matzigkeit, 1996
23271#
23272#   This file is part of GNU Libtool.
23273#
23274# GNU Libtool is free software; you can redistribute it and/or
23275# modify it under the terms of the GNU General Public License as
23276# published by the Free Software Foundation; either version 2 of
23277# the License, or (at your option) any later version.
23278#
23279# As a special exception to the GNU General Public License,
23280# if you distribute this file as part of a program or library that
23281# is built using GNU Libtool, you may include this file under the
23282# same distribution terms that you use for the rest of that program.
23283#
23284# GNU Libtool is distributed in the hope that it will be useful,
23285# but WITHOUT ANY WARRANTY; without even the implied warranty of
23286# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23287# GNU General Public License for more details.
23288#
23289# You should have received a copy of the GNU General Public License
23290# along with GNU Libtool; see the file COPYING.  If not, a copy
23291# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
23292# obtained by writing to the Free Software Foundation, Inc.,
23293# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23294
23295
23296# The names of the tagged configurations supported by this script.
23297available_tags="CXX "
23298
23299# ### BEGIN LIBTOOL CONFIG
23300
23301# Assembler program.
23302AS=$AS
23303
23304# DLL creation program.
23305DLLTOOL=$DLLTOOL
23306
23307# Object dumper program.
23308OBJDUMP=$OBJDUMP
23309
23310# Which release of libtool.m4 was used?
23311macro_version=$macro_version
23312macro_revision=$macro_revision
23313
23314# Whether or not to build shared libraries.
23315build_libtool_libs=$enable_shared
23316
23317# Whether or not to build static libraries.
23318build_old_libs=$enable_static
23319
23320# What type of objects to build.
23321pic_mode=$pic_mode
23322
23323# Whether or not to optimize for fast installation.
23324fast_install=$enable_fast_install
23325
23326# The host system.
23327host_alias=$host_alias
23328host=$host
23329host_os=$host_os
23330
23331# The build system.
23332build_alias=$build_alias
23333build=$build
23334build_os=$build_os
23335
23336# A sed program that does not truncate output.
23337SED=$lt_SED
23338
23339# Sed that helps us avoid accidentally triggering echo(1) options like -n.
23340Xsed="\$SED -e 1s/^X//"
23341
23342# A grep program that handles long lines.
23343GREP=$lt_GREP
23344
23345# An ERE matcher.
23346EGREP=$lt_EGREP
23347
23348# A literal string matcher.
23349FGREP=$lt_FGREP
23350
23351# A BSD- or MS-compatible name lister.
23352NM=$lt_NM
23353
23354# Whether we need soft or hard links.
23355LN_S=$lt_LN_S
23356
23357# What is the maximum length of a command?
23358max_cmd_len=$max_cmd_len
23359
23360# Object file suffix (normally "o").
23361objext=$ac_objext
23362
23363# Executable file suffix (normally "").
23364exeext=$exeext
23365
23366# whether the shell understands "unset".
23367lt_unset=$lt_unset
23368
23369# turn spaces into newlines.
23370SP2NL=$lt_lt_SP2NL
23371
23372# turn newlines into spaces.
23373NL2SP=$lt_lt_NL2SP
23374
23375# How to create reloadable object files.
23376reload_flag=$lt_reload_flag
23377reload_cmds=$lt_reload_cmds
23378
23379# Method to check whether dependent libraries are shared objects.
23380deplibs_check_method=$lt_deplibs_check_method
23381
23382# Command to use when deplibs_check_method == "file_magic".
23383file_magic_cmd=$lt_file_magic_cmd
23384
23385# The archiver.
23386AR=$lt_AR
23387AR_FLAGS=$lt_AR_FLAGS
23388
23389# A symbol stripping program.
23390STRIP=$lt_STRIP
23391
23392# Commands used to install an old-style archive.
23393RANLIB=$lt_RANLIB
23394old_postinstall_cmds=$lt_old_postinstall_cmds
23395old_postuninstall_cmds=$lt_old_postuninstall_cmds
23396
23397# A C compiler.
23398LTCC=$lt_CC
23399
23400# LTCC compiler flags.
23401LTCFLAGS=$lt_CFLAGS
23402
23403# Take the output of nm and produce a listing of raw symbols and C names.
23404global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23405
23406# Transform the output of nm in a proper C declaration.
23407global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23408
23409# Transform the output of nm in a C name address pair.
23410global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23411
23412# Transform the output of nm in a C name address pair when lib prefix is needed.
23413global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23414
23415# The name of the directory that contains temporary libtool files.
23416objdir=$objdir
23417
23418# Shell to use when invoking shell scripts.
23419SHELL=$lt_SHELL
23420
23421# An echo program that does not interpret backslashes.
23422ECHO=$lt_ECHO
23423
23424# Used to examine libraries when file_magic_cmd begins with "file".
23425MAGIC_CMD=$MAGIC_CMD
23426
23427# Must we lock files when doing compilation?
23428need_locks=$lt_need_locks
23429
23430# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23431DSYMUTIL=$lt_DSYMUTIL
23432
23433# Tool to change global to local symbols on Mac OS X.
23434NMEDIT=$lt_NMEDIT
23435
23436# Tool to manipulate fat objects and archives on Mac OS X.
23437LIPO=$lt_LIPO
23438
23439# ldd/readelf like tool for Mach-O binaries on Mac OS X.
23440OTOOL=$lt_OTOOL
23441
23442# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23443OTOOL64=$lt_OTOOL64
23444
23445# Old archive suffix (normally "a").
23446libext=$libext
23447
23448# Shared library suffix (normally ".so").
23449shrext_cmds=$lt_shrext_cmds
23450
23451# The commands to extract the exported symbol list from a shared archive.
23452extract_expsyms_cmds=$lt_extract_expsyms_cmds
23453
23454# Variables whose values should be saved in libtool wrapper scripts and
23455# restored at link time.
23456variables_saved_for_relink=$lt_variables_saved_for_relink
23457
23458# Do we need the "lib" prefix for modules?
23459need_lib_prefix=$need_lib_prefix
23460
23461# Do we need a version for libraries?
23462need_version=$need_version
23463
23464# Library versioning type.
23465version_type=$version_type
23466
23467# Shared library runtime path variable.
23468runpath_var=$runpath_var
23469
23470# Shared library path variable.
23471shlibpath_var=$shlibpath_var
23472
23473# Is shlibpath searched before the hard-coded library search path?
23474shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23475
23476# Format of library name prefix.
23477libname_spec=$lt_libname_spec
23478
23479# List of archive names.  First name is the real one, the rest are links.
23480# The last name is the one that the linker finds with -lNAME
23481library_names_spec=$lt_library_names_spec
23482
23483# The coded name of the library, if different from the real name.
23484soname_spec=$lt_soname_spec
23485
23486# Command to use after installation of a shared archive.
23487postinstall_cmds=$lt_postinstall_cmds
23488
23489# Command to use after uninstallation of a shared archive.
23490postuninstall_cmds=$lt_postuninstall_cmds
23491
23492# Commands used to finish a libtool library installation in a directory.
23493finish_cmds=$lt_finish_cmds
23494
23495# As "finish_cmds", except a single script fragment to be evaled but
23496# not shown.
23497finish_eval=$lt_finish_eval
23498
23499# Whether we should hardcode library paths into libraries.
23500hardcode_into_libs=$hardcode_into_libs
23501
23502# Compile-time system search path for libraries.
23503sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23504
23505# Run-time system search path for libraries.
23506sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23507
23508# Whether dlopen is supported.
23509dlopen_support=$enable_dlopen
23510
23511# Whether dlopen of programs is supported.
23512dlopen_self=$enable_dlopen_self
23513
23514# Whether dlopen of statically linked programs is supported.
23515dlopen_self_static=$enable_dlopen_self_static
23516
23517# Commands to strip libraries.
23518old_striplib=$lt_old_striplib
23519striplib=$lt_striplib
23520
23521
23522# The linker used to build libraries.
23523LD=$lt_LD
23524
23525# Commands used to build an old-style archive.
23526old_archive_cmds=$lt_old_archive_cmds
23527
23528# A language specific compiler.
23529CC=$lt_compiler
23530
23531# Is the compiler the GNU compiler?
23532with_gcc=$GCC
23533
23534# Compiler flag to turn off builtin functions.
23535no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23536
23537# How to pass a linker flag through the compiler.
23538wl=$lt_lt_prog_compiler_wl
23539
23540# Additional compiler flags for building library objects.
23541pic_flag=$lt_lt_prog_compiler_pic
23542
23543# Compiler flag to prevent dynamic linking.
23544link_static_flag=$lt_lt_prog_compiler_static
23545
23546# Does compiler simultaneously support -c and -o options?
23547compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23548
23549# Whether or not to add -lc for building shared libraries.
23550build_libtool_need_lc=$archive_cmds_need_lc
23551
23552# Whether or not to disallow shared libs when runtime libs are static.
23553allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23554
23555# Compiler flag to allow reflexive dlopens.
23556export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23557
23558# Compiler flag to generate shared objects directly from archives.
23559whole_archive_flag_spec=$lt_whole_archive_flag_spec
23560
23561# Whether the compiler copes with passing no objects directly.
23562compiler_needs_object=$lt_compiler_needs_object
23563
23564# Create an old-style archive from a shared archive.
23565old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23566
23567# Create a temporary old-style archive to link instead of a shared archive.
23568old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23569
23570# Commands used to build a shared archive.
23571archive_cmds=$lt_archive_cmds
23572archive_expsym_cmds=$lt_archive_expsym_cmds
23573
23574# Commands used to build a loadable module if different from building
23575# a shared archive.
23576module_cmds=$lt_module_cmds
23577module_expsym_cmds=$lt_module_expsym_cmds
23578
23579# Whether we are building with GNU ld or not.
23580with_gnu_ld=$lt_with_gnu_ld
23581
23582# Flag that allows shared libraries with undefined symbols to be built.
23583allow_undefined_flag=$lt_allow_undefined_flag
23584
23585# Flag that enforces no undefined symbols.
23586no_undefined_flag=$lt_no_undefined_flag
23587
23588# Flag to hardcode \$libdir into a binary during linking.
23589# This must work even if \$libdir does not exist
23590hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23591
23592# If ld is used when linking, flag to hardcode \$libdir into a binary
23593# during linking.  This must work even if \$libdir does not exist.
23594hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
23595
23596# Whether we need a single "-rpath" flag with a separated argument.
23597hardcode_libdir_separator=$lt_hardcode_libdir_separator
23598
23599# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23600# DIR into the resulting binary.
23601hardcode_direct=$hardcode_direct
23602
23603# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23604# DIR into the resulting binary and the resulting library dependency is
23605# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23606# library is relocated.
23607hardcode_direct_absolute=$hardcode_direct_absolute
23608
23609# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23610# into the resulting binary.
23611hardcode_minus_L=$hardcode_minus_L
23612
23613# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23614# into the resulting binary.
23615hardcode_shlibpath_var=$hardcode_shlibpath_var
23616
23617# Set to "yes" if building a shared library automatically hardcodes DIR
23618# into the library and all subsequent libraries and executables linked
23619# against it.
23620hardcode_automatic=$hardcode_automatic
23621
23622# Set to yes if linker adds runtime paths of dependent libraries
23623# to runtime path list.
23624inherit_rpath=$inherit_rpath
23625
23626# Whether libtool must link a program against all its dependency libraries.
23627link_all_deplibs=$link_all_deplibs
23628
23629# Fix the shell variable \$srcfile for the compiler.
23630fix_srcfile_path=$lt_fix_srcfile_path
23631
23632# Set to "yes" if exported symbols are required.
23633always_export_symbols=$always_export_symbols
23634
23635# The commands to list exported symbols.
23636export_symbols_cmds=$lt_export_symbols_cmds
23637
23638# Symbols that should not be listed in the preloaded symbols.
23639exclude_expsyms=$lt_exclude_expsyms
23640
23641# Symbols that must always be exported.
23642include_expsyms=$lt_include_expsyms
23643
23644# Commands necessary for linking programs (against libraries) with templates.
23645prelink_cmds=$lt_prelink_cmds
23646
23647# Specify filename containing input files.
23648file_list_spec=$lt_file_list_spec
23649
23650# How to hardcode a shared library path into an executable.
23651hardcode_action=$hardcode_action
23652
23653# The directories searched by this compiler when creating a shared library.
23654compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23655
23656# Dependencies to place before and after the objects being linked to
23657# create a shared library.
23658predep_objects=$lt_predep_objects
23659postdep_objects=$lt_postdep_objects
23660predeps=$lt_predeps
23661postdeps=$lt_postdeps
23662
23663# The library search path used internally by the compiler when linking
23664# a shared library.
23665compiler_lib_search_path=$lt_compiler_lib_search_path
23666
23667# ### END LIBTOOL CONFIG
23668
23669_LT_EOF
23670
23671  case $host_os in
23672  aix3*)
23673    cat <<\_LT_EOF >> "$cfgfile"
23674# AIX sometimes has problems with the GCC collect2 program.  For some
23675# reason, if we set the COLLECT_NAMES environment variable, the problems
23676# vanish in a puff of smoke.
23677if test "X${COLLECT_NAMES+set}" != Xset; then
23678  COLLECT_NAMES=
23679  export COLLECT_NAMES
23680fi
23681_LT_EOF
23682    ;;
23683  esac
23684
23685
23686ltmain="$ac_aux_dir/ltmain.sh"
23687
23688
23689  # We use sed instead of cat because bash on DJGPP gets confused if
23690  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23691  # text mode, it properly converts lines to CR/LF.  This bash problem
23692  # is reportedly fixed, but why not run on old versions too?
23693  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
23694    || (rm -f "$cfgfile"; exit 1)
23695
23696  case $xsi_shell in
23697  yes)
23698    cat << \_LT_EOF >> "$cfgfile"
23699
23700# func_dirname file append nondir_replacement
23701# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
23702# otherwise set result to NONDIR_REPLACEMENT.
23703func_dirname ()
23704{
23705  case ${1} in
23706    */*) func_dirname_result="${1%/*}${2}" ;;
23707    *  ) func_dirname_result="${3}" ;;
23708  esac
23709}
23710
23711# func_basename file
23712func_basename ()
23713{
23714  func_basename_result="${1##*/}"
23715}
23716
23717# func_dirname_and_basename file append nondir_replacement
23718# perform func_basename and func_dirname in a single function
23719# call:
23720#   dirname:  Compute the dirname of FILE.  If nonempty,
23721#             add APPEND to the result, otherwise set result
23722#             to NONDIR_REPLACEMENT.
23723#             value returned in "$func_dirname_result"
23724#   basename: Compute filename of FILE.
23725#             value retuned in "$func_basename_result"
23726# Implementation must be kept synchronized with func_dirname
23727# and func_basename. For efficiency, we do not delegate to
23728# those functions but instead duplicate the functionality here.
23729func_dirname_and_basename ()
23730{
23731  case ${1} in
23732    */*) func_dirname_result="${1%/*}${2}" ;;
23733    *  ) func_dirname_result="${3}" ;;
23734  esac
23735  func_basename_result="${1##*/}"
23736}
23737
23738# func_stripname prefix suffix name
23739# strip PREFIX and SUFFIX off of NAME.
23740# PREFIX and SUFFIX must not contain globbing or regex special
23741# characters, hashes, percent signs, but SUFFIX may contain a leading
23742# dot (in which case that matches only a dot).
23743func_stripname ()
23744{
23745  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
23746  # positional parameters, so assign one to ordinary parameter first.
23747  func_stripname_result=${3}
23748  func_stripname_result=${func_stripname_result#"${1}"}
23749  func_stripname_result=${func_stripname_result%"${2}"}
23750}
23751
23752# func_opt_split
23753func_opt_split ()
23754{
23755  func_opt_split_opt=${1%%=*}
23756  func_opt_split_arg=${1#*=}
23757}
23758
23759# func_lo2o object
23760func_lo2o ()
23761{
23762  case ${1} in
23763    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
23764    *)    func_lo2o_result=${1} ;;
23765  esac
23766}
23767
23768# func_xform libobj-or-source
23769func_xform ()
23770{
23771  func_xform_result=${1%.*}.lo
23772}
23773
23774# func_arith arithmetic-term...
23775func_arith ()
23776{
23777  func_arith_result=$(( $* ))
23778}
23779
23780# func_len string
23781# STRING may not start with a hyphen.
23782func_len ()
23783{
23784  func_len_result=${#1}
23785}
23786
23787_LT_EOF
23788    ;;
23789  *) # Bourne compatible functions.
23790    cat << \_LT_EOF >> "$cfgfile"
23791
23792# func_dirname file append nondir_replacement
23793# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
23794# otherwise set result to NONDIR_REPLACEMENT.
23795func_dirname ()
23796{
23797  # Extract subdirectory from the argument.
23798  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
23799  if test "X$func_dirname_result" = "X${1}"; then
23800    func_dirname_result="${3}"
23801  else
23802    func_dirname_result="$func_dirname_result${2}"
23803  fi
23804}
23805
23806# func_basename file
23807func_basename ()
23808{
23809  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
23810}
23811
23812
23813# func_stripname prefix suffix name
23814# strip PREFIX and SUFFIX off of NAME.
23815# PREFIX and SUFFIX must not contain globbing or regex special
23816# characters, hashes, percent signs, but SUFFIX may contain a leading
23817# dot (in which case that matches only a dot).
23818# func_strip_suffix prefix name
23819func_stripname ()
23820{
23821  case ${2} in
23822    .*) func_stripname_result=`$ECHO "X${3}" \
23823           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
23824    *)  func_stripname_result=`$ECHO "X${3}" \
23825           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
23826  esac
23827}
23828
23829# sed scripts:
23830my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
23831my_sed_long_arg='1s/^-[^=]*=//'
23832
23833# func_opt_split
23834func_opt_split ()
23835{
23836  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
23837  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
23838}
23839
23840# func_lo2o object
23841func_lo2o ()
23842{
23843  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
23844}
23845
23846# func_xform libobj-or-source
23847func_xform ()
23848{
23849  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
23850}
23851
23852# func_arith arithmetic-term...
23853func_arith ()
23854{
23855  func_arith_result=`expr "$@"`
23856}
23857
23858# func_len string
23859# STRING may not start with a hyphen.
23860func_len ()
23861{
23862  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
23863}
23864
23865_LT_EOF
23866esac
23867
23868case $lt_shell_append in
23869  yes)
23870    cat << \_LT_EOF >> "$cfgfile"
23871
23872# func_append var value
23873# Append VALUE to the end of shell variable VAR.
23874func_append ()
23875{
23876  eval "$1+=\$2"
23877}
23878_LT_EOF
23879    ;;
23880  *)
23881    cat << \_LT_EOF >> "$cfgfile"
23882
23883# func_append var value
23884# Append VALUE to the end of shell variable VAR.
23885func_append ()
23886{
23887  eval "$1=\$$1\$2"
23888}
23889
23890_LT_EOF
23891    ;;
23892  esac
23893
23894
23895  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
23896    || (rm -f "$cfgfile"; exit 1)
23897
23898  mv -f "$cfgfile" "$ofile" ||
23899    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23900  chmod +x "$ofile"
23901
23902
23903    cat <<_LT_EOF >> "$ofile"
23904
23905# ### BEGIN LIBTOOL TAG CONFIG: CXX
23906
23907# The linker used to build libraries.
23908LD=$lt_LD_CXX
23909
23910# Commands used to build an old-style archive.
23911old_archive_cmds=$lt_old_archive_cmds_CXX
23912
23913# A language specific compiler.
23914CC=$lt_compiler_CXX
23915
23916# Is the compiler the GNU compiler?
23917with_gcc=$GCC_CXX
23918
23919# Compiler flag to turn off builtin functions.
23920no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23921
23922# How to pass a linker flag through the compiler.
23923wl=$lt_lt_prog_compiler_wl_CXX
23924
23925# Additional compiler flags for building library objects.
23926pic_flag=$lt_lt_prog_compiler_pic_CXX
23927
23928# Compiler flag to prevent dynamic linking.
23929link_static_flag=$lt_lt_prog_compiler_static_CXX
23930
23931# Does compiler simultaneously support -c and -o options?
23932compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23933
23934# Whether or not to add -lc for building shared libraries.
23935build_libtool_need_lc=$archive_cmds_need_lc_CXX
23936
23937# Whether or not to disallow shared libs when runtime libs are static.
23938allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23939
23940# Compiler flag to allow reflexive dlopens.
23941export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23942
23943# Compiler flag to generate shared objects directly from archives.
23944whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23945
23946# Whether the compiler copes with passing no objects directly.
23947compiler_needs_object=$lt_compiler_needs_object_CXX
23948
23949# Create an old-style archive from a shared archive.
23950old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23951
23952# Create a temporary old-style archive to link instead of a shared archive.
23953old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23954
23955# Commands used to build a shared archive.
23956archive_cmds=$lt_archive_cmds_CXX
23957archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23958
23959# Commands used to build a loadable module if different from building
23960# a shared archive.
23961module_cmds=$lt_module_cmds_CXX
23962module_expsym_cmds=$lt_module_expsym_cmds_CXX
23963
23964# Whether we are building with GNU ld or not.
23965with_gnu_ld=$lt_with_gnu_ld_CXX
23966
23967# Flag that allows shared libraries with undefined symbols to be built.
23968allow_undefined_flag=$lt_allow_undefined_flag_CXX
23969
23970# Flag that enforces no undefined symbols.
23971no_undefined_flag=$lt_no_undefined_flag_CXX
23972
23973# Flag to hardcode \$libdir into a binary during linking.
23974# This must work even if \$libdir does not exist
23975hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23976
23977# If ld is used when linking, flag to hardcode \$libdir into a binary
23978# during linking.  This must work even if \$libdir does not exist.
23979hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
23980
23981# Whether we need a single "-rpath" flag with a separated argument.
23982hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23983
23984# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23985# DIR into the resulting binary.
23986hardcode_direct=$hardcode_direct_CXX
23987
23988# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23989# DIR into the resulting binary and the resulting library dependency is
23990# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23991# library is relocated.
23992hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23993
23994# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23995# into the resulting binary.
23996hardcode_minus_L=$hardcode_minus_L_CXX
23997
23998# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23999# into the resulting binary.
24000hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
24001
24002# Set to "yes" if building a shared library automatically hardcodes DIR
24003# into the library and all subsequent libraries and executables linked
24004# against it.
24005hardcode_automatic=$hardcode_automatic_CXX
24006
24007# Set to yes if linker adds runtime paths of dependent libraries
24008# to runtime path list.
24009inherit_rpath=$inherit_rpath_CXX
24010
24011# Whether libtool must link a program against all its dependency libraries.
24012link_all_deplibs=$link_all_deplibs_CXX
24013
24014# Fix the shell variable \$srcfile for the compiler.
24015fix_srcfile_path=$lt_fix_srcfile_path_CXX
24016
24017# Set to "yes" if exported symbols are required.
24018always_export_symbols=$always_export_symbols_CXX
24019
24020# The commands to list exported symbols.
24021export_symbols_cmds=$lt_export_symbols_cmds_CXX
24022
24023# Symbols that should not be listed in the preloaded symbols.
24024exclude_expsyms=$lt_exclude_expsyms_CXX
24025
24026# Symbols that must always be exported.
24027include_expsyms=$lt_include_expsyms_CXX
24028
24029# Commands necessary for linking programs (against libraries) with templates.
24030prelink_cmds=$lt_prelink_cmds_CXX
24031
24032# Specify filename containing input files.
24033file_list_spec=$lt_file_list_spec_CXX
24034
24035# How to hardcode a shared library path into an executable.
24036hardcode_action=$hardcode_action_CXX
24037
24038# The directories searched by this compiler when creating a shared library.
24039compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
24040
24041# Dependencies to place before and after the objects being linked to
24042# create a shared library.
24043predep_objects=$lt_predep_objects_CXX
24044postdep_objects=$lt_postdep_objects_CXX
24045predeps=$lt_predeps_CXX
24046postdeps=$lt_postdeps_CXX
24047
24048# The library search path used internally by the compiler when linking
24049# a shared library.
24050compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
24051
24052# ### END LIBTOOL TAG CONFIG: CXX
24053_LT_EOF
24054
24055 ;;
24056
24057  esac
24058done # for ac_tag
24059
24060
24061as_fn_exit 0
24062_ACEOF
24063ac_clean_files=$ac_clean_files_save
24064
24065test $ac_write_fail = 0 ||
24066  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24067
24068
24069# configure is writing to config.log, and then calls config.status.
24070# config.status does its own redirection, appending to config.log.
24071# Unfortunately, on DOS this fails, as config.log is still kept open
24072# by configure, so config.status won't be able to write to it; its
24073# output is simply discarded.  So we exec the FD to /dev/null,
24074# effectively closing config.log, so it can be properly (re)opened and
24075# appended to by config.status.  When coming back to configure, we
24076# need to make the FD available again.
24077if test "$no_create" != yes; then
24078  ac_cs_success=:
24079  ac_config_status_args=
24080  test "$silent" = yes &&
24081    ac_config_status_args="$ac_config_status_args --quiet"
24082  exec 5>/dev/null
24083  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24084  exec 5>>config.log
24085  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24086  # would make configure fail if this is the last instruction.
24087  $ac_cs_success || as_fn_exit 1
24088fi
24089
24090#
24091# CONFIG_SUBDIRS section.
24092#
24093if test "$no_recursion" != yes; then
24094
24095  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
24096  # so they do not pile up.
24097  ac_sub_configure_args=
24098  ac_prev=
24099  eval "set x $ac_configure_args"
24100  shift
24101  for ac_arg
24102  do
24103    if test -n "$ac_prev"; then
24104      ac_prev=
24105      continue
24106    fi
24107    case $ac_arg in
24108    -cache-file | --cache-file | --cache-fil | --cache-fi \
24109    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24110      ac_prev=cache_file ;;
24111    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24112    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24113    | --c=*)
24114      ;;
24115    --config-cache | -C)
24116      ;;
24117    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24118      ac_prev=srcdir ;;
24119    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24120      ;;
24121    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24122      ac_prev=prefix ;;
24123    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24124      ;;
24125    --disable-option-checking)
24126      ;;
24127    *)
24128      case $ac_arg in
24129      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24130      esac
24131      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
24132    esac
24133  done
24134
24135  # Always prepend --prefix to ensure using the same prefix
24136  # in subdir configurations.
24137  ac_arg="--prefix=$prefix"
24138  case $ac_arg in
24139  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24140  esac
24141  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
24142
24143  # Pass --silent
24144  if test "$silent" = yes; then
24145    ac_sub_configure_args="--silent $ac_sub_configure_args"
24146  fi
24147
24148  # Always prepend --disable-option-checking to silence warnings, since
24149  # different subdirs can have different --enable and --with options.
24150  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
24151
24152  ac_popdir=`pwd`
24153  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24154
24155    # Do not complain, so a configure script can configure whichever
24156    # parts of a large source tree are present.
24157    test -d "$srcdir/$ac_dir" || continue
24158
24159    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24160    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
24161    $as_echo "$ac_msg" >&6
24162    as_dir="$ac_dir"; as_fn_mkdir_p
24163    ac_builddir=.
24164
24165case "$ac_dir" in
24166.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24167*)
24168  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24169  # A ".." for each directory in $ac_dir_suffix.
24170  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24171  case $ac_top_builddir_sub in
24172  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24173  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24174  esac ;;
24175esac
24176ac_abs_top_builddir=$ac_pwd
24177ac_abs_builddir=$ac_pwd$ac_dir_suffix
24178# for backward compatibility:
24179ac_top_builddir=$ac_top_build_prefix
24180
24181case $srcdir in
24182  .)  # We are building in place.
24183    ac_srcdir=.
24184    ac_top_srcdir=$ac_top_builddir_sub
24185    ac_abs_top_srcdir=$ac_pwd ;;
24186  [\\/]* | ?:[\\/]* )  # Absolute name.
24187    ac_srcdir=$srcdir$ac_dir_suffix;
24188    ac_top_srcdir=$srcdir
24189    ac_abs_top_srcdir=$srcdir ;;
24190  *) # Relative name.
24191    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24192    ac_top_srcdir=$ac_top_build_prefix$srcdir
24193    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24194esac
24195ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24196
24197
24198    cd "$ac_dir"
24199
24200    # Check for guested configure; otherwise get Cygnus style configure.
24201    if test -f "$ac_srcdir/configure.gnu"; then
24202      ac_sub_configure=$ac_srcdir/configure.gnu
24203    elif test -f "$ac_srcdir/configure"; then
24204      ac_sub_configure=$ac_srcdir/configure
24205    elif test -f "$ac_srcdir/configure.in"; then
24206      # This should be Cygnus configure.
24207      ac_sub_configure=$ac_aux_dir/configure
24208    else
24209      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
24210$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24211      ac_sub_configure=
24212    fi
24213
24214    # The recursion is here.
24215    if test -n "$ac_sub_configure"; then
24216      # Make the cache file name correct relative to the subdirectory.
24217      case $cache_file in
24218      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24219      *) # Relative name.
24220	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24221      esac
24222
24223      { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24224$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24225      # The eval makes quoting arguments work.
24226      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24227	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24228	as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
24229    fi
24230
24231    cd "$ac_popdir"
24232  done
24233fi
24234if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24235  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24236$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24237fi
24238
24239
24240{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
24241Build options:
24242  Version                  $VERSION
24243  Install prefix           $prefix
24244  Build shared libs        $enable_shared
24245  Build static libs        $enable_static
24246  Enable debug             $enable_debug
24247
24248Module options:
24249  Enable skim support      $enable_skim_support
24250" >&5
24251$as_echo "
24252Build options:
24253  Version                  $VERSION
24254  Install prefix           $prefix
24255  Build shared libs        $enable_shared
24256  Build static libs        $enable_static
24257  Enable debug             $enable_debug
24258
24259Module options:
24260  Enable skim support      $enable_skim_support
24261" >&6; }
24262