1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.67 for Tux4Kids-Common 0.1.1.
4#
5# Report bugs to <tuxmath-devel@lists.sourceforge.net>.
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.
94case $0 in #((
95  *[\\/]* ) as_myself=$0 ;;
96  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99  IFS=$as_save_IFS
100  test -z "$as_dir" && as_dir=.
101    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102  done
103IFS=$as_save_IFS
104
105     ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110  as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114  exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there.  '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140  emulate sh
141  NULLCMD=:
142  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143  # is contrary to our usage.  Disable this feature.
144  alias -g '\${1+\"\$@\"}'='\"\$@\"'
145  setopt NO_GLOB_SUBST
146else
147  case \`(set -o) 2>/dev/null\` in #(
148  *posix*) :
149    set -o posix ;; #(
150  *) :
151     ;;
152esac
153fi
154"
155  as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169  exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176test \$(( 1 + 1 )) = 2 || exit 1"
177  if (eval "$as_required") 2>/dev/null; then :
178  as_have_required=yes
179else
180  as_have_required=no
181fi
182  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189  IFS=$as_save_IFS
190  test -z "$as_dir" && as_dir=.
191  as_found=:
192  case $as_dir in #(
193	 /*)
194	   for as_base in sh bash ksh sh5; do
195	     # Try only shells that exist, to save several forks.
196	     as_shell=$as_dir/$as_base
197	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199  CONFIG_SHELL=$as_shell as_have_required=yes
200		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201  break 2
202fi
203fi
204	   done;;
205       esac
206  as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210  CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215      if test "x$CONFIG_SHELL" != x; then :
216  # We cannot yet assume a decent shell, so we have to provide a
217	# neutralization value for shells without unset; and this also
218	# works around shells that cannot unset nonexistent variables.
219	BASH_ENV=/dev/null
220	ENV=/dev/null
221	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222	export CONFIG_SHELL
223	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226    if test x$as_have_required = xno; then :
227  $as_echo "$0: This script requires a shell more modern than all"
228  $as_echo "$0: the shells that I found on your system."
229  if test x${ZSH_VERSION+set} = xset ; then
230    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232  else
233    $as_echo "$0: Please tell bug-autoconf@gnu.org and
234$0: tuxmath-devel@lists.sourceforge.net about your system,
235$0: including any error possibly output before this
236$0: message. Then install a modern shell, or manually run
237$0: the script under such a shell if you do have one."
238  fi
239  exit 1
240fi
241fi
242fi
243SHELL=${CONFIG_SHELL-/bin/sh}
244export SHELL
245# Unset more variables known to interfere with behavior of common tools.
246CLICOLOR_FORCE= GREP_OPTIONS=
247unset CLICOLOR_FORCE GREP_OPTIONS
248
249## --------------------- ##
250## M4sh Shell Functions. ##
251## --------------------- ##
252# as_fn_unset VAR
253# ---------------
254# Portably unset VAR.
255as_fn_unset ()
256{
257  { eval $1=; unset $1;}
258}
259as_unset=as_fn_unset
260
261# as_fn_set_status STATUS
262# -----------------------
263# Set $? to STATUS, without forking.
264as_fn_set_status ()
265{
266  return $1
267} # as_fn_set_status
268
269# as_fn_exit STATUS
270# -----------------
271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272as_fn_exit ()
273{
274  set +e
275  as_fn_set_status $1
276  exit $1
277} # as_fn_exit
278
279# as_fn_mkdir_p
280# -------------
281# Create "$as_dir" as a directory, including parents if necessary.
282as_fn_mkdir_p ()
283{
284
285  case $as_dir in #(
286  -*) as_dir=./$as_dir;;
287  esac
288  test -d "$as_dir" || eval $as_mkdir_p || {
289    as_dirs=
290    while :; do
291      case $as_dir in #(
292      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293      *) as_qdir=$as_dir;;
294      esac
295      as_dirs="'$as_qdir' $as_dirs"
296      as_dir=`$as_dirname -- "$as_dir" ||
297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298	 X"$as_dir" : 'X\(//\)[^/]' \| \
299	 X"$as_dir" : 'X\(//\)$' \| \
300	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301$as_echo X"$as_dir" |
302    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303	    s//\1/
304	    q
305	  }
306	  /^X\(\/\/\)[^/].*/{
307	    s//\1/
308	    q
309	  }
310	  /^X\(\/\/\)$/{
311	    s//\1/
312	    q
313	  }
314	  /^X\(\/\).*/{
315	    s//\1/
316	    q
317	  }
318	  s/.*/./; q'`
319      test -d "$as_dir" && break
320    done
321    test -z "$as_dirs" || eval "mkdir $as_dirs"
322  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
323
324
325} # as_fn_mkdir_p
326# as_fn_append VAR VALUE
327# ----------------------
328# Append the text in VALUE to the end of the definition contained in VAR. Take
329# advantage of any shell optimizations that allow amortized linear growth over
330# repeated appends, instead of the typical quadratic growth present in naive
331# implementations.
332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333  eval 'as_fn_append ()
334  {
335    eval $1+=\$2
336  }'
337else
338  as_fn_append ()
339  {
340    eval $1=\$$1\$2
341  }
342fi # as_fn_append
343
344# as_fn_arith ARG...
345# ------------------
346# Perform arithmetic evaluation on the ARGs, and store the result in the
347# global $as_val. Take advantage of shells that can avoid forks. The arguments
348# must be portable across $(()) and expr.
349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350  eval 'as_fn_arith ()
351  {
352    as_val=$(( $* ))
353  }'
354else
355  as_fn_arith ()
356  {
357    as_val=`expr "$@" || test $? -eq 1`
358  }
359fi # as_fn_arith
360
361
362# as_fn_error STATUS ERROR [LINENO LOG_FD]
363# ----------------------------------------
364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366# script with STATUS, using 1 if that was 0.
367as_fn_error ()
368{
369  as_status=$1; test $as_status -eq 0 && as_status=1
370  if test "$4"; then
371    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
373  fi
374  $as_echo "$as_me: error: $2" >&2
375  as_fn_exit $as_status
376} # as_fn_error
377
378if expr a : '\(a\)' >/dev/null 2>&1 &&
379   test "X`expr 00001 : '.*\(...\)'`" = X001; then
380  as_expr=expr
381else
382  as_expr=false
383fi
384
385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386  as_basename=basename
387else
388  as_basename=false
389fi
390
391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392  as_dirname=dirname
393else
394  as_dirname=false
395fi
396
397as_me=`$as_basename -- "$0" ||
398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399	 X"$0" : 'X\(//\)$' \| \
400	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401$as_echo X/"$0" |
402    sed '/^.*\/\([^/][^/]*\)\/*$/{
403	    s//\1/
404	    q
405	  }
406	  /^X\/\(\/\/\)$/{
407	    s//\1/
408	    q
409	  }
410	  /^X\/\(\/\).*/{
411	    s//\1/
412	    q
413	  }
414	  s/.*/./; q'`
415
416# Avoid depending upon Character Ranges.
417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420as_cr_digits='0123456789'
421as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424  as_lineno_1=$LINENO as_lineno_1a=$LINENO
425  as_lineno_2=$LINENO as_lineno_2a=$LINENO
426  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429  sed -n '
430    p
431    /[$]LINENO/=
432  ' <$as_myself |
433    sed '
434      s/[$]LINENO.*/&-/
435      t lineno
436      b
437      :lineno
438      N
439      :loop
440      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441      t loop
442      s/-\n.*//
443    ' >$as_me.lineno &&
444  chmod +x "$as_me.lineno" ||
445    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447  # Don't try to exec as it changes $[0], causing all sort of problems
448  # (the dirname of $[0] is not the place where we might find the
449  # original and so on.  Autoconf is especially sensitive to this).
450  . "./$as_me.lineno"
451  # Exit status is that of the last command.
452  exit
453}
454
455ECHO_C= ECHO_N= ECHO_T=
456case `echo -n x` in #(((((
457-n*)
458  case `echo 'xy\c'` in
459  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
460  xy)  ECHO_C='\c';;
461  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462       ECHO_T='	';;
463  esac;;
464*)
465  ECHO_N='-n';;
466esac
467
468rm -f conf$$ conf$$.exe conf$$.file
469if test -d conf$$.dir; then
470  rm -f conf$$.dir/conf$$.file
471else
472  rm -f conf$$.dir
473  mkdir conf$$.dir 2>/dev/null
474fi
475if (echo >conf$$.file) 2>/dev/null; then
476  if ln -s conf$$.file conf$$ 2>/dev/null; then
477    as_ln_s='ln -s'
478    # ... but there are two gotchas:
479    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481    # In both cases, we have to default to `cp -p'.
482    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483      as_ln_s='cp -p'
484  elif ln conf$$.file conf$$ 2>/dev/null; then
485    as_ln_s=ln
486  else
487    as_ln_s='cp -p'
488  fi
489else
490  as_ln_s='cp -p'
491fi
492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null
494
495if mkdir -p . 2>/dev/null; then
496  as_mkdir_p='mkdir -p "$as_dir"'
497else
498  test -d ./-p && rmdir ./-p
499  as_mkdir_p=false
500fi
501
502if test -x / >/dev/null 2>&1; then
503  as_test_x='test -x'
504else
505  if ls -dL / >/dev/null 2>&1; then
506    as_ls_L_option=L
507  else
508    as_ls_L_option=
509  fi
510  as_test_x='
511    eval sh -c '\''
512      if test -d "$1"; then
513	test -d "$1/.";
514      else
515	case $1 in #(
516	-*)set "./$1";;
517	esac;
518	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519	???[sx]*):;;*)false;;esac;fi
520    '\'' sh
521  '
522fi
523as_executable_p=$as_test_x
524
525# Sed expression to map a string onto a valid CPP name.
526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528# Sed expression to map a string onto a valid variable name.
529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532
533# Check that we are running under the correct shell.
534SHELL=${CONFIG_SHELL-/bin/sh}
535
536case X$lt_ECHO in
537X*--fallback-echo)
538  # Remove one level of quotation (which was required for Make).
539  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540  ;;
541esac
542
543ECHO=${lt_ECHO-echo}
544if test "X$1" = X--no-reexec; then
545  # Discard the --no-reexec flag, and continue.
546  shift
547elif test "X$1" = X--fallback-echo; then
548  # Avoid inline document here, it may be left over
549  :
550elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551  # Yippee, $ECHO works!
552  :
553else
554  # Restart under the correct shell.
555  exec $SHELL "$0" --no-reexec ${1+"$@"}
556fi
557
558if test "X$1" = X--fallback-echo; then
559  # used as fallback echo
560  shift
561  cat <<_LT_EOF
562$*
563_LT_EOF
564  exit 0
565fi
566
567# The HP-UX ksh and POSIX shell print the target directory to stdout
568# if CDPATH is set.
569(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571if test -z "$lt_ECHO"; then
572  if test "X${echo_test_string+set}" != Xset; then
573    # find a string as large as possible, as long as the shell can cope with it
574    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578      then
579        break
580      fi
581    done
582  fi
583
584  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586     test "X$echo_testing_string" = "X$echo_test_string"; then
587    :
588  else
589    # The Solaris, AIX, and Digital Unix default echo programs unquote
590    # backslashes.  This makes it impossible to quote backslashes using
591    #   echo "$something" | sed 's/\\/\\\\/g'
592    #
593    # So, first we look for a working echo in the user's PATH.
594
595    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596    for dir in $PATH /usr/ucb; do
597      IFS="$lt_save_ifs"
598      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601         test "X$echo_testing_string" = "X$echo_test_string"; then
602        ECHO="$dir/echo"
603        break
604      fi
605    done
606    IFS="$lt_save_ifs"
607
608    if test "X$ECHO" = Xecho; then
609      # We didn't find a better echo, so look for alternatives.
610      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612         test "X$echo_testing_string" = "X$echo_test_string"; then
613        # This shell has a builtin print -r that does the trick.
614        ECHO='print -r'
615      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616	   test "X$CONFIG_SHELL" != X/bin/ksh; then
617        # If we have ksh, try running configure again with it.
618        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619        export ORIGINAL_CONFIG_SHELL
620        CONFIG_SHELL=/bin/ksh
621        export CONFIG_SHELL
622        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623      else
624        # Try using printf.
625        ECHO='printf %s\n'
626        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628	   test "X$echo_testing_string" = "X$echo_test_string"; then
629	  # Cool, printf works
630	  :
631        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632	     test "X$echo_testing_string" = 'X\t' &&
633	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634	     test "X$echo_testing_string" = "X$echo_test_string"; then
635	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636	  export CONFIG_SHELL
637	  SHELL="$CONFIG_SHELL"
638	  export SHELL
639	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
640        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641	     test "X$echo_testing_string" = 'X\t' &&
642	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643	     test "X$echo_testing_string" = "X$echo_test_string"; then
644	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
645        else
646	  # maybe with a smaller string...
647	  prev=:
648
649	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651	    then
652	      break
653	    fi
654	    prev="$cmd"
655	  done
656
657	  if test "$prev" != 'sed 50q "$0"'; then
658	    echo_test_string=`eval $prev`
659	    export echo_test_string
660	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661	  else
662	    # Oops.  We lost completely, so just stick with echo.
663	    ECHO=echo
664	  fi
665        fi
666      fi
667    fi
668  fi
669fi
670
671# Copy echo and quote the copy suitably for passing to libtool from
672# the Makefile, instead of quoting the original, which is used later.
673lt_ECHO=$ECHO
674if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676fi
677
678
679
680
681test -n "$DJDIR" || exec 7<&0 </dev/null
682exec 6>&1
683
684# Name of the host.
685# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
686# so uname gets run too.
687ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
688
689#
690# Initializations.
691#
692ac_default_prefix=/usr/local
693ac_clean_files=
694ac_config_libobj_dir=.
695LIBOBJS=
696cross_compiling=no
697subdirs=
698MFLAGS=
699MAKEFLAGS=
700
701# Identity of this package.
702PACKAGE_NAME='Tux4Kids-Common'
703PACKAGE_TARNAME='t4k_common'
704PACKAGE_VERSION='0.1.1'
705PACKAGE_STRING='Tux4Kids-Common 0.1.1'
706PACKAGE_BUGREPORT='tuxmath-devel@lists.sourceforge.net'
707PACKAGE_URL=''
708
709ac_unique_file="src/t4k_audio.c"
710ac_unique_file="config.h.in"
711# Factoring default headers for most tests.
712ac_includes_default="\
713#include <stdio.h>
714#ifdef HAVE_SYS_TYPES_H
715# include <sys/types.h>
716#endif
717#ifdef HAVE_SYS_STAT_H
718# include <sys/stat.h>
719#endif
720#ifdef STDC_HEADERS
721# include <stdlib.h>
722# include <stddef.h>
723#else
724# ifdef HAVE_STDLIB_H
725#  include <stdlib.h>
726# endif
727#endif
728#ifdef HAVE_STRING_H
729# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
730#  include <memory.h>
731# endif
732# include <string.h>
733#endif
734#ifdef HAVE_STRINGS_H
735# include <strings.h>
736#endif
737#ifdef HAVE_INTTYPES_H
738# include <inttypes.h>
739#endif
740#ifdef HAVE_STDINT_H
741# include <stdint.h>
742#endif
743#ifdef HAVE_UNISTD_H
744# include <unistd.h>
745#endif"
746
747gt_needs=
748ac_header_list=
749ac_subst_vars='am__EXEEXT_FALSE
750am__EXEEXT_TRUE
751LTLIBOBJS
752DOXYGEN_PAPER_SIZE
753DX_COND_latex_FALSE
754DX_COND_latex_TRUE
755DX_COND_pdf_FALSE
756DX_COND_pdf_TRUE
757DX_PDFLATEX
758DX_FLAG_pdf
759DX_COND_ps_FALSE
760DX_COND_ps_TRUE
761DX_EGREP
762DX_DVIPS
763DX_MAKEINDEX
764DX_LATEX
765DX_FLAG_ps
766DX_COND_html_FALSE
767DX_COND_html_TRUE
768DX_FLAG_html
769DX_COND_chi_FALSE
770DX_COND_chi_TRUE
771DX_FLAG_chi
772DX_COND_chm_FALSE
773DX_COND_chm_TRUE
774DX_HHC
775DX_FLAG_chm
776DX_COND_xml_FALSE
777DX_COND_xml_TRUE
778DX_FLAG_xml
779DX_COND_rtf_FALSE
780DX_COND_rtf_TRUE
781DX_FLAG_rtf
782DX_COND_man_FALSE
783DX_COND_man_TRUE
784DX_FLAG_man
785DX_COND_dot_FALSE
786DX_COND_dot_TRUE
787DX_DOT
788DX_FLAG_dot
789DX_COND_doc_FALSE
790DX_COND_doc_TRUE
791DX_PERL
792DX_DOXYGEN
793DX_FLAG_doc
794DX_ENV
795DX_DOCDIR
796DX_CONFIG
797DX_PROJECT
798DOXYFILE_OUTPUT_DIR
799DOXYFILE_SOURCE_DIR
800T4K_DEVELOPER_WARNINGS
801WINDRES
802MINGW32_PACKAGE_DATA_DIR
803BUILD_MINGW32_FALSE
804BUILD_MINGW32_TRUE
805POW_LIB
806LIBOBJS
807ALLOCA
808DEP_LIBS_PRIVATE
809DEP_LIBS
810DEP_PKGS
811XML2_LIBS
812XML2_CFLAGS
813LIBPNG_LIBS
814LIBPNG_CFLAGS
815CAIRO_LIBS
816CAIRO_CFLAGS
817RSVG_LIBS
818RSVG_CFLAGS
819SDL_NET_LIBS
820SDL_NET_CFLAGS
821SDL_ttf_LIBS
822SDL_ttf_CFLAGS
823SDL_PANGO_LIBS
824SDL_PANGO_CFLAGS
825SDL_MIXER_LIBS
826SDL_MIXER_CFLAGS
827SDL_IMAGE_LIBS
828SDL_IMAGE_CFLAGS
829SDL_CONFIG
830SDL_LIBS
831SDL_CFLAGS
832PKG_CONFIG_LIBDIR
833PKG_CONFIG_PATH
834PKG_CONFIG
835CXXCPP
836OTOOL64
837OTOOL
838LIPO
839NMEDIT
840DSYMUTIL
841lt_ECHO
842RANLIB
843AR
844OBJDUMP
845LN_S
846NM
847ac_ct_DUMPBIN
848DUMPBIN
849LD
850FGREP
851SED
852LIBTOOL
853YFLAGS
854YACC
855am__fastdepCXX_FALSE
856am__fastdepCXX_TRUE
857CXXDEPMODE
858ac_ct_CXX
859CXXFLAGS
860CXX
861POSUB
862LTLIBINTL
863LIBINTL
864INTLLIBS
865LTLIBICONV
866LIBICONV
867INTL_MACOSX_LIBS
868XGETTEXT_EXTRA_OPTIONS
869MSGMERGE
870XGETTEXT_015
871XGETTEXT
872GMSGFMT_015
873MSGFMT_015
874GMSGFMT
875MSGFMT
876GETTEXT_MACRO_VERSION
877USE_NLS
878EGREP
879GREP
880CPP
881am__fastdepCC_FALSE
882am__fastdepCC_TRUE
883CCDEPMODE
884AMDEPBACKSLASH
885AMDEP_FALSE
886AMDEP_TRUE
887am__quote
888am__include
889DEPDIR
890OBJEXT
891EXEEXT
892ac_ct_CC
893CPPFLAGS
894LDFLAGS
895CFLAGS
896CC
897NAME_VERSION
898am__untar
899am__tar
900AMTAR
901am__leading_dot
902SET_MAKE
903AWK
904mkdir_p
905MKDIR_P
906INSTALL_STRIP_PROGRAM
907STRIP
908install_sh
909MAKEINFO
910AUTOHEADER
911AUTOMAKE
912AUTOCONF
913ACLOCAL
914VERSION
915PACKAGE
916CYGPATH_W
917am__isrc
918INSTALL_DATA
919INSTALL_SCRIPT
920INSTALL_PROGRAM
921target_os
922target_vendor
923target_cpu
924target
925host_os
926host_vendor
927host_cpu
928host
929build_os
930build_vendor
931build_cpu
932build
933target_alias
934host_alias
935build_alias
936LIBS
937ECHO_T
938ECHO_N
939ECHO_C
940DEFS
941mandir
942localedir
943libdir
944psdir
945pdfdir
946dvidir
947htmldir
948infodir
949docdir
950oldincludedir
951includedir
952localstatedir
953sharedstatedir
954sysconfdir
955datadir
956datarootdir
957libexecdir
958sbindir
959bindir
960program_transform_name
961prefix
962exec_prefix
963PACKAGE_URL
964PACKAGE_BUGREPORT
965PACKAGE_STRING
966PACKAGE_VERSION
967PACKAGE_TARNAME
968PACKAGE_NAME
969PATH_SEPARATOR
970SHELL'
971ac_subst_files=''
972ac_user_opts='
973enable_option_checking
974enable_dependency_tracking
975enable_nls
976with_gnu_ld
977enable_rpath
978with_libiconv_prefix
979with_libintl_prefix
980enable_shared
981enable_static
982with_pic
983enable_fast_install
984enable_libtool_lock
985with_sdl_prefix
986with_sdl_exec_prefix
987enable_sdltest
988with_sdlpango
989with_sdlnet
990with_rsvg
991enable_doxygen_doc
992enable_doxygen_dot
993enable_doxygen_man
994enable_doxygen_rtf
995enable_doxygen_xml
996enable_doxygen_chm
997enable_doxygen_chi
998enable_doxygen_html
999enable_doxygen_ps
1000enable_doxygen_pdf
1001'
1002      ac_precious_vars='build_alias
1003host_alias
1004target_alias
1005CC
1006CFLAGS
1007LDFLAGS
1008LIBS
1009CPPFLAGS
1010CPP
1011CXX
1012CXXFLAGS
1013CCC
1014YACC
1015YFLAGS
1016CXXCPP
1017PKG_CONFIG
1018PKG_CONFIG_PATH
1019PKG_CONFIG_LIBDIR
1020SDL_CFLAGS
1021SDL_LIBS
1022SDL_IMAGE_CFLAGS
1023SDL_IMAGE_LIBS
1024SDL_MIXER_CFLAGS
1025SDL_MIXER_LIBS
1026SDL_PANGO_CFLAGS
1027SDL_PANGO_LIBS
1028SDL_ttf_CFLAGS
1029SDL_ttf_LIBS
1030SDL_NET_CFLAGS
1031SDL_NET_LIBS
1032RSVG_CFLAGS
1033RSVG_LIBS
1034CAIRO_CFLAGS
1035CAIRO_LIBS
1036LIBPNG_CFLAGS
1037LIBPNG_LIBS
1038XML2_CFLAGS
1039XML2_LIBS
1040DOXYGEN_PAPER_SIZE'
1041
1042
1043# Initialize some variables set by options.
1044ac_init_help=
1045ac_init_version=false
1046ac_unrecognized_opts=
1047ac_unrecognized_sep=
1048# The variables have the same names as the options, with
1049# dashes changed to underlines.
1050cache_file=/dev/null
1051exec_prefix=NONE
1052no_create=
1053no_recursion=
1054prefix=NONE
1055program_prefix=NONE
1056program_suffix=NONE
1057program_transform_name=s,x,x,
1058silent=
1059site=
1060srcdir=
1061verbose=
1062x_includes=NONE
1063x_libraries=NONE
1064
1065# Installation directory options.
1066# These are left unexpanded so users can "make install exec_prefix=/foo"
1067# and all the variables that are supposed to be based on exec_prefix
1068# by default will actually change.
1069# Use braces instead of parens because sh, perl, etc. also accept them.
1070# (The list follows the same order as the GNU Coding Standards.)
1071bindir='${exec_prefix}/bin'
1072sbindir='${exec_prefix}/sbin'
1073libexecdir='${exec_prefix}/libexec'
1074datarootdir='${prefix}/share'
1075datadir='${datarootdir}'
1076sysconfdir='${prefix}/etc'
1077sharedstatedir='${prefix}/com'
1078localstatedir='${prefix}/var'
1079includedir='${prefix}/include'
1080oldincludedir='/usr/include'
1081docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1082infodir='${datarootdir}/info'
1083htmldir='${docdir}'
1084dvidir='${docdir}'
1085pdfdir='${docdir}'
1086psdir='${docdir}'
1087libdir='${exec_prefix}/lib'
1088localedir='${datarootdir}/locale'
1089mandir='${datarootdir}/man'
1090
1091ac_prev=
1092ac_dashdash=
1093for ac_option
1094do
1095  # If the previous option needs an argument, assign it.
1096  if test -n "$ac_prev"; then
1097    eval $ac_prev=\$ac_option
1098    ac_prev=
1099    continue
1100  fi
1101
1102  case $ac_option in
1103  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1104  *=)   ac_optarg= ;;
1105  *)    ac_optarg=yes ;;
1106  esac
1107
1108  # Accept the important Cygnus configure options, so we can diagnose typos.
1109
1110  case $ac_dashdash$ac_option in
1111  --)
1112    ac_dashdash=yes ;;
1113
1114  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1115    ac_prev=bindir ;;
1116  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1117    bindir=$ac_optarg ;;
1118
1119  -build | --build | --buil | --bui | --bu)
1120    ac_prev=build_alias ;;
1121  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1122    build_alias=$ac_optarg ;;
1123
1124  -cache-file | --cache-file | --cache-fil | --cache-fi \
1125  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1126    ac_prev=cache_file ;;
1127  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1128  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1129    cache_file=$ac_optarg ;;
1130
1131  --config-cache | -C)
1132    cache_file=config.cache ;;
1133
1134  -datadir | --datadir | --datadi | --datad)
1135    ac_prev=datadir ;;
1136  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1137    datadir=$ac_optarg ;;
1138
1139  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1140  | --dataroo | --dataro | --datar)
1141    ac_prev=datarootdir ;;
1142  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1143  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1144    datarootdir=$ac_optarg ;;
1145
1146  -disable-* | --disable-*)
1147    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1148    # Reject names that are not valid shell variable names.
1149    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1150      as_fn_error $? "invalid feature name: $ac_useropt"
1151    ac_useropt_orig=$ac_useropt
1152    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1153    case $ac_user_opts in
1154      *"
1155"enable_$ac_useropt"
1156"*) ;;
1157      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1158	 ac_unrecognized_sep=', ';;
1159    esac
1160    eval enable_$ac_useropt=no ;;
1161
1162  -docdir | --docdir | --docdi | --doc | --do)
1163    ac_prev=docdir ;;
1164  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1165    docdir=$ac_optarg ;;
1166
1167  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1168    ac_prev=dvidir ;;
1169  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1170    dvidir=$ac_optarg ;;
1171
1172  -enable-* | --enable-*)
1173    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1174    # Reject names that are not valid shell variable names.
1175    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176      as_fn_error $? "invalid feature name: $ac_useropt"
1177    ac_useropt_orig=$ac_useropt
1178    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179    case $ac_user_opts in
1180      *"
1181"enable_$ac_useropt"
1182"*) ;;
1183      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1184	 ac_unrecognized_sep=', ';;
1185    esac
1186    eval enable_$ac_useropt=\$ac_optarg ;;
1187
1188  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1189  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1190  | --exec | --exe | --ex)
1191    ac_prev=exec_prefix ;;
1192  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1193  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1194  | --exec=* | --exe=* | --ex=*)
1195    exec_prefix=$ac_optarg ;;
1196
1197  -gas | --gas | --ga | --g)
1198    # Obsolete; use --with-gas.
1199    with_gas=yes ;;
1200
1201  -help | --help | --hel | --he | -h)
1202    ac_init_help=long ;;
1203  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1204    ac_init_help=recursive ;;
1205  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1206    ac_init_help=short ;;
1207
1208  -host | --host | --hos | --ho)
1209    ac_prev=host_alias ;;
1210  -host=* | --host=* | --hos=* | --ho=*)
1211    host_alias=$ac_optarg ;;
1212
1213  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1214    ac_prev=htmldir ;;
1215  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1216  | --ht=*)
1217    htmldir=$ac_optarg ;;
1218
1219  -includedir | --includedir | --includedi | --included | --include \
1220  | --includ | --inclu | --incl | --inc)
1221    ac_prev=includedir ;;
1222  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1223  | --includ=* | --inclu=* | --incl=* | --inc=*)
1224    includedir=$ac_optarg ;;
1225
1226  -infodir | --infodir | --infodi | --infod | --info | --inf)
1227    ac_prev=infodir ;;
1228  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1229    infodir=$ac_optarg ;;
1230
1231  -libdir | --libdir | --libdi | --libd)
1232    ac_prev=libdir ;;
1233  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1234    libdir=$ac_optarg ;;
1235
1236  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1237  | --libexe | --libex | --libe)
1238    ac_prev=libexecdir ;;
1239  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1240  | --libexe=* | --libex=* | --libe=*)
1241    libexecdir=$ac_optarg ;;
1242
1243  -localedir | --localedir | --localedi | --localed | --locale)
1244    ac_prev=localedir ;;
1245  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1246    localedir=$ac_optarg ;;
1247
1248  -localstatedir | --localstatedir | --localstatedi | --localstated \
1249  | --localstate | --localstat | --localsta | --localst | --locals)
1250    ac_prev=localstatedir ;;
1251  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1252  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1253    localstatedir=$ac_optarg ;;
1254
1255  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1256    ac_prev=mandir ;;
1257  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1258    mandir=$ac_optarg ;;
1259
1260  -nfp | --nfp | --nf)
1261    # Obsolete; use --without-fp.
1262    with_fp=no ;;
1263
1264  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1265  | --no-cr | --no-c | -n)
1266    no_create=yes ;;
1267
1268  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1269  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1270    no_recursion=yes ;;
1271
1272  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1273  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1274  | --oldin | --oldi | --old | --ol | --o)
1275    ac_prev=oldincludedir ;;
1276  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1277  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1278  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1279    oldincludedir=$ac_optarg ;;
1280
1281  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1282    ac_prev=prefix ;;
1283  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1284    prefix=$ac_optarg ;;
1285
1286  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1287  | --program-pre | --program-pr | --program-p)
1288    ac_prev=program_prefix ;;
1289  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1290  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1291    program_prefix=$ac_optarg ;;
1292
1293  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1294  | --program-suf | --program-su | --program-s)
1295    ac_prev=program_suffix ;;
1296  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1297  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1298    program_suffix=$ac_optarg ;;
1299
1300  -program-transform-name | --program-transform-name \
1301  | --program-transform-nam | --program-transform-na \
1302  | --program-transform-n | --program-transform- \
1303  | --program-transform | --program-transfor \
1304  | --program-transfo | --program-transf \
1305  | --program-trans | --program-tran \
1306  | --progr-tra | --program-tr | --program-t)
1307    ac_prev=program_transform_name ;;
1308  -program-transform-name=* | --program-transform-name=* \
1309  | --program-transform-nam=* | --program-transform-na=* \
1310  | --program-transform-n=* | --program-transform-=* \
1311  | --program-transform=* | --program-transfor=* \
1312  | --program-transfo=* | --program-transf=* \
1313  | --program-trans=* | --program-tran=* \
1314  | --progr-tra=* | --program-tr=* | --program-t=*)
1315    program_transform_name=$ac_optarg ;;
1316
1317  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1318    ac_prev=pdfdir ;;
1319  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1320    pdfdir=$ac_optarg ;;
1321
1322  -psdir | --psdir | --psdi | --psd | --ps)
1323    ac_prev=psdir ;;
1324  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1325    psdir=$ac_optarg ;;
1326
1327  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1328  | -silent | --silent | --silen | --sile | --sil)
1329    silent=yes ;;
1330
1331  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1332    ac_prev=sbindir ;;
1333  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1334  | --sbi=* | --sb=*)
1335    sbindir=$ac_optarg ;;
1336
1337  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1338  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1339  | --sharedst | --shareds | --shared | --share | --shar \
1340  | --sha | --sh)
1341    ac_prev=sharedstatedir ;;
1342  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1343  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1344  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1345  | --sha=* | --sh=*)
1346    sharedstatedir=$ac_optarg ;;
1347
1348  -site | --site | --sit)
1349    ac_prev=site ;;
1350  -site=* | --site=* | --sit=*)
1351    site=$ac_optarg ;;
1352
1353  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1354    ac_prev=srcdir ;;
1355  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1356    srcdir=$ac_optarg ;;
1357
1358  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1359  | --syscon | --sysco | --sysc | --sys | --sy)
1360    ac_prev=sysconfdir ;;
1361  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1362  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1363    sysconfdir=$ac_optarg ;;
1364
1365  -target | --target | --targe | --targ | --tar | --ta | --t)
1366    ac_prev=target_alias ;;
1367  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1368    target_alias=$ac_optarg ;;
1369
1370  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1371    verbose=yes ;;
1372
1373  -version | --version | --versio | --versi | --vers | -V)
1374    ac_init_version=: ;;
1375
1376  -with-* | --with-*)
1377    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1378    # Reject names that are not valid shell variable names.
1379    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1380      as_fn_error $? "invalid package name: $ac_useropt"
1381    ac_useropt_orig=$ac_useropt
1382    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1383    case $ac_user_opts in
1384      *"
1385"with_$ac_useropt"
1386"*) ;;
1387      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1388	 ac_unrecognized_sep=', ';;
1389    esac
1390    eval with_$ac_useropt=\$ac_optarg ;;
1391
1392  -without-* | --without-*)
1393    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1394    # Reject names that are not valid shell variable names.
1395    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1396      as_fn_error $? "invalid package name: $ac_useropt"
1397    ac_useropt_orig=$ac_useropt
1398    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1399    case $ac_user_opts in
1400      *"
1401"with_$ac_useropt"
1402"*) ;;
1403      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1404	 ac_unrecognized_sep=', ';;
1405    esac
1406    eval with_$ac_useropt=no ;;
1407
1408  --x)
1409    # Obsolete; use --with-x.
1410    with_x=yes ;;
1411
1412  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1413  | --x-incl | --x-inc | --x-in | --x-i)
1414    ac_prev=x_includes ;;
1415  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1416  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1417    x_includes=$ac_optarg ;;
1418
1419  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1420  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1421    ac_prev=x_libraries ;;
1422  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1423  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1424    x_libraries=$ac_optarg ;;
1425
1426  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1427Try \`$0 --help' for more information"
1428    ;;
1429
1430  *=*)
1431    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1432    # Reject names that are not valid shell variable names.
1433    case $ac_envvar in #(
1434      '' | [0-9]* | *[!_$as_cr_alnum]* )
1435      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1436    esac
1437    eval $ac_envvar=\$ac_optarg
1438    export $ac_envvar ;;
1439
1440  *)
1441    # FIXME: should be removed in autoconf 3.0.
1442    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1443    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1444      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1445    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1446    ;;
1447
1448  esac
1449done
1450
1451if test -n "$ac_prev"; then
1452  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1453  as_fn_error $? "missing argument to $ac_option"
1454fi
1455
1456if test -n "$ac_unrecognized_opts"; then
1457  case $enable_option_checking in
1458    no) ;;
1459    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1460    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1461  esac
1462fi
1463
1464# Check all directory arguments for consistency.
1465for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1466		datadir sysconfdir sharedstatedir localstatedir includedir \
1467		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1468		libdir localedir mandir
1469do
1470  eval ac_val=\$$ac_var
1471  # Remove trailing slashes.
1472  case $ac_val in
1473    */ )
1474      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1475      eval $ac_var=\$ac_val;;
1476  esac
1477  # Be sure to have absolute directory names.
1478  case $ac_val in
1479    [\\/$]* | ?:[\\/]* )  continue;;
1480    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1481  esac
1482  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1483done
1484
1485# There might be people who depend on the old broken behavior: `$host'
1486# used to hold the argument of --host etc.
1487# FIXME: To remove some day.
1488build=$build_alias
1489host=$host_alias
1490target=$target_alias
1491
1492# FIXME: To remove some day.
1493if test "x$host_alias" != x; then
1494  if test "x$build_alias" = x; then
1495    cross_compiling=maybe
1496    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1497    If a cross compiler is detected then cross compile mode will be used" >&2
1498  elif test "x$build_alias" != "x$host_alias"; then
1499    cross_compiling=yes
1500  fi
1501fi
1502
1503ac_tool_prefix=
1504test -n "$host_alias" && ac_tool_prefix=$host_alias-
1505
1506test "$silent" = yes && exec 6>/dev/null
1507
1508
1509ac_pwd=`pwd` && test -n "$ac_pwd" &&
1510ac_ls_di=`ls -di .` &&
1511ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1512  as_fn_error $? "working directory cannot be determined"
1513test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1514  as_fn_error $? "pwd does not report name of working directory"
1515
1516
1517# Find the source files, if location was not specified.
1518if test -z "$srcdir"; then
1519  ac_srcdir_defaulted=yes
1520  # Try the directory containing this script, then the parent directory.
1521  ac_confdir=`$as_dirname -- "$as_myself" ||
1522$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1523	 X"$as_myself" : 'X\(//\)[^/]' \| \
1524	 X"$as_myself" : 'X\(//\)$' \| \
1525	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1526$as_echo X"$as_myself" |
1527    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1528	    s//\1/
1529	    q
1530	  }
1531	  /^X\(\/\/\)[^/].*/{
1532	    s//\1/
1533	    q
1534	  }
1535	  /^X\(\/\/\)$/{
1536	    s//\1/
1537	    q
1538	  }
1539	  /^X\(\/\).*/{
1540	    s//\1/
1541	    q
1542	  }
1543	  s/.*/./; q'`
1544  srcdir=$ac_confdir
1545  if test ! -r "$srcdir/$ac_unique_file"; then
1546    srcdir=..
1547  fi
1548else
1549  ac_srcdir_defaulted=no
1550fi
1551if test ! -r "$srcdir/$ac_unique_file"; then
1552  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1553  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1554fi
1555ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1556ac_abs_confdir=`(
1557	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1558	pwd)`
1559# When building in place, set srcdir=.
1560if test "$ac_abs_confdir" = "$ac_pwd"; then
1561  srcdir=.
1562fi
1563# Remove unnecessary trailing slashes from srcdir.
1564# Double slashes in file names in object file debugging info
1565# mess up M-x gdb in Emacs.
1566case $srcdir in
1567*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1568esac
1569for ac_var in $ac_precious_vars; do
1570  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1571  eval ac_env_${ac_var}_value=\$${ac_var}
1572  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1573  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1574done
1575
1576#
1577# Report the --help message.
1578#
1579if test "$ac_init_help" = "long"; then
1580  # Omit some internal or obsolete options to make the list less imposing.
1581  # This message is too long to be a string in the A/UX 3.1 sh.
1582  cat <<_ACEOF
1583\`configure' configures Tux4Kids-Common 0.1.1 to adapt to many kinds of systems.
1584
1585Usage: $0 [OPTION]... [VAR=VALUE]...
1586
1587To assign environment variables (e.g., CC, CFLAGS...), specify them as
1588VAR=VALUE.  See below for descriptions of some of the useful variables.
1589
1590Defaults for the options are specified in brackets.
1591
1592Configuration:
1593  -h, --help              display this help and exit
1594      --help=short        display options specific to this package
1595      --help=recursive    display the short help of all the included packages
1596  -V, --version           display version information and exit
1597  -q, --quiet, --silent   do not print \`checking ...' messages
1598      --cache-file=FILE   cache test results in FILE [disabled]
1599  -C, --config-cache      alias for \`--cache-file=config.cache'
1600  -n, --no-create         do not create output files
1601      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1602
1603Installation directories:
1604  --prefix=PREFIX         install architecture-independent files in PREFIX
1605                          [$ac_default_prefix]
1606  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1607                          [PREFIX]
1608
1609By default, \`make install' will install all the files in
1610\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1611an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1612for instance \`--prefix=\$HOME'.
1613
1614For better control, use the options below.
1615
1616Fine tuning of the installation directories:
1617  --bindir=DIR            user executables [EPREFIX/bin]
1618  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1619  --libexecdir=DIR        program executables [EPREFIX/libexec]
1620  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1621  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1622  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1623  --libdir=DIR            object code libraries [EPREFIX/lib]
1624  --includedir=DIR        C header files [PREFIX/include]
1625  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1626  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1627  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1628  --infodir=DIR           info documentation [DATAROOTDIR/info]
1629  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1630  --mandir=DIR            man documentation [DATAROOTDIR/man]
1631  --docdir=DIR            documentation root [DATAROOTDIR/doc/t4k_common]
1632  --htmldir=DIR           html documentation [DOCDIR]
1633  --dvidir=DIR            dvi documentation [DOCDIR]
1634  --pdfdir=DIR            pdf documentation [DOCDIR]
1635  --psdir=DIR             ps documentation [DOCDIR]
1636_ACEOF
1637
1638  cat <<\_ACEOF
1639
1640Program names:
1641  --program-prefix=PREFIX            prepend PREFIX to installed program names
1642  --program-suffix=SUFFIX            append SUFFIX to installed program names
1643  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1644
1645System types:
1646  --build=BUILD     configure for building on BUILD [guessed]
1647  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1648  --target=TARGET   configure for building compilers for TARGET [HOST]
1649_ACEOF
1650fi
1651
1652if test -n "$ac_init_help"; then
1653  case $ac_init_help in
1654     short | recursive ) echo "Configuration of Tux4Kids-Common 0.1.1:";;
1655   esac
1656  cat <<\_ACEOF
1657
1658Optional Features:
1659  --disable-option-checking  ignore unrecognized --enable/--with options
1660  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1661  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1662  --disable-dependency-tracking  speeds up one-time build
1663  --enable-dependency-tracking   do not reject slow dependency extractors
1664  --disable-nls           do not use Native Language Support
1665  --disable-rpath         do not hardcode runtime library paths
1666  --enable-shared[=PKGS]  build shared libraries [default=yes]
1667  --enable-static[=PKGS]  build static libraries [default=yes]
1668  --enable-fast-install[=PKGS]
1669                          optimize for fast installation [default=yes]
1670  --disable-libtool-lock  avoid locking (might break parallel builds)
1671  --disable-sdltest       Do not try to compile and run a test SDL program
1672  --disable-doxygen-doc   don't generate any doxygen documentation
1673  --disable-doxygen-dot   don't generate graphics for doxygen documentation
1674  --enable-doxygen-man    generate doxygen manual pages
1675  --enable-doxygen-rtf    generate doxygen RTF documentation
1676  --enable-doxygen-xml    generate doxygen XML documentation
1677  --enable-doxygen-chm    generate doxygen compressed HTML help documentation
1678  --enable-doxygen-chi    generate doxygen seperate compressed HTML help index
1679                          file
1680  --disable-doxygen-html  don't generate doxygen plain HTML documentation
1681  --enable-doxygen-ps     generate doxygen PostScript documentation
1682  --disable-doxygen-pdf   don't generate doxygen PDF documentation
1683
1684Optional Packages:
1685  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1686  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1687  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1688  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1689  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1690  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1691  --without-libintl-prefix     don't search for libintl in includedir and libdir
1692  --with-pic              try to use only PIC/non-PIC objects [default=use
1693                          both]
1694  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1695  --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1696  --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1697  --without-sdlpango      Do not use SDL_Pango even if available
1698  --without-sdlnet        Do not use SDL_net even if available
1699  --without-rsvg          do not use libRSVG even if available
1700
1701Some influential environment variables:
1702  CC          C compiler command
1703  CFLAGS      C compiler flags
1704  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1705              nonstandard directory <lib dir>
1706  LIBS        libraries to pass to the linker, e.g. -l<library>
1707  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1708              you have headers in a nonstandard directory <include dir>
1709  CPP         C preprocessor
1710  CXX         C++ compiler command
1711  CXXFLAGS    C++ compiler flags
1712  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1713              the first program found out of: `bison -y', `byacc', `yacc'.
1714  YFLAGS      The list of arguments that will be passed by default to $YACC.
1715              This script will default YFLAGS to the empty string to avoid a
1716              default value of `-d' given by some make applications.
1717  CXXCPP      C++ preprocessor
1718  PKG_CONFIG  path to pkg-config utility
1719  PKG_CONFIG_PATH
1720              directories to add to pkg-config's search path
1721  PKG_CONFIG_LIBDIR
1722              path overriding pkg-config's built-in search path
1723  SDL_CFLAGS  C compiler flags for SDL, overriding pkg-config
1724  SDL_LIBS    linker flags for SDL, overriding pkg-config
1725  SDL_IMAGE_CFLAGS
1726              C compiler flags for SDL_IMAGE, overriding pkg-config
1727  SDL_IMAGE_LIBS
1728              linker flags for SDL_IMAGE, overriding pkg-config
1729  SDL_MIXER_CFLAGS
1730              C compiler flags for SDL_MIXER, overriding pkg-config
1731  SDL_MIXER_LIBS
1732              linker flags for SDL_MIXER, overriding pkg-config
1733  SDL_PANGO_CFLAGS
1734              C compiler flags for SDL_PANGO, overriding pkg-config
1735  SDL_PANGO_LIBS
1736              linker flags for SDL_PANGO, overriding pkg-config
1737  SDL_ttf_CFLAGS
1738              C compiler flags for SDL_ttf, overriding pkg-config
1739  SDL_ttf_LIBS
1740              linker flags for SDL_ttf, overriding pkg-config
1741  SDL_NET_CFLAGS
1742              C compiler flags for SDL_NET, overriding pkg-config
1743  SDL_NET_LIBS
1744              linker flags for SDL_NET, overriding pkg-config
1745  RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1746  RSVG_LIBS   linker flags for RSVG, overriding pkg-config
1747  CAIRO_CFLAGS
1748              C compiler flags for CAIRO, overriding pkg-config
1749  CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1750  LIBPNG_CFLAGS
1751              C compiler flags for LIBPNG, overriding pkg-config
1752  LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1753  XML2_CFLAGS C compiler flags for XML2, overriding pkg-config
1754  XML2_LIBS   linker flags for XML2, overriding pkg-config
1755  DOXYGEN_PAPER_SIZE
1756              a4wide (default), a4, letter, legal or executive
1757
1758Use these variables to override the choices made by `configure' or to help
1759it to find libraries and programs with nonstandard names/locations.
1760
1761Report bugs to <tuxmath-devel@lists.sourceforge.net>.
1762_ACEOF
1763ac_status=$?
1764fi
1765
1766if test "$ac_init_help" = "recursive"; then
1767  # If there are subdirs, report their specific --help.
1768  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1769    test -d "$ac_dir" ||
1770      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1771      continue
1772    ac_builddir=.
1773
1774case "$ac_dir" in
1775.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1776*)
1777  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1778  # A ".." for each directory in $ac_dir_suffix.
1779  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1780  case $ac_top_builddir_sub in
1781  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1782  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1783  esac ;;
1784esac
1785ac_abs_top_builddir=$ac_pwd
1786ac_abs_builddir=$ac_pwd$ac_dir_suffix
1787# for backward compatibility:
1788ac_top_builddir=$ac_top_build_prefix
1789
1790case $srcdir in
1791  .)  # We are building in place.
1792    ac_srcdir=.
1793    ac_top_srcdir=$ac_top_builddir_sub
1794    ac_abs_top_srcdir=$ac_pwd ;;
1795  [\\/]* | ?:[\\/]* )  # Absolute name.
1796    ac_srcdir=$srcdir$ac_dir_suffix;
1797    ac_top_srcdir=$srcdir
1798    ac_abs_top_srcdir=$srcdir ;;
1799  *) # Relative name.
1800    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1801    ac_top_srcdir=$ac_top_build_prefix$srcdir
1802    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1803esac
1804ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1805
1806    cd "$ac_dir" || { ac_status=$?; continue; }
1807    # Check for guested configure.
1808    if test -f "$ac_srcdir/configure.gnu"; then
1809      echo &&
1810      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1811    elif test -f "$ac_srcdir/configure"; then
1812      echo &&
1813      $SHELL "$ac_srcdir/configure" --help=recursive
1814    else
1815      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1816    fi || ac_status=$?
1817    cd "$ac_pwd" || { ac_status=$?; break; }
1818  done
1819fi
1820
1821test -n "$ac_init_help" && exit $ac_status
1822if $ac_init_version; then
1823  cat <<\_ACEOF
1824Tux4Kids-Common configure 0.1.1
1825generated by GNU Autoconf 2.67
1826
1827Copyright (C) 2010 Free Software Foundation, Inc.
1828This configure script is free software; the Free Software Foundation
1829gives unlimited permission to copy, distribute and modify it.
1830_ACEOF
1831  exit
1832fi
1833
1834## ------------------------ ##
1835## Autoconf initialization. ##
1836## ------------------------ ##
1837
1838# ac_fn_c_try_compile LINENO
1839# --------------------------
1840# Try to compile conftest.$ac_ext, and return whether this succeeded.
1841ac_fn_c_try_compile ()
1842{
1843  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844  rm -f conftest.$ac_objext
1845  if { { ac_try="$ac_compile"
1846case "(($ac_try" in
1847  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1848  *) ac_try_echo=$ac_try;;
1849esac
1850eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851$as_echo "$ac_try_echo"; } >&5
1852  (eval "$ac_compile") 2>conftest.err
1853  ac_status=$?
1854  if test -s conftest.err; then
1855    grep -v '^ *+' conftest.err >conftest.er1
1856    cat conftest.er1 >&5
1857    mv -f conftest.er1 conftest.err
1858  fi
1859  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860  test $ac_status = 0; } && {
1861	 test -z "$ac_c_werror_flag" ||
1862	 test ! -s conftest.err
1863       } && test -s conftest.$ac_objext; then :
1864  ac_retval=0
1865else
1866  $as_echo "$as_me: failed program was:" >&5
1867sed 's/^/| /' conftest.$ac_ext >&5
1868
1869	ac_retval=1
1870fi
1871  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1872  as_fn_set_status $ac_retval
1873
1874} # ac_fn_c_try_compile
1875
1876# ac_fn_c_try_cpp LINENO
1877# ----------------------
1878# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1879ac_fn_c_try_cpp ()
1880{
1881  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882  if { { ac_try="$ac_cpp conftest.$ac_ext"
1883case "(($ac_try" in
1884  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885  *) ac_try_echo=$ac_try;;
1886esac
1887eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888$as_echo "$ac_try_echo"; } >&5
1889  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1890  ac_status=$?
1891  if test -s conftest.err; then
1892    grep -v '^ *+' conftest.err >conftest.er1
1893    cat conftest.er1 >&5
1894    mv -f conftest.er1 conftest.err
1895  fi
1896  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897  test $ac_status = 0; } > conftest.i && {
1898	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1899	 test ! -s conftest.err
1900       }; then :
1901  ac_retval=0
1902else
1903  $as_echo "$as_me: failed program was:" >&5
1904sed 's/^/| /' conftest.$ac_ext >&5
1905
1906    ac_retval=1
1907fi
1908  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1909  as_fn_set_status $ac_retval
1910
1911} # ac_fn_c_try_cpp
1912
1913# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1914# -------------------------------------------------------
1915# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1916# the include files in INCLUDES and setting the cache variable VAR
1917# accordingly.
1918ac_fn_c_check_header_mongrel ()
1919{
1920  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1921  if eval "test \"\${$3+set}\"" = set; then :
1922  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1923$as_echo_n "checking for $2... " >&6; }
1924if eval "test \"\${$3+set}\"" = set; then :
1925  $as_echo_n "(cached) " >&6
1926fi
1927eval ac_res=\$$3
1928	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1929$as_echo "$ac_res" >&6; }
1930else
1931  # Is the header compilable?
1932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1933$as_echo_n "checking $2 usability... " >&6; }
1934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935/* end confdefs.h.  */
1936$4
1937#include <$2>
1938_ACEOF
1939if ac_fn_c_try_compile "$LINENO"; then :
1940  ac_header_compiler=yes
1941else
1942  ac_header_compiler=no
1943fi
1944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1946$as_echo "$ac_header_compiler" >&6; }
1947
1948# Is the header present?
1949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1950$as_echo_n "checking $2 presence... " >&6; }
1951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952/* end confdefs.h.  */
1953#include <$2>
1954_ACEOF
1955if ac_fn_c_try_cpp "$LINENO"; then :
1956  ac_header_preproc=yes
1957else
1958  ac_header_preproc=no
1959fi
1960rm -f conftest.err conftest.i conftest.$ac_ext
1961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1962$as_echo "$ac_header_preproc" >&6; }
1963
1964# So?  What about this header?
1965case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1966  yes:no: )
1967    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1968$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1969    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1970$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1971    ;;
1972  no:yes:* )
1973    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1974$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1975    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1976$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1977    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1978$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1979    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1980$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1981    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1982$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1983( $as_echo "## -------------------------------------------------- ##
1984## Report this to tuxmath-devel@lists.sourceforge.net ##
1985## -------------------------------------------------- ##"
1986     ) | sed "s/^/$as_me: WARNING:     /" >&2
1987    ;;
1988esac
1989  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1990$as_echo_n "checking for $2... " >&6; }
1991if eval "test \"\${$3+set}\"" = set; then :
1992  $as_echo_n "(cached) " >&6
1993else
1994  eval "$3=\$ac_header_compiler"
1995fi
1996eval ac_res=\$$3
1997	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998$as_echo "$ac_res" >&6; }
1999fi
2000  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2001
2002} # ac_fn_c_check_header_mongrel
2003
2004# ac_fn_c_try_run LINENO
2005# ----------------------
2006# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2007# that executables *can* be run.
2008ac_fn_c_try_run ()
2009{
2010  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011  if { { ac_try="$ac_link"
2012case "(($ac_try" in
2013  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2014  *) ac_try_echo=$ac_try;;
2015esac
2016eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2017$as_echo "$ac_try_echo"; } >&5
2018  (eval "$ac_link") 2>&5
2019  ac_status=$?
2020  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2021  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2022  { { case "(($ac_try" in
2023  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2024  *) ac_try_echo=$ac_try;;
2025esac
2026eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2027$as_echo "$ac_try_echo"; } >&5
2028  (eval "$ac_try") 2>&5
2029  ac_status=$?
2030  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2031  test $ac_status = 0; }; }; then :
2032  ac_retval=0
2033else
2034  $as_echo "$as_me: program exited with status $ac_status" >&5
2035       $as_echo "$as_me: failed program was:" >&5
2036sed 's/^/| /' conftest.$ac_ext >&5
2037
2038       ac_retval=$ac_status
2039fi
2040  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2041  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2042  as_fn_set_status $ac_retval
2043
2044} # ac_fn_c_try_run
2045
2046# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2047# -------------------------------------------------------
2048# Tests whether HEADER exists and can be compiled using the include files in
2049# INCLUDES, setting the cache variable VAR accordingly.
2050ac_fn_c_check_header_compile ()
2051{
2052  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2054$as_echo_n "checking for $2... " >&6; }
2055if eval "test \"\${$3+set}\"" = set; then :
2056  $as_echo_n "(cached) " >&6
2057else
2058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059/* end confdefs.h.  */
2060$4
2061#include <$2>
2062_ACEOF
2063if ac_fn_c_try_compile "$LINENO"; then :
2064  eval "$3=yes"
2065else
2066  eval "$3=no"
2067fi
2068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069fi
2070eval ac_res=\$$3
2071	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2072$as_echo "$ac_res" >&6; }
2073  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2074
2075} # ac_fn_c_check_header_compile
2076
2077# ac_fn_c_try_link LINENO
2078# -----------------------
2079# Try to link conftest.$ac_ext, and return whether this succeeded.
2080ac_fn_c_try_link ()
2081{
2082  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083  rm -f conftest.$ac_objext conftest$ac_exeext
2084  if { { ac_try="$ac_link"
2085case "(($ac_try" in
2086  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2087  *) ac_try_echo=$ac_try;;
2088esac
2089eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2090$as_echo "$ac_try_echo"; } >&5
2091  (eval "$ac_link") 2>conftest.err
2092  ac_status=$?
2093  if test -s conftest.err; then
2094    grep -v '^ *+' conftest.err >conftest.er1
2095    cat conftest.er1 >&5
2096    mv -f conftest.er1 conftest.err
2097  fi
2098  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2099  test $ac_status = 0; } && {
2100	 test -z "$ac_c_werror_flag" ||
2101	 test ! -s conftest.err
2102       } && test -s conftest$ac_exeext && {
2103	 test "$cross_compiling" = yes ||
2104	 $as_test_x conftest$ac_exeext
2105       }; then :
2106  ac_retval=0
2107else
2108  $as_echo "$as_me: failed program was:" >&5
2109sed 's/^/| /' conftest.$ac_ext >&5
2110
2111	ac_retval=1
2112fi
2113  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2114  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2115  # interfere with the next link command; also delete a directory that is
2116  # left behind by Apple's compiler.  We do this before executing the actions.
2117  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2118  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2119  as_fn_set_status $ac_retval
2120
2121} # ac_fn_c_try_link
2122
2123# ac_fn_cxx_try_compile LINENO
2124# ----------------------------
2125# Try to compile conftest.$ac_ext, and return whether this succeeded.
2126ac_fn_cxx_try_compile ()
2127{
2128  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2129  rm -f conftest.$ac_objext
2130  if { { ac_try="$ac_compile"
2131case "(($ac_try" in
2132  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2133  *) ac_try_echo=$ac_try;;
2134esac
2135eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2136$as_echo "$ac_try_echo"; } >&5
2137  (eval "$ac_compile") 2>conftest.err
2138  ac_status=$?
2139  if test -s conftest.err; then
2140    grep -v '^ *+' conftest.err >conftest.er1
2141    cat conftest.er1 >&5
2142    mv -f conftest.er1 conftest.err
2143  fi
2144  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2145  test $ac_status = 0; } && {
2146	 test -z "$ac_cxx_werror_flag" ||
2147	 test ! -s conftest.err
2148       } && test -s conftest.$ac_objext; then :
2149  ac_retval=0
2150else
2151  $as_echo "$as_me: failed program was:" >&5
2152sed 's/^/| /' conftest.$ac_ext >&5
2153
2154	ac_retval=1
2155fi
2156  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2157  as_fn_set_status $ac_retval
2158
2159} # ac_fn_cxx_try_compile
2160
2161# ac_fn_c_check_func LINENO FUNC VAR
2162# ----------------------------------
2163# Tests whether FUNC exists, setting the cache variable VAR accordingly
2164ac_fn_c_check_func ()
2165{
2166  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2167  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2168$as_echo_n "checking for $2... " >&6; }
2169if eval "test \"\${$3+set}\"" = set; then :
2170  $as_echo_n "(cached) " >&6
2171else
2172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173/* end confdefs.h.  */
2174/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2175   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2176#define $2 innocuous_$2
2177
2178/* System header to define __stub macros and hopefully few prototypes,
2179    which can conflict with char $2 (); below.
2180    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2181    <limits.h> exists even on freestanding compilers.  */
2182
2183#ifdef __STDC__
2184# include <limits.h>
2185#else
2186# include <assert.h>
2187#endif
2188
2189#undef $2
2190
2191/* Override any GCC internal prototype to avoid an error.
2192   Use char because int might match the return type of a GCC
2193   builtin and then its argument prototype would still apply.  */
2194#ifdef __cplusplus
2195extern "C"
2196#endif
2197char $2 ();
2198/* The GNU C library defines this for functions which it implements
2199    to always fail with ENOSYS.  Some functions are actually named
2200    something starting with __ and the normal name is an alias.  */
2201#if defined __stub_$2 || defined __stub___$2
2202choke me
2203#endif
2204
2205int
2206main ()
2207{
2208return $2 ();
2209  ;
2210  return 0;
2211}
2212_ACEOF
2213if ac_fn_c_try_link "$LINENO"; then :
2214  eval "$3=yes"
2215else
2216  eval "$3=no"
2217fi
2218rm -f core conftest.err conftest.$ac_objext \
2219    conftest$ac_exeext conftest.$ac_ext
2220fi
2221eval ac_res=\$$3
2222	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2223$as_echo "$ac_res" >&6; }
2224  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2225
2226} # ac_fn_c_check_func
2227
2228# ac_fn_cxx_try_cpp LINENO
2229# ------------------------
2230# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2231ac_fn_cxx_try_cpp ()
2232{
2233  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2234  if { { ac_try="$ac_cpp conftest.$ac_ext"
2235case "(($ac_try" in
2236  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2237  *) ac_try_echo=$ac_try;;
2238esac
2239eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2240$as_echo "$ac_try_echo"; } >&5
2241  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2242  ac_status=$?
2243  if test -s conftest.err; then
2244    grep -v '^ *+' conftest.err >conftest.er1
2245    cat conftest.er1 >&5
2246    mv -f conftest.er1 conftest.err
2247  fi
2248  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2249  test $ac_status = 0; } > conftest.i && {
2250	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2251	 test ! -s conftest.err
2252       }; then :
2253  ac_retval=0
2254else
2255  $as_echo "$as_me: failed program was:" >&5
2256sed 's/^/| /' conftest.$ac_ext >&5
2257
2258    ac_retval=1
2259fi
2260  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2261  as_fn_set_status $ac_retval
2262
2263} # ac_fn_cxx_try_cpp
2264
2265# ac_fn_cxx_try_link LINENO
2266# -------------------------
2267# Try to link conftest.$ac_ext, and return whether this succeeded.
2268ac_fn_cxx_try_link ()
2269{
2270  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2271  rm -f conftest.$ac_objext conftest$ac_exeext
2272  if { { ac_try="$ac_link"
2273case "(($ac_try" in
2274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2275  *) ac_try_echo=$ac_try;;
2276esac
2277eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2278$as_echo "$ac_try_echo"; } >&5
2279  (eval "$ac_link") 2>conftest.err
2280  ac_status=$?
2281  if test -s conftest.err; then
2282    grep -v '^ *+' conftest.err >conftest.er1
2283    cat conftest.er1 >&5
2284    mv -f conftest.er1 conftest.err
2285  fi
2286  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2287  test $ac_status = 0; } && {
2288	 test -z "$ac_cxx_werror_flag" ||
2289	 test ! -s conftest.err
2290       } && test -s conftest$ac_exeext && {
2291	 test "$cross_compiling" = yes ||
2292	 $as_test_x conftest$ac_exeext
2293       }; then :
2294  ac_retval=0
2295else
2296  $as_echo "$as_me: failed program was:" >&5
2297sed 's/^/| /' conftest.$ac_ext >&5
2298
2299	ac_retval=1
2300fi
2301  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2302  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2303  # interfere with the next link command; also delete a directory that is
2304  # left behind by Apple's compiler.  We do this before executing the actions.
2305  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2306  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2307  as_fn_set_status $ac_retval
2308
2309} # ac_fn_cxx_try_link
2310
2311# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2312# -------------------------------------------
2313# Tests whether TYPE exists after having included INCLUDES, setting cache
2314# variable VAR accordingly.
2315ac_fn_c_check_type ()
2316{
2317  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2318  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2319$as_echo_n "checking for $2... " >&6; }
2320if eval "test \"\${$3+set}\"" = set; then :
2321  $as_echo_n "(cached) " >&6
2322else
2323  eval "$3=no"
2324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2325/* end confdefs.h.  */
2326$4
2327int
2328main ()
2329{
2330if (sizeof ($2))
2331	 return 0;
2332  ;
2333  return 0;
2334}
2335_ACEOF
2336if ac_fn_c_try_compile "$LINENO"; then :
2337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2338/* end confdefs.h.  */
2339$4
2340int
2341main ()
2342{
2343if (sizeof (($2)))
2344	    return 0;
2345  ;
2346  return 0;
2347}
2348_ACEOF
2349if ac_fn_c_try_compile "$LINENO"; then :
2350
2351else
2352  eval "$3=yes"
2353fi
2354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2355fi
2356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2357fi
2358eval ac_res=\$$3
2359	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2360$as_echo "$ac_res" >&6; }
2361  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2362
2363} # ac_fn_c_check_type
2364
2365# ac_fn_c_find_uintX_t LINENO BITS VAR
2366# ------------------------------------
2367# Finds an unsigned integer type with width BITS, setting cache variable VAR
2368# accordingly.
2369ac_fn_c_find_uintX_t ()
2370{
2371  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2372  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2373$as_echo_n "checking for uint$2_t... " >&6; }
2374if eval "test \"\${$3+set}\"" = set; then :
2375  $as_echo_n "(cached) " >&6
2376else
2377  eval "$3=no"
2378     # Order is important - never check a type that is potentially smaller
2379     # than half of the expected target width.
2380     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2381	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2382       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2383/* end confdefs.h.  */
2384$ac_includes_default
2385int
2386main ()
2387{
2388static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2389test_array [0] = 0
2390
2391  ;
2392  return 0;
2393}
2394_ACEOF
2395if ac_fn_c_try_compile "$LINENO"; then :
2396  case $ac_type in #(
2397  uint$2_t) :
2398    eval "$3=yes" ;; #(
2399  *) :
2400    eval "$3=\$ac_type" ;;
2401esac
2402fi
2403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2404       if eval test \"x\$"$3"\" = x"no"; then :
2405
2406else
2407  break
2408fi
2409     done
2410fi
2411eval ac_res=\$$3
2412	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2413$as_echo "$ac_res" >&6; }
2414  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2415
2416} # ac_fn_c_find_uintX_t
2417cat >config.log <<_ACEOF
2418This file contains any messages produced by compilers while
2419running configure, to aid debugging if configure makes a mistake.
2420
2421It was created by Tux4Kids-Common $as_me 0.1.1, which was
2422generated by GNU Autoconf 2.67.  Invocation command line was
2423
2424  $ $0 $@
2425
2426_ACEOF
2427exec 5>>config.log
2428{
2429cat <<_ASUNAME
2430## --------- ##
2431## Platform. ##
2432## --------- ##
2433
2434hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2435uname -m = `(uname -m) 2>/dev/null || echo unknown`
2436uname -r = `(uname -r) 2>/dev/null || echo unknown`
2437uname -s = `(uname -s) 2>/dev/null || echo unknown`
2438uname -v = `(uname -v) 2>/dev/null || echo unknown`
2439
2440/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2441/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2442
2443/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2444/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2445/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2446/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2447/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2448/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2449/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2450
2451_ASUNAME
2452
2453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454for as_dir in $PATH
2455do
2456  IFS=$as_save_IFS
2457  test -z "$as_dir" && as_dir=.
2458    $as_echo "PATH: $as_dir"
2459  done
2460IFS=$as_save_IFS
2461
2462} >&5
2463
2464cat >&5 <<_ACEOF
2465
2466
2467## ----------- ##
2468## Core tests. ##
2469## ----------- ##
2470
2471_ACEOF
2472
2473
2474# Keep a trace of the command line.
2475# Strip out --no-create and --no-recursion so they do not pile up.
2476# Strip out --silent because we don't want to record it for future runs.
2477# Also quote any args containing shell meta-characters.
2478# Make two passes to allow for proper duplicate-argument suppression.
2479ac_configure_args=
2480ac_configure_args0=
2481ac_configure_args1=
2482ac_must_keep_next=false
2483for ac_pass in 1 2
2484do
2485  for ac_arg
2486  do
2487    case $ac_arg in
2488    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2489    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2490    | -silent | --silent | --silen | --sile | --sil)
2491      continue ;;
2492    *\'*)
2493      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2494    esac
2495    case $ac_pass in
2496    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2497    2)
2498      as_fn_append ac_configure_args1 " '$ac_arg'"
2499      if test $ac_must_keep_next = true; then
2500	ac_must_keep_next=false # Got value, back to normal.
2501      else
2502	case $ac_arg in
2503	  *=* | --config-cache | -C | -disable-* | --disable-* \
2504	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2505	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2506	  | -with-* | --with-* | -without-* | --without-* | --x)
2507	    case "$ac_configure_args0 " in
2508	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2509	    esac
2510	    ;;
2511	  -* ) ac_must_keep_next=true ;;
2512	esac
2513      fi
2514      as_fn_append ac_configure_args " '$ac_arg'"
2515      ;;
2516    esac
2517  done
2518done
2519{ ac_configure_args0=; unset ac_configure_args0;}
2520{ ac_configure_args1=; unset ac_configure_args1;}
2521
2522# When interrupted or exit'd, cleanup temporary files, and complete
2523# config.log.  We remove comments because anyway the quotes in there
2524# would cause problems or look ugly.
2525# WARNING: Use '\'' to represent an apostrophe within the trap.
2526# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2527trap 'exit_status=$?
2528  # Save into config.log some information that might help in debugging.
2529  {
2530    echo
2531
2532    $as_echo "## ---------------- ##
2533## Cache variables. ##
2534## ---------------- ##"
2535    echo
2536    # The following way of writing the cache mishandles newlines in values,
2537(
2538  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2539    eval ac_val=\$$ac_var
2540    case $ac_val in #(
2541    *${as_nl}*)
2542      case $ac_var in #(
2543      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2544$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2545      esac
2546      case $ac_var in #(
2547      _ | IFS | as_nl) ;; #(
2548      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2549      *) { eval $ac_var=; unset $ac_var;} ;;
2550      esac ;;
2551    esac
2552  done
2553  (set) 2>&1 |
2554    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2555    *${as_nl}ac_space=\ *)
2556      sed -n \
2557	"s/'\''/'\''\\\\'\'''\''/g;
2558	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2559      ;; #(
2560    *)
2561      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2562      ;;
2563    esac |
2564    sort
2565)
2566    echo
2567
2568    $as_echo "## ----------------- ##
2569## Output variables. ##
2570## ----------------- ##"
2571    echo
2572    for ac_var in $ac_subst_vars
2573    do
2574      eval ac_val=\$$ac_var
2575      case $ac_val in
2576      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2577      esac
2578      $as_echo "$ac_var='\''$ac_val'\''"
2579    done | sort
2580    echo
2581
2582    if test -n "$ac_subst_files"; then
2583      $as_echo "## ------------------- ##
2584## File substitutions. ##
2585## ------------------- ##"
2586      echo
2587      for ac_var in $ac_subst_files
2588      do
2589	eval ac_val=\$$ac_var
2590	case $ac_val in
2591	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2592	esac
2593	$as_echo "$ac_var='\''$ac_val'\''"
2594      done | sort
2595      echo
2596    fi
2597
2598    if test -s confdefs.h; then
2599      $as_echo "## ----------- ##
2600## confdefs.h. ##
2601## ----------- ##"
2602      echo
2603      cat confdefs.h
2604      echo
2605    fi
2606    test "$ac_signal" != 0 &&
2607      $as_echo "$as_me: caught signal $ac_signal"
2608    $as_echo "$as_me: exit $exit_status"
2609  } >&5
2610  rm -f core *.core core.conftest.* &&
2611    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2612    exit $exit_status
2613' 0
2614for ac_signal in 1 2 13 15; do
2615  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2616done
2617ac_signal=0
2618
2619# confdefs.h avoids OS command line length limits that DEFS can exceed.
2620rm -f -r conftest* confdefs.h
2621
2622$as_echo "/* confdefs.h */" > confdefs.h
2623
2624# Predefined preprocessor variables.
2625
2626cat >>confdefs.h <<_ACEOF
2627#define PACKAGE_NAME "$PACKAGE_NAME"
2628_ACEOF
2629
2630cat >>confdefs.h <<_ACEOF
2631#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2632_ACEOF
2633
2634cat >>confdefs.h <<_ACEOF
2635#define PACKAGE_VERSION "$PACKAGE_VERSION"
2636_ACEOF
2637
2638cat >>confdefs.h <<_ACEOF
2639#define PACKAGE_STRING "$PACKAGE_STRING"
2640_ACEOF
2641
2642cat >>confdefs.h <<_ACEOF
2643#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2644_ACEOF
2645
2646cat >>confdefs.h <<_ACEOF
2647#define PACKAGE_URL "$PACKAGE_URL"
2648_ACEOF
2649
2650
2651# Let the site file select an alternate cache file if it wants to.
2652# Prefer an explicitly selected file to automatically selected ones.
2653ac_site_file1=NONE
2654ac_site_file2=NONE
2655if test -n "$CONFIG_SITE"; then
2656  # We do not want a PATH search for config.site.
2657  case $CONFIG_SITE in #((
2658    -*)  ac_site_file1=./$CONFIG_SITE;;
2659    */*) ac_site_file1=$CONFIG_SITE;;
2660    *)   ac_site_file1=./$CONFIG_SITE;;
2661  esac
2662elif test "x$prefix" != xNONE; then
2663  ac_site_file1=$prefix/share/config.site
2664  ac_site_file2=$prefix/etc/config.site
2665else
2666  ac_site_file1=$ac_default_prefix/share/config.site
2667  ac_site_file2=$ac_default_prefix/etc/config.site
2668fi
2669for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2670do
2671  test "x$ac_site_file" = xNONE && continue
2672  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2673    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2674$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2675    sed 's/^/| /' "$ac_site_file" >&5
2676    . "$ac_site_file" \
2677      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2678$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2679as_fn_error $? "failed to load site script $ac_site_file
2680See \`config.log' for more details" "$LINENO" 5 ; }
2681  fi
2682done
2683
2684if test -r "$cache_file"; then
2685  # Some versions of bash will fail to source /dev/null (special files
2686  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2687  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2688    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2689$as_echo "$as_me: loading cache $cache_file" >&6;}
2690    case $cache_file in
2691      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2692      *)                      . "./$cache_file";;
2693    esac
2694  fi
2695else
2696  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2697$as_echo "$as_me: creating cache $cache_file" >&6;}
2698  >$cache_file
2699fi
2700
2701gt_needs="$gt_needs "
2702as_fn_append ac_header_list " stdlib.h"
2703as_fn_append ac_header_list " unistd.h"
2704as_fn_append ac_header_list " sys/param.h"
2705# Check that the precious variables saved in the cache have kept the same
2706# value.
2707ac_cache_corrupted=false
2708for ac_var in $ac_precious_vars; do
2709  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2710  eval ac_new_set=\$ac_env_${ac_var}_set
2711  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2712  eval ac_new_val=\$ac_env_${ac_var}_value
2713  case $ac_old_set,$ac_new_set in
2714    set,)
2715      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2716$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2717      ac_cache_corrupted=: ;;
2718    ,set)
2719      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2720$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2721      ac_cache_corrupted=: ;;
2722    ,);;
2723    *)
2724      if test "x$ac_old_val" != "x$ac_new_val"; then
2725	# differences in whitespace do not lead to failure.
2726	ac_old_val_w=`echo x $ac_old_val`
2727	ac_new_val_w=`echo x $ac_new_val`
2728	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2729	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2730$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2731	  ac_cache_corrupted=:
2732	else
2733	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2734$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2735	  eval $ac_var=\$ac_old_val
2736	fi
2737	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2738$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2739	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2740$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2741      fi;;
2742  esac
2743  # Pass precious variables to config.status.
2744  if test "$ac_new_set" = set; then
2745    case $ac_new_val in
2746    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2747    *) ac_arg=$ac_var=$ac_new_val ;;
2748    esac
2749    case " $ac_configure_args " in
2750      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2751      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2752    esac
2753  fi
2754done
2755if $ac_cache_corrupted; then
2756  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2757$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2758  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2759$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2760  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2761fi
2762## -------------------- ##
2763## Main body of script. ##
2764## -------------------- ##
2765
2766ac_ext=c
2767ac_cpp='$CPP $CPPFLAGS'
2768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2770ac_compiler_gnu=$ac_cv_c_compiler_gnu
2771
2772
2773
2774
2775
2776
2777ac_aux_dir=
2778for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2779  if test -f "$ac_dir/install-sh"; then
2780    ac_aux_dir=$ac_dir
2781    ac_install_sh="$ac_aux_dir/install-sh -c"
2782    break
2783  elif test -f "$ac_dir/install.sh"; then
2784    ac_aux_dir=$ac_dir
2785    ac_install_sh="$ac_aux_dir/install.sh -c"
2786    break
2787  elif test -f "$ac_dir/shtool"; then
2788    ac_aux_dir=$ac_dir
2789    ac_install_sh="$ac_aux_dir/shtool install -c"
2790    break
2791  fi
2792done
2793if test -z "$ac_aux_dir"; then
2794  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2795fi
2796
2797# These three variables are undocumented and unsupported,
2798# and are intended to be withdrawn in a future Autoconf release.
2799# They can cause serious problems if a builder's source tree is in a directory
2800# whose full name contains unusual characters.
2801ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2802ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2803ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2804
2805
2806# Make sure we can run config.sub.
2807$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2808  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2809
2810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2811$as_echo_n "checking build system type... " >&6; }
2812if test "${ac_cv_build+set}" = set; then :
2813  $as_echo_n "(cached) " >&6
2814else
2815  ac_build_alias=$build_alias
2816test "x$ac_build_alias" = x &&
2817  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2818test "x$ac_build_alias" = x &&
2819  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2820ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2821  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2822
2823fi
2824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2825$as_echo "$ac_cv_build" >&6; }
2826case $ac_cv_build in
2827*-*-*) ;;
2828*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2829esac
2830build=$ac_cv_build
2831ac_save_IFS=$IFS; IFS='-'
2832set x $ac_cv_build
2833shift
2834build_cpu=$1
2835build_vendor=$2
2836shift; shift
2837# Remember, the first character of IFS is used to create $*,
2838# except with old shells:
2839build_os=$*
2840IFS=$ac_save_IFS
2841case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2842
2843
2844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2845$as_echo_n "checking host system type... " >&6; }
2846if test "${ac_cv_host+set}" = set; then :
2847  $as_echo_n "(cached) " >&6
2848else
2849  if test "x$host_alias" = x; then
2850  ac_cv_host=$ac_cv_build
2851else
2852  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2853    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2854fi
2855
2856fi
2857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2858$as_echo "$ac_cv_host" >&6; }
2859case $ac_cv_host in
2860*-*-*) ;;
2861*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2862esac
2863host=$ac_cv_host
2864ac_save_IFS=$IFS; IFS='-'
2865set x $ac_cv_host
2866shift
2867host_cpu=$1
2868host_vendor=$2
2869shift; shift
2870# Remember, the first character of IFS is used to create $*,
2871# except with old shells:
2872host_os=$*
2873IFS=$ac_save_IFS
2874case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2875
2876
2877
2878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2879$as_echo_n "checking target system type... " >&6; }
2880if test "${ac_cv_target+set}" = set; then :
2881  $as_echo_n "(cached) " >&6
2882else
2883  if test "x$target_alias" = x; then
2884  ac_cv_target=$ac_cv_host
2885else
2886  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2887    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2888fi
2889
2890fi
2891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2892$as_echo "$ac_cv_target" >&6; }
2893case $ac_cv_target in
2894*-*-*) ;;
2895*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
2896esac
2897target=$ac_cv_target
2898ac_save_IFS=$IFS; IFS='-'
2899set x $ac_cv_target
2900shift
2901target_cpu=$1
2902target_vendor=$2
2903shift; shift
2904# Remember, the first character of IFS is used to create $*,
2905# except with old shells:
2906target_os=$*
2907IFS=$ac_save_IFS
2908case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2909
2910
2911# The aliases save the names the user supplied, while $host etc.
2912# will get canonicalized.
2913test -n "$target_alias" &&
2914  test "$program_prefix$program_suffix$program_transform_name" = \
2915    NONENONEs,x,x, &&
2916  program_prefix=${target_alias}-
2917
2918am__api_version='1.11'
2919
2920# Find a good install program.  We prefer a C program (faster),
2921# so one script is as good as another.  But avoid the broken or
2922# incompatible versions:
2923# SysV /etc/install, /usr/sbin/install
2924# SunOS /usr/etc/install
2925# IRIX /sbin/install
2926# AIX /bin/install
2927# AmigaOS /C/install, which installs bootblocks on floppy discs
2928# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2929# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2930# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2931# OS/2's system install, which has a completely different semantic
2932# ./install, which can be erroneously created by make from ./install.sh.
2933# Reject install programs that cannot install multiple files.
2934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2935$as_echo_n "checking for a BSD-compatible install... " >&6; }
2936if test -z "$INSTALL"; then
2937if test "${ac_cv_path_install+set}" = set; then :
2938  $as_echo_n "(cached) " >&6
2939else
2940  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941for as_dir in $PATH
2942do
2943  IFS=$as_save_IFS
2944  test -z "$as_dir" && as_dir=.
2945    # Account for people who put trailing slashes in PATH elements.
2946case $as_dir/ in #((
2947  ./ | .// | /[cC]/* | \
2948  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2949  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2950  /usr/ucb/* ) ;;
2951  *)
2952    # OSF1 and SCO ODT 3.0 have their own names for install.
2953    # Don't use installbsd from OSF since it installs stuff as root
2954    # by default.
2955    for ac_prog in ginstall scoinst install; do
2956      for ac_exec_ext in '' $ac_executable_extensions; do
2957	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2958	  if test $ac_prog = install &&
2959	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2960	    # AIX install.  It has an incompatible calling convention.
2961	    :
2962	  elif test $ac_prog = install &&
2963	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2964	    # program-specific install script used by HP pwplus--don't use.
2965	    :
2966	  else
2967	    rm -rf conftest.one conftest.two conftest.dir
2968	    echo one > conftest.one
2969	    echo two > conftest.two
2970	    mkdir conftest.dir
2971	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2972	      test -s conftest.one && test -s conftest.two &&
2973	      test -s conftest.dir/conftest.one &&
2974	      test -s conftest.dir/conftest.two
2975	    then
2976	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2977	      break 3
2978	    fi
2979	  fi
2980	fi
2981      done
2982    done
2983    ;;
2984esac
2985
2986  done
2987IFS=$as_save_IFS
2988
2989rm -rf conftest.one conftest.two conftest.dir
2990
2991fi
2992  if test "${ac_cv_path_install+set}" = set; then
2993    INSTALL=$ac_cv_path_install
2994  else
2995    # As a last resort, use the slow shell script.  Don't cache a
2996    # value for INSTALL within a source directory, because that will
2997    # break other packages using the cache if that directory is
2998    # removed, or if the value is a relative name.
2999    INSTALL=$ac_install_sh
3000  fi
3001fi
3002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3003$as_echo "$INSTALL" >&6; }
3004
3005# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3006# It thinks the first close brace ends the variable substitution.
3007test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3008
3009test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3010
3011test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3012
3013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3014$as_echo_n "checking whether build environment is sane... " >&6; }
3015# Just in case
3016sleep 1
3017echo timestamp > conftest.file
3018# Reject unsafe characters in $srcdir or the absolute working directory
3019# name.  Accept space and tab only in the latter.
3020am_lf='
3021'
3022case `pwd` in
3023  *[\\\"\#\$\&\'\`$am_lf]*)
3024    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
3025esac
3026case $srcdir in
3027  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3028    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
3029esac
3030
3031# Do `set' in a subshell so we don't clobber the current shell's
3032# arguments.  Must try -L first in case configure is actually a
3033# symlink; some systems play weird games with the mod time of symlinks
3034# (eg FreeBSD returns the mod time of the symlink's containing
3035# directory).
3036if (
3037   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3038   if test "$*" = "X"; then
3039      # -L didn't work.
3040      set X `ls -t "$srcdir/configure" conftest.file`
3041   fi
3042   rm -f conftest.file
3043   if test "$*" != "X $srcdir/configure conftest.file" \
3044      && test "$*" != "X conftest.file $srcdir/configure"; then
3045
3046      # If neither matched, then we have a broken ls.  This can happen
3047      # if, for instance, CONFIG_SHELL is bash and it inherits a
3048      # broken ls alias from the environment.  This has actually
3049      # happened.  Such a system could not be considered "sane".
3050      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3051alias in your environment" "$LINENO" 5
3052   fi
3053
3054   test "$2" = conftest.file
3055   )
3056then
3057   # Ok.
3058   :
3059else
3060   as_fn_error $? "newly created file is older than distributed files!
3061Check your system clock" "$LINENO" 5
3062fi
3063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3064$as_echo "yes" >&6; }
3065test "$program_prefix" != NONE &&
3066  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3067# Use a double $ so make ignores it.
3068test "$program_suffix" != NONE &&
3069  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3070# Double any \ or $.
3071# By default was `s,x,x', remove it if useless.
3072ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3073program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3074
3075# expand $ac_aux_dir to an absolute path
3076am_aux_dir=`cd $ac_aux_dir && pwd`
3077
3078if test x"${MISSING+set}" != xset; then
3079  case $am_aux_dir in
3080  *\ * | *\	*)
3081    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3082  *)
3083    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3084  esac
3085fi
3086# Use eval to expand $SHELL
3087if eval "$MISSING --run true"; then
3088  am_missing_run="$MISSING --run "
3089else
3090  am_missing_run=
3091  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3092$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3093fi
3094
3095if test x"${install_sh}" != xset; then
3096  case $am_aux_dir in
3097  *\ * | *\	*)
3098    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3099  *)
3100    install_sh="\${SHELL} $am_aux_dir/install-sh"
3101  esac
3102fi
3103
3104# Installed binaries are usually stripped using `strip' when the user
3105# run `make install-strip'.  However `strip' might not be the right
3106# tool to use in cross-compilation environments, therefore Automake
3107# will honor the `STRIP' environment variable to overrule this program.
3108if test "$cross_compiling" != no; then
3109  if test -n "$ac_tool_prefix"; then
3110  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3111set dummy ${ac_tool_prefix}strip; ac_word=$2
3112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3113$as_echo_n "checking for $ac_word... " >&6; }
3114if test "${ac_cv_prog_STRIP+set}" = set; then :
3115  $as_echo_n "(cached) " >&6
3116else
3117  if test -n "$STRIP"; then
3118  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3119else
3120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121for as_dir in $PATH
3122do
3123  IFS=$as_save_IFS
3124  test -z "$as_dir" && as_dir=.
3125    for ac_exec_ext in '' $ac_executable_extensions; do
3126  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3127    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3128    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3129    break 2
3130  fi
3131done
3132  done
3133IFS=$as_save_IFS
3134
3135fi
3136fi
3137STRIP=$ac_cv_prog_STRIP
3138if test -n "$STRIP"; then
3139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3140$as_echo "$STRIP" >&6; }
3141else
3142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143$as_echo "no" >&6; }
3144fi
3145
3146
3147fi
3148if test -z "$ac_cv_prog_STRIP"; then
3149  ac_ct_STRIP=$STRIP
3150  # Extract the first word of "strip", so it can be a program name with args.
3151set dummy strip; ac_word=$2
3152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3153$as_echo_n "checking for $ac_word... " >&6; }
3154if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3155  $as_echo_n "(cached) " >&6
3156else
3157  if test -n "$ac_ct_STRIP"; then
3158  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3159else
3160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161for as_dir in $PATH
3162do
3163  IFS=$as_save_IFS
3164  test -z "$as_dir" && as_dir=.
3165    for ac_exec_ext in '' $ac_executable_extensions; do
3166  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3167    ac_cv_prog_ac_ct_STRIP="strip"
3168    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3169    break 2
3170  fi
3171done
3172  done
3173IFS=$as_save_IFS
3174
3175fi
3176fi
3177ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3178if test -n "$ac_ct_STRIP"; then
3179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3180$as_echo "$ac_ct_STRIP" >&6; }
3181else
3182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183$as_echo "no" >&6; }
3184fi
3185
3186  if test "x$ac_ct_STRIP" = x; then
3187    STRIP=":"
3188  else
3189    case $cross_compiling:$ac_tool_warned in
3190yes:)
3191{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3192$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3193ac_tool_warned=yes ;;
3194esac
3195    STRIP=$ac_ct_STRIP
3196  fi
3197else
3198  STRIP="$ac_cv_prog_STRIP"
3199fi
3200
3201fi
3202INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3203
3204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3205$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3206if test -z "$MKDIR_P"; then
3207  if test "${ac_cv_path_mkdir+set}" = set; then :
3208  $as_echo_n "(cached) " >&6
3209else
3210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3212do
3213  IFS=$as_save_IFS
3214  test -z "$as_dir" && as_dir=.
3215    for ac_prog in mkdir gmkdir; do
3216	 for ac_exec_ext in '' $ac_executable_extensions; do
3217	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3218	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3219	     'mkdir (GNU coreutils) '* | \
3220	     'mkdir (coreutils) '* | \
3221	     'mkdir (fileutils) '4.1*)
3222	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3223	       break 3;;
3224	   esac
3225	 done
3226       done
3227  done
3228IFS=$as_save_IFS
3229
3230fi
3231
3232  test -d ./--version && rmdir ./--version
3233  if test "${ac_cv_path_mkdir+set}" = set; then
3234    MKDIR_P="$ac_cv_path_mkdir -p"
3235  else
3236    # As a last resort, use the slow shell script.  Don't cache a
3237    # value for MKDIR_P within a source directory, because that will
3238    # break other packages using the cache if that directory is
3239    # removed, or if the value is a relative name.
3240    MKDIR_P="$ac_install_sh -d"
3241  fi
3242fi
3243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3244$as_echo "$MKDIR_P" >&6; }
3245
3246mkdir_p="$MKDIR_P"
3247case $mkdir_p in
3248  [\\/$]* | ?:[\\/]*) ;;
3249  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3250esac
3251
3252for ac_prog in gawk mawk nawk awk
3253do
3254  # Extract the first word of "$ac_prog", so it can be a program name with args.
3255set dummy $ac_prog; ac_word=$2
3256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3257$as_echo_n "checking for $ac_word... " >&6; }
3258if test "${ac_cv_prog_AWK+set}" = set; then :
3259  $as_echo_n "(cached) " >&6
3260else
3261  if test -n "$AWK"; then
3262  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3263else
3264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3265for as_dir in $PATH
3266do
3267  IFS=$as_save_IFS
3268  test -z "$as_dir" && as_dir=.
3269    for ac_exec_ext in '' $ac_executable_extensions; do
3270  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3271    ac_cv_prog_AWK="$ac_prog"
3272    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3273    break 2
3274  fi
3275done
3276  done
3277IFS=$as_save_IFS
3278
3279fi
3280fi
3281AWK=$ac_cv_prog_AWK
3282if test -n "$AWK"; then
3283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3284$as_echo "$AWK" >&6; }
3285else
3286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287$as_echo "no" >&6; }
3288fi
3289
3290
3291  test -n "$AWK" && break
3292done
3293
3294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3295$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3296set x ${MAKE-make}
3297ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3298if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3299  $as_echo_n "(cached) " >&6
3300else
3301  cat >conftest.make <<\_ACEOF
3302SHELL = /bin/sh
3303all:
3304	@echo '@@@%%%=$(MAKE)=@@@%%%'
3305_ACEOF
3306# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3307case `${MAKE-make} -f conftest.make 2>/dev/null` in
3308  *@@@%%%=?*=@@@%%%*)
3309    eval ac_cv_prog_make_${ac_make}_set=yes;;
3310  *)
3311    eval ac_cv_prog_make_${ac_make}_set=no;;
3312esac
3313rm -f conftest.make
3314fi
3315if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3317$as_echo "yes" >&6; }
3318  SET_MAKE=
3319else
3320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3321$as_echo "no" >&6; }
3322  SET_MAKE="MAKE=${MAKE-make}"
3323fi
3324
3325rm -rf .tst 2>/dev/null
3326mkdir .tst 2>/dev/null
3327if test -d .tst; then
3328  am__leading_dot=.
3329else
3330  am__leading_dot=_
3331fi
3332rmdir .tst 2>/dev/null
3333
3334if test "`cd $srcdir && pwd`" != "`pwd`"; then
3335  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3336  # is not polluted with repeated "-I."
3337  am__isrc=' -I$(srcdir)'
3338  # test to see if srcdir already configured
3339  if test -f $srcdir/config.status; then
3340    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3341  fi
3342fi
3343
3344# test whether we have cygpath
3345if test -z "$CYGPATH_W"; then
3346  if (cygpath --version) >/dev/null 2>/dev/null; then
3347    CYGPATH_W='cygpath -w'
3348  else
3349    CYGPATH_W=echo
3350  fi
3351fi
3352
3353
3354# Define the identity of the package.
3355 PACKAGE='t4k_common'
3356 VERSION='0.1.1'
3357
3358
3359cat >>confdefs.h <<_ACEOF
3360#define PACKAGE "$PACKAGE"
3361_ACEOF
3362
3363
3364cat >>confdefs.h <<_ACEOF
3365#define VERSION "$VERSION"
3366_ACEOF
3367
3368# Some tools Automake needs.
3369
3370ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3371
3372
3373AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3374
3375
3376AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3377
3378
3379AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3380
3381
3382MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3383
3384# We need awk for the "check" target.  The system "awk" is bad on
3385# some platforms.
3386# Always define AMTAR for backward compatibility.
3387
3388AMTAR=${AMTAR-"${am_missing_run}tar"}
3389
3390am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3391
3392
3393
3394
3395
3396
3397ac_config_headers="$ac_config_headers config.h"
3398
3399
3400NAME_VERSION=$PACKAGE-$VERSION
3401
3402
3403cat >>confdefs.h <<_ACEOF
3404#define PROGRAM_NAME "$PACKAGE"
3405_ACEOF
3406
3407
3408
3409
3410# Needed for gettext:
3411DEPDIR="${am__leading_dot}deps"
3412
3413ac_config_commands="$ac_config_commands depfiles"
3414
3415
3416am_make=${MAKE-make}
3417cat > confinc << 'END'
3418am__doit:
3419	@echo this is the am__doit target
3420.PHONY: am__doit
3421END
3422# If we don't find an include directive, just comment out the code.
3423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3424$as_echo_n "checking for style of include used by $am_make... " >&6; }
3425am__include="#"
3426am__quote=
3427_am_result=none
3428# First try GNU make style include.
3429echo "include confinc" > confmf
3430# Ignore all kinds of additional output from `make'.
3431case `$am_make -s -f confmf 2> /dev/null` in #(
3432*the\ am__doit\ target*)
3433  am__include=include
3434  am__quote=
3435  _am_result=GNU
3436  ;;
3437esac
3438# Now try BSD make style include.
3439if test "$am__include" = "#"; then
3440   echo '.include "confinc"' > confmf
3441   case `$am_make -s -f confmf 2> /dev/null` in #(
3442   *the\ am__doit\ target*)
3443     am__include=.include
3444     am__quote="\""
3445     _am_result=BSD
3446     ;;
3447   esac
3448fi
3449
3450
3451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3452$as_echo "$_am_result" >&6; }
3453rm -f confinc confmf
3454
3455# Check whether --enable-dependency-tracking was given.
3456if test "${enable_dependency_tracking+set}" = set; then :
3457  enableval=$enable_dependency_tracking;
3458fi
3459
3460if test "x$enable_dependency_tracking" != xno; then
3461  am_depcomp="$ac_aux_dir/depcomp"
3462  AMDEPBACKSLASH='\'
3463fi
3464 if test "x$enable_dependency_tracking" != xno; then
3465  AMDEP_TRUE=
3466  AMDEP_FALSE='#'
3467else
3468  AMDEP_TRUE='#'
3469  AMDEP_FALSE=
3470fi
3471
3472
3473ac_ext=c
3474ac_cpp='$CPP $CPPFLAGS'
3475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3477ac_compiler_gnu=$ac_cv_c_compiler_gnu
3478if test -n "$ac_tool_prefix"; then
3479  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3480set dummy ${ac_tool_prefix}gcc; ac_word=$2
3481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3482$as_echo_n "checking for $ac_word... " >&6; }
3483if test "${ac_cv_prog_CC+set}" = set; then :
3484  $as_echo_n "(cached) " >&6
3485else
3486  if test -n "$CC"; then
3487  ac_cv_prog_CC="$CC" # Let the user override the test.
3488else
3489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3490for as_dir in $PATH
3491do
3492  IFS=$as_save_IFS
3493  test -z "$as_dir" && as_dir=.
3494    for ac_exec_ext in '' $ac_executable_extensions; do
3495  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3496    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3497    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3498    break 2
3499  fi
3500done
3501  done
3502IFS=$as_save_IFS
3503
3504fi
3505fi
3506CC=$ac_cv_prog_CC
3507if test -n "$CC"; then
3508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3509$as_echo "$CC" >&6; }
3510else
3511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3512$as_echo "no" >&6; }
3513fi
3514
3515
3516fi
3517if test -z "$ac_cv_prog_CC"; then
3518  ac_ct_CC=$CC
3519  # Extract the first word of "gcc", so it can be a program name with args.
3520set dummy gcc; ac_word=$2
3521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3522$as_echo_n "checking for $ac_word... " >&6; }
3523if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3524  $as_echo_n "(cached) " >&6
3525else
3526  if test -n "$ac_ct_CC"; then
3527  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3528else
3529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530for as_dir in $PATH
3531do
3532  IFS=$as_save_IFS
3533  test -z "$as_dir" && as_dir=.
3534    for ac_exec_ext in '' $ac_executable_extensions; do
3535  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3536    ac_cv_prog_ac_ct_CC="gcc"
3537    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3538    break 2
3539  fi
3540done
3541  done
3542IFS=$as_save_IFS
3543
3544fi
3545fi
3546ac_ct_CC=$ac_cv_prog_ac_ct_CC
3547if test -n "$ac_ct_CC"; then
3548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3549$as_echo "$ac_ct_CC" >&6; }
3550else
3551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3552$as_echo "no" >&6; }
3553fi
3554
3555  if test "x$ac_ct_CC" = x; then
3556    CC=""
3557  else
3558    case $cross_compiling:$ac_tool_warned in
3559yes:)
3560{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3561$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3562ac_tool_warned=yes ;;
3563esac
3564    CC=$ac_ct_CC
3565  fi
3566else
3567  CC="$ac_cv_prog_CC"
3568fi
3569
3570if test -z "$CC"; then
3571          if test -n "$ac_tool_prefix"; then
3572    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3573set dummy ${ac_tool_prefix}cc; ac_word=$2
3574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3575$as_echo_n "checking for $ac_word... " >&6; }
3576if test "${ac_cv_prog_CC+set}" = set; then :
3577  $as_echo_n "(cached) " >&6
3578else
3579  if test -n "$CC"; then
3580  ac_cv_prog_CC="$CC" # Let the user override the test.
3581else
3582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3583for as_dir in $PATH
3584do
3585  IFS=$as_save_IFS
3586  test -z "$as_dir" && as_dir=.
3587    for ac_exec_ext in '' $ac_executable_extensions; do
3588  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3589    ac_cv_prog_CC="${ac_tool_prefix}cc"
3590    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3591    break 2
3592  fi
3593done
3594  done
3595IFS=$as_save_IFS
3596
3597fi
3598fi
3599CC=$ac_cv_prog_CC
3600if test -n "$CC"; then
3601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3602$as_echo "$CC" >&6; }
3603else
3604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3605$as_echo "no" >&6; }
3606fi
3607
3608
3609  fi
3610fi
3611if test -z "$CC"; then
3612  # Extract the first word of "cc", so it can be a program name with args.
3613set dummy cc; ac_word=$2
3614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3615$as_echo_n "checking for $ac_word... " >&6; }
3616if test "${ac_cv_prog_CC+set}" = set; then :
3617  $as_echo_n "(cached) " >&6
3618else
3619  if test -n "$CC"; then
3620  ac_cv_prog_CC="$CC" # Let the user override the test.
3621else
3622  ac_prog_rejected=no
3623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3624for as_dir in $PATH
3625do
3626  IFS=$as_save_IFS
3627  test -z "$as_dir" && as_dir=.
3628    for ac_exec_ext in '' $ac_executable_extensions; do
3629  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3630    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3631       ac_prog_rejected=yes
3632       continue
3633     fi
3634    ac_cv_prog_CC="cc"
3635    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3636    break 2
3637  fi
3638done
3639  done
3640IFS=$as_save_IFS
3641
3642if test $ac_prog_rejected = yes; then
3643  # We found a bogon in the path, so make sure we never use it.
3644  set dummy $ac_cv_prog_CC
3645  shift
3646  if test $# != 0; then
3647    # We chose a different compiler from the bogus one.
3648    # However, it has the same basename, so the bogon will be chosen
3649    # first if we set CC to just the basename; use the full file name.
3650    shift
3651    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3652  fi
3653fi
3654fi
3655fi
3656CC=$ac_cv_prog_CC
3657if test -n "$CC"; then
3658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3659$as_echo "$CC" >&6; }
3660else
3661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3662$as_echo "no" >&6; }
3663fi
3664
3665
3666fi
3667if test -z "$CC"; then
3668  if test -n "$ac_tool_prefix"; then
3669  for ac_prog in cl.exe
3670  do
3671    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3672set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3674$as_echo_n "checking for $ac_word... " >&6; }
3675if test "${ac_cv_prog_CC+set}" = set; then :
3676  $as_echo_n "(cached) " >&6
3677else
3678  if test -n "$CC"; then
3679  ac_cv_prog_CC="$CC" # Let the user override the test.
3680else
3681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3682for as_dir in $PATH
3683do
3684  IFS=$as_save_IFS
3685  test -z "$as_dir" && as_dir=.
3686    for ac_exec_ext in '' $ac_executable_extensions; do
3687  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3688    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3689    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3690    break 2
3691  fi
3692done
3693  done
3694IFS=$as_save_IFS
3695
3696fi
3697fi
3698CC=$ac_cv_prog_CC
3699if test -n "$CC"; then
3700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3701$as_echo "$CC" >&6; }
3702else
3703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3704$as_echo "no" >&6; }
3705fi
3706
3707
3708    test -n "$CC" && break
3709  done
3710fi
3711if test -z "$CC"; then
3712  ac_ct_CC=$CC
3713  for ac_prog in cl.exe
3714do
3715  # Extract the first word of "$ac_prog", so it can be a program name with args.
3716set dummy $ac_prog; ac_word=$2
3717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3718$as_echo_n "checking for $ac_word... " >&6; }
3719if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3720  $as_echo_n "(cached) " >&6
3721else
3722  if test -n "$ac_ct_CC"; then
3723  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3724else
3725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726for as_dir in $PATH
3727do
3728  IFS=$as_save_IFS
3729  test -z "$as_dir" && as_dir=.
3730    for ac_exec_ext in '' $ac_executable_extensions; do
3731  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3732    ac_cv_prog_ac_ct_CC="$ac_prog"
3733    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3734    break 2
3735  fi
3736done
3737  done
3738IFS=$as_save_IFS
3739
3740fi
3741fi
3742ac_ct_CC=$ac_cv_prog_ac_ct_CC
3743if test -n "$ac_ct_CC"; then
3744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3745$as_echo "$ac_ct_CC" >&6; }
3746else
3747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3748$as_echo "no" >&6; }
3749fi
3750
3751
3752  test -n "$ac_ct_CC" && break
3753done
3754
3755  if test "x$ac_ct_CC" = x; then
3756    CC=""
3757  else
3758    case $cross_compiling:$ac_tool_warned in
3759yes:)
3760{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3761$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3762ac_tool_warned=yes ;;
3763esac
3764    CC=$ac_ct_CC
3765  fi
3766fi
3767
3768fi
3769
3770
3771test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3772$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3773as_fn_error $? "no acceptable C compiler found in \$PATH
3774See \`config.log' for more details" "$LINENO" 5 ; }
3775
3776# Provide some information about the compiler.
3777$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3778set X $ac_compile
3779ac_compiler=$2
3780for ac_option in --version -v -V -qversion; do
3781  { { ac_try="$ac_compiler $ac_option >&5"
3782case "(($ac_try" in
3783  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784  *) ac_try_echo=$ac_try;;
3785esac
3786eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3787$as_echo "$ac_try_echo"; } >&5
3788  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3789  ac_status=$?
3790  if test -s conftest.err; then
3791    sed '10a\
3792... rest of stderr output deleted ...
3793         10q' conftest.err >conftest.er1
3794    cat conftest.er1 >&5
3795  fi
3796  rm -f conftest.er1 conftest.err
3797  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3798  test $ac_status = 0; }
3799done
3800
3801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3802/* end confdefs.h.  */
3803
3804int
3805main ()
3806{
3807
3808  ;
3809  return 0;
3810}
3811_ACEOF
3812ac_clean_files_save=$ac_clean_files
3813ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3814# Try to create an executable without -o first, disregard a.out.
3815# It will help us diagnose broken compilers, and finding out an intuition
3816# of exeext.
3817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3818$as_echo_n "checking whether the C compiler works... " >&6; }
3819ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3820
3821# The possible output files:
3822ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3823
3824ac_rmfiles=
3825for ac_file in $ac_files
3826do
3827  case $ac_file in
3828    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3829    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3830  esac
3831done
3832rm -f $ac_rmfiles
3833
3834if { { ac_try="$ac_link_default"
3835case "(($ac_try" in
3836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837  *) ac_try_echo=$ac_try;;
3838esac
3839eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3840$as_echo "$ac_try_echo"; } >&5
3841  (eval "$ac_link_default") 2>&5
3842  ac_status=$?
3843  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3844  test $ac_status = 0; }; then :
3845  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3846# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3847# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3848# so that the user can short-circuit this test for compilers unknown to
3849# Autoconf.
3850for ac_file in $ac_files ''
3851do
3852  test -f "$ac_file" || continue
3853  case $ac_file in
3854    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3855	;;
3856    [ab].out )
3857	# We found the default executable, but exeext='' is most
3858	# certainly right.
3859	break;;
3860    *.* )
3861	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3862	then :; else
3863	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3864	fi
3865	# We set ac_cv_exeext here because the later test for it is not
3866	# safe: cross compilers may not add the suffix if given an `-o'
3867	# argument, so we may need to know it at that point already.
3868	# Even if this section looks crufty: it has the advantage of
3869	# actually working.
3870	break;;
3871    * )
3872	break;;
3873  esac
3874done
3875test "$ac_cv_exeext" = no && ac_cv_exeext=
3876
3877else
3878  ac_file=''
3879fi
3880if test -z "$ac_file"; then :
3881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3882$as_echo "no" >&6; }
3883$as_echo "$as_me: failed program was:" >&5
3884sed 's/^/| /' conftest.$ac_ext >&5
3885
3886{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3887$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3888as_fn_error 77 "C compiler cannot create executables
3889See \`config.log' for more details" "$LINENO" 5 ; }
3890else
3891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3892$as_echo "yes" >&6; }
3893fi
3894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3895$as_echo_n "checking for C compiler default output file name... " >&6; }
3896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3897$as_echo "$ac_file" >&6; }
3898ac_exeext=$ac_cv_exeext
3899
3900rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3901ac_clean_files=$ac_clean_files_save
3902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3903$as_echo_n "checking for suffix of executables... " >&6; }
3904if { { ac_try="$ac_link"
3905case "(($ac_try" in
3906  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907  *) ac_try_echo=$ac_try;;
3908esac
3909eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3910$as_echo "$ac_try_echo"; } >&5
3911  (eval "$ac_link") 2>&5
3912  ac_status=$?
3913  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3914  test $ac_status = 0; }; then :
3915  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3916# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3917# work properly (i.e., refer to `conftest.exe'), while it won't with
3918# `rm'.
3919for ac_file in conftest.exe conftest conftest.*; do
3920  test -f "$ac_file" || continue
3921  case $ac_file in
3922    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3923    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3924	  break;;
3925    * ) break;;
3926  esac
3927done
3928else
3929  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3930$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3931as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3932See \`config.log' for more details" "$LINENO" 5 ; }
3933fi
3934rm -f conftest conftest$ac_cv_exeext
3935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3936$as_echo "$ac_cv_exeext" >&6; }
3937
3938rm -f conftest.$ac_ext
3939EXEEXT=$ac_cv_exeext
3940ac_exeext=$EXEEXT
3941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3942/* end confdefs.h.  */
3943#include <stdio.h>
3944int
3945main ()
3946{
3947FILE *f = fopen ("conftest.out", "w");
3948 return ferror (f) || fclose (f) != 0;
3949
3950  ;
3951  return 0;
3952}
3953_ACEOF
3954ac_clean_files="$ac_clean_files conftest.out"
3955# Check that the compiler produces executables we can run.  If not, either
3956# the compiler is broken, or we cross compile.
3957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3958$as_echo_n "checking whether we are cross compiling... " >&6; }
3959if test "$cross_compiling" != yes; then
3960  { { ac_try="$ac_link"
3961case "(($ac_try" in
3962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963  *) ac_try_echo=$ac_try;;
3964esac
3965eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3966$as_echo "$ac_try_echo"; } >&5
3967  (eval "$ac_link") 2>&5
3968  ac_status=$?
3969  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3970  test $ac_status = 0; }
3971  if { ac_try='./conftest$ac_cv_exeext'
3972  { { case "(($ac_try" in
3973  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974  *) ac_try_echo=$ac_try;;
3975esac
3976eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3977$as_echo "$ac_try_echo"; } >&5
3978  (eval "$ac_try") 2>&5
3979  ac_status=$?
3980  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3981  test $ac_status = 0; }; }; then
3982    cross_compiling=no
3983  else
3984    if test "$cross_compiling" = maybe; then
3985	cross_compiling=yes
3986    else
3987	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3988$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3989as_fn_error $? "cannot run C compiled programs.
3990If you meant to cross compile, use \`--host'.
3991See \`config.log' for more details" "$LINENO" 5 ; }
3992    fi
3993  fi
3994fi
3995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3996$as_echo "$cross_compiling" >&6; }
3997
3998rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3999ac_clean_files=$ac_clean_files_save
4000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4001$as_echo_n "checking for suffix of object files... " >&6; }
4002if test "${ac_cv_objext+set}" = set; then :
4003  $as_echo_n "(cached) " >&6
4004else
4005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4006/* end confdefs.h.  */
4007
4008int
4009main ()
4010{
4011
4012  ;
4013  return 0;
4014}
4015_ACEOF
4016rm -f conftest.o conftest.obj
4017if { { ac_try="$ac_compile"
4018case "(($ac_try" in
4019  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4020  *) ac_try_echo=$ac_try;;
4021esac
4022eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4023$as_echo "$ac_try_echo"; } >&5
4024  (eval "$ac_compile") 2>&5
4025  ac_status=$?
4026  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4027  test $ac_status = 0; }; then :
4028  for ac_file in conftest.o conftest.obj conftest.*; do
4029  test -f "$ac_file" || continue;
4030  case $ac_file in
4031    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4032    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4033       break;;
4034  esac
4035done
4036else
4037  $as_echo "$as_me: failed program was:" >&5
4038sed 's/^/| /' conftest.$ac_ext >&5
4039
4040{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4041$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4042as_fn_error $? "cannot compute suffix of object files: cannot compile
4043See \`config.log' for more details" "$LINENO" 5 ; }
4044fi
4045rm -f conftest.$ac_cv_objext conftest.$ac_ext
4046fi
4047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4048$as_echo "$ac_cv_objext" >&6; }
4049OBJEXT=$ac_cv_objext
4050ac_objext=$OBJEXT
4051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4052$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4053if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4054  $as_echo_n "(cached) " >&6
4055else
4056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4057/* end confdefs.h.  */
4058
4059int
4060main ()
4061{
4062#ifndef __GNUC__
4063       choke me
4064#endif
4065
4066  ;
4067  return 0;
4068}
4069_ACEOF
4070if ac_fn_c_try_compile "$LINENO"; then :
4071  ac_compiler_gnu=yes
4072else
4073  ac_compiler_gnu=no
4074fi
4075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4076ac_cv_c_compiler_gnu=$ac_compiler_gnu
4077
4078fi
4079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4080$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4081if test $ac_compiler_gnu = yes; then
4082  GCC=yes
4083else
4084  GCC=
4085fi
4086ac_test_CFLAGS=${CFLAGS+set}
4087ac_save_CFLAGS=$CFLAGS
4088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4089$as_echo_n "checking whether $CC accepts -g... " >&6; }
4090if test "${ac_cv_prog_cc_g+set}" = set; then :
4091  $as_echo_n "(cached) " >&6
4092else
4093  ac_save_c_werror_flag=$ac_c_werror_flag
4094   ac_c_werror_flag=yes
4095   ac_cv_prog_cc_g=no
4096   CFLAGS="-g"
4097   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098/* end confdefs.h.  */
4099
4100int
4101main ()
4102{
4103
4104  ;
4105  return 0;
4106}
4107_ACEOF
4108if ac_fn_c_try_compile "$LINENO"; then :
4109  ac_cv_prog_cc_g=yes
4110else
4111  CFLAGS=""
4112      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113/* end confdefs.h.  */
4114
4115int
4116main ()
4117{
4118
4119  ;
4120  return 0;
4121}
4122_ACEOF
4123if ac_fn_c_try_compile "$LINENO"; then :
4124
4125else
4126  ac_c_werror_flag=$ac_save_c_werror_flag
4127	 CFLAGS="-g"
4128	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129/* end confdefs.h.  */
4130
4131int
4132main ()
4133{
4134
4135  ;
4136  return 0;
4137}
4138_ACEOF
4139if ac_fn_c_try_compile "$LINENO"; then :
4140  ac_cv_prog_cc_g=yes
4141fi
4142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4143fi
4144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4145fi
4146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4147   ac_c_werror_flag=$ac_save_c_werror_flag
4148fi
4149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4150$as_echo "$ac_cv_prog_cc_g" >&6; }
4151if test "$ac_test_CFLAGS" = set; then
4152  CFLAGS=$ac_save_CFLAGS
4153elif test $ac_cv_prog_cc_g = yes; then
4154  if test "$GCC" = yes; then
4155    CFLAGS="-g -O2"
4156  else
4157    CFLAGS="-g"
4158  fi
4159else
4160  if test "$GCC" = yes; then
4161    CFLAGS="-O2"
4162  else
4163    CFLAGS=
4164  fi
4165fi
4166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4167$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4168if test "${ac_cv_prog_cc_c89+set}" = set; then :
4169  $as_echo_n "(cached) " >&6
4170else
4171  ac_cv_prog_cc_c89=no
4172ac_save_CC=$CC
4173cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174/* end confdefs.h.  */
4175#include <stdarg.h>
4176#include <stdio.h>
4177#include <sys/types.h>
4178#include <sys/stat.h>
4179/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4180struct buf { int x; };
4181FILE * (*rcsopen) (struct buf *, struct stat *, int);
4182static char *e (p, i)
4183     char **p;
4184     int i;
4185{
4186  return p[i];
4187}
4188static char *f (char * (*g) (char **, int), char **p, ...)
4189{
4190  char *s;
4191  va_list v;
4192  va_start (v,p);
4193  s = g (p, va_arg (v,int));
4194  va_end (v);
4195  return s;
4196}
4197
4198/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4199   function prototypes and stuff, but not '\xHH' hex character constants.
4200   These don't provoke an error unfortunately, instead are silently treated
4201   as 'x'.  The following induces an error, until -std is added to get
4202   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4203   array size at least.  It's necessary to write '\x00'==0 to get something
4204   that's true only with -std.  */
4205int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4206
4207/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4208   inside strings and character constants.  */
4209#define FOO(x) 'x'
4210int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4211
4212int test (int i, double x);
4213struct s1 {int (*f) (int a);};
4214struct s2 {int (*f) (double a);};
4215int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4216int argc;
4217char **argv;
4218int
4219main ()
4220{
4221return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4222  ;
4223  return 0;
4224}
4225_ACEOF
4226for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4227	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4228do
4229  CC="$ac_save_CC $ac_arg"
4230  if ac_fn_c_try_compile "$LINENO"; then :
4231  ac_cv_prog_cc_c89=$ac_arg
4232fi
4233rm -f core conftest.err conftest.$ac_objext
4234  test "x$ac_cv_prog_cc_c89" != "xno" && break
4235done
4236rm -f conftest.$ac_ext
4237CC=$ac_save_CC
4238
4239fi
4240# AC_CACHE_VAL
4241case "x$ac_cv_prog_cc_c89" in
4242  x)
4243    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4244$as_echo "none needed" >&6; } ;;
4245  xno)
4246    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4247$as_echo "unsupported" >&6; } ;;
4248  *)
4249    CC="$CC $ac_cv_prog_cc_c89"
4250    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4251$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4252esac
4253if test "x$ac_cv_prog_cc_c89" != xno; then :
4254
4255fi
4256
4257ac_ext=c
4258ac_cpp='$CPP $CPPFLAGS'
4259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4261ac_compiler_gnu=$ac_cv_c_compiler_gnu
4262
4263depcc="$CC"   am_compiler_list=
4264
4265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4266$as_echo_n "checking dependency style of $depcc... " >&6; }
4267if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4268  $as_echo_n "(cached) " >&6
4269else
4270  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4271  # We make a subdir and do the tests there.  Otherwise we can end up
4272  # making bogus files that we don't know about and never remove.  For
4273  # instance it was reported that on HP-UX the gcc test will end up
4274  # making a dummy file named `D' -- because `-MD' means `put the output
4275  # in D'.
4276  mkdir conftest.dir
4277  # Copy depcomp to subdir because otherwise we won't find it if we're
4278  # using a relative directory.
4279  cp "$am_depcomp" conftest.dir
4280  cd conftest.dir
4281  # We will build objects and dependencies in a subdirectory because
4282  # it helps to detect inapplicable dependency modes.  For instance
4283  # both Tru64's cc and ICC support -MD to output dependencies as a
4284  # side effect of compilation, but ICC will put the dependencies in
4285  # the current directory while Tru64 will put them in the object
4286  # directory.
4287  mkdir sub
4288
4289  am_cv_CC_dependencies_compiler_type=none
4290  if test "$am_compiler_list" = ""; then
4291     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4292  fi
4293  am__universal=false
4294  case " $depcc " in #(
4295     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4296     esac
4297
4298  for depmode in $am_compiler_list; do
4299    # Setup a source with many dependencies, because some compilers
4300    # like to wrap large dependency lists on column 80 (with \), and
4301    # we should not choose a depcomp mode which is confused by this.
4302    #
4303    # We need to recreate these files for each test, as the compiler may
4304    # overwrite some of them when testing with obscure command lines.
4305    # This happens at least with the AIX C compiler.
4306    : > sub/conftest.c
4307    for i in 1 2 3 4 5 6; do
4308      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4309      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4310      # Solaris 8's {/usr,}/bin/sh.
4311      touch sub/conftst$i.h
4312    done
4313    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4314
4315    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4316    # mode.  It turns out that the SunPro C++ compiler does not properly
4317    # handle `-M -o', and we need to detect this.  Also, some Intel
4318    # versions had trouble with output in subdirs
4319    am__obj=sub/conftest.${OBJEXT-o}
4320    am__minus_obj="-o $am__obj"
4321    case $depmode in
4322    gcc)
4323      # This depmode causes a compiler race in universal mode.
4324      test "$am__universal" = false || continue
4325      ;;
4326    nosideeffect)
4327      # after this tag, mechanisms are not by side-effect, so they'll
4328      # only be used when explicitly requested
4329      if test "x$enable_dependency_tracking" = xyes; then
4330	continue
4331      else
4332	break
4333      fi
4334      ;;
4335    msvisualcpp | msvcmsys)
4336      # This compiler won't grok `-c -o', but also, the minuso test has
4337      # not run yet.  These depmodes are late enough in the game, and
4338      # so weak that their functioning should not be impacted.
4339      am__obj=conftest.${OBJEXT-o}
4340      am__minus_obj=
4341      ;;
4342    none) break ;;
4343    esac
4344    if depmode=$depmode \
4345       source=sub/conftest.c object=$am__obj \
4346       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4347       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4348         >/dev/null 2>conftest.err &&
4349       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4350       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4351       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4352       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4353      # icc doesn't choke on unknown options, it will just issue warnings
4354      # or remarks (even with -Werror).  So we grep stderr for any message
4355      # that says an option was ignored or not supported.
4356      # When given -MP, icc 7.0 and 7.1 complain thusly:
4357      #   icc: Command line warning: ignoring option '-M'; no argument required
4358      # The diagnosis changed in icc 8.0:
4359      #   icc: Command line remark: option '-MP' not supported
4360      if (grep 'ignoring option' conftest.err ||
4361          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4362        am_cv_CC_dependencies_compiler_type=$depmode
4363        break
4364      fi
4365    fi
4366  done
4367
4368  cd ..
4369  rm -rf conftest.dir
4370else
4371  am_cv_CC_dependencies_compiler_type=none
4372fi
4373
4374fi
4375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4376$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4377CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4378
4379 if
4380  test "x$enable_dependency_tracking" != xno \
4381  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4382  am__fastdepCC_TRUE=
4383  am__fastdepCC_FALSE='#'
4384else
4385  am__fastdepCC_TRUE='#'
4386  am__fastdepCC_FALSE=
4387fi
4388
4389
4390
4391ac_ext=c
4392ac_cpp='$CPP $CPPFLAGS'
4393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4395ac_compiler_gnu=$ac_cv_c_compiler_gnu
4396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4397$as_echo_n "checking how to run the C preprocessor... " >&6; }
4398# On Suns, sometimes $CPP names a directory.
4399if test -n "$CPP" && test -d "$CPP"; then
4400  CPP=
4401fi
4402if test -z "$CPP"; then
4403  if test "${ac_cv_prog_CPP+set}" = set; then :
4404  $as_echo_n "(cached) " >&6
4405else
4406      # Double quotes because CPP needs to be expanded
4407    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4408    do
4409      ac_preproc_ok=false
4410for ac_c_preproc_warn_flag in '' yes
4411do
4412  # Use a header file that comes with gcc, so configuring glibc
4413  # with a fresh cross-compiler works.
4414  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4415  # <limits.h> exists even on freestanding compilers.
4416  # On the NeXT, cc -E runs the code through the compiler's parser,
4417  # not just through cpp. "Syntax error" is here to catch this case.
4418  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4419/* end confdefs.h.  */
4420#ifdef __STDC__
4421# include <limits.h>
4422#else
4423# include <assert.h>
4424#endif
4425		     Syntax error
4426_ACEOF
4427if ac_fn_c_try_cpp "$LINENO"; then :
4428
4429else
4430  # Broken: fails on valid input.
4431continue
4432fi
4433rm -f conftest.err conftest.i conftest.$ac_ext
4434
4435  # OK, works on sane cases.  Now check whether nonexistent headers
4436  # can be detected and how.
4437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438/* end confdefs.h.  */
4439#include <ac_nonexistent.h>
4440_ACEOF
4441if ac_fn_c_try_cpp "$LINENO"; then :
4442  # Broken: success on invalid input.
4443continue
4444else
4445  # Passes both tests.
4446ac_preproc_ok=:
4447break
4448fi
4449rm -f conftest.err conftest.i conftest.$ac_ext
4450
4451done
4452# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4453rm -f conftest.i conftest.err conftest.$ac_ext
4454if $ac_preproc_ok; then :
4455  break
4456fi
4457
4458    done
4459    ac_cv_prog_CPP=$CPP
4460
4461fi
4462  CPP=$ac_cv_prog_CPP
4463else
4464  ac_cv_prog_CPP=$CPP
4465fi
4466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4467$as_echo "$CPP" >&6; }
4468ac_preproc_ok=false
4469for ac_c_preproc_warn_flag in '' yes
4470do
4471  # Use a header file that comes with gcc, so configuring glibc
4472  # with a fresh cross-compiler works.
4473  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4474  # <limits.h> exists even on freestanding compilers.
4475  # On the NeXT, cc -E runs the code through the compiler's parser,
4476  # not just through cpp. "Syntax error" is here to catch this case.
4477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4478/* end confdefs.h.  */
4479#ifdef __STDC__
4480# include <limits.h>
4481#else
4482# include <assert.h>
4483#endif
4484		     Syntax error
4485_ACEOF
4486if ac_fn_c_try_cpp "$LINENO"; then :
4487
4488else
4489  # Broken: fails on valid input.
4490continue
4491fi
4492rm -f conftest.err conftest.i conftest.$ac_ext
4493
4494  # OK, works on sane cases.  Now check whether nonexistent headers
4495  # can be detected and how.
4496  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4497/* end confdefs.h.  */
4498#include <ac_nonexistent.h>
4499_ACEOF
4500if ac_fn_c_try_cpp "$LINENO"; then :
4501  # Broken: success on invalid input.
4502continue
4503else
4504  # Passes both tests.
4505ac_preproc_ok=:
4506break
4507fi
4508rm -f conftest.err conftest.i conftest.$ac_ext
4509
4510done
4511# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4512rm -f conftest.i conftest.err conftest.$ac_ext
4513if $ac_preproc_ok; then :
4514
4515else
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 $? "C preprocessor \"$CPP\" fails sanity check
4519See \`config.log' for more details" "$LINENO" 5 ; }
4520fi
4521
4522ac_ext=c
4523ac_cpp='$CPP $CPPFLAGS'
4524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4526ac_compiler_gnu=$ac_cv_c_compiler_gnu
4527
4528
4529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4530$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4531if test "${ac_cv_path_GREP+set}" = set; then :
4532  $as_echo_n "(cached) " >&6
4533else
4534  if test -z "$GREP"; then
4535  ac_path_GREP_found=false
4536  # Loop through the user's path and test for each of PROGNAME-LIST
4537  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4539do
4540  IFS=$as_save_IFS
4541  test -z "$as_dir" && as_dir=.
4542    for ac_prog in grep ggrep; do
4543    for ac_exec_ext in '' $ac_executable_extensions; do
4544      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4545      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4546# Check for GNU ac_path_GREP and select it if it is found.
4547  # Check for GNU $ac_path_GREP
4548case `"$ac_path_GREP" --version 2>&1` in
4549*GNU*)
4550  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4551*)
4552  ac_count=0
4553  $as_echo_n 0123456789 >"conftest.in"
4554  while :
4555  do
4556    cat "conftest.in" "conftest.in" >"conftest.tmp"
4557    mv "conftest.tmp" "conftest.in"
4558    cp "conftest.in" "conftest.nl"
4559    $as_echo 'GREP' >> "conftest.nl"
4560    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4561    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4562    as_fn_arith $ac_count + 1 && ac_count=$as_val
4563    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4564      # Best one so far, save it but keep looking for a better one
4565      ac_cv_path_GREP="$ac_path_GREP"
4566      ac_path_GREP_max=$ac_count
4567    fi
4568    # 10*(2^10) chars as input seems more than enough
4569    test $ac_count -gt 10 && break
4570  done
4571  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4572esac
4573
4574      $ac_path_GREP_found && break 3
4575    done
4576  done
4577  done
4578IFS=$as_save_IFS
4579  if test -z "$ac_cv_path_GREP"; then
4580    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4581  fi
4582else
4583  ac_cv_path_GREP=$GREP
4584fi
4585
4586fi
4587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4588$as_echo "$ac_cv_path_GREP" >&6; }
4589 GREP="$ac_cv_path_GREP"
4590
4591
4592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4593$as_echo_n "checking for egrep... " >&6; }
4594if test "${ac_cv_path_EGREP+set}" = set; then :
4595  $as_echo_n "(cached) " >&6
4596else
4597  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4598   then ac_cv_path_EGREP="$GREP -E"
4599   else
4600     if test -z "$EGREP"; then
4601  ac_path_EGREP_found=false
4602  # Loop through the user's path and test for each of PROGNAME-LIST
4603  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4605do
4606  IFS=$as_save_IFS
4607  test -z "$as_dir" && as_dir=.
4608    for ac_prog in egrep; do
4609    for ac_exec_ext in '' $ac_executable_extensions; do
4610      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4611      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4612# Check for GNU ac_path_EGREP and select it if it is found.
4613  # Check for GNU $ac_path_EGREP
4614case `"$ac_path_EGREP" --version 2>&1` in
4615*GNU*)
4616  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4617*)
4618  ac_count=0
4619  $as_echo_n 0123456789 >"conftest.in"
4620  while :
4621  do
4622    cat "conftest.in" "conftest.in" >"conftest.tmp"
4623    mv "conftest.tmp" "conftest.in"
4624    cp "conftest.in" "conftest.nl"
4625    $as_echo 'EGREP' >> "conftest.nl"
4626    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4627    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4628    as_fn_arith $ac_count + 1 && ac_count=$as_val
4629    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4630      # Best one so far, save it but keep looking for a better one
4631      ac_cv_path_EGREP="$ac_path_EGREP"
4632      ac_path_EGREP_max=$ac_count
4633    fi
4634    # 10*(2^10) chars as input seems more than enough
4635    test $ac_count -gt 10 && break
4636  done
4637  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4638esac
4639
4640      $ac_path_EGREP_found && break 3
4641    done
4642  done
4643  done
4644IFS=$as_save_IFS
4645  if test -z "$ac_cv_path_EGREP"; then
4646    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4647  fi
4648else
4649  ac_cv_path_EGREP=$EGREP
4650fi
4651
4652   fi
4653fi
4654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4655$as_echo "$ac_cv_path_EGREP" >&6; }
4656 EGREP="$ac_cv_path_EGREP"
4657
4658
4659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4660$as_echo_n "checking for ANSI C header files... " >&6; }
4661if test "${ac_cv_header_stdc+set}" = set; then :
4662  $as_echo_n "(cached) " >&6
4663else
4664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665/* end confdefs.h.  */
4666#include <stdlib.h>
4667#include <stdarg.h>
4668#include <string.h>
4669#include <float.h>
4670
4671int
4672main ()
4673{
4674
4675  ;
4676  return 0;
4677}
4678_ACEOF
4679if ac_fn_c_try_compile "$LINENO"; then :
4680  ac_cv_header_stdc=yes
4681else
4682  ac_cv_header_stdc=no
4683fi
4684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4685
4686if test $ac_cv_header_stdc = yes; then
4687  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4689/* end confdefs.h.  */
4690#include <string.h>
4691
4692_ACEOF
4693if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4694  $EGREP "memchr" >/dev/null 2>&1; then :
4695
4696else
4697  ac_cv_header_stdc=no
4698fi
4699rm -f conftest*
4700
4701fi
4702
4703if test $ac_cv_header_stdc = yes; then
4704  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4706/* end confdefs.h.  */
4707#include <stdlib.h>
4708
4709_ACEOF
4710if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4711  $EGREP "free" >/dev/null 2>&1; then :
4712
4713else
4714  ac_cv_header_stdc=no
4715fi
4716rm -f conftest*
4717
4718fi
4719
4720if test $ac_cv_header_stdc = yes; then
4721  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4722  if test "$cross_compiling" = yes; then :
4723  :
4724else
4725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4726/* end confdefs.h.  */
4727#include <ctype.h>
4728#include <stdlib.h>
4729#if ((' ' & 0x0FF) == 0x020)
4730# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4731# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4732#else
4733# define ISLOWER(c) \
4734		   (('a' <= (c) && (c) <= 'i') \
4735		     || ('j' <= (c) && (c) <= 'r') \
4736		     || ('s' <= (c) && (c) <= 'z'))
4737# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4738#endif
4739
4740#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4741int
4742main ()
4743{
4744  int i;
4745  for (i = 0; i < 256; i++)
4746    if (XOR (islower (i), ISLOWER (i))
4747	|| toupper (i) != TOUPPER (i))
4748      return 2;
4749  return 0;
4750}
4751_ACEOF
4752if ac_fn_c_try_run "$LINENO"; then :
4753
4754else
4755  ac_cv_header_stdc=no
4756fi
4757rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4758  conftest.$ac_objext conftest.beam conftest.$ac_ext
4759fi
4760
4761fi
4762fi
4763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4764$as_echo "$ac_cv_header_stdc" >&6; }
4765if test $ac_cv_header_stdc = yes; then
4766
4767$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4768
4769fi
4770
4771# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4772for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4773		  inttypes.h stdint.h unistd.h
4774do :
4775  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4776ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4777"
4778if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4779  cat >>confdefs.h <<_ACEOF
4780#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4781_ACEOF
4782
4783fi
4784
4785done
4786
4787
4788
4789  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4790if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4791  MINIX=yes
4792else
4793  MINIX=
4794fi
4795
4796
4797  if test "$MINIX" = yes; then
4798
4799$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4800
4801
4802$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4803
4804
4805$as_echo "#define _MINIX 1" >>confdefs.h
4806
4807  fi
4808
4809
4810  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4811$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4812if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4813  $as_echo_n "(cached) " >&6
4814else
4815  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4816/* end confdefs.h.  */
4817
4818#	  define __EXTENSIONS__ 1
4819	  $ac_includes_default
4820int
4821main ()
4822{
4823
4824  ;
4825  return 0;
4826}
4827_ACEOF
4828if ac_fn_c_try_compile "$LINENO"; then :
4829  ac_cv_safe_to_define___extensions__=yes
4830else
4831  ac_cv_safe_to_define___extensions__=no
4832fi
4833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4834fi
4835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4836$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4837  test $ac_cv_safe_to_define___extensions__ = yes &&
4838    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4839
4840  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4841
4842  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4843
4844  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4845
4846  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4847
4848
4849
4850
4851
4852  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4853$as_echo_n "checking whether NLS is requested... " >&6; }
4854    # Check whether --enable-nls was given.
4855if test "${enable_nls+set}" = set; then :
4856  enableval=$enable_nls; USE_NLS=$enableval
4857else
4858  USE_NLS=yes
4859fi
4860
4861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4862$as_echo "$USE_NLS" >&6; }
4863
4864
4865
4866
4867      GETTEXT_MACRO_VERSION=0.18
4868
4869
4870
4871
4872# Prepare PATH_SEPARATOR.
4873# The user is always right.
4874if test "${PATH_SEPARATOR+set}" != set; then
4875  echo "#! /bin/sh" >conf$$.sh
4876  echo  "exit 0"   >>conf$$.sh
4877  chmod +x conf$$.sh
4878  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4879    PATH_SEPARATOR=';'
4880  else
4881    PATH_SEPARATOR=:
4882  fi
4883  rm -f conf$$.sh
4884fi
4885
4886# Find out how to test for executable files. Don't use a zero-byte file,
4887# as systems may use methods other than mode bits to determine executability.
4888cat >conf$$.file <<_ASEOF
4889#! /bin/sh
4890exit 0
4891_ASEOF
4892chmod +x conf$$.file
4893if test -x conf$$.file >/dev/null 2>&1; then
4894  ac_executable_p="test -x"
4895else
4896  ac_executable_p="test -f"
4897fi
4898rm -f conf$$.file
4899
4900# Extract the first word of "msgfmt", so it can be a program name with args.
4901set dummy msgfmt; ac_word=$2
4902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4903$as_echo_n "checking for $ac_word... " >&6; }
4904if test "${ac_cv_path_MSGFMT+set}" = set; then :
4905  $as_echo_n "(cached) " >&6
4906else
4907  case "$MSGFMT" in
4908  [\\/]* | ?:[\\/]*)
4909    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4910    ;;
4911  *)
4912    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4913    for ac_dir in $PATH; do
4914      IFS="$ac_save_IFS"
4915      test -z "$ac_dir" && ac_dir=.
4916      for ac_exec_ext in '' $ac_executable_extensions; do
4917        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4918          echo "$as_me: trying $ac_dir/$ac_word..." >&5
4919          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4920     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4921            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4922            break 2
4923          fi
4924        fi
4925      done
4926    done
4927    IFS="$ac_save_IFS"
4928  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4929    ;;
4930esac
4931fi
4932MSGFMT="$ac_cv_path_MSGFMT"
4933if test "$MSGFMT" != ":"; then
4934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4935$as_echo "$MSGFMT" >&6; }
4936else
4937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4938$as_echo "no" >&6; }
4939fi
4940
4941  # Extract the first word of "gmsgfmt", so it can be a program name with args.
4942set dummy gmsgfmt; ac_word=$2
4943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4944$as_echo_n "checking for $ac_word... " >&6; }
4945if test "${ac_cv_path_GMSGFMT+set}" = set; then :
4946  $as_echo_n "(cached) " >&6
4947else
4948  case $GMSGFMT in
4949  [\\/]* | ?:[\\/]*)
4950  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4951  ;;
4952  *)
4953  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954for as_dir in $PATH
4955do
4956  IFS=$as_save_IFS
4957  test -z "$as_dir" && as_dir=.
4958    for ac_exec_ext in '' $ac_executable_extensions; do
4959  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4960    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4961    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4962    break 2
4963  fi
4964done
4965  done
4966IFS=$as_save_IFS
4967
4968  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4969  ;;
4970esac
4971fi
4972GMSGFMT=$ac_cv_path_GMSGFMT
4973if test -n "$GMSGFMT"; then
4974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
4975$as_echo "$GMSGFMT" >&6; }
4976else
4977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4978$as_echo "no" >&6; }
4979fi
4980
4981
4982
4983    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4984    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
4985    *) MSGFMT_015=$MSGFMT ;;
4986  esac
4987
4988  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4989    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
4990    *) GMSGFMT_015=$GMSGFMT ;;
4991  esac
4992
4993
4994
4995# Prepare PATH_SEPARATOR.
4996# The user is always right.
4997if test "${PATH_SEPARATOR+set}" != set; then
4998  echo "#! /bin/sh" >conf$$.sh
4999  echo  "exit 0"   >>conf$$.sh
5000  chmod +x conf$$.sh
5001  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5002    PATH_SEPARATOR=';'
5003  else
5004    PATH_SEPARATOR=:
5005  fi
5006  rm -f conf$$.sh
5007fi
5008
5009# Find out how to test for executable files. Don't use a zero-byte file,
5010# as systems may use methods other than mode bits to determine executability.
5011cat >conf$$.file <<_ASEOF
5012#! /bin/sh
5013exit 0
5014_ASEOF
5015chmod +x conf$$.file
5016if test -x conf$$.file >/dev/null 2>&1; then
5017  ac_executable_p="test -x"
5018else
5019  ac_executable_p="test -f"
5020fi
5021rm -f conf$$.file
5022
5023# Extract the first word of "xgettext", so it can be a program name with args.
5024set dummy xgettext; ac_word=$2
5025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5026$as_echo_n "checking for $ac_word... " >&6; }
5027if test "${ac_cv_path_XGETTEXT+set}" = set; then :
5028  $as_echo_n "(cached) " >&6
5029else
5030  case "$XGETTEXT" in
5031  [\\/]* | ?:[\\/]*)
5032    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5033    ;;
5034  *)
5035    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5036    for ac_dir in $PATH; do
5037      IFS="$ac_save_IFS"
5038      test -z "$ac_dir" && ac_dir=.
5039      for ac_exec_ext in '' $ac_executable_extensions; do
5040        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5041          echo "$as_me: trying $ac_dir/$ac_word..." >&5
5042          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5043     (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
5044            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5045            break 2
5046          fi
5047        fi
5048      done
5049    done
5050    IFS="$ac_save_IFS"
5051  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5052    ;;
5053esac
5054fi
5055XGETTEXT="$ac_cv_path_XGETTEXT"
5056if test "$XGETTEXT" != ":"; then
5057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5058$as_echo "$XGETTEXT" >&6; }
5059else
5060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5061$as_echo "no" >&6; }
5062fi
5063
5064    rm -f messages.po
5065
5066    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5067    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
5068    *) XGETTEXT_015=$XGETTEXT ;;
5069  esac
5070
5071
5072
5073# Prepare PATH_SEPARATOR.
5074# The user is always right.
5075if test "${PATH_SEPARATOR+set}" != set; then
5076  echo "#! /bin/sh" >conf$$.sh
5077  echo  "exit 0"   >>conf$$.sh
5078  chmod +x conf$$.sh
5079  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5080    PATH_SEPARATOR=';'
5081  else
5082    PATH_SEPARATOR=:
5083  fi
5084  rm -f conf$$.sh
5085fi
5086
5087# Find out how to test for executable files. Don't use a zero-byte file,
5088# as systems may use methods other than mode bits to determine executability.
5089cat >conf$$.file <<_ASEOF
5090#! /bin/sh
5091exit 0
5092_ASEOF
5093chmod +x conf$$.file
5094if test -x conf$$.file >/dev/null 2>&1; then
5095  ac_executable_p="test -x"
5096else
5097  ac_executable_p="test -f"
5098fi
5099rm -f conf$$.file
5100
5101# Extract the first word of "msgmerge", so it can be a program name with args.
5102set dummy msgmerge; ac_word=$2
5103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5104$as_echo_n "checking for $ac_word... " >&6; }
5105if test "${ac_cv_path_MSGMERGE+set}" = set; then :
5106  $as_echo_n "(cached) " >&6
5107else
5108  case "$MSGMERGE" in
5109  [\\/]* | ?:[\\/]*)
5110    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5111    ;;
5112  *)
5113    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5114    for ac_dir in $PATH; do
5115      IFS="$ac_save_IFS"
5116      test -z "$ac_dir" && ac_dir=.
5117      for ac_exec_ext in '' $ac_executable_extensions; do
5118        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5119          echo "$as_me: trying $ac_dir/$ac_word..." >&5
5120          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5121            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5122            break 2
5123          fi
5124        fi
5125      done
5126    done
5127    IFS="$ac_save_IFS"
5128  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5129    ;;
5130esac
5131fi
5132MSGMERGE="$ac_cv_path_MSGMERGE"
5133if test "$MSGMERGE" != ":"; then
5134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5135$as_echo "$MSGMERGE" >&6; }
5136else
5137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5138$as_echo "no" >&6; }
5139fi
5140
5141
5142        test -n "$localedir" || localedir='${datadir}/locale'
5143
5144
5145    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
5146
5147
5148  ac_config_commands="$ac_config_commands po-directories"
5149
5150
5151
5152      if test "X$prefix" = "XNONE"; then
5153    acl_final_prefix="$ac_default_prefix"
5154  else
5155    acl_final_prefix="$prefix"
5156  fi
5157  if test "X$exec_prefix" = "XNONE"; then
5158    acl_final_exec_prefix='${prefix}'
5159  else
5160    acl_final_exec_prefix="$exec_prefix"
5161  fi
5162  acl_save_prefix="$prefix"
5163  prefix="$acl_final_prefix"
5164  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5165  prefix="$acl_save_prefix"
5166
5167
5168# Check whether --with-gnu-ld was given.
5169if test "${with_gnu_ld+set}" = set; then :
5170  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5171else
5172  with_gnu_ld=no
5173fi
5174
5175# Prepare PATH_SEPARATOR.
5176# The user is always right.
5177if test "${PATH_SEPARATOR+set}" != set; then
5178  echo "#! /bin/sh" >conf$$.sh
5179  echo  "exit 0"   >>conf$$.sh
5180  chmod +x conf$$.sh
5181  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5182    PATH_SEPARATOR=';'
5183  else
5184    PATH_SEPARATOR=:
5185  fi
5186  rm -f conf$$.sh
5187fi
5188ac_prog=ld
5189if test "$GCC" = yes; then
5190  # Check if gcc -print-prog-name=ld gives a path.
5191  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5192$as_echo_n "checking for ld used by GCC... " >&6; }
5193  case $host in
5194  *-*-mingw*)
5195    # gcc leaves a trailing carriage return which upsets mingw
5196    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5197  *)
5198    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5199  esac
5200  case $ac_prog in
5201    # Accept absolute paths.
5202    [\\/]* | [A-Za-z]:[\\/]*)
5203      re_direlt='/[^/][^/]*/\.\./'
5204      # Canonicalize the path of ld
5205      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5206      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5207        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5208      done
5209      test -z "$LD" && LD="$ac_prog"
5210      ;;
5211  "")
5212    # If it fails, then pretend we aren't using GCC.
5213    ac_prog=ld
5214    ;;
5215  *)
5216    # If it is relative, then search for the first ld in PATH.
5217    with_gnu_ld=unknown
5218    ;;
5219  esac
5220elif test "$with_gnu_ld" = yes; then
5221  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5222$as_echo_n "checking for GNU ld... " >&6; }
5223else
5224  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5225$as_echo_n "checking for non-GNU ld... " >&6; }
5226fi
5227if test "${acl_cv_path_LD+set}" = set; then :
5228  $as_echo_n "(cached) " >&6
5229else
5230  if test -z "$LD"; then
5231  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5232  for ac_dir in $PATH; do
5233    test -z "$ac_dir" && ac_dir=.
5234    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5235      acl_cv_path_LD="$ac_dir/$ac_prog"
5236      # Check to see if the program is GNU ld.  I'd rather use --version,
5237      # but apparently some GNU ld's only accept -v.
5238      # Break only if it was the GNU/non-GNU ld that we prefer.
5239      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5240      *GNU* | *'with BFD'*)
5241        test "$with_gnu_ld" != no && break ;;
5242      *)
5243        test "$with_gnu_ld" != yes && break ;;
5244      esac
5245    fi
5246  done
5247  IFS="$ac_save_ifs"
5248else
5249  acl_cv_path_LD="$LD" # Let the user override the test with a path.
5250fi
5251fi
5252
5253LD="$acl_cv_path_LD"
5254if test -n "$LD"; then
5255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5256$as_echo "$LD" >&6; }
5257else
5258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5259$as_echo "no" >&6; }
5260fi
5261test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5263$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5264if test "${acl_cv_prog_gnu_ld+set}" = set; then :
5265  $as_echo_n "(cached) " >&6
5266else
5267  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5268case `$LD -v 2>&1 </dev/null` in
5269*GNU* | *'with BFD'*)
5270  acl_cv_prog_gnu_ld=yes ;;
5271*)
5272  acl_cv_prog_gnu_ld=no ;;
5273esac
5274fi
5275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5276$as_echo "$acl_cv_prog_gnu_ld" >&6; }
5277with_gnu_ld=$acl_cv_prog_gnu_ld
5278
5279
5280
5281
5282                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5283$as_echo_n "checking for shared library run path origin... " >&6; }
5284if test "${acl_cv_rpath+set}" = set; then :
5285  $as_echo_n "(cached) " >&6
5286else
5287
5288    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5289    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5290    . ./conftest.sh
5291    rm -f ./conftest.sh
5292    acl_cv_rpath=done
5293
5294fi
5295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5296$as_echo "$acl_cv_rpath" >&6; }
5297  wl="$acl_cv_wl"
5298  acl_libext="$acl_cv_libext"
5299  acl_shlibext="$acl_cv_shlibext"
5300  acl_libname_spec="$acl_cv_libname_spec"
5301  acl_library_names_spec="$acl_cv_library_names_spec"
5302  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5303  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5304  acl_hardcode_direct="$acl_cv_hardcode_direct"
5305  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5306    # Check whether --enable-rpath was given.
5307if test "${enable_rpath+set}" = set; then :
5308  enableval=$enable_rpath; :
5309else
5310  enable_rpath=yes
5311fi
5312
5313
5314
5315
5316  acl_libdirstem=lib
5317  acl_libdirstem2=
5318  case "$host_os" in
5319    solaris*)
5320                                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5321$as_echo_n "checking for 64-bit host... " >&6; }
5322if test "${gl_cv_solaris_64bit+set}" = set; then :
5323  $as_echo_n "(cached) " >&6
5324else
5325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326/* end confdefs.h.  */
5327
5328#ifdef _LP64
5329sixtyfour bits
5330#endif
5331
5332_ACEOF
5333if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5334  $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
5335  gl_cv_solaris_64bit=yes
5336else
5337  gl_cv_solaris_64bit=no
5338fi
5339rm -f conftest*
5340
5341
5342fi
5343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
5344$as_echo "$gl_cv_solaris_64bit" >&6; }
5345      if test $gl_cv_solaris_64bit = yes; then
5346        acl_libdirstem=lib/64
5347        case "$host_cpu" in
5348          sparc*)        acl_libdirstem2=lib/sparcv9 ;;
5349          i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
5350        esac
5351      fi
5352      ;;
5353    *)
5354      searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5355      if test -n "$searchpath"; then
5356        acl_save_IFS="${IFS= 	}"; IFS=":"
5357        for searchdir in $searchpath; do
5358          if test -d "$searchdir"; then
5359            case "$searchdir" in
5360              */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5361              */../ | */.. )
5362                # Better ignore directories of this form. They are misleading.
5363                ;;
5364              *) searchdir=`cd "$searchdir" && pwd`
5365                 case "$searchdir" in
5366                   */lib64 ) acl_libdirstem=lib64 ;;
5367                 esac ;;
5368            esac
5369          fi
5370        done
5371        IFS="$acl_save_IFS"
5372      fi
5373      ;;
5374  esac
5375  test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388    use_additional=yes
5389
5390  acl_save_prefix="$prefix"
5391  prefix="$acl_final_prefix"
5392  acl_save_exec_prefix="$exec_prefix"
5393  exec_prefix="$acl_final_exec_prefix"
5394
5395    eval additional_includedir=\"$includedir\"
5396    eval additional_libdir=\"$libdir\"
5397
5398  exec_prefix="$acl_save_exec_prefix"
5399  prefix="$acl_save_prefix"
5400
5401
5402# Check whether --with-libiconv-prefix was given.
5403if test "${with_libiconv_prefix+set}" = set; then :
5404  withval=$with_libiconv_prefix;
5405    if test "X$withval" = "Xno"; then
5406      use_additional=no
5407    else
5408      if test "X$withval" = "X"; then
5409
5410  acl_save_prefix="$prefix"
5411  prefix="$acl_final_prefix"
5412  acl_save_exec_prefix="$exec_prefix"
5413  exec_prefix="$acl_final_exec_prefix"
5414
5415          eval additional_includedir=\"$includedir\"
5416          eval additional_libdir=\"$libdir\"
5417
5418  exec_prefix="$acl_save_exec_prefix"
5419  prefix="$acl_save_prefix"
5420
5421      else
5422        additional_includedir="$withval/include"
5423        additional_libdir="$withval/$acl_libdirstem"
5424        if test "$acl_libdirstem2" != "$acl_libdirstem" \
5425           && ! test -d "$withval/$acl_libdirstem"; then
5426          additional_libdir="$withval/$acl_libdirstem2"
5427        fi
5428      fi
5429    fi
5430
5431fi
5432
5433      LIBICONV=
5434  LTLIBICONV=
5435  INCICONV=
5436  LIBICONV_PREFIX=
5437      HAVE_LIBICONV=
5438  rpathdirs=
5439  ltrpathdirs=
5440  names_already_handled=
5441  names_next_round='iconv '
5442  while test -n "$names_next_round"; do
5443    names_this_round="$names_next_round"
5444    names_next_round=
5445    for name in $names_this_round; do
5446      already_handled=
5447      for n in $names_already_handled; do
5448        if test "$n" = "$name"; then
5449          already_handled=yes
5450          break
5451        fi
5452      done
5453      if test -z "$already_handled"; then
5454        names_already_handled="$names_already_handled $name"
5455                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5456        eval value=\"\$HAVE_LIB$uppername\"
5457        if test -n "$value"; then
5458          if test "$value" = yes; then
5459            eval value=\"\$LIB$uppername\"
5460            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5461            eval value=\"\$LTLIB$uppername\"
5462            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5463          else
5464                                    :
5465          fi
5466        else
5467                              found_dir=
5468          found_la=
5469          found_so=
5470          found_a=
5471          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
5472          if test -n "$acl_shlibext"; then
5473            shrext=".$acl_shlibext"             # typically: shrext=.so
5474          else
5475            shrext=
5476          fi
5477          if test $use_additional = yes; then
5478            dir="$additional_libdir"
5479                                    if test -n "$acl_shlibext"; then
5480              if test -f "$dir/$libname$shrext"; then
5481                found_dir="$dir"
5482                found_so="$dir/$libname$shrext"
5483              else
5484                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5485                  ver=`(cd "$dir" && \
5486                        for f in "$libname$shrext".*; do echo "$f"; done \
5487                        | sed -e "s,^$libname$shrext\\\\.,," \
5488                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5489                        | sed 1q ) 2>/dev/null`
5490                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5491                    found_dir="$dir"
5492                    found_so="$dir/$libname$shrext.$ver"
5493                  fi
5494                else
5495                  eval library_names=\"$acl_library_names_spec\"
5496                  for f in $library_names; do
5497                    if test -f "$dir/$f"; then
5498                      found_dir="$dir"
5499                      found_so="$dir/$f"
5500                      break
5501                    fi
5502                  done
5503                fi
5504              fi
5505            fi
5506                        if test "X$found_dir" = "X"; then
5507              if test -f "$dir/$libname.$acl_libext"; then
5508                found_dir="$dir"
5509                found_a="$dir/$libname.$acl_libext"
5510              fi
5511            fi
5512            if test "X$found_dir" != "X"; then
5513              if test -f "$dir/$libname.la"; then
5514                found_la="$dir/$libname.la"
5515              fi
5516            fi
5517          fi
5518          if test "X$found_dir" = "X"; then
5519            for x in $LDFLAGS $LTLIBICONV; do
5520
5521  acl_save_prefix="$prefix"
5522  prefix="$acl_final_prefix"
5523  acl_save_exec_prefix="$exec_prefix"
5524  exec_prefix="$acl_final_exec_prefix"
5525  eval x=\"$x\"
5526  exec_prefix="$acl_save_exec_prefix"
5527  prefix="$acl_save_prefix"
5528
5529              case "$x" in
5530                -L*)
5531                  dir=`echo "X$x" | sed -e 's/^X-L//'`
5532                                    if test -n "$acl_shlibext"; then
5533                    if test -f "$dir/$libname$shrext"; then
5534                      found_dir="$dir"
5535                      found_so="$dir/$libname$shrext"
5536                    else
5537                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5538                        ver=`(cd "$dir" && \
5539                              for f in "$libname$shrext".*; do echo "$f"; done \
5540                              | sed -e "s,^$libname$shrext\\\\.,," \
5541                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5542                              | sed 1q ) 2>/dev/null`
5543                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5544                          found_dir="$dir"
5545                          found_so="$dir/$libname$shrext.$ver"
5546                        fi
5547                      else
5548                        eval library_names=\"$acl_library_names_spec\"
5549                        for f in $library_names; do
5550                          if test -f "$dir/$f"; then
5551                            found_dir="$dir"
5552                            found_so="$dir/$f"
5553                            break
5554                          fi
5555                        done
5556                      fi
5557                    fi
5558                  fi
5559                                    if test "X$found_dir" = "X"; then
5560                    if test -f "$dir/$libname.$acl_libext"; then
5561                      found_dir="$dir"
5562                      found_a="$dir/$libname.$acl_libext"
5563                    fi
5564                  fi
5565                  if test "X$found_dir" != "X"; then
5566                    if test -f "$dir/$libname.la"; then
5567                      found_la="$dir/$libname.la"
5568                    fi
5569                  fi
5570                  ;;
5571              esac
5572              if test "X$found_dir" != "X"; then
5573                break
5574              fi
5575            done
5576          fi
5577          if test "X$found_dir" != "X"; then
5578                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5579            if test "X$found_so" != "X"; then
5580                                                        if test "$enable_rpath" = no \
5581                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5582                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5583                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5584              else
5585                                                                                haveit=
5586                for x in $ltrpathdirs; do
5587                  if test "X$x" = "X$found_dir"; then
5588                    haveit=yes
5589                    break
5590                  fi
5591                done
5592                if test -z "$haveit"; then
5593                  ltrpathdirs="$ltrpathdirs $found_dir"
5594                fi
5595                                if test "$acl_hardcode_direct" = yes; then
5596                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5597                else
5598                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5599                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5600                                                            haveit=
5601                    for x in $rpathdirs; do
5602                      if test "X$x" = "X$found_dir"; then
5603                        haveit=yes
5604                        break
5605                      fi
5606                    done
5607                    if test -z "$haveit"; then
5608                      rpathdirs="$rpathdirs $found_dir"
5609                    fi
5610                  else
5611                                                                                haveit=
5612                    for x in $LDFLAGS $LIBICONV; do
5613
5614  acl_save_prefix="$prefix"
5615  prefix="$acl_final_prefix"
5616  acl_save_exec_prefix="$exec_prefix"
5617  exec_prefix="$acl_final_exec_prefix"
5618  eval x=\"$x\"
5619  exec_prefix="$acl_save_exec_prefix"
5620  prefix="$acl_save_prefix"
5621
5622                      if test "X$x" = "X-L$found_dir"; then
5623                        haveit=yes
5624                        break
5625                      fi
5626                    done
5627                    if test -z "$haveit"; then
5628                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5629                    fi
5630                    if test "$acl_hardcode_minus_L" != no; then
5631                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5632                    else
5633                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5634                    fi
5635                  fi
5636                fi
5637              fi
5638            else
5639              if test "X$found_a" != "X"; then
5640                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5641              else
5642                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5643              fi
5644            fi
5645                        additional_includedir=
5646            case "$found_dir" in
5647              */$acl_libdirstem | */$acl_libdirstem/)
5648                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5649                if test "$name" = 'iconv'; then
5650                  LIBICONV_PREFIX="$basedir"
5651                fi
5652                additional_includedir="$basedir/include"
5653                ;;
5654              */$acl_libdirstem2 | */$acl_libdirstem2/)
5655                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5656                if test "$name" = 'iconv'; then
5657                  LIBICONV_PREFIX="$basedir"
5658                fi
5659                additional_includedir="$basedir/include"
5660                ;;
5661            esac
5662            if test "X$additional_includedir" != "X"; then
5663                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
5664                haveit=
5665                if test "X$additional_includedir" = "X/usr/local/include"; then
5666                  if test -n "$GCC"; then
5667                    case $host_os in
5668                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5669                    esac
5670                  fi
5671                fi
5672                if test -z "$haveit"; then
5673                  for x in $CPPFLAGS $INCICONV; do
5674
5675  acl_save_prefix="$prefix"
5676  prefix="$acl_final_prefix"
5677  acl_save_exec_prefix="$exec_prefix"
5678  exec_prefix="$acl_final_exec_prefix"
5679  eval x=\"$x\"
5680  exec_prefix="$acl_save_exec_prefix"
5681  prefix="$acl_save_prefix"
5682
5683                    if test "X$x" = "X-I$additional_includedir"; then
5684                      haveit=yes
5685                      break
5686                    fi
5687                  done
5688                  if test -z "$haveit"; then
5689                    if test -d "$additional_includedir"; then
5690                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5691                    fi
5692                  fi
5693                fi
5694              fi
5695            fi
5696                        if test -n "$found_la"; then
5697                                                        save_libdir="$libdir"
5698              case "$found_la" in
5699                */* | *\\*) . "$found_la" ;;
5700                *) . "./$found_la" ;;
5701              esac
5702              libdir="$save_libdir"
5703                            for dep in $dependency_libs; do
5704                case "$dep" in
5705                  -L*)
5706                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5707                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5708                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5709                      haveit=
5710                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5711                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5712                        if test -n "$GCC"; then
5713                          case $host_os in
5714                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5715                          esac
5716                        fi
5717                      fi
5718                      if test -z "$haveit"; then
5719                        haveit=
5720                        for x in $LDFLAGS $LIBICONV; do
5721
5722  acl_save_prefix="$prefix"
5723  prefix="$acl_final_prefix"
5724  acl_save_exec_prefix="$exec_prefix"
5725  exec_prefix="$acl_final_exec_prefix"
5726  eval x=\"$x\"
5727  exec_prefix="$acl_save_exec_prefix"
5728  prefix="$acl_save_prefix"
5729
5730                          if test "X$x" = "X-L$additional_libdir"; then
5731                            haveit=yes
5732                            break
5733                          fi
5734                        done
5735                        if test -z "$haveit"; then
5736                          if test -d "$additional_libdir"; then
5737                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5738                          fi
5739                        fi
5740                        haveit=
5741                        for x in $LDFLAGS $LTLIBICONV; do
5742
5743  acl_save_prefix="$prefix"
5744  prefix="$acl_final_prefix"
5745  acl_save_exec_prefix="$exec_prefix"
5746  exec_prefix="$acl_final_exec_prefix"
5747  eval x=\"$x\"
5748  exec_prefix="$acl_save_exec_prefix"
5749  prefix="$acl_save_prefix"
5750
5751                          if test "X$x" = "X-L$additional_libdir"; then
5752                            haveit=yes
5753                            break
5754                          fi
5755                        done
5756                        if test -z "$haveit"; then
5757                          if test -d "$additional_libdir"; then
5758                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5759                          fi
5760                        fi
5761                      fi
5762                    fi
5763                    ;;
5764                  -R*)
5765                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
5766                    if test "$enable_rpath" != no; then
5767                                                                  haveit=
5768                      for x in $rpathdirs; do
5769                        if test "X$x" = "X$dir"; then
5770                          haveit=yes
5771                          break
5772                        fi
5773                      done
5774                      if test -z "$haveit"; then
5775                        rpathdirs="$rpathdirs $dir"
5776                      fi
5777                                                                  haveit=
5778                      for x in $ltrpathdirs; do
5779                        if test "X$x" = "X$dir"; then
5780                          haveit=yes
5781                          break
5782                        fi
5783                      done
5784                      if test -z "$haveit"; then
5785                        ltrpathdirs="$ltrpathdirs $dir"
5786                      fi
5787                    fi
5788                    ;;
5789                  -l*)
5790                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5791                    ;;
5792                  *.la)
5793                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5794                    ;;
5795                  *)
5796                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5797                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5798                    ;;
5799                esac
5800              done
5801            fi
5802          else
5803                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5804            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5805          fi
5806        fi
5807      fi
5808    done
5809  done
5810  if test "X$rpathdirs" != "X"; then
5811    if test -n "$acl_hardcode_libdir_separator"; then
5812                        alldirs=
5813      for found_dir in $rpathdirs; do
5814        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5815      done
5816            acl_save_libdir="$libdir"
5817      libdir="$alldirs"
5818      eval flag=\"$acl_hardcode_libdir_flag_spec\"
5819      libdir="$acl_save_libdir"
5820      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5821    else
5822            for found_dir in $rpathdirs; do
5823        acl_save_libdir="$libdir"
5824        libdir="$found_dir"
5825        eval flag=\"$acl_hardcode_libdir_flag_spec\"
5826        libdir="$acl_save_libdir"
5827        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5828      done
5829    fi
5830  fi
5831  if test "X$ltrpathdirs" != "X"; then
5832            for found_dir in $ltrpathdirs; do
5833      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5834    done
5835  fi
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
5868$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
5869if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
5870  $as_echo_n "(cached) " >&6
5871else
5872  gt_save_LIBS="$LIBS"
5873     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5874     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5875/* end confdefs.h.  */
5876#include <CoreFoundation/CFPreferences.h>
5877int
5878main ()
5879{
5880CFPreferencesCopyAppValue(NULL, NULL)
5881  ;
5882  return 0;
5883}
5884_ACEOF
5885if ac_fn_c_try_link "$LINENO"; then :
5886  gt_cv_func_CFPreferencesCopyAppValue=yes
5887else
5888  gt_cv_func_CFPreferencesCopyAppValue=no
5889fi
5890rm -f core conftest.err conftest.$ac_objext \
5891    conftest$ac_exeext conftest.$ac_ext
5892     LIBS="$gt_save_LIBS"
5893fi
5894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5895$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
5896  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5897
5898$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
5899
5900  fi
5901    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
5902$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
5903if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
5904  $as_echo_n "(cached) " >&6
5905else
5906  gt_save_LIBS="$LIBS"
5907     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5908     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5909/* end confdefs.h.  */
5910#include <CoreFoundation/CFLocale.h>
5911int
5912main ()
5913{
5914CFLocaleCopyCurrent();
5915  ;
5916  return 0;
5917}
5918_ACEOF
5919if ac_fn_c_try_link "$LINENO"; then :
5920  gt_cv_func_CFLocaleCopyCurrent=yes
5921else
5922  gt_cv_func_CFLocaleCopyCurrent=no
5923fi
5924rm -f core conftest.err conftest.$ac_objext \
5925    conftest$ac_exeext conftest.$ac_ext
5926     LIBS="$gt_save_LIBS"
5927fi
5928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5929$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
5930  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5931
5932$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
5933
5934  fi
5935  INTL_MACOSX_LIBS=
5936  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5937    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5938  fi
5939
5940
5941
5942
5943
5944
5945  LIBINTL=
5946  LTLIBINTL=
5947  POSUB=
5948
5949    case " $gt_needs " in
5950    *" need-formatstring-macros "*) gt_api_version=3 ;;
5951    *" need-ngettext "*) gt_api_version=2 ;;
5952    *) gt_api_version=1 ;;
5953  esac
5954  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
5955  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
5956
5957    if test "$USE_NLS" = "yes"; then
5958    gt_use_preinstalled_gnugettext=no
5959
5960
5961        if test $gt_api_version -ge 3; then
5962          gt_revision_test_code='
5963#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
5964#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
5965#endif
5966typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
5967'
5968        else
5969          gt_revision_test_code=
5970        fi
5971        if test $gt_api_version -ge 2; then
5972          gt_expression_test_code=' + * ngettext ("", "", 0)'
5973        else
5974          gt_expression_test_code=
5975        fi
5976
5977        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
5978$as_echo_n "checking for GNU gettext in libc... " >&6; }
5979if eval "test \"\${$gt_func_gnugettext_libc+set}\"" = set; then :
5980  $as_echo_n "(cached) " >&6
5981else
5982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5983/* end confdefs.h.  */
5984#include <libintl.h>
5985$gt_revision_test_code
5986extern int _nl_msg_cat_cntr;
5987extern int *_nl_domain_bindings;
5988int
5989main ()
5990{
5991bindtextdomain ("", "");
5992return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
5993  ;
5994  return 0;
5995}
5996_ACEOF
5997if ac_fn_c_try_link "$LINENO"; then :
5998  eval "$gt_func_gnugettext_libc=yes"
5999else
6000  eval "$gt_func_gnugettext_libc=no"
6001fi
6002rm -f core conftest.err conftest.$ac_objext \
6003    conftest$ac_exeext conftest.$ac_ext
6004fi
6005eval ac_res=\$$gt_func_gnugettext_libc
6006	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6007$as_echo "$ac_res" >&6; }
6008
6009        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
6010
6011
6012
6013
6014
6015          am_save_CPPFLAGS="$CPPFLAGS"
6016
6017  for element in $INCICONV; do
6018    haveit=
6019    for x in $CPPFLAGS; do
6020
6021  acl_save_prefix="$prefix"
6022  prefix="$acl_final_prefix"
6023  acl_save_exec_prefix="$exec_prefix"
6024  exec_prefix="$acl_final_exec_prefix"
6025  eval x=\"$x\"
6026  exec_prefix="$acl_save_exec_prefix"
6027  prefix="$acl_save_prefix"
6028
6029      if test "X$x" = "X$element"; then
6030        haveit=yes
6031        break
6032      fi
6033    done
6034    if test -z "$haveit"; then
6035      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6036    fi
6037  done
6038
6039
6040  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6041$as_echo_n "checking for iconv... " >&6; }
6042if test "${am_cv_func_iconv+set}" = set; then :
6043  $as_echo_n "(cached) " >&6
6044else
6045
6046    am_cv_func_iconv="no, consider installing GNU libiconv"
6047    am_cv_lib_iconv=no
6048    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049/* end confdefs.h.  */
6050#include <stdlib.h>
6051#include <iconv.h>
6052int
6053main ()
6054{
6055iconv_t cd = iconv_open("","");
6056       iconv(cd,NULL,NULL,NULL,NULL);
6057       iconv_close(cd);
6058  ;
6059  return 0;
6060}
6061_ACEOF
6062if ac_fn_c_try_link "$LINENO"; then :
6063  am_cv_func_iconv=yes
6064fi
6065rm -f core conftest.err conftest.$ac_objext \
6066    conftest$ac_exeext conftest.$ac_ext
6067    if test "$am_cv_func_iconv" != yes; then
6068      am_save_LIBS="$LIBS"
6069      LIBS="$LIBS $LIBICONV"
6070      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6071/* end confdefs.h.  */
6072#include <stdlib.h>
6073#include <iconv.h>
6074int
6075main ()
6076{
6077iconv_t cd = iconv_open("","");
6078         iconv(cd,NULL,NULL,NULL,NULL);
6079         iconv_close(cd);
6080  ;
6081  return 0;
6082}
6083_ACEOF
6084if ac_fn_c_try_link "$LINENO"; then :
6085  am_cv_lib_iconv=yes
6086        am_cv_func_iconv=yes
6087fi
6088rm -f core conftest.err conftest.$ac_objext \
6089    conftest$ac_exeext conftest.$ac_ext
6090      LIBS="$am_save_LIBS"
6091    fi
6092
6093fi
6094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6095$as_echo "$am_cv_func_iconv" >&6; }
6096  if test "$am_cv_func_iconv" = yes; then
6097    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
6098$as_echo_n "checking for working iconv... " >&6; }
6099if test "${am_cv_func_iconv_works+set}" = set; then :
6100  $as_echo_n "(cached) " >&6
6101else
6102
6103            am_save_LIBS="$LIBS"
6104      if test $am_cv_lib_iconv = yes; then
6105        LIBS="$LIBS $LIBICONV"
6106      fi
6107      if test "$cross_compiling" = yes; then :
6108  case "$host_os" in
6109           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
6110           *)            am_cv_func_iconv_works="guessing yes" ;;
6111         esac
6112else
6113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6114/* end confdefs.h.  */
6115
6116#include <iconv.h>
6117#include <string.h>
6118int main ()
6119{
6120  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
6121     returns.  */
6122  {
6123    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6124    if (cd_utf8_to_88591 != (iconv_t)(-1))
6125      {
6126        static const char input[] = "\342\202\254"; /* EURO SIGN */
6127        char buf[10];
6128        const char *inptr = input;
6129        size_t inbytesleft = strlen (input);
6130        char *outptr = buf;
6131        size_t outbytesleft = sizeof (buf);
6132        size_t res = iconv (cd_utf8_to_88591,
6133                            (char **) &inptr, &inbytesleft,
6134                            &outptr, &outbytesleft);
6135        if (res == 0)
6136          return 1;
6137      }
6138  }
6139  /* Test against Solaris 10 bug: Failures are not distinguishable from
6140     successful returns.  */
6141  {
6142    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
6143    if (cd_ascii_to_88591 != (iconv_t)(-1))
6144      {
6145        static const char input[] = "\263";
6146        char buf[10];
6147        const char *inptr = input;
6148        size_t inbytesleft = strlen (input);
6149        char *outptr = buf;
6150        size_t outbytesleft = sizeof (buf);
6151        size_t res = iconv (cd_ascii_to_88591,
6152                            (char **) &inptr, &inbytesleft,
6153                            &outptr, &outbytesleft);
6154        if (res == 0)
6155          return 1;
6156      }
6157  }
6158#if 0 /* This bug could be worked around by the caller.  */
6159  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
6160  {
6161    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6162    if (cd_88591_to_utf8 != (iconv_t)(-1))
6163      {
6164        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6165        char buf[50];
6166        const char *inptr = input;
6167        size_t inbytesleft = strlen (input);
6168        char *outptr = buf;
6169        size_t outbytesleft = sizeof (buf);
6170        size_t res = iconv (cd_88591_to_utf8,
6171                            (char **) &inptr, &inbytesleft,
6172                            &outptr, &outbytesleft);
6173        if ((int)res > 0)
6174          return 1;
6175      }
6176  }
6177#endif
6178  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
6179     provided.  */
6180  if (/* Try standardized names.  */
6181      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
6182      /* Try IRIX, OSF/1 names.  */
6183      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
6184      /* Try AIX names.  */
6185      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
6186      /* Try HP-UX names.  */
6187      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
6188    return 1;
6189  return 0;
6190}
6191_ACEOF
6192if ac_fn_c_try_run "$LINENO"; then :
6193  am_cv_func_iconv_works=yes
6194else
6195  am_cv_func_iconv_works=no
6196fi
6197rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6198  conftest.$ac_objext conftest.beam conftest.$ac_ext
6199fi
6200
6201      LIBS="$am_save_LIBS"
6202
6203fi
6204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
6205$as_echo "$am_cv_func_iconv_works" >&6; }
6206    case "$am_cv_func_iconv_works" in
6207      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
6208      *)   am_func_iconv=yes ;;
6209    esac
6210  else
6211    am_func_iconv=no am_cv_lib_iconv=no
6212  fi
6213  if test "$am_func_iconv" = yes; then
6214
6215$as_echo "#define HAVE_ICONV 1" >>confdefs.h
6216
6217  fi
6218  if test "$am_cv_lib_iconv" = yes; then
6219    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6220$as_echo_n "checking how to link with libiconv... " >&6; }
6221    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6222$as_echo "$LIBICONV" >&6; }
6223  else
6224            CPPFLAGS="$am_save_CPPFLAGS"
6225    LIBICONV=
6226    LTLIBICONV=
6227  fi
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239    use_additional=yes
6240
6241  acl_save_prefix="$prefix"
6242  prefix="$acl_final_prefix"
6243  acl_save_exec_prefix="$exec_prefix"
6244  exec_prefix="$acl_final_exec_prefix"
6245
6246    eval additional_includedir=\"$includedir\"
6247    eval additional_libdir=\"$libdir\"
6248
6249  exec_prefix="$acl_save_exec_prefix"
6250  prefix="$acl_save_prefix"
6251
6252
6253# Check whether --with-libintl-prefix was given.
6254if test "${with_libintl_prefix+set}" = set; then :
6255  withval=$with_libintl_prefix;
6256    if test "X$withval" = "Xno"; then
6257      use_additional=no
6258    else
6259      if test "X$withval" = "X"; then
6260
6261  acl_save_prefix="$prefix"
6262  prefix="$acl_final_prefix"
6263  acl_save_exec_prefix="$exec_prefix"
6264  exec_prefix="$acl_final_exec_prefix"
6265
6266          eval additional_includedir=\"$includedir\"
6267          eval additional_libdir=\"$libdir\"
6268
6269  exec_prefix="$acl_save_exec_prefix"
6270  prefix="$acl_save_prefix"
6271
6272      else
6273        additional_includedir="$withval/include"
6274        additional_libdir="$withval/$acl_libdirstem"
6275        if test "$acl_libdirstem2" != "$acl_libdirstem" \
6276           && ! test -d "$withval/$acl_libdirstem"; then
6277          additional_libdir="$withval/$acl_libdirstem2"
6278        fi
6279      fi
6280    fi
6281
6282fi
6283
6284      LIBINTL=
6285  LTLIBINTL=
6286  INCINTL=
6287  LIBINTL_PREFIX=
6288      HAVE_LIBINTL=
6289  rpathdirs=
6290  ltrpathdirs=
6291  names_already_handled=
6292  names_next_round='intl '
6293  while test -n "$names_next_round"; do
6294    names_this_round="$names_next_round"
6295    names_next_round=
6296    for name in $names_this_round; do
6297      already_handled=
6298      for n in $names_already_handled; do
6299        if test "$n" = "$name"; then
6300          already_handled=yes
6301          break
6302        fi
6303      done
6304      if test -z "$already_handled"; then
6305        names_already_handled="$names_already_handled $name"
6306                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6307        eval value=\"\$HAVE_LIB$uppername\"
6308        if test -n "$value"; then
6309          if test "$value" = yes; then
6310            eval value=\"\$LIB$uppername\"
6311            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6312            eval value=\"\$LTLIB$uppername\"
6313            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6314          else
6315                                    :
6316          fi
6317        else
6318                              found_dir=
6319          found_la=
6320          found_so=
6321          found_a=
6322          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
6323          if test -n "$acl_shlibext"; then
6324            shrext=".$acl_shlibext"             # typically: shrext=.so
6325          else
6326            shrext=
6327          fi
6328          if test $use_additional = yes; then
6329            dir="$additional_libdir"
6330                                    if test -n "$acl_shlibext"; then
6331              if test -f "$dir/$libname$shrext"; then
6332                found_dir="$dir"
6333                found_so="$dir/$libname$shrext"
6334              else
6335                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6336                  ver=`(cd "$dir" && \
6337                        for f in "$libname$shrext".*; do echo "$f"; done \
6338                        | sed -e "s,^$libname$shrext\\\\.,," \
6339                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6340                        | sed 1q ) 2>/dev/null`
6341                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6342                    found_dir="$dir"
6343                    found_so="$dir/$libname$shrext.$ver"
6344                  fi
6345                else
6346                  eval library_names=\"$acl_library_names_spec\"
6347                  for f in $library_names; do
6348                    if test -f "$dir/$f"; then
6349                      found_dir="$dir"
6350                      found_so="$dir/$f"
6351                      break
6352                    fi
6353                  done
6354                fi
6355              fi
6356            fi
6357                        if test "X$found_dir" = "X"; then
6358              if test -f "$dir/$libname.$acl_libext"; then
6359                found_dir="$dir"
6360                found_a="$dir/$libname.$acl_libext"
6361              fi
6362            fi
6363            if test "X$found_dir" != "X"; then
6364              if test -f "$dir/$libname.la"; then
6365                found_la="$dir/$libname.la"
6366              fi
6367            fi
6368          fi
6369          if test "X$found_dir" = "X"; then
6370            for x in $LDFLAGS $LTLIBINTL; do
6371
6372  acl_save_prefix="$prefix"
6373  prefix="$acl_final_prefix"
6374  acl_save_exec_prefix="$exec_prefix"
6375  exec_prefix="$acl_final_exec_prefix"
6376  eval x=\"$x\"
6377  exec_prefix="$acl_save_exec_prefix"
6378  prefix="$acl_save_prefix"
6379
6380              case "$x" in
6381                -L*)
6382                  dir=`echo "X$x" | sed -e 's/^X-L//'`
6383                                    if test -n "$acl_shlibext"; then
6384                    if test -f "$dir/$libname$shrext"; then
6385                      found_dir="$dir"
6386                      found_so="$dir/$libname$shrext"
6387                    else
6388                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6389                        ver=`(cd "$dir" && \
6390                              for f in "$libname$shrext".*; do echo "$f"; done \
6391                              | sed -e "s,^$libname$shrext\\\\.,," \
6392                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6393                              | sed 1q ) 2>/dev/null`
6394                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6395                          found_dir="$dir"
6396                          found_so="$dir/$libname$shrext.$ver"
6397                        fi
6398                      else
6399                        eval library_names=\"$acl_library_names_spec\"
6400                        for f in $library_names; do
6401                          if test -f "$dir/$f"; then
6402                            found_dir="$dir"
6403                            found_so="$dir/$f"
6404                            break
6405                          fi
6406                        done
6407                      fi
6408                    fi
6409                  fi
6410                                    if test "X$found_dir" = "X"; then
6411                    if test -f "$dir/$libname.$acl_libext"; then
6412                      found_dir="$dir"
6413                      found_a="$dir/$libname.$acl_libext"
6414                    fi
6415                  fi
6416                  if test "X$found_dir" != "X"; then
6417                    if test -f "$dir/$libname.la"; then
6418                      found_la="$dir/$libname.la"
6419                    fi
6420                  fi
6421                  ;;
6422              esac
6423              if test "X$found_dir" != "X"; then
6424                break
6425              fi
6426            done
6427          fi
6428          if test "X$found_dir" != "X"; then
6429                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6430            if test "X$found_so" != "X"; then
6431                                                        if test "$enable_rpath" = no \
6432                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6433                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6434                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6435              else
6436                                                                                haveit=
6437                for x in $ltrpathdirs; do
6438                  if test "X$x" = "X$found_dir"; then
6439                    haveit=yes
6440                    break
6441                  fi
6442                done
6443                if test -z "$haveit"; then
6444                  ltrpathdirs="$ltrpathdirs $found_dir"
6445                fi
6446                                if test "$acl_hardcode_direct" = yes; then
6447                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6448                else
6449                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6450                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6451                                                            haveit=
6452                    for x in $rpathdirs; do
6453                      if test "X$x" = "X$found_dir"; then
6454                        haveit=yes
6455                        break
6456                      fi
6457                    done
6458                    if test -z "$haveit"; then
6459                      rpathdirs="$rpathdirs $found_dir"
6460                    fi
6461                  else
6462                                                                                haveit=
6463                    for x in $LDFLAGS $LIBINTL; do
6464
6465  acl_save_prefix="$prefix"
6466  prefix="$acl_final_prefix"
6467  acl_save_exec_prefix="$exec_prefix"
6468  exec_prefix="$acl_final_exec_prefix"
6469  eval x=\"$x\"
6470  exec_prefix="$acl_save_exec_prefix"
6471  prefix="$acl_save_prefix"
6472
6473                      if test "X$x" = "X-L$found_dir"; then
6474                        haveit=yes
6475                        break
6476                      fi
6477                    done
6478                    if test -z "$haveit"; then
6479                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6480                    fi
6481                    if test "$acl_hardcode_minus_L" != no; then
6482                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6483                    else
6484                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6485                    fi
6486                  fi
6487                fi
6488              fi
6489            else
6490              if test "X$found_a" != "X"; then
6491                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6492              else
6493                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6494              fi
6495            fi
6496                        additional_includedir=
6497            case "$found_dir" in
6498              */$acl_libdirstem | */$acl_libdirstem/)
6499                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6500                if test "$name" = 'intl'; then
6501                  LIBINTL_PREFIX="$basedir"
6502                fi
6503                additional_includedir="$basedir/include"
6504                ;;
6505              */$acl_libdirstem2 | */$acl_libdirstem2/)
6506                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6507                if test "$name" = 'intl'; then
6508                  LIBINTL_PREFIX="$basedir"
6509                fi
6510                additional_includedir="$basedir/include"
6511                ;;
6512            esac
6513            if test "X$additional_includedir" != "X"; then
6514                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
6515                haveit=
6516                if test "X$additional_includedir" = "X/usr/local/include"; then
6517                  if test -n "$GCC"; then
6518                    case $host_os in
6519                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6520                    esac
6521                  fi
6522                fi
6523                if test -z "$haveit"; then
6524                  for x in $CPPFLAGS $INCINTL; do
6525
6526  acl_save_prefix="$prefix"
6527  prefix="$acl_final_prefix"
6528  acl_save_exec_prefix="$exec_prefix"
6529  exec_prefix="$acl_final_exec_prefix"
6530  eval x=\"$x\"
6531  exec_prefix="$acl_save_exec_prefix"
6532  prefix="$acl_save_prefix"
6533
6534                    if test "X$x" = "X-I$additional_includedir"; then
6535                      haveit=yes
6536                      break
6537                    fi
6538                  done
6539                  if test -z "$haveit"; then
6540                    if test -d "$additional_includedir"; then
6541                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6542                    fi
6543                  fi
6544                fi
6545              fi
6546            fi
6547                        if test -n "$found_la"; then
6548                                                        save_libdir="$libdir"
6549              case "$found_la" in
6550                */* | *\\*) . "$found_la" ;;
6551                *) . "./$found_la" ;;
6552              esac
6553              libdir="$save_libdir"
6554                            for dep in $dependency_libs; do
6555                case "$dep" in
6556                  -L*)
6557                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6558                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6559                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6560                      haveit=
6561                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6562                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6563                        if test -n "$GCC"; then
6564                          case $host_os in
6565                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6566                          esac
6567                        fi
6568                      fi
6569                      if test -z "$haveit"; then
6570                        haveit=
6571                        for x in $LDFLAGS $LIBINTL; do
6572
6573  acl_save_prefix="$prefix"
6574  prefix="$acl_final_prefix"
6575  acl_save_exec_prefix="$exec_prefix"
6576  exec_prefix="$acl_final_exec_prefix"
6577  eval x=\"$x\"
6578  exec_prefix="$acl_save_exec_prefix"
6579  prefix="$acl_save_prefix"
6580
6581                          if test "X$x" = "X-L$additional_libdir"; then
6582                            haveit=yes
6583                            break
6584                          fi
6585                        done
6586                        if test -z "$haveit"; then
6587                          if test -d "$additional_libdir"; then
6588                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6589                          fi
6590                        fi
6591                        haveit=
6592                        for x in $LDFLAGS $LTLIBINTL; do
6593
6594  acl_save_prefix="$prefix"
6595  prefix="$acl_final_prefix"
6596  acl_save_exec_prefix="$exec_prefix"
6597  exec_prefix="$acl_final_exec_prefix"
6598  eval x=\"$x\"
6599  exec_prefix="$acl_save_exec_prefix"
6600  prefix="$acl_save_prefix"
6601
6602                          if test "X$x" = "X-L$additional_libdir"; then
6603                            haveit=yes
6604                            break
6605                          fi
6606                        done
6607                        if test -z "$haveit"; then
6608                          if test -d "$additional_libdir"; then
6609                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6610                          fi
6611                        fi
6612                      fi
6613                    fi
6614                    ;;
6615                  -R*)
6616                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
6617                    if test "$enable_rpath" != no; then
6618                                                                  haveit=
6619                      for x in $rpathdirs; do
6620                        if test "X$x" = "X$dir"; then
6621                          haveit=yes
6622                          break
6623                        fi
6624                      done
6625                      if test -z "$haveit"; then
6626                        rpathdirs="$rpathdirs $dir"
6627                      fi
6628                                                                  haveit=
6629                      for x in $ltrpathdirs; do
6630                        if test "X$x" = "X$dir"; then
6631                          haveit=yes
6632                          break
6633                        fi
6634                      done
6635                      if test -z "$haveit"; then
6636                        ltrpathdirs="$ltrpathdirs $dir"
6637                      fi
6638                    fi
6639                    ;;
6640                  -l*)
6641                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6642                    ;;
6643                  *.la)
6644                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6645                    ;;
6646                  *)
6647                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6648                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6649                    ;;
6650                esac
6651              done
6652            fi
6653          else
6654                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6655            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6656          fi
6657        fi
6658      fi
6659    done
6660  done
6661  if test "X$rpathdirs" != "X"; then
6662    if test -n "$acl_hardcode_libdir_separator"; then
6663                        alldirs=
6664      for found_dir in $rpathdirs; do
6665        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6666      done
6667            acl_save_libdir="$libdir"
6668      libdir="$alldirs"
6669      eval flag=\"$acl_hardcode_libdir_flag_spec\"
6670      libdir="$acl_save_libdir"
6671      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6672    else
6673            for found_dir in $rpathdirs; do
6674        acl_save_libdir="$libdir"
6675        libdir="$found_dir"
6676        eval flag=\"$acl_hardcode_libdir_flag_spec\"
6677        libdir="$acl_save_libdir"
6678        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6679      done
6680    fi
6681  fi
6682  if test "X$ltrpathdirs" != "X"; then
6683            for found_dir in $ltrpathdirs; do
6684      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6685    done
6686  fi
6687
6688
6689
6690
6691
6692
6693          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6694$as_echo_n "checking for GNU gettext in libintl... " >&6; }
6695if eval "test \"\${$gt_func_gnugettext_libintl+set}\"" = set; then :
6696  $as_echo_n "(cached) " >&6
6697else
6698  gt_save_CPPFLAGS="$CPPFLAGS"
6699            CPPFLAGS="$CPPFLAGS $INCINTL"
6700            gt_save_LIBS="$LIBS"
6701            LIBS="$LIBS $LIBINTL"
6702                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6703/* end confdefs.h.  */
6704#include <libintl.h>
6705$gt_revision_test_code
6706extern int _nl_msg_cat_cntr;
6707extern
6708#ifdef __cplusplus
6709"C"
6710#endif
6711const char *_nl_expand_alias (const char *);
6712int
6713main ()
6714{
6715bindtextdomain ("", "");
6716return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6717  ;
6718  return 0;
6719}
6720_ACEOF
6721if ac_fn_c_try_link "$LINENO"; then :
6722  eval "$gt_func_gnugettext_libintl=yes"
6723else
6724  eval "$gt_func_gnugettext_libintl=no"
6725fi
6726rm -f core conftest.err conftest.$ac_objext \
6727    conftest$ac_exeext conftest.$ac_ext
6728                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
6729              LIBS="$LIBS $LIBICONV"
6730              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6731/* end confdefs.h.  */
6732#include <libintl.h>
6733$gt_revision_test_code
6734extern int _nl_msg_cat_cntr;
6735extern
6736#ifdef __cplusplus
6737"C"
6738#endif
6739const char *_nl_expand_alias (const char *);
6740int
6741main ()
6742{
6743bindtextdomain ("", "");
6744return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6745  ;
6746  return 0;
6747}
6748_ACEOF
6749if ac_fn_c_try_link "$LINENO"; then :
6750  LIBINTL="$LIBINTL $LIBICONV"
6751                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6752                eval "$gt_func_gnugettext_libintl=yes"
6753
6754fi
6755rm -f core conftest.err conftest.$ac_objext \
6756    conftest$ac_exeext conftest.$ac_ext
6757            fi
6758            CPPFLAGS="$gt_save_CPPFLAGS"
6759            LIBS="$gt_save_LIBS"
6760fi
6761eval ac_res=\$$gt_func_gnugettext_libintl
6762	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6763$as_echo "$ac_res" >&6; }
6764        fi
6765
6766                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
6767           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
6768                && test "$PACKAGE" != gettext-runtime \
6769                && test "$PACKAGE" != gettext-tools; }; then
6770          gt_use_preinstalled_gnugettext=yes
6771        else
6772                    LIBINTL=
6773          LTLIBINTL=
6774          INCINTL=
6775        fi
6776
6777
6778
6779    if test -n "$INTL_MACOSX_LIBS"; then
6780      if test "$gt_use_preinstalled_gnugettext" = "yes" \
6781         || test "$nls_cv_use_gnu_gettext" = "yes"; then
6782                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6783        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6784      fi
6785    fi
6786
6787    if test "$gt_use_preinstalled_gnugettext" = "yes" \
6788       || test "$nls_cv_use_gnu_gettext" = "yes"; then
6789
6790$as_echo "#define ENABLE_NLS 1" >>confdefs.h
6791
6792    else
6793      USE_NLS=no
6794    fi
6795  fi
6796
6797  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
6798$as_echo_n "checking whether to use NLS... " >&6; }
6799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6800$as_echo "$USE_NLS" >&6; }
6801  if test "$USE_NLS" = "yes"; then
6802    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
6803$as_echo_n "checking where the gettext function comes from... " >&6; }
6804    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6805      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6806        gt_source="external libintl"
6807      else
6808        gt_source="libc"
6809      fi
6810    else
6811      gt_source="included intl directory"
6812    fi
6813    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
6814$as_echo "$gt_source" >&6; }
6815  fi
6816
6817  if test "$USE_NLS" = "yes"; then
6818
6819    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6820      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6821        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
6822$as_echo_n "checking how to link with libintl... " >&6; }
6823        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
6824$as_echo "$LIBINTL" >&6; }
6825
6826  for element in $INCINTL; do
6827    haveit=
6828    for x in $CPPFLAGS; do
6829
6830  acl_save_prefix="$prefix"
6831  prefix="$acl_final_prefix"
6832  acl_save_exec_prefix="$exec_prefix"
6833  exec_prefix="$acl_final_exec_prefix"
6834  eval x=\"$x\"
6835  exec_prefix="$acl_save_exec_prefix"
6836  prefix="$acl_save_prefix"
6837
6838      if test "X$x" = "X$element"; then
6839        haveit=yes
6840        break
6841      fi
6842    done
6843    if test -z "$haveit"; then
6844      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6845    fi
6846  done
6847
6848      fi
6849
6850
6851$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
6852
6853
6854$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
6855
6856    fi
6857
6858        POSUB=po
6859  fi
6860
6861
6862
6863    INTLLIBS="$LIBINTL"
6864
6865
6866
6867
6868
6869
6870
6871
6872# ----------------------------------------------------------------------
6873# Checks for programs.
6874# ----------------------------------------------------------------------
6875
6876ac_ext=cpp
6877ac_cpp='$CXXCPP $CPPFLAGS'
6878ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6879ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6880ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6881if test -z "$CXX"; then
6882  if test -n "$CCC"; then
6883    CXX=$CCC
6884  else
6885    if test -n "$ac_tool_prefix"; then
6886  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6887  do
6888    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6889set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6891$as_echo_n "checking for $ac_word... " >&6; }
6892if test "${ac_cv_prog_CXX+set}" = set; then :
6893  $as_echo_n "(cached) " >&6
6894else
6895  if test -n "$CXX"; then
6896  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6897else
6898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899for as_dir in $PATH
6900do
6901  IFS=$as_save_IFS
6902  test -z "$as_dir" && as_dir=.
6903    for ac_exec_ext in '' $ac_executable_extensions; do
6904  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6905    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6906    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6907    break 2
6908  fi
6909done
6910  done
6911IFS=$as_save_IFS
6912
6913fi
6914fi
6915CXX=$ac_cv_prog_CXX
6916if test -n "$CXX"; then
6917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6918$as_echo "$CXX" >&6; }
6919else
6920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6921$as_echo "no" >&6; }
6922fi
6923
6924
6925    test -n "$CXX" && break
6926  done
6927fi
6928if test -z "$CXX"; then
6929  ac_ct_CXX=$CXX
6930  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6931do
6932  # Extract the first word of "$ac_prog", so it can be a program name with args.
6933set dummy $ac_prog; ac_word=$2
6934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935$as_echo_n "checking for $ac_word... " >&6; }
6936if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6937  $as_echo_n "(cached) " >&6
6938else
6939  if test -n "$ac_ct_CXX"; then
6940  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6941else
6942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943for as_dir in $PATH
6944do
6945  IFS=$as_save_IFS
6946  test -z "$as_dir" && as_dir=.
6947    for ac_exec_ext in '' $ac_executable_extensions; do
6948  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6949    ac_cv_prog_ac_ct_CXX="$ac_prog"
6950    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6951    break 2
6952  fi
6953done
6954  done
6955IFS=$as_save_IFS
6956
6957fi
6958fi
6959ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6960if test -n "$ac_ct_CXX"; then
6961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6962$as_echo "$ac_ct_CXX" >&6; }
6963else
6964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6965$as_echo "no" >&6; }
6966fi
6967
6968
6969  test -n "$ac_ct_CXX" && break
6970done
6971
6972  if test "x$ac_ct_CXX" = x; then
6973    CXX="g++"
6974  else
6975    case $cross_compiling:$ac_tool_warned in
6976yes:)
6977{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6978$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6979ac_tool_warned=yes ;;
6980esac
6981    CXX=$ac_ct_CXX
6982  fi
6983fi
6984
6985  fi
6986fi
6987# Provide some information about the compiler.
6988$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6989set X $ac_compile
6990ac_compiler=$2
6991for ac_option in --version -v -V -qversion; do
6992  { { ac_try="$ac_compiler $ac_option >&5"
6993case "(($ac_try" in
6994  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6995  *) ac_try_echo=$ac_try;;
6996esac
6997eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6998$as_echo "$ac_try_echo"; } >&5
6999  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7000  ac_status=$?
7001  if test -s conftest.err; then
7002    sed '10a\
7003... rest of stderr output deleted ...
7004         10q' conftest.err >conftest.er1
7005    cat conftest.er1 >&5
7006  fi
7007  rm -f conftest.er1 conftest.err
7008  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7009  test $ac_status = 0; }
7010done
7011
7012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7013$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7014if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
7015  $as_echo_n "(cached) " >&6
7016else
7017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7018/* end confdefs.h.  */
7019
7020int
7021main ()
7022{
7023#ifndef __GNUC__
7024       choke me
7025#endif
7026
7027  ;
7028  return 0;
7029}
7030_ACEOF
7031if ac_fn_cxx_try_compile "$LINENO"; then :
7032  ac_compiler_gnu=yes
7033else
7034  ac_compiler_gnu=no
7035fi
7036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7037ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7038
7039fi
7040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7041$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7042if test $ac_compiler_gnu = yes; then
7043  GXX=yes
7044else
7045  GXX=
7046fi
7047ac_test_CXXFLAGS=${CXXFLAGS+set}
7048ac_save_CXXFLAGS=$CXXFLAGS
7049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7050$as_echo_n "checking whether $CXX accepts -g... " >&6; }
7051if test "${ac_cv_prog_cxx_g+set}" = set; then :
7052  $as_echo_n "(cached) " >&6
7053else
7054  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7055   ac_cxx_werror_flag=yes
7056   ac_cv_prog_cxx_g=no
7057   CXXFLAGS="-g"
7058   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7059/* end confdefs.h.  */
7060
7061int
7062main ()
7063{
7064
7065  ;
7066  return 0;
7067}
7068_ACEOF
7069if ac_fn_cxx_try_compile "$LINENO"; then :
7070  ac_cv_prog_cxx_g=yes
7071else
7072  CXXFLAGS=""
7073      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7074/* end confdefs.h.  */
7075
7076int
7077main ()
7078{
7079
7080  ;
7081  return 0;
7082}
7083_ACEOF
7084if ac_fn_cxx_try_compile "$LINENO"; then :
7085
7086else
7087  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7088	 CXXFLAGS="-g"
7089	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7090/* end confdefs.h.  */
7091
7092int
7093main ()
7094{
7095
7096  ;
7097  return 0;
7098}
7099_ACEOF
7100if ac_fn_cxx_try_compile "$LINENO"; then :
7101  ac_cv_prog_cxx_g=yes
7102fi
7103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7104fi
7105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7106fi
7107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7108   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7109fi
7110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7111$as_echo "$ac_cv_prog_cxx_g" >&6; }
7112if test "$ac_test_CXXFLAGS" = set; then
7113  CXXFLAGS=$ac_save_CXXFLAGS
7114elif test $ac_cv_prog_cxx_g = yes; then
7115  if test "$GXX" = yes; then
7116    CXXFLAGS="-g -O2"
7117  else
7118    CXXFLAGS="-g"
7119  fi
7120else
7121  if test "$GXX" = yes; then
7122    CXXFLAGS="-O2"
7123  else
7124    CXXFLAGS=
7125  fi
7126fi
7127ac_ext=c
7128ac_cpp='$CPP $CPPFLAGS'
7129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7131ac_compiler_gnu=$ac_cv_c_compiler_gnu
7132
7133depcc="$CXX"  am_compiler_list=
7134
7135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7136$as_echo_n "checking dependency style of $depcc... " >&6; }
7137if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
7138  $as_echo_n "(cached) " >&6
7139else
7140  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7141  # We make a subdir and do the tests there.  Otherwise we can end up
7142  # making bogus files that we don't know about and never remove.  For
7143  # instance it was reported that on HP-UX the gcc test will end up
7144  # making a dummy file named `D' -- because `-MD' means `put the output
7145  # in D'.
7146  mkdir conftest.dir
7147  # Copy depcomp to subdir because otherwise we won't find it if we're
7148  # using a relative directory.
7149  cp "$am_depcomp" conftest.dir
7150  cd conftest.dir
7151  # We will build objects and dependencies in a subdirectory because
7152  # it helps to detect inapplicable dependency modes.  For instance
7153  # both Tru64's cc and ICC support -MD to output dependencies as a
7154  # side effect of compilation, but ICC will put the dependencies in
7155  # the current directory while Tru64 will put them in the object
7156  # directory.
7157  mkdir sub
7158
7159  am_cv_CXX_dependencies_compiler_type=none
7160  if test "$am_compiler_list" = ""; then
7161     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7162  fi
7163  am__universal=false
7164  case " $depcc " in #(
7165     *\ -arch\ *\ -arch\ *) am__universal=true ;;
7166     esac
7167
7168  for depmode in $am_compiler_list; do
7169    # Setup a source with many dependencies, because some compilers
7170    # like to wrap large dependency lists on column 80 (with \), and
7171    # we should not choose a depcomp mode which is confused by this.
7172    #
7173    # We need to recreate these files for each test, as the compiler may
7174    # overwrite some of them when testing with obscure command lines.
7175    # This happens at least with the AIX C compiler.
7176    : > sub/conftest.c
7177    for i in 1 2 3 4 5 6; do
7178      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7179      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7180      # Solaris 8's {/usr,}/bin/sh.
7181      touch sub/conftst$i.h
7182    done
7183    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7184
7185    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7186    # mode.  It turns out that the SunPro C++ compiler does not properly
7187    # handle `-M -o', and we need to detect this.  Also, some Intel
7188    # versions had trouble with output in subdirs
7189    am__obj=sub/conftest.${OBJEXT-o}
7190    am__minus_obj="-o $am__obj"
7191    case $depmode in
7192    gcc)
7193      # This depmode causes a compiler race in universal mode.
7194      test "$am__universal" = false || continue
7195      ;;
7196    nosideeffect)
7197      # after this tag, mechanisms are not by side-effect, so they'll
7198      # only be used when explicitly requested
7199      if test "x$enable_dependency_tracking" = xyes; then
7200	continue
7201      else
7202	break
7203      fi
7204      ;;
7205    msvisualcpp | msvcmsys)
7206      # This compiler won't grok `-c -o', but also, the minuso test has
7207      # not run yet.  These depmodes are late enough in the game, and
7208      # so weak that their functioning should not be impacted.
7209      am__obj=conftest.${OBJEXT-o}
7210      am__minus_obj=
7211      ;;
7212    none) break ;;
7213    esac
7214    if depmode=$depmode \
7215       source=sub/conftest.c object=$am__obj \
7216       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7217       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7218         >/dev/null 2>conftest.err &&
7219       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7220       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7221       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7222       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7223      # icc doesn't choke on unknown options, it will just issue warnings
7224      # or remarks (even with -Werror).  So we grep stderr for any message
7225      # that says an option was ignored or not supported.
7226      # When given -MP, icc 7.0 and 7.1 complain thusly:
7227      #   icc: Command line warning: ignoring option '-M'; no argument required
7228      # The diagnosis changed in icc 8.0:
7229      #   icc: Command line remark: option '-MP' not supported
7230      if (grep 'ignoring option' conftest.err ||
7231          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7232        am_cv_CXX_dependencies_compiler_type=$depmode
7233        break
7234      fi
7235    fi
7236  done
7237
7238  cd ..
7239  rm -rf conftest.dir
7240else
7241  am_cv_CXX_dependencies_compiler_type=none
7242fi
7243
7244fi
7245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7246$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7247CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7248
7249 if
7250  test "x$enable_dependency_tracking" != xno \
7251  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7252  am__fastdepCXX_TRUE=
7253  am__fastdepCXX_FALSE='#'
7254else
7255  am__fastdepCXX_TRUE='#'
7256  am__fastdepCXX_FALSE=
7257fi
7258
7259
7260ac_ext=c
7261ac_cpp='$CPP $CPPFLAGS'
7262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7264ac_compiler_gnu=$ac_cv_c_compiler_gnu
7265if test -n "$ac_tool_prefix"; then
7266  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
7267set dummy ${ac_tool_prefix}gcc; ac_word=$2
7268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7269$as_echo_n "checking for $ac_word... " >&6; }
7270if test "${ac_cv_prog_CC+set}" = set; then :
7271  $as_echo_n "(cached) " >&6
7272else
7273  if test -n "$CC"; then
7274  ac_cv_prog_CC="$CC" # Let the user override the test.
7275else
7276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277for as_dir in $PATH
7278do
7279  IFS=$as_save_IFS
7280  test -z "$as_dir" && as_dir=.
7281    for ac_exec_ext in '' $ac_executable_extensions; do
7282  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7283    ac_cv_prog_CC="${ac_tool_prefix}gcc"
7284    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7285    break 2
7286  fi
7287done
7288  done
7289IFS=$as_save_IFS
7290
7291fi
7292fi
7293CC=$ac_cv_prog_CC
7294if test -n "$CC"; then
7295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7296$as_echo "$CC" >&6; }
7297else
7298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7299$as_echo "no" >&6; }
7300fi
7301
7302
7303fi
7304if test -z "$ac_cv_prog_CC"; then
7305  ac_ct_CC=$CC
7306  # Extract the first word of "gcc", so it can be a program name with args.
7307set dummy gcc; ac_word=$2
7308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7309$as_echo_n "checking for $ac_word... " >&6; }
7310if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
7311  $as_echo_n "(cached) " >&6
7312else
7313  if test -n "$ac_ct_CC"; then
7314  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7315else
7316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317for as_dir in $PATH
7318do
7319  IFS=$as_save_IFS
7320  test -z "$as_dir" && as_dir=.
7321    for ac_exec_ext in '' $ac_executable_extensions; do
7322  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7323    ac_cv_prog_ac_ct_CC="gcc"
7324    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7325    break 2
7326  fi
7327done
7328  done
7329IFS=$as_save_IFS
7330
7331fi
7332fi
7333ac_ct_CC=$ac_cv_prog_ac_ct_CC
7334if test -n "$ac_ct_CC"; then
7335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7336$as_echo "$ac_ct_CC" >&6; }
7337else
7338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7339$as_echo "no" >&6; }
7340fi
7341
7342  if test "x$ac_ct_CC" = x; then
7343    CC=""
7344  else
7345    case $cross_compiling:$ac_tool_warned in
7346yes:)
7347{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7348$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7349ac_tool_warned=yes ;;
7350esac
7351    CC=$ac_ct_CC
7352  fi
7353else
7354  CC="$ac_cv_prog_CC"
7355fi
7356
7357if test -z "$CC"; then
7358          if test -n "$ac_tool_prefix"; then
7359    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7360set dummy ${ac_tool_prefix}cc; ac_word=$2
7361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7362$as_echo_n "checking for $ac_word... " >&6; }
7363if test "${ac_cv_prog_CC+set}" = set; then :
7364  $as_echo_n "(cached) " >&6
7365else
7366  if test -n "$CC"; then
7367  ac_cv_prog_CC="$CC" # Let the user override the test.
7368else
7369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370for as_dir in $PATH
7371do
7372  IFS=$as_save_IFS
7373  test -z "$as_dir" && as_dir=.
7374    for ac_exec_ext in '' $ac_executable_extensions; do
7375  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7376    ac_cv_prog_CC="${ac_tool_prefix}cc"
7377    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7378    break 2
7379  fi
7380done
7381  done
7382IFS=$as_save_IFS
7383
7384fi
7385fi
7386CC=$ac_cv_prog_CC
7387if test -n "$CC"; then
7388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7389$as_echo "$CC" >&6; }
7390else
7391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7392$as_echo "no" >&6; }
7393fi
7394
7395
7396  fi
7397fi
7398if test -z "$CC"; then
7399  # Extract the first word of "cc", so it can be a program name with args.
7400set dummy cc; ac_word=$2
7401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7402$as_echo_n "checking for $ac_word... " >&6; }
7403if test "${ac_cv_prog_CC+set}" = set; then :
7404  $as_echo_n "(cached) " >&6
7405else
7406  if test -n "$CC"; then
7407  ac_cv_prog_CC="$CC" # Let the user override the test.
7408else
7409  ac_prog_rejected=no
7410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7411for as_dir in $PATH
7412do
7413  IFS=$as_save_IFS
7414  test -z "$as_dir" && as_dir=.
7415    for ac_exec_ext in '' $ac_executable_extensions; do
7416  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7417    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
7418       ac_prog_rejected=yes
7419       continue
7420     fi
7421    ac_cv_prog_CC="cc"
7422    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7423    break 2
7424  fi
7425done
7426  done
7427IFS=$as_save_IFS
7428
7429if test $ac_prog_rejected = yes; then
7430  # We found a bogon in the path, so make sure we never use it.
7431  set dummy $ac_cv_prog_CC
7432  shift
7433  if test $# != 0; then
7434    # We chose a different compiler from the bogus one.
7435    # However, it has the same basename, so the bogon will be chosen
7436    # first if we set CC to just the basename; use the full file name.
7437    shift
7438    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
7439  fi
7440fi
7441fi
7442fi
7443CC=$ac_cv_prog_CC
7444if test -n "$CC"; then
7445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7446$as_echo "$CC" >&6; }
7447else
7448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7449$as_echo "no" >&6; }
7450fi
7451
7452
7453fi
7454if test -z "$CC"; then
7455  if test -n "$ac_tool_prefix"; then
7456  for ac_prog in cl.exe
7457  do
7458    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7459set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7461$as_echo_n "checking for $ac_word... " >&6; }
7462if test "${ac_cv_prog_CC+set}" = set; then :
7463  $as_echo_n "(cached) " >&6
7464else
7465  if test -n "$CC"; then
7466  ac_cv_prog_CC="$CC" # Let the user override the test.
7467else
7468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7469for as_dir in $PATH
7470do
7471  IFS=$as_save_IFS
7472  test -z "$as_dir" && as_dir=.
7473    for ac_exec_ext in '' $ac_executable_extensions; do
7474  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7475    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7476    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7477    break 2
7478  fi
7479done
7480  done
7481IFS=$as_save_IFS
7482
7483fi
7484fi
7485CC=$ac_cv_prog_CC
7486if test -n "$CC"; then
7487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7488$as_echo "$CC" >&6; }
7489else
7490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7491$as_echo "no" >&6; }
7492fi
7493
7494
7495    test -n "$CC" && break
7496  done
7497fi
7498if test -z "$CC"; then
7499  ac_ct_CC=$CC
7500  for ac_prog in cl.exe
7501do
7502  # Extract the first word of "$ac_prog", so it can be a program name with args.
7503set dummy $ac_prog; ac_word=$2
7504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7505$as_echo_n "checking for $ac_word... " >&6; }
7506if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
7507  $as_echo_n "(cached) " >&6
7508else
7509  if test -n "$ac_ct_CC"; then
7510  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7511else
7512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7513for as_dir in $PATH
7514do
7515  IFS=$as_save_IFS
7516  test -z "$as_dir" && as_dir=.
7517    for ac_exec_ext in '' $ac_executable_extensions; do
7518  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7519    ac_cv_prog_ac_ct_CC="$ac_prog"
7520    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7521    break 2
7522  fi
7523done
7524  done
7525IFS=$as_save_IFS
7526
7527fi
7528fi
7529ac_ct_CC=$ac_cv_prog_ac_ct_CC
7530if test -n "$ac_ct_CC"; then
7531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7532$as_echo "$ac_ct_CC" >&6; }
7533else
7534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7535$as_echo "no" >&6; }
7536fi
7537
7538
7539  test -n "$ac_ct_CC" && break
7540done
7541
7542  if test "x$ac_ct_CC" = x; then
7543    CC=""
7544  else
7545    case $cross_compiling:$ac_tool_warned in
7546yes:)
7547{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7548$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7549ac_tool_warned=yes ;;
7550esac
7551    CC=$ac_ct_CC
7552  fi
7553fi
7554
7555fi
7556
7557
7558test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7559$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7560as_fn_error $? "no acceptable C compiler found in \$PATH
7561See \`config.log' for more details" "$LINENO" 5 ; }
7562
7563# Provide some information about the compiler.
7564$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7565set X $ac_compile
7566ac_compiler=$2
7567for ac_option in --version -v -V -qversion; do
7568  { { ac_try="$ac_compiler $ac_option >&5"
7569case "(($ac_try" in
7570  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7571  *) ac_try_echo=$ac_try;;
7572esac
7573eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7574$as_echo "$ac_try_echo"; } >&5
7575  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7576  ac_status=$?
7577  if test -s conftest.err; then
7578    sed '10a\
7579... rest of stderr output deleted ...
7580         10q' conftest.err >conftest.er1
7581    cat conftest.er1 >&5
7582  fi
7583  rm -f conftest.er1 conftest.err
7584  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7585  test $ac_status = 0; }
7586done
7587
7588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7589$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7590if test "${ac_cv_c_compiler_gnu+set}" = set; then :
7591  $as_echo_n "(cached) " >&6
7592else
7593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7594/* end confdefs.h.  */
7595
7596int
7597main ()
7598{
7599#ifndef __GNUC__
7600       choke me
7601#endif
7602
7603  ;
7604  return 0;
7605}
7606_ACEOF
7607if ac_fn_c_try_compile "$LINENO"; then :
7608  ac_compiler_gnu=yes
7609else
7610  ac_compiler_gnu=no
7611fi
7612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7613ac_cv_c_compiler_gnu=$ac_compiler_gnu
7614
7615fi
7616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7617$as_echo "$ac_cv_c_compiler_gnu" >&6; }
7618if test $ac_compiler_gnu = yes; then
7619  GCC=yes
7620else
7621  GCC=
7622fi
7623ac_test_CFLAGS=${CFLAGS+set}
7624ac_save_CFLAGS=$CFLAGS
7625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7626$as_echo_n "checking whether $CC accepts -g... " >&6; }
7627if test "${ac_cv_prog_cc_g+set}" = set; then :
7628  $as_echo_n "(cached) " >&6
7629else
7630  ac_save_c_werror_flag=$ac_c_werror_flag
7631   ac_c_werror_flag=yes
7632   ac_cv_prog_cc_g=no
7633   CFLAGS="-g"
7634   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635/* end confdefs.h.  */
7636
7637int
7638main ()
7639{
7640
7641  ;
7642  return 0;
7643}
7644_ACEOF
7645if ac_fn_c_try_compile "$LINENO"; then :
7646  ac_cv_prog_cc_g=yes
7647else
7648  CFLAGS=""
7649      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7650/* end confdefs.h.  */
7651
7652int
7653main ()
7654{
7655
7656  ;
7657  return 0;
7658}
7659_ACEOF
7660if ac_fn_c_try_compile "$LINENO"; then :
7661
7662else
7663  ac_c_werror_flag=$ac_save_c_werror_flag
7664	 CFLAGS="-g"
7665	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7666/* end confdefs.h.  */
7667
7668int
7669main ()
7670{
7671
7672  ;
7673  return 0;
7674}
7675_ACEOF
7676if ac_fn_c_try_compile "$LINENO"; then :
7677  ac_cv_prog_cc_g=yes
7678fi
7679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7680fi
7681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7682fi
7683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7684   ac_c_werror_flag=$ac_save_c_werror_flag
7685fi
7686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7687$as_echo "$ac_cv_prog_cc_g" >&6; }
7688if test "$ac_test_CFLAGS" = set; then
7689  CFLAGS=$ac_save_CFLAGS
7690elif test $ac_cv_prog_cc_g = yes; then
7691  if test "$GCC" = yes; then
7692    CFLAGS="-g -O2"
7693  else
7694    CFLAGS="-g"
7695  fi
7696else
7697  if test "$GCC" = yes; then
7698    CFLAGS="-O2"
7699  else
7700    CFLAGS=
7701  fi
7702fi
7703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7704$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7705if test "${ac_cv_prog_cc_c89+set}" = set; then :
7706  $as_echo_n "(cached) " >&6
7707else
7708  ac_cv_prog_cc_c89=no
7709ac_save_CC=$CC
7710cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7711/* end confdefs.h.  */
7712#include <stdarg.h>
7713#include <stdio.h>
7714#include <sys/types.h>
7715#include <sys/stat.h>
7716/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
7717struct buf { int x; };
7718FILE * (*rcsopen) (struct buf *, struct stat *, int);
7719static char *e (p, i)
7720     char **p;
7721     int i;
7722{
7723  return p[i];
7724}
7725static char *f (char * (*g) (char **, int), char **p, ...)
7726{
7727  char *s;
7728  va_list v;
7729  va_start (v,p);
7730  s = g (p, va_arg (v,int));
7731  va_end (v);
7732  return s;
7733}
7734
7735/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
7736   function prototypes and stuff, but not '\xHH' hex character constants.
7737   These don't provoke an error unfortunately, instead are silently treated
7738   as 'x'.  The following induces an error, until -std is added to get
7739   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
7740   array size at least.  It's necessary to write '\x00'==0 to get something
7741   that's true only with -std.  */
7742int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7743
7744/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7745   inside strings and character constants.  */
7746#define FOO(x) 'x'
7747int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7748
7749int test (int i, double x);
7750struct s1 {int (*f) (int a);};
7751struct s2 {int (*f) (double a);};
7752int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7753int argc;
7754char **argv;
7755int
7756main ()
7757{
7758return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
7759  ;
7760  return 0;
7761}
7762_ACEOF
7763for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7764	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7765do
7766  CC="$ac_save_CC $ac_arg"
7767  if ac_fn_c_try_compile "$LINENO"; then :
7768  ac_cv_prog_cc_c89=$ac_arg
7769fi
7770rm -f core conftest.err conftest.$ac_objext
7771  test "x$ac_cv_prog_cc_c89" != "xno" && break
7772done
7773rm -f conftest.$ac_ext
7774CC=$ac_save_CC
7775
7776fi
7777# AC_CACHE_VAL
7778case "x$ac_cv_prog_cc_c89" in
7779  x)
7780    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7781$as_echo "none needed" >&6; } ;;
7782  xno)
7783    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7784$as_echo "unsupported" >&6; } ;;
7785  *)
7786    CC="$CC $ac_cv_prog_cc_c89"
7787    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7788$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7789esac
7790if test "x$ac_cv_prog_cc_c89" != xno; then :
7791
7792fi
7793
7794ac_ext=c
7795ac_cpp='$CPP $CPPFLAGS'
7796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7798ac_compiler_gnu=$ac_cv_c_compiler_gnu
7799
7800depcc="$CC"   am_compiler_list=
7801
7802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7803$as_echo_n "checking dependency style of $depcc... " >&6; }
7804if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
7805  $as_echo_n "(cached) " >&6
7806else
7807  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7808  # We make a subdir and do the tests there.  Otherwise we can end up
7809  # making bogus files that we don't know about and never remove.  For
7810  # instance it was reported that on HP-UX the gcc test will end up
7811  # making a dummy file named `D' -- because `-MD' means `put the output
7812  # in D'.
7813  mkdir conftest.dir
7814  # Copy depcomp to subdir because otherwise we won't find it if we're
7815  # using a relative directory.
7816  cp "$am_depcomp" conftest.dir
7817  cd conftest.dir
7818  # We will build objects and dependencies in a subdirectory because
7819  # it helps to detect inapplicable dependency modes.  For instance
7820  # both Tru64's cc and ICC support -MD to output dependencies as a
7821  # side effect of compilation, but ICC will put the dependencies in
7822  # the current directory while Tru64 will put them in the object
7823  # directory.
7824  mkdir sub
7825
7826  am_cv_CC_dependencies_compiler_type=none
7827  if test "$am_compiler_list" = ""; then
7828     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7829  fi
7830  am__universal=false
7831  case " $depcc " in #(
7832     *\ -arch\ *\ -arch\ *) am__universal=true ;;
7833     esac
7834
7835  for depmode in $am_compiler_list; do
7836    # Setup a source with many dependencies, because some compilers
7837    # like to wrap large dependency lists on column 80 (with \), and
7838    # we should not choose a depcomp mode which is confused by this.
7839    #
7840    # We need to recreate these files for each test, as the compiler may
7841    # overwrite some of them when testing with obscure command lines.
7842    # This happens at least with the AIX C compiler.
7843    : > sub/conftest.c
7844    for i in 1 2 3 4 5 6; do
7845      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7846      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7847      # Solaris 8's {/usr,}/bin/sh.
7848      touch sub/conftst$i.h
7849    done
7850    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7851
7852    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7853    # mode.  It turns out that the SunPro C++ compiler does not properly
7854    # handle `-M -o', and we need to detect this.  Also, some Intel
7855    # versions had trouble with output in subdirs
7856    am__obj=sub/conftest.${OBJEXT-o}
7857    am__minus_obj="-o $am__obj"
7858    case $depmode in
7859    gcc)
7860      # This depmode causes a compiler race in universal mode.
7861      test "$am__universal" = false || continue
7862      ;;
7863    nosideeffect)
7864      # after this tag, mechanisms are not by side-effect, so they'll
7865      # only be used when explicitly requested
7866      if test "x$enable_dependency_tracking" = xyes; then
7867	continue
7868      else
7869	break
7870      fi
7871      ;;
7872    msvisualcpp | msvcmsys)
7873      # This compiler won't grok `-c -o', but also, the minuso test has
7874      # not run yet.  These depmodes are late enough in the game, and
7875      # so weak that their functioning should not be impacted.
7876      am__obj=conftest.${OBJEXT-o}
7877      am__minus_obj=
7878      ;;
7879    none) break ;;
7880    esac
7881    if depmode=$depmode \
7882       source=sub/conftest.c object=$am__obj \
7883       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7884       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7885         >/dev/null 2>conftest.err &&
7886       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7887       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7888       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7889       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7890      # icc doesn't choke on unknown options, it will just issue warnings
7891      # or remarks (even with -Werror).  So we grep stderr for any message
7892      # that says an option was ignored or not supported.
7893      # When given -MP, icc 7.0 and 7.1 complain thusly:
7894      #   icc: Command line warning: ignoring option '-M'; no argument required
7895      # The diagnosis changed in icc 8.0:
7896      #   icc: Command line remark: option '-MP' not supported
7897      if (grep 'ignoring option' conftest.err ||
7898          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7899        am_cv_CC_dependencies_compiler_type=$depmode
7900        break
7901      fi
7902    fi
7903  done
7904
7905  cd ..
7906  rm -rf conftest.dir
7907else
7908  am_cv_CC_dependencies_compiler_type=none
7909fi
7910
7911fi
7912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7913$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7914CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7915
7916 if
7917  test "x$enable_dependency_tracking" != xno \
7918  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7919  am__fastdepCC_TRUE=
7920  am__fastdepCC_FALSE='#'
7921else
7922  am__fastdepCC_TRUE='#'
7923  am__fastdepCC_FALSE=
7924fi
7925
7926
7927
7928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7929$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7930set x ${MAKE-make}
7931ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7932if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
7933  $as_echo_n "(cached) " >&6
7934else
7935  cat >conftest.make <<\_ACEOF
7936SHELL = /bin/sh
7937all:
7938	@echo '@@@%%%=$(MAKE)=@@@%%%'
7939_ACEOF
7940# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7941case `${MAKE-make} -f conftest.make 2>/dev/null` in
7942  *@@@%%%=?*=@@@%%%*)
7943    eval ac_cv_prog_make_${ac_make}_set=yes;;
7944  *)
7945    eval ac_cv_prog_make_${ac_make}_set=no;;
7946esac
7947rm -f conftest.make
7948fi
7949if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7951$as_echo "yes" >&6; }
7952  SET_MAKE=
7953else
7954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7955$as_echo "no" >&6; }
7956  SET_MAKE="MAKE=${MAKE-make}"
7957fi
7958
7959for ac_prog in gawk mawk nawk awk
7960do
7961  # Extract the first word of "$ac_prog", so it can be a program name with args.
7962set dummy $ac_prog; ac_word=$2
7963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7964$as_echo_n "checking for $ac_word... " >&6; }
7965if test "${ac_cv_prog_AWK+set}" = set; then :
7966  $as_echo_n "(cached) " >&6
7967else
7968  if test -n "$AWK"; then
7969  ac_cv_prog_AWK="$AWK" # Let the user override the test.
7970else
7971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7972for as_dir in $PATH
7973do
7974  IFS=$as_save_IFS
7975  test -z "$as_dir" && as_dir=.
7976    for ac_exec_ext in '' $ac_executable_extensions; do
7977  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7978    ac_cv_prog_AWK="$ac_prog"
7979    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7980    break 2
7981  fi
7982done
7983  done
7984IFS=$as_save_IFS
7985
7986fi
7987fi
7988AWK=$ac_cv_prog_AWK
7989if test -n "$AWK"; then
7990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7991$as_echo "$AWK" >&6; }
7992else
7993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7994$as_echo "no" >&6; }
7995fi
7996
7997
7998  test -n "$AWK" && break
7999done
8000
8001ac_ext=c
8002ac_cpp='$CPP $CPPFLAGS'
8003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8005ac_compiler_gnu=$ac_cv_c_compiler_gnu
8006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8007$as_echo_n "checking how to run the C preprocessor... " >&6; }
8008# On Suns, sometimes $CPP names a directory.
8009if test -n "$CPP" && test -d "$CPP"; then
8010  CPP=
8011fi
8012if test -z "$CPP"; then
8013  if test "${ac_cv_prog_CPP+set}" = set; then :
8014  $as_echo_n "(cached) " >&6
8015else
8016      # Double quotes because CPP needs to be expanded
8017    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8018    do
8019      ac_preproc_ok=false
8020for ac_c_preproc_warn_flag in '' yes
8021do
8022  # Use a header file that comes with gcc, so configuring glibc
8023  # with a fresh cross-compiler works.
8024  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8025  # <limits.h> exists even on freestanding compilers.
8026  # On the NeXT, cc -E runs the code through the compiler's parser,
8027  # not just through cpp. "Syntax error" is here to catch this case.
8028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8029/* end confdefs.h.  */
8030#ifdef __STDC__
8031# include <limits.h>
8032#else
8033# include <assert.h>
8034#endif
8035		     Syntax error
8036_ACEOF
8037if ac_fn_c_try_cpp "$LINENO"; then :
8038
8039else
8040  # Broken: fails on valid input.
8041continue
8042fi
8043rm -f conftest.err conftest.i conftest.$ac_ext
8044
8045  # OK, works on sane cases.  Now check whether nonexistent headers
8046  # can be detected and how.
8047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8048/* end confdefs.h.  */
8049#include <ac_nonexistent.h>
8050_ACEOF
8051if ac_fn_c_try_cpp "$LINENO"; then :
8052  # Broken: success on invalid input.
8053continue
8054else
8055  # Passes both tests.
8056ac_preproc_ok=:
8057break
8058fi
8059rm -f conftest.err conftest.i conftest.$ac_ext
8060
8061done
8062# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8063rm -f conftest.i conftest.err conftest.$ac_ext
8064if $ac_preproc_ok; then :
8065  break
8066fi
8067
8068    done
8069    ac_cv_prog_CPP=$CPP
8070
8071fi
8072  CPP=$ac_cv_prog_CPP
8073else
8074  ac_cv_prog_CPP=$CPP
8075fi
8076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8077$as_echo "$CPP" >&6; }
8078ac_preproc_ok=false
8079for ac_c_preproc_warn_flag in '' yes
8080do
8081  # Use a header file that comes with gcc, so configuring glibc
8082  # with a fresh cross-compiler works.
8083  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8084  # <limits.h> exists even on freestanding compilers.
8085  # On the NeXT, cc -E runs the code through the compiler's parser,
8086  # not just through cpp. "Syntax error" is here to catch this case.
8087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8088/* end confdefs.h.  */
8089#ifdef __STDC__
8090# include <limits.h>
8091#else
8092# include <assert.h>
8093#endif
8094		     Syntax error
8095_ACEOF
8096if ac_fn_c_try_cpp "$LINENO"; then :
8097
8098else
8099  # Broken: fails on valid input.
8100continue
8101fi
8102rm -f conftest.err conftest.i conftest.$ac_ext
8103
8104  # OK, works on sane cases.  Now check whether nonexistent headers
8105  # can be detected and how.
8106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8107/* end confdefs.h.  */
8108#include <ac_nonexistent.h>
8109_ACEOF
8110if ac_fn_c_try_cpp "$LINENO"; then :
8111  # Broken: success on invalid input.
8112continue
8113else
8114  # Passes both tests.
8115ac_preproc_ok=:
8116break
8117fi
8118rm -f conftest.err conftest.i conftest.$ac_ext
8119
8120done
8121# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8122rm -f conftest.i conftest.err conftest.$ac_ext
8123if $ac_preproc_ok; then :
8124
8125else
8126  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8127$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8128as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8129See \`config.log' for more details" "$LINENO" 5 ; }
8130fi
8131
8132ac_ext=c
8133ac_cpp='$CPP $CPPFLAGS'
8134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8136ac_compiler_gnu=$ac_cv_c_compiler_gnu
8137
8138
8139for ac_prog in 'bison -y' byacc
8140do
8141  # Extract the first word of "$ac_prog", so it can be a program name with args.
8142set dummy $ac_prog; ac_word=$2
8143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8144$as_echo_n "checking for $ac_word... " >&6; }
8145if test "${ac_cv_prog_YACC+set}" = set; then :
8146  $as_echo_n "(cached) " >&6
8147else
8148  if test -n "$YACC"; then
8149  ac_cv_prog_YACC="$YACC" # Let the user override the test.
8150else
8151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8152for as_dir in $PATH
8153do
8154  IFS=$as_save_IFS
8155  test -z "$as_dir" && as_dir=.
8156    for ac_exec_ext in '' $ac_executable_extensions; do
8157  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8158    ac_cv_prog_YACC="$ac_prog"
8159    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8160    break 2
8161  fi
8162done
8163  done
8164IFS=$as_save_IFS
8165
8166fi
8167fi
8168YACC=$ac_cv_prog_YACC
8169if test -n "$YACC"; then
8170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8171$as_echo "$YACC" >&6; }
8172else
8173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8174$as_echo "no" >&6; }
8175fi
8176
8177
8178  test -n "$YACC" && break
8179done
8180test -n "$YACC" || YACC="yacc"
8181
8182case `pwd` in
8183  *\ * | *\	*)
8184    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8185$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8186esac
8187
8188
8189
8190macro_version='2.2.6b'
8191macro_revision='1.3017'
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205ltmain="$ac_aux_dir/ltmain.sh"
8206
8207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8208$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8209if test "${ac_cv_path_SED+set}" = set; then :
8210  $as_echo_n "(cached) " >&6
8211else
8212            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8213     for ac_i in 1 2 3 4 5 6 7; do
8214       ac_script="$ac_script$as_nl$ac_script"
8215     done
8216     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8217     { ac_script=; unset ac_script;}
8218     if test -z "$SED"; then
8219  ac_path_SED_found=false
8220  # Loop through the user's path and test for each of PROGNAME-LIST
8221  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8222for as_dir in $PATH
8223do
8224  IFS=$as_save_IFS
8225  test -z "$as_dir" && as_dir=.
8226    for ac_prog in sed gsed; do
8227    for ac_exec_ext in '' $ac_executable_extensions; do
8228      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8229      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
8230# Check for GNU ac_path_SED and select it if it is found.
8231  # Check for GNU $ac_path_SED
8232case `"$ac_path_SED" --version 2>&1` in
8233*GNU*)
8234  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8235*)
8236  ac_count=0
8237  $as_echo_n 0123456789 >"conftest.in"
8238  while :
8239  do
8240    cat "conftest.in" "conftest.in" >"conftest.tmp"
8241    mv "conftest.tmp" "conftest.in"
8242    cp "conftest.in" "conftest.nl"
8243    $as_echo '' >> "conftest.nl"
8244    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8245    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8246    as_fn_arith $ac_count + 1 && ac_count=$as_val
8247    if test $ac_count -gt ${ac_path_SED_max-0}; then
8248      # Best one so far, save it but keep looking for a better one
8249      ac_cv_path_SED="$ac_path_SED"
8250      ac_path_SED_max=$ac_count
8251    fi
8252    # 10*(2^10) chars as input seems more than enough
8253    test $ac_count -gt 10 && break
8254  done
8255  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8256esac
8257
8258      $ac_path_SED_found && break 3
8259    done
8260  done
8261  done
8262IFS=$as_save_IFS
8263  if test -z "$ac_cv_path_SED"; then
8264    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8265  fi
8266else
8267  ac_cv_path_SED=$SED
8268fi
8269
8270fi
8271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8272$as_echo "$ac_cv_path_SED" >&6; }
8273 SED="$ac_cv_path_SED"
8274  rm -f conftest.sed
8275
8276test -z "$SED" && SED=sed
8277Xsed="$SED -e 1s/^X//"
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8290$as_echo_n "checking for fgrep... " >&6; }
8291if test "${ac_cv_path_FGREP+set}" = set; then :
8292  $as_echo_n "(cached) " >&6
8293else
8294  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8295   then ac_cv_path_FGREP="$GREP -F"
8296   else
8297     if test -z "$FGREP"; then
8298  ac_path_FGREP_found=false
8299  # Loop through the user's path and test for each of PROGNAME-LIST
8300  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8301for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8302do
8303  IFS=$as_save_IFS
8304  test -z "$as_dir" && as_dir=.
8305    for ac_prog in fgrep; do
8306    for ac_exec_ext in '' $ac_executable_extensions; do
8307      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8308      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
8309# Check for GNU ac_path_FGREP and select it if it is found.
8310  # Check for GNU $ac_path_FGREP
8311case `"$ac_path_FGREP" --version 2>&1` in
8312*GNU*)
8313  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8314*)
8315  ac_count=0
8316  $as_echo_n 0123456789 >"conftest.in"
8317  while :
8318  do
8319    cat "conftest.in" "conftest.in" >"conftest.tmp"
8320    mv "conftest.tmp" "conftest.in"
8321    cp "conftest.in" "conftest.nl"
8322    $as_echo 'FGREP' >> "conftest.nl"
8323    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8324    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8325    as_fn_arith $ac_count + 1 && ac_count=$as_val
8326    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8327      # Best one so far, save it but keep looking for a better one
8328      ac_cv_path_FGREP="$ac_path_FGREP"
8329      ac_path_FGREP_max=$ac_count
8330    fi
8331    # 10*(2^10) chars as input seems more than enough
8332    test $ac_count -gt 10 && break
8333  done
8334  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8335esac
8336
8337      $ac_path_FGREP_found && break 3
8338    done
8339  done
8340  done
8341IFS=$as_save_IFS
8342  if test -z "$ac_cv_path_FGREP"; then
8343    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8344  fi
8345else
8346  ac_cv_path_FGREP=$FGREP
8347fi
8348
8349   fi
8350fi
8351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8352$as_echo "$ac_cv_path_FGREP" >&6; }
8353 FGREP="$ac_cv_path_FGREP"
8354
8355
8356test -z "$GREP" && GREP=grep
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376# Check whether --with-gnu-ld was given.
8377if test "${with_gnu_ld+set}" = set; then :
8378  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8379else
8380  with_gnu_ld=no
8381fi
8382
8383ac_prog=ld
8384if test "$GCC" = yes; then
8385  # Check if gcc -print-prog-name=ld gives a path.
8386  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8387$as_echo_n "checking for ld used by $CC... " >&6; }
8388  case $host in
8389  *-*-mingw*)
8390    # gcc leaves a trailing carriage return which upsets mingw
8391    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8392  *)
8393    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8394  esac
8395  case $ac_prog in
8396    # Accept absolute paths.
8397    [\\/]* | ?:[\\/]*)
8398      re_direlt='/[^/][^/]*/\.\./'
8399      # Canonicalize the pathname of ld
8400      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8401      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8402	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8403      done
8404      test -z "$LD" && LD="$ac_prog"
8405      ;;
8406  "")
8407    # If it fails, then pretend we aren't using GCC.
8408    ac_prog=ld
8409    ;;
8410  *)
8411    # If it is relative, then search for the first ld in PATH.
8412    with_gnu_ld=unknown
8413    ;;
8414  esac
8415elif test "$with_gnu_ld" = yes; then
8416  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8417$as_echo_n "checking for GNU ld... " >&6; }
8418else
8419  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8420$as_echo_n "checking for non-GNU ld... " >&6; }
8421fi
8422if test "${lt_cv_path_LD+set}" = set; then :
8423  $as_echo_n "(cached) " >&6
8424else
8425  if test -z "$LD"; then
8426  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8427  for ac_dir in $PATH; do
8428    IFS="$lt_save_ifs"
8429    test -z "$ac_dir" && ac_dir=.
8430    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8431      lt_cv_path_LD="$ac_dir/$ac_prog"
8432      # Check to see if the program is GNU ld.  I'd rather use --version,
8433      # but apparently some variants of GNU ld only accept -v.
8434      # Break only if it was the GNU/non-GNU ld that we prefer.
8435      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8436      *GNU* | *'with BFD'*)
8437	test "$with_gnu_ld" != no && break
8438	;;
8439      *)
8440	test "$with_gnu_ld" != yes && break
8441	;;
8442      esac
8443    fi
8444  done
8445  IFS="$lt_save_ifs"
8446else
8447  lt_cv_path_LD="$LD" # Let the user override the test with a path.
8448fi
8449fi
8450
8451LD="$lt_cv_path_LD"
8452if test -n "$LD"; then
8453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8454$as_echo "$LD" >&6; }
8455else
8456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8457$as_echo "no" >&6; }
8458fi
8459test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8461$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8462if test "${lt_cv_prog_gnu_ld+set}" = set; then :
8463  $as_echo_n "(cached) " >&6
8464else
8465  # I'd rather use --version here, but apparently some GNU lds only accept -v.
8466case `$LD -v 2>&1 </dev/null` in
8467*GNU* | *'with BFD'*)
8468  lt_cv_prog_gnu_ld=yes
8469  ;;
8470*)
8471  lt_cv_prog_gnu_ld=no
8472  ;;
8473esac
8474fi
8475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8476$as_echo "$lt_cv_prog_gnu_ld" >&6; }
8477with_gnu_ld=$lt_cv_prog_gnu_ld
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8488$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8489if test "${lt_cv_path_NM+set}" = set; then :
8490  $as_echo_n "(cached) " >&6
8491else
8492  if test -n "$NM"; then
8493  # Let the user override the test.
8494  lt_cv_path_NM="$NM"
8495else
8496  lt_nm_to_check="${ac_tool_prefix}nm"
8497  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8498    lt_nm_to_check="$lt_nm_to_check nm"
8499  fi
8500  for lt_tmp_nm in $lt_nm_to_check; do
8501    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8502    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8503      IFS="$lt_save_ifs"
8504      test -z "$ac_dir" && ac_dir=.
8505      tmp_nm="$ac_dir/$lt_tmp_nm"
8506      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8507	# Check to see if the nm accepts a BSD-compat flag.
8508	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
8509	#   nm: unknown option "B" ignored
8510	# Tru64's nm complains that /dev/null is an invalid object file
8511	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8512	*/dev/null* | *'Invalid file or object type'*)
8513	  lt_cv_path_NM="$tmp_nm -B"
8514	  break
8515	  ;;
8516	*)
8517	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8518	  */dev/null*)
8519	    lt_cv_path_NM="$tmp_nm -p"
8520	    break
8521	    ;;
8522	  *)
8523	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8524	    continue # so that we can try to find one that supports BSD flags
8525	    ;;
8526	  esac
8527	  ;;
8528	esac
8529      fi
8530    done
8531    IFS="$lt_save_ifs"
8532  done
8533  : ${lt_cv_path_NM=no}
8534fi
8535fi
8536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8537$as_echo "$lt_cv_path_NM" >&6; }
8538if test "$lt_cv_path_NM" != "no"; then
8539  NM="$lt_cv_path_NM"
8540else
8541  # Didn't find any BSD compatible name lister, look for dumpbin.
8542  if test -n "$ac_tool_prefix"; then
8543  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
8544  do
8545    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8546set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8548$as_echo_n "checking for $ac_word... " >&6; }
8549if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
8550  $as_echo_n "(cached) " >&6
8551else
8552  if test -n "$DUMPBIN"; then
8553  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8554else
8555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8556for as_dir in $PATH
8557do
8558  IFS=$as_save_IFS
8559  test -z "$as_dir" && as_dir=.
8560    for ac_exec_ext in '' $ac_executable_extensions; do
8561  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8562    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8563    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8564    break 2
8565  fi
8566done
8567  done
8568IFS=$as_save_IFS
8569
8570fi
8571fi
8572DUMPBIN=$ac_cv_prog_DUMPBIN
8573if test -n "$DUMPBIN"; then
8574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8575$as_echo "$DUMPBIN" >&6; }
8576else
8577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8578$as_echo "no" >&6; }
8579fi
8580
8581
8582    test -n "$DUMPBIN" && break
8583  done
8584fi
8585if test -z "$DUMPBIN"; then
8586  ac_ct_DUMPBIN=$DUMPBIN
8587  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
8588do
8589  # Extract the first word of "$ac_prog", so it can be a program name with args.
8590set dummy $ac_prog; ac_word=$2
8591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8592$as_echo_n "checking for $ac_word... " >&6; }
8593if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
8594  $as_echo_n "(cached) " >&6
8595else
8596  if test -n "$ac_ct_DUMPBIN"; then
8597  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8598else
8599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8600for as_dir in $PATH
8601do
8602  IFS=$as_save_IFS
8603  test -z "$as_dir" && as_dir=.
8604    for ac_exec_ext in '' $ac_executable_extensions; do
8605  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8606    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8607    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8608    break 2
8609  fi
8610done
8611  done
8612IFS=$as_save_IFS
8613
8614fi
8615fi
8616ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8617if test -n "$ac_ct_DUMPBIN"; then
8618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8619$as_echo "$ac_ct_DUMPBIN" >&6; }
8620else
8621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8622$as_echo "no" >&6; }
8623fi
8624
8625
8626  test -n "$ac_ct_DUMPBIN" && break
8627done
8628
8629  if test "x$ac_ct_DUMPBIN" = x; then
8630    DUMPBIN=":"
8631  else
8632    case $cross_compiling:$ac_tool_warned in
8633yes:)
8634{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8635$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8636ac_tool_warned=yes ;;
8637esac
8638    DUMPBIN=$ac_ct_DUMPBIN
8639  fi
8640fi
8641
8642
8643  if test "$DUMPBIN" != ":"; then
8644    NM="$DUMPBIN"
8645  fi
8646fi
8647test -z "$NM" && NM=nm
8648
8649
8650
8651
8652
8653
8654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8655$as_echo_n "checking the name lister ($NM) interface... " >&6; }
8656if test "${lt_cv_nm_interface+set}" = set; then :
8657  $as_echo_n "(cached) " >&6
8658else
8659  lt_cv_nm_interface="BSD nm"
8660  echo "int some_variable = 0;" > conftest.$ac_ext
8661  (eval echo "\"\$as_me:8661: $ac_compile\"" >&5)
8662  (eval "$ac_compile" 2>conftest.err)
8663  cat conftest.err >&5
8664  (eval echo "\"\$as_me:8664: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8665  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8666  cat conftest.err >&5
8667  (eval echo "\"\$as_me:8667: output\"" >&5)
8668  cat conftest.out >&5
8669  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8670    lt_cv_nm_interface="MS dumpbin"
8671  fi
8672  rm -f conftest*
8673fi
8674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8675$as_echo "$lt_cv_nm_interface" >&6; }
8676
8677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8678$as_echo_n "checking whether ln -s works... " >&6; }
8679LN_S=$as_ln_s
8680if test "$LN_S" = "ln -s"; then
8681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8682$as_echo "yes" >&6; }
8683else
8684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8685$as_echo "no, using $LN_S" >&6; }
8686fi
8687
8688# find the maximum length of command line arguments
8689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8690$as_echo_n "checking the maximum length of command line arguments... " >&6; }
8691if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
8692  $as_echo_n "(cached) " >&6
8693else
8694    i=0
8695  teststring="ABCD"
8696
8697  case $build_os in
8698  msdosdjgpp*)
8699    # On DJGPP, this test can blow up pretty badly due to problems in libc
8700    # (any single argument exceeding 2000 bytes causes a buffer overrun
8701    # during glob expansion).  Even if it were fixed, the result of this
8702    # check would be larger than it should be.
8703    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8704    ;;
8705
8706  gnu*)
8707    # Under GNU Hurd, this test is not required because there is
8708    # no limit to the length of command line arguments.
8709    # Libtool will interpret -1 as no limit whatsoever
8710    lt_cv_sys_max_cmd_len=-1;
8711    ;;
8712
8713  cygwin* | mingw* | cegcc*)
8714    # On Win9x/ME, this test blows up -- it succeeds, but takes
8715    # about 5 minutes as the teststring grows exponentially.
8716    # Worse, since 9x/ME are not pre-emptively multitasking,
8717    # you end up with a "frozen" computer, even though with patience
8718    # the test eventually succeeds (with a max line length of 256k).
8719    # Instead, let's just punt: use the minimum linelength reported by
8720    # all of the supported platforms: 8192 (on NT/2K/XP).
8721    lt_cv_sys_max_cmd_len=8192;
8722    ;;
8723
8724  amigaos*)
8725    # On AmigaOS with pdksh, this test takes hours, literally.
8726    # So we just punt and use a minimum line length of 8192.
8727    lt_cv_sys_max_cmd_len=8192;
8728    ;;
8729
8730  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8731    # This has been around since 386BSD, at least.  Likely further.
8732    if test -x /sbin/sysctl; then
8733      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8734    elif test -x /usr/sbin/sysctl; then
8735      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8736    else
8737      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
8738    fi
8739    # And add a safety zone
8740    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8741    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8742    ;;
8743
8744  interix*)
8745    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8746    lt_cv_sys_max_cmd_len=196608
8747    ;;
8748
8749  osf*)
8750    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8751    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8752    # nice to cause kernel panics so lets avoid the loop below.
8753    # First set a reasonable default.
8754    lt_cv_sys_max_cmd_len=16384
8755    #
8756    if test -x /sbin/sysconfig; then
8757      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8758        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8759      esac
8760    fi
8761    ;;
8762  sco3.2v5*)
8763    lt_cv_sys_max_cmd_len=102400
8764    ;;
8765  sysv5* | sco5v6* | sysv4.2uw2*)
8766    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8767    if test -n "$kargmax"; then
8768      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
8769    else
8770      lt_cv_sys_max_cmd_len=32768
8771    fi
8772    ;;
8773  *)
8774    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8775    if test -n "$lt_cv_sys_max_cmd_len"; then
8776      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8777      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8778    else
8779      # Make teststring a little bigger before we do anything with it.
8780      # a 1K string should be a reasonable start.
8781      for i in 1 2 3 4 5 6 7 8 ; do
8782        teststring=$teststring$teststring
8783      done
8784      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8785      # If test is not a shell built-in, we'll probably end up computing a
8786      # maximum length that is only half of the actual maximum length, but
8787      # we can't tell.
8788      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
8789	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
8790	      test $i != 17 # 1/2 MB should be enough
8791      do
8792        i=`expr $i + 1`
8793        teststring=$teststring$teststring
8794      done
8795      # Only check the string length outside the loop.
8796      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8797      teststring=
8798      # Add a significant safety factor because C++ compilers can tack on
8799      # massive amounts of additional arguments before passing them to the
8800      # linker.  It appears as though 1/2 is a usable value.
8801      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8802    fi
8803    ;;
8804  esac
8805
8806fi
8807
8808if test -n $lt_cv_sys_max_cmd_len ; then
8809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8810$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8811else
8812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8813$as_echo "none" >&6; }
8814fi
8815max_cmd_len=$lt_cv_sys_max_cmd_len
8816
8817
8818
8819
8820
8821
8822: ${CP="cp -f"}
8823: ${MV="mv -f"}
8824: ${RM="rm -f"}
8825
8826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
8827$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8828# Try some XSI features
8829xsi_shell=no
8830( _lt_dummy="a/b/c"
8831  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
8832      = c,a/b,, \
8833    && eval 'test $(( 1 + 1 )) -eq 2 \
8834    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8835  && xsi_shell=yes
8836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
8837$as_echo "$xsi_shell" >&6; }
8838
8839
8840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
8841$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8842lt_shell_append=no
8843( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8844    >/dev/null 2>&1 \
8845  && lt_shell_append=yes
8846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
8847$as_echo "$lt_shell_append" >&6; }
8848
8849
8850if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8851  lt_unset=unset
8852else
8853  lt_unset=false
8854fi
8855
8856
8857
8858
8859
8860# test EBCDIC or ASCII
8861case `echo X|tr X '\101'` in
8862 A) # ASCII based system
8863    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8864  lt_SP2NL='tr \040 \012'
8865  lt_NL2SP='tr \015\012 \040\040'
8866  ;;
8867 *) # EBCDIC based system
8868  lt_SP2NL='tr \100 \n'
8869  lt_NL2SP='tr \r\n \100\100'
8870  ;;
8871esac
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8882$as_echo_n "checking for $LD option to reload object files... " >&6; }
8883if test "${lt_cv_ld_reload_flag+set}" = set; then :
8884  $as_echo_n "(cached) " >&6
8885else
8886  lt_cv_ld_reload_flag='-r'
8887fi
8888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8889$as_echo "$lt_cv_ld_reload_flag" >&6; }
8890reload_flag=$lt_cv_ld_reload_flag
8891case $reload_flag in
8892"" | " "*) ;;
8893*) reload_flag=" $reload_flag" ;;
8894esac
8895reload_cmds='$LD$reload_flag -o $output$reload_objs'
8896case $host_os in
8897  darwin*)
8898    if test "$GCC" = yes; then
8899      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8900    else
8901      reload_cmds='$LD$reload_flag -o $output$reload_objs'
8902    fi
8903    ;;
8904esac
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914if test -n "$ac_tool_prefix"; then
8915  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8916set dummy ${ac_tool_prefix}objdump; ac_word=$2
8917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8918$as_echo_n "checking for $ac_word... " >&6; }
8919if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
8920  $as_echo_n "(cached) " >&6
8921else
8922  if test -n "$OBJDUMP"; then
8923  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8924else
8925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8926for as_dir in $PATH
8927do
8928  IFS=$as_save_IFS
8929  test -z "$as_dir" && as_dir=.
8930    for ac_exec_ext in '' $ac_executable_extensions; do
8931  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8932    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8933    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8934    break 2
8935  fi
8936done
8937  done
8938IFS=$as_save_IFS
8939
8940fi
8941fi
8942OBJDUMP=$ac_cv_prog_OBJDUMP
8943if test -n "$OBJDUMP"; then
8944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8945$as_echo "$OBJDUMP" >&6; }
8946else
8947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8948$as_echo "no" >&6; }
8949fi
8950
8951
8952fi
8953if test -z "$ac_cv_prog_OBJDUMP"; then
8954  ac_ct_OBJDUMP=$OBJDUMP
8955  # Extract the first word of "objdump", so it can be a program name with args.
8956set dummy objdump; ac_word=$2
8957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8958$as_echo_n "checking for $ac_word... " >&6; }
8959if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
8960  $as_echo_n "(cached) " >&6
8961else
8962  if test -n "$ac_ct_OBJDUMP"; then
8963  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8964else
8965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8966for as_dir in $PATH
8967do
8968  IFS=$as_save_IFS
8969  test -z "$as_dir" && as_dir=.
8970    for ac_exec_ext in '' $ac_executable_extensions; do
8971  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8972    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8973    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8974    break 2
8975  fi
8976done
8977  done
8978IFS=$as_save_IFS
8979
8980fi
8981fi
8982ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8983if test -n "$ac_ct_OBJDUMP"; then
8984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8985$as_echo "$ac_ct_OBJDUMP" >&6; }
8986else
8987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8988$as_echo "no" >&6; }
8989fi
8990
8991  if test "x$ac_ct_OBJDUMP" = x; then
8992    OBJDUMP="false"
8993  else
8994    case $cross_compiling:$ac_tool_warned in
8995yes:)
8996{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8997$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8998ac_tool_warned=yes ;;
8999esac
9000    OBJDUMP=$ac_ct_OBJDUMP
9001  fi
9002else
9003  OBJDUMP="$ac_cv_prog_OBJDUMP"
9004fi
9005
9006test -z "$OBJDUMP" && OBJDUMP=objdump
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9017$as_echo_n "checking how to recognize dependent libraries... " >&6; }
9018if test "${lt_cv_deplibs_check_method+set}" = set; then :
9019  $as_echo_n "(cached) " >&6
9020else
9021  lt_cv_file_magic_cmd='$MAGIC_CMD'
9022lt_cv_file_magic_test_file=
9023lt_cv_deplibs_check_method='unknown'
9024# Need to set the preceding variable on all platforms that support
9025# interlibrary dependencies.
9026# 'none' -- dependencies not supported.
9027# `unknown' -- same as none, but documents that we really don't know.
9028# 'pass_all' -- all dependencies passed with no checks.
9029# 'test_compile' -- check by making test program.
9030# 'file_magic [[regex]]' -- check by looking for files in library path
9031# which responds to the $file_magic_cmd with a given extended regex.
9032# If you have `file' or equivalent on your system and you're not sure
9033# whether `pass_all' will *always* work, you probably want this one.
9034
9035case $host_os in
9036aix[4-9]*)
9037  lt_cv_deplibs_check_method=pass_all
9038  ;;
9039
9040beos*)
9041  lt_cv_deplibs_check_method=pass_all
9042  ;;
9043
9044bsdi[45]*)
9045  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9046  lt_cv_file_magic_cmd='/usr/bin/file -L'
9047  lt_cv_file_magic_test_file=/shlib/libc.so
9048  ;;
9049
9050cygwin*)
9051  # func_win32_libid is a shell function defined in ltmain.sh
9052  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9053  lt_cv_file_magic_cmd='func_win32_libid'
9054  ;;
9055
9056mingw* | pw32*)
9057  # Base MSYS/MinGW do not provide the 'file' command needed by
9058  # func_win32_libid shell function, so use a weaker test based on 'objdump',
9059  # unless we find 'file', for example because we are cross-compiling.
9060  if ( file / ) >/dev/null 2>&1; then
9061    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9062    lt_cv_file_magic_cmd='func_win32_libid'
9063  else
9064    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
9065    lt_cv_file_magic_cmd='$OBJDUMP -f'
9066  fi
9067  ;;
9068
9069cegcc)
9070  # use the weaker test based on 'objdump'. See mingw*.
9071  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9072  lt_cv_file_magic_cmd='$OBJDUMP -f'
9073  ;;
9074
9075darwin* | rhapsody*)
9076  lt_cv_deplibs_check_method=pass_all
9077  ;;
9078
9079freebsd* | dragonfly*)
9080  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9081    case $host_cpu in
9082    i*86 )
9083      # Not sure whether the presence of OpenBSD here was a mistake.
9084      # Let's accept both of them until this is cleared up.
9085      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9086      lt_cv_file_magic_cmd=/usr/bin/file
9087      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9088      ;;
9089    esac
9090  else
9091    lt_cv_deplibs_check_method=pass_all
9092  fi
9093  ;;
9094
9095gnu*)
9096  lt_cv_deplibs_check_method=pass_all
9097  ;;
9098
9099hpux10.20* | hpux11*)
9100  lt_cv_file_magic_cmd=/usr/bin/file
9101  case $host_cpu in
9102  ia64*)
9103    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9104    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9105    ;;
9106  hppa*64*)
9107    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]'
9108    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9109    ;;
9110  *)
9111    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
9112    lt_cv_file_magic_test_file=/usr/lib/libc.sl
9113    ;;
9114  esac
9115  ;;
9116
9117interix[3-9]*)
9118  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9119  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9120  ;;
9121
9122irix5* | irix6* | nonstopux*)
9123  case $LD in
9124  *-32|*"-32 ") libmagic=32-bit;;
9125  *-n32|*"-n32 ") libmagic=N32;;
9126  *-64|*"-64 ") libmagic=64-bit;;
9127  *) libmagic=never-match;;
9128  esac
9129  lt_cv_deplibs_check_method=pass_all
9130  ;;
9131
9132# This must be Linux ELF.
9133linux* | k*bsd*-gnu | kopensolaris*-gnu)
9134  lt_cv_deplibs_check_method=pass_all
9135  ;;
9136
9137netbsd* | netbsdelf*-gnu)
9138  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9139    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9140  else
9141    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9142  fi
9143  ;;
9144
9145newos6*)
9146  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9147  lt_cv_file_magic_cmd=/usr/bin/file
9148  lt_cv_file_magic_test_file=/usr/lib/libnls.so
9149  ;;
9150
9151*nto* | *qnx*)
9152  lt_cv_deplibs_check_method=pass_all
9153  ;;
9154
9155openbsd*)
9156  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9157    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9158  else
9159    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9160  fi
9161  ;;
9162
9163osf3* | osf4* | osf5*)
9164  lt_cv_deplibs_check_method=pass_all
9165  ;;
9166
9167rdos*)
9168  lt_cv_deplibs_check_method=pass_all
9169  ;;
9170
9171solaris*)
9172  lt_cv_deplibs_check_method=pass_all
9173  ;;
9174
9175sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9176  lt_cv_deplibs_check_method=pass_all
9177  ;;
9178
9179sysv4 | sysv4.3*)
9180  case $host_vendor in
9181  motorola)
9182    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]'
9183    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9184    ;;
9185  ncr)
9186    lt_cv_deplibs_check_method=pass_all
9187    ;;
9188  sequent)
9189    lt_cv_file_magic_cmd='/bin/file'
9190    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9191    ;;
9192  sni)
9193    lt_cv_file_magic_cmd='/bin/file'
9194    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9195    lt_cv_file_magic_test_file=/lib/libc.so
9196    ;;
9197  siemens)
9198    lt_cv_deplibs_check_method=pass_all
9199    ;;
9200  pc)
9201    lt_cv_deplibs_check_method=pass_all
9202    ;;
9203  esac
9204  ;;
9205
9206tpf*)
9207  lt_cv_deplibs_check_method=pass_all
9208  ;;
9209esac
9210
9211fi
9212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9213$as_echo "$lt_cv_deplibs_check_method" >&6; }
9214file_magic_cmd=$lt_cv_file_magic_cmd
9215deplibs_check_method=$lt_cv_deplibs_check_method
9216test -z "$deplibs_check_method" && deplibs_check_method=unknown
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229if test -n "$ac_tool_prefix"; then
9230  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9231set dummy ${ac_tool_prefix}ar; ac_word=$2
9232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9233$as_echo_n "checking for $ac_word... " >&6; }
9234if test "${ac_cv_prog_AR+set}" = set; then :
9235  $as_echo_n "(cached) " >&6
9236else
9237  if test -n "$AR"; then
9238  ac_cv_prog_AR="$AR" # Let the user override the test.
9239else
9240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9241for as_dir in $PATH
9242do
9243  IFS=$as_save_IFS
9244  test -z "$as_dir" && as_dir=.
9245    for ac_exec_ext in '' $ac_executable_extensions; do
9246  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9247    ac_cv_prog_AR="${ac_tool_prefix}ar"
9248    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9249    break 2
9250  fi
9251done
9252  done
9253IFS=$as_save_IFS
9254
9255fi
9256fi
9257AR=$ac_cv_prog_AR
9258if test -n "$AR"; then
9259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9260$as_echo "$AR" >&6; }
9261else
9262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9263$as_echo "no" >&6; }
9264fi
9265
9266
9267fi
9268if test -z "$ac_cv_prog_AR"; then
9269  ac_ct_AR=$AR
9270  # Extract the first word of "ar", so it can be a program name with args.
9271set dummy ar; ac_word=$2
9272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9273$as_echo_n "checking for $ac_word... " >&6; }
9274if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
9275  $as_echo_n "(cached) " >&6
9276else
9277  if test -n "$ac_ct_AR"; then
9278  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9279else
9280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9281for as_dir in $PATH
9282do
9283  IFS=$as_save_IFS
9284  test -z "$as_dir" && as_dir=.
9285    for ac_exec_ext in '' $ac_executable_extensions; do
9286  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9287    ac_cv_prog_ac_ct_AR="ar"
9288    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9289    break 2
9290  fi
9291done
9292  done
9293IFS=$as_save_IFS
9294
9295fi
9296fi
9297ac_ct_AR=$ac_cv_prog_ac_ct_AR
9298if test -n "$ac_ct_AR"; then
9299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9300$as_echo "$ac_ct_AR" >&6; }
9301else
9302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9303$as_echo "no" >&6; }
9304fi
9305
9306  if test "x$ac_ct_AR" = x; then
9307    AR="false"
9308  else
9309    case $cross_compiling:$ac_tool_warned in
9310yes:)
9311{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9312$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9313ac_tool_warned=yes ;;
9314esac
9315    AR=$ac_ct_AR
9316  fi
9317else
9318  AR="$ac_cv_prog_AR"
9319fi
9320
9321test -z "$AR" && AR=ar
9322test -z "$AR_FLAGS" && AR_FLAGS=cru
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334if test -n "$ac_tool_prefix"; then
9335  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9336set dummy ${ac_tool_prefix}strip; ac_word=$2
9337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9338$as_echo_n "checking for $ac_word... " >&6; }
9339if test "${ac_cv_prog_STRIP+set}" = set; then :
9340  $as_echo_n "(cached) " >&6
9341else
9342  if test -n "$STRIP"; then
9343  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9344else
9345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9346for as_dir in $PATH
9347do
9348  IFS=$as_save_IFS
9349  test -z "$as_dir" && as_dir=.
9350    for ac_exec_ext in '' $ac_executable_extensions; do
9351  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9352    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9353    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9354    break 2
9355  fi
9356done
9357  done
9358IFS=$as_save_IFS
9359
9360fi
9361fi
9362STRIP=$ac_cv_prog_STRIP
9363if test -n "$STRIP"; then
9364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9365$as_echo "$STRIP" >&6; }
9366else
9367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9368$as_echo "no" >&6; }
9369fi
9370
9371
9372fi
9373if test -z "$ac_cv_prog_STRIP"; then
9374  ac_ct_STRIP=$STRIP
9375  # Extract the first word of "strip", so it can be a program name with args.
9376set dummy strip; ac_word=$2
9377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9378$as_echo_n "checking for $ac_word... " >&6; }
9379if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
9380  $as_echo_n "(cached) " >&6
9381else
9382  if test -n "$ac_ct_STRIP"; then
9383  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9384else
9385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9386for as_dir in $PATH
9387do
9388  IFS=$as_save_IFS
9389  test -z "$as_dir" && as_dir=.
9390    for ac_exec_ext in '' $ac_executable_extensions; do
9391  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9392    ac_cv_prog_ac_ct_STRIP="strip"
9393    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9394    break 2
9395  fi
9396done
9397  done
9398IFS=$as_save_IFS
9399
9400fi
9401fi
9402ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9403if test -n "$ac_ct_STRIP"; then
9404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9405$as_echo "$ac_ct_STRIP" >&6; }
9406else
9407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9408$as_echo "no" >&6; }
9409fi
9410
9411  if test "x$ac_ct_STRIP" = x; then
9412    STRIP=":"
9413  else
9414    case $cross_compiling:$ac_tool_warned in
9415yes:)
9416{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9417$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9418ac_tool_warned=yes ;;
9419esac
9420    STRIP=$ac_ct_STRIP
9421  fi
9422else
9423  STRIP="$ac_cv_prog_STRIP"
9424fi
9425
9426test -z "$STRIP" && STRIP=:
9427
9428
9429
9430
9431
9432
9433if test -n "$ac_tool_prefix"; then
9434  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9435set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9437$as_echo_n "checking for $ac_word... " >&6; }
9438if test "${ac_cv_prog_RANLIB+set}" = set; then :
9439  $as_echo_n "(cached) " >&6
9440else
9441  if test -n "$RANLIB"; then
9442  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9443else
9444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9445for as_dir in $PATH
9446do
9447  IFS=$as_save_IFS
9448  test -z "$as_dir" && as_dir=.
9449    for ac_exec_ext in '' $ac_executable_extensions; do
9450  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9451    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9452    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9453    break 2
9454  fi
9455done
9456  done
9457IFS=$as_save_IFS
9458
9459fi
9460fi
9461RANLIB=$ac_cv_prog_RANLIB
9462if test -n "$RANLIB"; then
9463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9464$as_echo "$RANLIB" >&6; }
9465else
9466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9467$as_echo "no" >&6; }
9468fi
9469
9470
9471fi
9472if test -z "$ac_cv_prog_RANLIB"; then
9473  ac_ct_RANLIB=$RANLIB
9474  # Extract the first word of "ranlib", so it can be a program name with args.
9475set dummy ranlib; ac_word=$2
9476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9477$as_echo_n "checking for $ac_word... " >&6; }
9478if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
9479  $as_echo_n "(cached) " >&6
9480else
9481  if test -n "$ac_ct_RANLIB"; then
9482  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9483else
9484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9485for as_dir in $PATH
9486do
9487  IFS=$as_save_IFS
9488  test -z "$as_dir" && as_dir=.
9489    for ac_exec_ext in '' $ac_executable_extensions; do
9490  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9491    ac_cv_prog_ac_ct_RANLIB="ranlib"
9492    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9493    break 2
9494  fi
9495done
9496  done
9497IFS=$as_save_IFS
9498
9499fi
9500fi
9501ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9502if test -n "$ac_ct_RANLIB"; then
9503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9504$as_echo "$ac_ct_RANLIB" >&6; }
9505else
9506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9507$as_echo "no" >&6; }
9508fi
9509
9510  if test "x$ac_ct_RANLIB" = x; then
9511    RANLIB=":"
9512  else
9513    case $cross_compiling:$ac_tool_warned in
9514yes:)
9515{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9516$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9517ac_tool_warned=yes ;;
9518esac
9519    RANLIB=$ac_ct_RANLIB
9520  fi
9521else
9522  RANLIB="$ac_cv_prog_RANLIB"
9523fi
9524
9525test -z "$RANLIB" && RANLIB=:
9526
9527
9528
9529
9530
9531
9532# Determine commands to create old-style static archives.
9533old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9534old_postinstall_cmds='chmod 644 $oldlib'
9535old_postuninstall_cmds=
9536
9537if test -n "$RANLIB"; then
9538  case $host_os in
9539  openbsd*)
9540    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9541    ;;
9542  *)
9543    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9544    ;;
9545  esac
9546  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9547fi
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582# If no C compiler was specified, use CC.
9583LTCC=${LTCC-"$CC"}
9584
9585# If no C compiler flags were specified, use CFLAGS.
9586LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9587
9588# Allow CC to be a program name with arguments.
9589compiler=$CC
9590
9591
9592# Check for command to grab the raw symbol name followed by C symbol from nm.
9593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9594$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9595if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
9596  $as_echo_n "(cached) " >&6
9597else
9598
9599# These are sane defaults that work on at least a few old systems.
9600# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9601
9602# Character class describing NM global symbol codes.
9603symcode='[BCDEGRST]'
9604
9605# Regexp to match symbols that can be accessed directly from C.
9606sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9607
9608# Define system-specific variables.
9609case $host_os in
9610aix*)
9611  symcode='[BCDT]'
9612  ;;
9613cygwin* | mingw* | pw32* | cegcc*)
9614  symcode='[ABCDGISTW]'
9615  ;;
9616hpux*)
9617  if test "$host_cpu" = ia64; then
9618    symcode='[ABCDEGRST]'
9619  fi
9620  ;;
9621irix* | nonstopux*)
9622  symcode='[BCDEGRST]'
9623  ;;
9624osf*)
9625  symcode='[BCDEGQRST]'
9626  ;;
9627solaris*)
9628  symcode='[BDRT]'
9629  ;;
9630sco3.2v5*)
9631  symcode='[DT]'
9632  ;;
9633sysv4.2uw2*)
9634  symcode='[DT]'
9635  ;;
9636sysv5* | sco5v6* | unixware* | OpenUNIX*)
9637  symcode='[ABDT]'
9638  ;;
9639sysv4)
9640  symcode='[DFNSTU]'
9641  ;;
9642esac
9643
9644# If we're using GNU nm, then use its standard symbol codes.
9645case `$NM -V 2>&1` in
9646*GNU* | *'with BFD'*)
9647  symcode='[ABCDGIRSTW]' ;;
9648esac
9649
9650# Transform an extracted symbol line into a proper C declaration.
9651# Some systems (esp. on ia64) link data and code symbols differently,
9652# so use this general approach.
9653lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9654
9655# Transform an extracted symbol line into symbol name and symbol address
9656lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
9657lt_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'"
9658
9659# Handle CRLF in mingw tool chain
9660opt_cr=
9661case $build_os in
9662mingw*)
9663  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9664  ;;
9665esac
9666
9667# Try without a prefix underscore, then with it.
9668for ac_symprfx in "" "_"; do
9669
9670  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9671  symxfrm="\\1 $ac_symprfx\\2 \\2"
9672
9673  # Write the raw and C identifiers.
9674  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9675    # Fake it for dumpbin and say T for any non-static function
9676    # and D for any global variable.
9677    # Also find C++ and __fastcall symbols from MSVC++,
9678    # which start with @ or ?.
9679    lt_cv_sys_global_symbol_pipe="$AWK '"\
9680"     {last_section=section; section=\$ 3};"\
9681"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9682"     \$ 0!~/External *\|/{next};"\
9683"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9684"     {if(hide[section]) next};"\
9685"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9686"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9687"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
9688"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9689"     ' prfx=^$ac_symprfx"
9690  else
9691    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9692  fi
9693
9694  # Check to see that the pipe works correctly.
9695  pipe_works=no
9696
9697  rm -f conftest*
9698  cat > conftest.$ac_ext <<_LT_EOF
9699#ifdef __cplusplus
9700extern "C" {
9701#endif
9702char nm_test_var;
9703void nm_test_func(void);
9704void nm_test_func(void){}
9705#ifdef __cplusplus
9706}
9707#endif
9708int main(){nm_test_var='a';nm_test_func();return(0);}
9709_LT_EOF
9710
9711  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9712  (eval $ac_compile) 2>&5
9713  ac_status=$?
9714  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9715  test $ac_status = 0; }; then
9716    # Now try to grab the symbols.
9717    nlist=conftest.nm
9718    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
9719  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9720  ac_status=$?
9721  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9722  test $ac_status = 0; } && test -s "$nlist"; then
9723      # Try sorting and uniquifying the output.
9724      if sort "$nlist" | uniq > "$nlist"T; then
9725	mv -f "$nlist"T "$nlist"
9726      else
9727	rm -f "$nlist"T
9728      fi
9729
9730      # Make sure that we snagged all the symbols we need.
9731      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9732	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9733	  cat <<_LT_EOF > conftest.$ac_ext
9734#ifdef __cplusplus
9735extern "C" {
9736#endif
9737
9738_LT_EOF
9739	  # Now generate the symbol file.
9740	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9741
9742	  cat <<_LT_EOF >> conftest.$ac_ext
9743
9744/* The mapping between symbol names and symbols.  */
9745const struct {
9746  const char *name;
9747  void       *address;
9748}
9749lt__PROGRAM__LTX_preloaded_symbols[] =
9750{
9751  { "@PROGRAM@", (void *) 0 },
9752_LT_EOF
9753	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9754	  cat <<\_LT_EOF >> conftest.$ac_ext
9755  {0, (void *) 0}
9756};
9757
9758/* This works around a problem in FreeBSD linker */
9759#ifdef FREEBSD_WORKAROUND
9760static const void *lt_preloaded_setup() {
9761  return lt__PROGRAM__LTX_preloaded_symbols;
9762}
9763#endif
9764
9765#ifdef __cplusplus
9766}
9767#endif
9768_LT_EOF
9769	  # Now try linking the two files.
9770	  mv conftest.$ac_objext conftstm.$ac_objext
9771	  lt_save_LIBS="$LIBS"
9772	  lt_save_CFLAGS="$CFLAGS"
9773	  LIBS="conftstm.$ac_objext"
9774	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9775	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9776  (eval $ac_link) 2>&5
9777  ac_status=$?
9778  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9779  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9780	    pipe_works=yes
9781	  fi
9782	  LIBS="$lt_save_LIBS"
9783	  CFLAGS="$lt_save_CFLAGS"
9784	else
9785	  echo "cannot find nm_test_func in $nlist" >&5
9786	fi
9787      else
9788	echo "cannot find nm_test_var in $nlist" >&5
9789      fi
9790    else
9791      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9792    fi
9793  else
9794    echo "$progname: failed program was:" >&5
9795    cat conftest.$ac_ext >&5
9796  fi
9797  rm -rf conftest* conftst*
9798
9799  # Do not use the global_symbol_pipe unless it works.
9800  if test "$pipe_works" = yes; then
9801    break
9802  else
9803    lt_cv_sys_global_symbol_pipe=
9804  fi
9805done
9806
9807fi
9808
9809if test -z "$lt_cv_sys_global_symbol_pipe"; then
9810  lt_cv_sys_global_symbol_to_cdecl=
9811fi
9812if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9814$as_echo "failed" >&6; }
9815else
9816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9817$as_echo "ok" >&6; }
9818fi
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841# Check whether --enable-libtool-lock was given.
9842if test "${enable_libtool_lock+set}" = set; then :
9843  enableval=$enable_libtool_lock;
9844fi
9845
9846test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9847
9848# Some flags need to be propagated to the compiler or linker for good
9849# libtool support.
9850case $host in
9851ia64-*-hpux*)
9852  # Find out which ABI we are using.
9853  echo 'int i;' > conftest.$ac_ext
9854  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9855  (eval $ac_compile) 2>&5
9856  ac_status=$?
9857  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9858  test $ac_status = 0; }; then
9859    case `/usr/bin/file conftest.$ac_objext` in
9860      *ELF-32*)
9861	HPUX_IA64_MODE="32"
9862	;;
9863      *ELF-64*)
9864	HPUX_IA64_MODE="64"
9865	;;
9866    esac
9867  fi
9868  rm -rf conftest*
9869  ;;
9870*-*-irix6*)
9871  # Find out which ABI we are using.
9872  echo '#line 9872 "configure"' > conftest.$ac_ext
9873  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9874  (eval $ac_compile) 2>&5
9875  ac_status=$?
9876  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9877  test $ac_status = 0; }; then
9878    if test "$lt_cv_prog_gnu_ld" = yes; then
9879      case `/usr/bin/file conftest.$ac_objext` in
9880	*32-bit*)
9881	  LD="${LD-ld} -melf32bsmip"
9882	  ;;
9883	*N32*)
9884	  LD="${LD-ld} -melf32bmipn32"
9885	  ;;
9886	*64-bit*)
9887	  LD="${LD-ld} -melf64bmip"
9888	;;
9889      esac
9890    else
9891      case `/usr/bin/file conftest.$ac_objext` in
9892	*32-bit*)
9893	  LD="${LD-ld} -32"
9894	  ;;
9895	*N32*)
9896	  LD="${LD-ld} -n32"
9897	  ;;
9898	*64-bit*)
9899	  LD="${LD-ld} -64"
9900	  ;;
9901      esac
9902    fi
9903  fi
9904  rm -rf conftest*
9905  ;;
9906
9907x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9908s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9909  # Find out which ABI we are using.
9910  echo 'int i;' > conftest.$ac_ext
9911  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9912  (eval $ac_compile) 2>&5
9913  ac_status=$?
9914  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9915  test $ac_status = 0; }; then
9916    case `/usr/bin/file conftest.o` in
9917      *32-bit*)
9918	case $host in
9919	  x86_64-*kfreebsd*-gnu)
9920	    LD="${LD-ld} -m elf_i386_fbsd"
9921	    ;;
9922	  x86_64-*linux*)
9923	    LD="${LD-ld} -m elf_i386"
9924	    ;;
9925	  ppc64-*linux*|powerpc64-*linux*)
9926	    LD="${LD-ld} -m elf32ppclinux"
9927	    ;;
9928	  s390x-*linux*)
9929	    LD="${LD-ld} -m elf_s390"
9930	    ;;
9931	  sparc64-*linux*)
9932	    LD="${LD-ld} -m elf32_sparc"
9933	    ;;
9934	esac
9935	;;
9936      *64-bit*)
9937	case $host in
9938	  x86_64-*kfreebsd*-gnu)
9939	    LD="${LD-ld} -m elf_x86_64_fbsd"
9940	    ;;
9941	  x86_64-*linux*)
9942	    LD="${LD-ld} -m elf_x86_64"
9943	    ;;
9944	  ppc*-*linux*|powerpc*-*linux*)
9945	    LD="${LD-ld} -m elf64ppc"
9946	    ;;
9947	  s390*-*linux*|s390*-*tpf*)
9948	    LD="${LD-ld} -m elf64_s390"
9949	    ;;
9950	  sparc*-*linux*)
9951	    LD="${LD-ld} -m elf64_sparc"
9952	    ;;
9953	esac
9954	;;
9955    esac
9956  fi
9957  rm -rf conftest*
9958  ;;
9959
9960*-*-sco3.2v5*)
9961  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9962  SAVE_CFLAGS="$CFLAGS"
9963  CFLAGS="$CFLAGS -belf"
9964  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9965$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9966if test "${lt_cv_cc_needs_belf+set}" = set; then :
9967  $as_echo_n "(cached) " >&6
9968else
9969  ac_ext=c
9970ac_cpp='$CPP $CPPFLAGS'
9971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9973ac_compiler_gnu=$ac_cv_c_compiler_gnu
9974
9975     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9976/* end confdefs.h.  */
9977
9978int
9979main ()
9980{
9981
9982  ;
9983  return 0;
9984}
9985_ACEOF
9986if ac_fn_c_try_link "$LINENO"; then :
9987  lt_cv_cc_needs_belf=yes
9988else
9989  lt_cv_cc_needs_belf=no
9990fi
9991rm -f core conftest.err conftest.$ac_objext \
9992    conftest$ac_exeext conftest.$ac_ext
9993     ac_ext=c
9994ac_cpp='$CPP $CPPFLAGS'
9995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9997ac_compiler_gnu=$ac_cv_c_compiler_gnu
9998
9999fi
10000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10001$as_echo "$lt_cv_cc_needs_belf" >&6; }
10002  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10003    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10004    CFLAGS="$SAVE_CFLAGS"
10005  fi
10006  ;;
10007sparc*-*solaris*)
10008  # Find out which ABI we are using.
10009  echo 'int i;' > conftest.$ac_ext
10010  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10011  (eval $ac_compile) 2>&5
10012  ac_status=$?
10013  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10014  test $ac_status = 0; }; then
10015    case `/usr/bin/file conftest.o` in
10016    *64-bit*)
10017      case $lt_cv_prog_gnu_ld in
10018      yes*) LD="${LD-ld} -m elf64_sparc" ;;
10019      *)
10020	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10021	  LD="${LD-ld} -64"
10022	fi
10023	;;
10024      esac
10025      ;;
10026    esac
10027  fi
10028  rm -rf conftest*
10029  ;;
10030esac
10031
10032need_locks="$enable_libtool_lock"
10033
10034
10035  case $host_os in
10036    rhapsody* | darwin*)
10037    if test -n "$ac_tool_prefix"; then
10038  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10039set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10041$as_echo_n "checking for $ac_word... " >&6; }
10042if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
10043  $as_echo_n "(cached) " >&6
10044else
10045  if test -n "$DSYMUTIL"; then
10046  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10047else
10048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10049for as_dir in $PATH
10050do
10051  IFS=$as_save_IFS
10052  test -z "$as_dir" && as_dir=.
10053    for ac_exec_ext in '' $ac_executable_extensions; do
10054  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10055    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10056    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10057    break 2
10058  fi
10059done
10060  done
10061IFS=$as_save_IFS
10062
10063fi
10064fi
10065DSYMUTIL=$ac_cv_prog_DSYMUTIL
10066if test -n "$DSYMUTIL"; then
10067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10068$as_echo "$DSYMUTIL" >&6; }
10069else
10070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10071$as_echo "no" >&6; }
10072fi
10073
10074
10075fi
10076if test -z "$ac_cv_prog_DSYMUTIL"; then
10077  ac_ct_DSYMUTIL=$DSYMUTIL
10078  # Extract the first word of "dsymutil", so it can be a program name with args.
10079set dummy dsymutil; ac_word=$2
10080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10081$as_echo_n "checking for $ac_word... " >&6; }
10082if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
10083  $as_echo_n "(cached) " >&6
10084else
10085  if test -n "$ac_ct_DSYMUTIL"; then
10086  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10087else
10088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10089for as_dir in $PATH
10090do
10091  IFS=$as_save_IFS
10092  test -z "$as_dir" && as_dir=.
10093    for ac_exec_ext in '' $ac_executable_extensions; do
10094  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10095    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10096    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10097    break 2
10098  fi
10099done
10100  done
10101IFS=$as_save_IFS
10102
10103fi
10104fi
10105ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10106if test -n "$ac_ct_DSYMUTIL"; then
10107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10108$as_echo "$ac_ct_DSYMUTIL" >&6; }
10109else
10110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10111$as_echo "no" >&6; }
10112fi
10113
10114  if test "x$ac_ct_DSYMUTIL" = x; then
10115    DSYMUTIL=":"
10116  else
10117    case $cross_compiling:$ac_tool_warned in
10118yes:)
10119{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10120$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10121ac_tool_warned=yes ;;
10122esac
10123    DSYMUTIL=$ac_ct_DSYMUTIL
10124  fi
10125else
10126  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10127fi
10128
10129    if test -n "$ac_tool_prefix"; then
10130  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10131set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10133$as_echo_n "checking for $ac_word... " >&6; }
10134if test "${ac_cv_prog_NMEDIT+set}" = set; then :
10135  $as_echo_n "(cached) " >&6
10136else
10137  if test -n "$NMEDIT"; then
10138  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10139else
10140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10141for as_dir in $PATH
10142do
10143  IFS=$as_save_IFS
10144  test -z "$as_dir" && as_dir=.
10145    for ac_exec_ext in '' $ac_executable_extensions; do
10146  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10147    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10148    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10149    break 2
10150  fi
10151done
10152  done
10153IFS=$as_save_IFS
10154
10155fi
10156fi
10157NMEDIT=$ac_cv_prog_NMEDIT
10158if test -n "$NMEDIT"; then
10159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10160$as_echo "$NMEDIT" >&6; }
10161else
10162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10163$as_echo "no" >&6; }
10164fi
10165
10166
10167fi
10168if test -z "$ac_cv_prog_NMEDIT"; then
10169  ac_ct_NMEDIT=$NMEDIT
10170  # Extract the first word of "nmedit", so it can be a program name with args.
10171set dummy nmedit; ac_word=$2
10172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10173$as_echo_n "checking for $ac_word... " >&6; }
10174if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
10175  $as_echo_n "(cached) " >&6
10176else
10177  if test -n "$ac_ct_NMEDIT"; then
10178  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10179else
10180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10181for as_dir in $PATH
10182do
10183  IFS=$as_save_IFS
10184  test -z "$as_dir" && as_dir=.
10185    for ac_exec_ext in '' $ac_executable_extensions; do
10186  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10187    ac_cv_prog_ac_ct_NMEDIT="nmedit"
10188    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10189    break 2
10190  fi
10191done
10192  done
10193IFS=$as_save_IFS
10194
10195fi
10196fi
10197ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10198if test -n "$ac_ct_NMEDIT"; then
10199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10200$as_echo "$ac_ct_NMEDIT" >&6; }
10201else
10202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10203$as_echo "no" >&6; }
10204fi
10205
10206  if test "x$ac_ct_NMEDIT" = x; then
10207    NMEDIT=":"
10208  else
10209    case $cross_compiling:$ac_tool_warned in
10210yes:)
10211{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10212$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10213ac_tool_warned=yes ;;
10214esac
10215    NMEDIT=$ac_ct_NMEDIT
10216  fi
10217else
10218  NMEDIT="$ac_cv_prog_NMEDIT"
10219fi
10220
10221    if test -n "$ac_tool_prefix"; then
10222  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10223set dummy ${ac_tool_prefix}lipo; ac_word=$2
10224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10225$as_echo_n "checking for $ac_word... " >&6; }
10226if test "${ac_cv_prog_LIPO+set}" = set; then :
10227  $as_echo_n "(cached) " >&6
10228else
10229  if test -n "$LIPO"; then
10230  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10231else
10232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10233for as_dir in $PATH
10234do
10235  IFS=$as_save_IFS
10236  test -z "$as_dir" && as_dir=.
10237    for ac_exec_ext in '' $ac_executable_extensions; do
10238  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10239    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10240    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10241    break 2
10242  fi
10243done
10244  done
10245IFS=$as_save_IFS
10246
10247fi
10248fi
10249LIPO=$ac_cv_prog_LIPO
10250if test -n "$LIPO"; then
10251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10252$as_echo "$LIPO" >&6; }
10253else
10254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10255$as_echo "no" >&6; }
10256fi
10257
10258
10259fi
10260if test -z "$ac_cv_prog_LIPO"; then
10261  ac_ct_LIPO=$LIPO
10262  # Extract the first word of "lipo", so it can be a program name with args.
10263set dummy lipo; ac_word=$2
10264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10265$as_echo_n "checking for $ac_word... " >&6; }
10266if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
10267  $as_echo_n "(cached) " >&6
10268else
10269  if test -n "$ac_ct_LIPO"; then
10270  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10271else
10272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10273for as_dir in $PATH
10274do
10275  IFS=$as_save_IFS
10276  test -z "$as_dir" && as_dir=.
10277    for ac_exec_ext in '' $ac_executable_extensions; do
10278  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10279    ac_cv_prog_ac_ct_LIPO="lipo"
10280    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10281    break 2
10282  fi
10283done
10284  done
10285IFS=$as_save_IFS
10286
10287fi
10288fi
10289ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10290if test -n "$ac_ct_LIPO"; then
10291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10292$as_echo "$ac_ct_LIPO" >&6; }
10293else
10294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10295$as_echo "no" >&6; }
10296fi
10297
10298  if test "x$ac_ct_LIPO" = x; then
10299    LIPO=":"
10300  else
10301    case $cross_compiling:$ac_tool_warned in
10302yes:)
10303{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10304$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10305ac_tool_warned=yes ;;
10306esac
10307    LIPO=$ac_ct_LIPO
10308  fi
10309else
10310  LIPO="$ac_cv_prog_LIPO"
10311fi
10312
10313    if test -n "$ac_tool_prefix"; then
10314  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10315set dummy ${ac_tool_prefix}otool; ac_word=$2
10316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10317$as_echo_n "checking for $ac_word... " >&6; }
10318if test "${ac_cv_prog_OTOOL+set}" = set; then :
10319  $as_echo_n "(cached) " >&6
10320else
10321  if test -n "$OTOOL"; then
10322  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10323else
10324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10325for as_dir in $PATH
10326do
10327  IFS=$as_save_IFS
10328  test -z "$as_dir" && as_dir=.
10329    for ac_exec_ext in '' $ac_executable_extensions; do
10330  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10331    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10332    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10333    break 2
10334  fi
10335done
10336  done
10337IFS=$as_save_IFS
10338
10339fi
10340fi
10341OTOOL=$ac_cv_prog_OTOOL
10342if test -n "$OTOOL"; then
10343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10344$as_echo "$OTOOL" >&6; }
10345else
10346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10347$as_echo "no" >&6; }
10348fi
10349
10350
10351fi
10352if test -z "$ac_cv_prog_OTOOL"; then
10353  ac_ct_OTOOL=$OTOOL
10354  # Extract the first word of "otool", so it can be a program name with args.
10355set dummy otool; ac_word=$2
10356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10357$as_echo_n "checking for $ac_word... " >&6; }
10358if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
10359  $as_echo_n "(cached) " >&6
10360else
10361  if test -n "$ac_ct_OTOOL"; then
10362  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10363else
10364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10365for as_dir in $PATH
10366do
10367  IFS=$as_save_IFS
10368  test -z "$as_dir" && as_dir=.
10369    for ac_exec_ext in '' $ac_executable_extensions; do
10370  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10371    ac_cv_prog_ac_ct_OTOOL="otool"
10372    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10373    break 2
10374  fi
10375done
10376  done
10377IFS=$as_save_IFS
10378
10379fi
10380fi
10381ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10382if test -n "$ac_ct_OTOOL"; then
10383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10384$as_echo "$ac_ct_OTOOL" >&6; }
10385else
10386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10387$as_echo "no" >&6; }
10388fi
10389
10390  if test "x$ac_ct_OTOOL" = x; then
10391    OTOOL=":"
10392  else
10393    case $cross_compiling:$ac_tool_warned in
10394yes:)
10395{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10396$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10397ac_tool_warned=yes ;;
10398esac
10399    OTOOL=$ac_ct_OTOOL
10400  fi
10401else
10402  OTOOL="$ac_cv_prog_OTOOL"
10403fi
10404
10405    if test -n "$ac_tool_prefix"; then
10406  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10407set dummy ${ac_tool_prefix}otool64; ac_word=$2
10408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10409$as_echo_n "checking for $ac_word... " >&6; }
10410if test "${ac_cv_prog_OTOOL64+set}" = set; then :
10411  $as_echo_n "(cached) " >&6
10412else
10413  if test -n "$OTOOL64"; then
10414  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10415else
10416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10417for as_dir in $PATH
10418do
10419  IFS=$as_save_IFS
10420  test -z "$as_dir" && as_dir=.
10421    for ac_exec_ext in '' $ac_executable_extensions; do
10422  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10423    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10424    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10425    break 2
10426  fi
10427done
10428  done
10429IFS=$as_save_IFS
10430
10431fi
10432fi
10433OTOOL64=$ac_cv_prog_OTOOL64
10434if test -n "$OTOOL64"; then
10435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10436$as_echo "$OTOOL64" >&6; }
10437else
10438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10439$as_echo "no" >&6; }
10440fi
10441
10442
10443fi
10444if test -z "$ac_cv_prog_OTOOL64"; then
10445  ac_ct_OTOOL64=$OTOOL64
10446  # Extract the first word of "otool64", so it can be a program name with args.
10447set dummy otool64; ac_word=$2
10448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10449$as_echo_n "checking for $ac_word... " >&6; }
10450if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
10451  $as_echo_n "(cached) " >&6
10452else
10453  if test -n "$ac_ct_OTOOL64"; then
10454  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10455else
10456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10457for as_dir in $PATH
10458do
10459  IFS=$as_save_IFS
10460  test -z "$as_dir" && as_dir=.
10461    for ac_exec_ext in '' $ac_executable_extensions; do
10462  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10463    ac_cv_prog_ac_ct_OTOOL64="otool64"
10464    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10465    break 2
10466  fi
10467done
10468  done
10469IFS=$as_save_IFS
10470
10471fi
10472fi
10473ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10474if test -n "$ac_ct_OTOOL64"; then
10475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10476$as_echo "$ac_ct_OTOOL64" >&6; }
10477else
10478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10479$as_echo "no" >&6; }
10480fi
10481
10482  if test "x$ac_ct_OTOOL64" = x; then
10483    OTOOL64=":"
10484  else
10485    case $cross_compiling:$ac_tool_warned in
10486yes:)
10487{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10488$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10489ac_tool_warned=yes ;;
10490esac
10491    OTOOL64=$ac_ct_OTOOL64
10492  fi
10493else
10494  OTOOL64="$ac_cv_prog_OTOOL64"
10495fi
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10524$as_echo_n "checking for -single_module linker flag... " >&6; }
10525if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
10526  $as_echo_n "(cached) " >&6
10527else
10528  lt_cv_apple_cc_single_mod=no
10529      if test -z "${LT_MULTI_MODULE}"; then
10530	# By default we will add the -single_module flag. You can override
10531	# by either setting the environment variable LT_MULTI_MODULE
10532	# non-empty at configure time, or by adding -multi_module to the
10533	# link flags.
10534	rm -rf libconftest.dylib*
10535	echo "int foo(void){return 1;}" > conftest.c
10536	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10537-dynamiclib -Wl,-single_module conftest.c" >&5
10538	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10539	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10540        _lt_result=$?
10541	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
10542	  lt_cv_apple_cc_single_mod=yes
10543	else
10544	  cat conftest.err >&5
10545	fi
10546	rm -rf libconftest.dylib*
10547	rm -f conftest.*
10548      fi
10549fi
10550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10551$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10552    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10553$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10554if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
10555  $as_echo_n "(cached) " >&6
10556else
10557  lt_cv_ld_exported_symbols_list=no
10558      save_LDFLAGS=$LDFLAGS
10559      echo "_main" > conftest.sym
10560      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10561      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10562/* end confdefs.h.  */
10563
10564int
10565main ()
10566{
10567
10568  ;
10569  return 0;
10570}
10571_ACEOF
10572if ac_fn_c_try_link "$LINENO"; then :
10573  lt_cv_ld_exported_symbols_list=yes
10574else
10575  lt_cv_ld_exported_symbols_list=no
10576fi
10577rm -f core conftest.err conftest.$ac_objext \
10578    conftest$ac_exeext conftest.$ac_ext
10579	LDFLAGS="$save_LDFLAGS"
10580
10581fi
10582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10583$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10584    case $host_os in
10585    rhapsody* | darwin1.[012])
10586      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10587    darwin1.*)
10588      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10589    darwin*) # darwin 5.x on
10590      # if running on 10.5 or later, the deployment target defaults
10591      # to the OS version, if on x86, and 10.4, the deployment
10592      # target defaults to 10.4. Don't you love it?
10593      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10594	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10595	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10596	10.[012]*)
10597	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10598	10.*)
10599	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10600      esac
10601    ;;
10602  esac
10603    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10604      _lt_dar_single_mod='$single_module'
10605    fi
10606    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10607      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10608    else
10609      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10610    fi
10611    if test "$DSYMUTIL" != ":"; then
10612      _lt_dsymutil='~$DSYMUTIL $lib || :'
10613    else
10614      _lt_dsymutil=
10615    fi
10616    ;;
10617  esac
10618
10619for ac_header in dlfcn.h
10620do :
10621  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10622"
10623if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
10624  cat >>confdefs.h <<_ACEOF
10625#define HAVE_DLFCN_H 1
10626_ACEOF
10627
10628fi
10629
10630done
10631
10632
10633
10634ac_ext=cpp
10635ac_cpp='$CXXCPP $CPPFLAGS'
10636ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10637ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10638ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10639if test -z "$CXX"; then
10640  if test -n "$CCC"; then
10641    CXX=$CCC
10642  else
10643    if test -n "$ac_tool_prefix"; then
10644  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10645  do
10646    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10647set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10649$as_echo_n "checking for $ac_word... " >&6; }
10650if test "${ac_cv_prog_CXX+set}" = set; then :
10651  $as_echo_n "(cached) " >&6
10652else
10653  if test -n "$CXX"; then
10654  ac_cv_prog_CXX="$CXX" # Let the user override the test.
10655else
10656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10657for as_dir in $PATH
10658do
10659  IFS=$as_save_IFS
10660  test -z "$as_dir" && as_dir=.
10661    for ac_exec_ext in '' $ac_executable_extensions; do
10662  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10663    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10664    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10665    break 2
10666  fi
10667done
10668  done
10669IFS=$as_save_IFS
10670
10671fi
10672fi
10673CXX=$ac_cv_prog_CXX
10674if test -n "$CXX"; then
10675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10676$as_echo "$CXX" >&6; }
10677else
10678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10679$as_echo "no" >&6; }
10680fi
10681
10682
10683    test -n "$CXX" && break
10684  done
10685fi
10686if test -z "$CXX"; then
10687  ac_ct_CXX=$CXX
10688  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10689do
10690  # Extract the first word of "$ac_prog", so it can be a program name with args.
10691set dummy $ac_prog; ac_word=$2
10692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10693$as_echo_n "checking for $ac_word... " >&6; }
10694if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10695  $as_echo_n "(cached) " >&6
10696else
10697  if test -n "$ac_ct_CXX"; then
10698  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10699else
10700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10701for as_dir in $PATH
10702do
10703  IFS=$as_save_IFS
10704  test -z "$as_dir" && as_dir=.
10705    for ac_exec_ext in '' $ac_executable_extensions; do
10706  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10707    ac_cv_prog_ac_ct_CXX="$ac_prog"
10708    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10709    break 2
10710  fi
10711done
10712  done
10713IFS=$as_save_IFS
10714
10715fi
10716fi
10717ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10718if test -n "$ac_ct_CXX"; then
10719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10720$as_echo "$ac_ct_CXX" >&6; }
10721else
10722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10723$as_echo "no" >&6; }
10724fi
10725
10726
10727  test -n "$ac_ct_CXX" && break
10728done
10729
10730  if test "x$ac_ct_CXX" = x; then
10731    CXX="g++"
10732  else
10733    case $cross_compiling:$ac_tool_warned in
10734yes:)
10735{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10736$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10737ac_tool_warned=yes ;;
10738esac
10739    CXX=$ac_ct_CXX
10740  fi
10741fi
10742
10743  fi
10744fi
10745# Provide some information about the compiler.
10746$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10747set X $ac_compile
10748ac_compiler=$2
10749for ac_option in --version -v -V -qversion; do
10750  { { ac_try="$ac_compiler $ac_option >&5"
10751case "(($ac_try" in
10752  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10753  *) ac_try_echo=$ac_try;;
10754esac
10755eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10756$as_echo "$ac_try_echo"; } >&5
10757  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10758  ac_status=$?
10759  if test -s conftest.err; then
10760    sed '10a\
10761... rest of stderr output deleted ...
10762         10q' conftest.err >conftest.er1
10763    cat conftest.er1 >&5
10764  fi
10765  rm -f conftest.er1 conftest.err
10766  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10767  test $ac_status = 0; }
10768done
10769
10770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10771$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10772if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
10773  $as_echo_n "(cached) " >&6
10774else
10775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10776/* end confdefs.h.  */
10777
10778int
10779main ()
10780{
10781#ifndef __GNUC__
10782       choke me
10783#endif
10784
10785  ;
10786  return 0;
10787}
10788_ACEOF
10789if ac_fn_cxx_try_compile "$LINENO"; then :
10790  ac_compiler_gnu=yes
10791else
10792  ac_compiler_gnu=no
10793fi
10794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10795ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10796
10797fi
10798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10799$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10800if test $ac_compiler_gnu = yes; then
10801  GXX=yes
10802else
10803  GXX=
10804fi
10805ac_test_CXXFLAGS=${CXXFLAGS+set}
10806ac_save_CXXFLAGS=$CXXFLAGS
10807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10808$as_echo_n "checking whether $CXX accepts -g... " >&6; }
10809if test "${ac_cv_prog_cxx_g+set}" = set; then :
10810  $as_echo_n "(cached) " >&6
10811else
10812  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10813   ac_cxx_werror_flag=yes
10814   ac_cv_prog_cxx_g=no
10815   CXXFLAGS="-g"
10816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10817/* end confdefs.h.  */
10818
10819int
10820main ()
10821{
10822
10823  ;
10824  return 0;
10825}
10826_ACEOF
10827if ac_fn_cxx_try_compile "$LINENO"; then :
10828  ac_cv_prog_cxx_g=yes
10829else
10830  CXXFLAGS=""
10831      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10832/* end confdefs.h.  */
10833
10834int
10835main ()
10836{
10837
10838  ;
10839  return 0;
10840}
10841_ACEOF
10842if ac_fn_cxx_try_compile "$LINENO"; then :
10843
10844else
10845  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10846	 CXXFLAGS="-g"
10847	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10848/* end confdefs.h.  */
10849
10850int
10851main ()
10852{
10853
10854  ;
10855  return 0;
10856}
10857_ACEOF
10858if ac_fn_cxx_try_compile "$LINENO"; then :
10859  ac_cv_prog_cxx_g=yes
10860fi
10861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10862fi
10863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10864fi
10865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10866   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10867fi
10868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10869$as_echo "$ac_cv_prog_cxx_g" >&6; }
10870if test "$ac_test_CXXFLAGS" = set; then
10871  CXXFLAGS=$ac_save_CXXFLAGS
10872elif test $ac_cv_prog_cxx_g = yes; then
10873  if test "$GXX" = yes; then
10874    CXXFLAGS="-g -O2"
10875  else
10876    CXXFLAGS="-g"
10877  fi
10878else
10879  if test "$GXX" = yes; then
10880    CXXFLAGS="-O2"
10881  else
10882    CXXFLAGS=
10883  fi
10884fi
10885ac_ext=c
10886ac_cpp='$CPP $CPPFLAGS'
10887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10889ac_compiler_gnu=$ac_cv_c_compiler_gnu
10890
10891depcc="$CXX"  am_compiler_list=
10892
10893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10894$as_echo_n "checking dependency style of $depcc... " >&6; }
10895if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
10896  $as_echo_n "(cached) " >&6
10897else
10898  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10899  # We make a subdir and do the tests there.  Otherwise we can end up
10900  # making bogus files that we don't know about and never remove.  For
10901  # instance it was reported that on HP-UX the gcc test will end up
10902  # making a dummy file named `D' -- because `-MD' means `put the output
10903  # in D'.
10904  mkdir conftest.dir
10905  # Copy depcomp to subdir because otherwise we won't find it if we're
10906  # using a relative directory.
10907  cp "$am_depcomp" conftest.dir
10908  cd conftest.dir
10909  # We will build objects and dependencies in a subdirectory because
10910  # it helps to detect inapplicable dependency modes.  For instance
10911  # both Tru64's cc and ICC support -MD to output dependencies as a
10912  # side effect of compilation, but ICC will put the dependencies in
10913  # the current directory while Tru64 will put them in the object
10914  # directory.
10915  mkdir sub
10916
10917  am_cv_CXX_dependencies_compiler_type=none
10918  if test "$am_compiler_list" = ""; then
10919     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10920  fi
10921  am__universal=false
10922  case " $depcc " in #(
10923     *\ -arch\ *\ -arch\ *) am__universal=true ;;
10924     esac
10925
10926  for depmode in $am_compiler_list; do
10927    # Setup a source with many dependencies, because some compilers
10928    # like to wrap large dependency lists on column 80 (with \), and
10929    # we should not choose a depcomp mode which is confused by this.
10930    #
10931    # We need to recreate these files for each test, as the compiler may
10932    # overwrite some of them when testing with obscure command lines.
10933    # This happens at least with the AIX C compiler.
10934    : > sub/conftest.c
10935    for i in 1 2 3 4 5 6; do
10936      echo '#include "conftst'$i'.h"' >> sub/conftest.c
10937      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10938      # Solaris 8's {/usr,}/bin/sh.
10939      touch sub/conftst$i.h
10940    done
10941    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10942
10943    # We check with `-c' and `-o' for the sake of the "dashmstdout"
10944    # mode.  It turns out that the SunPro C++ compiler does not properly
10945    # handle `-M -o', and we need to detect this.  Also, some Intel
10946    # versions had trouble with output in subdirs
10947    am__obj=sub/conftest.${OBJEXT-o}
10948    am__minus_obj="-o $am__obj"
10949    case $depmode in
10950    gcc)
10951      # This depmode causes a compiler race in universal mode.
10952      test "$am__universal" = false || continue
10953      ;;
10954    nosideeffect)
10955      # after this tag, mechanisms are not by side-effect, so they'll
10956      # only be used when explicitly requested
10957      if test "x$enable_dependency_tracking" = xyes; then
10958	continue
10959      else
10960	break
10961      fi
10962      ;;
10963    msvisualcpp | msvcmsys)
10964      # This compiler won't grok `-c -o', but also, the minuso test has
10965      # not run yet.  These depmodes are late enough in the game, and
10966      # so weak that their functioning should not be impacted.
10967      am__obj=conftest.${OBJEXT-o}
10968      am__minus_obj=
10969      ;;
10970    none) break ;;
10971    esac
10972    if depmode=$depmode \
10973       source=sub/conftest.c object=$am__obj \
10974       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10975       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10976         >/dev/null 2>conftest.err &&
10977       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10978       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10979       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10980       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10981      # icc doesn't choke on unknown options, it will just issue warnings
10982      # or remarks (even with -Werror).  So we grep stderr for any message
10983      # that says an option was ignored or not supported.
10984      # When given -MP, icc 7.0 and 7.1 complain thusly:
10985      #   icc: Command line warning: ignoring option '-M'; no argument required
10986      # The diagnosis changed in icc 8.0:
10987      #   icc: Command line remark: option '-MP' not supported
10988      if (grep 'ignoring option' conftest.err ||
10989          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10990        am_cv_CXX_dependencies_compiler_type=$depmode
10991        break
10992      fi
10993    fi
10994  done
10995
10996  cd ..
10997  rm -rf conftest.dir
10998else
10999  am_cv_CXX_dependencies_compiler_type=none
11000fi
11001
11002fi
11003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11004$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11005CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11006
11007 if
11008  test "x$enable_dependency_tracking" != xno \
11009  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11010  am__fastdepCXX_TRUE=
11011  am__fastdepCXX_FALSE='#'
11012else
11013  am__fastdepCXX_TRUE='#'
11014  am__fastdepCXX_FALSE=
11015fi
11016
11017
11018if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11019    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11020    (test "X$CXX" != "Xg++"))) ; then
11021  ac_ext=cpp
11022ac_cpp='$CXXCPP $CPPFLAGS'
11023ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11024ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11025ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11027$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11028if test -z "$CXXCPP"; then
11029  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11030  $as_echo_n "(cached) " >&6
11031else
11032      # Double quotes because CXXCPP needs to be expanded
11033    for CXXCPP in "$CXX -E" "/lib/cpp"
11034    do
11035      ac_preproc_ok=false
11036for ac_cxx_preproc_warn_flag in '' yes
11037do
11038  # Use a header file that comes with gcc, so configuring glibc
11039  # with a fresh cross-compiler works.
11040  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11041  # <limits.h> exists even on freestanding compilers.
11042  # On the NeXT, cc -E runs the code through the compiler's parser,
11043  # not just through cpp. "Syntax error" is here to catch this case.
11044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11045/* end confdefs.h.  */
11046#ifdef __STDC__
11047# include <limits.h>
11048#else
11049# include <assert.h>
11050#endif
11051		     Syntax error
11052_ACEOF
11053if ac_fn_cxx_try_cpp "$LINENO"; then :
11054
11055else
11056  # Broken: fails on valid input.
11057continue
11058fi
11059rm -f conftest.err conftest.i conftest.$ac_ext
11060
11061  # OK, works on sane cases.  Now check whether nonexistent headers
11062  # can be detected and how.
11063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11064/* end confdefs.h.  */
11065#include <ac_nonexistent.h>
11066_ACEOF
11067if ac_fn_cxx_try_cpp "$LINENO"; then :
11068  # Broken: success on invalid input.
11069continue
11070else
11071  # Passes both tests.
11072ac_preproc_ok=:
11073break
11074fi
11075rm -f conftest.err conftest.i conftest.$ac_ext
11076
11077done
11078# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11079rm -f conftest.i conftest.err conftest.$ac_ext
11080if $ac_preproc_ok; then :
11081  break
11082fi
11083
11084    done
11085    ac_cv_prog_CXXCPP=$CXXCPP
11086
11087fi
11088  CXXCPP=$ac_cv_prog_CXXCPP
11089else
11090  ac_cv_prog_CXXCPP=$CXXCPP
11091fi
11092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11093$as_echo "$CXXCPP" >&6; }
11094ac_preproc_ok=false
11095for ac_cxx_preproc_warn_flag in '' yes
11096do
11097  # Use a header file that comes with gcc, so configuring glibc
11098  # with a fresh cross-compiler works.
11099  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11100  # <limits.h> exists even on freestanding compilers.
11101  # On the NeXT, cc -E runs the code through the compiler's parser,
11102  # not just through cpp. "Syntax error" is here to catch this case.
11103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11104/* end confdefs.h.  */
11105#ifdef __STDC__
11106# include <limits.h>
11107#else
11108# include <assert.h>
11109#endif
11110		     Syntax error
11111_ACEOF
11112if ac_fn_cxx_try_cpp "$LINENO"; then :
11113
11114else
11115  # Broken: fails on valid input.
11116continue
11117fi
11118rm -f conftest.err conftest.i conftest.$ac_ext
11119
11120  # OK, works on sane cases.  Now check whether nonexistent headers
11121  # can be detected and how.
11122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11123/* end confdefs.h.  */
11124#include <ac_nonexistent.h>
11125_ACEOF
11126if ac_fn_cxx_try_cpp "$LINENO"; then :
11127  # Broken: success on invalid input.
11128continue
11129else
11130  # Passes both tests.
11131ac_preproc_ok=:
11132break
11133fi
11134rm -f conftest.err conftest.i conftest.$ac_ext
11135
11136done
11137# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11138rm -f conftest.i conftest.err conftest.$ac_ext
11139if $ac_preproc_ok; then :
11140
11141else
11142  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11143$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11144_lt_caught_CXX_error=yes; }
11145fi
11146
11147ac_ext=c
11148ac_cpp='$CPP $CPPFLAGS'
11149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11151ac_compiler_gnu=$ac_cv_c_compiler_gnu
11152
11153else
11154  _lt_caught_CXX_error=yes
11155fi
11156
11157
11158
11159
11160
11161# Set options
11162
11163
11164
11165        enable_dlopen=no
11166
11167
11168  enable_win32_dll=no
11169
11170
11171            # Check whether --enable-shared was given.
11172if test "${enable_shared+set}" = set; then :
11173  enableval=$enable_shared; p=${PACKAGE-default}
11174    case $enableval in
11175    yes) enable_shared=yes ;;
11176    no) enable_shared=no ;;
11177    *)
11178      enable_shared=no
11179      # Look at the argument we got.  We use all the common list separators.
11180      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11181      for pkg in $enableval; do
11182	IFS="$lt_save_ifs"
11183	if test "X$pkg" = "X$p"; then
11184	  enable_shared=yes
11185	fi
11186      done
11187      IFS="$lt_save_ifs"
11188      ;;
11189    esac
11190else
11191  enable_shared=yes
11192fi
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202  # Check whether --enable-static was given.
11203if test "${enable_static+set}" = set; then :
11204  enableval=$enable_static; p=${PACKAGE-default}
11205    case $enableval in
11206    yes) enable_static=yes ;;
11207    no) enable_static=no ;;
11208    *)
11209     enable_static=no
11210      # Look at the argument we got.  We use all the common list separators.
11211      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11212      for pkg in $enableval; do
11213	IFS="$lt_save_ifs"
11214	if test "X$pkg" = "X$p"; then
11215	  enable_static=yes
11216	fi
11217      done
11218      IFS="$lt_save_ifs"
11219      ;;
11220    esac
11221else
11222  enable_static=yes
11223fi
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234# Check whether --with-pic was given.
11235if test "${with_pic+set}" = set; then :
11236  withval=$with_pic; pic_mode="$withval"
11237else
11238  pic_mode=default
11239fi
11240
11241
11242test -z "$pic_mode" && pic_mode=default
11243
11244
11245
11246
11247
11248
11249
11250  # Check whether --enable-fast-install was given.
11251if test "${enable_fast_install+set}" = set; then :
11252  enableval=$enable_fast_install; p=${PACKAGE-default}
11253    case $enableval in
11254    yes) enable_fast_install=yes ;;
11255    no) enable_fast_install=no ;;
11256    *)
11257      enable_fast_install=no
11258      # Look at the argument we got.  We use all the common list separators.
11259      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11260      for pkg in $enableval; do
11261	IFS="$lt_save_ifs"
11262	if test "X$pkg" = "X$p"; then
11263	  enable_fast_install=yes
11264	fi
11265      done
11266      IFS="$lt_save_ifs"
11267      ;;
11268    esac
11269else
11270  enable_fast_install=yes
11271fi
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283# This can be used to rebuild libtool when needed
11284LIBTOOL_DEPS="$ltmain"
11285
11286# Always use our own libtool.
11287LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313test -z "$LN_S" && LN_S="ln -s"
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328if test -n "${ZSH_VERSION+set}" ; then
11329   setopt NO_GLOB_SUBST
11330fi
11331
11332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11333$as_echo_n "checking for objdir... " >&6; }
11334if test "${lt_cv_objdir+set}" = set; then :
11335  $as_echo_n "(cached) " >&6
11336else
11337  rm -f .libs 2>/dev/null
11338mkdir .libs 2>/dev/null
11339if test -d .libs; then
11340  lt_cv_objdir=.libs
11341else
11342  # MS-DOS does not allow filenames that begin with a dot.
11343  lt_cv_objdir=_libs
11344fi
11345rmdir .libs 2>/dev/null
11346fi
11347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11348$as_echo "$lt_cv_objdir" >&6; }
11349objdir=$lt_cv_objdir
11350
11351
11352
11353
11354
11355cat >>confdefs.h <<_ACEOF
11356#define LT_OBJDIR "$lt_cv_objdir/"
11357_ACEOF
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375case $host_os in
11376aix3*)
11377  # AIX sometimes has problems with the GCC collect2 program.  For some
11378  # reason, if we set the COLLECT_NAMES environment variable, the problems
11379  # vanish in a puff of smoke.
11380  if test "X${COLLECT_NAMES+set}" != Xset; then
11381    COLLECT_NAMES=
11382    export COLLECT_NAMES
11383  fi
11384  ;;
11385esac
11386
11387# Sed substitution that helps us do robust quoting.  It backslashifies
11388# metacharacters that are still active within double-quoted strings.
11389sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11390
11391# Same as above, but do not quote variable references.
11392double_quote_subst='s/\(["`\\]\)/\\\1/g'
11393
11394# Sed substitution to delay expansion of an escaped shell variable in a
11395# double_quote_subst'ed string.
11396delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11397
11398# Sed substitution to delay expansion of an escaped single quote.
11399delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11400
11401# Sed substitution to avoid accidental globbing in evaled expressions
11402no_glob_subst='s/\*/\\\*/g'
11403
11404# Global variables:
11405ofile=libtool
11406can_build_shared=yes
11407
11408# All known linkers require a `.a' archive for static linking (except MSVC,
11409# which needs '.lib').
11410libext=a
11411
11412with_gnu_ld="$lt_cv_prog_gnu_ld"
11413
11414old_CC="$CC"
11415old_CFLAGS="$CFLAGS"
11416
11417# Set sane defaults for various variables
11418test -z "$CC" && CC=cc
11419test -z "$LTCC" && LTCC=$CC
11420test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11421test -z "$LD" && LD=ld
11422test -z "$ac_objext" && ac_objext=o
11423
11424for cc_temp in $compiler""; do
11425  case $cc_temp in
11426    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11427    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11428    \-*) ;;
11429    *) break;;
11430  esac
11431done
11432cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11433
11434
11435# Only perform the check for file, if the check method requires it
11436test -z "$MAGIC_CMD" && MAGIC_CMD=file
11437case $deplibs_check_method in
11438file_magic*)
11439  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11440    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11441$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11442if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
11443  $as_echo_n "(cached) " >&6
11444else
11445  case $MAGIC_CMD in
11446[\\/*] |  ?:[\\/]*)
11447  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11448  ;;
11449*)
11450  lt_save_MAGIC_CMD="$MAGIC_CMD"
11451  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11452  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11453  for ac_dir in $ac_dummy; do
11454    IFS="$lt_save_ifs"
11455    test -z "$ac_dir" && ac_dir=.
11456    if test -f $ac_dir/${ac_tool_prefix}file; then
11457      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11458      if test -n "$file_magic_test_file"; then
11459	case $deplibs_check_method in
11460	"file_magic "*)
11461	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11462	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11463	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11464	    $EGREP "$file_magic_regex" > /dev/null; then
11465	    :
11466	  else
11467	    cat <<_LT_EOF 1>&2
11468
11469*** Warning: the command libtool uses to detect shared libraries,
11470*** $file_magic_cmd, produces output that libtool cannot recognize.
11471*** The result is that libtool may fail to recognize shared libraries
11472*** as such.  This will affect the creation of libtool libraries that
11473*** depend on shared libraries, but programs linked with such libtool
11474*** libraries will work regardless of this problem.  Nevertheless, you
11475*** may want to report the problem to your system manager and/or to
11476*** bug-libtool@gnu.org
11477
11478_LT_EOF
11479	  fi ;;
11480	esac
11481      fi
11482      break
11483    fi
11484  done
11485  IFS="$lt_save_ifs"
11486  MAGIC_CMD="$lt_save_MAGIC_CMD"
11487  ;;
11488esac
11489fi
11490
11491MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11492if test -n "$MAGIC_CMD"; then
11493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11494$as_echo "$MAGIC_CMD" >&6; }
11495else
11496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11497$as_echo "no" >&6; }
11498fi
11499
11500
11501
11502
11503
11504if test -z "$lt_cv_path_MAGIC_CMD"; then
11505  if test -n "$ac_tool_prefix"; then
11506    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11507$as_echo_n "checking for file... " >&6; }
11508if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
11509  $as_echo_n "(cached) " >&6
11510else
11511  case $MAGIC_CMD in
11512[\\/*] |  ?:[\\/]*)
11513  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11514  ;;
11515*)
11516  lt_save_MAGIC_CMD="$MAGIC_CMD"
11517  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11518  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11519  for ac_dir in $ac_dummy; do
11520    IFS="$lt_save_ifs"
11521    test -z "$ac_dir" && ac_dir=.
11522    if test -f $ac_dir/file; then
11523      lt_cv_path_MAGIC_CMD="$ac_dir/file"
11524      if test -n "$file_magic_test_file"; then
11525	case $deplibs_check_method in
11526	"file_magic "*)
11527	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11528	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11529	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11530	    $EGREP "$file_magic_regex" > /dev/null; then
11531	    :
11532	  else
11533	    cat <<_LT_EOF 1>&2
11534
11535*** Warning: the command libtool uses to detect shared libraries,
11536*** $file_magic_cmd, produces output that libtool cannot recognize.
11537*** The result is that libtool may fail to recognize shared libraries
11538*** as such.  This will affect the creation of libtool libraries that
11539*** depend on shared libraries, but programs linked with such libtool
11540*** libraries will work regardless of this problem.  Nevertheless, you
11541*** may want to report the problem to your system manager and/or to
11542*** bug-libtool@gnu.org
11543
11544_LT_EOF
11545	  fi ;;
11546	esac
11547      fi
11548      break
11549    fi
11550  done
11551  IFS="$lt_save_ifs"
11552  MAGIC_CMD="$lt_save_MAGIC_CMD"
11553  ;;
11554esac
11555fi
11556
11557MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11558if test -n "$MAGIC_CMD"; then
11559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11560$as_echo "$MAGIC_CMD" >&6; }
11561else
11562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11563$as_echo "no" >&6; }
11564fi
11565
11566
11567  else
11568    MAGIC_CMD=:
11569  fi
11570fi
11571
11572  fi
11573  ;;
11574esac
11575
11576# Use C for the default configuration in the libtool script
11577
11578lt_save_CC="$CC"
11579ac_ext=c
11580ac_cpp='$CPP $CPPFLAGS'
11581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11583ac_compiler_gnu=$ac_cv_c_compiler_gnu
11584
11585
11586# Source file extension for C test sources.
11587ac_ext=c
11588
11589# Object file extension for compiled C test sources.
11590objext=o
11591objext=$objext
11592
11593# Code to be used in simple compile tests
11594lt_simple_compile_test_code="int some_variable = 0;"
11595
11596# Code to be used in simple link tests
11597lt_simple_link_test_code='int main(){return(0);}'
11598
11599
11600
11601
11602
11603
11604
11605# If no C compiler was specified, use CC.
11606LTCC=${LTCC-"$CC"}
11607
11608# If no C compiler flags were specified, use CFLAGS.
11609LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11610
11611# Allow CC to be a program name with arguments.
11612compiler=$CC
11613
11614# Save the default compiler, since it gets overwritten when the other
11615# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11616compiler_DEFAULT=$CC
11617
11618# save warnings/boilerplate of simple test code
11619ac_outfile=conftest.$ac_objext
11620echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11621eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11622_lt_compiler_boilerplate=`cat conftest.err`
11623$RM conftest*
11624
11625ac_outfile=conftest.$ac_objext
11626echo "$lt_simple_link_test_code" >conftest.$ac_ext
11627eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11628_lt_linker_boilerplate=`cat conftest.err`
11629$RM -r conftest*
11630
11631
11632## CAVEAT EMPTOR:
11633## There is no encapsulation within the following macros, do not change
11634## the running order or otherwise move them around unless you know exactly
11635## what you are doing...
11636if test -n "$compiler"; then
11637
11638lt_prog_compiler_no_builtin_flag=
11639
11640if test "$GCC" = yes; then
11641  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11642
11643  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11644$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11645if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11646  $as_echo_n "(cached) " >&6
11647else
11648  lt_cv_prog_compiler_rtti_exceptions=no
11649   ac_outfile=conftest.$ac_objext
11650   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11651   lt_compiler_flag="-fno-rtti -fno-exceptions"
11652   # Insert the option either (1) after the last *FLAGS variable, or
11653   # (2) before a word containing "conftest.", or (3) at the end.
11654   # Note that $ac_compile itself does not contain backslashes and begins
11655   # with a dollar sign (not a hyphen), so the echo should work correctly.
11656   # The option is referenced via a variable to avoid confusing sed.
11657   lt_compile=`echo "$ac_compile" | $SED \
11658   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11659   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11660   -e 's:$: $lt_compiler_flag:'`
11661   (eval echo "\"\$as_me:11661: $lt_compile\"" >&5)
11662   (eval "$lt_compile" 2>conftest.err)
11663   ac_status=$?
11664   cat conftest.err >&5
11665   echo "$as_me:11665: \$? = $ac_status" >&5
11666   if (exit $ac_status) && test -s "$ac_outfile"; then
11667     # The compiler can only warn and ignore the option if not recognized
11668     # So say no if there are warnings other than the usual output.
11669     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11670     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11671     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11672       lt_cv_prog_compiler_rtti_exceptions=yes
11673     fi
11674   fi
11675   $RM conftest*
11676
11677fi
11678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11679$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11680
11681if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11682    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11683else
11684    :
11685fi
11686
11687fi
11688
11689
11690
11691
11692
11693
11694  lt_prog_compiler_wl=
11695lt_prog_compiler_pic=
11696lt_prog_compiler_static=
11697
11698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11699$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11700
11701  if test "$GCC" = yes; then
11702    lt_prog_compiler_wl='-Wl,'
11703    lt_prog_compiler_static='-static'
11704
11705    case $host_os in
11706      aix*)
11707      # All AIX code is PIC.
11708      if test "$host_cpu" = ia64; then
11709	# AIX 5 now supports IA64 processor
11710	lt_prog_compiler_static='-Bstatic'
11711      fi
11712      ;;
11713
11714    amigaos*)
11715      case $host_cpu in
11716      powerpc)
11717            # see comment about AmigaOS4 .so support
11718            lt_prog_compiler_pic='-fPIC'
11719        ;;
11720      m68k)
11721            # FIXME: we need at least 68020 code to build shared libraries, but
11722            # adding the `-m68020' flag to GCC prevents building anything better,
11723            # like `-m68040'.
11724            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11725        ;;
11726      esac
11727      ;;
11728
11729    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11730      # PIC is the default for these OSes.
11731      ;;
11732
11733    mingw* | cygwin* | pw32* | os2* | cegcc*)
11734      # This hack is so that the source file can tell whether it is being
11735      # built for inclusion in a dll (and should export symbols for example).
11736      # Although the cygwin gcc ignores -fPIC, still need this for old-style
11737      # (--disable-auto-import) libraries
11738      lt_prog_compiler_pic='-DDLL_EXPORT'
11739      ;;
11740
11741    darwin* | rhapsody*)
11742      # PIC is the default on this platform
11743      # Common symbols not allowed in MH_DYLIB files
11744      lt_prog_compiler_pic='-fno-common'
11745      ;;
11746
11747    hpux*)
11748      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11749      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11750      # sets the default TLS model and affects inlining.
11751      case $host_cpu in
11752      hppa*64*)
11753	# +Z the default
11754	;;
11755      *)
11756	lt_prog_compiler_pic='-fPIC'
11757	;;
11758      esac
11759      ;;
11760
11761    interix[3-9]*)
11762      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11763      # Instead, we relocate shared libraries at runtime.
11764      ;;
11765
11766    msdosdjgpp*)
11767      # Just because we use GCC doesn't mean we suddenly get shared libraries
11768      # on systems that don't support them.
11769      lt_prog_compiler_can_build_shared=no
11770      enable_shared=no
11771      ;;
11772
11773    *nto* | *qnx*)
11774      # QNX uses GNU C++, but need to define -shared option too, otherwise
11775      # it will coredump.
11776      lt_prog_compiler_pic='-fPIC -shared'
11777      ;;
11778
11779    sysv4*MP*)
11780      if test -d /usr/nec; then
11781	lt_prog_compiler_pic=-Kconform_pic
11782      fi
11783      ;;
11784
11785    *)
11786      lt_prog_compiler_pic='-fPIC'
11787      ;;
11788    esac
11789  else
11790    # PORTME Check for flag to pass linker flags through the system compiler.
11791    case $host_os in
11792    aix*)
11793      lt_prog_compiler_wl='-Wl,'
11794      if test "$host_cpu" = ia64; then
11795	# AIX 5 now supports IA64 processor
11796	lt_prog_compiler_static='-Bstatic'
11797      else
11798	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11799      fi
11800      ;;
11801
11802    mingw* | cygwin* | pw32* | os2* | cegcc*)
11803      # This hack is so that the source file can tell whether it is being
11804      # built for inclusion in a dll (and should export symbols for example).
11805      lt_prog_compiler_pic='-DDLL_EXPORT'
11806      ;;
11807
11808    hpux9* | hpux10* | hpux11*)
11809      lt_prog_compiler_wl='-Wl,'
11810      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11811      # not for PA HP-UX.
11812      case $host_cpu in
11813      hppa*64*|ia64*)
11814	# +Z the default
11815	;;
11816      *)
11817	lt_prog_compiler_pic='+Z'
11818	;;
11819      esac
11820      # Is there a better lt_prog_compiler_static that works with the bundled CC?
11821      lt_prog_compiler_static='${wl}-a ${wl}archive'
11822      ;;
11823
11824    irix5* | irix6* | nonstopux*)
11825      lt_prog_compiler_wl='-Wl,'
11826      # PIC (with -KPIC) is the default.
11827      lt_prog_compiler_static='-non_shared'
11828      ;;
11829
11830    linux* | k*bsd*-gnu | kopensolaris*-gnu)
11831      case $cc_basename in
11832      # old Intel for x86_64 which still supported -KPIC.
11833      ecc*)
11834	lt_prog_compiler_wl='-Wl,'
11835	lt_prog_compiler_pic='-KPIC'
11836	lt_prog_compiler_static='-static'
11837        ;;
11838      # icc used to be incompatible with GCC.
11839      # ICC 10 doesn't accept -KPIC any more.
11840      icc* | ifort*)
11841	lt_prog_compiler_wl='-Wl,'
11842	lt_prog_compiler_pic='-fPIC'
11843	lt_prog_compiler_static='-static'
11844        ;;
11845      # Lahey Fortran 8.1.
11846      lf95*)
11847	lt_prog_compiler_wl='-Wl,'
11848	lt_prog_compiler_pic='--shared'
11849	lt_prog_compiler_static='--static'
11850	;;
11851      pgcc* | pgf77* | pgf90* | pgf95*)
11852        # Portland Group compilers (*not* the Pentium gcc compiler,
11853	# which looks to be a dead project)
11854	lt_prog_compiler_wl='-Wl,'
11855	lt_prog_compiler_pic='-fpic'
11856	lt_prog_compiler_static='-Bstatic'
11857        ;;
11858      ccc*)
11859        lt_prog_compiler_wl='-Wl,'
11860        # All Alpha code is PIC.
11861        lt_prog_compiler_static='-non_shared'
11862        ;;
11863      xl*)
11864	# IBM XL C 8.0/Fortran 10.1 on PPC
11865	lt_prog_compiler_wl='-Wl,'
11866	lt_prog_compiler_pic='-qpic'
11867	lt_prog_compiler_static='-qstaticlink'
11868	;;
11869      *)
11870	case `$CC -V 2>&1 | sed 5q` in
11871	*Sun\ C*)
11872	  # Sun C 5.9
11873	  lt_prog_compiler_pic='-KPIC'
11874	  lt_prog_compiler_static='-Bstatic'
11875	  lt_prog_compiler_wl='-Wl,'
11876	  ;;
11877	*Sun\ F*)
11878	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
11879	  lt_prog_compiler_pic='-KPIC'
11880	  lt_prog_compiler_static='-Bstatic'
11881	  lt_prog_compiler_wl=''
11882	  ;;
11883	esac
11884	;;
11885      esac
11886      ;;
11887
11888    newsos6)
11889      lt_prog_compiler_pic='-KPIC'
11890      lt_prog_compiler_static='-Bstatic'
11891      ;;
11892
11893    *nto* | *qnx*)
11894      # QNX uses GNU C++, but need to define -shared option too, otherwise
11895      # it will coredump.
11896      lt_prog_compiler_pic='-fPIC -shared'
11897      ;;
11898
11899    osf3* | osf4* | osf5*)
11900      lt_prog_compiler_wl='-Wl,'
11901      # All OSF/1 code is PIC.
11902      lt_prog_compiler_static='-non_shared'
11903      ;;
11904
11905    rdos*)
11906      lt_prog_compiler_static='-non_shared'
11907      ;;
11908
11909    solaris*)
11910      lt_prog_compiler_pic='-KPIC'
11911      lt_prog_compiler_static='-Bstatic'
11912      case $cc_basename in
11913      f77* | f90* | f95*)
11914	lt_prog_compiler_wl='-Qoption ld ';;
11915      *)
11916	lt_prog_compiler_wl='-Wl,';;
11917      esac
11918      ;;
11919
11920    sunos4*)
11921      lt_prog_compiler_wl='-Qoption ld '
11922      lt_prog_compiler_pic='-PIC'
11923      lt_prog_compiler_static='-Bstatic'
11924      ;;
11925
11926    sysv4 | sysv4.2uw2* | sysv4.3*)
11927      lt_prog_compiler_wl='-Wl,'
11928      lt_prog_compiler_pic='-KPIC'
11929      lt_prog_compiler_static='-Bstatic'
11930      ;;
11931
11932    sysv4*MP*)
11933      if test -d /usr/nec ;then
11934	lt_prog_compiler_pic='-Kconform_pic'
11935	lt_prog_compiler_static='-Bstatic'
11936      fi
11937      ;;
11938
11939    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11940      lt_prog_compiler_wl='-Wl,'
11941      lt_prog_compiler_pic='-KPIC'
11942      lt_prog_compiler_static='-Bstatic'
11943      ;;
11944
11945    unicos*)
11946      lt_prog_compiler_wl='-Wl,'
11947      lt_prog_compiler_can_build_shared=no
11948      ;;
11949
11950    uts4*)
11951      lt_prog_compiler_pic='-pic'
11952      lt_prog_compiler_static='-Bstatic'
11953      ;;
11954
11955    *)
11956      lt_prog_compiler_can_build_shared=no
11957      ;;
11958    esac
11959  fi
11960
11961case $host_os in
11962  # For platforms which do not support PIC, -DPIC is meaningless:
11963  *djgpp*)
11964    lt_prog_compiler_pic=
11965    ;;
11966  *)
11967    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11968    ;;
11969esac
11970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
11971$as_echo "$lt_prog_compiler_pic" >&6; }
11972
11973
11974
11975
11976
11977
11978#
11979# Check to make sure the PIC flag actually works.
11980#
11981if test -n "$lt_prog_compiler_pic"; then
11982  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11983$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11984if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
11985  $as_echo_n "(cached) " >&6
11986else
11987  lt_cv_prog_compiler_pic_works=no
11988   ac_outfile=conftest.$ac_objext
11989   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11990   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11991   # Insert the option either (1) after the last *FLAGS variable, or
11992   # (2) before a word containing "conftest.", or (3) at the end.
11993   # Note that $ac_compile itself does not contain backslashes and begins
11994   # with a dollar sign (not a hyphen), so the echo should work correctly.
11995   # The option is referenced via a variable to avoid confusing sed.
11996   lt_compile=`echo "$ac_compile" | $SED \
11997   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11998   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11999   -e 's:$: $lt_compiler_flag:'`
12000   (eval echo "\"\$as_me:12000: $lt_compile\"" >&5)
12001   (eval "$lt_compile" 2>conftest.err)
12002   ac_status=$?
12003   cat conftest.err >&5
12004   echo "$as_me:12004: \$? = $ac_status" >&5
12005   if (exit $ac_status) && test -s "$ac_outfile"; then
12006     # The compiler can only warn and ignore the option if not recognized
12007     # So say no if there are warnings other than the usual output.
12008     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12009     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12010     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12011       lt_cv_prog_compiler_pic_works=yes
12012     fi
12013   fi
12014   $RM conftest*
12015
12016fi
12017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12018$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12019
12020if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12021    case $lt_prog_compiler_pic in
12022     "" | " "*) ;;
12023     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12024     esac
12025else
12026    lt_prog_compiler_pic=
12027     lt_prog_compiler_can_build_shared=no
12028fi
12029
12030fi
12031
12032
12033
12034
12035
12036
12037#
12038# Check to make sure the static flag actually works.
12039#
12040wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12042$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12043if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
12044  $as_echo_n "(cached) " >&6
12045else
12046  lt_cv_prog_compiler_static_works=no
12047   save_LDFLAGS="$LDFLAGS"
12048   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12049   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12050   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12051     # The linker can only warn and ignore the option if not recognized
12052     # So say no if there are warnings
12053     if test -s conftest.err; then
12054       # Append any errors to the config.log.
12055       cat conftest.err 1>&5
12056       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12057       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12058       if diff conftest.exp conftest.er2 >/dev/null; then
12059         lt_cv_prog_compiler_static_works=yes
12060       fi
12061     else
12062       lt_cv_prog_compiler_static_works=yes
12063     fi
12064   fi
12065   $RM -r conftest*
12066   LDFLAGS="$save_LDFLAGS"
12067
12068fi
12069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12070$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12071
12072if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12073    :
12074else
12075    lt_prog_compiler_static=
12076fi
12077
12078
12079
12080
12081
12082
12083
12084  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12085$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12086if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
12087  $as_echo_n "(cached) " >&6
12088else
12089  lt_cv_prog_compiler_c_o=no
12090   $RM -r conftest 2>/dev/null
12091   mkdir conftest
12092   cd conftest
12093   mkdir out
12094   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12095
12096   lt_compiler_flag="-o out/conftest2.$ac_objext"
12097   # Insert the option either (1) after the last *FLAGS variable, or
12098   # (2) before a word containing "conftest.", or (3) at the end.
12099   # Note that $ac_compile itself does not contain backslashes and begins
12100   # with a dollar sign (not a hyphen), so the echo should work correctly.
12101   lt_compile=`echo "$ac_compile" | $SED \
12102   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12103   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12104   -e 's:$: $lt_compiler_flag:'`
12105   (eval echo "\"\$as_me:12105: $lt_compile\"" >&5)
12106   (eval "$lt_compile" 2>out/conftest.err)
12107   ac_status=$?
12108   cat out/conftest.err >&5
12109   echo "$as_me:12109: \$? = $ac_status" >&5
12110   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12111   then
12112     # The compiler can only warn and ignore the option if not recognized
12113     # So say no if there are warnings
12114     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12115     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12116     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12117       lt_cv_prog_compiler_c_o=yes
12118     fi
12119   fi
12120   chmod u+w . 2>&5
12121   $RM conftest*
12122   # SGI C++ compiler will create directory out/ii_files/ for
12123   # template instantiation
12124   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12125   $RM out/* && rmdir out
12126   cd ..
12127   $RM -r conftest
12128   $RM conftest*
12129
12130fi
12131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12132$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12133
12134
12135
12136
12137
12138
12139  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12140$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12141if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
12142  $as_echo_n "(cached) " >&6
12143else
12144  lt_cv_prog_compiler_c_o=no
12145   $RM -r conftest 2>/dev/null
12146   mkdir conftest
12147   cd conftest
12148   mkdir out
12149   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12150
12151   lt_compiler_flag="-o out/conftest2.$ac_objext"
12152   # Insert the option either (1) after the last *FLAGS variable, or
12153   # (2) before a word containing "conftest.", or (3) at the end.
12154   # Note that $ac_compile itself does not contain backslashes and begins
12155   # with a dollar sign (not a hyphen), so the echo should work correctly.
12156   lt_compile=`echo "$ac_compile" | $SED \
12157   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12158   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12159   -e 's:$: $lt_compiler_flag:'`
12160   (eval echo "\"\$as_me:12160: $lt_compile\"" >&5)
12161   (eval "$lt_compile" 2>out/conftest.err)
12162   ac_status=$?
12163   cat out/conftest.err >&5
12164   echo "$as_me:12164: \$? = $ac_status" >&5
12165   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12166   then
12167     # The compiler can only warn and ignore the option if not recognized
12168     # So say no if there are warnings
12169     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12170     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12171     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12172       lt_cv_prog_compiler_c_o=yes
12173     fi
12174   fi
12175   chmod u+w . 2>&5
12176   $RM conftest*
12177   # SGI C++ compiler will create directory out/ii_files/ for
12178   # template instantiation
12179   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12180   $RM out/* && rmdir out
12181   cd ..
12182   $RM -r conftest
12183   $RM conftest*
12184
12185fi
12186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12187$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12188
12189
12190
12191
12192hard_links="nottested"
12193if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12194  # do not overwrite the value of need_locks provided by the user
12195  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12196$as_echo_n "checking if we can lock with hard links... " >&6; }
12197  hard_links=yes
12198  $RM conftest*
12199  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12200  touch conftest.a
12201  ln conftest.a conftest.b 2>&5 || hard_links=no
12202  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12204$as_echo "$hard_links" >&6; }
12205  if test "$hard_links" = no; then
12206    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12207$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12208    need_locks=warn
12209  fi
12210else
12211  need_locks=no
12212fi
12213
12214
12215
12216
12217
12218
12219  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12220$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12221
12222  runpath_var=
12223  allow_undefined_flag=
12224  always_export_symbols=no
12225  archive_cmds=
12226  archive_expsym_cmds=
12227  compiler_needs_object=no
12228  enable_shared_with_static_runtimes=no
12229  export_dynamic_flag_spec=
12230  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12231  hardcode_automatic=no
12232  hardcode_direct=no
12233  hardcode_direct_absolute=no
12234  hardcode_libdir_flag_spec=
12235  hardcode_libdir_flag_spec_ld=
12236  hardcode_libdir_separator=
12237  hardcode_minus_L=no
12238  hardcode_shlibpath_var=unsupported
12239  inherit_rpath=no
12240  link_all_deplibs=unknown
12241  module_cmds=
12242  module_expsym_cmds=
12243  old_archive_from_new_cmds=
12244  old_archive_from_expsyms_cmds=
12245  thread_safe_flag_spec=
12246  whole_archive_flag_spec=
12247  # include_expsyms should be a list of space-separated symbols to be *always*
12248  # included in the symbol list
12249  include_expsyms=
12250  # exclude_expsyms can be an extended regexp of symbols to exclude
12251  # it will be wrapped by ` (' and `)$', so one must not match beginning or
12252  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12253  # as well as any symbol that contains `d'.
12254  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12255  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12256  # platforms (ab)use it in PIC code, but their linkers get confused if
12257  # the symbol is explicitly referenced.  Since portable code cannot
12258  # rely on this symbol name, it's probably fine to never include it in
12259  # preloaded symbol tables.
12260  # Exclude shared library initialization/finalization symbols.
12261  extract_expsyms_cmds=
12262
12263  case $host_os in
12264  cygwin* | mingw* | pw32* | cegcc*)
12265    # FIXME: the MSVC++ port hasn't been tested in a loooong time
12266    # When not using gcc, we currently assume that we are using
12267    # Microsoft Visual C++.
12268    if test "$GCC" != yes; then
12269      with_gnu_ld=no
12270    fi
12271    ;;
12272  interix*)
12273    # we just hope/assume this is gcc and not c89 (= MSVC++)
12274    with_gnu_ld=yes
12275    ;;
12276  openbsd*)
12277    with_gnu_ld=no
12278    ;;
12279  linux* | k*bsd*-gnu)
12280    link_all_deplibs=no
12281    ;;
12282  esac
12283
12284  ld_shlibs=yes
12285  if test "$with_gnu_ld" = yes; then
12286    # If archive_cmds runs LD, not CC, wlarc should be empty
12287    wlarc='${wl}'
12288
12289    # Set some defaults for GNU ld with shared library support. These
12290    # are reset later if shared libraries are not supported. Putting them
12291    # here allows them to be overridden if necessary.
12292    runpath_var=LD_RUN_PATH
12293    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12294    export_dynamic_flag_spec='${wl}--export-dynamic'
12295    # ancient GNU ld didn't support --whole-archive et. al.
12296    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12297      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12298    else
12299      whole_archive_flag_spec=
12300    fi
12301    supports_anon_versioning=no
12302    case `$LD -v 2>&1` in
12303      *GNU\ gold*) supports_anon_versioning=yes ;;
12304      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12305      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12306      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12307      *\ 2.11.*) ;; # other 2.11 versions
12308      *) supports_anon_versioning=yes ;;
12309    esac
12310
12311    # See if GNU ld supports shared libraries.
12312    case $host_os in
12313    aix[3-9]*)
12314      # On AIX/PPC, the GNU linker is very broken
12315      if test "$host_cpu" != ia64; then
12316	ld_shlibs=no
12317	cat <<_LT_EOF 1>&2
12318
12319*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12320*** to be unable to reliably create shared libraries on AIX.
12321*** Therefore, libtool is disabling shared libraries support.  If you
12322*** really care for shared libraries, you may want to modify your PATH
12323*** so that a non-GNU linker is found, and then restart.
12324
12325_LT_EOF
12326      fi
12327      ;;
12328
12329    amigaos*)
12330      case $host_cpu in
12331      powerpc)
12332            # see comment about AmigaOS4 .so support
12333            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12334            archive_expsym_cmds=''
12335        ;;
12336      m68k)
12337            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)'
12338            hardcode_libdir_flag_spec='-L$libdir'
12339            hardcode_minus_L=yes
12340        ;;
12341      esac
12342      ;;
12343
12344    beos*)
12345      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12346	allow_undefined_flag=unsupported
12347	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12348	# support --undefined.  This deserves some investigation.  FIXME
12349	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12350      else
12351	ld_shlibs=no
12352      fi
12353      ;;
12354
12355    cygwin* | mingw* | pw32* | cegcc*)
12356      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12357      # as there is no search path for DLLs.
12358      hardcode_libdir_flag_spec='-L$libdir'
12359      allow_undefined_flag=unsupported
12360      always_export_symbols=no
12361      enable_shared_with_static_runtimes=yes
12362      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12363
12364      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12365        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12366	# If the export-symbols file already is a .def file (1st line
12367	# is EXPORTS), use it as is; otherwise, prepend...
12368	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12369	  cp $export_symbols $output_objdir/$soname.def;
12370	else
12371	  echo EXPORTS > $output_objdir/$soname.def;
12372	  cat $export_symbols >> $output_objdir/$soname.def;
12373	fi~
12374	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12375      else
12376	ld_shlibs=no
12377      fi
12378      ;;
12379
12380    interix[3-9]*)
12381      hardcode_direct=no
12382      hardcode_shlibpath_var=no
12383      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12384      export_dynamic_flag_spec='${wl}-E'
12385      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12386      # Instead, shared libraries are loaded at an image base (0x10000000 by
12387      # default) and relocated if they conflict, which is a slow very memory
12388      # consuming and fragmenting process.  To avoid this, we pick a random,
12389      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12390      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12391      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12392      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'
12393      ;;
12394
12395    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12396      tmp_diet=no
12397      if test "$host_os" = linux-dietlibc; then
12398	case $cc_basename in
12399	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
12400	esac
12401      fi
12402      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12403	 && test "$tmp_diet" = no
12404      then
12405	tmp_addflag=
12406	tmp_sharedflag='-shared'
12407	case $cc_basename,$host_cpu in
12408        pgcc*)				# Portland Group C compiler
12409	  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'
12410	  tmp_addflag=' $pic_flag'
12411	  ;;
12412	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
12413	  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'
12414	  tmp_addflag=' $pic_flag -Mnomain' ;;
12415	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
12416	  tmp_addflag=' -i_dynamic' ;;
12417	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
12418	  tmp_addflag=' -i_dynamic -nofor_main' ;;
12419	ifc* | ifort*)			# Intel Fortran compiler
12420	  tmp_addflag=' -nofor_main' ;;
12421	lf95*)				# Lahey Fortran 8.1
12422	  whole_archive_flag_spec=
12423	  tmp_sharedflag='--shared' ;;
12424	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
12425	  tmp_sharedflag='-qmkshrobj'
12426	  tmp_addflag= ;;
12427	esac
12428	case `$CC -V 2>&1 | sed 5q` in
12429	*Sun\ C*)			# Sun C 5.9
12430	  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'
12431	  compiler_needs_object=yes
12432	  tmp_sharedflag='-G' ;;
12433	*Sun\ F*)			# Sun Fortran 8.3
12434	  tmp_sharedflag='-G' ;;
12435	esac
12436	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12437
12438        if test "x$supports_anon_versioning" = xyes; then
12439          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12440	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12441	    echo "local: *; };" >> $output_objdir/$libname.ver~
12442	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12443        fi
12444
12445	case $cc_basename in
12446	xlf*)
12447	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12448	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12449	  hardcode_libdir_flag_spec=
12450	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
12451	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12452	  if test "x$supports_anon_versioning" = xyes; then
12453	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12454	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12455	      echo "local: *; };" >> $output_objdir/$libname.ver~
12456	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12457	  fi
12458	  ;;
12459	esac
12460      else
12461        ld_shlibs=no
12462      fi
12463      ;;
12464
12465    netbsd* | netbsdelf*-gnu)
12466      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12467	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12468	wlarc=
12469      else
12470	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12471	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12472      fi
12473      ;;
12474
12475    solaris*)
12476      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12477	ld_shlibs=no
12478	cat <<_LT_EOF 1>&2
12479
12480*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12481*** create shared libraries on Solaris systems.  Therefore, libtool
12482*** is disabling shared libraries support.  We urge you to upgrade GNU
12483*** binutils to release 2.9.1 or newer.  Another option is to modify
12484*** your PATH or compiler configuration so that the native linker is
12485*** used, and then restart.
12486
12487_LT_EOF
12488      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12489	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12490	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12491      else
12492	ld_shlibs=no
12493      fi
12494      ;;
12495
12496    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12497      case `$LD -v 2>&1` in
12498        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12499	ld_shlibs=no
12500	cat <<_LT_EOF 1>&2
12501
12502*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12503*** reliably create shared libraries on SCO systems.  Therefore, libtool
12504*** is disabling shared libraries support.  We urge you to upgrade GNU
12505*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12506*** your PATH or compiler configuration so that the native linker is
12507*** used, and then restart.
12508
12509_LT_EOF
12510	;;
12511	*)
12512	  # For security reasons, it is highly recommended that you always
12513	  # use absolute paths for naming shared libraries, and exclude the
12514	  # DT_RUNPATH tag from executables and libraries.  But doing so
12515	  # requires that you compile everything twice, which is a pain.
12516	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12517	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12518	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12519	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12520	  else
12521	    ld_shlibs=no
12522	  fi
12523	;;
12524      esac
12525      ;;
12526
12527    sunos4*)
12528      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12529      wlarc=
12530      hardcode_direct=yes
12531      hardcode_shlibpath_var=no
12532      ;;
12533
12534    *)
12535      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12536	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12537	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12538      else
12539	ld_shlibs=no
12540      fi
12541      ;;
12542    esac
12543
12544    if test "$ld_shlibs" = no; then
12545      runpath_var=
12546      hardcode_libdir_flag_spec=
12547      export_dynamic_flag_spec=
12548      whole_archive_flag_spec=
12549    fi
12550  else
12551    # PORTME fill in a description of your system's linker (not GNU ld)
12552    case $host_os in
12553    aix3*)
12554      allow_undefined_flag=unsupported
12555      always_export_symbols=yes
12556      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'
12557      # Note: this linker hardcodes the directories in LIBPATH if there
12558      # are no directories specified by -L.
12559      hardcode_minus_L=yes
12560      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12561	# Neither direct hardcoding nor static linking is supported with a
12562	# broken collect2.
12563	hardcode_direct=unsupported
12564      fi
12565      ;;
12566
12567    aix[4-9]*)
12568      if test "$host_cpu" = ia64; then
12569	# On IA64, the linker does run time linking by default, so we don't
12570	# have to do anything special.
12571	aix_use_runtimelinking=no
12572	exp_sym_flag='-Bexport'
12573	no_entry_flag=""
12574      else
12575	# If we're using GNU nm, then we don't want the "-C" option.
12576	# -C means demangle to AIX nm, but means don't demangle with GNU nm
12577	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12578	  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'
12579	else
12580	  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'
12581	fi
12582	aix_use_runtimelinking=no
12583
12584	# Test if we are trying to use run time linking or normal
12585	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12586	# need to do runtime linking.
12587	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12588	  for ld_flag in $LDFLAGS; do
12589	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12590	    aix_use_runtimelinking=yes
12591	    break
12592	  fi
12593	  done
12594	  ;;
12595	esac
12596
12597	exp_sym_flag='-bexport'
12598	no_entry_flag='-bnoentry'
12599      fi
12600
12601      # When large executables or shared objects are built, AIX ld can
12602      # have problems creating the table of contents.  If linking a library
12603      # or program results in "error TOC overflow" add -mminimal-toc to
12604      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12605      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12606
12607      archive_cmds=''
12608      hardcode_direct=yes
12609      hardcode_direct_absolute=yes
12610      hardcode_libdir_separator=':'
12611      link_all_deplibs=yes
12612      file_list_spec='${wl}-f,'
12613
12614      if test "$GCC" = yes; then
12615	case $host_os in aix4.[012]|aix4.[012].*)
12616	# We only want to do this on AIX 4.2 and lower, the check
12617	# below for broken collect2 doesn't work under 4.3+
12618	  collect2name=`${CC} -print-prog-name=collect2`
12619	  if test -f "$collect2name" &&
12620	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12621	  then
12622	  # We have reworked collect2
12623	  :
12624	  else
12625	  # We have old collect2
12626	  hardcode_direct=unsupported
12627	  # It fails to find uninstalled libraries when the uninstalled
12628	  # path is not listed in the libpath.  Setting hardcode_minus_L
12629	  # to unsupported forces relinking
12630	  hardcode_minus_L=yes
12631	  hardcode_libdir_flag_spec='-L$libdir'
12632	  hardcode_libdir_separator=
12633	  fi
12634	  ;;
12635	esac
12636	shared_flag='-shared'
12637	if test "$aix_use_runtimelinking" = yes; then
12638	  shared_flag="$shared_flag "'${wl}-G'
12639	fi
12640	link_all_deplibs=no
12641      else
12642	# not using gcc
12643	if test "$host_cpu" = ia64; then
12644	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12645	# chokes on -Wl,-G. The following line is correct:
12646	  shared_flag='-G'
12647	else
12648	  if test "$aix_use_runtimelinking" = yes; then
12649	    shared_flag='${wl}-G'
12650	  else
12651	    shared_flag='${wl}-bM:SRE'
12652	  fi
12653	fi
12654      fi
12655
12656      export_dynamic_flag_spec='${wl}-bexpall'
12657      # It seems that -bexpall does not export symbols beginning with
12658      # underscore (_), so it is better to generate a list of symbols to export.
12659      always_export_symbols=yes
12660      if test "$aix_use_runtimelinking" = yes; then
12661	# Warning - without using the other runtime loading flags (-brtl),
12662	# -berok will link without error, but may produce a broken library.
12663	allow_undefined_flag='-berok'
12664        # Determine the default libpath from the value encoded in an
12665        # empty executable.
12666        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12667/* end confdefs.h.  */
12668
12669int
12670main ()
12671{
12672
12673  ;
12674  return 0;
12675}
12676_ACEOF
12677if ac_fn_c_try_link "$LINENO"; then :
12678
12679lt_aix_libpath_sed='
12680    /Import File Strings/,/^$/ {
12681	/^0/ {
12682	    s/^0  *\(.*\)$/\1/
12683	    p
12684	}
12685    }'
12686aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12687# Check for a 64-bit object if we didn't find anything.
12688if test -z "$aix_libpath"; then
12689  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12690fi
12691fi
12692rm -f core conftest.err conftest.$ac_objext \
12693    conftest$ac_exeext conftest.$ac_ext
12694if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12695
12696        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12697        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"
12698      else
12699	if test "$host_cpu" = ia64; then
12700	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12701	  allow_undefined_flag="-z nodefs"
12702	  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"
12703	else
12704	 # Determine the default libpath from the value encoded in an
12705	 # empty executable.
12706	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12707/* end confdefs.h.  */
12708
12709int
12710main ()
12711{
12712
12713  ;
12714  return 0;
12715}
12716_ACEOF
12717if ac_fn_c_try_link "$LINENO"; then :
12718
12719lt_aix_libpath_sed='
12720    /Import File Strings/,/^$/ {
12721	/^0/ {
12722	    s/^0  *\(.*\)$/\1/
12723	    p
12724	}
12725    }'
12726aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12727# Check for a 64-bit object if we didn't find anything.
12728if test -z "$aix_libpath"; then
12729  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12730fi
12731fi
12732rm -f core conftest.err conftest.$ac_objext \
12733    conftest$ac_exeext conftest.$ac_ext
12734if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12735
12736	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12737	  # Warning - without using the other run time loading flags,
12738	  # -berok will link without error, but may produce a broken library.
12739	  no_undefined_flag=' ${wl}-bernotok'
12740	  allow_undefined_flag=' ${wl}-berok'
12741	  # Exported symbols can be pulled into shared objects from archives
12742	  whole_archive_flag_spec='$convenience'
12743	  archive_cmds_need_lc=yes
12744	  # This is similar to how AIX traditionally builds its shared libraries.
12745	  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'
12746	fi
12747      fi
12748      ;;
12749
12750    amigaos*)
12751      case $host_cpu in
12752      powerpc)
12753            # see comment about AmigaOS4 .so support
12754            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12755            archive_expsym_cmds=''
12756        ;;
12757      m68k)
12758            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)'
12759            hardcode_libdir_flag_spec='-L$libdir'
12760            hardcode_minus_L=yes
12761        ;;
12762      esac
12763      ;;
12764
12765    bsdi[45]*)
12766      export_dynamic_flag_spec=-rdynamic
12767      ;;
12768
12769    cygwin* | mingw* | pw32* | cegcc*)
12770      # When not using gcc, we currently assume that we are using
12771      # Microsoft Visual C++.
12772      # hardcode_libdir_flag_spec is actually meaningless, as there is
12773      # no search path for DLLs.
12774      hardcode_libdir_flag_spec=' '
12775      allow_undefined_flag=unsupported
12776      # Tell ltmain to make .lib files, not .a files.
12777      libext=lib
12778      # Tell ltmain to make .dll files, not .so files.
12779      shrext_cmds=".dll"
12780      # FIXME: Setting linknames here is a bad hack.
12781      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
12782      # The linker will automatically build a .lib file if we build a DLL.
12783      old_archive_from_new_cmds='true'
12784      # FIXME: Should let the user specify the lib program.
12785      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12786      fix_srcfile_path='`cygpath -w "$srcfile"`'
12787      enable_shared_with_static_runtimes=yes
12788      ;;
12789
12790    darwin* | rhapsody*)
12791
12792
12793  archive_cmds_need_lc=no
12794  hardcode_direct=no
12795  hardcode_automatic=yes
12796  hardcode_shlibpath_var=unsupported
12797  whole_archive_flag_spec=''
12798  link_all_deplibs=yes
12799  allow_undefined_flag="$_lt_dar_allow_undefined"
12800  case $cc_basename in
12801     ifort*) _lt_dar_can_shared=yes ;;
12802     *) _lt_dar_can_shared=$GCC ;;
12803  esac
12804  if test "$_lt_dar_can_shared" = "yes"; then
12805    output_verbose_link_cmd=echo
12806    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12807    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12808    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}"
12809    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}"
12810
12811  else
12812  ld_shlibs=no
12813  fi
12814
12815      ;;
12816
12817    dgux*)
12818      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12819      hardcode_libdir_flag_spec='-L$libdir'
12820      hardcode_shlibpath_var=no
12821      ;;
12822
12823    freebsd1*)
12824      ld_shlibs=no
12825      ;;
12826
12827    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12828    # support.  Future versions do this automatically, but an explicit c++rt0.o
12829    # does not break anything, and helps significantly (at the cost of a little
12830    # extra space).
12831    freebsd2.2*)
12832      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12833      hardcode_libdir_flag_spec='-R$libdir'
12834      hardcode_direct=yes
12835      hardcode_shlibpath_var=no
12836      ;;
12837
12838    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12839    freebsd2*)
12840      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12841      hardcode_direct=yes
12842      hardcode_minus_L=yes
12843      hardcode_shlibpath_var=no
12844      ;;
12845
12846    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12847    freebsd* | dragonfly*)
12848      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12849      hardcode_libdir_flag_spec='-R$libdir'
12850      hardcode_direct=yes
12851      hardcode_shlibpath_var=no
12852      ;;
12853
12854    hpux9*)
12855      if test "$GCC" = yes; then
12856	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'
12857      else
12858	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'
12859      fi
12860      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12861      hardcode_libdir_separator=:
12862      hardcode_direct=yes
12863
12864      # hardcode_minus_L: Not really in the search PATH,
12865      # but as the default location of the library.
12866      hardcode_minus_L=yes
12867      export_dynamic_flag_spec='${wl}-E'
12868      ;;
12869
12870    hpux10*)
12871      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12872	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12873      else
12874	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12875      fi
12876      if test "$with_gnu_ld" = no; then
12877	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12878	hardcode_libdir_flag_spec_ld='+b $libdir'
12879	hardcode_libdir_separator=:
12880	hardcode_direct=yes
12881	hardcode_direct_absolute=yes
12882	export_dynamic_flag_spec='${wl}-E'
12883	# hardcode_minus_L: Not really in the search PATH,
12884	# but as the default location of the library.
12885	hardcode_minus_L=yes
12886      fi
12887      ;;
12888
12889    hpux11*)
12890      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12891	case $host_cpu in
12892	hppa*64*)
12893	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12894	  ;;
12895	ia64*)
12896	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12897	  ;;
12898	*)
12899	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12900	  ;;
12901	esac
12902      else
12903	case $host_cpu in
12904	hppa*64*)
12905	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12906	  ;;
12907	ia64*)
12908	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12909	  ;;
12910	*)
12911	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12912	  ;;
12913	esac
12914      fi
12915      if test "$with_gnu_ld" = no; then
12916	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12917	hardcode_libdir_separator=:
12918
12919	case $host_cpu in
12920	hppa*64*|ia64*)
12921	  hardcode_direct=no
12922	  hardcode_shlibpath_var=no
12923	  ;;
12924	*)
12925	  hardcode_direct=yes
12926	  hardcode_direct_absolute=yes
12927	  export_dynamic_flag_spec='${wl}-E'
12928
12929	  # hardcode_minus_L: Not really in the search PATH,
12930	  # but as the default location of the library.
12931	  hardcode_minus_L=yes
12932	  ;;
12933	esac
12934      fi
12935      ;;
12936
12937    irix5* | irix6* | nonstopux*)
12938      if test "$GCC" = yes; then
12939	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'
12940	# Try to use the -exported_symbol ld option, if it does not
12941	# work, assume that -exports_file does not work either and
12942	# implicitly export all symbols.
12943        save_LDFLAGS="$LDFLAGS"
12944        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12945        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12946/* end confdefs.h.  */
12947int foo(void) {}
12948_ACEOF
12949if ac_fn_c_try_link "$LINENO"; then :
12950  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'
12951
12952fi
12953rm -f core conftest.err conftest.$ac_objext \
12954    conftest$ac_exeext conftest.$ac_ext
12955        LDFLAGS="$save_LDFLAGS"
12956      else
12957	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'
12958	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'
12959      fi
12960      archive_cmds_need_lc='no'
12961      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12962      hardcode_libdir_separator=:
12963      inherit_rpath=yes
12964      link_all_deplibs=yes
12965      ;;
12966
12967    netbsd* | netbsdelf*-gnu)
12968      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12969	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12970      else
12971	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12972      fi
12973      hardcode_libdir_flag_spec='-R$libdir'
12974      hardcode_direct=yes
12975      hardcode_shlibpath_var=no
12976      ;;
12977
12978    newsos6)
12979      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12980      hardcode_direct=yes
12981      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12982      hardcode_libdir_separator=:
12983      hardcode_shlibpath_var=no
12984      ;;
12985
12986    *nto* | *qnx*)
12987      ;;
12988
12989    openbsd*)
12990      if test -f /usr/libexec/ld.so; then
12991	hardcode_direct=yes
12992	hardcode_shlibpath_var=no
12993	hardcode_direct_absolute=yes
12994	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12995	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12996	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12997	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12998	  export_dynamic_flag_spec='${wl}-E'
12999	else
13000	  case $host_os in
13001	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13002	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13003	     hardcode_libdir_flag_spec='-R$libdir'
13004	     ;;
13005	   *)
13006	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13007	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13008	     ;;
13009	  esac
13010	fi
13011      else
13012	ld_shlibs=no
13013      fi
13014      ;;
13015
13016    os2*)
13017      hardcode_libdir_flag_spec='-L$libdir'
13018      hardcode_minus_L=yes
13019      allow_undefined_flag=unsupported
13020      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'
13021      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13022      ;;
13023
13024    osf3*)
13025      if test "$GCC" = yes; then
13026	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13027	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'
13028      else
13029	allow_undefined_flag=' -expect_unresolved \*'
13030	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'
13031      fi
13032      archive_cmds_need_lc='no'
13033      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13034      hardcode_libdir_separator=:
13035      ;;
13036
13037    osf4* | osf5*)	# as osf3* with the addition of -msym flag
13038      if test "$GCC" = yes; then
13039	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13040	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'
13041	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13042      else
13043	allow_undefined_flag=' -expect_unresolved \*'
13044	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'
13045	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~
13046	$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'
13047
13048	# Both c and cxx compiler support -rpath directly
13049	hardcode_libdir_flag_spec='-rpath $libdir'
13050      fi
13051      archive_cmds_need_lc='no'
13052      hardcode_libdir_separator=:
13053      ;;
13054
13055    solaris*)
13056      no_undefined_flag=' -z defs'
13057      if test "$GCC" = yes; then
13058	wlarc='${wl}'
13059	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13060	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13061	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13062      else
13063	case `$CC -V 2>&1` in
13064	*"Compilers 5.0"*)
13065	  wlarc=''
13066	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13067	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13068	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13069	  ;;
13070	*)
13071	  wlarc='${wl}'
13072	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13073	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13074	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13075	  ;;
13076	esac
13077      fi
13078      hardcode_libdir_flag_spec='-R$libdir'
13079      hardcode_shlibpath_var=no
13080      case $host_os in
13081      solaris2.[0-5] | solaris2.[0-5].*) ;;
13082      *)
13083	# The compiler driver will combine and reorder linker options,
13084	# but understands `-z linker_flag'.  GCC discards it without `$wl',
13085	# but is careful enough not to reorder.
13086	# Supported since Solaris 2.6 (maybe 2.5.1?)
13087	if test "$GCC" = yes; then
13088	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13089	else
13090	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13091	fi
13092	;;
13093      esac
13094      link_all_deplibs=yes
13095      ;;
13096
13097    sunos4*)
13098      if test "x$host_vendor" = xsequent; then
13099	# Use $CC to link under sequent, because it throws in some extra .o
13100	# files that make .init and .fini sections work.
13101	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13102      else
13103	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13104      fi
13105      hardcode_libdir_flag_spec='-L$libdir'
13106      hardcode_direct=yes
13107      hardcode_minus_L=yes
13108      hardcode_shlibpath_var=no
13109      ;;
13110
13111    sysv4)
13112      case $host_vendor in
13113	sni)
13114	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13115	  hardcode_direct=yes # is this really true???
13116	;;
13117	siemens)
13118	  ## LD is ld it makes a PLAMLIB
13119	  ## CC just makes a GrossModule.
13120	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13121	  reload_cmds='$CC -r -o $output$reload_objs'
13122	  hardcode_direct=no
13123        ;;
13124	motorola)
13125	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13126	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13127	;;
13128      esac
13129      runpath_var='LD_RUN_PATH'
13130      hardcode_shlibpath_var=no
13131      ;;
13132
13133    sysv4.3*)
13134      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13135      hardcode_shlibpath_var=no
13136      export_dynamic_flag_spec='-Bexport'
13137      ;;
13138
13139    sysv4*MP*)
13140      if test -d /usr/nec; then
13141	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13142	hardcode_shlibpath_var=no
13143	runpath_var=LD_RUN_PATH
13144	hardcode_runpath_var=yes
13145	ld_shlibs=yes
13146      fi
13147      ;;
13148
13149    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13150      no_undefined_flag='${wl}-z,text'
13151      archive_cmds_need_lc=no
13152      hardcode_shlibpath_var=no
13153      runpath_var='LD_RUN_PATH'
13154
13155      if test "$GCC" = yes; then
13156	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13157	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13158      else
13159	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13160	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13161      fi
13162      ;;
13163
13164    sysv5* | sco3.2v5* | sco5v6*)
13165      # Note: We can NOT use -z defs as we might desire, because we do not
13166      # link with -lc, and that would cause any symbols used from libc to
13167      # always be unresolved, which means just about no library would
13168      # ever link correctly.  If we're not using GNU ld we use -z text
13169      # though, which does catch some bad symbols but isn't as heavy-handed
13170      # as -z defs.
13171      no_undefined_flag='${wl}-z,text'
13172      allow_undefined_flag='${wl}-z,nodefs'
13173      archive_cmds_need_lc=no
13174      hardcode_shlibpath_var=no
13175      hardcode_libdir_flag_spec='${wl}-R,$libdir'
13176      hardcode_libdir_separator=':'
13177      link_all_deplibs=yes
13178      export_dynamic_flag_spec='${wl}-Bexport'
13179      runpath_var='LD_RUN_PATH'
13180
13181      if test "$GCC" = yes; then
13182	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13183	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13184      else
13185	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13186	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13187      fi
13188      ;;
13189
13190    uts4*)
13191      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13192      hardcode_libdir_flag_spec='-L$libdir'
13193      hardcode_shlibpath_var=no
13194      ;;
13195
13196    *)
13197      ld_shlibs=no
13198      ;;
13199    esac
13200
13201    if test x$host_vendor = xsni; then
13202      case $host in
13203      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13204	export_dynamic_flag_spec='${wl}-Blargedynsym'
13205	;;
13206      esac
13207    fi
13208  fi
13209
13210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13211$as_echo "$ld_shlibs" >&6; }
13212test "$ld_shlibs" = no && can_build_shared=no
13213
13214with_gnu_ld=$with_gnu_ld
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230#
13231# Do we need to explicitly link libc?
13232#
13233case "x$archive_cmds_need_lc" in
13234x|xyes)
13235  # Assume -lc should be added
13236  archive_cmds_need_lc=yes
13237
13238  if test "$enable_shared" = yes && test "$GCC" = yes; then
13239    case $archive_cmds in
13240    *'~'*)
13241      # FIXME: we may have to deal with multi-command sequences.
13242      ;;
13243    '$CC '*)
13244      # Test whether the compiler implicitly links with -lc since on some
13245      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13246      # to ld, don't add -lc before -lgcc.
13247      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13248$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13249      $RM conftest*
13250      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13251
13252      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13253  (eval $ac_compile) 2>&5
13254  ac_status=$?
13255  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13256  test $ac_status = 0; } 2>conftest.err; then
13257        soname=conftest
13258        lib=conftest
13259        libobjs=conftest.$ac_objext
13260        deplibs=
13261        wl=$lt_prog_compiler_wl
13262	pic_flag=$lt_prog_compiler_pic
13263        compiler_flags=-v
13264        linker_flags=-v
13265        verstring=
13266        output_objdir=.
13267        libname=conftest
13268        lt_save_allow_undefined_flag=$allow_undefined_flag
13269        allow_undefined_flag=
13270        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13271  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13272  ac_status=$?
13273  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13274  test $ac_status = 0; }
13275        then
13276	  archive_cmds_need_lc=no
13277        else
13278	  archive_cmds_need_lc=yes
13279        fi
13280        allow_undefined_flag=$lt_save_allow_undefined_flag
13281      else
13282        cat conftest.err 1>&5
13283      fi
13284      $RM conftest*
13285      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
13286$as_echo "$archive_cmds_need_lc" >&6; }
13287      ;;
13288    esac
13289  fi
13290  ;;
13291esac
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13450$as_echo_n "checking dynamic linker characteristics... " >&6; }
13451
13452if test "$GCC" = yes; then
13453  case $host_os in
13454    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13455    *) lt_awk_arg="/^libraries:/" ;;
13456  esac
13457  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13458  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
13459    # if the path contains ";" then we assume it to be the separator
13460    # otherwise default to the standard path separator (i.e. ":") - it is
13461    # assumed that no part of a normal pathname contains ";" but that should
13462    # okay in the real world where ";" in dirpaths is itself problematic.
13463    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
13464  else
13465    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13466  fi
13467  # Ok, now we have the path, separated by spaces, we can step through it
13468  # and add multilib dir if necessary.
13469  lt_tmp_lt_search_path_spec=
13470  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13471  for lt_sys_path in $lt_search_path_spec; do
13472    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13473      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13474    else
13475      test -d "$lt_sys_path" && \
13476	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13477    fi
13478  done
13479  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
13480BEGIN {RS=" "; FS="/|\n";} {
13481  lt_foo="";
13482  lt_count=0;
13483  for (lt_i = NF; lt_i > 0; lt_i--) {
13484    if ($lt_i != "" && $lt_i != ".") {
13485      if ($lt_i == "..") {
13486        lt_count++;
13487      } else {
13488        if (lt_count == 0) {
13489          lt_foo="/" $lt_i lt_foo;
13490        } else {
13491          lt_count--;
13492        }
13493      }
13494    }
13495  }
13496  if (lt_foo != "") { lt_freq[lt_foo]++; }
13497  if (lt_freq[lt_foo] == 1) { print lt_foo; }
13498}'`
13499  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
13500else
13501  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13502fi
13503library_names_spec=
13504libname_spec='lib$name'
13505soname_spec=
13506shrext_cmds=".so"
13507postinstall_cmds=
13508postuninstall_cmds=
13509finish_cmds=
13510finish_eval=
13511shlibpath_var=
13512shlibpath_overrides_runpath=unknown
13513version_type=none
13514dynamic_linker="$host_os ld.so"
13515sys_lib_dlsearch_path_spec="/lib /usr/lib"
13516need_lib_prefix=unknown
13517hardcode_into_libs=no
13518
13519# when you set need_version to no, make sure it does not cause -set_version
13520# flags to be left without arguments
13521need_version=unknown
13522
13523case $host_os in
13524aix3*)
13525  version_type=linux
13526  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13527  shlibpath_var=LIBPATH
13528
13529  # AIX 3 has no versioning support, so we append a major version to the name.
13530  soname_spec='${libname}${release}${shared_ext}$major'
13531  ;;
13532
13533aix[4-9]*)
13534  version_type=linux
13535  need_lib_prefix=no
13536  need_version=no
13537  hardcode_into_libs=yes
13538  if test "$host_cpu" = ia64; then
13539    # AIX 5 supports IA64
13540    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13541    shlibpath_var=LD_LIBRARY_PATH
13542  else
13543    # With GCC up to 2.95.x, collect2 would create an import file
13544    # for dependence libraries.  The import file would start with
13545    # the line `#! .'.  This would cause the generated library to
13546    # depend on `.', always an invalid library.  This was fixed in
13547    # development snapshots of GCC prior to 3.0.
13548    case $host_os in
13549      aix4 | aix4.[01] | aix4.[01].*)
13550      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13551	   echo ' yes '
13552	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13553	:
13554      else
13555	can_build_shared=no
13556      fi
13557      ;;
13558    esac
13559    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13560    # soname into executable. Probably we can add versioning support to
13561    # collect2, so additional links can be useful in future.
13562    if test "$aix_use_runtimelinking" = yes; then
13563      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13564      # instead of lib<name>.a to let people know that these are not
13565      # typical AIX shared libraries.
13566      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13567    else
13568      # We preserve .a as extension for shared libraries through AIX4.2
13569      # and later when we are not doing run time linking.
13570      library_names_spec='${libname}${release}.a $libname.a'
13571      soname_spec='${libname}${release}${shared_ext}$major'
13572    fi
13573    shlibpath_var=LIBPATH
13574  fi
13575  ;;
13576
13577amigaos*)
13578  case $host_cpu in
13579  powerpc)
13580    # Since July 2007 AmigaOS4 officially supports .so libraries.
13581    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13582    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13583    ;;
13584  m68k)
13585    library_names_spec='$libname.ixlibrary $libname.a'
13586    # Create ${libname}_ixlibrary.a entries in /sys/libs.
13587    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'
13588    ;;
13589  esac
13590  ;;
13591
13592beos*)
13593  library_names_spec='${libname}${shared_ext}'
13594  dynamic_linker="$host_os ld.so"
13595  shlibpath_var=LIBRARY_PATH
13596  ;;
13597
13598bsdi[45]*)
13599  version_type=linux
13600  need_version=no
13601  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13602  soname_spec='${libname}${release}${shared_ext}$major'
13603  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13604  shlibpath_var=LD_LIBRARY_PATH
13605  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13606  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13607  # the default ld.so.conf also contains /usr/contrib/lib and
13608  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13609  # libtool to hard-code these into programs
13610  ;;
13611
13612cygwin* | mingw* | pw32* | cegcc*)
13613  version_type=windows
13614  shrext_cmds=".dll"
13615  need_version=no
13616  need_lib_prefix=no
13617
13618  case $GCC,$host_os in
13619  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13620    library_names_spec='$libname.dll.a'
13621    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13622    postinstall_cmds='base_file=`basename \${file}`~
13623      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13624      dldir=$destdir/`dirname \$dlpath`~
13625      test -d \$dldir || mkdir -p \$dldir~
13626      $install_prog $dir/$dlname \$dldir/$dlname~
13627      chmod a+x \$dldir/$dlname~
13628      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13629        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13630      fi'
13631    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13632      dlpath=$dir/\$dldll~
13633       $RM \$dlpath'
13634    shlibpath_overrides_runpath=yes
13635
13636    case $host_os in
13637    cygwin*)
13638      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13639      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13640      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13641      ;;
13642    mingw* | cegcc*)
13643      # MinGW DLLs use traditional 'lib' prefix
13644      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13645      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13646      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13647        # It is most probably a Windows format PATH printed by
13648        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13649        # path with ; separators, and with drive letters. We can handle the
13650        # drive letters (cygwin fileutils understands them), so leave them,
13651        # especially as we might pass files found there to a mingw objdump,
13652        # which wouldn't understand a cygwinified path. Ahh.
13653        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13654      else
13655        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13656      fi
13657      ;;
13658    pw32*)
13659      # pw32 DLLs use 'pw' prefix rather than 'lib'
13660      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13661      ;;
13662    esac
13663    ;;
13664
13665  *)
13666    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13667    ;;
13668  esac
13669  dynamic_linker='Win32 ld.exe'
13670  # FIXME: first we should search . and the directory the executable is in
13671  shlibpath_var=PATH
13672  ;;
13673
13674darwin* | rhapsody*)
13675  dynamic_linker="$host_os dyld"
13676  version_type=darwin
13677  need_lib_prefix=no
13678  need_version=no
13679  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13680  soname_spec='${libname}${release}${major}$shared_ext'
13681  shlibpath_overrides_runpath=yes
13682  shlibpath_var=DYLD_LIBRARY_PATH
13683  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13684
13685  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13686  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13687  ;;
13688
13689dgux*)
13690  version_type=linux
13691  need_lib_prefix=no
13692  need_version=no
13693  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13694  soname_spec='${libname}${release}${shared_ext}$major'
13695  shlibpath_var=LD_LIBRARY_PATH
13696  ;;
13697
13698freebsd1*)
13699  dynamic_linker=no
13700  ;;
13701
13702freebsd* | dragonfly*)
13703  # DragonFly does not have aout.  When/if they implement a new
13704  # versioning mechanism, adjust this.
13705  if test -x /usr/bin/objformat; then
13706    objformat=`/usr/bin/objformat`
13707  else
13708    case $host_os in
13709    freebsd[123]*) objformat=aout ;;
13710    *) objformat=elf ;;
13711    esac
13712  fi
13713  version_type=freebsd-$objformat
13714  case $version_type in
13715    freebsd-elf*)
13716      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13717      need_version=no
13718      need_lib_prefix=no
13719      ;;
13720    freebsd-*)
13721      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13722      need_version=yes
13723      ;;
13724  esac
13725  shlibpath_var=LD_LIBRARY_PATH
13726  case $host_os in
13727  freebsd2*)
13728    shlibpath_overrides_runpath=yes
13729    ;;
13730  freebsd3.[01]* | freebsdelf3.[01]*)
13731    shlibpath_overrides_runpath=yes
13732    hardcode_into_libs=yes
13733    ;;
13734  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13735  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13736    shlibpath_overrides_runpath=no
13737    hardcode_into_libs=yes
13738    ;;
13739  *) # from 4.6 on, and DragonFly
13740    shlibpath_overrides_runpath=yes
13741    hardcode_into_libs=yes
13742    ;;
13743  esac
13744  ;;
13745
13746gnu*)
13747  version_type=linux
13748  need_lib_prefix=no
13749  need_version=no
13750  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13751  soname_spec='${libname}${release}${shared_ext}$major'
13752  shlibpath_var=LD_LIBRARY_PATH
13753  hardcode_into_libs=yes
13754  ;;
13755
13756hpux9* | hpux10* | hpux11*)
13757  # Give a soname corresponding to the major version so that dld.sl refuses to
13758  # link against other versions.
13759  version_type=sunos
13760  need_lib_prefix=no
13761  need_version=no
13762  case $host_cpu in
13763  ia64*)
13764    shrext_cmds='.so'
13765    hardcode_into_libs=yes
13766    dynamic_linker="$host_os dld.so"
13767    shlibpath_var=LD_LIBRARY_PATH
13768    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13769    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13770    soname_spec='${libname}${release}${shared_ext}$major'
13771    if test "X$HPUX_IA64_MODE" = X32; then
13772      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13773    else
13774      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13775    fi
13776    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13777    ;;
13778  hppa*64*)
13779    shrext_cmds='.sl'
13780    hardcode_into_libs=yes
13781    dynamic_linker="$host_os dld.sl"
13782    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13783    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13787    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13788    ;;
13789  *)
13790    shrext_cmds='.sl'
13791    dynamic_linker="$host_os dld.sl"
13792    shlibpath_var=SHLIB_PATH
13793    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13794    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13795    soname_spec='${libname}${release}${shared_ext}$major'
13796    ;;
13797  esac
13798  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13799  postinstall_cmds='chmod 555 $lib'
13800  ;;
13801
13802interix[3-9]*)
13803  version_type=linux
13804  need_lib_prefix=no
13805  need_version=no
13806  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13807  soname_spec='${libname}${release}${shared_ext}$major'
13808  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13809  shlibpath_var=LD_LIBRARY_PATH
13810  shlibpath_overrides_runpath=no
13811  hardcode_into_libs=yes
13812  ;;
13813
13814irix5* | irix6* | nonstopux*)
13815  case $host_os in
13816    nonstopux*) version_type=nonstopux ;;
13817    *)
13818	if test "$lt_cv_prog_gnu_ld" = yes; then
13819		version_type=linux
13820	else
13821		version_type=irix
13822	fi ;;
13823  esac
13824  need_lib_prefix=no
13825  need_version=no
13826  soname_spec='${libname}${release}${shared_ext}$major'
13827  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13828  case $host_os in
13829  irix5* | nonstopux*)
13830    libsuff= shlibsuff=
13831    ;;
13832  *)
13833    case $LD in # libtool.m4 will add one of these switches to LD
13834    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13835      libsuff= shlibsuff= libmagic=32-bit;;
13836    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13837      libsuff=32 shlibsuff=N32 libmagic=N32;;
13838    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13839      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13840    *) libsuff= shlibsuff= libmagic=never-match;;
13841    esac
13842    ;;
13843  esac
13844  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13845  shlibpath_overrides_runpath=no
13846  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13847  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13848  hardcode_into_libs=yes
13849  ;;
13850
13851# No shared lib support for Linux oldld, aout, or coff.
13852linux*oldld* | linux*aout* | linux*coff*)
13853  dynamic_linker=no
13854  ;;
13855
13856# This must be Linux ELF.
13857linux* | k*bsd*-gnu | kopensolaris*-gnu)
13858  version_type=linux
13859  need_lib_prefix=no
13860  need_version=no
13861  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13862  soname_spec='${libname}${release}${shared_ext}$major'
13863  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13864  shlibpath_var=LD_LIBRARY_PATH
13865  shlibpath_overrides_runpath=no
13866  # Some binutils ld are patched to set DT_RUNPATH
13867  save_LDFLAGS=$LDFLAGS
13868  save_libdir=$libdir
13869  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13870       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13872/* end confdefs.h.  */
13873
13874int
13875main ()
13876{
13877
13878  ;
13879  return 0;
13880}
13881_ACEOF
13882if ac_fn_c_try_link "$LINENO"; then :
13883  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13884  shlibpath_overrides_runpath=yes
13885fi
13886fi
13887rm -f core conftest.err conftest.$ac_objext \
13888    conftest$ac_exeext conftest.$ac_ext
13889  LDFLAGS=$save_LDFLAGS
13890  libdir=$save_libdir
13891
13892  # This implies no fast_install, which is unacceptable.
13893  # Some rework will be needed to allow for fast_install
13894  # before this can be enabled.
13895  hardcode_into_libs=yes
13896
13897  # Append ld.so.conf contents to the search path
13898  if test -f /etc/ld.so.conf; then
13899    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' ' '`
13900    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13901  fi
13902
13903  # We used to test for /lib/ld.so.1 and disable shared libraries on
13904  # powerpc, because MkLinux only supported shared libraries with the
13905  # GNU dynamic linker.  Since this was broken with cross compilers,
13906  # most powerpc-linux boxes support dynamic linking these days and
13907  # people can always --disable-shared, the test was removed, and we
13908  # assume the GNU/Linux dynamic linker is in use.
13909  dynamic_linker='GNU/Linux ld.so'
13910  ;;
13911
13912netbsdelf*-gnu)
13913  version_type=linux
13914  need_lib_prefix=no
13915  need_version=no
13916  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13917  soname_spec='${libname}${release}${shared_ext}$major'
13918  shlibpath_var=LD_LIBRARY_PATH
13919  shlibpath_overrides_runpath=no
13920  hardcode_into_libs=yes
13921  dynamic_linker='NetBSD ld.elf_so'
13922  ;;
13923
13924netbsd*)
13925  version_type=sunos
13926  need_lib_prefix=no
13927  need_version=no
13928  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13929    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13930    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13931    dynamic_linker='NetBSD (a.out) ld.so'
13932  else
13933    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13934    soname_spec='${libname}${release}${shared_ext}$major'
13935    dynamic_linker='NetBSD ld.elf_so'
13936  fi
13937  shlibpath_var=LD_LIBRARY_PATH
13938  shlibpath_overrides_runpath=yes
13939  hardcode_into_libs=yes
13940  ;;
13941
13942newsos6)
13943  version_type=linux
13944  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13945  shlibpath_var=LD_LIBRARY_PATH
13946  shlibpath_overrides_runpath=yes
13947  ;;
13948
13949*nto* | *qnx*)
13950  version_type=qnx
13951  need_lib_prefix=no
13952  need_version=no
13953  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13954  soname_spec='${libname}${release}${shared_ext}$major'
13955  shlibpath_var=LD_LIBRARY_PATH
13956  shlibpath_overrides_runpath=no
13957  hardcode_into_libs=yes
13958  dynamic_linker='ldqnx.so'
13959  ;;
13960
13961openbsd*)
13962  version_type=sunos
13963  sys_lib_dlsearch_path_spec="/usr/lib"
13964  need_lib_prefix=no
13965  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13966  case $host_os in
13967    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
13968    *)				need_version=no  ;;
13969  esac
13970  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13971  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13972  shlibpath_var=LD_LIBRARY_PATH
13973  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13974    case $host_os in
13975      openbsd2.[89] | openbsd2.[89].*)
13976	shlibpath_overrides_runpath=no
13977	;;
13978      *)
13979	shlibpath_overrides_runpath=yes
13980	;;
13981      esac
13982  else
13983    shlibpath_overrides_runpath=yes
13984  fi
13985  ;;
13986
13987os2*)
13988  libname_spec='$name'
13989  shrext_cmds=".dll"
13990  need_lib_prefix=no
13991  library_names_spec='$libname${shared_ext} $libname.a'
13992  dynamic_linker='OS/2 ld.exe'
13993  shlibpath_var=LIBPATH
13994  ;;
13995
13996osf3* | osf4* | osf5*)
13997  version_type=osf
13998  need_lib_prefix=no
13999  need_version=no
14000  soname_spec='${libname}${release}${shared_ext}$major'
14001  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14002  shlibpath_var=LD_LIBRARY_PATH
14003  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14004  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14005  ;;
14006
14007rdos*)
14008  dynamic_linker=no
14009  ;;
14010
14011solaris*)
14012  version_type=linux
14013  need_lib_prefix=no
14014  need_version=no
14015  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14016  soname_spec='${libname}${release}${shared_ext}$major'
14017  shlibpath_var=LD_LIBRARY_PATH
14018  shlibpath_overrides_runpath=yes
14019  hardcode_into_libs=yes
14020  # ldd complains unless libraries are executable
14021  postinstall_cmds='chmod +x $lib'
14022  ;;
14023
14024sunos4*)
14025  version_type=sunos
14026  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14027  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14028  shlibpath_var=LD_LIBRARY_PATH
14029  shlibpath_overrides_runpath=yes
14030  if test "$with_gnu_ld" = yes; then
14031    need_lib_prefix=no
14032  fi
14033  need_version=yes
14034  ;;
14035
14036sysv4 | sysv4.3*)
14037  version_type=linux
14038  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14039  soname_spec='${libname}${release}${shared_ext}$major'
14040  shlibpath_var=LD_LIBRARY_PATH
14041  case $host_vendor in
14042    sni)
14043      shlibpath_overrides_runpath=no
14044      need_lib_prefix=no
14045      runpath_var=LD_RUN_PATH
14046      ;;
14047    siemens)
14048      need_lib_prefix=no
14049      ;;
14050    motorola)
14051      need_lib_prefix=no
14052      need_version=no
14053      shlibpath_overrides_runpath=no
14054      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14055      ;;
14056  esac
14057  ;;
14058
14059sysv4*MP*)
14060  if test -d /usr/nec ;then
14061    version_type=linux
14062    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14063    soname_spec='$libname${shared_ext}.$major'
14064    shlibpath_var=LD_LIBRARY_PATH
14065  fi
14066  ;;
14067
14068sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14069  version_type=freebsd-elf
14070  need_lib_prefix=no
14071  need_version=no
14072  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14073  soname_spec='${libname}${release}${shared_ext}$major'
14074  shlibpath_var=LD_LIBRARY_PATH
14075  shlibpath_overrides_runpath=yes
14076  hardcode_into_libs=yes
14077  if test "$with_gnu_ld" = yes; then
14078    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14079  else
14080    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14081    case $host_os in
14082      sco3.2v5*)
14083        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14084	;;
14085    esac
14086  fi
14087  sys_lib_dlsearch_path_spec='/usr/lib'
14088  ;;
14089
14090tpf*)
14091  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14092  version_type=linux
14093  need_lib_prefix=no
14094  need_version=no
14095  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14096  shlibpath_var=LD_LIBRARY_PATH
14097  shlibpath_overrides_runpath=no
14098  hardcode_into_libs=yes
14099  ;;
14100
14101uts4*)
14102  version_type=linux
14103  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14104  soname_spec='${libname}${release}${shared_ext}$major'
14105  shlibpath_var=LD_LIBRARY_PATH
14106  ;;
14107
14108*)
14109  dynamic_linker=no
14110  ;;
14111esac
14112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14113$as_echo "$dynamic_linker" >&6; }
14114test "$dynamic_linker" = no && can_build_shared=no
14115
14116variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14117if test "$GCC" = yes; then
14118  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14119fi
14120
14121if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14122  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14123fi
14124if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14125  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14126fi
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14215$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14216hardcode_action=
14217if test -n "$hardcode_libdir_flag_spec" ||
14218   test -n "$runpath_var" ||
14219   test "X$hardcode_automatic" = "Xyes" ; then
14220
14221  # We can hardcode non-existent directories.
14222  if test "$hardcode_direct" != no &&
14223     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14224     # have to relink, otherwise we might link with an installed library
14225     # when we should be linking with a yet-to-be-installed one
14226     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14227     test "$hardcode_minus_L" != no; then
14228    # Linking always hardcodes the temporary library directory.
14229    hardcode_action=relink
14230  else
14231    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14232    hardcode_action=immediate
14233  fi
14234else
14235  # We cannot hardcode anything, or else we can only hardcode existing
14236  # directories.
14237  hardcode_action=unsupported
14238fi
14239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14240$as_echo "$hardcode_action" >&6; }
14241
14242if test "$hardcode_action" = relink ||
14243   test "$inherit_rpath" = yes; then
14244  # Fast installation is not supported
14245  enable_fast_install=no
14246elif test "$shlibpath_overrides_runpath" = yes ||
14247     test "$enable_shared" = no; then
14248  # Fast installation is not necessary
14249  enable_fast_install=needless
14250fi
14251
14252
14253
14254
14255
14256
14257  if test "x$enable_dlopen" != xyes; then
14258  enable_dlopen=unknown
14259  enable_dlopen_self=unknown
14260  enable_dlopen_self_static=unknown
14261else
14262  lt_cv_dlopen=no
14263  lt_cv_dlopen_libs=
14264
14265  case $host_os in
14266  beos*)
14267    lt_cv_dlopen="load_add_on"
14268    lt_cv_dlopen_libs=
14269    lt_cv_dlopen_self=yes
14270    ;;
14271
14272  mingw* | pw32* | cegcc*)
14273    lt_cv_dlopen="LoadLibrary"
14274    lt_cv_dlopen_libs=
14275    ;;
14276
14277  cygwin*)
14278    lt_cv_dlopen="dlopen"
14279    lt_cv_dlopen_libs=
14280    ;;
14281
14282  darwin*)
14283  # if libdl is installed we need to link against it
14284    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14285$as_echo_n "checking for dlopen in -ldl... " >&6; }
14286if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14287  $as_echo_n "(cached) " >&6
14288else
14289  ac_check_lib_save_LIBS=$LIBS
14290LIBS="-ldl  $LIBS"
14291cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14292/* end confdefs.h.  */
14293
14294/* Override any GCC internal prototype to avoid an error.
14295   Use char because int might match the return type of a GCC
14296   builtin and then its argument prototype would still apply.  */
14297#ifdef __cplusplus
14298extern "C"
14299#endif
14300char dlopen ();
14301int
14302main ()
14303{
14304return dlopen ();
14305  ;
14306  return 0;
14307}
14308_ACEOF
14309if ac_fn_c_try_link "$LINENO"; then :
14310  ac_cv_lib_dl_dlopen=yes
14311else
14312  ac_cv_lib_dl_dlopen=no
14313fi
14314rm -f core conftest.err conftest.$ac_objext \
14315    conftest$ac_exeext conftest.$ac_ext
14316LIBS=$ac_check_lib_save_LIBS
14317fi
14318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14319$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14320if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
14321  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14322else
14323
14324    lt_cv_dlopen="dyld"
14325    lt_cv_dlopen_libs=
14326    lt_cv_dlopen_self=yes
14327
14328fi
14329
14330    ;;
14331
14332  *)
14333    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14334if test "x$ac_cv_func_shl_load" = x""yes; then :
14335  lt_cv_dlopen="shl_load"
14336else
14337  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14338$as_echo_n "checking for shl_load in -ldld... " >&6; }
14339if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
14340  $as_echo_n "(cached) " >&6
14341else
14342  ac_check_lib_save_LIBS=$LIBS
14343LIBS="-ldld  $LIBS"
14344cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14345/* end confdefs.h.  */
14346
14347/* Override any GCC internal prototype to avoid an error.
14348   Use char because int might match the return type of a GCC
14349   builtin and then its argument prototype would still apply.  */
14350#ifdef __cplusplus
14351extern "C"
14352#endif
14353char shl_load ();
14354int
14355main ()
14356{
14357return shl_load ();
14358  ;
14359  return 0;
14360}
14361_ACEOF
14362if ac_fn_c_try_link "$LINENO"; then :
14363  ac_cv_lib_dld_shl_load=yes
14364else
14365  ac_cv_lib_dld_shl_load=no
14366fi
14367rm -f core conftest.err conftest.$ac_objext \
14368    conftest$ac_exeext conftest.$ac_ext
14369LIBS=$ac_check_lib_save_LIBS
14370fi
14371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14372$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14373if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
14374  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14375else
14376  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14377if test "x$ac_cv_func_dlopen" = x""yes; then :
14378  lt_cv_dlopen="dlopen"
14379else
14380  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14381$as_echo_n "checking for dlopen in -ldl... " >&6; }
14382if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14383  $as_echo_n "(cached) " >&6
14384else
14385  ac_check_lib_save_LIBS=$LIBS
14386LIBS="-ldl  $LIBS"
14387cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14388/* end confdefs.h.  */
14389
14390/* Override any GCC internal prototype to avoid an error.
14391   Use char because int might match the return type of a GCC
14392   builtin and then its argument prototype would still apply.  */
14393#ifdef __cplusplus
14394extern "C"
14395#endif
14396char dlopen ();
14397int
14398main ()
14399{
14400return dlopen ();
14401  ;
14402  return 0;
14403}
14404_ACEOF
14405if ac_fn_c_try_link "$LINENO"; then :
14406  ac_cv_lib_dl_dlopen=yes
14407else
14408  ac_cv_lib_dl_dlopen=no
14409fi
14410rm -f core conftest.err conftest.$ac_objext \
14411    conftest$ac_exeext conftest.$ac_ext
14412LIBS=$ac_check_lib_save_LIBS
14413fi
14414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14415$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14416if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
14417  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14418else
14419  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14420$as_echo_n "checking for dlopen in -lsvld... " >&6; }
14421if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
14422  $as_echo_n "(cached) " >&6
14423else
14424  ac_check_lib_save_LIBS=$LIBS
14425LIBS="-lsvld  $LIBS"
14426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14427/* end confdefs.h.  */
14428
14429/* Override any GCC internal prototype to avoid an error.
14430   Use char because int might match the return type of a GCC
14431   builtin and then its argument prototype would still apply.  */
14432#ifdef __cplusplus
14433extern "C"
14434#endif
14435char dlopen ();
14436int
14437main ()
14438{
14439return dlopen ();
14440  ;
14441  return 0;
14442}
14443_ACEOF
14444if ac_fn_c_try_link "$LINENO"; then :
14445  ac_cv_lib_svld_dlopen=yes
14446else
14447  ac_cv_lib_svld_dlopen=no
14448fi
14449rm -f core conftest.err conftest.$ac_objext \
14450    conftest$ac_exeext conftest.$ac_ext
14451LIBS=$ac_check_lib_save_LIBS
14452fi
14453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14454$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14455if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
14456  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14457else
14458  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14459$as_echo_n "checking for dld_link in -ldld... " >&6; }
14460if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
14461  $as_echo_n "(cached) " >&6
14462else
14463  ac_check_lib_save_LIBS=$LIBS
14464LIBS="-ldld  $LIBS"
14465cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14466/* end confdefs.h.  */
14467
14468/* Override any GCC internal prototype to avoid an error.
14469   Use char because int might match the return type of a GCC
14470   builtin and then its argument prototype would still apply.  */
14471#ifdef __cplusplus
14472extern "C"
14473#endif
14474char dld_link ();
14475int
14476main ()
14477{
14478return dld_link ();
14479  ;
14480  return 0;
14481}
14482_ACEOF
14483if ac_fn_c_try_link "$LINENO"; then :
14484  ac_cv_lib_dld_dld_link=yes
14485else
14486  ac_cv_lib_dld_dld_link=no
14487fi
14488rm -f core conftest.err conftest.$ac_objext \
14489    conftest$ac_exeext conftest.$ac_ext
14490LIBS=$ac_check_lib_save_LIBS
14491fi
14492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14493$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14494if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
14495  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14496fi
14497
14498
14499fi
14500
14501
14502fi
14503
14504
14505fi
14506
14507
14508fi
14509
14510
14511fi
14512
14513    ;;
14514  esac
14515
14516  if test "x$lt_cv_dlopen" != xno; then
14517    enable_dlopen=yes
14518  else
14519    enable_dlopen=no
14520  fi
14521
14522  case $lt_cv_dlopen in
14523  dlopen)
14524    save_CPPFLAGS="$CPPFLAGS"
14525    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14526
14527    save_LDFLAGS="$LDFLAGS"
14528    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14529
14530    save_LIBS="$LIBS"
14531    LIBS="$lt_cv_dlopen_libs $LIBS"
14532
14533    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14534$as_echo_n "checking whether a program can dlopen itself... " >&6; }
14535if test "${lt_cv_dlopen_self+set}" = set; then :
14536  $as_echo_n "(cached) " >&6
14537else
14538  	  if test "$cross_compiling" = yes; then :
14539  lt_cv_dlopen_self=cross
14540else
14541  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14542  lt_status=$lt_dlunknown
14543  cat > conftest.$ac_ext <<_LT_EOF
14544#line 14544 "configure"
14545#include "confdefs.h"
14546
14547#if HAVE_DLFCN_H
14548#include <dlfcn.h>
14549#endif
14550
14551#include <stdio.h>
14552
14553#ifdef RTLD_GLOBAL
14554#  define LT_DLGLOBAL		RTLD_GLOBAL
14555#else
14556#  ifdef DL_GLOBAL
14557#    define LT_DLGLOBAL		DL_GLOBAL
14558#  else
14559#    define LT_DLGLOBAL		0
14560#  endif
14561#endif
14562
14563/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14564   find out it does not work in some platform. */
14565#ifndef LT_DLLAZY_OR_NOW
14566#  ifdef RTLD_LAZY
14567#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14568#  else
14569#    ifdef DL_LAZY
14570#      define LT_DLLAZY_OR_NOW		DL_LAZY
14571#    else
14572#      ifdef RTLD_NOW
14573#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14574#      else
14575#        ifdef DL_NOW
14576#          define LT_DLLAZY_OR_NOW	DL_NOW
14577#        else
14578#          define LT_DLLAZY_OR_NOW	0
14579#        endif
14580#      endif
14581#    endif
14582#  endif
14583#endif
14584
14585void fnord() { int i=42;}
14586int main ()
14587{
14588  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14589  int status = $lt_dlunknown;
14590
14591  if (self)
14592    {
14593      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14594      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14595      /* dlclose (self); */
14596    }
14597  else
14598    puts (dlerror ());
14599
14600  return status;
14601}
14602_LT_EOF
14603  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14604  (eval $ac_link) 2>&5
14605  ac_status=$?
14606  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14607  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14608    (./conftest; exit; ) >&5 2>/dev/null
14609    lt_status=$?
14610    case x$lt_status in
14611      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14612      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14613      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14614    esac
14615  else :
14616    # compilation failed
14617    lt_cv_dlopen_self=no
14618  fi
14619fi
14620rm -fr conftest*
14621
14622
14623fi
14624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14625$as_echo "$lt_cv_dlopen_self" >&6; }
14626
14627    if test "x$lt_cv_dlopen_self" = xyes; then
14628      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14629      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14630$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14631if test "${lt_cv_dlopen_self_static+set}" = set; then :
14632  $as_echo_n "(cached) " >&6
14633else
14634  	  if test "$cross_compiling" = yes; then :
14635  lt_cv_dlopen_self_static=cross
14636else
14637  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14638  lt_status=$lt_dlunknown
14639  cat > conftest.$ac_ext <<_LT_EOF
14640#line 14640 "configure"
14641#include "confdefs.h"
14642
14643#if HAVE_DLFCN_H
14644#include <dlfcn.h>
14645#endif
14646
14647#include <stdio.h>
14648
14649#ifdef RTLD_GLOBAL
14650#  define LT_DLGLOBAL		RTLD_GLOBAL
14651#else
14652#  ifdef DL_GLOBAL
14653#    define LT_DLGLOBAL		DL_GLOBAL
14654#  else
14655#    define LT_DLGLOBAL		0
14656#  endif
14657#endif
14658
14659/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14660   find out it does not work in some platform. */
14661#ifndef LT_DLLAZY_OR_NOW
14662#  ifdef RTLD_LAZY
14663#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14664#  else
14665#    ifdef DL_LAZY
14666#      define LT_DLLAZY_OR_NOW		DL_LAZY
14667#    else
14668#      ifdef RTLD_NOW
14669#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14670#      else
14671#        ifdef DL_NOW
14672#          define LT_DLLAZY_OR_NOW	DL_NOW
14673#        else
14674#          define LT_DLLAZY_OR_NOW	0
14675#        endif
14676#      endif
14677#    endif
14678#  endif
14679#endif
14680
14681void fnord() { int i=42;}
14682int main ()
14683{
14684  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14685  int status = $lt_dlunknown;
14686
14687  if (self)
14688    {
14689      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14690      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14691      /* dlclose (self); */
14692    }
14693  else
14694    puts (dlerror ());
14695
14696  return status;
14697}
14698_LT_EOF
14699  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14700  (eval $ac_link) 2>&5
14701  ac_status=$?
14702  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14703  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14704    (./conftest; exit; ) >&5 2>/dev/null
14705    lt_status=$?
14706    case x$lt_status in
14707      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14708      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14709      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14710    esac
14711  else :
14712    # compilation failed
14713    lt_cv_dlopen_self_static=no
14714  fi
14715fi
14716rm -fr conftest*
14717
14718
14719fi
14720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14721$as_echo "$lt_cv_dlopen_self_static" >&6; }
14722    fi
14723
14724    CPPFLAGS="$save_CPPFLAGS"
14725    LDFLAGS="$save_LDFLAGS"
14726    LIBS="$save_LIBS"
14727    ;;
14728  esac
14729
14730  case $lt_cv_dlopen_self in
14731  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14732  *) enable_dlopen_self=unknown ;;
14733  esac
14734
14735  case $lt_cv_dlopen_self_static in
14736  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14737  *) enable_dlopen_self_static=unknown ;;
14738  esac
14739fi
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757striplib=
14758old_striplib=
14759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14760$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14761if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14762  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14763  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14765$as_echo "yes" >&6; }
14766else
14767# FIXME - insert some real tests, host_os isn't really good enough
14768  case $host_os in
14769  darwin*)
14770    if test -n "$STRIP" ; then
14771      striplib="$STRIP -x"
14772      old_striplib="$STRIP -S"
14773      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14774$as_echo "yes" >&6; }
14775    else
14776      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14777$as_echo "no" >&6; }
14778    fi
14779    ;;
14780  *)
14781    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14782$as_echo "no" >&6; }
14783    ;;
14784  esac
14785fi
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798  # Report which library types will actually be built
14799  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14800$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14802$as_echo "$can_build_shared" >&6; }
14803
14804  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14805$as_echo_n "checking whether to build shared libraries... " >&6; }
14806  test "$can_build_shared" = "no" && enable_shared=no
14807
14808  # On AIX, shared libraries and static libraries use the same namespace, and
14809  # are all built from PIC.
14810  case $host_os in
14811  aix3*)
14812    test "$enable_shared" = yes && enable_static=no
14813    if test -n "$RANLIB"; then
14814      archive_cmds="$archive_cmds~\$RANLIB \$lib"
14815      postinstall_cmds='$RANLIB $lib'
14816    fi
14817    ;;
14818
14819  aix[4-9]*)
14820    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14821      test "$enable_shared" = yes && enable_static=no
14822    fi
14823    ;;
14824  esac
14825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14826$as_echo "$enable_shared" >&6; }
14827
14828  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14829$as_echo_n "checking whether to build static libraries... " >&6; }
14830  # Make sure either enable_shared or enable_static is yes.
14831  test "$enable_shared" = yes || enable_static=yes
14832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14833$as_echo "$enable_static" >&6; }
14834
14835
14836
14837
14838fi
14839ac_ext=c
14840ac_cpp='$CPP $CPPFLAGS'
14841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14843ac_compiler_gnu=$ac_cv_c_compiler_gnu
14844
14845CC="$lt_save_CC"
14846
14847
14848ac_ext=cpp
14849ac_cpp='$CXXCPP $CPPFLAGS'
14850ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14851ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14852ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14853
14854archive_cmds_need_lc_CXX=no
14855allow_undefined_flag_CXX=
14856always_export_symbols_CXX=no
14857archive_expsym_cmds_CXX=
14858compiler_needs_object_CXX=no
14859export_dynamic_flag_spec_CXX=
14860hardcode_direct_CXX=no
14861hardcode_direct_absolute_CXX=no
14862hardcode_libdir_flag_spec_CXX=
14863hardcode_libdir_flag_spec_ld_CXX=
14864hardcode_libdir_separator_CXX=
14865hardcode_minus_L_CXX=no
14866hardcode_shlibpath_var_CXX=unsupported
14867hardcode_automatic_CXX=no
14868inherit_rpath_CXX=no
14869module_cmds_CXX=
14870module_expsym_cmds_CXX=
14871link_all_deplibs_CXX=unknown
14872old_archive_cmds_CXX=$old_archive_cmds
14873no_undefined_flag_CXX=
14874whole_archive_flag_spec_CXX=
14875enable_shared_with_static_runtimes_CXX=no
14876
14877# Source file extension for C++ test sources.
14878ac_ext=cpp
14879
14880# Object file extension for compiled C++ test sources.
14881objext=o
14882objext_CXX=$objext
14883
14884# No sense in running all these tests if we already determined that
14885# the CXX compiler isn't working.  Some variables (like enable_shared)
14886# are currently assumed to apply to all compilers on this platform,
14887# and will be corrupted by setting them based on a non-working compiler.
14888if test "$_lt_caught_CXX_error" != yes; then
14889  # Code to be used in simple compile tests
14890  lt_simple_compile_test_code="int some_variable = 0;"
14891
14892  # Code to be used in simple link tests
14893  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14894
14895  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14896
14897
14898
14899
14900
14901
14902# If no C compiler was specified, use CC.
14903LTCC=${LTCC-"$CC"}
14904
14905# If no C compiler flags were specified, use CFLAGS.
14906LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14907
14908# Allow CC to be a program name with arguments.
14909compiler=$CC
14910
14911
14912  # save warnings/boilerplate of simple test code
14913  ac_outfile=conftest.$ac_objext
14914echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14915eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14916_lt_compiler_boilerplate=`cat conftest.err`
14917$RM conftest*
14918
14919  ac_outfile=conftest.$ac_objext
14920echo "$lt_simple_link_test_code" >conftest.$ac_ext
14921eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14922_lt_linker_boilerplate=`cat conftest.err`
14923$RM -r conftest*
14924
14925
14926  # Allow CC to be a program name with arguments.
14927  lt_save_CC=$CC
14928  lt_save_LD=$LD
14929  lt_save_GCC=$GCC
14930  GCC=$GXX
14931  lt_save_with_gnu_ld=$with_gnu_ld
14932  lt_save_path_LD=$lt_cv_path_LD
14933  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14934    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14935  else
14936    $as_unset lt_cv_prog_gnu_ld
14937  fi
14938  if test -n "${lt_cv_path_LDCXX+set}"; then
14939    lt_cv_path_LD=$lt_cv_path_LDCXX
14940  else
14941    $as_unset lt_cv_path_LD
14942  fi
14943  test -z "${LDCXX+set}" || LD=$LDCXX
14944  CC=${CXX-"c++"}
14945  compiler=$CC
14946  compiler_CXX=$CC
14947  for cc_temp in $compiler""; do
14948  case $cc_temp in
14949    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14950    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14951    \-*) ;;
14952    *) break;;
14953  esac
14954done
14955cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14956
14957
14958  if test -n "$compiler"; then
14959    # We don't want -fno-exception when compiling C++ code, so set the
14960    # no_builtin_flag separately
14961    if test "$GXX" = yes; then
14962      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14963    else
14964      lt_prog_compiler_no_builtin_flag_CXX=
14965    fi
14966
14967    if test "$GXX" = yes; then
14968      # Set up default GNU C++ configuration
14969
14970
14971
14972# Check whether --with-gnu-ld was given.
14973if test "${with_gnu_ld+set}" = set; then :
14974  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14975else
14976  with_gnu_ld=no
14977fi
14978
14979ac_prog=ld
14980if test "$GCC" = yes; then
14981  # Check if gcc -print-prog-name=ld gives a path.
14982  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14983$as_echo_n "checking for ld used by $CC... " >&6; }
14984  case $host in
14985  *-*-mingw*)
14986    # gcc leaves a trailing carriage return which upsets mingw
14987    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14988  *)
14989    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14990  esac
14991  case $ac_prog in
14992    # Accept absolute paths.
14993    [\\/]* | ?:[\\/]*)
14994      re_direlt='/[^/][^/]*/\.\./'
14995      # Canonicalize the pathname of ld
14996      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14997      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14998	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14999      done
15000      test -z "$LD" && LD="$ac_prog"
15001      ;;
15002  "")
15003    # If it fails, then pretend we aren't using GCC.
15004    ac_prog=ld
15005    ;;
15006  *)
15007    # If it is relative, then search for the first ld in PATH.
15008    with_gnu_ld=unknown
15009    ;;
15010  esac
15011elif test "$with_gnu_ld" = yes; then
15012  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15013$as_echo_n "checking for GNU ld... " >&6; }
15014else
15015  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15016$as_echo_n "checking for non-GNU ld... " >&6; }
15017fi
15018if test "${lt_cv_path_LD+set}" = set; then :
15019  $as_echo_n "(cached) " >&6
15020else
15021  if test -z "$LD"; then
15022  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15023  for ac_dir in $PATH; do
15024    IFS="$lt_save_ifs"
15025    test -z "$ac_dir" && ac_dir=.
15026    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15027      lt_cv_path_LD="$ac_dir/$ac_prog"
15028      # Check to see if the program is GNU ld.  I'd rather use --version,
15029      # but apparently some variants of GNU ld only accept -v.
15030      # Break only if it was the GNU/non-GNU ld that we prefer.
15031      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15032      *GNU* | *'with BFD'*)
15033	test "$with_gnu_ld" != no && break
15034	;;
15035      *)
15036	test "$with_gnu_ld" != yes && break
15037	;;
15038      esac
15039    fi
15040  done
15041  IFS="$lt_save_ifs"
15042else
15043  lt_cv_path_LD="$LD" # Let the user override the test with a path.
15044fi
15045fi
15046
15047LD="$lt_cv_path_LD"
15048if test -n "$LD"; then
15049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15050$as_echo "$LD" >&6; }
15051else
15052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15053$as_echo "no" >&6; }
15054fi
15055test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15057$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15058if test "${lt_cv_prog_gnu_ld+set}" = set; then :
15059  $as_echo_n "(cached) " >&6
15060else
15061  # I'd rather use --version here, but apparently some GNU lds only accept -v.
15062case `$LD -v 2>&1 </dev/null` in
15063*GNU* | *'with BFD'*)
15064  lt_cv_prog_gnu_ld=yes
15065  ;;
15066*)
15067  lt_cv_prog_gnu_ld=no
15068  ;;
15069esac
15070fi
15071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15072$as_echo "$lt_cv_prog_gnu_ld" >&6; }
15073with_gnu_ld=$lt_cv_prog_gnu_ld
15074
15075
15076
15077
15078
15079
15080
15081      # Check if GNU C++ uses GNU ld as the underlying linker, since the
15082      # archiving commands below assume that GNU ld is being used.
15083      if test "$with_gnu_ld" = yes; then
15084        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15085        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'
15086
15087        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15088        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15089
15090        # If archive_cmds runs LD, not CC, wlarc should be empty
15091        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15092        #     investigate it a little bit more. (MM)
15093        wlarc='${wl}'
15094
15095        # ancient GNU ld didn't support --whole-archive et. al.
15096        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15097	  $GREP 'no-whole-archive' > /dev/null; then
15098          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15099        else
15100          whole_archive_flag_spec_CXX=
15101        fi
15102      else
15103        with_gnu_ld=no
15104        wlarc=
15105
15106        # A generic and very simple default shared library creation
15107        # command for GNU C++ for the case where it uses the native
15108        # linker, instead of GNU ld.  If possible, this setting should
15109        # overridden to take advantage of the native linker features on
15110        # the platform it is being used on.
15111        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15112      fi
15113
15114      # Commands to make compiler produce verbose output that lists
15115      # what "hidden" libraries, object files and flags are used when
15116      # linking a shared library.
15117      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15118
15119    else
15120      GXX=no
15121      with_gnu_ld=no
15122      wlarc=
15123    fi
15124
15125    # PORTME: fill in a description of your system's C++ link characteristics
15126    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15127$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15128    ld_shlibs_CXX=yes
15129    case $host_os in
15130      aix3*)
15131        # FIXME: insert proper C++ library support
15132        ld_shlibs_CXX=no
15133        ;;
15134      aix[4-9]*)
15135        if test "$host_cpu" = ia64; then
15136          # On IA64, the linker does run time linking by default, so we don't
15137          # have to do anything special.
15138          aix_use_runtimelinking=no
15139          exp_sym_flag='-Bexport'
15140          no_entry_flag=""
15141        else
15142          aix_use_runtimelinking=no
15143
15144          # Test if we are trying to use run time linking or normal
15145          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15146          # need to do runtime linking.
15147          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15148	    for ld_flag in $LDFLAGS; do
15149	      case $ld_flag in
15150	      *-brtl*)
15151	        aix_use_runtimelinking=yes
15152	        break
15153	        ;;
15154	      esac
15155	    done
15156	    ;;
15157          esac
15158
15159          exp_sym_flag='-bexport'
15160          no_entry_flag='-bnoentry'
15161        fi
15162
15163        # When large executables or shared objects are built, AIX ld can
15164        # have problems creating the table of contents.  If linking a library
15165        # or program results in "error TOC overflow" add -mminimal-toc to
15166        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15167        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15168
15169        archive_cmds_CXX=''
15170        hardcode_direct_CXX=yes
15171        hardcode_direct_absolute_CXX=yes
15172        hardcode_libdir_separator_CXX=':'
15173        link_all_deplibs_CXX=yes
15174        file_list_spec_CXX='${wl}-f,'
15175
15176        if test "$GXX" = yes; then
15177          case $host_os in aix4.[012]|aix4.[012].*)
15178          # We only want to do this on AIX 4.2 and lower, the check
15179          # below for broken collect2 doesn't work under 4.3+
15180	  collect2name=`${CC} -print-prog-name=collect2`
15181	  if test -f "$collect2name" &&
15182	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15183	  then
15184	    # We have reworked collect2
15185	    :
15186	  else
15187	    # We have old collect2
15188	    hardcode_direct_CXX=unsupported
15189	    # It fails to find uninstalled libraries when the uninstalled
15190	    # path is not listed in the libpath.  Setting hardcode_minus_L
15191	    # to unsupported forces relinking
15192	    hardcode_minus_L_CXX=yes
15193	    hardcode_libdir_flag_spec_CXX='-L$libdir'
15194	    hardcode_libdir_separator_CXX=
15195	  fi
15196          esac
15197          shared_flag='-shared'
15198	  if test "$aix_use_runtimelinking" = yes; then
15199	    shared_flag="$shared_flag "'${wl}-G'
15200	  fi
15201        else
15202          # not using gcc
15203          if test "$host_cpu" = ia64; then
15204	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15205	  # chokes on -Wl,-G. The following line is correct:
15206	  shared_flag='-G'
15207          else
15208	    if test "$aix_use_runtimelinking" = yes; then
15209	      shared_flag='${wl}-G'
15210	    else
15211	      shared_flag='${wl}-bM:SRE'
15212	    fi
15213          fi
15214        fi
15215
15216        export_dynamic_flag_spec_CXX='${wl}-bexpall'
15217        # It seems that -bexpall does not export symbols beginning with
15218        # underscore (_), so it is better to generate a list of symbols to
15219	# export.
15220        always_export_symbols_CXX=yes
15221        if test "$aix_use_runtimelinking" = yes; then
15222          # Warning - without using the other runtime loading flags (-brtl),
15223          # -berok will link without error, but may produce a broken library.
15224          allow_undefined_flag_CXX='-berok'
15225          # Determine the default libpath from the value encoded in an empty
15226          # executable.
15227          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15228/* end confdefs.h.  */
15229
15230int
15231main ()
15232{
15233
15234  ;
15235  return 0;
15236}
15237_ACEOF
15238if ac_fn_cxx_try_link "$LINENO"; then :
15239
15240lt_aix_libpath_sed='
15241    /Import File Strings/,/^$/ {
15242	/^0/ {
15243	    s/^0  *\(.*\)$/\1/
15244	    p
15245	}
15246    }'
15247aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15248# Check for a 64-bit object if we didn't find anything.
15249if test -z "$aix_libpath"; then
15250  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15251fi
15252fi
15253rm -f core conftest.err conftest.$ac_objext \
15254    conftest$ac_exeext conftest.$ac_ext
15255if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15256
15257          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15258
15259          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"
15260        else
15261          if test "$host_cpu" = ia64; then
15262	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15263	    allow_undefined_flag_CXX="-z nodefs"
15264	    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"
15265          else
15266	    # Determine the default libpath from the value encoded in an
15267	    # empty executable.
15268	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15269/* end confdefs.h.  */
15270
15271int
15272main ()
15273{
15274
15275  ;
15276  return 0;
15277}
15278_ACEOF
15279if ac_fn_cxx_try_link "$LINENO"; then :
15280
15281lt_aix_libpath_sed='
15282    /Import File Strings/,/^$/ {
15283	/^0/ {
15284	    s/^0  *\(.*\)$/\1/
15285	    p
15286	}
15287    }'
15288aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15289# Check for a 64-bit object if we didn't find anything.
15290if test -z "$aix_libpath"; then
15291  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15292fi
15293fi
15294rm -f core conftest.err conftest.$ac_objext \
15295    conftest$ac_exeext conftest.$ac_ext
15296if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15297
15298	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15299	    # Warning - without using the other run time loading flags,
15300	    # -berok will link without error, but may produce a broken library.
15301	    no_undefined_flag_CXX=' ${wl}-bernotok'
15302	    allow_undefined_flag_CXX=' ${wl}-berok'
15303	    # Exported symbols can be pulled into shared objects from archives
15304	    whole_archive_flag_spec_CXX='$convenience'
15305	    archive_cmds_need_lc_CXX=yes
15306	    # This is similar to how AIX traditionally builds its shared
15307	    # libraries.
15308	    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'
15309          fi
15310        fi
15311        ;;
15312
15313      beos*)
15314	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15315	  allow_undefined_flag_CXX=unsupported
15316	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15317	  # support --undefined.  This deserves some investigation.  FIXME
15318	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15319	else
15320	  ld_shlibs_CXX=no
15321	fi
15322	;;
15323
15324      chorus*)
15325        case $cc_basename in
15326          *)
15327	  # FIXME: insert proper C++ library support
15328	  ld_shlibs_CXX=no
15329	  ;;
15330        esac
15331        ;;
15332
15333      cygwin* | mingw* | pw32* | cegcc*)
15334        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15335        # as there is no search path for DLLs.
15336        hardcode_libdir_flag_spec_CXX='-L$libdir'
15337        allow_undefined_flag_CXX=unsupported
15338        always_export_symbols_CXX=no
15339        enable_shared_with_static_runtimes_CXX=yes
15340
15341        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15342          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'
15343          # If the export-symbols file already is a .def file (1st line
15344          # is EXPORTS), use it as is; otherwise, prepend...
15345          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15346	    cp $export_symbols $output_objdir/$soname.def;
15347          else
15348	    echo EXPORTS > $output_objdir/$soname.def;
15349	    cat $export_symbols >> $output_objdir/$soname.def;
15350          fi~
15351          $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'
15352        else
15353          ld_shlibs_CXX=no
15354        fi
15355        ;;
15356      darwin* | rhapsody*)
15357
15358
15359  archive_cmds_need_lc_CXX=no
15360  hardcode_direct_CXX=no
15361  hardcode_automatic_CXX=yes
15362  hardcode_shlibpath_var_CXX=unsupported
15363  whole_archive_flag_spec_CXX=''
15364  link_all_deplibs_CXX=yes
15365  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15366  case $cc_basename in
15367     ifort*) _lt_dar_can_shared=yes ;;
15368     *) _lt_dar_can_shared=$GCC ;;
15369  esac
15370  if test "$_lt_dar_can_shared" = "yes"; then
15371    output_verbose_link_cmd=echo
15372    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}"
15373    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15374    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}"
15375    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}"
15376       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15377      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}"
15378      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}"
15379    fi
15380
15381  else
15382  ld_shlibs_CXX=no
15383  fi
15384
15385	;;
15386
15387      dgux*)
15388        case $cc_basename in
15389          ec++*)
15390	    # FIXME: insert proper C++ library support
15391	    ld_shlibs_CXX=no
15392	    ;;
15393          ghcx*)
15394	    # Green Hills C++ Compiler
15395	    # FIXME: insert proper C++ library support
15396	    ld_shlibs_CXX=no
15397	    ;;
15398          *)
15399	    # FIXME: insert proper C++ library support
15400	    ld_shlibs_CXX=no
15401	    ;;
15402        esac
15403        ;;
15404
15405      freebsd[12]*)
15406        # C++ shared libraries reported to be fairly broken before
15407	# switch to ELF
15408        ld_shlibs_CXX=no
15409        ;;
15410
15411      freebsd-elf*)
15412        archive_cmds_need_lc_CXX=no
15413        ;;
15414
15415      freebsd* | dragonfly*)
15416        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15417        # conventions
15418        ld_shlibs_CXX=yes
15419        ;;
15420
15421      gnu*)
15422        ;;
15423
15424      hpux9*)
15425        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15426        hardcode_libdir_separator_CXX=:
15427        export_dynamic_flag_spec_CXX='${wl}-E'
15428        hardcode_direct_CXX=yes
15429        hardcode_minus_L_CXX=yes # Not in the search PATH,
15430				             # but as the default
15431				             # location of the library.
15432
15433        case $cc_basename in
15434          CC*)
15435            # FIXME: insert proper C++ library support
15436            ld_shlibs_CXX=no
15437            ;;
15438          aCC*)
15439            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'
15440            # Commands to make compiler produce verbose output that lists
15441            # what "hidden" libraries, object files and flags are used when
15442            # linking a shared library.
15443            #
15444            # There doesn't appear to be a way to prevent this compiler from
15445            # explicitly linking system object files so we need to strip them
15446            # from the output so that they don't get included in the library
15447            # dependencies.
15448            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'
15449            ;;
15450          *)
15451            if test "$GXX" = yes; then
15452              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'
15453            else
15454              # FIXME: insert proper C++ library support
15455              ld_shlibs_CXX=no
15456            fi
15457            ;;
15458        esac
15459        ;;
15460
15461      hpux10*|hpux11*)
15462        if test $with_gnu_ld = no; then
15463	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15464	  hardcode_libdir_separator_CXX=:
15465
15466          case $host_cpu in
15467            hppa*64*|ia64*)
15468              ;;
15469            *)
15470	      export_dynamic_flag_spec_CXX='${wl}-E'
15471              ;;
15472          esac
15473        fi
15474        case $host_cpu in
15475          hppa*64*|ia64*)
15476            hardcode_direct_CXX=no
15477            hardcode_shlibpath_var_CXX=no
15478            ;;
15479          *)
15480            hardcode_direct_CXX=yes
15481            hardcode_direct_absolute_CXX=yes
15482            hardcode_minus_L_CXX=yes # Not in the search PATH,
15483					         # but as the default
15484					         # location of the library.
15485            ;;
15486        esac
15487
15488        case $cc_basename in
15489          CC*)
15490	    # FIXME: insert proper C++ library support
15491	    ld_shlibs_CXX=no
15492	    ;;
15493          aCC*)
15494	    case $host_cpu in
15495	      hppa*64*)
15496	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15497	        ;;
15498	      ia64*)
15499	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15500	        ;;
15501	      *)
15502	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15503	        ;;
15504	    esac
15505	    # Commands to make compiler produce verbose output that lists
15506	    # what "hidden" libraries, object files and flags are used when
15507	    # linking a shared library.
15508	    #
15509	    # There doesn't appear to be a way to prevent this compiler from
15510	    # explicitly linking system object files so we need to strip them
15511	    # from the output so that they don't get included in the library
15512	    # dependencies.
15513	    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'
15514	    ;;
15515          *)
15516	    if test "$GXX" = yes; then
15517	      if test $with_gnu_ld = no; then
15518	        case $host_cpu in
15519	          hppa*64*)
15520	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15521	            ;;
15522	          ia64*)
15523	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15524	            ;;
15525	          *)
15526	            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'
15527	            ;;
15528	        esac
15529	      fi
15530	    else
15531	      # FIXME: insert proper C++ library support
15532	      ld_shlibs_CXX=no
15533	    fi
15534	    ;;
15535        esac
15536        ;;
15537
15538      interix[3-9]*)
15539	hardcode_direct_CXX=no
15540	hardcode_shlibpath_var_CXX=no
15541	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15542	export_dynamic_flag_spec_CXX='${wl}-E'
15543	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15544	# Instead, shared libraries are loaded at an image base (0x10000000 by
15545	# default) and relocated if they conflict, which is a slow very memory
15546	# consuming and fragmenting process.  To avoid this, we pick a random,
15547	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15548	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15549	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'
15550	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'
15551	;;
15552      irix5* | irix6*)
15553        case $cc_basename in
15554          CC*)
15555	    # SGI C++
15556	    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'
15557
15558	    # Archives containing C++ object files must be created using
15559	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15560	    # necessary to make sure instantiated templates are included
15561	    # in the archive.
15562	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15563	    ;;
15564          *)
15565	    if test "$GXX" = yes; then
15566	      if test "$with_gnu_ld" = no; then
15567	        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'
15568	      else
15569	        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'
15570	      fi
15571	    fi
15572	    link_all_deplibs_CXX=yes
15573	    ;;
15574        esac
15575        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15576        hardcode_libdir_separator_CXX=:
15577        inherit_rpath_CXX=yes
15578        ;;
15579
15580      linux* | k*bsd*-gnu | kopensolaris*-gnu)
15581        case $cc_basename in
15582          KCC*)
15583	    # Kuck and Associates, Inc. (KAI) C++ Compiler
15584
15585	    # KCC will only create a shared library if the output file
15586	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
15587	    # to its proper name (with version) after linking.
15588	    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'
15589	    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'
15590	    # Commands to make compiler produce verbose output that lists
15591	    # what "hidden" libraries, object files and flags are used when
15592	    # linking a shared library.
15593	    #
15594	    # There doesn't appear to be a way to prevent this compiler from
15595	    # explicitly linking system object files so we need to strip them
15596	    # from the output so that they don't get included in the library
15597	    # dependencies.
15598	    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'
15599
15600	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15601	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15602
15603	    # Archives containing C++ object files must be created using
15604	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15605	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15606	    ;;
15607	  icpc* | ecpc* )
15608	    # Intel C++
15609	    with_gnu_ld=yes
15610	    # version 8.0 and above of icpc choke on multiply defined symbols
15611	    # if we add $predep_objects and $postdep_objects, however 7.1 and
15612	    # earlier do not add the objects themselves.
15613	    case `$CC -V 2>&1` in
15614	      *"Version 7."*)
15615	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15616		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'
15617		;;
15618	      *)  # Version 8.0 or newer
15619	        tmp_idyn=
15620	        case $host_cpu in
15621		  ia64*) tmp_idyn=' -i_dynamic';;
15622		esac
15623	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15624		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'
15625		;;
15626	    esac
15627	    archive_cmds_need_lc_CXX=no
15628	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15629	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15630	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15631	    ;;
15632          pgCC* | pgcpp*)
15633            # Portland Group C++ compiler
15634	    case `$CC -V` in
15635	    *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
15636	      prelink_cmds_CXX='tpldir=Template.dir~
15637		rm -rf $tpldir~
15638		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15639		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
15640	      old_archive_cmds_CXX='tpldir=Template.dir~
15641		rm -rf $tpldir~
15642		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15643		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
15644		$RANLIB $oldlib'
15645	      archive_cmds_CXX='tpldir=Template.dir~
15646		rm -rf $tpldir~
15647		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15648		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15649	      archive_expsym_cmds_CXX='tpldir=Template.dir~
15650		rm -rf $tpldir~
15651		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15652		$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'
15653	      ;;
15654	    *) # Version 6 will use weak symbols
15655	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15656	      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'
15657	      ;;
15658	    esac
15659
15660	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15661	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15662	    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'
15663            ;;
15664	  cxx*)
15665	    # Compaq C++
15666	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15667	    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'
15668
15669	    runpath_var=LD_RUN_PATH
15670	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15671	    hardcode_libdir_separator_CXX=:
15672
15673	    # Commands to make compiler produce verbose output that lists
15674	    # what "hidden" libraries, object files and flags are used when
15675	    # linking a shared library.
15676	    #
15677	    # There doesn't appear to be a way to prevent this compiler from
15678	    # explicitly linking system object files so we need to strip them
15679	    # from the output so that they don't get included in the library
15680	    # dependencies.
15681	    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'
15682	    ;;
15683	  xl*)
15684	    # IBM XL 8.0 on PPC, with GNU ld
15685	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15686	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15687	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15688	    if test "x$supports_anon_versioning" = xyes; then
15689	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15690		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15691		echo "local: *; };" >> $output_objdir/$libname.ver~
15692		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15693	    fi
15694	    ;;
15695	  *)
15696	    case `$CC -V 2>&1 | sed 5q` in
15697	    *Sun\ C*)
15698	      # Sun C++ 5.9
15699	      no_undefined_flag_CXX=' -zdefs'
15700	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15701	      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'
15702	      hardcode_libdir_flag_spec_CXX='-R$libdir'
15703	      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'
15704	      compiler_needs_object_CXX=yes
15705
15706	      # Not sure whether something based on
15707	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15708	      # would be better.
15709	      output_verbose_link_cmd='echo'
15710
15711	      # Archives containing C++ object files must be created using
15712	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15713	      # necessary to make sure instantiated templates are included
15714	      # in the archive.
15715	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15716	      ;;
15717	    esac
15718	    ;;
15719	esac
15720	;;
15721
15722      lynxos*)
15723        # FIXME: insert proper C++ library support
15724	ld_shlibs_CXX=no
15725	;;
15726
15727      m88k*)
15728        # FIXME: insert proper C++ library support
15729        ld_shlibs_CXX=no
15730	;;
15731
15732      mvs*)
15733        case $cc_basename in
15734          cxx*)
15735	    # FIXME: insert proper C++ library support
15736	    ld_shlibs_CXX=no
15737	    ;;
15738	  *)
15739	    # FIXME: insert proper C++ library support
15740	    ld_shlibs_CXX=no
15741	    ;;
15742	esac
15743	;;
15744
15745      netbsd*)
15746        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15747	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15748	  wlarc=
15749	  hardcode_libdir_flag_spec_CXX='-R$libdir'
15750	  hardcode_direct_CXX=yes
15751	  hardcode_shlibpath_var_CXX=no
15752	fi
15753	# Workaround some broken pre-1.5 toolchains
15754	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15755	;;
15756
15757      *nto* | *qnx*)
15758        ld_shlibs_CXX=yes
15759	;;
15760
15761      openbsd2*)
15762        # C++ shared libraries are fairly broken
15763	ld_shlibs_CXX=no
15764	;;
15765
15766      openbsd*)
15767	if test -f /usr/libexec/ld.so; then
15768	  hardcode_direct_CXX=yes
15769	  hardcode_shlibpath_var_CXX=no
15770	  hardcode_direct_absolute_CXX=yes
15771	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15772	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15773	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15774	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15775	    export_dynamic_flag_spec_CXX='${wl}-E'
15776	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15777	  fi
15778	  output_verbose_link_cmd=echo
15779	else
15780	  ld_shlibs_CXX=no
15781	fi
15782	;;
15783
15784      osf3* | osf4* | osf5*)
15785        case $cc_basename in
15786          KCC*)
15787	    # Kuck and Associates, Inc. (KAI) C++ Compiler
15788
15789	    # KCC will only create a shared library if the output file
15790	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
15791	    # to its proper name (with version) after linking.
15792	    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'
15793
15794	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15795	    hardcode_libdir_separator_CXX=:
15796
15797	    # Archives containing C++ object files must be created using
15798	    # the KAI C++ compiler.
15799	    case $host in
15800	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15801	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15802	    esac
15803	    ;;
15804          RCC*)
15805	    # Rational C++ 2.4.1
15806	    # FIXME: insert proper C++ library support
15807	    ld_shlibs_CXX=no
15808	    ;;
15809          cxx*)
15810	    case $host in
15811	      osf3*)
15812	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15813	        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'
15814	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15815		;;
15816	      *)
15817	        allow_undefined_flag_CXX=' -expect_unresolved \*'
15818	        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'
15819	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15820	          echo "-hidden">> $lib.exp~
15821	          $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~
15822	          $RM $lib.exp'
15823	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15824		;;
15825	    esac
15826
15827	    hardcode_libdir_separator_CXX=:
15828
15829	    # Commands to make compiler produce verbose output that lists
15830	    # what "hidden" libraries, object files and flags are used when
15831	    # linking a shared library.
15832	    #
15833	    # There doesn't appear to be a way to prevent this compiler from
15834	    # explicitly linking system object files so we need to strip them
15835	    # from the output so that they don't get included in the library
15836	    # dependencies.
15837	    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'
15838	    ;;
15839	  *)
15840	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15841	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15842	      case $host in
15843	        osf3*)
15844	          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'
15845		  ;;
15846	        *)
15847	          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'
15848		  ;;
15849	      esac
15850
15851	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15852	      hardcode_libdir_separator_CXX=:
15853
15854	      # Commands to make compiler produce verbose output that lists
15855	      # what "hidden" libraries, object files and flags are used when
15856	      # linking a shared library.
15857	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15858
15859	    else
15860	      # FIXME: insert proper C++ library support
15861	      ld_shlibs_CXX=no
15862	    fi
15863	    ;;
15864        esac
15865        ;;
15866
15867      psos*)
15868        # FIXME: insert proper C++ library support
15869        ld_shlibs_CXX=no
15870        ;;
15871
15872      sunos4*)
15873        case $cc_basename in
15874          CC*)
15875	    # Sun C++ 4.x
15876	    # FIXME: insert proper C++ library support
15877	    ld_shlibs_CXX=no
15878	    ;;
15879          lcc*)
15880	    # Lucid
15881	    # FIXME: insert proper C++ library support
15882	    ld_shlibs_CXX=no
15883	    ;;
15884          *)
15885	    # FIXME: insert proper C++ library support
15886	    ld_shlibs_CXX=no
15887	    ;;
15888        esac
15889        ;;
15890
15891      solaris*)
15892        case $cc_basename in
15893          CC*)
15894	    # Sun C++ 4.2, 5.x and Centerline C++
15895            archive_cmds_need_lc_CXX=yes
15896	    no_undefined_flag_CXX=' -zdefs'
15897	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15898	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15899	      $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'
15900
15901	    hardcode_libdir_flag_spec_CXX='-R$libdir'
15902	    hardcode_shlibpath_var_CXX=no
15903	    case $host_os in
15904	      solaris2.[0-5] | solaris2.[0-5].*) ;;
15905	      *)
15906		# The compiler driver will combine and reorder linker options,
15907		# but understands `-z linker_flag'.
15908	        # Supported since Solaris 2.6 (maybe 2.5.1?)
15909		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15910	        ;;
15911	    esac
15912	    link_all_deplibs_CXX=yes
15913
15914	    output_verbose_link_cmd='echo'
15915
15916	    # Archives containing C++ object files must be created using
15917	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15918	    # necessary to make sure instantiated templates are included
15919	    # in the archive.
15920	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15921	    ;;
15922          gcx*)
15923	    # Green Hills C++ Compiler
15924	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15925
15926	    # The C++ compiler must be used to create the archive.
15927	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15928	    ;;
15929          *)
15930	    # GNU C++ compiler with Solaris linker
15931	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15932	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15933	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15934	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15935	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15936		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15937
15938	        # Commands to make compiler produce verbose output that lists
15939	        # what "hidden" libraries, object files and flags are used when
15940	        # linking a shared library.
15941	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15942	      else
15943	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
15944	        # platform.
15945	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15946	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15947		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15948
15949	        # Commands to make compiler produce verbose output that lists
15950	        # what "hidden" libraries, object files and flags are used when
15951	        # linking a shared library.
15952	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15953	      fi
15954
15955	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15956	      case $host_os in
15957		solaris2.[0-5] | solaris2.[0-5].*) ;;
15958		*)
15959		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15960		  ;;
15961	      esac
15962	    fi
15963	    ;;
15964        esac
15965        ;;
15966
15967    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15968      no_undefined_flag_CXX='${wl}-z,text'
15969      archive_cmds_need_lc_CXX=no
15970      hardcode_shlibpath_var_CXX=no
15971      runpath_var='LD_RUN_PATH'
15972
15973      case $cc_basename in
15974        CC*)
15975	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15976	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15977	  ;;
15978	*)
15979	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15980	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15981	  ;;
15982      esac
15983      ;;
15984
15985      sysv5* | sco3.2v5* | sco5v6*)
15986	# Note: We can NOT use -z defs as we might desire, because we do not
15987	# link with -lc, and that would cause any symbols used from libc to
15988	# always be unresolved, which means just about no library would
15989	# ever link correctly.  If we're not using GNU ld we use -z text
15990	# though, which does catch some bad symbols but isn't as heavy-handed
15991	# as -z defs.
15992	no_undefined_flag_CXX='${wl}-z,text'
15993	allow_undefined_flag_CXX='${wl}-z,nodefs'
15994	archive_cmds_need_lc_CXX=no
15995	hardcode_shlibpath_var_CXX=no
15996	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15997	hardcode_libdir_separator_CXX=':'
15998	link_all_deplibs_CXX=yes
15999	export_dynamic_flag_spec_CXX='${wl}-Bexport'
16000	runpath_var='LD_RUN_PATH'
16001
16002	case $cc_basename in
16003          CC*)
16004	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16005	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16006	    ;;
16007	  *)
16008	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16009	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16010	    ;;
16011	esac
16012      ;;
16013
16014      tandem*)
16015        case $cc_basename in
16016          NCC*)
16017	    # NonStop-UX NCC 3.20
16018	    # FIXME: insert proper C++ library support
16019	    ld_shlibs_CXX=no
16020	    ;;
16021          *)
16022	    # FIXME: insert proper C++ library support
16023	    ld_shlibs_CXX=no
16024	    ;;
16025        esac
16026        ;;
16027
16028      vxworks*)
16029        # FIXME: insert proper C++ library support
16030        ld_shlibs_CXX=no
16031        ;;
16032
16033      *)
16034        # FIXME: insert proper C++ library support
16035        ld_shlibs_CXX=no
16036        ;;
16037    esac
16038
16039    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16040$as_echo "$ld_shlibs_CXX" >&6; }
16041    test "$ld_shlibs_CXX" = no && can_build_shared=no
16042
16043    GCC_CXX="$GXX"
16044    LD_CXX="$LD"
16045
16046    ## CAVEAT EMPTOR:
16047    ## There is no encapsulation within the following macros, do not change
16048    ## the running order or otherwise move them around unless you know exactly
16049    ## what you are doing...
16050    # Dependencies to place before and after the object being linked:
16051predep_objects_CXX=
16052postdep_objects_CXX=
16053predeps_CXX=
16054postdeps_CXX=
16055compiler_lib_search_path_CXX=
16056
16057cat > conftest.$ac_ext <<_LT_EOF
16058class Foo
16059{
16060public:
16061  Foo (void) { a = 0; }
16062private:
16063  int a;
16064};
16065_LT_EOF
16066
16067if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16068  (eval $ac_compile) 2>&5
16069  ac_status=$?
16070  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16071  test $ac_status = 0; }; then
16072  # Parse the compiler output and extract the necessary
16073  # objects, libraries and library flags.
16074
16075  # Sentinel used to keep track of whether or not we are before
16076  # the conftest object file.
16077  pre_test_object_deps_done=no
16078
16079  for p in `eval "$output_verbose_link_cmd"`; do
16080    case $p in
16081
16082    -L* | -R* | -l*)
16083       # Some compilers place space between "-{L,R}" and the path.
16084       # Remove the space.
16085       if test $p = "-L" ||
16086          test $p = "-R"; then
16087	 prev=$p
16088	 continue
16089       else
16090	 prev=
16091       fi
16092
16093       if test "$pre_test_object_deps_done" = no; then
16094	 case $p in
16095	 -L* | -R*)
16096	   # Internal compiler library paths should come after those
16097	   # provided the user.  The postdeps already come after the
16098	   # user supplied libs so there is no need to process them.
16099	   if test -z "$compiler_lib_search_path_CXX"; then
16100	     compiler_lib_search_path_CXX="${prev}${p}"
16101	   else
16102	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16103	   fi
16104	   ;;
16105	 # The "-l" case would never come before the object being
16106	 # linked, so don't bother handling this case.
16107	 esac
16108       else
16109	 if test -z "$postdeps_CXX"; then
16110	   postdeps_CXX="${prev}${p}"
16111	 else
16112	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16113	 fi
16114       fi
16115       ;;
16116
16117    *.$objext)
16118       # This assumes that the test object file only shows up
16119       # once in the compiler output.
16120       if test "$p" = "conftest.$objext"; then
16121	 pre_test_object_deps_done=yes
16122	 continue
16123       fi
16124
16125       if test "$pre_test_object_deps_done" = no; then
16126	 if test -z "$predep_objects_CXX"; then
16127	   predep_objects_CXX="$p"
16128	 else
16129	   predep_objects_CXX="$predep_objects_CXX $p"
16130	 fi
16131       else
16132	 if test -z "$postdep_objects_CXX"; then
16133	   postdep_objects_CXX="$p"
16134	 else
16135	   postdep_objects_CXX="$postdep_objects_CXX $p"
16136	 fi
16137       fi
16138       ;;
16139
16140    *) ;; # Ignore the rest.
16141
16142    esac
16143  done
16144
16145  # Clean up.
16146  rm -f a.out a.exe
16147else
16148  echo "libtool.m4: error: problem compiling CXX test program"
16149fi
16150
16151$RM -f confest.$objext
16152
16153# PORTME: override above test on systems where it is broken
16154case $host_os in
16155interix[3-9]*)
16156  # Interix 3.5 installs completely hosed .la files for C++, so rather than
16157  # hack all around it, let's just trust "g++" to DTRT.
16158  predep_objects_CXX=
16159  postdep_objects_CXX=
16160  postdeps_CXX=
16161  ;;
16162
16163linux*)
16164  case `$CC -V 2>&1 | sed 5q` in
16165  *Sun\ C*)
16166    # Sun C++ 5.9
16167
16168    # The more standards-conforming stlport4 library is
16169    # incompatible with the Cstd library. Avoid specifying
16170    # it if it's in CXXFLAGS. Ignore libCrun as
16171    # -library=stlport4 depends on it.
16172    case " $CXX $CXXFLAGS " in
16173    *" -library=stlport4 "*)
16174      solaris_use_stlport4=yes
16175      ;;
16176    esac
16177
16178    if test "$solaris_use_stlport4" != yes; then
16179      postdeps_CXX='-library=Cstd -library=Crun'
16180    fi
16181    ;;
16182  esac
16183  ;;
16184
16185solaris*)
16186  case $cc_basename in
16187  CC*)
16188    # The more standards-conforming stlport4 library is
16189    # incompatible with the Cstd library. Avoid specifying
16190    # it if it's in CXXFLAGS. Ignore libCrun as
16191    # -library=stlport4 depends on it.
16192    case " $CXX $CXXFLAGS " in
16193    *" -library=stlport4 "*)
16194      solaris_use_stlport4=yes
16195      ;;
16196    esac
16197
16198    # Adding this requires a known-good setup of shared libraries for
16199    # Sun compiler versions before 5.6, else PIC objects from an old
16200    # archive will be linked into the output, leading to subtle bugs.
16201    if test "$solaris_use_stlport4" != yes; then
16202      postdeps_CXX='-library=Cstd -library=Crun'
16203    fi
16204    ;;
16205  esac
16206  ;;
16207esac
16208
16209
16210case " $postdeps_CXX " in
16211*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16212esac
16213 compiler_lib_search_dirs_CXX=
16214if test -n "${compiler_lib_search_path_CXX}"; then
16215 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16216fi
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248    lt_prog_compiler_wl_CXX=
16249lt_prog_compiler_pic_CXX=
16250lt_prog_compiler_static_CXX=
16251
16252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16253$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16254
16255  # C++ specific cases for pic, static, wl, etc.
16256  if test "$GXX" = yes; then
16257    lt_prog_compiler_wl_CXX='-Wl,'
16258    lt_prog_compiler_static_CXX='-static'
16259
16260    case $host_os in
16261    aix*)
16262      # All AIX code is PIC.
16263      if test "$host_cpu" = ia64; then
16264	# AIX 5 now supports IA64 processor
16265	lt_prog_compiler_static_CXX='-Bstatic'
16266      fi
16267      ;;
16268
16269    amigaos*)
16270      case $host_cpu in
16271      powerpc)
16272            # see comment about AmigaOS4 .so support
16273            lt_prog_compiler_pic_CXX='-fPIC'
16274        ;;
16275      m68k)
16276            # FIXME: we need at least 68020 code to build shared libraries, but
16277            # adding the `-m68020' flag to GCC prevents building anything better,
16278            # like `-m68040'.
16279            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16280        ;;
16281      esac
16282      ;;
16283
16284    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16285      # PIC is the default for these OSes.
16286      ;;
16287    mingw* | cygwin* | os2* | pw32* | cegcc*)
16288      # This hack is so that the source file can tell whether it is being
16289      # built for inclusion in a dll (and should export symbols for example).
16290      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16291      # (--disable-auto-import) libraries
16292      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16293      ;;
16294    darwin* | rhapsody*)
16295      # PIC is the default on this platform
16296      # Common symbols not allowed in MH_DYLIB files
16297      lt_prog_compiler_pic_CXX='-fno-common'
16298      ;;
16299    *djgpp*)
16300      # DJGPP does not support shared libraries at all
16301      lt_prog_compiler_pic_CXX=
16302      ;;
16303    interix[3-9]*)
16304      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16305      # Instead, we relocate shared libraries at runtime.
16306      ;;
16307    sysv4*MP*)
16308      if test -d /usr/nec; then
16309	lt_prog_compiler_pic_CXX=-Kconform_pic
16310      fi
16311      ;;
16312    hpux*)
16313      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16314      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16315      # sets the default TLS model and affects inlining.
16316      case $host_cpu in
16317      hppa*64*)
16318	;;
16319      *)
16320	lt_prog_compiler_pic_CXX='-fPIC'
16321	;;
16322      esac
16323      ;;
16324    *qnx* | *nto*)
16325      # QNX uses GNU C++, but need to define -shared option too, otherwise
16326      # it will coredump.
16327      lt_prog_compiler_pic_CXX='-fPIC -shared'
16328      ;;
16329    *)
16330      lt_prog_compiler_pic_CXX='-fPIC'
16331      ;;
16332    esac
16333  else
16334    case $host_os in
16335      aix[4-9]*)
16336	# All AIX code is PIC.
16337	if test "$host_cpu" = ia64; then
16338	  # AIX 5 now supports IA64 processor
16339	  lt_prog_compiler_static_CXX='-Bstatic'
16340	else
16341	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16342	fi
16343	;;
16344      chorus*)
16345	case $cc_basename in
16346	cxch68*)
16347	  # Green Hills C++ Compiler
16348	  # _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"
16349	  ;;
16350	esac
16351	;;
16352      dgux*)
16353	case $cc_basename in
16354	  ec++*)
16355	    lt_prog_compiler_pic_CXX='-KPIC'
16356	    ;;
16357	  ghcx*)
16358	    # Green Hills C++ Compiler
16359	    lt_prog_compiler_pic_CXX='-pic'
16360	    ;;
16361	  *)
16362	    ;;
16363	esac
16364	;;
16365      freebsd* | dragonfly*)
16366	# FreeBSD uses GNU C++
16367	;;
16368      hpux9* | hpux10* | hpux11*)
16369	case $cc_basename in
16370	  CC*)
16371	    lt_prog_compiler_wl_CXX='-Wl,'
16372	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16373	    if test "$host_cpu" != ia64; then
16374	      lt_prog_compiler_pic_CXX='+Z'
16375	    fi
16376	    ;;
16377	  aCC*)
16378	    lt_prog_compiler_wl_CXX='-Wl,'
16379	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16380	    case $host_cpu in
16381	    hppa*64*|ia64*)
16382	      # +Z the default
16383	      ;;
16384	    *)
16385	      lt_prog_compiler_pic_CXX='+Z'
16386	      ;;
16387	    esac
16388	    ;;
16389	  *)
16390	    ;;
16391	esac
16392	;;
16393      interix*)
16394	# This is c89, which is MS Visual C++ (no shared libs)
16395	# Anyone wants to do a port?
16396	;;
16397      irix5* | irix6* | nonstopux*)
16398	case $cc_basename in
16399	  CC*)
16400	    lt_prog_compiler_wl_CXX='-Wl,'
16401	    lt_prog_compiler_static_CXX='-non_shared'
16402	    # CC pic flag -KPIC is the default.
16403	    ;;
16404	  *)
16405	    ;;
16406	esac
16407	;;
16408      linux* | k*bsd*-gnu | kopensolaris*-gnu)
16409	case $cc_basename in
16410	  KCC*)
16411	    # KAI C++ Compiler
16412	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16413	    lt_prog_compiler_pic_CXX='-fPIC'
16414	    ;;
16415	  ecpc* )
16416	    # old Intel C++ for x86_64 which still supported -KPIC.
16417	    lt_prog_compiler_wl_CXX='-Wl,'
16418	    lt_prog_compiler_pic_CXX='-KPIC'
16419	    lt_prog_compiler_static_CXX='-static'
16420	    ;;
16421	  icpc* )
16422	    # Intel C++, used to be incompatible with GCC.
16423	    # ICC 10 doesn't accept -KPIC any more.
16424	    lt_prog_compiler_wl_CXX='-Wl,'
16425	    lt_prog_compiler_pic_CXX='-fPIC'
16426	    lt_prog_compiler_static_CXX='-static'
16427	    ;;
16428	  pgCC* | pgcpp*)
16429	    # Portland Group C++ compiler
16430	    lt_prog_compiler_wl_CXX='-Wl,'
16431	    lt_prog_compiler_pic_CXX='-fpic'
16432	    lt_prog_compiler_static_CXX='-Bstatic'
16433	    ;;
16434	  cxx*)
16435	    # Compaq C++
16436	    # Make sure the PIC flag is empty.  It appears that all Alpha
16437	    # Linux and Compaq Tru64 Unix objects are PIC.
16438	    lt_prog_compiler_pic_CXX=
16439	    lt_prog_compiler_static_CXX='-non_shared'
16440	    ;;
16441	  xlc* | xlC*)
16442	    # IBM XL 8.0 on PPC
16443	    lt_prog_compiler_wl_CXX='-Wl,'
16444	    lt_prog_compiler_pic_CXX='-qpic'
16445	    lt_prog_compiler_static_CXX='-qstaticlink'
16446	    ;;
16447	  *)
16448	    case `$CC -V 2>&1 | sed 5q` in
16449	    *Sun\ C*)
16450	      # Sun C++ 5.9
16451	      lt_prog_compiler_pic_CXX='-KPIC'
16452	      lt_prog_compiler_static_CXX='-Bstatic'
16453	      lt_prog_compiler_wl_CXX='-Qoption ld '
16454	      ;;
16455	    esac
16456	    ;;
16457	esac
16458	;;
16459      lynxos*)
16460	;;
16461      m88k*)
16462	;;
16463      mvs*)
16464	case $cc_basename in
16465	  cxx*)
16466	    lt_prog_compiler_pic_CXX='-W c,exportall'
16467	    ;;
16468	  *)
16469	    ;;
16470	esac
16471	;;
16472      netbsd* | netbsdelf*-gnu)
16473	;;
16474      *qnx* | *nto*)
16475        # QNX uses GNU C++, but need to define -shared option too, otherwise
16476        # it will coredump.
16477        lt_prog_compiler_pic_CXX='-fPIC -shared'
16478        ;;
16479      osf3* | osf4* | osf5*)
16480	case $cc_basename in
16481	  KCC*)
16482	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16483	    ;;
16484	  RCC*)
16485	    # Rational C++ 2.4.1
16486	    lt_prog_compiler_pic_CXX='-pic'
16487	    ;;
16488	  cxx*)
16489	    # Digital/Compaq C++
16490	    lt_prog_compiler_wl_CXX='-Wl,'
16491	    # Make sure the PIC flag is empty.  It appears that all Alpha
16492	    # Linux and Compaq Tru64 Unix objects are PIC.
16493	    lt_prog_compiler_pic_CXX=
16494	    lt_prog_compiler_static_CXX='-non_shared'
16495	    ;;
16496	  *)
16497	    ;;
16498	esac
16499	;;
16500      psos*)
16501	;;
16502      solaris*)
16503	case $cc_basename in
16504	  CC*)
16505	    # Sun C++ 4.2, 5.x and Centerline C++
16506	    lt_prog_compiler_pic_CXX='-KPIC'
16507	    lt_prog_compiler_static_CXX='-Bstatic'
16508	    lt_prog_compiler_wl_CXX='-Qoption ld '
16509	    ;;
16510	  gcx*)
16511	    # Green Hills C++ Compiler
16512	    lt_prog_compiler_pic_CXX='-PIC'
16513	    ;;
16514	  *)
16515	    ;;
16516	esac
16517	;;
16518      sunos4*)
16519	case $cc_basename in
16520	  CC*)
16521	    # Sun C++ 4.x
16522	    lt_prog_compiler_pic_CXX='-pic'
16523	    lt_prog_compiler_static_CXX='-Bstatic'
16524	    ;;
16525	  lcc*)
16526	    # Lucid
16527	    lt_prog_compiler_pic_CXX='-pic'
16528	    ;;
16529	  *)
16530	    ;;
16531	esac
16532	;;
16533      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16534	case $cc_basename in
16535	  CC*)
16536	    lt_prog_compiler_wl_CXX='-Wl,'
16537	    lt_prog_compiler_pic_CXX='-KPIC'
16538	    lt_prog_compiler_static_CXX='-Bstatic'
16539	    ;;
16540	esac
16541	;;
16542      tandem*)
16543	case $cc_basename in
16544	  NCC*)
16545	    # NonStop-UX NCC 3.20
16546	    lt_prog_compiler_pic_CXX='-KPIC'
16547	    ;;
16548	  *)
16549	    ;;
16550	esac
16551	;;
16552      vxworks*)
16553	;;
16554      *)
16555	lt_prog_compiler_can_build_shared_CXX=no
16556	;;
16557    esac
16558  fi
16559
16560case $host_os in
16561  # For platforms which do not support PIC, -DPIC is meaningless:
16562  *djgpp*)
16563    lt_prog_compiler_pic_CXX=
16564    ;;
16565  *)
16566    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16567    ;;
16568esac
16569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
16570$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
16571
16572
16573
16574#
16575# Check to make sure the PIC flag actually works.
16576#
16577if test -n "$lt_prog_compiler_pic_CXX"; then
16578  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16579$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16580if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
16581  $as_echo_n "(cached) " >&6
16582else
16583  lt_cv_prog_compiler_pic_works_CXX=no
16584   ac_outfile=conftest.$ac_objext
16585   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16586   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16587   # Insert the option either (1) after the last *FLAGS variable, or
16588   # (2) before a word containing "conftest.", or (3) at the end.
16589   # Note that $ac_compile itself does not contain backslashes and begins
16590   # with a dollar sign (not a hyphen), so the echo should work correctly.
16591   # The option is referenced via a variable to avoid confusing sed.
16592   lt_compile=`echo "$ac_compile" | $SED \
16593   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16594   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16595   -e 's:$: $lt_compiler_flag:'`
16596   (eval echo "\"\$as_me:16596: $lt_compile\"" >&5)
16597   (eval "$lt_compile" 2>conftest.err)
16598   ac_status=$?
16599   cat conftest.err >&5
16600   echo "$as_me:16600: \$? = $ac_status" >&5
16601   if (exit $ac_status) && test -s "$ac_outfile"; then
16602     # The compiler can only warn and ignore the option if not recognized
16603     # So say no if there are warnings other than the usual output.
16604     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16605     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16606     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16607       lt_cv_prog_compiler_pic_works_CXX=yes
16608     fi
16609   fi
16610   $RM conftest*
16611
16612fi
16613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16614$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16615
16616if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16617    case $lt_prog_compiler_pic_CXX in
16618     "" | " "*) ;;
16619     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16620     esac
16621else
16622    lt_prog_compiler_pic_CXX=
16623     lt_prog_compiler_can_build_shared_CXX=no
16624fi
16625
16626fi
16627
16628
16629
16630#
16631# Check to make sure the static flag actually works.
16632#
16633wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16635$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16636if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
16637  $as_echo_n "(cached) " >&6
16638else
16639  lt_cv_prog_compiler_static_works_CXX=no
16640   save_LDFLAGS="$LDFLAGS"
16641   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16642   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16643   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16644     # The linker can only warn and ignore the option if not recognized
16645     # So say no if there are warnings
16646     if test -s conftest.err; then
16647       # Append any errors to the config.log.
16648       cat conftest.err 1>&5
16649       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16650       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16651       if diff conftest.exp conftest.er2 >/dev/null; then
16652         lt_cv_prog_compiler_static_works_CXX=yes
16653       fi
16654     else
16655       lt_cv_prog_compiler_static_works_CXX=yes
16656     fi
16657   fi
16658   $RM -r conftest*
16659   LDFLAGS="$save_LDFLAGS"
16660
16661fi
16662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16663$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16664
16665if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16666    :
16667else
16668    lt_prog_compiler_static_CXX=
16669fi
16670
16671
16672
16673
16674    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16675$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16676if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
16677  $as_echo_n "(cached) " >&6
16678else
16679  lt_cv_prog_compiler_c_o_CXX=no
16680   $RM -r conftest 2>/dev/null
16681   mkdir conftest
16682   cd conftest
16683   mkdir out
16684   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16685
16686   lt_compiler_flag="-o out/conftest2.$ac_objext"
16687   # Insert the option either (1) after the last *FLAGS variable, or
16688   # (2) before a word containing "conftest.", or (3) at the end.
16689   # Note that $ac_compile itself does not contain backslashes and begins
16690   # with a dollar sign (not a hyphen), so the echo should work correctly.
16691   lt_compile=`echo "$ac_compile" | $SED \
16692   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16693   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16694   -e 's:$: $lt_compiler_flag:'`
16695   (eval echo "\"\$as_me:16695: $lt_compile\"" >&5)
16696   (eval "$lt_compile" 2>out/conftest.err)
16697   ac_status=$?
16698   cat out/conftest.err >&5
16699   echo "$as_me:16699: \$? = $ac_status" >&5
16700   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16701   then
16702     # The compiler can only warn and ignore the option if not recognized
16703     # So say no if there are warnings
16704     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16705     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16706     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16707       lt_cv_prog_compiler_c_o_CXX=yes
16708     fi
16709   fi
16710   chmod u+w . 2>&5
16711   $RM conftest*
16712   # SGI C++ compiler will create directory out/ii_files/ for
16713   # template instantiation
16714   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16715   $RM out/* && rmdir out
16716   cd ..
16717   $RM -r conftest
16718   $RM conftest*
16719
16720fi
16721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16722$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16723
16724
16725
16726    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16727$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16728if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
16729  $as_echo_n "(cached) " >&6
16730else
16731  lt_cv_prog_compiler_c_o_CXX=no
16732   $RM -r conftest 2>/dev/null
16733   mkdir conftest
16734   cd conftest
16735   mkdir out
16736   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16737
16738   lt_compiler_flag="-o out/conftest2.$ac_objext"
16739   # Insert the option either (1) after the last *FLAGS variable, or
16740   # (2) before a word containing "conftest.", or (3) at the end.
16741   # Note that $ac_compile itself does not contain backslashes and begins
16742   # with a dollar sign (not a hyphen), so the echo should work correctly.
16743   lt_compile=`echo "$ac_compile" | $SED \
16744   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16745   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16746   -e 's:$: $lt_compiler_flag:'`
16747   (eval echo "\"\$as_me:16747: $lt_compile\"" >&5)
16748   (eval "$lt_compile" 2>out/conftest.err)
16749   ac_status=$?
16750   cat out/conftest.err >&5
16751   echo "$as_me:16751: \$? = $ac_status" >&5
16752   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16753   then
16754     # The compiler can only warn and ignore the option if not recognized
16755     # So say no if there are warnings
16756     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16757     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16758     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16759       lt_cv_prog_compiler_c_o_CXX=yes
16760     fi
16761   fi
16762   chmod u+w . 2>&5
16763   $RM conftest*
16764   # SGI C++ compiler will create directory out/ii_files/ for
16765   # template instantiation
16766   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16767   $RM out/* && rmdir out
16768   cd ..
16769   $RM -r conftest
16770   $RM conftest*
16771
16772fi
16773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16774$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16775
16776
16777
16778
16779hard_links="nottested"
16780if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16781  # do not overwrite the value of need_locks provided by the user
16782  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16783$as_echo_n "checking if we can lock with hard links... " >&6; }
16784  hard_links=yes
16785  $RM conftest*
16786  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16787  touch conftest.a
16788  ln conftest.a conftest.b 2>&5 || hard_links=no
16789  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16791$as_echo "$hard_links" >&6; }
16792  if test "$hard_links" = no; then
16793    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16794$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16795    need_locks=warn
16796  fi
16797else
16798  need_locks=no
16799fi
16800
16801
16802
16803    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16804$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16805
16806  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16807  case $host_os in
16808  aix[4-9]*)
16809    # If we're using GNU nm, then we don't want the "-C" option.
16810    # -C means demangle to AIX nm, but means don't demangle with GNU nm
16811    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16812      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'
16813    else
16814      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'
16815    fi
16816    ;;
16817  pw32*)
16818    export_symbols_cmds_CXX="$ltdll_cmds"
16819  ;;
16820  cygwin* | mingw* | cegcc*)
16821    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'
16822  ;;
16823  linux* | k*bsd*-gnu)
16824    link_all_deplibs_CXX=no
16825  ;;
16826  *)
16827    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16828  ;;
16829  esac
16830  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16831
16832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16833$as_echo "$ld_shlibs_CXX" >&6; }
16834test "$ld_shlibs_CXX" = no && can_build_shared=no
16835
16836with_gnu_ld_CXX=$with_gnu_ld
16837
16838
16839
16840
16841
16842
16843#
16844# Do we need to explicitly link libc?
16845#
16846case "x$archive_cmds_need_lc_CXX" in
16847x|xyes)
16848  # Assume -lc should be added
16849  archive_cmds_need_lc_CXX=yes
16850
16851  if test "$enable_shared" = yes && test "$GCC" = yes; then
16852    case $archive_cmds_CXX in
16853    *'~'*)
16854      # FIXME: we may have to deal with multi-command sequences.
16855      ;;
16856    '$CC '*)
16857      # Test whether the compiler implicitly links with -lc since on some
16858      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16859      # to ld, don't add -lc before -lgcc.
16860      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16861$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16862      $RM conftest*
16863      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16864
16865      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16866  (eval $ac_compile) 2>&5
16867  ac_status=$?
16868  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16869  test $ac_status = 0; } 2>conftest.err; then
16870        soname=conftest
16871        lib=conftest
16872        libobjs=conftest.$ac_objext
16873        deplibs=
16874        wl=$lt_prog_compiler_wl_CXX
16875	pic_flag=$lt_prog_compiler_pic_CXX
16876        compiler_flags=-v
16877        linker_flags=-v
16878        verstring=
16879        output_objdir=.
16880        libname=conftest
16881        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16882        allow_undefined_flag_CXX=
16883        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16884  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16885  ac_status=$?
16886  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16887  test $ac_status = 0; }
16888        then
16889	  archive_cmds_need_lc_CXX=no
16890        else
16891	  archive_cmds_need_lc_CXX=yes
16892        fi
16893        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16894      else
16895        cat conftest.err 1>&5
16896      fi
16897      $RM conftest*
16898      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
16899$as_echo "$archive_cmds_need_lc_CXX" >&6; }
16900      ;;
16901    esac
16902  fi
16903  ;;
16904esac
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16970$as_echo_n "checking dynamic linker characteristics... " >&6; }
16971
16972library_names_spec=
16973libname_spec='lib$name'
16974soname_spec=
16975shrext_cmds=".so"
16976postinstall_cmds=
16977postuninstall_cmds=
16978finish_cmds=
16979finish_eval=
16980shlibpath_var=
16981shlibpath_overrides_runpath=unknown
16982version_type=none
16983dynamic_linker="$host_os ld.so"
16984sys_lib_dlsearch_path_spec="/lib /usr/lib"
16985need_lib_prefix=unknown
16986hardcode_into_libs=no
16987
16988# when you set need_version to no, make sure it does not cause -set_version
16989# flags to be left without arguments
16990need_version=unknown
16991
16992case $host_os in
16993aix3*)
16994  version_type=linux
16995  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16996  shlibpath_var=LIBPATH
16997
16998  # AIX 3 has no versioning support, so we append a major version to the name.
16999  soname_spec='${libname}${release}${shared_ext}$major'
17000  ;;
17001
17002aix[4-9]*)
17003  version_type=linux
17004  need_lib_prefix=no
17005  need_version=no
17006  hardcode_into_libs=yes
17007  if test "$host_cpu" = ia64; then
17008    # AIX 5 supports IA64
17009    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17010    shlibpath_var=LD_LIBRARY_PATH
17011  else
17012    # With GCC up to 2.95.x, collect2 would create an import file
17013    # for dependence libraries.  The import file would start with
17014    # the line `#! .'.  This would cause the generated library to
17015    # depend on `.', always an invalid library.  This was fixed in
17016    # development snapshots of GCC prior to 3.0.
17017    case $host_os in
17018      aix4 | aix4.[01] | aix4.[01].*)
17019      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17020	   echo ' yes '
17021	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17022	:
17023      else
17024	can_build_shared=no
17025      fi
17026      ;;
17027    esac
17028    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17029    # soname into executable. Probably we can add versioning support to
17030    # collect2, so additional links can be useful in future.
17031    if test "$aix_use_runtimelinking" = yes; then
17032      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17033      # instead of lib<name>.a to let people know that these are not
17034      # typical AIX shared libraries.
17035      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17036    else
17037      # We preserve .a as extension for shared libraries through AIX4.2
17038      # and later when we are not doing run time linking.
17039      library_names_spec='${libname}${release}.a $libname.a'
17040      soname_spec='${libname}${release}${shared_ext}$major'
17041    fi
17042    shlibpath_var=LIBPATH
17043  fi
17044  ;;
17045
17046amigaos*)
17047  case $host_cpu in
17048  powerpc)
17049    # Since July 2007 AmigaOS4 officially supports .so libraries.
17050    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17051    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17052    ;;
17053  m68k)
17054    library_names_spec='$libname.ixlibrary $libname.a'
17055    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17056    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'
17057    ;;
17058  esac
17059  ;;
17060
17061beos*)
17062  library_names_spec='${libname}${shared_ext}'
17063  dynamic_linker="$host_os ld.so"
17064  shlibpath_var=LIBRARY_PATH
17065  ;;
17066
17067bsdi[45]*)
17068  version_type=linux
17069  need_version=no
17070  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17071  soname_spec='${libname}${release}${shared_ext}$major'
17072  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17073  shlibpath_var=LD_LIBRARY_PATH
17074  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17075  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17076  # the default ld.so.conf also contains /usr/contrib/lib and
17077  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17078  # libtool to hard-code these into programs
17079  ;;
17080
17081cygwin* | mingw* | pw32* | cegcc*)
17082  version_type=windows
17083  shrext_cmds=".dll"
17084  need_version=no
17085  need_lib_prefix=no
17086
17087  case $GCC,$host_os in
17088  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17089    library_names_spec='$libname.dll.a'
17090    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17091    postinstall_cmds='base_file=`basename \${file}`~
17092      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17093      dldir=$destdir/`dirname \$dlpath`~
17094      test -d \$dldir || mkdir -p \$dldir~
17095      $install_prog $dir/$dlname \$dldir/$dlname~
17096      chmod a+x \$dldir/$dlname~
17097      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17098        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17099      fi'
17100    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17101      dlpath=$dir/\$dldll~
17102       $RM \$dlpath'
17103    shlibpath_overrides_runpath=yes
17104
17105    case $host_os in
17106    cygwin*)
17107      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17108      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17109      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17110      ;;
17111    mingw* | cegcc*)
17112      # MinGW DLLs use traditional 'lib' prefix
17113      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17114      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17115      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17116        # It is most probably a Windows format PATH printed by
17117        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17118        # path with ; separators, and with drive letters. We can handle the
17119        # drive letters (cygwin fileutils understands them), so leave them,
17120        # especially as we might pass files found there to a mingw objdump,
17121        # which wouldn't understand a cygwinified path. Ahh.
17122        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17123      else
17124        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17125      fi
17126      ;;
17127    pw32*)
17128      # pw32 DLLs use 'pw' prefix rather than 'lib'
17129      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17130      ;;
17131    esac
17132    ;;
17133
17134  *)
17135    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17136    ;;
17137  esac
17138  dynamic_linker='Win32 ld.exe'
17139  # FIXME: first we should search . and the directory the executable is in
17140  shlibpath_var=PATH
17141  ;;
17142
17143darwin* | rhapsody*)
17144  dynamic_linker="$host_os dyld"
17145  version_type=darwin
17146  need_lib_prefix=no
17147  need_version=no
17148  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17149  soname_spec='${libname}${release}${major}$shared_ext'
17150  shlibpath_overrides_runpath=yes
17151  shlibpath_var=DYLD_LIBRARY_PATH
17152  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17153
17154  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17155  ;;
17156
17157dgux*)
17158  version_type=linux
17159  need_lib_prefix=no
17160  need_version=no
17161  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17162  soname_spec='${libname}${release}${shared_ext}$major'
17163  shlibpath_var=LD_LIBRARY_PATH
17164  ;;
17165
17166freebsd1*)
17167  dynamic_linker=no
17168  ;;
17169
17170freebsd* | dragonfly*)
17171  # DragonFly does not have aout.  When/if they implement a new
17172  # versioning mechanism, adjust this.
17173  if test -x /usr/bin/objformat; then
17174    objformat=`/usr/bin/objformat`
17175  else
17176    case $host_os in
17177    freebsd[123]*) objformat=aout ;;
17178    *) objformat=elf ;;
17179    esac
17180  fi
17181  version_type=freebsd-$objformat
17182  case $version_type in
17183    freebsd-elf*)
17184      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17185      need_version=no
17186      need_lib_prefix=no
17187      ;;
17188    freebsd-*)
17189      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17190      need_version=yes
17191      ;;
17192  esac
17193  shlibpath_var=LD_LIBRARY_PATH
17194  case $host_os in
17195  freebsd2*)
17196    shlibpath_overrides_runpath=yes
17197    ;;
17198  freebsd3.[01]* | freebsdelf3.[01]*)
17199    shlibpath_overrides_runpath=yes
17200    hardcode_into_libs=yes
17201    ;;
17202  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17203  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17204    shlibpath_overrides_runpath=no
17205    hardcode_into_libs=yes
17206    ;;
17207  *) # from 4.6 on, and DragonFly
17208    shlibpath_overrides_runpath=yes
17209    hardcode_into_libs=yes
17210    ;;
17211  esac
17212  ;;
17213
17214gnu*)
17215  version_type=linux
17216  need_lib_prefix=no
17217  need_version=no
17218  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17219  soname_spec='${libname}${release}${shared_ext}$major'
17220  shlibpath_var=LD_LIBRARY_PATH
17221  hardcode_into_libs=yes
17222  ;;
17223
17224hpux9* | hpux10* | hpux11*)
17225  # Give a soname corresponding to the major version so that dld.sl refuses to
17226  # link against other versions.
17227  version_type=sunos
17228  need_lib_prefix=no
17229  need_version=no
17230  case $host_cpu in
17231  ia64*)
17232    shrext_cmds='.so'
17233    hardcode_into_libs=yes
17234    dynamic_linker="$host_os dld.so"
17235    shlibpath_var=LD_LIBRARY_PATH
17236    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17237    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17238    soname_spec='${libname}${release}${shared_ext}$major'
17239    if test "X$HPUX_IA64_MODE" = X32; then
17240      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17241    else
17242      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17243    fi
17244    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17245    ;;
17246  hppa*64*)
17247    shrext_cmds='.sl'
17248    hardcode_into_libs=yes
17249    dynamic_linker="$host_os dld.sl"
17250    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17251    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17252    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17253    soname_spec='${libname}${release}${shared_ext}$major'
17254    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17255    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17256    ;;
17257  *)
17258    shrext_cmds='.sl'
17259    dynamic_linker="$host_os dld.sl"
17260    shlibpath_var=SHLIB_PATH
17261    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17262    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17263    soname_spec='${libname}${release}${shared_ext}$major'
17264    ;;
17265  esac
17266  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17267  postinstall_cmds='chmod 555 $lib'
17268  ;;
17269
17270interix[3-9]*)
17271  version_type=linux
17272  need_lib_prefix=no
17273  need_version=no
17274  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17275  soname_spec='${libname}${release}${shared_ext}$major'
17276  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17277  shlibpath_var=LD_LIBRARY_PATH
17278  shlibpath_overrides_runpath=no
17279  hardcode_into_libs=yes
17280  ;;
17281
17282irix5* | irix6* | nonstopux*)
17283  case $host_os in
17284    nonstopux*) version_type=nonstopux ;;
17285    *)
17286	if test "$lt_cv_prog_gnu_ld" = yes; then
17287		version_type=linux
17288	else
17289		version_type=irix
17290	fi ;;
17291  esac
17292  need_lib_prefix=no
17293  need_version=no
17294  soname_spec='${libname}${release}${shared_ext}$major'
17295  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17296  case $host_os in
17297  irix5* | nonstopux*)
17298    libsuff= shlibsuff=
17299    ;;
17300  *)
17301    case $LD in # libtool.m4 will add one of these switches to LD
17302    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17303      libsuff= shlibsuff= libmagic=32-bit;;
17304    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17305      libsuff=32 shlibsuff=N32 libmagic=N32;;
17306    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17307      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17308    *) libsuff= shlibsuff= libmagic=never-match;;
17309    esac
17310    ;;
17311  esac
17312  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17313  shlibpath_overrides_runpath=no
17314  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17315  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17316  hardcode_into_libs=yes
17317  ;;
17318
17319# No shared lib support for Linux oldld, aout, or coff.
17320linux*oldld* | linux*aout* | linux*coff*)
17321  dynamic_linker=no
17322  ;;
17323
17324# This must be Linux ELF.
17325linux* | k*bsd*-gnu | kopensolaris*-gnu)
17326  version_type=linux
17327  need_lib_prefix=no
17328  need_version=no
17329  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17330  soname_spec='${libname}${release}${shared_ext}$major'
17331  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17332  shlibpath_var=LD_LIBRARY_PATH
17333  shlibpath_overrides_runpath=no
17334  # Some binutils ld are patched to set DT_RUNPATH
17335  save_LDFLAGS=$LDFLAGS
17336  save_libdir=$libdir
17337  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17338       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17340/* end confdefs.h.  */
17341
17342int
17343main ()
17344{
17345
17346  ;
17347  return 0;
17348}
17349_ACEOF
17350if ac_fn_cxx_try_link "$LINENO"; then :
17351  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17352  shlibpath_overrides_runpath=yes
17353fi
17354fi
17355rm -f core conftest.err conftest.$ac_objext \
17356    conftest$ac_exeext conftest.$ac_ext
17357  LDFLAGS=$save_LDFLAGS
17358  libdir=$save_libdir
17359
17360  # This implies no fast_install, which is unacceptable.
17361  # Some rework will be needed to allow for fast_install
17362  # before this can be enabled.
17363  hardcode_into_libs=yes
17364
17365  # Append ld.so.conf contents to the search path
17366  if test -f /etc/ld.so.conf; then
17367    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' ' '`
17368    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17369  fi
17370
17371  # We used to test for /lib/ld.so.1 and disable shared libraries on
17372  # powerpc, because MkLinux only supported shared libraries with the
17373  # GNU dynamic linker.  Since this was broken with cross compilers,
17374  # most powerpc-linux boxes support dynamic linking these days and
17375  # people can always --disable-shared, the test was removed, and we
17376  # assume the GNU/Linux dynamic linker is in use.
17377  dynamic_linker='GNU/Linux ld.so'
17378  ;;
17379
17380netbsdelf*-gnu)
17381  version_type=linux
17382  need_lib_prefix=no
17383  need_version=no
17384  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17385  soname_spec='${libname}${release}${shared_ext}$major'
17386  shlibpath_var=LD_LIBRARY_PATH
17387  shlibpath_overrides_runpath=no
17388  hardcode_into_libs=yes
17389  dynamic_linker='NetBSD ld.elf_so'
17390  ;;
17391
17392netbsd*)
17393  version_type=sunos
17394  need_lib_prefix=no
17395  need_version=no
17396  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17397    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17398    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17399    dynamic_linker='NetBSD (a.out) ld.so'
17400  else
17401    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17402    soname_spec='${libname}${release}${shared_ext}$major'
17403    dynamic_linker='NetBSD ld.elf_so'
17404  fi
17405  shlibpath_var=LD_LIBRARY_PATH
17406  shlibpath_overrides_runpath=yes
17407  hardcode_into_libs=yes
17408  ;;
17409
17410newsos6)
17411  version_type=linux
17412  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17413  shlibpath_var=LD_LIBRARY_PATH
17414  shlibpath_overrides_runpath=yes
17415  ;;
17416
17417*nto* | *qnx*)
17418  version_type=qnx
17419  need_lib_prefix=no
17420  need_version=no
17421  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17422  soname_spec='${libname}${release}${shared_ext}$major'
17423  shlibpath_var=LD_LIBRARY_PATH
17424  shlibpath_overrides_runpath=no
17425  hardcode_into_libs=yes
17426  dynamic_linker='ldqnx.so'
17427  ;;
17428
17429openbsd*)
17430  version_type=sunos
17431  sys_lib_dlsearch_path_spec="/usr/lib"
17432  need_lib_prefix=no
17433  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17434  case $host_os in
17435    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
17436    *)				need_version=no  ;;
17437  esac
17438  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17439  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17440  shlibpath_var=LD_LIBRARY_PATH
17441  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17442    case $host_os in
17443      openbsd2.[89] | openbsd2.[89].*)
17444	shlibpath_overrides_runpath=no
17445	;;
17446      *)
17447	shlibpath_overrides_runpath=yes
17448	;;
17449      esac
17450  else
17451    shlibpath_overrides_runpath=yes
17452  fi
17453  ;;
17454
17455os2*)
17456  libname_spec='$name'
17457  shrext_cmds=".dll"
17458  need_lib_prefix=no
17459  library_names_spec='$libname${shared_ext} $libname.a'
17460  dynamic_linker='OS/2 ld.exe'
17461  shlibpath_var=LIBPATH
17462  ;;
17463
17464osf3* | osf4* | osf5*)
17465  version_type=osf
17466  need_lib_prefix=no
17467  need_version=no
17468  soname_spec='${libname}${release}${shared_ext}$major'
17469  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17470  shlibpath_var=LD_LIBRARY_PATH
17471  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17472  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17473  ;;
17474
17475rdos*)
17476  dynamic_linker=no
17477  ;;
17478
17479solaris*)
17480  version_type=linux
17481  need_lib_prefix=no
17482  need_version=no
17483  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17484  soname_spec='${libname}${release}${shared_ext}$major'
17485  shlibpath_var=LD_LIBRARY_PATH
17486  shlibpath_overrides_runpath=yes
17487  hardcode_into_libs=yes
17488  # ldd complains unless libraries are executable
17489  postinstall_cmds='chmod +x $lib'
17490  ;;
17491
17492sunos4*)
17493  version_type=sunos
17494  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17495  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17496  shlibpath_var=LD_LIBRARY_PATH
17497  shlibpath_overrides_runpath=yes
17498  if test "$with_gnu_ld" = yes; then
17499    need_lib_prefix=no
17500  fi
17501  need_version=yes
17502  ;;
17503
17504sysv4 | sysv4.3*)
17505  version_type=linux
17506  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17507  soname_spec='${libname}${release}${shared_ext}$major'
17508  shlibpath_var=LD_LIBRARY_PATH
17509  case $host_vendor in
17510    sni)
17511      shlibpath_overrides_runpath=no
17512      need_lib_prefix=no
17513      runpath_var=LD_RUN_PATH
17514      ;;
17515    siemens)
17516      need_lib_prefix=no
17517      ;;
17518    motorola)
17519      need_lib_prefix=no
17520      need_version=no
17521      shlibpath_overrides_runpath=no
17522      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17523      ;;
17524  esac
17525  ;;
17526
17527sysv4*MP*)
17528  if test -d /usr/nec ;then
17529    version_type=linux
17530    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17531    soname_spec='$libname${shared_ext}.$major'
17532    shlibpath_var=LD_LIBRARY_PATH
17533  fi
17534  ;;
17535
17536sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17537  version_type=freebsd-elf
17538  need_lib_prefix=no
17539  need_version=no
17540  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17541  soname_spec='${libname}${release}${shared_ext}$major'
17542  shlibpath_var=LD_LIBRARY_PATH
17543  shlibpath_overrides_runpath=yes
17544  hardcode_into_libs=yes
17545  if test "$with_gnu_ld" = yes; then
17546    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17547  else
17548    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17549    case $host_os in
17550      sco3.2v5*)
17551        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17552	;;
17553    esac
17554  fi
17555  sys_lib_dlsearch_path_spec='/usr/lib'
17556  ;;
17557
17558tpf*)
17559  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17560  version_type=linux
17561  need_lib_prefix=no
17562  need_version=no
17563  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17564  shlibpath_var=LD_LIBRARY_PATH
17565  shlibpath_overrides_runpath=no
17566  hardcode_into_libs=yes
17567  ;;
17568
17569uts4*)
17570  version_type=linux
17571  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17572  soname_spec='${libname}${release}${shared_ext}$major'
17573  shlibpath_var=LD_LIBRARY_PATH
17574  ;;
17575
17576*)
17577  dynamic_linker=no
17578  ;;
17579esac
17580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17581$as_echo "$dynamic_linker" >&6; }
17582test "$dynamic_linker" = no && can_build_shared=no
17583
17584variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17585if test "$GCC" = yes; then
17586  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17587fi
17588
17589if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17590  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17591fi
17592if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17593  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17594fi
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17632$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17633hardcode_action_CXX=
17634if test -n "$hardcode_libdir_flag_spec_CXX" ||
17635   test -n "$runpath_var_CXX" ||
17636   test "X$hardcode_automatic_CXX" = "Xyes" ; then
17637
17638  # We can hardcode non-existent directories.
17639  if test "$hardcode_direct_CXX" != no &&
17640     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17641     # have to relink, otherwise we might link with an installed library
17642     # when we should be linking with a yet-to-be-installed one
17643     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17644     test "$hardcode_minus_L_CXX" != no; then
17645    # Linking always hardcodes the temporary library directory.
17646    hardcode_action_CXX=relink
17647  else
17648    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17649    hardcode_action_CXX=immediate
17650  fi
17651else
17652  # We cannot hardcode anything, or else we can only hardcode existing
17653  # directories.
17654  hardcode_action_CXX=unsupported
17655fi
17656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17657$as_echo "$hardcode_action_CXX" >&6; }
17658
17659if test "$hardcode_action_CXX" = relink ||
17660   test "$inherit_rpath_CXX" = yes; then
17661  # Fast installation is not supported
17662  enable_fast_install=no
17663elif test "$shlibpath_overrides_runpath" = yes ||
17664     test "$enable_shared" = no; then
17665  # Fast installation is not necessary
17666  enable_fast_install=needless
17667fi
17668
17669
17670
17671
17672
17673
17674
17675  fi # test -n "$compiler"
17676
17677  CC=$lt_save_CC
17678  LDCXX=$LD
17679  LD=$lt_save_LD
17680  GCC=$lt_save_GCC
17681  with_gnu_ld=$lt_save_with_gnu_ld
17682  lt_cv_path_LDCXX=$lt_cv_path_LD
17683  lt_cv_path_LD=$lt_save_path_LD
17684  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17685  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17686fi # test "$_lt_caught_CXX_error" != yes
17687
17688ac_ext=c
17689ac_cpp='$CPP $CPPFLAGS'
17690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17692ac_compiler_gnu=$ac_cv_c_compiler_gnu
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706        ac_config_commands="$ac_config_commands libtool"
17707
17708
17709
17710
17711# Only expand once:
17712
17713
17714
17715
17716# -----------------------------------------------------------------------
17717# Checks for libraries.
17718# -----------------------------------------------------------------------
17719
17720
17721
17722
17723DEP_PKGS=""
17724DEP_LIBS=""
17725DEP_LIBS_PRIVATE="-mwindows -lmikmod -lsmpeg -lstdc++ -lmingw32 -lSDLmain -liconv -luser32 -lgdi32 -lwinmm -ldxguid -lSDL -lpthread -lvorbisfile -lvorbis -lm -logg -lfreetype"
17726
17727
17728
17729
17730
17731
17732
17733
17734if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
17735	if test -n "$ac_tool_prefix"; then
17736  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17737set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17739$as_echo_n "checking for $ac_word... " >&6; }
17740if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
17741  $as_echo_n "(cached) " >&6
17742else
17743  case $PKG_CONFIG in
17744  [\\/]* | ?:[\\/]*)
17745  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17746  ;;
17747  *)
17748  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17749for as_dir in $PATH
17750do
17751  IFS=$as_save_IFS
17752  test -z "$as_dir" && as_dir=.
17753    for ac_exec_ext in '' $ac_executable_extensions; do
17754  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17755    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17756    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17757    break 2
17758  fi
17759done
17760  done
17761IFS=$as_save_IFS
17762
17763  ;;
17764esac
17765fi
17766PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17767if test -n "$PKG_CONFIG"; then
17768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17769$as_echo "$PKG_CONFIG" >&6; }
17770else
17771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17772$as_echo "no" >&6; }
17773fi
17774
17775
17776fi
17777if test -z "$ac_cv_path_PKG_CONFIG"; then
17778  ac_pt_PKG_CONFIG=$PKG_CONFIG
17779  # Extract the first word of "pkg-config", so it can be a program name with args.
17780set dummy pkg-config; ac_word=$2
17781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17782$as_echo_n "checking for $ac_word... " >&6; }
17783if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
17784  $as_echo_n "(cached) " >&6
17785else
17786  case $ac_pt_PKG_CONFIG in
17787  [\\/]* | ?:[\\/]*)
17788  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
17789  ;;
17790  *)
17791  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17792for as_dir in $PATH
17793do
17794  IFS=$as_save_IFS
17795  test -z "$as_dir" && as_dir=.
17796    for ac_exec_ext in '' $ac_executable_extensions; do
17797  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17798    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17799    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17800    break 2
17801  fi
17802done
17803  done
17804IFS=$as_save_IFS
17805
17806  ;;
17807esac
17808fi
17809ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
17810if test -n "$ac_pt_PKG_CONFIG"; then
17811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17812$as_echo "$ac_pt_PKG_CONFIG" >&6; }
17813else
17814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17815$as_echo "no" >&6; }
17816fi
17817
17818  if test "x$ac_pt_PKG_CONFIG" = x; then
17819    PKG_CONFIG=""
17820  else
17821    case $cross_compiling:$ac_tool_warned in
17822yes:)
17823{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17824$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17825ac_tool_warned=yes ;;
17826esac
17827    PKG_CONFIG=$ac_pt_PKG_CONFIG
17828  fi
17829else
17830  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17831fi
17832
17833fi
17834if test -n "$PKG_CONFIG"; then
17835	_pkg_min_version=0.9.0
17836	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17837$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17838	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17839		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17840$as_echo "yes" >&6; }
17841	else
17842		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17843$as_echo "no" >&6; }
17844		PKG_CONFIG=""
17845	fi
17846fi
17847
17848pkg_failed=no
17849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL" >&5
17850$as_echo_n "checking for SDL... " >&6; }
17851
17852if test -n "$SDL_CFLAGS"; then
17853    pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
17854 elif test -n "$PKG_CONFIG"; then
17855    if test -n "$PKG_CONFIG" && \
17856    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl >= 1.2.0\""; } >&5
17857  ($PKG_CONFIG --exists --print-errors "sdl >= 1.2.0") 2>&5
17858  ac_status=$?
17859  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17860  test $ac_status = 0; }; then
17861  pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl >= 1.2.0" 2>/dev/null`
17862else
17863  pkg_failed=yes
17864fi
17865 else
17866    pkg_failed=untried
17867fi
17868if test -n "$SDL_LIBS"; then
17869    pkg_cv_SDL_LIBS="$SDL_LIBS"
17870 elif test -n "$PKG_CONFIG"; then
17871    if test -n "$PKG_CONFIG" && \
17872    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl >= 1.2.0\""; } >&5
17873  ($PKG_CONFIG --exists --print-errors "sdl >= 1.2.0") 2>&5
17874  ac_status=$?
17875  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17876  test $ac_status = 0; }; then
17877  pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl >= 1.2.0" 2>/dev/null`
17878else
17879  pkg_failed=yes
17880fi
17881 else
17882    pkg_failed=untried
17883fi
17884
17885
17886
17887if test $pkg_failed = yes; then
17888   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17889$as_echo "no" >&6; }
17890
17891if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17892        _pkg_short_errors_supported=yes
17893else
17894        _pkg_short_errors_supported=no
17895fi
17896        if test $_pkg_short_errors_supported = yes; then
17897	        SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl >= 1.2.0" 2>&1`
17898        else
17899	        SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl >= 1.2.0" 2>&1`
17900        fi
17901	# Put the nasty error message in config.log where it belongs
17902	echo "$SDL_PKG_ERRORS" >&5
17903
17904	SDL_VERSION=1.2.0
17905
17906# Check whether --with-sdl-prefix was given.
17907if test "${with_sdl_prefix+set}" = set; then :
17908  withval=$with_sdl_prefix; sdl_prefix="$withval"
17909else
17910  sdl_prefix=""
17911fi
17912
17913
17914# Check whether --with-sdl-exec-prefix was given.
17915if test "${with_sdl_exec_prefix+set}" = set; then :
17916  withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
17917else
17918  sdl_exec_prefix=""
17919fi
17920
17921# Check whether --enable-sdltest was given.
17922if test "${enable_sdltest+set}" = set; then :
17923  enableval=$enable_sdltest;
17924else
17925  enable_sdltest=yes
17926fi
17927
17928
17929  if test x$sdl_exec_prefix != x ; then
17930    sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
17931    if test x${SDL_CONFIG+set} != xset ; then
17932      SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
17933    fi
17934  fi
17935  if test x$sdl_prefix != x ; then
17936    sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
17937    if test x${SDL_CONFIG+set} != xset ; then
17938      SDL_CONFIG=$sdl_prefix/bin/sdl-config
17939    fi
17940  fi
17941
17942  as_save_PATH="$PATH"
17943  if test "x$prefix" != xNONE; then
17944    PATH="$prefix/bin:$prefix/usr/bin:$PATH"
17945  fi
17946  # Extract the first word of "sdl-config", so it can be a program name with args.
17947set dummy sdl-config; ac_word=$2
17948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17949$as_echo_n "checking for $ac_word... " >&6; }
17950if test "${ac_cv_path_SDL_CONFIG+set}" = set; then :
17951  $as_echo_n "(cached) " >&6
17952else
17953  case $SDL_CONFIG in
17954  [\\/]* | ?:[\\/]*)
17955  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
17956  ;;
17957  *)
17958  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17959for as_dir in $PATH
17960do
17961  IFS=$as_save_IFS
17962  test -z "$as_dir" && as_dir=.
17963    for ac_exec_ext in '' $ac_executable_extensions; do
17964  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17965    ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17966    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17967    break 2
17968  fi
17969done
17970  done
17971IFS=$as_save_IFS
17972
17973  test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
17974  ;;
17975esac
17976fi
17977SDL_CONFIG=$ac_cv_path_SDL_CONFIG
17978if test -n "$SDL_CONFIG"; then
17979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
17980$as_echo "$SDL_CONFIG" >&6; }
17981else
17982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17983$as_echo "no" >&6; }
17984fi
17985
17986
17987  PATH="$as_save_PATH"
17988  min_sdl_version=$SDL_VERSION
17989  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
17990$as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
17991  no_sdl=""
17992  if test "$SDL_CONFIG" = "no" ; then
17993    no_sdl=yes
17994  else
17995    SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
17996    SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
17997
17998    sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
17999           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
18000    sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
18001           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
18002    sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
18003           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
18004    if test "x$enable_sdltest" = "xyes" ; then
18005      ac_save_CFLAGS="$CFLAGS"
18006      ac_save_CXXFLAGS="$CXXFLAGS"
18007      ac_save_LIBS="$LIBS"
18008      CFLAGS="$CFLAGS $SDL_CFLAGS"
18009      CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
18010      LIBS="$LIBS $SDL_LIBS"
18011      rm -f conf.sdltest
18012      if test "$cross_compiling" = yes; then :
18013  echo $ac_n "cross compiling; assumed OK... $ac_c"
18014else
18015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18016/* end confdefs.h.  */
18017
18018#include <stdio.h>
18019#include <stdlib.h>
18020#include <string.h>
18021#include "SDL.h"
18022
18023char*
18024my_strdup (char *str)
18025{
18026  char *new_str;
18027
18028  if (str)
18029    {
18030      new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
18031      strcpy (new_str, str);
18032    }
18033  else
18034    new_str = NULL;
18035
18036  return new_str;
18037}
18038
18039int main (int argc, char *argv[])
18040{
18041  int major, minor, micro;
18042  char *tmp_version;
18043
18044  /* This hangs on some systems (?)
18045  system ("touch conf.sdltest");
18046  */
18047  { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
18048
18049  /* HP/UX 9 (%@#!) writes to sscanf strings */
18050  tmp_version = my_strdup("$min_sdl_version");
18051  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
18052     printf("%s, bad version string\n", "$min_sdl_version");
18053     exit(1);
18054   }
18055
18056   if (($sdl_major_version > major) ||
18057      (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
18058      (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
18059    {
18060      return 0;
18061    }
18062  else
18063    {
18064      printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
18065      printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
18066      printf("*** best to upgrade to the required version.\n");
18067      printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
18068      printf("*** to point to the correct copy of sdl-config, and remove the file\n");
18069      printf("*** config.cache before re-running configure\n");
18070      return 1;
18071    }
18072}
18073
18074
18075_ACEOF
18076if ac_fn_c_try_run "$LINENO"; then :
18077
18078else
18079  no_sdl=yes
18080fi
18081rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18082  conftest.$ac_objext conftest.beam conftest.$ac_ext
18083fi
18084
18085       CFLAGS="$ac_save_CFLAGS"
18086       CXXFLAGS="$ac_save_CXXFLAGS"
18087       LIBS="$ac_save_LIBS"
18088     fi
18089  fi
18090  if test "x$no_sdl" = x ; then
18091     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18092$as_echo "yes" >&6; }
18093     :
18094  else
18095     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18096$as_echo "no" >&6; }
18097     if test "$SDL_CONFIG" = "no" ; then
18098       echo "*** The sdl-config script installed by SDL could not be found"
18099       echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
18100       echo "*** your path, or set the SDL_CONFIG environment variable to the"
18101       echo "*** full path to sdl-config."
18102     else
18103       if test -f conf.sdltest ; then
18104        :
18105       else
18106          echo "*** Could not run SDL test program, checking why..."
18107          CFLAGS="$CFLAGS $SDL_CFLAGS"
18108          CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
18109          LIBS="$LIBS $SDL_LIBS"
18110          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18111/* end confdefs.h.  */
18112
18113#include <stdio.h>
18114#include "SDL.h"
18115
18116int main(int argc, char *argv[])
18117{ return 0; }
18118#undef  main
18119#define main K_and_R_C_main
18120
18121int
18122main ()
18123{
18124 return 0;
18125  ;
18126  return 0;
18127}
18128_ACEOF
18129if ac_fn_c_try_link "$LINENO"; then :
18130   echo "*** The test program compiled, but did not run. This usually means"
18131          echo "*** that the run-time linker is not finding SDL or finding the wrong"
18132          echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
18133          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
18134          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
18135          echo "*** is required on your system"
18136	  echo "***"
18137          echo "*** If you have an old version installed, it is best to remove it, although"
18138          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
18139else
18140   echo "*** The test program failed to compile or link. See the file config.log for the"
18141          echo "*** exact error that occured. This usually means SDL was incorrectly installed"
18142          echo "*** or that you have moved SDL since it was installed. In the latter case, you"
18143          echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
18144fi
18145rm -f core conftest.err conftest.$ac_objext \
18146    conftest$ac_exeext conftest.$ac_ext
18147          CFLAGS="$ac_save_CFLAGS"
18148          CXXFLAGS="$ac_save_CXXFLAGS"
18149          LIBS="$ac_save_LIBS"
18150       fi
18151     fi
18152     SDL_CFLAGS=""
18153     SDL_LIBS=""
18154     as_fn_error $? "SDL version $SDL_VERSION not found! http://www.libsdl.org" "$LINENO" 5
18155  fi
18156
18157
18158  rm -f conf.sdltest
18159
18160elif test $pkg_failed = untried; then
18161     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18162$as_echo "no" >&6; }
18163	SDL_VERSION=1.2.0
18164
18165# Check whether --with-sdl-prefix was given.
18166if test "${with_sdl_prefix+set}" = set; then :
18167  withval=$with_sdl_prefix; sdl_prefix="$withval"
18168else
18169  sdl_prefix=""
18170fi
18171
18172
18173# Check whether --with-sdl-exec-prefix was given.
18174if test "${with_sdl_exec_prefix+set}" = set; then :
18175  withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
18176else
18177  sdl_exec_prefix=""
18178fi
18179
18180# Check whether --enable-sdltest was given.
18181if test "${enable_sdltest+set}" = set; then :
18182  enableval=$enable_sdltest;
18183else
18184  enable_sdltest=yes
18185fi
18186
18187
18188  if test x$sdl_exec_prefix != x ; then
18189    sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
18190    if test x${SDL_CONFIG+set} != xset ; then
18191      SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
18192    fi
18193  fi
18194  if test x$sdl_prefix != x ; then
18195    sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
18196    if test x${SDL_CONFIG+set} != xset ; then
18197      SDL_CONFIG=$sdl_prefix/bin/sdl-config
18198    fi
18199  fi
18200
18201  as_save_PATH="$PATH"
18202  if test "x$prefix" != xNONE; then
18203    PATH="$prefix/bin:$prefix/usr/bin:$PATH"
18204  fi
18205  # Extract the first word of "sdl-config", so it can be a program name with args.
18206set dummy sdl-config; ac_word=$2
18207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18208$as_echo_n "checking for $ac_word... " >&6; }
18209if test "${ac_cv_path_SDL_CONFIG+set}" = set; then :
18210  $as_echo_n "(cached) " >&6
18211else
18212  case $SDL_CONFIG in
18213  [\\/]* | ?:[\\/]*)
18214  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
18215  ;;
18216  *)
18217  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18218for as_dir in $PATH
18219do
18220  IFS=$as_save_IFS
18221  test -z "$as_dir" && as_dir=.
18222    for ac_exec_ext in '' $ac_executable_extensions; do
18223  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18224    ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18225    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18226    break 2
18227  fi
18228done
18229  done
18230IFS=$as_save_IFS
18231
18232  test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
18233  ;;
18234esac
18235fi
18236SDL_CONFIG=$ac_cv_path_SDL_CONFIG
18237if test -n "$SDL_CONFIG"; then
18238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
18239$as_echo "$SDL_CONFIG" >&6; }
18240else
18241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18242$as_echo "no" >&6; }
18243fi
18244
18245
18246  PATH="$as_save_PATH"
18247  min_sdl_version=$SDL_VERSION
18248  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
18249$as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
18250  no_sdl=""
18251  if test "$SDL_CONFIG" = "no" ; then
18252    no_sdl=yes
18253  else
18254    SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
18255    SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
18256
18257    sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
18258           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
18259    sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
18260           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
18261    sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
18262           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
18263    if test "x$enable_sdltest" = "xyes" ; then
18264      ac_save_CFLAGS="$CFLAGS"
18265      ac_save_CXXFLAGS="$CXXFLAGS"
18266      ac_save_LIBS="$LIBS"
18267      CFLAGS="$CFLAGS $SDL_CFLAGS"
18268      CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
18269      LIBS="$LIBS $SDL_LIBS"
18270      rm -f conf.sdltest
18271      if test "$cross_compiling" = yes; then :
18272  echo $ac_n "cross compiling; assumed OK... $ac_c"
18273else
18274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18275/* end confdefs.h.  */
18276
18277#include <stdio.h>
18278#include <stdlib.h>
18279#include <string.h>
18280#include "SDL.h"
18281
18282char*
18283my_strdup (char *str)
18284{
18285  char *new_str;
18286
18287  if (str)
18288    {
18289      new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
18290      strcpy (new_str, str);
18291    }
18292  else
18293    new_str = NULL;
18294
18295  return new_str;
18296}
18297
18298int main (int argc, char *argv[])
18299{
18300  int major, minor, micro;
18301  char *tmp_version;
18302
18303  /* This hangs on some systems (?)
18304  system ("touch conf.sdltest");
18305  */
18306  { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
18307
18308  /* HP/UX 9 (%@#!) writes to sscanf strings */
18309  tmp_version = my_strdup("$min_sdl_version");
18310  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
18311     printf("%s, bad version string\n", "$min_sdl_version");
18312     exit(1);
18313   }
18314
18315   if (($sdl_major_version > major) ||
18316      (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
18317      (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
18318    {
18319      return 0;
18320    }
18321  else
18322    {
18323      printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
18324      printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
18325      printf("*** best to upgrade to the required version.\n");
18326      printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
18327      printf("*** to point to the correct copy of sdl-config, and remove the file\n");
18328      printf("*** config.cache before re-running configure\n");
18329      return 1;
18330    }
18331}
18332
18333
18334_ACEOF
18335if ac_fn_c_try_run "$LINENO"; then :
18336
18337else
18338  no_sdl=yes
18339fi
18340rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18341  conftest.$ac_objext conftest.beam conftest.$ac_ext
18342fi
18343
18344       CFLAGS="$ac_save_CFLAGS"
18345       CXXFLAGS="$ac_save_CXXFLAGS"
18346       LIBS="$ac_save_LIBS"
18347     fi
18348  fi
18349  if test "x$no_sdl" = x ; then
18350     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18351$as_echo "yes" >&6; }
18352     :
18353  else
18354     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18355$as_echo "no" >&6; }
18356     if test "$SDL_CONFIG" = "no" ; then
18357       echo "*** The sdl-config script installed by SDL could not be found"
18358       echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
18359       echo "*** your path, or set the SDL_CONFIG environment variable to the"
18360       echo "*** full path to sdl-config."
18361     else
18362       if test -f conf.sdltest ; then
18363        :
18364       else
18365          echo "*** Could not run SDL test program, checking why..."
18366          CFLAGS="$CFLAGS $SDL_CFLAGS"
18367          CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
18368          LIBS="$LIBS $SDL_LIBS"
18369          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18370/* end confdefs.h.  */
18371
18372#include <stdio.h>
18373#include "SDL.h"
18374
18375int main(int argc, char *argv[])
18376{ return 0; }
18377#undef  main
18378#define main K_and_R_C_main
18379
18380int
18381main ()
18382{
18383 return 0;
18384  ;
18385  return 0;
18386}
18387_ACEOF
18388if ac_fn_c_try_link "$LINENO"; then :
18389   echo "*** The test program compiled, but did not run. This usually means"
18390          echo "*** that the run-time linker is not finding SDL or finding the wrong"
18391          echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
18392          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
18393          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
18394          echo "*** is required on your system"
18395	  echo "***"
18396          echo "*** If you have an old version installed, it is best to remove it, although"
18397          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
18398else
18399   echo "*** The test program failed to compile or link. See the file config.log for the"
18400          echo "*** exact error that occured. This usually means SDL was incorrectly installed"
18401          echo "*** or that you have moved SDL since it was installed. In the latter case, you"
18402          echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
18403fi
18404rm -f core conftest.err conftest.$ac_objext \
18405    conftest$ac_exeext conftest.$ac_ext
18406          CFLAGS="$ac_save_CFLAGS"
18407          CXXFLAGS="$ac_save_CXXFLAGS"
18408          LIBS="$ac_save_LIBS"
18409       fi
18410     fi
18411     SDL_CFLAGS=""
18412     SDL_LIBS=""
18413     as_fn_error $? "SDL version $SDL_VERSION not found! http://www.libsdl.org" "$LINENO" 5
18414  fi
18415
18416
18417  rm -f conf.sdltest
18418
18419else
18420	SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
18421	SDL_LIBS=$pkg_cv_SDL_LIBS
18422        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18423$as_echo "yes" >&6; }
18424
18425fi
18426
18427CFLAGS="$CFLAGS $SDL_CFLAGS"
18428LIBS="$LIBS $SDL_LIBS"
18429DEP_PKGS="$DEP_PKGS sdl >= 1.2.0"
18430
18431
18432
18433
18434
18435pkg_failed=no
18436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_IMAGE" >&5
18437$as_echo_n "checking for SDL_IMAGE... " >&6; }
18438
18439if test -n "$SDL_IMAGE_CFLAGS"; then
18440    pkg_cv_SDL_IMAGE_CFLAGS="$SDL_IMAGE_CFLAGS"
18441 elif test -n "$PKG_CONFIG"; then
18442    if test -n "$PKG_CONFIG" && \
18443    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL_image\""; } >&5
18444  ($PKG_CONFIG --exists --print-errors "SDL_image") 2>&5
18445  ac_status=$?
18446  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18447  test $ac_status = 0; }; then
18448  pkg_cv_SDL_IMAGE_CFLAGS=`$PKG_CONFIG --cflags "SDL_image" 2>/dev/null`
18449else
18450  pkg_failed=yes
18451fi
18452 else
18453    pkg_failed=untried
18454fi
18455if test -n "$SDL_IMAGE_LIBS"; then
18456    pkg_cv_SDL_IMAGE_LIBS="$SDL_IMAGE_LIBS"
18457 elif test -n "$PKG_CONFIG"; then
18458    if test -n "$PKG_CONFIG" && \
18459    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL_image\""; } >&5
18460  ($PKG_CONFIG --exists --print-errors "SDL_image") 2>&5
18461  ac_status=$?
18462  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18463  test $ac_status = 0; }; then
18464  pkg_cv_SDL_IMAGE_LIBS=`$PKG_CONFIG --libs "SDL_image" 2>/dev/null`
18465else
18466  pkg_failed=yes
18467fi
18468 else
18469    pkg_failed=untried
18470fi
18471
18472
18473
18474if test $pkg_failed = yes; then
18475   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18476$as_echo "no" >&6; }
18477
18478if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18479        _pkg_short_errors_supported=yes
18480else
18481        _pkg_short_errors_supported=no
18482fi
18483        if test $_pkg_short_errors_supported = yes; then
18484	        SDL_IMAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "SDL_image" 2>&1`
18485        else
18486	        SDL_IMAGE_PKG_ERRORS=`$PKG_CONFIG --print-errors "SDL_image" 2>&1`
18487        fi
18488	# Put the nasty error message in config.log where it belongs
18489	echo "$SDL_IMAGE_PKG_ERRORS" >&5
18490
18491	{ $as_echo "$as_me:${as_lineno-$LINENO}: SDL_image not located by pkg-config, checking with AC CHECK LIB:" >&5
18492$as_echo "$as_me: SDL_image not located by pkg-config, checking with AC CHECK LIB:" >&6;}
18493	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMG_Load in -lSDL_image" >&5
18494$as_echo_n "checking for IMG_Load in -lSDL_image... " >&6; }
18495if test "${ac_cv_lib_SDL_image_IMG_Load+set}" = set; then :
18496  $as_echo_n "(cached) " >&6
18497else
18498  ac_check_lib_save_LIBS=$LIBS
18499LIBS="-lSDL_image  $LIBS"
18500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18501/* end confdefs.h.  */
18502
18503/* Override any GCC internal prototype to avoid an error.
18504   Use char because int might match the return type of a GCC
18505   builtin and then its argument prototype would still apply.  */
18506#ifdef __cplusplus
18507extern "C"
18508#endif
18509char IMG_Load ();
18510int
18511main ()
18512{
18513return IMG_Load ();
18514  ;
18515  return 0;
18516}
18517_ACEOF
18518if ac_fn_c_try_link "$LINENO"; then :
18519  ac_cv_lib_SDL_image_IMG_Load=yes
18520else
18521  ac_cv_lib_SDL_image_IMG_Load=no
18522fi
18523rm -f core conftest.err conftest.$ac_objext \
18524    conftest$ac_exeext conftest.$ac_ext
18525LIBS=$ac_check_lib_save_LIBS
18526fi
18527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_image_IMG_Load" >&5
18528$as_echo "$ac_cv_lib_SDL_image_IMG_Load" >&6; }
18529if test "x$ac_cv_lib_SDL_image_IMG_Load" = x""yes; then :
18530  cat >>confdefs.h <<_ACEOF
18531#define HAVE_LIBSDL_IMAGE 1
18532_ACEOF
18533
18534  LIBS="-lSDL_image $LIBS"
18535
18536else
18537  as_fn_error $? "SDL_image not found! http://www.libsdl.org/projects/SDL_image" "$LINENO" 5
18538fi
18539
18540elif test $pkg_failed = untried; then
18541     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18542$as_echo "no" >&6; }
18543	{ $as_echo "$as_me:${as_lineno-$LINENO}: SDL_image not located by pkg-config, checking with AC CHECK LIB:" >&5
18544$as_echo "$as_me: SDL_image not located by pkg-config, checking with AC CHECK LIB:" >&6;}
18545	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMG_Load in -lSDL_image" >&5
18546$as_echo_n "checking for IMG_Load in -lSDL_image... " >&6; }
18547if test "${ac_cv_lib_SDL_image_IMG_Load+set}" = set; then :
18548  $as_echo_n "(cached) " >&6
18549else
18550  ac_check_lib_save_LIBS=$LIBS
18551LIBS="-lSDL_image  $LIBS"
18552cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18553/* end confdefs.h.  */
18554
18555/* Override any GCC internal prototype to avoid an error.
18556   Use char because int might match the return type of a GCC
18557   builtin and then its argument prototype would still apply.  */
18558#ifdef __cplusplus
18559extern "C"
18560#endif
18561char IMG_Load ();
18562int
18563main ()
18564{
18565return IMG_Load ();
18566  ;
18567  return 0;
18568}
18569_ACEOF
18570if ac_fn_c_try_link "$LINENO"; then :
18571  ac_cv_lib_SDL_image_IMG_Load=yes
18572else
18573  ac_cv_lib_SDL_image_IMG_Load=no
18574fi
18575rm -f core conftest.err conftest.$ac_objext \
18576    conftest$ac_exeext conftest.$ac_ext
18577LIBS=$ac_check_lib_save_LIBS
18578fi
18579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_image_IMG_Load" >&5
18580$as_echo "$ac_cv_lib_SDL_image_IMG_Load" >&6; }
18581if test "x$ac_cv_lib_SDL_image_IMG_Load" = x""yes; then :
18582  cat >>confdefs.h <<_ACEOF
18583#define HAVE_LIBSDL_IMAGE 1
18584_ACEOF
18585
18586  LIBS="-lSDL_image $LIBS"
18587
18588else
18589  as_fn_error $? "SDL_image not found! http://www.libsdl.org/projects/SDL_image" "$LINENO" 5
18590fi
18591
18592else
18593	SDL_IMAGE_CFLAGS=$pkg_cv_SDL_IMAGE_CFLAGS
18594	SDL_IMAGE_LIBS=$pkg_cv_SDL_IMAGE_LIBS
18595        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18596$as_echo "yes" >&6; }
18597
18598fi
18599
18600
18601$as_echo "#define HAVE_LIBSDL_IMAGE 1" >>confdefs.h
18602
18603CFLAGS="$CFLAGS $SDL_IMAGE"
18604LIBS="$LIBS $SDL_IMAGE_LIBS"
18605DEP_PKGS="$DEP_PKGS SDL_image"
18606
18607
18608
18609pkg_failed=no
18610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_MIXER" >&5
18611$as_echo_n "checking for SDL_MIXER... " >&6; }
18612
18613if test -n "$SDL_MIXER_CFLAGS"; then
18614    pkg_cv_SDL_MIXER_CFLAGS="$SDL_MIXER_CFLAGS"
18615 elif test -n "$PKG_CONFIG"; then
18616    if test -n "$PKG_CONFIG" && \
18617    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL_mixer\""; } >&5
18618  ($PKG_CONFIG --exists --print-errors "SDL_mixer") 2>&5
18619  ac_status=$?
18620  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18621  test $ac_status = 0; }; then
18622  pkg_cv_SDL_MIXER_CFLAGS=`$PKG_CONFIG --cflags "SDL_mixer" 2>/dev/null`
18623else
18624  pkg_failed=yes
18625fi
18626 else
18627    pkg_failed=untried
18628fi
18629if test -n "$SDL_MIXER_LIBS"; then
18630    pkg_cv_SDL_MIXER_LIBS="$SDL_MIXER_LIBS"
18631 elif test -n "$PKG_CONFIG"; then
18632    if test -n "$PKG_CONFIG" && \
18633    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL_mixer\""; } >&5
18634  ($PKG_CONFIG --exists --print-errors "SDL_mixer") 2>&5
18635  ac_status=$?
18636  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18637  test $ac_status = 0; }; then
18638  pkg_cv_SDL_MIXER_LIBS=`$PKG_CONFIG --libs "SDL_mixer" 2>/dev/null`
18639else
18640  pkg_failed=yes
18641fi
18642 else
18643    pkg_failed=untried
18644fi
18645
18646
18647
18648if test $pkg_failed = yes; then
18649   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18650$as_echo "no" >&6; }
18651
18652if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18653        _pkg_short_errors_supported=yes
18654else
18655        _pkg_short_errors_supported=no
18656fi
18657        if test $_pkg_short_errors_supported = yes; then
18658	        SDL_MIXER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "SDL_mixer" 2>&1`
18659        else
18660	        SDL_MIXER_PKG_ERRORS=`$PKG_CONFIG --print-errors "SDL_mixer" 2>&1`
18661        fi
18662	# Put the nasty error message in config.log where it belongs
18663	echo "$SDL_MIXER_PKG_ERRORS" >&5
18664
18665	{ $as_echo "$as_me:${as_lineno-$LINENO}: SDL_mixer not located by pkg-config, checking with AC CHECK LIB:" >&5
18666$as_echo "$as_me: SDL_mixer not located by pkg-config, checking with AC CHECK LIB:" >&6;}
18667	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mix_OpenAudio in -lSDL_mixer" >&5
18668$as_echo_n "checking for Mix_OpenAudio in -lSDL_mixer... " >&6; }
18669if test "${ac_cv_lib_SDL_mixer_Mix_OpenAudio+set}" = set; then :
18670  $as_echo_n "(cached) " >&6
18671else
18672  ac_check_lib_save_LIBS=$LIBS
18673LIBS="-lSDL_mixer  $LIBS"
18674cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18675/* end confdefs.h.  */
18676
18677/* Override any GCC internal prototype to avoid an error.
18678   Use char because int might match the return type of a GCC
18679   builtin and then its argument prototype would still apply.  */
18680#ifdef __cplusplus
18681extern "C"
18682#endif
18683char Mix_OpenAudio ();
18684int
18685main ()
18686{
18687return Mix_OpenAudio ();
18688  ;
18689  return 0;
18690}
18691_ACEOF
18692if ac_fn_c_try_link "$LINENO"; then :
18693  ac_cv_lib_SDL_mixer_Mix_OpenAudio=yes
18694else
18695  ac_cv_lib_SDL_mixer_Mix_OpenAudio=no
18696fi
18697rm -f core conftest.err conftest.$ac_objext \
18698    conftest$ac_exeext conftest.$ac_ext
18699LIBS=$ac_check_lib_save_LIBS
18700fi
18701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&5
18702$as_echo "$ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&6; }
18703if test "x$ac_cv_lib_SDL_mixer_Mix_OpenAudio" = x""yes; then :
18704  cat >>confdefs.h <<_ACEOF
18705#define HAVE_LIBSDL_MIXER 1
18706_ACEOF
18707
18708  LIBS="-lSDL_mixer $LIBS"
18709
18710else
18711  as_fn_error $? "SDL_mixer not found! http://www.libsdl.org/projects/SDL_mixer" "$LINENO" 5
18712fi
18713
18714elif test $pkg_failed = untried; then
18715     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18716$as_echo "no" >&6; }
18717	{ $as_echo "$as_me:${as_lineno-$LINENO}: SDL_mixer not located by pkg-config, checking with AC CHECK LIB:" >&5
18718$as_echo "$as_me: SDL_mixer not located by pkg-config, checking with AC CHECK LIB:" >&6;}
18719	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mix_OpenAudio in -lSDL_mixer" >&5
18720$as_echo_n "checking for Mix_OpenAudio in -lSDL_mixer... " >&6; }
18721if test "${ac_cv_lib_SDL_mixer_Mix_OpenAudio+set}" = set; then :
18722  $as_echo_n "(cached) " >&6
18723else
18724  ac_check_lib_save_LIBS=$LIBS
18725LIBS="-lSDL_mixer  $LIBS"
18726cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18727/* end confdefs.h.  */
18728
18729/* Override any GCC internal prototype to avoid an error.
18730   Use char because int might match the return type of a GCC
18731   builtin and then its argument prototype would still apply.  */
18732#ifdef __cplusplus
18733extern "C"
18734#endif
18735char Mix_OpenAudio ();
18736int
18737main ()
18738{
18739return Mix_OpenAudio ();
18740  ;
18741  return 0;
18742}
18743_ACEOF
18744if ac_fn_c_try_link "$LINENO"; then :
18745  ac_cv_lib_SDL_mixer_Mix_OpenAudio=yes
18746else
18747  ac_cv_lib_SDL_mixer_Mix_OpenAudio=no
18748fi
18749rm -f core conftest.err conftest.$ac_objext \
18750    conftest$ac_exeext conftest.$ac_ext
18751LIBS=$ac_check_lib_save_LIBS
18752fi
18753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&5
18754$as_echo "$ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&6; }
18755if test "x$ac_cv_lib_SDL_mixer_Mix_OpenAudio" = x""yes; then :
18756  cat >>confdefs.h <<_ACEOF
18757#define HAVE_LIBSDL_MIXER 1
18758_ACEOF
18759
18760  LIBS="-lSDL_mixer $LIBS"
18761
18762else
18763  as_fn_error $? "SDL_mixer not found! http://www.libsdl.org/projects/SDL_mixer" "$LINENO" 5
18764fi
18765
18766else
18767	SDL_MIXER_CFLAGS=$pkg_cv_SDL_MIXER_CFLAGS
18768	SDL_MIXER_LIBS=$pkg_cv_SDL_MIXER_LIBS
18769        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18770$as_echo "yes" >&6; }
18771
18772fi
18773
18774
18775$as_echo "#define HAVE_LIBSDL_MIXER 1" >>confdefs.h
18776
18777CFLAGS="$CFLAGS $SDL_MIXER_CFLAGS"
18778LIBS="$LIBS $SDL_MIXER_LIBS"
18779DEP_LIBS="$DEP_LIBS -lSDL_mixer"
18780
18781
18782
18783
18784
18785# Check whether --with-sdlpango was given.
18786if test "${with_sdlpango+set}" = set; then :
18787  withval=$with_sdlpango;
18788else
18789  with_sdlpango=yes
18790fi
18791
18792
18793
18794if test "x$with_sdlpango" != xno; then
18795
18796
18797pkg_failed=no
18798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_PANGO" >&5
18799$as_echo_n "checking for SDL_PANGO... " >&6; }
18800
18801if test -n "$SDL_PANGO_CFLAGS"; then
18802    pkg_cv_SDL_PANGO_CFLAGS="$SDL_PANGO_CFLAGS"
18803 elif test -n "$PKG_CONFIG"; then
18804    if test -n "$PKG_CONFIG" && \
18805    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL_Pango\""; } >&5
18806  ($PKG_CONFIG --exists --print-errors "SDL_Pango") 2>&5
18807  ac_status=$?
18808  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18809  test $ac_status = 0; }; then
18810  pkg_cv_SDL_PANGO_CFLAGS=`$PKG_CONFIG --cflags "SDL_Pango" 2>/dev/null`
18811else
18812  pkg_failed=yes
18813fi
18814 else
18815    pkg_failed=untried
18816fi
18817if test -n "$SDL_PANGO_LIBS"; then
18818    pkg_cv_SDL_PANGO_LIBS="$SDL_PANGO_LIBS"
18819 elif test -n "$PKG_CONFIG"; then
18820    if test -n "$PKG_CONFIG" && \
18821    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL_Pango\""; } >&5
18822  ($PKG_CONFIG --exists --print-errors "SDL_Pango") 2>&5
18823  ac_status=$?
18824  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18825  test $ac_status = 0; }; then
18826  pkg_cv_SDL_PANGO_LIBS=`$PKG_CONFIG --libs "SDL_Pango" 2>/dev/null`
18827else
18828  pkg_failed=yes
18829fi
18830 else
18831    pkg_failed=untried
18832fi
18833
18834
18835
18836if test $pkg_failed = yes; then
18837   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18838$as_echo "no" >&6; }
18839
18840if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18841        _pkg_short_errors_supported=yes
18842else
18843        _pkg_short_errors_supported=no
18844fi
18845        if test $_pkg_short_errors_supported = yes; then
18846	        SDL_PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "SDL_Pango" 2>&1`
18847        else
18848	        SDL_PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "SDL_Pango" 2>&1`
18849        fi
18850	# Put the nasty error message in config.log where it belongs
18851	echo "$SDL_PANGO_PKG_ERRORS" >&5
18852
18853	{ $as_echo "$as_me:${as_lineno-$LINENO}: SDL_Pango not located by pkg-config, checking with AC CHECK LIB:" >&5
18854$as_echo "$as_me: SDL_Pango not located by pkg-config, checking with AC CHECK LIB:" >&6;}
18855	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDLPango_Init in -lSDL_Pango" >&5
18856$as_echo_n "checking for SDLPango_Init in -lSDL_Pango... " >&6; }
18857if test "${ac_cv_lib_SDL_Pango_SDLPango_Init+set}" = set; then :
18858  $as_echo_n "(cached) " >&6
18859else
18860  ac_check_lib_save_LIBS=$LIBS
18861LIBS="-lSDL_Pango  $LIBS"
18862cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18863/* end confdefs.h.  */
18864
18865/* Override any GCC internal prototype to avoid an error.
18866   Use char because int might match the return type of a GCC
18867   builtin and then its argument prototype would still apply.  */
18868#ifdef __cplusplus
18869extern "C"
18870#endif
18871char SDLPango_Init ();
18872int
18873main ()
18874{
18875return SDLPango_Init ();
18876  ;
18877  return 0;
18878}
18879_ACEOF
18880if ac_fn_c_try_link "$LINENO"; then :
18881  ac_cv_lib_SDL_Pango_SDLPango_Init=yes
18882else
18883  ac_cv_lib_SDL_Pango_SDLPango_Init=no
18884fi
18885rm -f core conftest.err conftest.$ac_objext \
18886    conftest$ac_exeext conftest.$ac_ext
18887LIBS=$ac_check_lib_save_LIBS
18888fi
18889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_Pango_SDLPango_Init" >&5
18890$as_echo "$ac_cv_lib_SDL_Pango_SDLPango_Init" >&6; }
18891if test "x$ac_cv_lib_SDL_Pango_SDLPango_Init" = x""yes; then :
18892  cat >>confdefs.h <<_ACEOF
18893#define HAVE_LIBSDL_PANGO 1
18894_ACEOF
18895
18896  LIBS="-lSDL_Pango $LIBS"
18897
18898else
18899  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18900$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18901as_fn_error $? "SDL_Pango test failed (--without-sdlpango to disable)
18902See \`config.log' for more details" "$LINENO" 5 ; }
18903fi
18904
18905elif test $pkg_failed = untried; then
18906     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18907$as_echo "no" >&6; }
18908	{ $as_echo "$as_me:${as_lineno-$LINENO}: SDL_Pango not located by pkg-config, checking with AC CHECK LIB:" >&5
18909$as_echo "$as_me: SDL_Pango not located by pkg-config, checking with AC CHECK LIB:" >&6;}
18910	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDLPango_Init in -lSDL_Pango" >&5
18911$as_echo_n "checking for SDLPango_Init in -lSDL_Pango... " >&6; }
18912if test "${ac_cv_lib_SDL_Pango_SDLPango_Init+set}" = set; then :
18913  $as_echo_n "(cached) " >&6
18914else
18915  ac_check_lib_save_LIBS=$LIBS
18916LIBS="-lSDL_Pango  $LIBS"
18917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18918/* end confdefs.h.  */
18919
18920/* Override any GCC internal prototype to avoid an error.
18921   Use char because int might match the return type of a GCC
18922   builtin and then its argument prototype would still apply.  */
18923#ifdef __cplusplus
18924extern "C"
18925#endif
18926char SDLPango_Init ();
18927int
18928main ()
18929{
18930return SDLPango_Init ();
18931  ;
18932  return 0;
18933}
18934_ACEOF
18935if ac_fn_c_try_link "$LINENO"; then :
18936  ac_cv_lib_SDL_Pango_SDLPango_Init=yes
18937else
18938  ac_cv_lib_SDL_Pango_SDLPango_Init=no
18939fi
18940rm -f core conftest.err conftest.$ac_objext \
18941    conftest$ac_exeext conftest.$ac_ext
18942LIBS=$ac_check_lib_save_LIBS
18943fi
18944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_Pango_SDLPango_Init" >&5
18945$as_echo "$ac_cv_lib_SDL_Pango_SDLPango_Init" >&6; }
18946if test "x$ac_cv_lib_SDL_Pango_SDLPango_Init" = x""yes; then :
18947  cat >>confdefs.h <<_ACEOF
18948#define HAVE_LIBSDL_PANGO 1
18949_ACEOF
18950
18951  LIBS="-lSDL_Pango $LIBS"
18952
18953else
18954  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18955$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18956as_fn_error $? "SDL_Pango test failed (--without-sdlpango to disable)
18957See \`config.log' for more details" "$LINENO" 5 ; }
18958fi
18959
18960else
18961	SDL_PANGO_CFLAGS=$pkg_cv_SDL_PANGO_CFLAGS
18962	SDL_PANGO_LIBS=$pkg_cv_SDL_PANGO_LIBS
18963        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18964$as_echo "yes" >&6; }
18965
18966fi
18967
18968
18969$as_echo "#define HAVE_LIBSDL_PANGO 1" >>confdefs.h
18970
18971CFLAGS="$CFLAGS $SDL_PANGO_CFLAGS"
18972LIBS="$LIBS $SDL_PANGO_LIBS"
18973DEP_PKGS="$DEP_PKGS SDL_Pango"
18974
18975fi
18976
18977
18978
18979
18980if test "x$with_sdlpango" = xno; then
18981LIBS="-lfreetype $LIBS"
18982
18983
18984pkg_failed=no
18985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_ttf" >&5
18986$as_echo_n "checking for SDL_ttf... " >&6; }
18987
18988if test -n "$SDL_ttf_CFLAGS"; then
18989    pkg_cv_SDL_ttf_CFLAGS="$SDL_ttf_CFLAGS"
18990 elif test -n "$PKG_CONFIG"; then
18991    if test -n "$PKG_CONFIG" && \
18992    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL_ttf\""; } >&5
18993  ($PKG_CONFIG --exists --print-errors "SDL_ttf") 2>&5
18994  ac_status=$?
18995  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18996  test $ac_status = 0; }; then
18997  pkg_cv_SDL_ttf_CFLAGS=`$PKG_CONFIG --cflags "SDL_ttf" 2>/dev/null`
18998else
18999  pkg_failed=yes
19000fi
19001 else
19002    pkg_failed=untried
19003fi
19004if test -n "$SDL_ttf_LIBS"; then
19005    pkg_cv_SDL_ttf_LIBS="$SDL_ttf_LIBS"
19006 elif test -n "$PKG_CONFIG"; then
19007    if test -n "$PKG_CONFIG" && \
19008    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL_ttf\""; } >&5
19009  ($PKG_CONFIG --exists --print-errors "SDL_ttf") 2>&5
19010  ac_status=$?
19011  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19012  test $ac_status = 0; }; then
19013  pkg_cv_SDL_ttf_LIBS=`$PKG_CONFIG --libs "SDL_ttf" 2>/dev/null`
19014else
19015  pkg_failed=yes
19016fi
19017 else
19018    pkg_failed=untried
19019fi
19020
19021
19022
19023if test $pkg_failed = yes; then
19024   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19025$as_echo "no" >&6; }
19026
19027if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19028        _pkg_short_errors_supported=yes
19029else
19030        _pkg_short_errors_supported=no
19031fi
19032        if test $_pkg_short_errors_supported = yes; then
19033	        SDL_ttf_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "SDL_ttf" 2>&1`
19034        else
19035	        SDL_ttf_PKG_ERRORS=`$PKG_CONFIG --print-errors "SDL_ttf" 2>&1`
19036        fi
19037	# Put the nasty error message in config.log where it belongs
19038	echo "$SDL_ttf_PKG_ERRORS" >&5
19039
19040	{ $as_echo "$as_me:${as_lineno-$LINENO}: SDL_ttf not located by pkg-config, checking with AC CHECK LIB:" >&5
19041$as_echo "$as_me: SDL_ttf not located by pkg-config, checking with AC CHECK LIB:" >&6;}
19042	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTF_Init in -lSDL_ttf" >&5
19043$as_echo_n "checking for TTF_Init in -lSDL_ttf... " >&6; }
19044if test "${ac_cv_lib_SDL_ttf_TTF_Init+set}" = set; then :
19045  $as_echo_n "(cached) " >&6
19046else
19047  ac_check_lib_save_LIBS=$LIBS
19048LIBS="-lSDL_ttf  $LIBS"
19049cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19050/* end confdefs.h.  */
19051
19052/* Override any GCC internal prototype to avoid an error.
19053   Use char because int might match the return type of a GCC
19054   builtin and then its argument prototype would still apply.  */
19055#ifdef __cplusplus
19056extern "C"
19057#endif
19058char TTF_Init ();
19059int
19060main ()
19061{
19062return TTF_Init ();
19063  ;
19064  return 0;
19065}
19066_ACEOF
19067if ac_fn_c_try_link "$LINENO"; then :
19068  ac_cv_lib_SDL_ttf_TTF_Init=yes
19069else
19070  ac_cv_lib_SDL_ttf_TTF_Init=no
19071fi
19072rm -f core conftest.err conftest.$ac_objext \
19073    conftest$ac_exeext conftest.$ac_ext
19074LIBS=$ac_check_lib_save_LIBS
19075fi
19076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_ttf_TTF_Init" >&5
19077$as_echo "$ac_cv_lib_SDL_ttf_TTF_Init" >&6; }
19078if test "x$ac_cv_lib_SDL_ttf_TTF_Init" = x""yes; then :
19079  cat >>confdefs.h <<_ACEOF
19080#define HAVE_LIBSDL_TTF 1
19081_ACEOF
19082
19083  LIBS="-lSDL_ttf $LIBS"
19084
19085else
19086  as_fn_error $? "SDL_ttf not found! http://www.libsdl.org/projects/SDL_ttf" "$LINENO" 5
19087fi
19088
19089elif test $pkg_failed = untried; then
19090     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19091$as_echo "no" >&6; }
19092	{ $as_echo "$as_me:${as_lineno-$LINENO}: SDL_ttf not located by pkg-config, checking with AC CHECK LIB:" >&5
19093$as_echo "$as_me: SDL_ttf not located by pkg-config, checking with AC CHECK LIB:" >&6;}
19094	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTF_Init in -lSDL_ttf" >&5
19095$as_echo_n "checking for TTF_Init in -lSDL_ttf... " >&6; }
19096if test "${ac_cv_lib_SDL_ttf_TTF_Init+set}" = set; then :
19097  $as_echo_n "(cached) " >&6
19098else
19099  ac_check_lib_save_LIBS=$LIBS
19100LIBS="-lSDL_ttf  $LIBS"
19101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19102/* end confdefs.h.  */
19103
19104/* Override any GCC internal prototype to avoid an error.
19105   Use char because int might match the return type of a GCC
19106   builtin and then its argument prototype would still apply.  */
19107#ifdef __cplusplus
19108extern "C"
19109#endif
19110char TTF_Init ();
19111int
19112main ()
19113{
19114return TTF_Init ();
19115  ;
19116  return 0;
19117}
19118_ACEOF
19119if ac_fn_c_try_link "$LINENO"; then :
19120  ac_cv_lib_SDL_ttf_TTF_Init=yes
19121else
19122  ac_cv_lib_SDL_ttf_TTF_Init=no
19123fi
19124rm -f core conftest.err conftest.$ac_objext \
19125    conftest$ac_exeext conftest.$ac_ext
19126LIBS=$ac_check_lib_save_LIBS
19127fi
19128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_ttf_TTF_Init" >&5
19129$as_echo "$ac_cv_lib_SDL_ttf_TTF_Init" >&6; }
19130if test "x$ac_cv_lib_SDL_ttf_TTF_Init" = x""yes; then :
19131  cat >>confdefs.h <<_ACEOF
19132#define HAVE_LIBSDL_TTF 1
19133_ACEOF
19134
19135  LIBS="-lSDL_ttf $LIBS"
19136
19137else
19138  as_fn_error $? "SDL_ttf not found! http://www.libsdl.org/projects/SDL_ttf" "$LINENO" 5
19139fi
19140
19141else
19142	SDL_ttf_CFLAGS=$pkg_cv_SDL_ttf_CFLAGS
19143	SDL_ttf_LIBS=$pkg_cv_SDL_ttf_LIBS
19144        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19145$as_echo "yes" >&6; }
19146
19147fi
19148
19149
19150$as_echo "#define HAVE_LIBSDL_TTF 1" >>confdefs.h
19151
19152CFLAGS="$CFLAGS $SDL_TTF_CFLAGS"
19153LIBS="$LIBS $SDL_TTF_LIBS"
19154DEP_LIBS="$DEP_LIBS -lSDL_ttf"
19155fi
19156
19157
19158
19159
19160
19161
19162# Check whether --with-sdlnet was given.
19163if test "${with_sdlnet+set}" = set; then :
19164  withval=$with_sdlnet;
19165else
19166  with_sdlnet=yes
19167
19168fi
19169
19170
19171if test "x$with_sdlnet" != xno; then
19172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WSAStartup in -lws2_32" >&5
19173$as_echo_n "checking for WSAStartup in -lws2_32... " >&6; }
19174if test "${ac_cv_lib_ws2_32_WSAStartup+set}" = set; then :
19175  $as_echo_n "(cached) " >&6
19176else
19177  ac_check_lib_save_LIBS=$LIBS
19178LIBS="-lws2_32  $LIBS"
19179cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19180/* end confdefs.h.  */
19181
19182/* Override any GCC internal prototype to avoid an error.
19183   Use char because int might match the return type of a GCC
19184   builtin and then its argument prototype would still apply.  */
19185#ifdef __cplusplus
19186extern "C"
19187#endif
19188char WSAStartup ();
19189int
19190main ()
19191{
19192return WSAStartup ();
19193  ;
19194  return 0;
19195}
19196_ACEOF
19197if ac_fn_c_try_link "$LINENO"; then :
19198  ac_cv_lib_ws2_32_WSAStartup=yes
19199else
19200  ac_cv_lib_ws2_32_WSAStartup=no
19201fi
19202rm -f core conftest.err conftest.$ac_objext \
19203    conftest$ac_exeext conftest.$ac_ext
19204LIBS=$ac_check_lib_save_LIBS
19205fi
19206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_WSAStartup" >&5
19207$as_echo "$ac_cv_lib_ws2_32_WSAStartup" >&6; }
19208if test "x$ac_cv_lib_ws2_32_WSAStartup" = x""yes; then :
19209
19210else
19211  { $as_echo "$as_me:${as_lineno-$LINENO}: Windows socket library ws2_32 not found - (only needed on win32)" >&5
19212$as_echo "$as_me: Windows socket library ws2_32 not found - (only needed on win32)" >&6;}
19213fi
19214
19215
19216
19217
19218pkg_failed=no
19219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_NET" >&5
19220$as_echo_n "checking for SDL_NET... " >&6; }
19221
19222if test -n "$SDL_NET_CFLAGS"; then
19223    pkg_cv_SDL_NET_CFLAGS="$SDL_NET_CFLAGS"
19224 elif test -n "$PKG_CONFIG"; then
19225    if test -n "$PKG_CONFIG" && \
19226    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL_net\""; } >&5
19227  ($PKG_CONFIG --exists --print-errors "SDL_net") 2>&5
19228  ac_status=$?
19229  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19230  test $ac_status = 0; }; then
19231  pkg_cv_SDL_NET_CFLAGS=`$PKG_CONFIG --cflags "SDL_net" 2>/dev/null`
19232else
19233  pkg_failed=yes
19234fi
19235 else
19236    pkg_failed=untried
19237fi
19238if test -n "$SDL_NET_LIBS"; then
19239    pkg_cv_SDL_NET_LIBS="$SDL_NET_LIBS"
19240 elif test -n "$PKG_CONFIG"; then
19241    if test -n "$PKG_CONFIG" && \
19242    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL_net\""; } >&5
19243  ($PKG_CONFIG --exists --print-errors "SDL_net") 2>&5
19244  ac_status=$?
19245  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19246  test $ac_status = 0; }; then
19247  pkg_cv_SDL_NET_LIBS=`$PKG_CONFIG --libs "SDL_net" 2>/dev/null`
19248else
19249  pkg_failed=yes
19250fi
19251 else
19252    pkg_failed=untried
19253fi
19254
19255
19256
19257if test $pkg_failed = yes; then
19258   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19259$as_echo "no" >&6; }
19260
19261if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19262        _pkg_short_errors_supported=yes
19263else
19264        _pkg_short_errors_supported=no
19265fi
19266        if test $_pkg_short_errors_supported = yes; then
19267	        SDL_NET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "SDL_net" 2>&1`
19268        else
19269	        SDL_NET_PKG_ERRORS=`$PKG_CONFIG --print-errors "SDL_net" 2>&1`
19270        fi
19271	# Put the nasty error message in config.log where it belongs
19272	echo "$SDL_NET_PKG_ERRORS" >&5
19273
19274	{ $as_echo "$as_me:${as_lineno-$LINENO}: SDL_net not located by pkg-config, checking with AC CHECK LIB:" >&5
19275$as_echo "$as_me: SDL_net not located by pkg-config, checking with AC CHECK LIB:" >&6;}
19276	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDLNet_Init in -lSDL_net" >&5
19277$as_echo_n "checking for SDLNet_Init in -lSDL_net... " >&6; }
19278if test "${ac_cv_lib_SDL_net_SDLNet_Init+set}" = set; then :
19279  $as_echo_n "(cached) " >&6
19280else
19281  ac_check_lib_save_LIBS=$LIBS
19282LIBS="-lSDL_net  $LIBS"
19283cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19284/* end confdefs.h.  */
19285
19286/* Override any GCC internal prototype to avoid an error.
19287   Use char because int might match the return type of a GCC
19288   builtin and then its argument prototype would still apply.  */
19289#ifdef __cplusplus
19290extern "C"
19291#endif
19292char SDLNet_Init ();
19293int
19294main ()
19295{
19296return SDLNet_Init ();
19297  ;
19298  return 0;
19299}
19300_ACEOF
19301if ac_fn_c_try_link "$LINENO"; then :
19302  ac_cv_lib_SDL_net_SDLNet_Init=yes
19303else
19304  ac_cv_lib_SDL_net_SDLNet_Init=no
19305fi
19306rm -f core conftest.err conftest.$ac_objext \
19307    conftest$ac_exeext conftest.$ac_ext
19308LIBS=$ac_check_lib_save_LIBS
19309fi
19310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_net_SDLNet_Init" >&5
19311$as_echo "$ac_cv_lib_SDL_net_SDLNet_Init" >&6; }
19312if test "x$ac_cv_lib_SDL_net_SDLNet_Init" = x""yes; then :
19313  cat >>confdefs.h <<_ACEOF
19314#define HAVE_LIBSDL_NET 1
19315_ACEOF
19316
19317  LIBS="-lSDL_net $LIBS"
19318
19319else
19320  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19321$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19322as_fn_error $? "SDL_net test failed (--without-sdlnet to disable)
19323See \`config.log' for more details" "$LINENO" 5 ; }
19324fi
19325
19326elif test $pkg_failed = untried; then
19327     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19328$as_echo "no" >&6; }
19329	{ $as_echo "$as_me:${as_lineno-$LINENO}: SDL_net not located by pkg-config, checking with AC CHECK LIB:" >&5
19330$as_echo "$as_me: SDL_net not located by pkg-config, checking with AC CHECK LIB:" >&6;}
19331	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDLNet_Init in -lSDL_net" >&5
19332$as_echo_n "checking for SDLNet_Init in -lSDL_net... " >&6; }
19333if test "${ac_cv_lib_SDL_net_SDLNet_Init+set}" = set; then :
19334  $as_echo_n "(cached) " >&6
19335else
19336  ac_check_lib_save_LIBS=$LIBS
19337LIBS="-lSDL_net  $LIBS"
19338cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19339/* end confdefs.h.  */
19340
19341/* Override any GCC internal prototype to avoid an error.
19342   Use char because int might match the return type of a GCC
19343   builtin and then its argument prototype would still apply.  */
19344#ifdef __cplusplus
19345extern "C"
19346#endif
19347char SDLNet_Init ();
19348int
19349main ()
19350{
19351return SDLNet_Init ();
19352  ;
19353  return 0;
19354}
19355_ACEOF
19356if ac_fn_c_try_link "$LINENO"; then :
19357  ac_cv_lib_SDL_net_SDLNet_Init=yes
19358else
19359  ac_cv_lib_SDL_net_SDLNet_Init=no
19360fi
19361rm -f core conftest.err conftest.$ac_objext \
19362    conftest$ac_exeext conftest.$ac_ext
19363LIBS=$ac_check_lib_save_LIBS
19364fi
19365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_net_SDLNet_Init" >&5
19366$as_echo "$ac_cv_lib_SDL_net_SDLNet_Init" >&6; }
19367if test "x$ac_cv_lib_SDL_net_SDLNet_Init" = x""yes; then :
19368  cat >>confdefs.h <<_ACEOF
19369#define HAVE_LIBSDL_NET 1
19370_ACEOF
19371
19372  LIBS="-lSDL_net $LIBS"
19373
19374else
19375  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19376$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19377as_fn_error $? "SDL_net test failed (--without-sdlnet to disable)
19378See \`config.log' for more details" "$LINENO" 5 ; }
19379fi
19380
19381else
19382	SDL_NET_CFLAGS=$pkg_cv_SDL_NET_CFLAGS
19383	SDL_NET_LIBS=$pkg_cv_SDL_NET_LIBS
19384        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19385$as_echo "yes" >&6; }
19386
19387fi
19388
19389
19390$as_echo "#define HAVE_LIBSDL_NET 1" >>confdefs.h
19391
19392CFLAGS="$CFLAGS $SDL_NET_CFLAGS"
19393LIBS="$LIBS $SDL_NET_LIBS"
19394DEP_LIBS="$DEP_LIBS -lSDL_net"
19395fi
19396
19397
19398
19399
19400
19401# Check whether --with-rsvg was given.
19402if test "${with_rsvg+set}" = set; then :
19403  withval=$with_rsvg; with_rsvg=no
19404else
19405  with_rsvg=yes
19406fi
19407
19408
19409if test "x$with_rsvg" = xyes; then
19410
19411pkg_failed=no
19412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
19413$as_echo_n "checking for RSVG... " >&6; }
19414
19415if test -n "$RSVG_CFLAGS"; then
19416    pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
19417 elif test -n "$PKG_CONFIG"; then
19418    if test -n "$PKG_CONFIG" && \
19419    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.18\""; } >&5
19420  ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.18") 2>&5
19421  ac_status=$?
19422  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19423  test $ac_status = 0; }; then
19424  pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.18" 2>/dev/null`
19425else
19426  pkg_failed=yes
19427fi
19428 else
19429    pkg_failed=untried
19430fi
19431if test -n "$RSVG_LIBS"; then
19432    pkg_cv_RSVG_LIBS="$RSVG_LIBS"
19433 elif test -n "$PKG_CONFIG"; then
19434    if test -n "$PKG_CONFIG" && \
19435    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.18\""; } >&5
19436  ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.18") 2>&5
19437  ac_status=$?
19438  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19439  test $ac_status = 0; }; then
19440  pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.18" 2>/dev/null`
19441else
19442  pkg_failed=yes
19443fi
19444 else
19445    pkg_failed=untried
19446fi
19447
19448
19449
19450if test $pkg_failed = yes; then
19451   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19452$as_echo "no" >&6; }
19453
19454if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19455        _pkg_short_errors_supported=yes
19456else
19457        _pkg_short_errors_supported=no
19458fi
19459        if test $_pkg_short_errors_supported = yes; then
19460	        RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.18" 2>&1`
19461        else
19462	        RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.18" 2>&1`
19463        fi
19464	# Put the nasty error message in config.log where it belongs
19465	echo "$RSVG_PKG_ERRORS" >&5
19466
19467	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19468$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19469as_fn_error $? "libRSVG test failed (--without-rsvg to disable svg support)
19470See \`config.log' for more details" "$LINENO" 5 ; }
19471elif test $pkg_failed = untried; then
19472     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19473$as_echo "no" >&6; }
19474	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19475$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19476as_fn_error $? "libRSVG test failed (--without-rsvg to disable svg support)
19477See \`config.log' for more details" "$LINENO" 5 ; }
19478else
19479	RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
19480	RSVG_LIBS=$pkg_cv_RSVG_LIBS
19481        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19482$as_echo "yes" >&6; }
19483
19484fi
19485
19486CFLAGS="$CFLAGS $RSVG_CFLAGS"
19487LIBS="$LIBS $RSVG_LIBS"
19488DEP_PKGS="$DEP_PKGS librsvg-2.0"
19489fi
19490
19491if test "x$with_rsvg" = xyes; then
19492
19493pkg_failed=no
19494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
19495$as_echo_n "checking for CAIRO... " >&6; }
19496
19497if test -n "$CAIRO_CFLAGS"; then
19498    pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
19499 elif test -n "$PKG_CONFIG"; then
19500    if test -n "$PKG_CONFIG" && \
19501    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.4.10\""; } >&5
19502  ($PKG_CONFIG --exists --print-errors "cairo >= 1.4.10") 2>&5
19503  ac_status=$?
19504  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19505  test $ac_status = 0; }; then
19506  pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.4.10" 2>/dev/null`
19507else
19508  pkg_failed=yes
19509fi
19510 else
19511    pkg_failed=untried
19512fi
19513if test -n "$CAIRO_LIBS"; then
19514    pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
19515 elif test -n "$PKG_CONFIG"; then
19516    if test -n "$PKG_CONFIG" && \
19517    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.4.10\""; } >&5
19518  ($PKG_CONFIG --exists --print-errors "cairo >= 1.4.10") 2>&5
19519  ac_status=$?
19520  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19521  test $ac_status = 0; }; then
19522  pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.4.10" 2>/dev/null`
19523else
19524  pkg_failed=yes
19525fi
19526 else
19527    pkg_failed=untried
19528fi
19529
19530
19531
19532if test $pkg_failed = yes; then
19533   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19534$as_echo "no" >&6; }
19535
19536if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19537        _pkg_short_errors_supported=yes
19538else
19539        _pkg_short_errors_supported=no
19540fi
19541        if test $_pkg_short_errors_supported = yes; then
19542	        CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo >= 1.4.10" 2>&1`
19543        else
19544	        CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo >= 1.4.10" 2>&1`
19545        fi
19546	# Put the nasty error message in config.log where it belongs
19547	echo "$CAIRO_PKG_ERRORS" >&5
19548
19549	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19550$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19551as_fn_error $? "cairo test failed (--without-rsvg to disable svg support)
19552See \`config.log' for more details" "$LINENO" 5 ; }
19553elif test $pkg_failed = untried; then
19554     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19555$as_echo "no" >&6; }
19556	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19557$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19558as_fn_error $? "cairo test failed (--without-rsvg to disable svg support)
19559See \`config.log' for more details" "$LINENO" 5 ; }
19560else
19561	CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
19562	CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
19563        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19564$as_echo "yes" >&6; }
19565
19566fi
19567
19568CFLAGS="$CFLAGS $CAIRO_CFLAGS"
19569LIBS="$LIBS $CAIRO_LIBS"
19570
19571$as_echo "#define HAVE_RSVG 1" >>confdefs.h
19572
19573fi
19574
19575
19576
19577if test "x$with_rsvg" = xyes; then
19578
19579pkg_failed=no
19580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG" >&5
19581$as_echo_n "checking for LIBPNG... " >&6; }
19582
19583if test -n "$LIBPNG_CFLAGS"; then
19584    pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
19585 elif test -n "$PKG_CONFIG"; then
19586    if test -n "$PKG_CONFIG" && \
19587    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.2.37\""; } >&5
19588  ($PKG_CONFIG --exists --print-errors "libpng >= 1.2.37") 2>&5
19589  ac_status=$?
19590  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19591  test $ac_status = 0; }; then
19592  pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng >= 1.2.37" 2>/dev/null`
19593else
19594  pkg_failed=yes
19595fi
19596 else
19597    pkg_failed=untried
19598fi
19599if test -n "$LIBPNG_LIBS"; then
19600    pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
19601 elif test -n "$PKG_CONFIG"; then
19602    if test -n "$PKG_CONFIG" && \
19603    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.2.37\""; } >&5
19604  ($PKG_CONFIG --exists --print-errors "libpng >= 1.2.37") 2>&5
19605  ac_status=$?
19606  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19607  test $ac_status = 0; }; then
19608  pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng >= 1.2.37" 2>/dev/null`
19609else
19610  pkg_failed=yes
19611fi
19612 else
19613    pkg_failed=untried
19614fi
19615
19616
19617
19618if test $pkg_failed = yes; then
19619   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19620$as_echo "no" >&6; }
19621
19622if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19623        _pkg_short_errors_supported=yes
19624else
19625        _pkg_short_errors_supported=no
19626fi
19627        if test $_pkg_short_errors_supported = yes; then
19628	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng >= 1.2.37" 2>&1`
19629        else
19630	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng >= 1.2.37" 2>&1`
19631        fi
19632	# Put the nasty error message in config.log where it belongs
19633	echo "$LIBPNG_PKG_ERRORS" >&5
19634
19635	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19636$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19637as_fn_error $? "libpng test failed (--without-rsvg to disable svg support)
19638See \`config.log' for more details" "$LINENO" 5 ; }
19639elif test $pkg_failed = untried; then
19640     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19641$as_echo "no" >&6; }
19642	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19643$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19644as_fn_error $? "libpng test failed (--without-rsvg to disable svg support)
19645See \`config.log' for more details" "$LINENO" 5 ; }
19646else
19647	LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
19648	LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
19649        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19650$as_echo "yes" >&6; }
19651
19652fi
19653CFLAGS="$CFLAGS $LIBPNG_CFLAGS"
19654LIBS="$LIBS $LIBPNG_LIBS"
19655
19656$as_echo "#define HAVE_LIBPNG 1" >>confdefs.h
19657
19658fi
19659
19660
19661
19662
19663
19664pkg_failed=no
19665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML2" >&5
19666$as_echo_n "checking for XML2... " >&6; }
19667
19668if test -n "$XML2_CFLAGS"; then
19669    pkg_cv_XML2_CFLAGS="$XML2_CFLAGS"
19670 elif test -n "$PKG_CONFIG"; then
19671    if test -n "$PKG_CONFIG" && \
19672    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
19673  ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
19674  ac_status=$?
19675  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19676  test $ac_status = 0; }; then
19677  pkg_cv_XML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
19678else
19679  pkg_failed=yes
19680fi
19681 else
19682    pkg_failed=untried
19683fi
19684if test -n "$XML2_LIBS"; then
19685    pkg_cv_XML2_LIBS="$XML2_LIBS"
19686 elif test -n "$PKG_CONFIG"; then
19687    if test -n "$PKG_CONFIG" && \
19688    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
19689  ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
19690  ac_status=$?
19691  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19692  test $ac_status = 0; }; then
19693  pkg_cv_XML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
19694else
19695  pkg_failed=yes
19696fi
19697 else
19698    pkg_failed=untried
19699fi
19700
19701
19702
19703if test $pkg_failed = yes; then
19704   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19705$as_echo "no" >&6; }
19706
19707if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19708        _pkg_short_errors_supported=yes
19709else
19710        _pkg_short_errors_supported=no
19711fi
19712        if test $_pkg_short_errors_supported = yes; then
19713	        XML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libxml-2.0" 2>&1`
19714        else
19715	        XML2_PKG_ERRORS=`$PKG_CONFIG --print-errors "libxml-2.0" 2>&1`
19716        fi
19717	# Put the nasty error message in config.log where it belongs
19718	echo "$XML2_PKG_ERRORS" >&5
19719
19720	{ $as_echo "$as_me:${as_lineno-$LINENO}: libxml2 not located by pkg-config, checking with AC CHECK LIB:" >&5
19721$as_echo "$as_me: libxml2 not located by pkg-config, checking with AC CHECK LIB:" >&6;}
19722	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseFile in -lxml2" >&5
19723$as_echo_n "checking for xmlParseFile in -lxml2... " >&6; }
19724if test "${ac_cv_lib_xml2_xmlParseFile+set}" = set; then :
19725  $as_echo_n "(cached) " >&6
19726else
19727  ac_check_lib_save_LIBS=$LIBS
19728LIBS="-lxml2  $LIBS"
19729cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19730/* end confdefs.h.  */
19731
19732/* Override any GCC internal prototype to avoid an error.
19733   Use char because int might match the return type of a GCC
19734   builtin and then its argument prototype would still apply.  */
19735#ifdef __cplusplus
19736extern "C"
19737#endif
19738char xmlParseFile ();
19739int
19740main ()
19741{
19742return xmlParseFile ();
19743  ;
19744  return 0;
19745}
19746_ACEOF
19747if ac_fn_c_try_link "$LINENO"; then :
19748  ac_cv_lib_xml2_xmlParseFile=yes
19749else
19750  ac_cv_lib_xml2_xmlParseFile=no
19751fi
19752rm -f core conftest.err conftest.$ac_objext \
19753    conftest$ac_exeext conftest.$ac_ext
19754LIBS=$ac_check_lib_save_LIBS
19755fi
19756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseFile" >&5
19757$as_echo "$ac_cv_lib_xml2_xmlParseFile" >&6; }
19758if test "x$ac_cv_lib_xml2_xmlParseFile" = x""yes; then :
19759  cat >>confdefs.h <<_ACEOF
19760#define HAVE_LIBXML2 1
19761_ACEOF
19762
19763  LIBS="-lxml2 $LIBS"
19764
19765else
19766  as_fn_error $? "libxml-2.0 not found: http://www.xmlsoft.org" "$LINENO" 5
19767fi
19768
19769elif test $pkg_failed = untried; then
19770     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19771$as_echo "no" >&6; }
19772	{ $as_echo "$as_me:${as_lineno-$LINENO}: libxml2 not located by pkg-config, checking with AC CHECK LIB:" >&5
19773$as_echo "$as_me: libxml2 not located by pkg-config, checking with AC CHECK LIB:" >&6;}
19774	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseFile in -lxml2" >&5
19775$as_echo_n "checking for xmlParseFile in -lxml2... " >&6; }
19776if test "${ac_cv_lib_xml2_xmlParseFile+set}" = set; then :
19777  $as_echo_n "(cached) " >&6
19778else
19779  ac_check_lib_save_LIBS=$LIBS
19780LIBS="-lxml2  $LIBS"
19781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19782/* end confdefs.h.  */
19783
19784/* Override any GCC internal prototype to avoid an error.
19785   Use char because int might match the return type of a GCC
19786   builtin and then its argument prototype would still apply.  */
19787#ifdef __cplusplus
19788extern "C"
19789#endif
19790char xmlParseFile ();
19791int
19792main ()
19793{
19794return xmlParseFile ();
19795  ;
19796  return 0;
19797}
19798_ACEOF
19799if ac_fn_c_try_link "$LINENO"; then :
19800  ac_cv_lib_xml2_xmlParseFile=yes
19801else
19802  ac_cv_lib_xml2_xmlParseFile=no
19803fi
19804rm -f core conftest.err conftest.$ac_objext \
19805    conftest$ac_exeext conftest.$ac_ext
19806LIBS=$ac_check_lib_save_LIBS
19807fi
19808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseFile" >&5
19809$as_echo "$ac_cv_lib_xml2_xmlParseFile" >&6; }
19810if test "x$ac_cv_lib_xml2_xmlParseFile" = x""yes; then :
19811  cat >>confdefs.h <<_ACEOF
19812#define HAVE_LIBXML2 1
19813_ACEOF
19814
19815  LIBS="-lxml2 $LIBS"
19816
19817else
19818  as_fn_error $? "libxml-2.0 not found: http://www.xmlsoft.org" "$LINENO" 5
19819fi
19820
19821else
19822	XML2_CFLAGS=$pkg_cv_XML2_CFLAGS
19823	XML2_LIBS=$pkg_cv_XML2_LIBS
19824        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19825$as_echo "yes" >&6; }
19826
19827fi
19828
19829
19830$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
19831
19832CFLAGS="$CFLAGS $XML2_CFLAGS"
19833LIBS="$LIBS $XML2_LIBS"
19834DEP_PKGS="$DEP_PKGS libxml-2.0"
19835
19836
19837
19838
19839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin in -lm" >&5
19840$as_echo_n "checking for csin in -lm... " >&6; }
19841if test "${ac_cv_lib_m_csin+set}" = set; then :
19842  $as_echo_n "(cached) " >&6
19843else
19844  ac_check_lib_save_LIBS=$LIBS
19845LIBS="-lm  $LIBS"
19846cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19847/* end confdefs.h.  */
19848
19849/* Override any GCC internal prototype to avoid an error.
19850   Use char because int might match the return type of a GCC
19851   builtin and then its argument prototype would still apply.  */
19852#ifdef __cplusplus
19853extern "C"
19854#endif
19855char csin ();
19856int
19857main ()
19858{
19859return csin ();
19860  ;
19861  return 0;
19862}
19863_ACEOF
19864if ac_fn_c_try_link "$LINENO"; then :
19865  ac_cv_lib_m_csin=yes
19866else
19867  ac_cv_lib_m_csin=no
19868fi
19869rm -f core conftest.err conftest.$ac_objext \
19870    conftest$ac_exeext conftest.$ac_ext
19871LIBS=$ac_check_lib_save_LIBS
19872fi
19873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_csin" >&5
19874$as_echo "$ac_cv_lib_m_csin" >&6; }
19875if test "x$ac_cv_lib_m_csin" = x""yes; then :
19876  cat >>confdefs.h <<_ACEOF
19877#define HAVE_LIBM 1
19878_ACEOF
19879
19880  LIBS="-lm $LIBS"
19881
19882else
19883  as_fn_error $? "Math library not found - functions in <math.h> may not be available." "$LINENO" 5
19884fi
19885
19886
19887
19888
19889
19890
19891
19892
19893
19894
19895# --------------------------------------------------------------------------------------
19896# Checks for header files.
19897# --------------------------------------------------------------------------------------
19898
19899# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19900# for constant arguments.  Useless!
19901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19902$as_echo_n "checking for working alloca.h... " >&6; }
19903if test "${ac_cv_working_alloca_h+set}" = set; then :
19904  $as_echo_n "(cached) " >&6
19905else
19906  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19907/* end confdefs.h.  */
19908#include <alloca.h>
19909int
19910main ()
19911{
19912char *p = (char *) alloca (2 * sizeof (int));
19913			  if (p) return 0;
19914  ;
19915  return 0;
19916}
19917_ACEOF
19918if ac_fn_c_try_link "$LINENO"; then :
19919  ac_cv_working_alloca_h=yes
19920else
19921  ac_cv_working_alloca_h=no
19922fi
19923rm -f core conftest.err conftest.$ac_objext \
19924    conftest$ac_exeext conftest.$ac_ext
19925fi
19926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19927$as_echo "$ac_cv_working_alloca_h" >&6; }
19928if test $ac_cv_working_alloca_h = yes; then
19929
19930$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19931
19932fi
19933
19934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19935$as_echo_n "checking for alloca... " >&6; }
19936if test "${ac_cv_func_alloca_works+set}" = set; then :
19937  $as_echo_n "(cached) " >&6
19938else
19939  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19940/* end confdefs.h.  */
19941#ifdef __GNUC__
19942# define alloca __builtin_alloca
19943#else
19944# ifdef _MSC_VER
19945#  include <malloc.h>
19946#  define alloca _alloca
19947# else
19948#  ifdef HAVE_ALLOCA_H
19949#   include <alloca.h>
19950#  else
19951#   ifdef _AIX
19952 #pragma alloca
19953#   else
19954#    ifndef alloca /* predefined by HP cc +Olibcalls */
19955char *alloca ();
19956#    endif
19957#   endif
19958#  endif
19959# endif
19960#endif
19961
19962int
19963main ()
19964{
19965char *p = (char *) alloca (1);
19966				    if (p) return 0;
19967  ;
19968  return 0;
19969}
19970_ACEOF
19971if ac_fn_c_try_link "$LINENO"; then :
19972  ac_cv_func_alloca_works=yes
19973else
19974  ac_cv_func_alloca_works=no
19975fi
19976rm -f core conftest.err conftest.$ac_objext \
19977    conftest$ac_exeext conftest.$ac_ext
19978fi
19979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19980$as_echo "$ac_cv_func_alloca_works" >&6; }
19981
19982if test $ac_cv_func_alloca_works = yes; then
19983
19984$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19985
19986else
19987  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19988# that cause trouble.  Some versions do not even contain alloca or
19989# contain a buggy version.  If you still want to use their alloca,
19990# use ar to extract alloca.o from them instead of compiling alloca.c.
19991
19992ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19993
19994$as_echo "#define C_ALLOCA 1" >>confdefs.h
19995
19996
19997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19998$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19999if test "${ac_cv_os_cray+set}" = set; then :
20000  $as_echo_n "(cached) " >&6
20001else
20002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20003/* end confdefs.h.  */
20004#if defined CRAY && ! defined CRAY2
20005webecray
20006#else
20007wenotbecray
20008#endif
20009
20010_ACEOF
20011if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20012  $EGREP "webecray" >/dev/null 2>&1; then :
20013  ac_cv_os_cray=yes
20014else
20015  ac_cv_os_cray=no
20016fi
20017rm -f conftest*
20018
20019fi
20020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
20021$as_echo "$ac_cv_os_cray" >&6; }
20022if test $ac_cv_os_cray = yes; then
20023  for ac_func in _getb67 GETB67 getb67; do
20024    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20025ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20026if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20027
20028cat >>confdefs.h <<_ACEOF
20029#define CRAY_STACKSEG_END $ac_func
20030_ACEOF
20031
20032    break
20033fi
20034
20035  done
20036fi
20037
20038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
20039$as_echo_n "checking stack direction for C alloca... " >&6; }
20040if test "${ac_cv_c_stack_direction+set}" = set; then :
20041  $as_echo_n "(cached) " >&6
20042else
20043  if test "$cross_compiling" = yes; then :
20044  ac_cv_c_stack_direction=0
20045else
20046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20047/* end confdefs.h.  */
20048$ac_includes_default
20049int
20050find_stack_direction ()
20051{
20052  static char *addr = 0;
20053  auto char dummy;
20054  if (addr == 0)
20055    {
20056      addr = &dummy;
20057      return find_stack_direction ();
20058    }
20059  else
20060    return (&dummy > addr) ? 1 : -1;
20061}
20062
20063int
20064main ()
20065{
20066  return find_stack_direction () < 0;
20067}
20068_ACEOF
20069if ac_fn_c_try_run "$LINENO"; then :
20070  ac_cv_c_stack_direction=1
20071else
20072  ac_cv_c_stack_direction=-1
20073fi
20074rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20075  conftest.$ac_objext conftest.beam conftest.$ac_ext
20076fi
20077
20078fi
20079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
20080$as_echo "$ac_cv_c_stack_direction" >&6; }
20081cat >>confdefs.h <<_ACEOF
20082#define STACK_DIRECTION $ac_cv_c_stack_direction
20083_ACEOF
20084
20085
20086fi
20087
20088ac_header_dirent=no
20089for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20090  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
20092$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
20093if eval "test \"\${$as_ac_Header+set}\"" = set; then :
20094  $as_echo_n "(cached) " >&6
20095else
20096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20097/* end confdefs.h.  */
20098#include <sys/types.h>
20099#include <$ac_hdr>
20100
20101int
20102main ()
20103{
20104if ((DIR *) 0)
20105return 0;
20106  ;
20107  return 0;
20108}
20109_ACEOF
20110if ac_fn_c_try_compile "$LINENO"; then :
20111  eval "$as_ac_Header=yes"
20112else
20113  eval "$as_ac_Header=no"
20114fi
20115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20116fi
20117eval ac_res=\$$as_ac_Header
20118	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20119$as_echo "$ac_res" >&6; }
20120if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20121  cat >>confdefs.h <<_ACEOF
20122#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20123_ACEOF
20124
20125ac_header_dirent=$ac_hdr; break
20126fi
20127
20128done
20129# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20130if test $ac_header_dirent = dirent.h; then
20131  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20132$as_echo_n "checking for library containing opendir... " >&6; }
20133if test "${ac_cv_search_opendir+set}" = set; then :
20134  $as_echo_n "(cached) " >&6
20135else
20136  ac_func_search_save_LIBS=$LIBS
20137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20138/* end confdefs.h.  */
20139
20140/* Override any GCC internal prototype to avoid an error.
20141   Use char because int might match the return type of a GCC
20142   builtin and then its argument prototype would still apply.  */
20143#ifdef __cplusplus
20144extern "C"
20145#endif
20146char opendir ();
20147int
20148main ()
20149{
20150return opendir ();
20151  ;
20152  return 0;
20153}
20154_ACEOF
20155for ac_lib in '' dir; do
20156  if test -z "$ac_lib"; then
20157    ac_res="none required"
20158  else
20159    ac_res=-l$ac_lib
20160    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20161  fi
20162  if ac_fn_c_try_link "$LINENO"; then :
20163  ac_cv_search_opendir=$ac_res
20164fi
20165rm -f core conftest.err conftest.$ac_objext \
20166    conftest$ac_exeext
20167  if test "${ac_cv_search_opendir+set}" = set; then :
20168  break
20169fi
20170done
20171if test "${ac_cv_search_opendir+set}" = set; then :
20172
20173else
20174  ac_cv_search_opendir=no
20175fi
20176rm conftest.$ac_ext
20177LIBS=$ac_func_search_save_LIBS
20178fi
20179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20180$as_echo "$ac_cv_search_opendir" >&6; }
20181ac_res=$ac_cv_search_opendir
20182if test "$ac_res" != no; then :
20183  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20184
20185fi
20186
20187else
20188  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20189$as_echo_n "checking for library containing opendir... " >&6; }
20190if test "${ac_cv_search_opendir+set}" = set; then :
20191  $as_echo_n "(cached) " >&6
20192else
20193  ac_func_search_save_LIBS=$LIBS
20194cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20195/* end confdefs.h.  */
20196
20197/* Override any GCC internal prototype to avoid an error.
20198   Use char because int might match the return type of a GCC
20199   builtin and then its argument prototype would still apply.  */
20200#ifdef __cplusplus
20201extern "C"
20202#endif
20203char opendir ();
20204int
20205main ()
20206{
20207return opendir ();
20208  ;
20209  return 0;
20210}
20211_ACEOF
20212for ac_lib in '' x; do
20213  if test -z "$ac_lib"; then
20214    ac_res="none required"
20215  else
20216    ac_res=-l$ac_lib
20217    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20218  fi
20219  if ac_fn_c_try_link "$LINENO"; then :
20220  ac_cv_search_opendir=$ac_res
20221fi
20222rm -f core conftest.err conftest.$ac_objext \
20223    conftest$ac_exeext
20224  if test "${ac_cv_search_opendir+set}" = set; then :
20225  break
20226fi
20227done
20228if test "${ac_cv_search_opendir+set}" = set; then :
20229
20230else
20231  ac_cv_search_opendir=no
20232fi
20233rm conftest.$ac_ext
20234LIBS=$ac_func_search_save_LIBS
20235fi
20236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20237$as_echo "$ac_cv_search_opendir" >&6; }
20238ac_res=$ac_cv_search_opendir
20239if test "$ac_res" != no; then :
20240  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20241
20242fi
20243
20244fi
20245
20246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
20247$as_echo_n "checking for ANSI C header files... " >&6; }
20248if test "${ac_cv_header_stdc+set}" = set; then :
20249  $as_echo_n "(cached) " >&6
20250else
20251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20252/* end confdefs.h.  */
20253#include <stdlib.h>
20254#include <stdarg.h>
20255#include <string.h>
20256#include <float.h>
20257
20258int
20259main ()
20260{
20261
20262  ;
20263  return 0;
20264}
20265_ACEOF
20266if ac_fn_c_try_compile "$LINENO"; then :
20267  ac_cv_header_stdc=yes
20268else
20269  ac_cv_header_stdc=no
20270fi
20271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20272
20273if test $ac_cv_header_stdc = yes; then
20274  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20276/* end confdefs.h.  */
20277#include <string.h>
20278
20279_ACEOF
20280if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20281  $EGREP "memchr" >/dev/null 2>&1; then :
20282
20283else
20284  ac_cv_header_stdc=no
20285fi
20286rm -f conftest*
20287
20288fi
20289
20290if test $ac_cv_header_stdc = yes; then
20291  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20293/* end confdefs.h.  */
20294#include <stdlib.h>
20295
20296_ACEOF
20297if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20298  $EGREP "free" >/dev/null 2>&1; then :
20299
20300else
20301  ac_cv_header_stdc=no
20302fi
20303rm -f conftest*
20304
20305fi
20306
20307if test $ac_cv_header_stdc = yes; then
20308  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20309  if test "$cross_compiling" = yes; then :
20310  :
20311else
20312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20313/* end confdefs.h.  */
20314#include <ctype.h>
20315#include <stdlib.h>
20316#if ((' ' & 0x0FF) == 0x020)
20317# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20318# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20319#else
20320# define ISLOWER(c) \
20321		   (('a' <= (c) && (c) <= 'i') \
20322		     || ('j' <= (c) && (c) <= 'r') \
20323		     || ('s' <= (c) && (c) <= 'z'))
20324# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20325#endif
20326
20327#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20328int
20329main ()
20330{
20331  int i;
20332  for (i = 0; i < 256; i++)
20333    if (XOR (islower (i), ISLOWER (i))
20334	|| toupper (i) != TOUPPER (i))
20335      return 2;
20336  return 0;
20337}
20338_ACEOF
20339if ac_fn_c_try_run "$LINENO"; then :
20340
20341else
20342  ac_cv_header_stdc=no
20343fi
20344rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20345  conftest.$ac_objext conftest.beam conftest.$ac_ext
20346fi
20347
20348fi
20349fi
20350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
20351$as_echo "$ac_cv_header_stdc" >&6; }
20352if test $ac_cv_header_stdc = yes; then
20353
20354$as_echo "#define STDC_HEADERS 1" >>confdefs.h
20355
20356fi
20357
20358for ac_header in argz.h error.h errno.h fcntl.h float.h iconv.h inttypes.h langinfo.h libgen.h libintl.h limits.h locale.h malloc.h math.h stddef.h stdint.h stdio_ext.h stdlib.h string.h strings.h sys/param.h unistd.h wchar.h
20359do :
20360  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20361ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20362if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20363  cat >>confdefs.h <<_ACEOF
20364#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20365_ACEOF
20366
20367fi
20368
20369done
20370
20371
20372
20373# --------------------------------------------------------------------------------------------
20374# Checks for typedefs, structures, and compiler characteristics.
20375# --------------------------------------------------------------------------------------------
20376
20377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
20378$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
20379if test "${ac_cv_header_stdbool_h+set}" = set; then :
20380  $as_echo_n "(cached) " >&6
20381else
20382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20383/* end confdefs.h.  */
20384
20385#include <stdbool.h>
20386#ifndef bool
20387 "error: bool is not defined"
20388#endif
20389#ifndef false
20390 "error: false is not defined"
20391#endif
20392#if false
20393 "error: false is not 0"
20394#endif
20395#ifndef true
20396 "error: true is not defined"
20397#endif
20398#if true != 1
20399 "error: true is not 1"
20400#endif
20401#ifndef __bool_true_false_are_defined
20402 "error: __bool_true_false_are_defined is not defined"
20403#endif
20404
20405	struct s { _Bool s: 1; _Bool t; } s;
20406
20407	char a[true == 1 ? 1 : -1];
20408	char b[false == 0 ? 1 : -1];
20409	char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20410	char d[(bool) 0.5 == true ? 1 : -1];
20411	bool e = &s;
20412	char f[(_Bool) 0.0 == false ? 1 : -1];
20413	char g[true];
20414	char h[sizeof (_Bool)];
20415	char i[sizeof s.t];
20416	enum { j = false, k = true, l = false * true, m = true * 256 };
20417	/* The following fails for
20418	   HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20419	_Bool n[m];
20420	char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20421	char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20422#	if defined __xlc__ || defined __GNUC__
20423	 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20424	    reported by James Lemley on 2005-10-05; see
20425	    http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20426	    This test is not quite right, since xlc is allowed to
20427	    reject this program, as the initializer for xlcbug is
20428	    not one of the forms that C requires support for.
20429	    However, doing the test right would require a runtime
20430	    test, and that would make cross-compilation harder.
20431	    Let us hope that IBM fixes the xlc bug, and also adds
20432	    support for this kind of constant expression.  In the
20433	    meantime, this test will reject xlc, which is OK, since
20434	    our stdbool.h substitute should suffice.  We also test
20435	    this with GCC, where it should work, to detect more
20436	    quickly whether someone messes up the test in the
20437	    future.  */
20438	 char digs[] = "0123456789";
20439	 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20440#	endif
20441	/* Catch a bug in an HP-UX C compiler.  See
20442	   http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20443	   http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20444	 */
20445	_Bool q = true;
20446	_Bool *pq = &q;
20447
20448int
20449main ()
20450{
20451
20452	*pq |= q;
20453	*pq |= ! q;
20454	/* Refer to every declared value, to avoid compiler optimizations.  */
20455	return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20456		+ !m + !n + !o + !p + !q + !pq);
20457
20458  ;
20459  return 0;
20460}
20461_ACEOF
20462if ac_fn_c_try_compile "$LINENO"; then :
20463  ac_cv_header_stdbool_h=yes
20464else
20465  ac_cv_header_stdbool_h=no
20466fi
20467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20468fi
20469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
20470$as_echo "$ac_cv_header_stdbool_h" >&6; }
20471ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20472if test "x$ac_cv_type__Bool" = x""yes; then :
20473
20474cat >>confdefs.h <<_ACEOF
20475#define HAVE__BOOL 1
20476_ACEOF
20477
20478
20479fi
20480
20481if test $ac_cv_header_stdbool_h = yes; then
20482
20483$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
20484
20485fi
20486
20487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
20488$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20489if test "${ac_cv_c_const+set}" = set; then :
20490  $as_echo_n "(cached) " >&6
20491else
20492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20493/* end confdefs.h.  */
20494
20495int
20496main ()
20497{
20498/* FIXME: Include the comments suggested by Paul. */
20499#ifndef __cplusplus
20500  /* Ultrix mips cc rejects this.  */
20501  typedef int charset[2];
20502  const charset cs;
20503  /* SunOS 4.1.1 cc rejects this.  */
20504  char const *const *pcpcc;
20505  char **ppc;
20506  /* NEC SVR4.0.2 mips cc rejects this.  */
20507  struct point {int x, y;};
20508  static struct point const zero = {0,0};
20509  /* AIX XL C 1.02.0.0 rejects this.
20510     It does not let you subtract one const X* pointer from another in
20511     an arm of an if-expression whose if-part is not a constant
20512     expression */
20513  const char *g = "string";
20514  pcpcc = &g + (g ? g-g : 0);
20515  /* HPUX 7.0 cc rejects these. */
20516  ++pcpcc;
20517  ppc = (char**) pcpcc;
20518  pcpcc = (char const *const *) ppc;
20519  { /* SCO 3.2v4 cc rejects this.  */
20520    char *t;
20521    char const *s = 0 ? (char *) 0 : (char const *) 0;
20522
20523    *t++ = 0;
20524    if (s) return 0;
20525  }
20526  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20527    int x[] = {25, 17};
20528    const int *foo = &x[0];
20529    ++foo;
20530  }
20531  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20532    typedef const int *iptr;
20533    iptr p = 0;
20534    ++p;
20535  }
20536  { /* AIX XL C 1.02.0.0 rejects this saying
20537       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20538    struct s { int j; const int *ap[3]; };
20539    struct s *b; b->j = 5;
20540  }
20541  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20542    const int foo = 10;
20543    if (!foo) return 0;
20544  }
20545  return !cs[0] && !zero.x;
20546#endif
20547
20548  ;
20549  return 0;
20550}
20551_ACEOF
20552if ac_fn_c_try_compile "$LINENO"; then :
20553  ac_cv_c_const=yes
20554else
20555  ac_cv_c_const=no
20556fi
20557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20558fi
20559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20560$as_echo "$ac_cv_c_const" >&6; }
20561if test $ac_cv_c_const = no; then
20562
20563$as_echo "#define const /**/" >>confdefs.h
20564
20565fi
20566
20567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
20568$as_echo_n "checking for inline... " >&6; }
20569if test "${ac_cv_c_inline+set}" = set; then :
20570  $as_echo_n "(cached) " >&6
20571else
20572  ac_cv_c_inline=no
20573for ac_kw in inline __inline__ __inline; do
20574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20575/* end confdefs.h.  */
20576#ifndef __cplusplus
20577typedef int foo_t;
20578static $ac_kw foo_t static_foo () {return 0; }
20579$ac_kw foo_t foo () {return 0; }
20580#endif
20581
20582_ACEOF
20583if ac_fn_c_try_compile "$LINENO"; then :
20584  ac_cv_c_inline=$ac_kw
20585fi
20586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20587  test "$ac_cv_c_inline" != no && break
20588done
20589
20590fi
20591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
20592$as_echo "$ac_cv_c_inline" >&6; }
20593
20594case $ac_cv_c_inline in
20595  inline | yes) ;;
20596  *)
20597    case $ac_cv_c_inline in
20598      no) ac_val=;;
20599      *) ac_val=$ac_cv_c_inline;;
20600    esac
20601    cat >>confdefs.h <<_ACEOF
20602#ifndef __cplusplus
20603#define inline $ac_val
20604#endif
20605_ACEOF
20606    ;;
20607esac
20608
20609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
20610$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
20611if test "${ac_cv_c_restrict+set}" = set; then :
20612  $as_echo_n "(cached) " >&6
20613else
20614  ac_cv_c_restrict=no
20615   # The order here caters to the fact that C++ does not require restrict.
20616   for ac_kw in __restrict __restrict__ _Restrict restrict; do
20617     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20618/* end confdefs.h.  */
20619typedef int * int_ptr;
20620	int foo (int_ptr $ac_kw ip) {
20621	return ip[0];
20622       }
20623int
20624main ()
20625{
20626int s[1];
20627	int * $ac_kw t = s;
20628	t[0] = 0;
20629	return foo(t)
20630  ;
20631  return 0;
20632}
20633_ACEOF
20634if ac_fn_c_try_compile "$LINENO"; then :
20635  ac_cv_c_restrict=$ac_kw
20636fi
20637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20638     test "$ac_cv_c_restrict" != no && break
20639   done
20640
20641fi
20642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
20643$as_echo "$ac_cv_c_restrict" >&6; }
20644
20645 case $ac_cv_c_restrict in
20646   restrict) ;;
20647   no) $as_echo "#define restrict /**/" >>confdefs.h
20648 ;;
20649   *)  cat >>confdefs.h <<_ACEOF
20650#define restrict $ac_cv_c_restrict
20651_ACEOF
20652 ;;
20653 esac
20654
20655ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
20656if test "x$ac_cv_type_mode_t" = x""yes; then :
20657
20658else
20659
20660cat >>confdefs.h <<_ACEOF
20661#define mode_t int
20662_ACEOF
20663
20664fi
20665
20666ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20667if test "x$ac_cv_type_size_t" = x""yes; then :
20668
20669else
20670
20671cat >>confdefs.h <<_ACEOF
20672#define size_t unsigned int
20673_ACEOF
20674
20675fi
20676
20677ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
20678case $ac_cv_c_uint16_t in #(
20679  no|yes) ;; #(
20680  *)
20681
20682
20683cat >>confdefs.h <<_ACEOF
20684#define uint16_t $ac_cv_c_uint16_t
20685_ACEOF
20686;;
20687  esac
20688
20689ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
20690case $ac_cv_c_uint32_t in #(
20691  no|yes) ;; #(
20692  *)
20693
20694$as_echo "#define _UINT32_T 1" >>confdefs.h
20695
20696
20697cat >>confdefs.h <<_ACEOF
20698#define uint32_t $ac_cv_c_uint32_t
20699_ACEOF
20700;;
20701  esac
20702
20703ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
20704case $ac_cv_c_uint8_t in #(
20705  no|yes) ;; #(
20706  *)
20707
20708$as_echo "#define _UINT8_T 1" >>confdefs.h
20709
20710
20711cat >>confdefs.h <<_ACEOF
20712#define uint8_t $ac_cv_c_uint8_t
20713_ACEOF
20714;;
20715  esac
20716
20717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
20718$as_echo_n "checking for working volatile... " >&6; }
20719if test "${ac_cv_c_volatile+set}" = set; then :
20720  $as_echo_n "(cached) " >&6
20721else
20722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20723/* end confdefs.h.  */
20724
20725int
20726main ()
20727{
20728
20729volatile int x;
20730int * volatile y = (int *) 0;
20731return !x && !y;
20732  ;
20733  return 0;
20734}
20735_ACEOF
20736if ac_fn_c_try_compile "$LINENO"; then :
20737  ac_cv_c_volatile=yes
20738else
20739  ac_cv_c_volatile=no
20740fi
20741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20742fi
20743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
20744$as_echo "$ac_cv_c_volatile" >&6; }
20745if test $ac_cv_c_volatile = no; then
20746
20747$as_echo "#define volatile /**/" >>confdefs.h
20748
20749fi
20750
20751ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20752if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
20753
20754cat >>confdefs.h <<_ACEOF
20755#define HAVE_PTRDIFF_T 1
20756_ACEOF
20757
20758
20759fi
20760
20761
20762
20763
20764# -------------------------------------------------------------------------------------------
20765# Checks for library functions.
20766# -------------------------------------------------------------------------------------------
20767
20768
20769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
20770$as_echo_n "checking whether closedir returns void... " >&6; }
20771if test "${ac_cv_func_closedir_void+set}" = set; then :
20772  $as_echo_n "(cached) " >&6
20773else
20774  if test "$cross_compiling" = yes; then :
20775  ac_cv_func_closedir_void=yes
20776else
20777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20778/* end confdefs.h.  */
20779$ac_includes_default
20780#include <$ac_header_dirent>
20781#ifndef __cplusplus
20782int closedir ();
20783#endif
20784
20785int
20786main ()
20787{
20788return closedir (opendir (".")) != 0;
20789  ;
20790  return 0;
20791}
20792_ACEOF
20793if ac_fn_c_try_run "$LINENO"; then :
20794  ac_cv_func_closedir_void=no
20795else
20796  ac_cv_func_closedir_void=yes
20797fi
20798rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20799  conftest.$ac_objext conftest.beam conftest.$ac_ext
20800fi
20801
20802fi
20803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
20804$as_echo "$ac_cv_func_closedir_void" >&6; }
20805if test $ac_cv_func_closedir_void = yes; then
20806
20807$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
20808
20809fi
20810
20811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
20812$as_echo_n "checking for error_at_line... " >&6; }
20813if test "${ac_cv_lib_error_at_line+set}" = set; then :
20814  $as_echo_n "(cached) " >&6
20815else
20816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20817/* end confdefs.h.  */
20818#include <error.h>
20819int
20820main ()
20821{
20822error_at_line (0, 0, "", 0, "an error occurred");
20823  ;
20824  return 0;
20825}
20826_ACEOF
20827if ac_fn_c_try_link "$LINENO"; then :
20828  ac_cv_lib_error_at_line=yes
20829else
20830  ac_cv_lib_error_at_line=no
20831fi
20832rm -f core conftest.err conftest.$ac_objext \
20833    conftest$ac_exeext conftest.$ac_ext
20834fi
20835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
20836$as_echo "$ac_cv_lib_error_at_line" >&6; }
20837if test $ac_cv_lib_error_at_line = no; then
20838  case " $LIBOBJS " in
20839  *" error.$ac_objext "* ) ;;
20840  *) LIBOBJS="$LIBOBJS error.$ac_objext"
20841 ;;
20842esac
20843
20844fi
20845
20846#AC_FUNC_MALLOC
20847
20848
20849
20850  for ac_header in $ac_header_list
20851do :
20852  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20853ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20854"
20855if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20856  cat >>confdefs.h <<_ACEOF
20857#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20858_ACEOF
20859
20860fi
20861
20862done
20863
20864
20865
20866
20867
20868
20869
20870
20871for ac_func in getpagesize
20872do :
20873  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
20874if test "x$ac_cv_func_getpagesize" = x""yes; then :
20875  cat >>confdefs.h <<_ACEOF
20876#define HAVE_GETPAGESIZE 1
20877_ACEOF
20878
20879fi
20880done
20881
20882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
20883$as_echo_n "checking for working mmap... " >&6; }
20884if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
20885  $as_echo_n "(cached) " >&6
20886else
20887  if test "$cross_compiling" = yes; then :
20888  ac_cv_func_mmap_fixed_mapped=no
20889else
20890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20891/* end confdefs.h.  */
20892$ac_includes_default
20893/* malloc might have been renamed as rpl_malloc. */
20894#undef malloc
20895
20896/* Thanks to Mike Haertel and Jim Avera for this test.
20897   Here is a matrix of mmap possibilities:
20898	mmap private not fixed
20899	mmap private fixed at somewhere currently unmapped
20900	mmap private fixed at somewhere already mapped
20901	mmap shared not fixed
20902	mmap shared fixed at somewhere currently unmapped
20903	mmap shared fixed at somewhere already mapped
20904   For private mappings, we should verify that changes cannot be read()
20905   back from the file, nor mmap's back from the file at a different
20906   address.  (There have been systems where private was not correctly
20907   implemented like the infamous i386 svr4.0, and systems where the
20908   VM page cache was not coherent with the file system buffer cache
20909   like early versions of FreeBSD and possibly contemporary NetBSD.)
20910   For shared mappings, we should conversely verify that changes get
20911   propagated back to all the places they're supposed to be.
20912
20913   Grep wants private fixed already mapped.
20914   The main things grep needs to know about mmap are:
20915   * does it exist and is it safe to write into the mmap'd area
20916   * how to use it (BSD variants)  */
20917
20918#include <fcntl.h>
20919#include <sys/mman.h>
20920
20921#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20922char *malloc ();
20923#endif
20924
20925/* This mess was copied from the GNU getpagesize.h.  */
20926#ifndef HAVE_GETPAGESIZE
20927# ifdef _SC_PAGESIZE
20928#  define getpagesize() sysconf(_SC_PAGESIZE)
20929# else /* no _SC_PAGESIZE */
20930#  ifdef HAVE_SYS_PARAM_H
20931#   include <sys/param.h>
20932#   ifdef EXEC_PAGESIZE
20933#    define getpagesize() EXEC_PAGESIZE
20934#   else /* no EXEC_PAGESIZE */
20935#    ifdef NBPG
20936#     define getpagesize() NBPG * CLSIZE
20937#     ifndef CLSIZE
20938#      define CLSIZE 1
20939#     endif /* no CLSIZE */
20940#    else /* no NBPG */
20941#     ifdef NBPC
20942#      define getpagesize() NBPC
20943#     else /* no NBPC */
20944#      ifdef PAGESIZE
20945#       define getpagesize() PAGESIZE
20946#      endif /* PAGESIZE */
20947#     endif /* no NBPC */
20948#    endif /* no NBPG */
20949#   endif /* no EXEC_PAGESIZE */
20950#  else /* no HAVE_SYS_PARAM_H */
20951#   define getpagesize() 8192	/* punt totally */
20952#  endif /* no HAVE_SYS_PARAM_H */
20953# endif /* no _SC_PAGESIZE */
20954
20955#endif /* no HAVE_GETPAGESIZE */
20956
20957int
20958main ()
20959{
20960  char *data, *data2, *data3;
20961  const char *cdata2;
20962  int i, pagesize;
20963  int fd, fd2;
20964
20965  pagesize = getpagesize ();
20966
20967  /* First, make a file with some known garbage in it. */
20968  data = (char *) malloc (pagesize);
20969  if (!data)
20970    return 1;
20971  for (i = 0; i < pagesize; ++i)
20972    *(data + i) = rand ();
20973  umask (0);
20974  fd = creat ("conftest.mmap", 0600);
20975  if (fd < 0)
20976    return 2;
20977  if (write (fd, data, pagesize) != pagesize)
20978    return 3;
20979  close (fd);
20980
20981  /* Next, check that the tail of a page is zero-filled.  File must have
20982     non-zero length, otherwise we risk SIGBUS for entire page.  */
20983  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
20984  if (fd2 < 0)
20985    return 4;
20986  cdata2 = "";
20987  if (write (fd2, cdata2, 1) != 1)
20988    return 5;
20989  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
20990  if (data2 == MAP_FAILED)
20991    return 6;
20992  for (i = 0; i < pagesize; ++i)
20993    if (*(data2 + i))
20994      return 7;
20995  close (fd2);
20996  if (munmap (data2, pagesize))
20997    return 8;
20998
20999  /* Next, try to mmap the file at a fixed address which already has
21000     something else allocated at it.  If we can, also make sure that
21001     we see the same garbage.  */
21002  fd = open ("conftest.mmap", O_RDWR);
21003  if (fd < 0)
21004    return 9;
21005  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21006		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
21007    return 10;
21008  for (i = 0; i < pagesize; ++i)
21009    if (*(data + i) != *(data2 + i))
21010      return 11;
21011
21012  /* Finally, make sure that changes to the mapped area do not
21013     percolate back to the file as seen by read().  (This is a bug on
21014     some variants of i386 svr4.0.)  */
21015  for (i = 0; i < pagesize; ++i)
21016    *(data2 + i) = *(data2 + i) + 1;
21017  data3 = (char *) malloc (pagesize);
21018  if (!data3)
21019    return 12;
21020  if (read (fd, data3, pagesize) != pagesize)
21021    return 13;
21022  for (i = 0; i < pagesize; ++i)
21023    if (*(data + i) != *(data3 + i))
21024      return 14;
21025  close (fd);
21026  return 0;
21027}
21028_ACEOF
21029if ac_fn_c_try_run "$LINENO"; then :
21030  ac_cv_func_mmap_fixed_mapped=yes
21031else
21032  ac_cv_func_mmap_fixed_mapped=no
21033fi
21034rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21035  conftest.$ac_objext conftest.beam conftest.$ac_ext
21036fi
21037
21038fi
21039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
21040$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
21041if test $ac_cv_func_mmap_fixed_mapped = yes; then
21042
21043$as_echo "#define HAVE_MMAP 1" >>confdefs.h
21044
21045fi
21046rm -f conftest.mmap conftest.txt
21047
21048#AC_FUNC_REALLOC
21049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
21050$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
21051if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
21052  $as_echo_n "(cached) " >&6
21053else
21054  rm -f conftest.sym conftest.file
21055echo >conftest.file
21056if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
21057  if test "$cross_compiling" = yes; then :
21058  ac_cv_func_lstat_dereferences_slashed_symlink=no
21059else
21060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21061/* end confdefs.h.  */
21062$ac_includes_default
21063int
21064main ()
21065{
21066struct stat sbuf;
21067     /* Linux will dereference the symlink and fail, as required by POSIX.
21068	That is better in the sense that it means we will not
21069	have to compile and use the lstat wrapper.  */
21070     return lstat ("conftest.sym/", &sbuf) == 0;
21071  ;
21072  return 0;
21073}
21074_ACEOF
21075if ac_fn_c_try_run "$LINENO"; then :
21076  ac_cv_func_lstat_dereferences_slashed_symlink=yes
21077else
21078  ac_cv_func_lstat_dereferences_slashed_symlink=no
21079fi
21080rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21081  conftest.$ac_objext conftest.beam conftest.$ac_ext
21082fi
21083
21084else
21085  # If the `ln -s' command failed, then we probably don't even
21086  # have an lstat function.
21087  ac_cv_func_lstat_dereferences_slashed_symlink=no
21088fi
21089rm -f conftest.sym conftest.file
21090
21091fi
21092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
21093$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
21094
21095test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
21096
21097cat >>confdefs.h <<_ACEOF
21098#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
21099_ACEOF
21100
21101
21102if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
21103  case " $LIBOBJS " in
21104  *" lstat.$ac_objext "* ) ;;
21105  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
21106 ;;
21107esac
21108
21109fi
21110
21111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
21112$as_echo_n "checking whether stat accepts an empty string... " >&6; }
21113if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
21114  $as_echo_n "(cached) " >&6
21115else
21116  if test "$cross_compiling" = yes; then :
21117  ac_cv_func_stat_empty_string_bug=yes
21118else
21119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21120/* end confdefs.h.  */
21121$ac_includes_default
21122int
21123main ()
21124{
21125struct stat sbuf;
21126  return stat ("", &sbuf) == 0;
21127  ;
21128  return 0;
21129}
21130_ACEOF
21131if ac_fn_c_try_run "$LINENO"; then :
21132  ac_cv_func_stat_empty_string_bug=no
21133else
21134  ac_cv_func_stat_empty_string_bug=yes
21135fi
21136rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21137  conftest.$ac_objext conftest.beam conftest.$ac_ext
21138fi
21139
21140fi
21141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
21142$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
21143if test $ac_cv_func_stat_empty_string_bug = yes; then
21144  case " $LIBOBJS " in
21145  *" stat.$ac_objext "* ) ;;
21146  *) LIBOBJS="$LIBOBJS stat.$ac_objext"
21147 ;;
21148esac
21149
21150
21151cat >>confdefs.h <<_ACEOF
21152#define HAVE_STAT_EMPTY_STRING_BUG 1
21153_ACEOF
21154
21155fi
21156
21157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
21158$as_echo_n "checking for working strcoll... " >&6; }
21159if test "${ac_cv_func_strcoll_works+set}" = set; then :
21160  $as_echo_n "(cached) " >&6
21161else
21162  if test "$cross_compiling" = yes; then :
21163  ac_cv_func_strcoll_works=no
21164else
21165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21166/* end confdefs.h.  */
21167$ac_includes_default
21168int
21169main ()
21170{
21171return (strcoll ("abc", "def") >= 0 ||
21172	 strcoll ("ABC", "DEF") >= 0 ||
21173	 strcoll ("123", "456") >= 0)
21174  ;
21175  return 0;
21176}
21177_ACEOF
21178if ac_fn_c_try_run "$LINENO"; then :
21179  ac_cv_func_strcoll_works=yes
21180else
21181  ac_cv_func_strcoll_works=no
21182fi
21183rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21184  conftest.$ac_objext conftest.beam conftest.$ac_ext
21185fi
21186
21187fi
21188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
21189$as_echo "$ac_cv_func_strcoll_works" >&6; }
21190if test $ac_cv_func_strcoll_works = yes; then
21191
21192$as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
21193
21194fi
21195
21196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
21197$as_echo_n "checking for working strtod... " >&6; }
21198if test "${ac_cv_func_strtod+set}" = set; then :
21199  $as_echo_n "(cached) " >&6
21200else
21201  if test "$cross_compiling" = yes; then :
21202  ac_cv_func_strtod=no
21203else
21204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21205/* end confdefs.h.  */
21206
21207$ac_includes_default
21208#ifndef strtod
21209double strtod ();
21210#endif
21211int
21212main()
21213{
21214  {
21215    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
21216    char *string = " +69";
21217    char *term;
21218    double value;
21219    value = strtod (string, &term);
21220    if (value != 69 || term != (string + 4))
21221      return 1;
21222  }
21223
21224  {
21225    /* Under Solaris 2.4, strtod returns the wrong value for the
21226       terminating character under some conditions.  */
21227    char *string = "NaN";
21228    char *term;
21229    strtod (string, &term);
21230    if (term != string && *(term - 1) == 0)
21231      return 1;
21232  }
21233  return 0;
21234}
21235
21236_ACEOF
21237if ac_fn_c_try_run "$LINENO"; then :
21238  ac_cv_func_strtod=yes
21239else
21240  ac_cv_func_strtod=no
21241fi
21242rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21243  conftest.$ac_objext conftest.beam conftest.$ac_ext
21244fi
21245
21246fi
21247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
21248$as_echo "$ac_cv_func_strtod" >&6; }
21249if test $ac_cv_func_strtod = no; then
21250  case " $LIBOBJS " in
21251  *" strtod.$ac_objext "* ) ;;
21252  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
21253 ;;
21254esac
21255
21256ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
21257if test "x$ac_cv_func_pow" = x""yes; then :
21258
21259fi
21260
21261if test $ac_cv_func_pow = no; then
21262  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
21263$as_echo_n "checking for pow in -lm... " >&6; }
21264if test "${ac_cv_lib_m_pow+set}" = set; then :
21265  $as_echo_n "(cached) " >&6
21266else
21267  ac_check_lib_save_LIBS=$LIBS
21268LIBS="-lm  $LIBS"
21269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21270/* end confdefs.h.  */
21271
21272/* Override any GCC internal prototype to avoid an error.
21273   Use char because int might match the return type of a GCC
21274   builtin and then its argument prototype would still apply.  */
21275#ifdef __cplusplus
21276extern "C"
21277#endif
21278char pow ();
21279int
21280main ()
21281{
21282return pow ();
21283  ;
21284  return 0;
21285}
21286_ACEOF
21287if ac_fn_c_try_link "$LINENO"; then :
21288  ac_cv_lib_m_pow=yes
21289else
21290  ac_cv_lib_m_pow=no
21291fi
21292rm -f core conftest.err conftest.$ac_objext \
21293    conftest$ac_exeext conftest.$ac_ext
21294LIBS=$ac_check_lib_save_LIBS
21295fi
21296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
21297$as_echo "$ac_cv_lib_m_pow" >&6; }
21298if test "x$ac_cv_lib_m_pow" = x""yes; then :
21299  POW_LIB=-lm
21300else
21301  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
21302$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
21303fi
21304
21305fi
21306
21307fi
21308
21309for ac_func in vprintf
21310do :
21311  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
21312if test "x$ac_cv_func_vprintf" = x""yes; then :
21313  cat >>confdefs.h <<_ACEOF
21314#define HAVE_VPRINTF 1
21315_ACEOF
21316
21317ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
21318if test "x$ac_cv_func__doprnt" = x""yes; then :
21319
21320$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
21321
21322fi
21323
21324fi
21325done
21326
21327
21328for ac_func in __argz_count __argz_next __argz_stringify atexit basename bcopy floor getcwd localeconv localtime_r memmove mempcpy memset mkdir munmap nl_langinfo scandir alphasort setlocale sqrt stpcpy strcasecmp strchr strcspn strdup strncasecmp strndup strrchr strstr strtoul
21329do :
21330  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21331ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21332if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21333  cat >>confdefs.h <<_ACEOF
21334#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21335_ACEOF
21336
21337fi
21338done
21339
21340
21341
21342
21343# Check platform - see if WinMain needed:
21344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
21345$as_echo_n "checking for native Win32... " >&6; }
21346case "$host" in
21347  *-*-mingw*)
21348    native_win32=yes
21349    ;;
21350  *)
21351    native_win32=no
21352    ;;
21353esac
21354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $native_win32" >&5
21355$as_echo "$native_win32" >&6; }
21356
21357 if test $native_win32 = yes; then
21358  BUILD_MINGW32_TRUE=
21359  BUILD_MINGW32_FALSE='#'
21360else
21361  BUILD_MINGW32_TRUE='#'
21362  BUILD_MINGW32_FALSE=
21363fi
21364
21365
21366# Set the
21367MINGW32_PACKAGE_DATA_DIR="data"
21368
21369
21370
21371if test $native_win32 = yes; then
21372
21373$as_echo "#define BUILD_MINGW32 1" >>confdefs.h
21374
21375   CFLAGS="$CFLAGS -D__GW32__"
21376   LIBS="$LIBS -luuid -lole32 -lwsock32 -mwindows"
21377   CPPFLAGS="$CPPFLAGS -idirafter $prefix/include/glibc"
21378   # Extract the first word of ""$target_alias-windres"", so it can be a program name with args.
21379set dummy "$target_alias-windres"; ac_word=$2
21380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21381$as_echo_n "checking for $ac_word... " >&6; }
21382if test "${ac_cv_path_WINDRES+set}" = set; then :
21383  $as_echo_n "(cached) " >&6
21384else
21385  case $WINDRES in
21386  [\\/]* | ?:[\\/]*)
21387  ac_cv_path_WINDRES="$WINDRES" # Let the user override the test with a path.
21388  ;;
21389  *)
21390  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21391for as_dir in $PATH
21392do
21393  IFS=$as_save_IFS
21394  test -z "$as_dir" && as_dir=.
21395    for ac_exec_ext in '' $ac_executable_extensions; do
21396  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21397    ac_cv_path_WINDRES="$as_dir/$ac_word$ac_exec_ext"
21398    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21399    break 2
21400  fi
21401done
21402  done
21403IFS=$as_save_IFS
21404
21405  test -z "$ac_cv_path_WINDRES" && ac_cv_path_WINDRES="no"
21406  ;;
21407esac
21408fi
21409WINDRES=$ac_cv_path_WINDRES
21410if test -n "$WINDRES"; then
21411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
21412$as_echo "$WINDRES" >&6; }
21413else
21414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21415$as_echo "no" >&6; }
21416fi
21417
21418
21419fi
21420
21421
21422T4K_DEVELOPER_WARNINGS="NO"
21423
21424DOXYFILE_SOURCE_DIR=$srcdir"/src"
21425
21426DOXYFILE_OUTPUT_DIR=doxygen
21427
21428
21429
21430
21431
21432
21433
21434
21435
21436
21437
21438
21439# Files:
21440DX_PROJECT=t4k_common
21441
21442DX_CONFIG=doxygen.cfg
21443
21444DX_DOCDIR=doxygen-doc
21445
21446
21447# Environment variables used inside doxygen.cfg:
21448DX_ENV="$DX_ENV SRCDIR='$srcdir'"
21449
21450DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'"
21451
21452DX_ENV="$DX_ENV DOCDIR='$DX_DOCDIR'"
21453
21454DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'"
21455
21456
21457# Doxygen itself:
21458
21459
21460
21461    # Check whether --enable-doxygen-doc was given.
21462if test "${enable_doxygen_doc+set}" = set; then :
21463  enableval=$enable_doxygen_doc;
21464case "$enableval" in
21465#(
21466y|Y|yes|Yes|YES)
21467    DX_FLAG_doc=1
21468
21469
21470;; #(
21471n|N|no|No|NO)
21472    DX_FLAG_doc=0
21473
21474;; #(
21475*)
21476    as_fn_error $? "invalid value '$enableval' given to doxygen-doc" "$LINENO" 5
21477;;
21478esac
21479
21480else
21481
21482DX_FLAG_doc=1
21483
21484
21485
21486fi
21487
21488if test "$DX_FLAG_doc" = 1; then
21489
21490if test -n "$ac_tool_prefix"; then
21491  # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
21492set dummy ${ac_tool_prefix}doxygen; ac_word=$2
21493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21494$as_echo_n "checking for $ac_word... " >&6; }
21495if test "${ac_cv_path_DX_DOXYGEN+set}" = set; then :
21496  $as_echo_n "(cached) " >&6
21497else
21498  case $DX_DOXYGEN in
21499  [\\/]* | ?:[\\/]*)
21500  ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path.
21501  ;;
21502  *)
21503  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21504for as_dir in $PATH
21505do
21506  IFS=$as_save_IFS
21507  test -z "$as_dir" && as_dir=.
21508    for ac_exec_ext in '' $ac_executable_extensions; do
21509  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21510    ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
21511    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21512    break 2
21513  fi
21514done
21515  done
21516IFS=$as_save_IFS
21517
21518  ;;
21519esac
21520fi
21521DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN
21522if test -n "$DX_DOXYGEN"; then
21523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOXYGEN" >&5
21524$as_echo "$DX_DOXYGEN" >&6; }
21525else
21526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21527$as_echo "no" >&6; }
21528fi
21529
21530
21531fi
21532if test -z "$ac_cv_path_DX_DOXYGEN"; then
21533  ac_pt_DX_DOXYGEN=$DX_DOXYGEN
21534  # Extract the first word of "doxygen", so it can be a program name with args.
21535set dummy doxygen; ac_word=$2
21536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21537$as_echo_n "checking for $ac_word... " >&6; }
21538if test "${ac_cv_path_ac_pt_DX_DOXYGEN+set}" = set; then :
21539  $as_echo_n "(cached) " >&6
21540else
21541  case $ac_pt_DX_DOXYGEN in
21542  [\\/]* | ?:[\\/]*)
21543  ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path.
21544  ;;
21545  *)
21546  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21547for as_dir in $PATH
21548do
21549  IFS=$as_save_IFS
21550  test -z "$as_dir" && as_dir=.
21551    for ac_exec_ext in '' $ac_executable_extensions; do
21552  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21553    ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
21554    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21555    break 2
21556  fi
21557done
21558  done
21559IFS=$as_save_IFS
21560
21561  ;;
21562esac
21563fi
21564ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN
21565if test -n "$ac_pt_DX_DOXYGEN"; then
21566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOXYGEN" >&5
21567$as_echo "$ac_pt_DX_DOXYGEN" >&6; }
21568else
21569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21570$as_echo "no" >&6; }
21571fi
21572
21573  if test "x$ac_pt_DX_DOXYGEN" = x; then
21574    DX_DOXYGEN=""
21575  else
21576    case $cross_compiling:$ac_tool_warned in
21577yes:)
21578{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21579$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21580ac_tool_warned=yes ;;
21581esac
21582    DX_DOXYGEN=$ac_pt_DX_DOXYGEN
21583  fi
21584else
21585  DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN"
21586fi
21587
21588if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then
21589    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - will not generate any doxygen documentation" >&5
21590$as_echo "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;}
21591    DX_FLAG_doc=0
21592
21593fi
21594
21595
21596if test -n "$ac_tool_prefix"; then
21597  # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args.
21598set dummy ${ac_tool_prefix}perl; ac_word=$2
21599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21600$as_echo_n "checking for $ac_word... " >&6; }
21601if test "${ac_cv_path_DX_PERL+set}" = set; then :
21602  $as_echo_n "(cached) " >&6
21603else
21604  case $DX_PERL in
21605  [\\/]* | ?:[\\/]*)
21606  ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path.
21607  ;;
21608  *)
21609  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21610for as_dir in $PATH
21611do
21612  IFS=$as_save_IFS
21613  test -z "$as_dir" && as_dir=.
21614    for ac_exec_ext in '' $ac_executable_extensions; do
21615  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21616    ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
21617    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21618    break 2
21619  fi
21620done
21621  done
21622IFS=$as_save_IFS
21623
21624  ;;
21625esac
21626fi
21627DX_PERL=$ac_cv_path_DX_PERL
21628if test -n "$DX_PERL"; then
21629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PERL" >&5
21630$as_echo "$DX_PERL" >&6; }
21631else
21632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21633$as_echo "no" >&6; }
21634fi
21635
21636
21637fi
21638if test -z "$ac_cv_path_DX_PERL"; then
21639  ac_pt_DX_PERL=$DX_PERL
21640  # Extract the first word of "perl", so it can be a program name with args.
21641set dummy perl; ac_word=$2
21642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21643$as_echo_n "checking for $ac_word... " >&6; }
21644if test "${ac_cv_path_ac_pt_DX_PERL+set}" = set; then :
21645  $as_echo_n "(cached) " >&6
21646else
21647  case $ac_pt_DX_PERL in
21648  [\\/]* | ?:[\\/]*)
21649  ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path.
21650  ;;
21651  *)
21652  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21653for as_dir in $PATH
21654do
21655  IFS=$as_save_IFS
21656  test -z "$as_dir" && as_dir=.
21657    for ac_exec_ext in '' $ac_executable_extensions; do
21658  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21659    ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
21660    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21661    break 2
21662  fi
21663done
21664  done
21665IFS=$as_save_IFS
21666
21667  ;;
21668esac
21669fi
21670ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL
21671if test -n "$ac_pt_DX_PERL"; then
21672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PERL" >&5
21673$as_echo "$ac_pt_DX_PERL" >&6; }
21674else
21675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21676$as_echo "no" >&6; }
21677fi
21678
21679  if test "x$ac_pt_DX_PERL" = x; then
21680    DX_PERL=""
21681  else
21682    case $cross_compiling:$ac_tool_warned in
21683yes:)
21684{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21685$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21686ac_tool_warned=yes ;;
21687esac
21688    DX_PERL=$ac_pt_DX_PERL
21689  fi
21690else
21691  DX_PERL="$ac_cv_path_DX_PERL"
21692fi
21693
21694if test "$DX_FLAG_doc$DX_PERL" = 1; then
21695    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - will not generate any doxygen documentation" >&5
21696$as_echo "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;}
21697    DX_FLAG_doc=0
21698
21699fi
21700
21701    :
21702fi
21703if test "$DX_FLAG_doc" = 1; then
21704     if :; then
21705  DX_COND_doc_TRUE=
21706  DX_COND_doc_FALSE='#'
21707else
21708  DX_COND_doc_TRUE='#'
21709  DX_COND_doc_FALSE=
21710fi
21711
21712    DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'"
21713
21714    :
21715else
21716     if false; then
21717  DX_COND_doc_TRUE=
21718  DX_COND_doc_FALSE='#'
21719else
21720  DX_COND_doc_TRUE='#'
21721  DX_COND_doc_FALSE=
21722fi
21723
21724
21725    :
21726fi
21727
21728
21729# Dot for graphics:
21730
21731
21732
21733    # Check whether --enable-doxygen-dot was given.
21734if test "${enable_doxygen_dot+set}" = set; then :
21735  enableval=$enable_doxygen_dot;
21736case "$enableval" in
21737#(
21738y|Y|yes|Yes|YES)
21739    DX_FLAG_dot=1
21740
21741
21742test "$DX_FLAG_doc" = "1" \
21743|| as_fn_error $? "doxygen-dot requires doxygen-dot" "$LINENO" 5
21744
21745;; #(
21746n|N|no|No|NO)
21747    DX_FLAG_dot=0
21748
21749;; #(
21750*)
21751    as_fn_error $? "invalid value '$enableval' given to doxygen-dot" "$LINENO" 5
21752;;
21753esac
21754
21755else
21756
21757DX_FLAG_dot=1
21758
21759
21760test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0
21761
21762
21763
21764fi
21765
21766if test "$DX_FLAG_dot" = 1; then
21767
21768if test -n "$ac_tool_prefix"; then
21769  # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
21770set dummy ${ac_tool_prefix}dot; ac_word=$2
21771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21772$as_echo_n "checking for $ac_word... " >&6; }
21773if test "${ac_cv_path_DX_DOT+set}" = set; then :
21774  $as_echo_n "(cached) " >&6
21775else
21776  case $DX_DOT in
21777  [\\/]* | ?:[\\/]*)
21778  ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path.
21779  ;;
21780  *)
21781  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21782for as_dir in $PATH
21783do
21784  IFS=$as_save_IFS
21785  test -z "$as_dir" && as_dir=.
21786    for ac_exec_ext in '' $ac_executable_extensions; do
21787  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21788    ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
21789    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21790    break 2
21791  fi
21792done
21793  done
21794IFS=$as_save_IFS
21795
21796  ;;
21797esac
21798fi
21799DX_DOT=$ac_cv_path_DX_DOT
21800if test -n "$DX_DOT"; then
21801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOT" >&5
21802$as_echo "$DX_DOT" >&6; }
21803else
21804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21805$as_echo "no" >&6; }
21806fi
21807
21808
21809fi
21810if test -z "$ac_cv_path_DX_DOT"; then
21811  ac_pt_DX_DOT=$DX_DOT
21812  # Extract the first word of "dot", so it can be a program name with args.
21813set dummy dot; ac_word=$2
21814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21815$as_echo_n "checking for $ac_word... " >&6; }
21816if test "${ac_cv_path_ac_pt_DX_DOT+set}" = set; then :
21817  $as_echo_n "(cached) " >&6
21818else
21819  case $ac_pt_DX_DOT in
21820  [\\/]* | ?:[\\/]*)
21821  ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path.
21822  ;;
21823  *)
21824  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21825for as_dir in $PATH
21826do
21827  IFS=$as_save_IFS
21828  test -z "$as_dir" && as_dir=.
21829    for ac_exec_ext in '' $ac_executable_extensions; do
21830  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21831    ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
21832    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21833    break 2
21834  fi
21835done
21836  done
21837IFS=$as_save_IFS
21838
21839  ;;
21840esac
21841fi
21842ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT
21843if test -n "$ac_pt_DX_DOT"; then
21844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOT" >&5
21845$as_echo "$ac_pt_DX_DOT" >&6; }
21846else
21847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21848$as_echo "no" >&6; }
21849fi
21850
21851  if test "x$ac_pt_DX_DOT" = x; then
21852    DX_DOT=""
21853  else
21854    case $cross_compiling:$ac_tool_warned in
21855yes:)
21856{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21857$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21858ac_tool_warned=yes ;;
21859esac
21860    DX_DOT=$ac_pt_DX_DOT
21861  fi
21862else
21863  DX_DOT="$ac_cv_path_DX_DOT"
21864fi
21865
21866if test "$DX_FLAG_dot$DX_DOT" = 1; then
21867    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5
21868$as_echo "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;}
21869    DX_FLAG_dot=0
21870
21871fi
21872
21873    :
21874fi
21875if test "$DX_FLAG_dot" = 1; then
21876     if :; then
21877  DX_COND_dot_TRUE=
21878  DX_COND_dot_FALSE='#'
21879else
21880  DX_COND_dot_TRUE='#'
21881  DX_COND_dot_FALSE=
21882fi
21883
21884    DX_ENV="$DX_ENV HAVE_DOT='YES'"
21885
21886             DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'"
21887
21888    :
21889else
21890     if false; then
21891  DX_COND_dot_TRUE=
21892  DX_COND_dot_FALSE='#'
21893else
21894  DX_COND_dot_TRUE='#'
21895  DX_COND_dot_FALSE=
21896fi
21897
21898    DX_ENV="$DX_ENV HAVE_DOT='NO'"
21899
21900    :
21901fi
21902
21903
21904# Man pages generation:
21905
21906
21907
21908    # Check whether --enable-doxygen-man was given.
21909if test "${enable_doxygen_man+set}" = set; then :
21910  enableval=$enable_doxygen_man;
21911case "$enableval" in
21912#(
21913y|Y|yes|Yes|YES)
21914    DX_FLAG_man=1
21915
21916
21917test "$DX_FLAG_doc" = "1" \
21918|| as_fn_error $? "doxygen-man requires doxygen-man" "$LINENO" 5
21919
21920;; #(
21921n|N|no|No|NO)
21922    DX_FLAG_man=0
21923
21924;; #(
21925*)
21926    as_fn_error $? "invalid value '$enableval' given to doxygen-man" "$LINENO" 5
21927;;
21928esac
21929
21930else
21931
21932DX_FLAG_man=0
21933
21934
21935test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0
21936
21937
21938
21939fi
21940
21941if test "$DX_FLAG_man" = 1; then
21942
21943    :
21944fi
21945if test "$DX_FLAG_man" = 1; then
21946     if :; then
21947  DX_COND_man_TRUE=
21948  DX_COND_man_FALSE='#'
21949else
21950  DX_COND_man_TRUE='#'
21951  DX_COND_man_FALSE=
21952fi
21953
21954    DX_ENV="$DX_ENV GENERATE_MAN='YES'"
21955
21956    :
21957else
21958     if false; then
21959  DX_COND_man_TRUE=
21960  DX_COND_man_FALSE='#'
21961else
21962  DX_COND_man_TRUE='#'
21963  DX_COND_man_FALSE=
21964fi
21965
21966    DX_ENV="$DX_ENV GENERATE_MAN='NO'"
21967
21968    :
21969fi
21970
21971
21972# RTF file generation:
21973
21974
21975
21976    # Check whether --enable-doxygen-rtf was given.
21977if test "${enable_doxygen_rtf+set}" = set; then :
21978  enableval=$enable_doxygen_rtf;
21979case "$enableval" in
21980#(
21981y|Y|yes|Yes|YES)
21982    DX_FLAG_rtf=1
21983
21984
21985test "$DX_FLAG_doc" = "1" \
21986|| as_fn_error $? "doxygen-rtf requires doxygen-rtf" "$LINENO" 5
21987
21988;; #(
21989n|N|no|No|NO)
21990    DX_FLAG_rtf=0
21991
21992;; #(
21993*)
21994    as_fn_error $? "invalid value '$enableval' given to doxygen-rtf" "$LINENO" 5
21995;;
21996esac
21997
21998else
21999
22000DX_FLAG_rtf=0
22001
22002
22003test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0
22004
22005
22006
22007fi
22008
22009if test "$DX_FLAG_rtf" = 1; then
22010
22011    :
22012fi
22013if test "$DX_FLAG_rtf" = 1; then
22014     if :; then
22015  DX_COND_rtf_TRUE=
22016  DX_COND_rtf_FALSE='#'
22017else
22018  DX_COND_rtf_TRUE='#'
22019  DX_COND_rtf_FALSE=
22020fi
22021
22022    DX_ENV="$DX_ENV GENERATE_RTF='YES'"
22023
22024    :
22025else
22026     if false; then
22027  DX_COND_rtf_TRUE=
22028  DX_COND_rtf_FALSE='#'
22029else
22030  DX_COND_rtf_TRUE='#'
22031  DX_COND_rtf_FALSE=
22032fi
22033
22034    DX_ENV="$DX_ENV GENERATE_RTF='NO'"
22035
22036    :
22037fi
22038
22039
22040# XML file generation:
22041
22042
22043
22044    # Check whether --enable-doxygen-xml was given.
22045if test "${enable_doxygen_xml+set}" = set; then :
22046  enableval=$enable_doxygen_xml;
22047case "$enableval" in
22048#(
22049y|Y|yes|Yes|YES)
22050    DX_FLAG_xml=1
22051
22052
22053test "$DX_FLAG_doc" = "1" \
22054|| as_fn_error $? "doxygen-xml requires doxygen-xml" "$LINENO" 5
22055
22056;; #(
22057n|N|no|No|NO)
22058    DX_FLAG_xml=0
22059
22060;; #(
22061*)
22062    as_fn_error $? "invalid value '$enableval' given to doxygen-xml" "$LINENO" 5
22063;;
22064esac
22065
22066else
22067
22068DX_FLAG_xml=0
22069
22070
22071test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0
22072
22073
22074
22075fi
22076
22077if test "$DX_FLAG_xml" = 1; then
22078
22079    :
22080fi
22081if test "$DX_FLAG_xml" = 1; then
22082     if :; then
22083  DX_COND_xml_TRUE=
22084  DX_COND_xml_FALSE='#'
22085else
22086  DX_COND_xml_TRUE='#'
22087  DX_COND_xml_FALSE=
22088fi
22089
22090    DX_ENV="$DX_ENV GENERATE_XML='YES'"
22091
22092    :
22093else
22094     if false; then
22095  DX_COND_xml_TRUE=
22096  DX_COND_xml_FALSE='#'
22097else
22098  DX_COND_xml_TRUE='#'
22099  DX_COND_xml_FALSE=
22100fi
22101
22102    DX_ENV="$DX_ENV GENERATE_XML='NO'"
22103
22104    :
22105fi
22106
22107
22108# (Compressed) HTML help generation:
22109
22110
22111
22112    # Check whether --enable-doxygen-chm was given.
22113if test "${enable_doxygen_chm+set}" = set; then :
22114  enableval=$enable_doxygen_chm;
22115case "$enableval" in
22116#(
22117y|Y|yes|Yes|YES)
22118    DX_FLAG_chm=1
22119
22120
22121test "$DX_FLAG_doc" = "1" \
22122|| as_fn_error $? "doxygen-chm requires doxygen-chm" "$LINENO" 5
22123
22124;; #(
22125n|N|no|No|NO)
22126    DX_FLAG_chm=0
22127
22128;; #(
22129*)
22130    as_fn_error $? "invalid value '$enableval' given to doxygen-chm" "$LINENO" 5
22131;;
22132esac
22133
22134else
22135
22136DX_FLAG_chm=0
22137
22138
22139test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0
22140
22141
22142
22143fi
22144
22145if test "$DX_FLAG_chm" = 1; then
22146
22147if test -n "$ac_tool_prefix"; then
22148  # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args.
22149set dummy ${ac_tool_prefix}hhc; ac_word=$2
22150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22151$as_echo_n "checking for $ac_word... " >&6; }
22152if test "${ac_cv_path_DX_HHC+set}" = set; then :
22153  $as_echo_n "(cached) " >&6
22154else
22155  case $DX_HHC in
22156  [\\/]* | ?:[\\/]*)
22157  ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path.
22158  ;;
22159  *)
22160  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22161for as_dir in $PATH
22162do
22163  IFS=$as_save_IFS
22164  test -z "$as_dir" && as_dir=.
22165    for ac_exec_ext in '' $ac_executable_extensions; do
22166  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22167    ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
22168    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22169    break 2
22170  fi
22171done
22172  done
22173IFS=$as_save_IFS
22174
22175  ;;
22176esac
22177fi
22178DX_HHC=$ac_cv_path_DX_HHC
22179if test -n "$DX_HHC"; then
22180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_HHC" >&5
22181$as_echo "$DX_HHC" >&6; }
22182else
22183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22184$as_echo "no" >&6; }
22185fi
22186
22187
22188fi
22189if test -z "$ac_cv_path_DX_HHC"; then
22190  ac_pt_DX_HHC=$DX_HHC
22191  # Extract the first word of "hhc", so it can be a program name with args.
22192set dummy hhc; ac_word=$2
22193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22194$as_echo_n "checking for $ac_word... " >&6; }
22195if test "${ac_cv_path_ac_pt_DX_HHC+set}" = set; then :
22196  $as_echo_n "(cached) " >&6
22197else
22198  case $ac_pt_DX_HHC in
22199  [\\/]* | ?:[\\/]*)
22200  ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path.
22201  ;;
22202  *)
22203  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22204for as_dir in $PATH
22205do
22206  IFS=$as_save_IFS
22207  test -z "$as_dir" && as_dir=.
22208    for ac_exec_ext in '' $ac_executable_extensions; do
22209  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22210    ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
22211    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22212    break 2
22213  fi
22214done
22215  done
22216IFS=$as_save_IFS
22217
22218  ;;
22219esac
22220fi
22221ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC
22222if test -n "$ac_pt_DX_HHC"; then
22223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_HHC" >&5
22224$as_echo "$ac_pt_DX_HHC" >&6; }
22225else
22226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22227$as_echo "no" >&6; }
22228fi
22229
22230  if test "x$ac_pt_DX_HHC" = x; then
22231    DX_HHC=""
22232  else
22233    case $cross_compiling:$ac_tool_warned in
22234yes:)
22235{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22236$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22237ac_tool_warned=yes ;;
22238esac
22239    DX_HHC=$ac_pt_DX_HHC
22240  fi
22241else
22242  DX_HHC="$ac_cv_path_DX_HHC"
22243fi
22244
22245if test "$DX_FLAG_chm$DX_HHC" = 1; then
22246    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5
22247$as_echo "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;}
22248    DX_FLAG_chm=0
22249
22250fi
22251
22252    :
22253fi
22254if test "$DX_FLAG_chm" = 1; then
22255     if :; then
22256  DX_COND_chm_TRUE=
22257  DX_COND_chm_FALSE='#'
22258else
22259  DX_COND_chm_TRUE='#'
22260  DX_COND_chm_FALSE=
22261fi
22262
22263    DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'"
22264
22265             DX_ENV="$DX_ENV GENERATE_HTML='YES'"
22266
22267             DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'"
22268
22269    :
22270else
22271     if false; then
22272  DX_COND_chm_TRUE=
22273  DX_COND_chm_FALSE='#'
22274else
22275  DX_COND_chm_TRUE='#'
22276  DX_COND_chm_FALSE=
22277fi
22278
22279    DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'"
22280
22281    :
22282fi
22283
22284
22285# Seperate CHI file generation.
22286
22287
22288
22289    # Check whether --enable-doxygen-chi was given.
22290if test "${enable_doxygen_chi+set}" = set; then :
22291  enableval=$enable_doxygen_chi;
22292case "$enableval" in
22293#(
22294y|Y|yes|Yes|YES)
22295    DX_FLAG_chi=1
22296
22297
22298test "$DX_FLAG_chm" = "1" \
22299|| as_fn_error $? "doxygen-chi requires doxygen-chi" "$LINENO" 5
22300
22301;; #(
22302n|N|no|No|NO)
22303    DX_FLAG_chi=0
22304
22305;; #(
22306*)
22307    as_fn_error $? "invalid value '$enableval' given to doxygen-chi" "$LINENO" 5
22308;;
22309esac
22310
22311else
22312
22313DX_FLAG_chi=0
22314
22315
22316test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0
22317
22318
22319
22320fi
22321
22322if test "$DX_FLAG_chi" = 1; then
22323
22324    :
22325fi
22326if test "$DX_FLAG_chi" = 1; then
22327     if :; then
22328  DX_COND_chi_TRUE=
22329  DX_COND_chi_FALSE='#'
22330else
22331  DX_COND_chi_TRUE='#'
22332  DX_COND_chi_FALSE=
22333fi
22334
22335    DX_ENV="$DX_ENV GENERATE_CHI='YES'"
22336
22337    :
22338else
22339     if false; then
22340  DX_COND_chi_TRUE=
22341  DX_COND_chi_FALSE='#'
22342else
22343  DX_COND_chi_TRUE='#'
22344  DX_COND_chi_FALSE=
22345fi
22346
22347    DX_ENV="$DX_ENV GENERATE_CHI='NO'"
22348
22349    :
22350fi
22351
22352
22353# Plain HTML pages generation:
22354
22355
22356
22357    # Check whether --enable-doxygen-html was given.
22358if test "${enable_doxygen_html+set}" = set; then :
22359  enableval=$enable_doxygen_html;
22360case "$enableval" in
22361#(
22362y|Y|yes|Yes|YES)
22363    DX_FLAG_html=1
22364
22365
22366test "$DX_FLAG_doc" = "1" \
22367|| as_fn_error $? "doxygen-html requires doxygen-html" "$LINENO" 5
22368
22369test "$DX_FLAG_chm" = "0" \
22370|| as_fn_error $? "doxygen-html contradicts doxygen-html" "$LINENO" 5
22371
22372;; #(
22373n|N|no|No|NO)
22374    DX_FLAG_html=0
22375
22376;; #(
22377*)
22378    as_fn_error $? "invalid value '$enableval' given to doxygen-html" "$LINENO" 5
22379;;
22380esac
22381
22382else
22383
22384DX_FLAG_html=1
22385
22386
22387test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0
22388
22389
22390test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0
22391
22392
22393
22394fi
22395
22396if test "$DX_FLAG_html" = 1; then
22397
22398    :
22399fi
22400if test "$DX_FLAG_html" = 1; then
22401     if :; then
22402  DX_COND_html_TRUE=
22403  DX_COND_html_FALSE='#'
22404else
22405  DX_COND_html_TRUE='#'
22406  DX_COND_html_FALSE=
22407fi
22408
22409    DX_ENV="$DX_ENV GENERATE_HTML='YES'"
22410
22411    :
22412else
22413     if false; then
22414  DX_COND_html_TRUE=
22415  DX_COND_html_FALSE='#'
22416else
22417  DX_COND_html_TRUE='#'
22418  DX_COND_html_FALSE=
22419fi
22420
22421    test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'"
22422
22423    :
22424fi
22425
22426
22427# PostScript file generation:
22428
22429
22430
22431    # Check whether --enable-doxygen-ps was given.
22432if test "${enable_doxygen_ps+set}" = set; then :
22433  enableval=$enable_doxygen_ps;
22434case "$enableval" in
22435#(
22436y|Y|yes|Yes|YES)
22437    DX_FLAG_ps=1
22438
22439
22440test "$DX_FLAG_doc" = "1" \
22441|| as_fn_error $? "doxygen-ps requires doxygen-ps" "$LINENO" 5
22442
22443;; #(
22444n|N|no|No|NO)
22445    DX_FLAG_ps=0
22446
22447;; #(
22448*)
22449    as_fn_error $? "invalid value '$enableval' given to doxygen-ps" "$LINENO" 5
22450;;
22451esac
22452
22453else
22454
22455DX_FLAG_ps=0
22456
22457
22458test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0
22459
22460
22461
22462fi
22463
22464if test "$DX_FLAG_ps" = 1; then
22465
22466if test -n "$ac_tool_prefix"; then
22467  # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args.
22468set dummy ${ac_tool_prefix}latex; ac_word=$2
22469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22470$as_echo_n "checking for $ac_word... " >&6; }
22471if test "${ac_cv_path_DX_LATEX+set}" = set; then :
22472  $as_echo_n "(cached) " >&6
22473else
22474  case $DX_LATEX in
22475  [\\/]* | ?:[\\/]*)
22476  ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path.
22477  ;;
22478  *)
22479  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22480for as_dir in $PATH
22481do
22482  IFS=$as_save_IFS
22483  test -z "$as_dir" && as_dir=.
22484    for ac_exec_ext in '' $ac_executable_extensions; do
22485  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22486    ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
22487    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22488    break 2
22489  fi
22490done
22491  done
22492IFS=$as_save_IFS
22493
22494  ;;
22495esac
22496fi
22497DX_LATEX=$ac_cv_path_DX_LATEX
22498if test -n "$DX_LATEX"; then
22499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_LATEX" >&5
22500$as_echo "$DX_LATEX" >&6; }
22501else
22502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22503$as_echo "no" >&6; }
22504fi
22505
22506
22507fi
22508if test -z "$ac_cv_path_DX_LATEX"; then
22509  ac_pt_DX_LATEX=$DX_LATEX
22510  # Extract the first word of "latex", so it can be a program name with args.
22511set dummy latex; ac_word=$2
22512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22513$as_echo_n "checking for $ac_word... " >&6; }
22514if test "${ac_cv_path_ac_pt_DX_LATEX+set}" = set; then :
22515  $as_echo_n "(cached) " >&6
22516else
22517  case $ac_pt_DX_LATEX in
22518  [\\/]* | ?:[\\/]*)
22519  ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path.
22520  ;;
22521  *)
22522  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22523for as_dir in $PATH
22524do
22525  IFS=$as_save_IFS
22526  test -z "$as_dir" && as_dir=.
22527    for ac_exec_ext in '' $ac_executable_extensions; do
22528  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22529    ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
22530    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22531    break 2
22532  fi
22533done
22534  done
22535IFS=$as_save_IFS
22536
22537  ;;
22538esac
22539fi
22540ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX
22541if test -n "$ac_pt_DX_LATEX"; then
22542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_LATEX" >&5
22543$as_echo "$ac_pt_DX_LATEX" >&6; }
22544else
22545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22546$as_echo "no" >&6; }
22547fi
22548
22549  if test "x$ac_pt_DX_LATEX" = x; then
22550    DX_LATEX=""
22551  else
22552    case $cross_compiling:$ac_tool_warned in
22553yes:)
22554{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22555$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22556ac_tool_warned=yes ;;
22557esac
22558    DX_LATEX=$ac_pt_DX_LATEX
22559  fi
22560else
22561  DX_LATEX="$ac_cv_path_DX_LATEX"
22562fi
22563
22564if test "$DX_FLAG_ps$DX_LATEX" = 1; then
22565    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5
22566$as_echo "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;}
22567    DX_FLAG_ps=0
22568
22569fi
22570
22571
22572if test -n "$ac_tool_prefix"; then
22573  # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
22574set dummy ${ac_tool_prefix}makeindex; ac_word=$2
22575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22576$as_echo_n "checking for $ac_word... " >&6; }
22577if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then :
22578  $as_echo_n "(cached) " >&6
22579else
22580  case $DX_MAKEINDEX in
22581  [\\/]* | ?:[\\/]*)
22582  ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
22583  ;;
22584  *)
22585  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22586for as_dir in $PATH
22587do
22588  IFS=$as_save_IFS
22589  test -z "$as_dir" && as_dir=.
22590    for ac_exec_ext in '' $ac_executable_extensions; do
22591  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22592    ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
22593    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22594    break 2
22595  fi
22596done
22597  done
22598IFS=$as_save_IFS
22599
22600  ;;
22601esac
22602fi
22603DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
22604if test -n "$DX_MAKEINDEX"; then
22605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
22606$as_echo "$DX_MAKEINDEX" >&6; }
22607else
22608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22609$as_echo "no" >&6; }
22610fi
22611
22612
22613fi
22614if test -z "$ac_cv_path_DX_MAKEINDEX"; then
22615  ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
22616  # Extract the first word of "makeindex", so it can be a program name with args.
22617set dummy makeindex; ac_word=$2
22618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22619$as_echo_n "checking for $ac_word... " >&6; }
22620if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then :
22621  $as_echo_n "(cached) " >&6
22622else
22623  case $ac_pt_DX_MAKEINDEX in
22624  [\\/]* | ?:[\\/]*)
22625  ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
22626  ;;
22627  *)
22628  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22629for as_dir in $PATH
22630do
22631  IFS=$as_save_IFS
22632  test -z "$as_dir" && as_dir=.
22633    for ac_exec_ext in '' $ac_executable_extensions; do
22634  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22635    ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
22636    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22637    break 2
22638  fi
22639done
22640  done
22641IFS=$as_save_IFS
22642
22643  ;;
22644esac
22645fi
22646ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
22647if test -n "$ac_pt_DX_MAKEINDEX"; then
22648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
22649$as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
22650else
22651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22652$as_echo "no" >&6; }
22653fi
22654
22655  if test "x$ac_pt_DX_MAKEINDEX" = x; then
22656    DX_MAKEINDEX=""
22657  else
22658    case $cross_compiling:$ac_tool_warned in
22659yes:)
22660{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22661$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22662ac_tool_warned=yes ;;
22663esac
22664    DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
22665  fi
22666else
22667  DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
22668fi
22669
22670if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then
22671    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5
22672$as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;}
22673    DX_FLAG_ps=0
22674
22675fi
22676
22677
22678if test -n "$ac_tool_prefix"; then
22679  # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args.
22680set dummy ${ac_tool_prefix}dvips; ac_word=$2
22681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22682$as_echo_n "checking for $ac_word... " >&6; }
22683if test "${ac_cv_path_DX_DVIPS+set}" = set; then :
22684  $as_echo_n "(cached) " >&6
22685else
22686  case $DX_DVIPS in
22687  [\\/]* | ?:[\\/]*)
22688  ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path.
22689  ;;
22690  *)
22691  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22692for as_dir in $PATH
22693do
22694  IFS=$as_save_IFS
22695  test -z "$as_dir" && as_dir=.
22696    for ac_exec_ext in '' $ac_executable_extensions; do
22697  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22698    ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
22699    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22700    break 2
22701  fi
22702done
22703  done
22704IFS=$as_save_IFS
22705
22706  ;;
22707esac
22708fi
22709DX_DVIPS=$ac_cv_path_DX_DVIPS
22710if test -n "$DX_DVIPS"; then
22711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DVIPS" >&5
22712$as_echo "$DX_DVIPS" >&6; }
22713else
22714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22715$as_echo "no" >&6; }
22716fi
22717
22718
22719fi
22720if test -z "$ac_cv_path_DX_DVIPS"; then
22721  ac_pt_DX_DVIPS=$DX_DVIPS
22722  # Extract the first word of "dvips", so it can be a program name with args.
22723set dummy dvips; ac_word=$2
22724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22725$as_echo_n "checking for $ac_word... " >&6; }
22726if test "${ac_cv_path_ac_pt_DX_DVIPS+set}" = set; then :
22727  $as_echo_n "(cached) " >&6
22728else
22729  case $ac_pt_DX_DVIPS in
22730  [\\/]* | ?:[\\/]*)
22731  ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path.
22732  ;;
22733  *)
22734  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22735for as_dir in $PATH
22736do
22737  IFS=$as_save_IFS
22738  test -z "$as_dir" && as_dir=.
22739    for ac_exec_ext in '' $ac_executable_extensions; do
22740  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22741    ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
22742    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22743    break 2
22744  fi
22745done
22746  done
22747IFS=$as_save_IFS
22748
22749  ;;
22750esac
22751fi
22752ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS
22753if test -n "$ac_pt_DX_DVIPS"; then
22754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DVIPS" >&5
22755$as_echo "$ac_pt_DX_DVIPS" >&6; }
22756else
22757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22758$as_echo "no" >&6; }
22759fi
22760
22761  if test "x$ac_pt_DX_DVIPS" = x; then
22762    DX_DVIPS=""
22763  else
22764    case $cross_compiling:$ac_tool_warned in
22765yes:)
22766{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22767$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22768ac_tool_warned=yes ;;
22769esac
22770    DX_DVIPS=$ac_pt_DX_DVIPS
22771  fi
22772else
22773  DX_DVIPS="$ac_cv_path_DX_DVIPS"
22774fi
22775
22776if test "$DX_FLAG_ps$DX_DVIPS" = 1; then
22777    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5
22778$as_echo "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;}
22779    DX_FLAG_ps=0
22780
22781fi
22782
22783
22784if test -n "$ac_tool_prefix"; then
22785  # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
22786set dummy ${ac_tool_prefix}egrep; ac_word=$2
22787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22788$as_echo_n "checking for $ac_word... " >&6; }
22789if test "${ac_cv_path_DX_EGREP+set}" = set; then :
22790  $as_echo_n "(cached) " >&6
22791else
22792  case $DX_EGREP in
22793  [\\/]* | ?:[\\/]*)
22794  ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
22795  ;;
22796  *)
22797  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22798for as_dir in $PATH
22799do
22800  IFS=$as_save_IFS
22801  test -z "$as_dir" && as_dir=.
22802    for ac_exec_ext in '' $ac_executable_extensions; do
22803  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22804    ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
22805    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22806    break 2
22807  fi
22808done
22809  done
22810IFS=$as_save_IFS
22811
22812  ;;
22813esac
22814fi
22815DX_EGREP=$ac_cv_path_DX_EGREP
22816if test -n "$DX_EGREP"; then
22817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
22818$as_echo "$DX_EGREP" >&6; }
22819else
22820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22821$as_echo "no" >&6; }
22822fi
22823
22824
22825fi
22826if test -z "$ac_cv_path_DX_EGREP"; then
22827  ac_pt_DX_EGREP=$DX_EGREP
22828  # Extract the first word of "egrep", so it can be a program name with args.
22829set dummy egrep; ac_word=$2
22830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22831$as_echo_n "checking for $ac_word... " >&6; }
22832if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then :
22833  $as_echo_n "(cached) " >&6
22834else
22835  case $ac_pt_DX_EGREP in
22836  [\\/]* | ?:[\\/]*)
22837  ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
22838  ;;
22839  *)
22840  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22841for as_dir in $PATH
22842do
22843  IFS=$as_save_IFS
22844  test -z "$as_dir" && as_dir=.
22845    for ac_exec_ext in '' $ac_executable_extensions; do
22846  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22847    ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
22848    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22849    break 2
22850  fi
22851done
22852  done
22853IFS=$as_save_IFS
22854
22855  ;;
22856esac
22857fi
22858ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
22859if test -n "$ac_pt_DX_EGREP"; then
22860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
22861$as_echo "$ac_pt_DX_EGREP" >&6; }
22862else
22863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22864$as_echo "no" >&6; }
22865fi
22866
22867  if test "x$ac_pt_DX_EGREP" = x; then
22868    DX_EGREP=""
22869  else
22870    case $cross_compiling:$ac_tool_warned in
22871yes:)
22872{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22873$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22874ac_tool_warned=yes ;;
22875esac
22876    DX_EGREP=$ac_pt_DX_EGREP
22877  fi
22878else
22879  DX_EGREP="$ac_cv_path_DX_EGREP"
22880fi
22881
22882if test "$DX_FLAG_ps$DX_EGREP" = 1; then
22883    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5
22884$as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;}
22885    DX_FLAG_ps=0
22886
22887fi
22888
22889    :
22890fi
22891if test "$DX_FLAG_ps" = 1; then
22892     if :; then
22893  DX_COND_ps_TRUE=
22894  DX_COND_ps_FALSE='#'
22895else
22896  DX_COND_ps_TRUE='#'
22897  DX_COND_ps_FALSE=
22898fi
22899
22900
22901    :
22902else
22903     if false; then
22904  DX_COND_ps_TRUE=
22905  DX_COND_ps_FALSE='#'
22906else
22907  DX_COND_ps_TRUE='#'
22908  DX_COND_ps_FALSE=
22909fi
22910
22911
22912    :
22913fi
22914
22915
22916# PDF file generation:
22917
22918
22919
22920    # Check whether --enable-doxygen-pdf was given.
22921if test "${enable_doxygen_pdf+set}" = set; then :
22922  enableval=$enable_doxygen_pdf;
22923case "$enableval" in
22924#(
22925y|Y|yes|Yes|YES)
22926    DX_FLAG_pdf=1
22927
22928
22929test "$DX_FLAG_doc" = "1" \
22930|| as_fn_error $? "doxygen-pdf requires doxygen-pdf" "$LINENO" 5
22931
22932;; #(
22933n|N|no|No|NO)
22934    DX_FLAG_pdf=0
22935
22936;; #(
22937*)
22938    as_fn_error $? "invalid value '$enableval' given to doxygen-pdf" "$LINENO" 5
22939;;
22940esac
22941
22942else
22943
22944DX_FLAG_pdf=1
22945
22946
22947test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0
22948
22949
22950
22951fi
22952
22953if test "$DX_FLAG_pdf" = 1; then
22954
22955if test -n "$ac_tool_prefix"; then
22956  # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
22957set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
22958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22959$as_echo_n "checking for $ac_word... " >&6; }
22960if test "${ac_cv_path_DX_PDFLATEX+set}" = set; then :
22961  $as_echo_n "(cached) " >&6
22962else
22963  case $DX_PDFLATEX in
22964  [\\/]* | ?:[\\/]*)
22965  ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path.
22966  ;;
22967  *)
22968  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22969for as_dir in $PATH
22970do
22971  IFS=$as_save_IFS
22972  test -z "$as_dir" && as_dir=.
22973    for ac_exec_ext in '' $ac_executable_extensions; do
22974  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22975    ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
22976    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22977    break 2
22978  fi
22979done
22980  done
22981IFS=$as_save_IFS
22982
22983  ;;
22984esac
22985fi
22986DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX
22987if test -n "$DX_PDFLATEX"; then
22988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PDFLATEX" >&5
22989$as_echo "$DX_PDFLATEX" >&6; }
22990else
22991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22992$as_echo "no" >&6; }
22993fi
22994
22995
22996fi
22997if test -z "$ac_cv_path_DX_PDFLATEX"; then
22998  ac_pt_DX_PDFLATEX=$DX_PDFLATEX
22999  # Extract the first word of "pdflatex", so it can be a program name with args.
23000set dummy pdflatex; ac_word=$2
23001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23002$as_echo_n "checking for $ac_word... " >&6; }
23003if test "${ac_cv_path_ac_pt_DX_PDFLATEX+set}" = set; then :
23004  $as_echo_n "(cached) " >&6
23005else
23006  case $ac_pt_DX_PDFLATEX in
23007  [\\/]* | ?:[\\/]*)
23008  ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path.
23009  ;;
23010  *)
23011  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23012for as_dir in $PATH
23013do
23014  IFS=$as_save_IFS
23015  test -z "$as_dir" && as_dir=.
23016    for ac_exec_ext in '' $ac_executable_extensions; do
23017  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23018    ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
23019    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23020    break 2
23021  fi
23022done
23023  done
23024IFS=$as_save_IFS
23025
23026  ;;
23027esac
23028fi
23029ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX
23030if test -n "$ac_pt_DX_PDFLATEX"; then
23031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PDFLATEX" >&5
23032$as_echo "$ac_pt_DX_PDFLATEX" >&6; }
23033else
23034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23035$as_echo "no" >&6; }
23036fi
23037
23038  if test "x$ac_pt_DX_PDFLATEX" = x; then
23039    DX_PDFLATEX=""
23040  else
23041    case $cross_compiling:$ac_tool_warned in
23042yes:)
23043{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23044$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23045ac_tool_warned=yes ;;
23046esac
23047    DX_PDFLATEX=$ac_pt_DX_PDFLATEX
23048  fi
23049else
23050  DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX"
23051fi
23052
23053if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then
23054    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5
23055$as_echo "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;}
23056    DX_FLAG_pdf=0
23057
23058fi
23059
23060
23061if test -n "$ac_tool_prefix"; then
23062  # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
23063set dummy ${ac_tool_prefix}makeindex; ac_word=$2
23064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23065$as_echo_n "checking for $ac_word... " >&6; }
23066if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then :
23067  $as_echo_n "(cached) " >&6
23068else
23069  case $DX_MAKEINDEX in
23070  [\\/]* | ?:[\\/]*)
23071  ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
23072  ;;
23073  *)
23074  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23075for as_dir in $PATH
23076do
23077  IFS=$as_save_IFS
23078  test -z "$as_dir" && as_dir=.
23079    for ac_exec_ext in '' $ac_executable_extensions; do
23080  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23081    ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
23082    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23083    break 2
23084  fi
23085done
23086  done
23087IFS=$as_save_IFS
23088
23089  ;;
23090esac
23091fi
23092DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
23093if test -n "$DX_MAKEINDEX"; then
23094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
23095$as_echo "$DX_MAKEINDEX" >&6; }
23096else
23097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23098$as_echo "no" >&6; }
23099fi
23100
23101
23102fi
23103if test -z "$ac_cv_path_DX_MAKEINDEX"; then
23104  ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
23105  # Extract the first word of "makeindex", so it can be a program name with args.
23106set dummy makeindex; ac_word=$2
23107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23108$as_echo_n "checking for $ac_word... " >&6; }
23109if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then :
23110  $as_echo_n "(cached) " >&6
23111else
23112  case $ac_pt_DX_MAKEINDEX in
23113  [\\/]* | ?:[\\/]*)
23114  ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
23115  ;;
23116  *)
23117  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23118for as_dir in $PATH
23119do
23120  IFS=$as_save_IFS
23121  test -z "$as_dir" && as_dir=.
23122    for ac_exec_ext in '' $ac_executable_extensions; do
23123  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23124    ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
23125    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23126    break 2
23127  fi
23128done
23129  done
23130IFS=$as_save_IFS
23131
23132  ;;
23133esac
23134fi
23135ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
23136if test -n "$ac_pt_DX_MAKEINDEX"; then
23137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
23138$as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
23139else
23140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23141$as_echo "no" >&6; }
23142fi
23143
23144  if test "x$ac_pt_DX_MAKEINDEX" = x; then
23145    DX_MAKEINDEX=""
23146  else
23147    case $cross_compiling:$ac_tool_warned in
23148yes:)
23149{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23150$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23151ac_tool_warned=yes ;;
23152esac
23153    DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
23154  fi
23155else
23156  DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
23157fi
23158
23159if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then
23160    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5
23161$as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;}
23162    DX_FLAG_pdf=0
23163
23164fi
23165
23166
23167if test -n "$ac_tool_prefix"; then
23168  # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
23169set dummy ${ac_tool_prefix}egrep; ac_word=$2
23170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23171$as_echo_n "checking for $ac_word... " >&6; }
23172if test "${ac_cv_path_DX_EGREP+set}" = set; then :
23173  $as_echo_n "(cached) " >&6
23174else
23175  case $DX_EGREP in
23176  [\\/]* | ?:[\\/]*)
23177  ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
23178  ;;
23179  *)
23180  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23181for as_dir in $PATH
23182do
23183  IFS=$as_save_IFS
23184  test -z "$as_dir" && as_dir=.
23185    for ac_exec_ext in '' $ac_executable_extensions; do
23186  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23187    ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
23188    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23189    break 2
23190  fi
23191done
23192  done
23193IFS=$as_save_IFS
23194
23195  ;;
23196esac
23197fi
23198DX_EGREP=$ac_cv_path_DX_EGREP
23199if test -n "$DX_EGREP"; then
23200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
23201$as_echo "$DX_EGREP" >&6; }
23202else
23203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23204$as_echo "no" >&6; }
23205fi
23206
23207
23208fi
23209if test -z "$ac_cv_path_DX_EGREP"; then
23210  ac_pt_DX_EGREP=$DX_EGREP
23211  # Extract the first word of "egrep", so it can be a program name with args.
23212set dummy egrep; ac_word=$2
23213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23214$as_echo_n "checking for $ac_word... " >&6; }
23215if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then :
23216  $as_echo_n "(cached) " >&6
23217else
23218  case $ac_pt_DX_EGREP in
23219  [\\/]* | ?:[\\/]*)
23220  ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
23221  ;;
23222  *)
23223  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23224for as_dir in $PATH
23225do
23226  IFS=$as_save_IFS
23227  test -z "$as_dir" && as_dir=.
23228    for ac_exec_ext in '' $ac_executable_extensions; do
23229  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23230    ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
23231    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23232    break 2
23233  fi
23234done
23235  done
23236IFS=$as_save_IFS
23237
23238  ;;
23239esac
23240fi
23241ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
23242if test -n "$ac_pt_DX_EGREP"; then
23243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
23244$as_echo "$ac_pt_DX_EGREP" >&6; }
23245else
23246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23247$as_echo "no" >&6; }
23248fi
23249
23250  if test "x$ac_pt_DX_EGREP" = x; then
23251    DX_EGREP=""
23252  else
23253    case $cross_compiling:$ac_tool_warned in
23254yes:)
23255{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23256$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23257ac_tool_warned=yes ;;
23258esac
23259    DX_EGREP=$ac_pt_DX_EGREP
23260  fi
23261else
23262  DX_EGREP="$ac_cv_path_DX_EGREP"
23263fi
23264
23265if test "$DX_FLAG_pdf$DX_EGREP" = 1; then
23266    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5
23267$as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;}
23268    DX_FLAG_pdf=0
23269
23270fi
23271
23272    :
23273fi
23274if test "$DX_FLAG_pdf" = 1; then
23275     if :; then
23276  DX_COND_pdf_TRUE=
23277  DX_COND_pdf_FALSE='#'
23278else
23279  DX_COND_pdf_TRUE='#'
23280  DX_COND_pdf_FALSE=
23281fi
23282
23283
23284    :
23285else
23286     if false; then
23287  DX_COND_pdf_TRUE=
23288  DX_COND_pdf_FALSE='#'
23289else
23290  DX_COND_pdf_TRUE='#'
23291  DX_COND_pdf_FALSE=
23292fi
23293
23294
23295    :
23296fi
23297
23298
23299# LaTeX generation for PS and/or PDF:
23300if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
23301     if :; then
23302  DX_COND_latex_TRUE=
23303  DX_COND_latex_FALSE='#'
23304else
23305  DX_COND_latex_TRUE='#'
23306  DX_COND_latex_FALSE=
23307fi
23308
23309    DX_ENV="$DX_ENV GENERATE_LATEX='YES'"
23310
23311else
23312     if false; then
23313  DX_COND_latex_TRUE=
23314  DX_COND_latex_FALSE='#'
23315else
23316  DX_COND_latex_TRUE='#'
23317  DX_COND_latex_FALSE=
23318fi
23319
23320    DX_ENV="$DX_ENV GENERATE_LATEX='NO'"
23321
23322fi
23323
23324# Paper size for PS and/or PDF:
23325
23326case "$DOXYGEN_PAPER_SIZE" in
23327#(
23328"")
23329    DOXYGEN_PAPER_SIZE=""
23330
23331;; #(
23332a4wide|a4|letter|legal|executive)
23333    DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'"
23334
23335;; #(
23336*)
23337    as_fn_error $? "unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" "$LINENO" 5
23338;;
23339esac
23340
23341#For debugging:
23342#echo DX_FLAG_doc=$DX_FLAG_doc
23343#echo DX_FLAG_dot=$DX_FLAG_dot
23344#echo DX_FLAG_man=$DX_FLAG_man
23345#echo DX_FLAG_html=$DX_FLAG_html
23346#echo DX_FLAG_chm=$DX_FLAG_chm
23347#echo DX_FLAG_chi=$DX_FLAG_chi
23348#echo DX_FLAG_rtf=$DX_FLAG_rtf
23349#echo DX_FLAG_xml=$DX_FLAG_xml
23350#echo DX_FLAG_pdf=$DX_FLAG_pdf
23351#echo DX_FLAG_ps=$DX_FLAG_ps
23352#echo DX_ENV=$DX_ENV
23353
23354
23355ac_config_files="$ac_config_files Makefile data/Makefile data/images/Makefile data/images/menu/Makefile po/Makefile.in src/Makefile src/linebreak/Makefile Doxyfile t4k_common.pc"
23356
23357cat >confcache <<\_ACEOF
23358# This file is a shell script that caches the results of configure
23359# tests run on this system so they can be shared between configure
23360# scripts and configure runs, see configure's option --config-cache.
23361# It is not useful on other systems.  If it contains results you don't
23362# want to keep, you may remove or edit it.
23363#
23364# config.status only pays attention to the cache file if you give it
23365# the --recheck option to rerun configure.
23366#
23367# `ac_cv_env_foo' variables (set or unset) will be overridden when
23368# loading this file, other *unset* `ac_cv_foo' will be assigned the
23369# following values.
23370
23371_ACEOF
23372
23373# The following way of writing the cache mishandles newlines in values,
23374# but we know of no workaround that is simple, portable, and efficient.
23375# So, we kill variables containing newlines.
23376# Ultrix sh set writes to stderr and can't be redirected directly,
23377# and sets the high bit in the cache file unless we assign to the vars.
23378(
23379  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23380    eval ac_val=\$$ac_var
23381    case $ac_val in #(
23382    *${as_nl}*)
23383      case $ac_var in #(
23384      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23385$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23386      esac
23387      case $ac_var in #(
23388      _ | IFS | as_nl) ;; #(
23389      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23390      *) { eval $ac_var=; unset $ac_var;} ;;
23391      esac ;;
23392    esac
23393  done
23394
23395  (set) 2>&1 |
23396    case $as_nl`(ac_space=' '; set) 2>&1` in #(
23397    *${as_nl}ac_space=\ *)
23398      # `set' does not quote correctly, so add quotes: double-quote
23399      # substitution turns \\\\ into \\, and sed turns \\ into \.
23400      sed -n \
23401	"s/'/'\\\\''/g;
23402	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23403      ;; #(
23404    *)
23405      # `set' quotes correctly as required by POSIX, so do not add quotes.
23406      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23407      ;;
23408    esac |
23409    sort
23410) |
23411  sed '
23412     /^ac_cv_env_/b end
23413     t clear
23414     :clear
23415     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23416     t end
23417     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23418     :end' >>confcache
23419if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23420  if test -w "$cache_file"; then
23421    test "x$cache_file" != "x/dev/null" &&
23422      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23423$as_echo "$as_me: updating cache $cache_file" >&6;}
23424    cat confcache >$cache_file
23425  else
23426    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23427$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23428  fi
23429fi
23430rm -f confcache
23431
23432test "x$prefix" = xNONE && prefix=$ac_default_prefix
23433# Let make expand exec_prefix.
23434test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23435
23436DEFS=-DHAVE_CONFIG_H
23437
23438ac_libobjs=
23439ac_ltlibobjs=
23440U=
23441for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23442  # 1. Remove the extension, and $U if already installed.
23443  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23444  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
23445  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
23446  #    will be set to the directory where LIBOBJS objects are built.
23447  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23448  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
23449done
23450LIBOBJS=$ac_libobjs
23451
23452LTLIBOBJS=$ac_ltlibobjs
23453
23454
23455 if test -n "$EXEEXT"; then
23456  am__EXEEXT_TRUE=
23457  am__EXEEXT_FALSE='#'
23458else
23459  am__EXEEXT_TRUE='#'
23460  am__EXEEXT_FALSE=
23461fi
23462
23463if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23464  as_fn_error $? "conditional \"AMDEP\" was never defined.
23465Usually this means the macro was only invoked conditionally." "$LINENO" 5
23466fi
23467if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23468  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
23469Usually this means the macro was only invoked conditionally." "$LINENO" 5
23470fi
23471if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23472  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
23473Usually this means the macro was only invoked conditionally." "$LINENO" 5
23474fi
23475if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23476  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
23477Usually this means the macro was only invoked conditionally." "$LINENO" 5
23478fi
23479if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23480  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
23481Usually this means the macro was only invoked conditionally." "$LINENO" 5
23482fi
23483if test -z "${BUILD_MINGW32_TRUE}" && test -z "${BUILD_MINGW32_FALSE}"; then
23484  as_fn_error $? "conditional \"BUILD_MINGW32\" was never defined.
23485Usually this means the macro was only invoked conditionally." "$LINENO" 5
23486fi
23487if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
23488  as_fn_error $? "conditional \"DX_COND_doc\" was never defined.
23489Usually this means the macro was only invoked conditionally." "$LINENO" 5
23490fi
23491if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
23492  as_fn_error $? "conditional \"DX_COND_doc\" was never defined.
23493Usually this means the macro was only invoked conditionally." "$LINENO" 5
23494fi
23495if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
23496  as_fn_error $? "conditional \"DX_COND_dot\" was never defined.
23497Usually this means the macro was only invoked conditionally." "$LINENO" 5
23498fi
23499if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
23500  as_fn_error $? "conditional \"DX_COND_dot\" was never defined.
23501Usually this means the macro was only invoked conditionally." "$LINENO" 5
23502fi
23503if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
23504  as_fn_error $? "conditional \"DX_COND_man\" was never defined.
23505Usually this means the macro was only invoked conditionally." "$LINENO" 5
23506fi
23507if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
23508  as_fn_error $? "conditional \"DX_COND_man\" was never defined.
23509Usually this means the macro was only invoked conditionally." "$LINENO" 5
23510fi
23511if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
23512  as_fn_error $? "conditional \"DX_COND_rtf\" was never defined.
23513Usually this means the macro was only invoked conditionally." "$LINENO" 5
23514fi
23515if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
23516  as_fn_error $? "conditional \"DX_COND_rtf\" was never defined.
23517Usually this means the macro was only invoked conditionally." "$LINENO" 5
23518fi
23519if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
23520  as_fn_error $? "conditional \"DX_COND_xml\" was never defined.
23521Usually this means the macro was only invoked conditionally." "$LINENO" 5
23522fi
23523if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
23524  as_fn_error $? "conditional \"DX_COND_xml\" was never defined.
23525Usually this means the macro was only invoked conditionally." "$LINENO" 5
23526fi
23527if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
23528  as_fn_error $? "conditional \"DX_COND_chm\" was never defined.
23529Usually this means the macro was only invoked conditionally." "$LINENO" 5
23530fi
23531if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
23532  as_fn_error $? "conditional \"DX_COND_chm\" was never defined.
23533Usually this means the macro was only invoked conditionally." "$LINENO" 5
23534fi
23535if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
23536  as_fn_error $? "conditional \"DX_COND_chi\" was never defined.
23537Usually this means the macro was only invoked conditionally." "$LINENO" 5
23538fi
23539if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
23540  as_fn_error $? "conditional \"DX_COND_chi\" was never defined.
23541Usually this means the macro was only invoked conditionally." "$LINENO" 5
23542fi
23543if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
23544  as_fn_error $? "conditional \"DX_COND_html\" was never defined.
23545Usually this means the macro was only invoked conditionally." "$LINENO" 5
23546fi
23547if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
23548  as_fn_error $? "conditional \"DX_COND_html\" was never defined.
23549Usually this means the macro was only invoked conditionally." "$LINENO" 5
23550fi
23551if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
23552  as_fn_error $? "conditional \"DX_COND_ps\" was never defined.
23553Usually this means the macro was only invoked conditionally." "$LINENO" 5
23554fi
23555if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
23556  as_fn_error $? "conditional \"DX_COND_ps\" was never defined.
23557Usually this means the macro was only invoked conditionally." "$LINENO" 5
23558fi
23559if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
23560  as_fn_error $? "conditional \"DX_COND_pdf\" was never defined.
23561Usually this means the macro was only invoked conditionally." "$LINENO" 5
23562fi
23563if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
23564  as_fn_error $? "conditional \"DX_COND_pdf\" was never defined.
23565Usually this means the macro was only invoked conditionally." "$LINENO" 5
23566fi
23567if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
23568  as_fn_error $? "conditional \"DX_COND_latex\" was never defined.
23569Usually this means the macro was only invoked conditionally." "$LINENO" 5
23570fi
23571if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
23572  as_fn_error $? "conditional \"DX_COND_latex\" was never defined.
23573Usually this means the macro was only invoked conditionally." "$LINENO" 5
23574fi
23575
23576: ${CONFIG_STATUS=./config.status}
23577ac_write_fail=0
23578ac_clean_files_save=$ac_clean_files
23579ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23580{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23581$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23582as_write_fail=0
23583cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23584#! $SHELL
23585# Generated by $as_me.
23586# Run this file to recreate the current configuration.
23587# Compiler output produced by configure, useful for debugging
23588# configure, is in config.log if it exists.
23589
23590debug=false
23591ac_cs_recheck=false
23592ac_cs_silent=false
23593
23594SHELL=\${CONFIG_SHELL-$SHELL}
23595export SHELL
23596_ASEOF
23597cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23598## -------------------- ##
23599## M4sh Initialization. ##
23600## -------------------- ##
23601
23602# Be more Bourne compatible
23603DUALCASE=1; export DUALCASE # for MKS sh
23604if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23605  emulate sh
23606  NULLCMD=:
23607  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23608  # is contrary to our usage.  Disable this feature.
23609  alias -g '${1+"$@"}'='"$@"'
23610  setopt NO_GLOB_SUBST
23611else
23612  case `(set -o) 2>/dev/null` in #(
23613  *posix*) :
23614    set -o posix ;; #(
23615  *) :
23616     ;;
23617esac
23618fi
23619
23620
23621as_nl='
23622'
23623export as_nl
23624# Printing a long string crashes Solaris 7 /usr/bin/printf.
23625as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23626as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23627as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23628# Prefer a ksh shell builtin over an external printf program on Solaris,
23629# but without wasting forks for bash or zsh.
23630if test -z "$BASH_VERSION$ZSH_VERSION" \
23631    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
23632  as_echo='print -r --'
23633  as_echo_n='print -rn --'
23634elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23635  as_echo='printf %s\n'
23636  as_echo_n='printf %s'
23637else
23638  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23639    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
23640    as_echo_n='/usr/ucb/echo -n'
23641  else
23642    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23643    as_echo_n_body='eval
23644      arg=$1;
23645      case $arg in #(
23646      *"$as_nl"*)
23647	expr "X$arg" : "X\\(.*\\)$as_nl";
23648	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23649      esac;
23650      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
23651    '
23652    export as_echo_n_body
23653    as_echo_n='sh -c $as_echo_n_body as_echo'
23654  fi
23655  export as_echo_body
23656  as_echo='sh -c $as_echo_body as_echo'
23657fi
23658
23659# The user is always right.
23660if test "${PATH_SEPARATOR+set}" != set; then
23661  PATH_SEPARATOR=:
23662  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23663    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23664      PATH_SEPARATOR=';'
23665  }
23666fi
23667
23668
23669# IFS
23670# We need space, tab and new line, in precisely that order.  Quoting is
23671# there to prevent editors from complaining about space-tab.
23672# (If _AS_PATH_WALK were called with IFS unset, it would disable word
23673# splitting by setting IFS to empty value.)
23674IFS=" ""	$as_nl"
23675
23676# Find who we are.  Look in the path if we contain no directory separator.
23677case $0 in #((
23678  *[\\/]* ) as_myself=$0 ;;
23679  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23680for as_dir in $PATH
23681do
23682  IFS=$as_save_IFS
23683  test -z "$as_dir" && as_dir=.
23684    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23685  done
23686IFS=$as_save_IFS
23687
23688     ;;
23689esac
23690# We did not find ourselves, most probably we were run as `sh COMMAND'
23691# in which case we are not to be found in the path.
23692if test "x$as_myself" = x; then
23693  as_myself=$0
23694fi
23695if test ! -f "$as_myself"; then
23696  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23697  exit 1
23698fi
23699
23700# Unset variables that we do not need and which cause bugs (e.g. in
23701# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
23702# suppresses any "Segmentation fault" message there.  '((' could
23703# trigger a bug in pdksh 5.2.14.
23704for as_var in BASH_ENV ENV MAIL MAILPATH
23705do eval test x\${$as_var+set} = xset \
23706  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23707done
23708PS1='$ '
23709PS2='> '
23710PS4='+ '
23711
23712# NLS nuisances.
23713LC_ALL=C
23714export LC_ALL
23715LANGUAGE=C
23716export LANGUAGE
23717
23718# CDPATH.
23719(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23720
23721
23722# as_fn_error STATUS ERROR [LINENO LOG_FD]
23723# ----------------------------------------
23724# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23725# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23726# script with STATUS, using 1 if that was 0.
23727as_fn_error ()
23728{
23729  as_status=$1; test $as_status -eq 0 && as_status=1
23730  if test "$4"; then
23731    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23732    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23733  fi
23734  $as_echo "$as_me: error: $2" >&2
23735  as_fn_exit $as_status
23736} # as_fn_error
23737
23738
23739# as_fn_set_status STATUS
23740# -----------------------
23741# Set $? to STATUS, without forking.
23742as_fn_set_status ()
23743{
23744  return $1
23745} # as_fn_set_status
23746
23747# as_fn_exit STATUS
23748# -----------------
23749# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23750as_fn_exit ()
23751{
23752  set +e
23753  as_fn_set_status $1
23754  exit $1
23755} # as_fn_exit
23756
23757# as_fn_unset VAR
23758# ---------------
23759# Portably unset VAR.
23760as_fn_unset ()
23761{
23762  { eval $1=; unset $1;}
23763}
23764as_unset=as_fn_unset
23765# as_fn_append VAR VALUE
23766# ----------------------
23767# Append the text in VALUE to the end of the definition contained in VAR. Take
23768# advantage of any shell optimizations that allow amortized linear growth over
23769# repeated appends, instead of the typical quadratic growth present in naive
23770# implementations.
23771if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
23772  eval 'as_fn_append ()
23773  {
23774    eval $1+=\$2
23775  }'
23776else
23777  as_fn_append ()
23778  {
23779    eval $1=\$$1\$2
23780  }
23781fi # as_fn_append
23782
23783# as_fn_arith ARG...
23784# ------------------
23785# Perform arithmetic evaluation on the ARGs, and store the result in the
23786# global $as_val. Take advantage of shells that can avoid forks. The arguments
23787# must be portable across $(()) and expr.
23788if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
23789  eval 'as_fn_arith ()
23790  {
23791    as_val=$(( $* ))
23792  }'
23793else
23794  as_fn_arith ()
23795  {
23796    as_val=`expr "$@" || test $? -eq 1`
23797  }
23798fi # as_fn_arith
23799
23800
23801if expr a : '\(a\)' >/dev/null 2>&1 &&
23802   test "X`expr 00001 : '.*\(...\)'`" = X001; then
23803  as_expr=expr
23804else
23805  as_expr=false
23806fi
23807
23808if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23809  as_basename=basename
23810else
23811  as_basename=false
23812fi
23813
23814if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23815  as_dirname=dirname
23816else
23817  as_dirname=false
23818fi
23819
23820as_me=`$as_basename -- "$0" ||
23821$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23822	 X"$0" : 'X\(//\)$' \| \
23823	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23824$as_echo X/"$0" |
23825    sed '/^.*\/\([^/][^/]*\)\/*$/{
23826	    s//\1/
23827	    q
23828	  }
23829	  /^X\/\(\/\/\)$/{
23830	    s//\1/
23831	    q
23832	  }
23833	  /^X\/\(\/\).*/{
23834	    s//\1/
23835	    q
23836	  }
23837	  s/.*/./; q'`
23838
23839# Avoid depending upon Character Ranges.
23840as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23841as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23842as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23843as_cr_digits='0123456789'
23844as_cr_alnum=$as_cr_Letters$as_cr_digits
23845
23846ECHO_C= ECHO_N= ECHO_T=
23847case `echo -n x` in #(((((
23848-n*)
23849  case `echo 'xy\c'` in
23850  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
23851  xy)  ECHO_C='\c';;
23852  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
23853       ECHO_T='	';;
23854  esac;;
23855*)
23856  ECHO_N='-n';;
23857esac
23858
23859rm -f conf$$ conf$$.exe conf$$.file
23860if test -d conf$$.dir; then
23861  rm -f conf$$.dir/conf$$.file
23862else
23863  rm -f conf$$.dir
23864  mkdir conf$$.dir 2>/dev/null
23865fi
23866if (echo >conf$$.file) 2>/dev/null; then
23867  if ln -s conf$$.file conf$$ 2>/dev/null; then
23868    as_ln_s='ln -s'
23869    # ... but there are two gotchas:
23870    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23871    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23872    # In both cases, we have to default to `cp -p'.
23873    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23874      as_ln_s='cp -p'
23875  elif ln conf$$.file conf$$ 2>/dev/null; then
23876    as_ln_s=ln
23877  else
23878    as_ln_s='cp -p'
23879  fi
23880else
23881  as_ln_s='cp -p'
23882fi
23883rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23884rmdir conf$$.dir 2>/dev/null
23885
23886
23887# as_fn_mkdir_p
23888# -------------
23889# Create "$as_dir" as a directory, including parents if necessary.
23890as_fn_mkdir_p ()
23891{
23892
23893  case $as_dir in #(
23894  -*) as_dir=./$as_dir;;
23895  esac
23896  test -d "$as_dir" || eval $as_mkdir_p || {
23897    as_dirs=
23898    while :; do
23899      case $as_dir in #(
23900      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23901      *) as_qdir=$as_dir;;
23902      esac
23903      as_dirs="'$as_qdir' $as_dirs"
23904      as_dir=`$as_dirname -- "$as_dir" ||
23905$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23906	 X"$as_dir" : 'X\(//\)[^/]' \| \
23907	 X"$as_dir" : 'X\(//\)$' \| \
23908	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23909$as_echo X"$as_dir" |
23910    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23911	    s//\1/
23912	    q
23913	  }
23914	  /^X\(\/\/\)[^/].*/{
23915	    s//\1/
23916	    q
23917	  }
23918	  /^X\(\/\/\)$/{
23919	    s//\1/
23920	    q
23921	  }
23922	  /^X\(\/\).*/{
23923	    s//\1/
23924	    q
23925	  }
23926	  s/.*/./; q'`
23927      test -d "$as_dir" && break
23928    done
23929    test -z "$as_dirs" || eval "mkdir $as_dirs"
23930  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23931
23932
23933} # as_fn_mkdir_p
23934if mkdir -p . 2>/dev/null; then
23935  as_mkdir_p='mkdir -p "$as_dir"'
23936else
23937  test -d ./-p && rmdir ./-p
23938  as_mkdir_p=false
23939fi
23940
23941if test -x / >/dev/null 2>&1; then
23942  as_test_x='test -x'
23943else
23944  if ls -dL / >/dev/null 2>&1; then
23945    as_ls_L_option=L
23946  else
23947    as_ls_L_option=
23948  fi
23949  as_test_x='
23950    eval sh -c '\''
23951      if test -d "$1"; then
23952	test -d "$1/.";
23953      else
23954	case $1 in #(
23955	-*)set "./$1";;
23956	esac;
23957	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
23958	???[sx]*):;;*)false;;esac;fi
23959    '\'' sh
23960  '
23961fi
23962as_executable_p=$as_test_x
23963
23964# Sed expression to map a string onto a valid CPP name.
23965as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23966
23967# Sed expression to map a string onto a valid variable name.
23968as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23969
23970
23971exec 6>&1
23972## ----------------------------------- ##
23973## Main body of $CONFIG_STATUS script. ##
23974## ----------------------------------- ##
23975_ASEOF
23976test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23977
23978cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23979# Save the log message, to keep $0 and so on meaningful, and to
23980# report actual input values of CONFIG_FILES etc. instead of their
23981# values after options handling.
23982ac_log="
23983This file was extended by Tux4Kids-Common $as_me 0.1.1, which was
23984generated by GNU Autoconf 2.67.  Invocation command line was
23985
23986  CONFIG_FILES    = $CONFIG_FILES
23987  CONFIG_HEADERS  = $CONFIG_HEADERS
23988  CONFIG_LINKS    = $CONFIG_LINKS
23989  CONFIG_COMMANDS = $CONFIG_COMMANDS
23990  $ $0 $@
23991
23992on `(hostname || uname -n) 2>/dev/null | sed 1q`
23993"
23994
23995_ACEOF
23996
23997case $ac_config_files in *"
23998"*) set x $ac_config_files; shift; ac_config_files=$*;;
23999esac
24000
24001case $ac_config_headers in *"
24002"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24003esac
24004
24005
24006cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24007# Files that config.status was made for.
24008config_files="$ac_config_files"
24009config_headers="$ac_config_headers"
24010config_commands="$ac_config_commands"
24011
24012_ACEOF
24013
24014cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24015ac_cs_usage="\
24016\`$as_me' instantiates files and other configuration actions
24017from templates according to the current configuration.  Unless the files
24018and actions are specified as TAGs, all are instantiated by default.
24019
24020Usage: $0 [OPTION]... [TAG]...
24021
24022  -h, --help       print this help, then exit
24023  -V, --version    print version number and configuration settings, then exit
24024      --config     print configuration, then exit
24025  -q, --quiet, --silent
24026                   do not print progress messages
24027  -d, --debug      don't remove temporary files
24028      --recheck    update $as_me by reconfiguring in the same conditions
24029      --file=FILE[:TEMPLATE]
24030                   instantiate the configuration file FILE
24031      --header=FILE[:TEMPLATE]
24032                   instantiate the configuration header FILE
24033
24034Configuration files:
24035$config_files
24036
24037Configuration headers:
24038$config_headers
24039
24040Configuration commands:
24041$config_commands
24042
24043Report bugs to <tuxmath-devel@lists.sourceforge.net>."
24044
24045_ACEOF
24046cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24047ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
24048ac_cs_version="\\
24049Tux4Kids-Common config.status 0.1.1
24050configured by $0, generated by GNU Autoconf 2.67,
24051  with options \\"\$ac_cs_config\\"
24052
24053Copyright (C) 2010 Free Software Foundation, Inc.
24054This config.status script is free software; the Free Software Foundation
24055gives unlimited permission to copy, distribute and modify it."
24056
24057ac_pwd='$ac_pwd'
24058srcdir='$srcdir'
24059INSTALL='$INSTALL'
24060MKDIR_P='$MKDIR_P'
24061AWK='$AWK'
24062test -n "\$AWK" || AWK=awk
24063_ACEOF
24064
24065cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24066# The default lists apply if the user does not specify any file.
24067ac_need_defaults=:
24068while test $# != 0
24069do
24070  case $1 in
24071  --*=?*)
24072    ac_option=`expr "X$1" : 'X\([^=]*\)='`
24073    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24074    ac_shift=:
24075    ;;
24076  --*=)
24077    ac_option=`expr "X$1" : 'X\([^=]*\)='`
24078    ac_optarg=
24079    ac_shift=:
24080    ;;
24081  *)
24082    ac_option=$1
24083    ac_optarg=$2
24084    ac_shift=shift
24085    ;;
24086  esac
24087
24088  case $ac_option in
24089  # Handling of the options.
24090  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24091    ac_cs_recheck=: ;;
24092  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24093    $as_echo "$ac_cs_version"; exit ;;
24094  --config | --confi | --conf | --con | --co | --c )
24095    $as_echo "$ac_cs_config"; exit ;;
24096  --debug | --debu | --deb | --de | --d | -d )
24097    debug=: ;;
24098  --file | --fil | --fi | --f )
24099    $ac_shift
24100    case $ac_optarg in
24101    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24102    '') as_fn_error $? "missing file argument" ;;
24103    esac
24104    as_fn_append CONFIG_FILES " '$ac_optarg'"
24105    ac_need_defaults=false;;
24106  --header | --heade | --head | --hea )
24107    $ac_shift
24108    case $ac_optarg in
24109    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24110    esac
24111    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
24112    ac_need_defaults=false;;
24113  --he | --h)
24114    # Conflict between --help and --header
24115    as_fn_error $? "ambiguous option: \`$1'
24116Try \`$0 --help' for more information.";;
24117  --help | --hel | -h )
24118    $as_echo "$ac_cs_usage"; exit ;;
24119  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24120  | -silent | --silent | --silen | --sile | --sil | --si | --s)
24121    ac_cs_silent=: ;;
24122
24123  # This is an error.
24124  -*) as_fn_error $? "unrecognized option: \`$1'
24125Try \`$0 --help' for more information." ;;
24126
24127  *) as_fn_append ac_config_targets " $1"
24128     ac_need_defaults=false ;;
24129
24130  esac
24131  shift
24132done
24133
24134ac_configure_extra_args=
24135
24136if $ac_cs_silent; then
24137  exec 6>/dev/null
24138  ac_configure_extra_args="$ac_configure_extra_args --silent"
24139fi
24140
24141_ACEOF
24142cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24143if \$ac_cs_recheck; then
24144  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24145  shift
24146  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
24147  CONFIG_SHELL='$SHELL'
24148  export CONFIG_SHELL
24149  exec "\$@"
24150fi
24151
24152_ACEOF
24153cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24154exec 5>>config.log
24155{
24156  echo
24157  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24158## Running $as_me. ##
24159_ASBOX
24160  $as_echo "$ac_log"
24161} >&5
24162
24163_ACEOF
24164cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24165#
24166# INIT-COMMANDS
24167#
24168AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24169# Capture the value of obsolete ALL_LINGUAS because we need it to compute
24170    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
24171    # from automake < 1.5.
24172    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
24173    # Capture the value of LINGUAS because we need it to compute CATALOGS.
24174    LINGUAS="${LINGUAS-%UNSET%}"
24175
24176
24177
24178# The HP-UX ksh and POSIX shell print the target directory to stdout
24179# if CDPATH is set.
24180(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24181
24182sed_quote_subst='$sed_quote_subst'
24183double_quote_subst='$double_quote_subst'
24184delay_variable_subst='$delay_variable_subst'
24185macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
24186macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
24187enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
24188enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
24189pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
24190enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
24191host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
24192host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
24193host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
24194build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
24195build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
24196build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
24197SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
24198Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
24199GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
24200EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
24201FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
24202LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
24203NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
24204LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
24205max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
24206ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
24207exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
24208lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
24209lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
24210lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
24211reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
24212reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24213OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
24214deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
24215file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
24216AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
24217AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
24218STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
24219RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
24220old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24221old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24222old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24223CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
24224CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
24225compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
24226GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
24227lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
24228lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
24229lt_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"`'
24230lt_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"`'
24231objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
24232SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
24233ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
24234MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
24235lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
24236lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
24237lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
24238lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
24239lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
24240need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
24241DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
24242NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
24243LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
24244OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
24245OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
24246libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
24247shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24248extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24249archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
24250enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
24251export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
24252whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
24253compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
24254old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24255old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24256archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24257archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24258module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24259module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24260with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
24261allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
24262no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
24263hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
24264hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
24265hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
24266hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
24267hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
24268hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
24269hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
24270hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
24271inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
24272link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
24273fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
24274always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
24275export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24276exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
24277include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
24278prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24279file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
24280variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
24281need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
24282need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
24283version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
24284runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
24285shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
24286shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
24287libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
24288library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
24289soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
24290postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24291postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24292finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24293finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
24294hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
24295sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
24296sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
24297hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
24298enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
24299enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
24300enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
24301old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
24302striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
24303compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
24304predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
24305postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
24306predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
24307postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
24308compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
24309LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24310old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24311compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24312GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24313lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24314lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24315lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24316lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24317lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24318archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24319enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24320export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24321whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24322compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24323old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24324old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24325archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24326archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24327module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24328module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24329with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24330allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24331no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24332hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24333hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24334hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24335hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24336hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24337hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24338hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24339hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24340inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24341link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24342fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24343always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24344export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24345exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24346include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24347prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24348file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24349hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24350compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24351predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24352postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24353predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24354postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24355compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
24356
24357LTCC='$LTCC'
24358LTCFLAGS='$LTCFLAGS'
24359compiler='$compiler_DEFAULT'
24360
24361# Quote evaled strings.
24362for var in SED \
24363GREP \
24364EGREP \
24365FGREP \
24366LD \
24367NM \
24368LN_S \
24369lt_SP2NL \
24370lt_NL2SP \
24371reload_flag \
24372OBJDUMP \
24373deplibs_check_method \
24374file_magic_cmd \
24375AR \
24376AR_FLAGS \
24377STRIP \
24378RANLIB \
24379CC \
24380CFLAGS \
24381compiler \
24382lt_cv_sys_global_symbol_pipe \
24383lt_cv_sys_global_symbol_to_cdecl \
24384lt_cv_sys_global_symbol_to_c_name_address \
24385lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
24386SHELL \
24387ECHO \
24388lt_prog_compiler_no_builtin_flag \
24389lt_prog_compiler_wl \
24390lt_prog_compiler_pic \
24391lt_prog_compiler_static \
24392lt_cv_prog_compiler_c_o \
24393need_locks \
24394DSYMUTIL \
24395NMEDIT \
24396LIPO \
24397OTOOL \
24398OTOOL64 \
24399shrext_cmds \
24400export_dynamic_flag_spec \
24401whole_archive_flag_spec \
24402compiler_needs_object \
24403with_gnu_ld \
24404allow_undefined_flag \
24405no_undefined_flag \
24406hardcode_libdir_flag_spec \
24407hardcode_libdir_flag_spec_ld \
24408hardcode_libdir_separator \
24409fix_srcfile_path \
24410exclude_expsyms \
24411include_expsyms \
24412file_list_spec \
24413variables_saved_for_relink \
24414libname_spec \
24415library_names_spec \
24416soname_spec \
24417finish_eval \
24418old_striplib \
24419striplib \
24420compiler_lib_search_dirs \
24421predep_objects \
24422postdep_objects \
24423predeps \
24424postdeps \
24425compiler_lib_search_path \
24426LD_CXX \
24427compiler_CXX \
24428lt_prog_compiler_no_builtin_flag_CXX \
24429lt_prog_compiler_wl_CXX \
24430lt_prog_compiler_pic_CXX \
24431lt_prog_compiler_static_CXX \
24432lt_cv_prog_compiler_c_o_CXX \
24433export_dynamic_flag_spec_CXX \
24434whole_archive_flag_spec_CXX \
24435compiler_needs_object_CXX \
24436with_gnu_ld_CXX \
24437allow_undefined_flag_CXX \
24438no_undefined_flag_CXX \
24439hardcode_libdir_flag_spec_CXX \
24440hardcode_libdir_flag_spec_ld_CXX \
24441hardcode_libdir_separator_CXX \
24442fix_srcfile_path_CXX \
24443exclude_expsyms_CXX \
24444include_expsyms_CXX \
24445file_list_spec_CXX \
24446compiler_lib_search_dirs_CXX \
24447predep_objects_CXX \
24448postdep_objects_CXX \
24449predeps_CXX \
24450postdeps_CXX \
24451compiler_lib_search_path_CXX; do
24452    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
24453    *[\\\\\\\`\\"\\\$]*)
24454      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
24455      ;;
24456    *)
24457      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24458      ;;
24459    esac
24460done
24461
24462# Double-quote double-evaled strings.
24463for var in reload_cmds \
24464old_postinstall_cmds \
24465old_postuninstall_cmds \
24466old_archive_cmds \
24467extract_expsyms_cmds \
24468old_archive_from_new_cmds \
24469old_archive_from_expsyms_cmds \
24470archive_cmds \
24471archive_expsym_cmds \
24472module_cmds \
24473module_expsym_cmds \
24474export_symbols_cmds \
24475prelink_cmds \
24476postinstall_cmds \
24477postuninstall_cmds \
24478finish_cmds \
24479sys_lib_search_path_spec \
24480sys_lib_dlsearch_path_spec \
24481old_archive_cmds_CXX \
24482old_archive_from_new_cmds_CXX \
24483old_archive_from_expsyms_cmds_CXX \
24484archive_cmds_CXX \
24485archive_expsym_cmds_CXX \
24486module_cmds_CXX \
24487module_expsym_cmds_CXX \
24488export_symbols_cmds_CXX \
24489prelink_cmds_CXX; do
24490    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
24491    *[\\\\\\\`\\"\\\$]*)
24492      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
24493      ;;
24494    *)
24495      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24496      ;;
24497    esac
24498done
24499
24500# Fix-up fallback echo if it was mangled by the above quoting rules.
24501case \$lt_ECHO in
24502*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
24503  ;;
24504esac
24505
24506ac_aux_dir='$ac_aux_dir'
24507xsi_shell='$xsi_shell'
24508lt_shell_append='$lt_shell_append'
24509
24510# See if we are running on zsh, and set the options which allow our
24511# commands through without removal of \ escapes INIT.
24512if test -n "\${ZSH_VERSION+set}" ; then
24513   setopt NO_GLOB_SUBST
24514fi
24515
24516
24517    PACKAGE='$PACKAGE'
24518    VERSION='$VERSION'
24519    TIMESTAMP='$TIMESTAMP'
24520    RM='$RM'
24521    ofile='$ofile'
24522
24523
24524
24525
24526
24527
24528_ACEOF
24529
24530cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24531
24532# Handling of arguments.
24533for ac_config_target in $ac_config_targets
24534do
24535  case $ac_config_target in
24536    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24537    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24538    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
24539    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24540    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24541    "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
24542    "data/images/Makefile") CONFIG_FILES="$CONFIG_FILES data/images/Makefile" ;;
24543    "data/images/menu/Makefile") CONFIG_FILES="$CONFIG_FILES data/images/menu/Makefile" ;;
24544    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
24545    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24546    "src/linebreak/Makefile") CONFIG_FILES="$CONFIG_FILES src/linebreak/Makefile" ;;
24547    "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
24548    "t4k_common.pc") CONFIG_FILES="$CONFIG_FILES t4k_common.pc" ;;
24549
24550  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
24551  esac
24552done
24553
24554
24555# If the user did not use the arguments to specify the items to instantiate,
24556# then the envvar interface is used.  Set only those that are not.
24557# We use the long form for the default assignment because of an extremely
24558# bizarre bug on SunOS 4.1.3.
24559if $ac_need_defaults; then
24560  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24561  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24562  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24563fi
24564
24565# Have a temporary directory for convenience.  Make it in the build tree
24566# simply because there is no reason against having it here, and in addition,
24567# creating and moving files from /tmp can sometimes cause problems.
24568# Hook for its removal unless debugging.
24569# Note that there is a small window in which the directory will not be cleaned:
24570# after its creation but before its name has been assigned to `$tmp'.
24571$debug ||
24572{
24573  tmp=
24574  trap 'exit_status=$?
24575  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24576' 0
24577  trap 'as_fn_exit 1' 1 2 13 15
24578}
24579# Create a (secure) tmp directory for tmp files.
24580
24581{
24582  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24583  test -n "$tmp" && test -d "$tmp"
24584}  ||
24585{
24586  tmp=./conf$$-$RANDOM
24587  (umask 077 && mkdir "$tmp")
24588} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
24589
24590# Set up the scripts for CONFIG_FILES section.
24591# No need to generate them if there are no CONFIG_FILES.
24592# This happens for instance with `./config.status config.h'.
24593if test -n "$CONFIG_FILES"; then
24594
24595
24596ac_cr=`echo X | tr X '\015'`
24597# On cygwin, bash can eat \r inside `` if the user requested igncr.
24598# But we know of no other shell where ac_cr would be empty at this
24599# point, so we can use a bashism as a fallback.
24600if test "x$ac_cr" = x; then
24601  eval ac_cr=\$\'\\r\'
24602fi
24603ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24604if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24605  ac_cs_awk_cr='\\r'
24606else
24607  ac_cs_awk_cr=$ac_cr
24608fi
24609
24610echo 'BEGIN {' >"$tmp/subs1.awk" &&
24611_ACEOF
24612
24613
24614{
24615  echo "cat >conf$$subs.awk <<_ACEOF" &&
24616  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24617  echo "_ACEOF"
24618} >conf$$subs.sh ||
24619  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24620ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
24621ac_delim='%!_!# '
24622for ac_last_try in false false false false false :; do
24623  . ./conf$$subs.sh ||
24624    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24625
24626  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24627  if test $ac_delim_n = $ac_delim_num; then
24628    break
24629  elif $ac_last_try; then
24630    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24631  else
24632    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24633  fi
24634done
24635rm -f conf$$subs.sh
24636
24637cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24638cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
24639_ACEOF
24640sed -n '
24641h
24642s/^/S["/; s/!.*/"]=/
24643p
24644g
24645s/^[^!]*!//
24646:repl
24647t repl
24648s/'"$ac_delim"'$//
24649t delim
24650:nl
24651h
24652s/\(.\{148\}\)..*/\1/
24653t more1
24654s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24655p
24656n
24657b repl
24658:more1
24659s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24660p
24661g
24662s/.\{148\}//
24663t nl
24664:delim
24665h
24666s/\(.\{148\}\)..*/\1/
24667t more2
24668s/["\\]/\\&/g; s/^/"/; s/$/"/
24669p
24670b
24671:more2
24672s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24673p
24674g
24675s/.\{148\}//
24676t delim
24677' <conf$$subs.awk | sed '
24678/^[^""]/{
24679  N
24680  s/\n//
24681}
24682' >>$CONFIG_STATUS || ac_write_fail=1
24683rm -f conf$$subs.awk
24684cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24685_ACAWK
24686cat >>"\$tmp/subs1.awk" <<_ACAWK &&
24687  for (key in S) S_is_set[key] = 1
24688  FS = ""
24689
24690}
24691{
24692  line = $ 0
24693  nfields = split(line, field, "@")
24694  substed = 0
24695  len = length(field[1])
24696  for (i = 2; i < nfields; i++) {
24697    key = field[i]
24698    keylen = length(key)
24699    if (S_is_set[key]) {
24700      value = S[key]
24701      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24702      len += length(value) + length(field[++i])
24703      substed = 1
24704    } else
24705      len += 1 + keylen
24706  }
24707
24708  print line
24709}
24710
24711_ACAWK
24712_ACEOF
24713cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24714if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24715  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24716else
24717  cat
24718fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
24719  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
24720_ACEOF
24721
24722# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
24723# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
24724# trailing colons and then remove the whole line if VPATH becomes empty
24725# (actually we leave an empty line to preserve line numbers).
24726if test "x$srcdir" = x.; then
24727  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
24728h
24729s///
24730s/^/:/
24731s/[	 ]*$/:/
24732s/:\$(srcdir):/:/g
24733s/:\${srcdir}:/:/g
24734s/:@srcdir@:/:/g
24735s/^:*//
24736s/:*$//
24737x
24738s/\(=[	 ]*\).*/\1/
24739G
24740s/\n//
24741s/^[^=]*=[	 ]*$//
24742}'
24743fi
24744
24745cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24746fi # test -n "$CONFIG_FILES"
24747
24748# Set up the scripts for CONFIG_HEADERS section.
24749# No need to generate them if there are no CONFIG_HEADERS.
24750# This happens for instance with `./config.status Makefile'.
24751if test -n "$CONFIG_HEADERS"; then
24752cat >"$tmp/defines.awk" <<\_ACAWK ||
24753BEGIN {
24754_ACEOF
24755
24756# Transform confdefs.h into an awk script `defines.awk', embedded as
24757# here-document in config.status, that substitutes the proper values into
24758# config.h.in to produce config.h.
24759
24760# Create a delimiter string that does not exist in confdefs.h, to ease
24761# handling of long lines.
24762ac_delim='%!_!# '
24763for ac_last_try in false false :; do
24764  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
24765  if test -z "$ac_t"; then
24766    break
24767  elif $ac_last_try; then
24768    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
24769  else
24770    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24771  fi
24772done
24773
24774# For the awk script, D is an array of macro values keyed by name,
24775# likewise P contains macro parameters if any.  Preserve backslash
24776# newline sequences.
24777
24778ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24779sed -n '
24780s/.\{148\}/&'"$ac_delim"'/g
24781t rset
24782:rset
24783s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
24784t def
24785d
24786:def
24787s/\\$//
24788t bsnl
24789s/["\\]/\\&/g
24790s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
24791D["\1"]=" \3"/p
24792s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
24793d
24794:bsnl
24795s/["\\]/\\&/g
24796s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
24797D["\1"]=" \3\\\\\\n"\\/p
24798t cont
24799s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24800t cont
24801d
24802:cont
24803n
24804s/.\{148\}/&'"$ac_delim"'/g
24805t clear
24806:clear
24807s/\\$//
24808t bsnlc
24809s/["\\]/\\&/g; s/^/"/; s/$/"/p
24810d
24811:bsnlc
24812s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24813b cont
24814' <confdefs.h | sed '
24815s/'"$ac_delim"'/"\\\
24816"/g' >>$CONFIG_STATUS || ac_write_fail=1
24817
24818cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24819  for (key in D) D_is_set[key] = 1
24820  FS = ""
24821}
24822/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24823  line = \$ 0
24824  split(line, arg, " ")
24825  if (arg[1] == "#") {
24826    defundef = arg[2]
24827    mac1 = arg[3]
24828  } else {
24829    defundef = substr(arg[1], 2)
24830    mac1 = arg[2]
24831  }
24832  split(mac1, mac2, "(") #)
24833  macro = mac2[1]
24834  prefix = substr(line, 1, index(line, defundef) - 1)
24835  if (D_is_set[macro]) {
24836    # Preserve the white space surrounding the "#".
24837    print prefix "define", macro P[macro] D[macro]
24838    next
24839  } else {
24840    # Replace #undef with comments.  This is necessary, for example,
24841    # in the case of _POSIX_SOURCE, which is predefined and required
24842    # on some systems where configure will not decide to define it.
24843    if (defundef == "undef") {
24844      print "/*", prefix defundef, macro, "*/"
24845      next
24846    }
24847  }
24848}
24849{ print }
24850_ACAWK
24851_ACEOF
24852cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24853  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
24854fi # test -n "$CONFIG_HEADERS"
24855
24856
24857eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
24858shift
24859for ac_tag
24860do
24861  case $ac_tag in
24862  :[FHLC]) ac_mode=$ac_tag; continue;;
24863  esac
24864  case $ac_mode$ac_tag in
24865  :[FHL]*:*);;
24866  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
24867  :[FH]-) ac_tag=-:-;;
24868  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24869  esac
24870  ac_save_IFS=$IFS
24871  IFS=:
24872  set x $ac_tag
24873  IFS=$ac_save_IFS
24874  shift
24875  ac_file=$1
24876  shift
24877
24878  case $ac_mode in
24879  :L) ac_source=$1;;
24880  :[FH])
24881    ac_file_inputs=
24882    for ac_f
24883    do
24884      case $ac_f in
24885      -) ac_f="$tmp/stdin";;
24886      *) # Look for the file first in the build tree, then in the source tree
24887	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
24888	 # because $ac_f cannot contain `:'.
24889	 test -f "$ac_f" ||
24890	   case $ac_f in
24891	   [\\/$]*) false;;
24892	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24893	   esac ||
24894	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
24895      esac
24896      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24897      as_fn_append ac_file_inputs " '$ac_f'"
24898    done
24899
24900    # Let's still pretend it is `configure' which instantiates (i.e., don't
24901    # use $as_me), people would be surprised to read:
24902    #    /* config.h.  Generated by config.status.  */
24903    configure_input='Generated from '`
24904	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24905	`' by configure.'
24906    if test x"$ac_file" != x-; then
24907      configure_input="$ac_file.  $configure_input"
24908      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24909$as_echo "$as_me: creating $ac_file" >&6;}
24910    fi
24911    # Neutralize special characters interpreted by sed in replacement strings.
24912    case $configure_input in #(
24913    *\&* | *\|* | *\\* )
24914       ac_sed_conf_input=`$as_echo "$configure_input" |
24915       sed 's/[\\\\&|]/\\\\&/g'`;; #(
24916    *) ac_sed_conf_input=$configure_input;;
24917    esac
24918
24919    case $ac_tag in
24920    *:-:* | *:-) cat >"$tmp/stdin" \
24921      || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
24922    esac
24923    ;;
24924  esac
24925
24926  ac_dir=`$as_dirname -- "$ac_file" ||
24927$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24928	 X"$ac_file" : 'X\(//\)[^/]' \| \
24929	 X"$ac_file" : 'X\(//\)$' \| \
24930	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24931$as_echo X"$ac_file" |
24932    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24933	    s//\1/
24934	    q
24935	  }
24936	  /^X\(\/\/\)[^/].*/{
24937	    s//\1/
24938	    q
24939	  }
24940	  /^X\(\/\/\)$/{
24941	    s//\1/
24942	    q
24943	  }
24944	  /^X\(\/\).*/{
24945	    s//\1/
24946	    q
24947	  }
24948	  s/.*/./; q'`
24949  as_dir="$ac_dir"; as_fn_mkdir_p
24950  ac_builddir=.
24951
24952case "$ac_dir" in
24953.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24954*)
24955  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24956  # A ".." for each directory in $ac_dir_suffix.
24957  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24958  case $ac_top_builddir_sub in
24959  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24960  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24961  esac ;;
24962esac
24963ac_abs_top_builddir=$ac_pwd
24964ac_abs_builddir=$ac_pwd$ac_dir_suffix
24965# for backward compatibility:
24966ac_top_builddir=$ac_top_build_prefix
24967
24968case $srcdir in
24969  .)  # We are building in place.
24970    ac_srcdir=.
24971    ac_top_srcdir=$ac_top_builddir_sub
24972    ac_abs_top_srcdir=$ac_pwd ;;
24973  [\\/]* | ?:[\\/]* )  # Absolute name.
24974    ac_srcdir=$srcdir$ac_dir_suffix;
24975    ac_top_srcdir=$srcdir
24976    ac_abs_top_srcdir=$srcdir ;;
24977  *) # Relative name.
24978    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24979    ac_top_srcdir=$ac_top_build_prefix$srcdir
24980    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24981esac
24982ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24983
24984
24985  case $ac_mode in
24986  :F)
24987  #
24988  # CONFIG_FILE
24989  #
24990
24991  case $INSTALL in
24992  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24993  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24994  esac
24995  ac_MKDIR_P=$MKDIR_P
24996  case $MKDIR_P in
24997  [\\/$]* | ?:[\\/]* ) ;;
24998  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24999  esac
25000_ACEOF
25001
25002cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25003# If the template does not know about datarootdir, expand it.
25004# FIXME: This hack should be removed a few years after 2.60.
25005ac_datarootdir_hack=; ac_datarootdir_seen=
25006ac_sed_dataroot='
25007/datarootdir/ {
25008  p
25009  q
25010}
25011/@datadir@/p
25012/@docdir@/p
25013/@infodir@/p
25014/@localedir@/p
25015/@mandir@/p'
25016case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25017*datarootdir*) ac_datarootdir_seen=yes;;
25018*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25019  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25020$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25021_ACEOF
25022cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25023  ac_datarootdir_hack='
25024  s&@datadir@&$datadir&g
25025  s&@docdir@&$docdir&g
25026  s&@infodir@&$infodir&g
25027  s&@localedir@&$localedir&g
25028  s&@mandir@&$mandir&g
25029  s&\\\${datarootdir}&$datarootdir&g' ;;
25030esac
25031_ACEOF
25032
25033# Neutralize VPATH when `$srcdir' = `.'.
25034# Shell code in configure.ac might set extrasub.
25035# FIXME: do we really want to maintain this feature?
25036cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25037ac_sed_extra="$ac_vpsub
25038$extrasub
25039_ACEOF
25040cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25041:t
25042/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25043s|@configure_input@|$ac_sed_conf_input|;t t
25044s&@top_builddir@&$ac_top_builddir_sub&;t t
25045s&@top_build_prefix@&$ac_top_build_prefix&;t t
25046s&@srcdir@&$ac_srcdir&;t t
25047s&@abs_srcdir@&$ac_abs_srcdir&;t t
25048s&@top_srcdir@&$ac_top_srcdir&;t t
25049s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25050s&@builddir@&$ac_builddir&;t t
25051s&@abs_builddir@&$ac_abs_builddir&;t t
25052s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25053s&@INSTALL@&$ac_INSTALL&;t t
25054s&@MKDIR_P@&$ac_MKDIR_P&;t t
25055$ac_datarootdir_hack
25056"
25057eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
25058  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25059
25060test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25061  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25062  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25063  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25064which seems to be undefined.  Please make sure it is defined" >&5
25065$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25066which seems to be undefined.  Please make sure it is defined" >&2;}
25067
25068  rm -f "$tmp/stdin"
25069  case $ac_file in
25070  -) cat "$tmp/out" && rm -f "$tmp/out";;
25071  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
25072  esac \
25073  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25074 ;;
25075  :H)
25076  #
25077  # CONFIG_HEADER
25078  #
25079  if test x"$ac_file" != x-; then
25080    {
25081      $as_echo "/* $configure_input  */" \
25082      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
25083    } >"$tmp/config.h" \
25084      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25085    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
25086      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25087$as_echo "$as_me: $ac_file is unchanged" >&6;}
25088    else
25089      rm -f "$ac_file"
25090      mv "$tmp/config.h" "$ac_file" \
25091	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
25092    fi
25093  else
25094    $as_echo "/* $configure_input  */" \
25095      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
25096      || as_fn_error $? "could not create -" "$LINENO" 5
25097  fi
25098# Compute "$ac_file"'s index in $config_headers.
25099_am_arg="$ac_file"
25100_am_stamp_count=1
25101for _am_header in $config_headers :; do
25102  case $_am_header in
25103    $_am_arg | $_am_arg:* )
25104      break ;;
25105    * )
25106      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25107  esac
25108done
25109echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25110$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25111	 X"$_am_arg" : 'X\(//\)[^/]' \| \
25112	 X"$_am_arg" : 'X\(//\)$' \| \
25113	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25114$as_echo X"$_am_arg" |
25115    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25116	    s//\1/
25117	    q
25118	  }
25119	  /^X\(\/\/\)[^/].*/{
25120	    s//\1/
25121	    q
25122	  }
25123	  /^X\(\/\/\)$/{
25124	    s//\1/
25125	    q
25126	  }
25127	  /^X\(\/\).*/{
25128	    s//\1/
25129	    q
25130	  }
25131	  s/.*/./; q'`/stamp-h$_am_stamp_count
25132 ;;
25133
25134  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25135$as_echo "$as_me: executing $ac_file commands" >&6;}
25136 ;;
25137  esac
25138
25139
25140  case $ac_file$ac_mode in
25141    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
25142  # Autoconf 2.62 quotes --file arguments for eval, but not when files
25143  # are listed without --file.  Let's play safe and only enable the eval
25144  # if we detect the quoting.
25145  case $CONFIG_FILES in
25146  *\'*) eval set x "$CONFIG_FILES" ;;
25147  *)   set x $CONFIG_FILES ;;
25148  esac
25149  shift
25150  for mf
25151  do
25152    # Strip MF so we end up with the name of the file.
25153    mf=`echo "$mf" | sed -e 's/:.*$//'`
25154    # Check whether this is an Automake generated Makefile or not.
25155    # We used to match only the files named `Makefile.in', but
25156    # some people rename them; so instead we look at the file content.
25157    # Grep'ing the first line is not enough: some people post-process
25158    # each Makefile.in and add a new line on top of each file to say so.
25159    # Grep'ing the whole file is not good either: AIX grep has a line
25160    # limit of 2048, but all sed's we know have understand at least 4000.
25161    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25162      dirpart=`$as_dirname -- "$mf" ||
25163$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25164	 X"$mf" : 'X\(//\)[^/]' \| \
25165	 X"$mf" : 'X\(//\)$' \| \
25166	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25167$as_echo X"$mf" |
25168    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25169	    s//\1/
25170	    q
25171	  }
25172	  /^X\(\/\/\)[^/].*/{
25173	    s//\1/
25174	    q
25175	  }
25176	  /^X\(\/\/\)$/{
25177	    s//\1/
25178	    q
25179	  }
25180	  /^X\(\/\).*/{
25181	    s//\1/
25182	    q
25183	  }
25184	  s/.*/./; q'`
25185    else
25186      continue
25187    fi
25188    # Extract the definition of DEPDIR, am__include, and am__quote
25189    # from the Makefile without running `make'.
25190    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25191    test -z "$DEPDIR" && continue
25192    am__include=`sed -n 's/^am__include = //p' < "$mf"`
25193    test -z "am__include" && continue
25194    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25195    # When using ansi2knr, U may be empty or an underscore; expand it
25196    U=`sed -n 's/^U = //p' < "$mf"`
25197    # Find all dependency output files, they are included files with
25198    # $(DEPDIR) in their names.  We invoke sed twice because it is the
25199    # simplest approach to changing $(DEPDIR) to its actual value in the
25200    # expansion.
25201    for file in `sed -n "
25202      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25203	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25204      # Make sure the directory exists.
25205      test -f "$dirpart/$file" && continue
25206      fdir=`$as_dirname -- "$file" ||
25207$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25208	 X"$file" : 'X\(//\)[^/]' \| \
25209	 X"$file" : 'X\(//\)$' \| \
25210	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25211$as_echo X"$file" |
25212    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25213	    s//\1/
25214	    q
25215	  }
25216	  /^X\(\/\/\)[^/].*/{
25217	    s//\1/
25218	    q
25219	  }
25220	  /^X\(\/\/\)$/{
25221	    s//\1/
25222	    q
25223	  }
25224	  /^X\(\/\).*/{
25225	    s//\1/
25226	    q
25227	  }
25228	  s/.*/./; q'`
25229      as_dir=$dirpart/$fdir; as_fn_mkdir_p
25230      # echo "creating $dirpart/$file"
25231      echo '# dummy' > "$dirpart/$file"
25232    done
25233  done
25234}
25235 ;;
25236    "po-directories":C)
25237    for ac_file in $CONFIG_FILES; do
25238      # Support "outfile[:infile[:infile...]]"
25239      case "$ac_file" in
25240        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
25241      esac
25242      # PO directories have a Makefile.in generated from Makefile.in.in.
25243      case "$ac_file" in */Makefile.in)
25244        # Adjust a relative srcdir.
25245        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
25246        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
25247        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
25248        # In autoconf-2.13 it is called $ac_given_srcdir.
25249        # In autoconf-2.50 it is called $srcdir.
25250        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
25251        case "$ac_given_srcdir" in
25252          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
25253          /*) top_srcdir="$ac_given_srcdir" ;;
25254          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
25255        esac
25256        # Treat a directory as a PO directory if and only if it has a
25257        # POTFILES.in file. This allows packages to have multiple PO
25258        # directories under different names or in different locations.
25259        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
25260          rm -f "$ac_dir/POTFILES"
25261          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
25262          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
25263          POMAKEFILEDEPS="POTFILES.in"
25264          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
25265          # on $ac_dir but don't depend on user-specified configuration
25266          # parameters.
25267          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
25268            # The LINGUAS file contains the set of available languages.
25269            if test -n "$OBSOLETE_ALL_LINGUAS"; then
25270              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
25271            fi
25272            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
25273            # Hide the ALL_LINGUAS assigment from automake < 1.5.
25274            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
25275            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
25276          else
25277            # The set of available languages was given in configure.in.
25278            # Hide the ALL_LINGUAS assigment from automake < 1.5.
25279            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
25280          fi
25281          # Compute POFILES
25282          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
25283          # Compute UPDATEPOFILES
25284          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
25285          # Compute DUMMYPOFILES
25286          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
25287          # Compute GMOFILES
25288          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
25289          case "$ac_given_srcdir" in
25290            .) srcdirpre= ;;
25291            *) srcdirpre='$(srcdir)/' ;;
25292          esac
25293          POFILES=
25294          UPDATEPOFILES=
25295          DUMMYPOFILES=
25296          GMOFILES=
25297          for lang in $ALL_LINGUAS; do
25298            POFILES="$POFILES $srcdirpre$lang.po"
25299            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
25300            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
25301            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
25302          done
25303          # CATALOGS depends on both $ac_dir and the user's LINGUAS
25304          # environment variable.
25305          INST_LINGUAS=
25306          if test -n "$ALL_LINGUAS"; then
25307            for presentlang in $ALL_LINGUAS; do
25308              useit=no
25309              if test "%UNSET%" != "$LINGUAS"; then
25310                desiredlanguages="$LINGUAS"
25311              else
25312                desiredlanguages="$ALL_LINGUAS"
25313              fi
25314              for desiredlang in $desiredlanguages; do
25315                # Use the presentlang catalog if desiredlang is
25316                #   a. equal to presentlang, or
25317                #   b. a variant of presentlang (because in this case,
25318                #      presentlang can be used as a fallback for messages
25319                #      which are not translated in the desiredlang catalog).
25320                case "$desiredlang" in
25321                  "$presentlang"*) useit=yes;;
25322                esac
25323              done
25324              if test $useit = yes; then
25325                INST_LINGUAS="$INST_LINGUAS $presentlang"
25326              fi
25327            done
25328          fi
25329          CATALOGS=
25330          if test -n "$INST_LINGUAS"; then
25331            for lang in $INST_LINGUAS; do
25332              CATALOGS="$CATALOGS $lang.gmo"
25333            done
25334          fi
25335          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
25336          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"
25337          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
25338            if test -f "$f"; then
25339              case "$f" in
25340                *.orig | *.bak | *~) ;;
25341                *) cat "$f" >> "$ac_dir/Makefile" ;;
25342              esac
25343            fi
25344          done
25345        fi
25346        ;;
25347      esac
25348    done ;;
25349    "libtool":C)
25350
25351    # See if we are running on zsh, and set the options which allow our
25352    # commands through without removal of \ escapes.
25353    if test -n "${ZSH_VERSION+set}" ; then
25354      setopt NO_GLOB_SUBST
25355    fi
25356
25357    cfgfile="${ofile}T"
25358    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
25359    $RM "$cfgfile"
25360
25361    cat <<_LT_EOF >> "$cfgfile"
25362#! $SHELL
25363
25364# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
25365# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
25366# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25367# NOTE: Changes made to this file will be lost: look at ltmain.sh.
25368#
25369#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
25370#                 2006, 2007, 2008 Free Software Foundation, Inc.
25371#   Written by Gordon Matzigkeit, 1996
25372#
25373#   This file is part of GNU Libtool.
25374#
25375# GNU Libtool is free software; you can redistribute it and/or
25376# modify it under the terms of the GNU General Public License as
25377# published by the Free Software Foundation; either version 2 of
25378# the License, or (at your option) any later version.
25379#
25380# As a special exception to the GNU General Public License,
25381# if you distribute this file as part of a program or library that
25382# is built using GNU Libtool, you may include this file under the
25383# same distribution terms that you use for the rest of that program.
25384#
25385# GNU Libtool is distributed in the hope that it will be useful,
25386# but WITHOUT ANY WARRANTY; without even the implied warranty of
25387# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
25388# GNU General Public License for more details.
25389#
25390# You should have received a copy of the GNU General Public License
25391# along with GNU Libtool; see the file COPYING.  If not, a copy
25392# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
25393# obtained by writing to the Free Software Foundation, Inc.,
25394# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25395
25396
25397# The names of the tagged configurations supported by this script.
25398available_tags="CXX "
25399
25400# ### BEGIN LIBTOOL CONFIG
25401
25402# Which release of libtool.m4 was used?
25403macro_version=$macro_version
25404macro_revision=$macro_revision
25405
25406# Whether or not to build shared libraries.
25407build_libtool_libs=$enable_shared
25408
25409# Whether or not to build static libraries.
25410build_old_libs=$enable_static
25411
25412# What type of objects to build.
25413pic_mode=$pic_mode
25414
25415# Whether or not to optimize for fast installation.
25416fast_install=$enable_fast_install
25417
25418# The host system.
25419host_alias=$host_alias
25420host=$host
25421host_os=$host_os
25422
25423# The build system.
25424build_alias=$build_alias
25425build=$build
25426build_os=$build_os
25427
25428# A sed program that does not truncate output.
25429SED=$lt_SED
25430
25431# Sed that helps us avoid accidentally triggering echo(1) options like -n.
25432Xsed="\$SED -e 1s/^X//"
25433
25434# A grep program that handles long lines.
25435GREP=$lt_GREP
25436
25437# An ERE matcher.
25438EGREP=$lt_EGREP
25439
25440# A literal string matcher.
25441FGREP=$lt_FGREP
25442
25443# A BSD- or MS-compatible name lister.
25444NM=$lt_NM
25445
25446# Whether we need soft or hard links.
25447LN_S=$lt_LN_S
25448
25449# What is the maximum length of a command?
25450max_cmd_len=$max_cmd_len
25451
25452# Object file suffix (normally "o").
25453objext=$ac_objext
25454
25455# Executable file suffix (normally "").
25456exeext=$exeext
25457
25458# whether the shell understands "unset".
25459lt_unset=$lt_unset
25460
25461# turn spaces into newlines.
25462SP2NL=$lt_lt_SP2NL
25463
25464# turn newlines into spaces.
25465NL2SP=$lt_lt_NL2SP
25466
25467# How to create reloadable object files.
25468reload_flag=$lt_reload_flag
25469reload_cmds=$lt_reload_cmds
25470
25471# An object symbol dumper.
25472OBJDUMP=$lt_OBJDUMP
25473
25474# Method to check whether dependent libraries are shared objects.
25475deplibs_check_method=$lt_deplibs_check_method
25476
25477# Command to use when deplibs_check_method == "file_magic".
25478file_magic_cmd=$lt_file_magic_cmd
25479
25480# The archiver.
25481AR=$lt_AR
25482AR_FLAGS=$lt_AR_FLAGS
25483
25484# A symbol stripping program.
25485STRIP=$lt_STRIP
25486
25487# Commands used to install an old-style archive.
25488RANLIB=$lt_RANLIB
25489old_postinstall_cmds=$lt_old_postinstall_cmds
25490old_postuninstall_cmds=$lt_old_postuninstall_cmds
25491
25492# A C compiler.
25493LTCC=$lt_CC
25494
25495# LTCC compiler flags.
25496LTCFLAGS=$lt_CFLAGS
25497
25498# Take the output of nm and produce a listing of raw symbols and C names.
25499global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25500
25501# Transform the output of nm in a proper C declaration.
25502global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25503
25504# Transform the output of nm in a C name address pair.
25505global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25506
25507# Transform the output of nm in a C name address pair when lib prefix is needed.
25508global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
25509
25510# The name of the directory that contains temporary libtool files.
25511objdir=$objdir
25512
25513# Shell to use when invoking shell scripts.
25514SHELL=$lt_SHELL
25515
25516# An echo program that does not interpret backslashes.
25517ECHO=$lt_ECHO
25518
25519# Used to examine libraries when file_magic_cmd begins with "file".
25520MAGIC_CMD=$MAGIC_CMD
25521
25522# Must we lock files when doing compilation?
25523need_locks=$lt_need_locks
25524
25525# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
25526DSYMUTIL=$lt_DSYMUTIL
25527
25528# Tool to change global to local symbols on Mac OS X.
25529NMEDIT=$lt_NMEDIT
25530
25531# Tool to manipulate fat objects and archives on Mac OS X.
25532LIPO=$lt_LIPO
25533
25534# ldd/readelf like tool for Mach-O binaries on Mac OS X.
25535OTOOL=$lt_OTOOL
25536
25537# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
25538OTOOL64=$lt_OTOOL64
25539
25540# Old archive suffix (normally "a").
25541libext=$libext
25542
25543# Shared library suffix (normally ".so").
25544shrext_cmds=$lt_shrext_cmds
25545
25546# The commands to extract the exported symbol list from a shared archive.
25547extract_expsyms_cmds=$lt_extract_expsyms_cmds
25548
25549# Variables whose values should be saved in libtool wrapper scripts and
25550# restored at link time.
25551variables_saved_for_relink=$lt_variables_saved_for_relink
25552
25553# Do we need the "lib" prefix for modules?
25554need_lib_prefix=$need_lib_prefix
25555
25556# Do we need a version for libraries?
25557need_version=$need_version
25558
25559# Library versioning type.
25560version_type=$version_type
25561
25562# Shared library runtime path variable.
25563runpath_var=$runpath_var
25564
25565# Shared library path variable.
25566shlibpath_var=$shlibpath_var
25567
25568# Is shlibpath searched before the hard-coded library search path?
25569shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25570
25571# Format of library name prefix.
25572libname_spec=$lt_libname_spec
25573
25574# List of archive names.  First name is the real one, the rest are links.
25575# The last name is the one that the linker finds with -lNAME
25576library_names_spec=$lt_library_names_spec
25577
25578# The coded name of the library, if different from the real name.
25579soname_spec=$lt_soname_spec
25580
25581# Command to use after installation of a shared archive.
25582postinstall_cmds=$lt_postinstall_cmds
25583
25584# Command to use after uninstallation of a shared archive.
25585postuninstall_cmds=$lt_postuninstall_cmds
25586
25587# Commands used to finish a libtool library installation in a directory.
25588finish_cmds=$lt_finish_cmds
25589
25590# As "finish_cmds", except a single script fragment to be evaled but
25591# not shown.
25592finish_eval=$lt_finish_eval
25593
25594# Whether we should hardcode library paths into libraries.
25595hardcode_into_libs=$hardcode_into_libs
25596
25597# Compile-time system search path for libraries.
25598sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25599
25600# Run-time system search path for libraries.
25601sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25602
25603# Whether dlopen is supported.
25604dlopen_support=$enable_dlopen
25605
25606# Whether dlopen of programs is supported.
25607dlopen_self=$enable_dlopen_self
25608
25609# Whether dlopen of statically linked programs is supported.
25610dlopen_self_static=$enable_dlopen_self_static
25611
25612# Commands to strip libraries.
25613old_striplib=$lt_old_striplib
25614striplib=$lt_striplib
25615
25616
25617# The linker used to build libraries.
25618LD=$lt_LD
25619
25620# Commands used to build an old-style archive.
25621old_archive_cmds=$lt_old_archive_cmds
25622
25623# A language specific compiler.
25624CC=$lt_compiler
25625
25626# Is the compiler the GNU compiler?
25627with_gcc=$GCC
25628
25629# Compiler flag to turn off builtin functions.
25630no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
25631
25632# How to pass a linker flag through the compiler.
25633wl=$lt_lt_prog_compiler_wl
25634
25635# Additional compiler flags for building library objects.
25636pic_flag=$lt_lt_prog_compiler_pic
25637
25638# Compiler flag to prevent dynamic linking.
25639link_static_flag=$lt_lt_prog_compiler_static
25640
25641# Does compiler simultaneously support -c and -o options?
25642compiler_c_o=$lt_lt_cv_prog_compiler_c_o
25643
25644# Whether or not to add -lc for building shared libraries.
25645build_libtool_need_lc=$archive_cmds_need_lc
25646
25647# Whether or not to disallow shared libs when runtime libs are static.
25648allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
25649
25650# Compiler flag to allow reflexive dlopens.
25651export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25652
25653# Compiler flag to generate shared objects directly from archives.
25654whole_archive_flag_spec=$lt_whole_archive_flag_spec
25655
25656# Whether the compiler copes with passing no objects directly.
25657compiler_needs_object=$lt_compiler_needs_object
25658
25659# Create an old-style archive from a shared archive.
25660old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
25661
25662# Create a temporary old-style archive to link instead of a shared archive.
25663old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
25664
25665# Commands used to build a shared archive.
25666archive_cmds=$lt_archive_cmds
25667archive_expsym_cmds=$lt_archive_expsym_cmds
25668
25669# Commands used to build a loadable module if different from building
25670# a shared archive.
25671module_cmds=$lt_module_cmds
25672module_expsym_cmds=$lt_module_expsym_cmds
25673
25674# Whether we are building with GNU ld or not.
25675with_gnu_ld=$lt_with_gnu_ld
25676
25677# Flag that allows shared libraries with undefined symbols to be built.
25678allow_undefined_flag=$lt_allow_undefined_flag
25679
25680# Flag that enforces no undefined symbols.
25681no_undefined_flag=$lt_no_undefined_flag
25682
25683# Flag to hardcode \$libdir into a binary during linking.
25684# This must work even if \$libdir does not exist
25685hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
25686
25687# If ld is used when linking, flag to hardcode \$libdir into a binary
25688# during linking.  This must work even if \$libdir does not exist.
25689hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
25690
25691# Whether we need a single "-rpath" flag with a separated argument.
25692hardcode_libdir_separator=$lt_hardcode_libdir_separator
25693
25694# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25695# DIR into the resulting binary.
25696hardcode_direct=$hardcode_direct
25697
25698# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25699# DIR into the resulting binary and the resulting library dependency is
25700# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
25701# library is relocated.
25702hardcode_direct_absolute=$hardcode_direct_absolute
25703
25704# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25705# into the resulting binary.
25706hardcode_minus_L=$hardcode_minus_L
25707
25708# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25709# into the resulting binary.
25710hardcode_shlibpath_var=$hardcode_shlibpath_var
25711
25712# Set to "yes" if building a shared library automatically hardcodes DIR
25713# into the library and all subsequent libraries and executables linked
25714# against it.
25715hardcode_automatic=$hardcode_automatic
25716
25717# Set to yes if linker adds runtime paths of dependent libraries
25718# to runtime path list.
25719inherit_rpath=$inherit_rpath
25720
25721# Whether libtool must link a program against all its dependency libraries.
25722link_all_deplibs=$link_all_deplibs
25723
25724# Fix the shell variable \$srcfile for the compiler.
25725fix_srcfile_path=$lt_fix_srcfile_path
25726
25727# Set to "yes" if exported symbols are required.
25728always_export_symbols=$always_export_symbols
25729
25730# The commands to list exported symbols.
25731export_symbols_cmds=$lt_export_symbols_cmds
25732
25733# Symbols that should not be listed in the preloaded symbols.
25734exclude_expsyms=$lt_exclude_expsyms
25735
25736# Symbols that must always be exported.
25737include_expsyms=$lt_include_expsyms
25738
25739# Commands necessary for linking programs (against libraries) with templates.
25740prelink_cmds=$lt_prelink_cmds
25741
25742# Specify filename containing input files.
25743file_list_spec=$lt_file_list_spec
25744
25745# How to hardcode a shared library path into an executable.
25746hardcode_action=$hardcode_action
25747
25748# The directories searched by this compiler when creating a shared library.
25749compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
25750
25751# Dependencies to place before and after the objects being linked to
25752# create a shared library.
25753predep_objects=$lt_predep_objects
25754postdep_objects=$lt_postdep_objects
25755predeps=$lt_predeps
25756postdeps=$lt_postdeps
25757
25758# The library search path used internally by the compiler when linking
25759# a shared library.
25760compiler_lib_search_path=$lt_compiler_lib_search_path
25761
25762# ### END LIBTOOL CONFIG
25763
25764_LT_EOF
25765
25766  case $host_os in
25767  aix3*)
25768    cat <<\_LT_EOF >> "$cfgfile"
25769# AIX sometimes has problems with the GCC collect2 program.  For some
25770# reason, if we set the COLLECT_NAMES environment variable, the problems
25771# vanish in a puff of smoke.
25772if test "X${COLLECT_NAMES+set}" != Xset; then
25773  COLLECT_NAMES=
25774  export COLLECT_NAMES
25775fi
25776_LT_EOF
25777    ;;
25778  esac
25779
25780
25781ltmain="$ac_aux_dir/ltmain.sh"
25782
25783
25784  # We use sed instead of cat because bash on DJGPP gets confused if
25785  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
25786  # text mode, it properly converts lines to CR/LF.  This bash problem
25787  # is reportedly fixed, but why not run on old versions too?
25788  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
25789    || (rm -f "$cfgfile"; exit 1)
25790
25791  case $xsi_shell in
25792  yes)
25793    cat << \_LT_EOF >> "$cfgfile"
25794
25795# func_dirname file append nondir_replacement
25796# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
25797# otherwise set result to NONDIR_REPLACEMENT.
25798func_dirname ()
25799{
25800  case ${1} in
25801    */*) func_dirname_result="${1%/*}${2}" ;;
25802    *  ) func_dirname_result="${3}" ;;
25803  esac
25804}
25805
25806# func_basename file
25807func_basename ()
25808{
25809  func_basename_result="${1##*/}"
25810}
25811
25812# func_dirname_and_basename file append nondir_replacement
25813# perform func_basename and func_dirname in a single function
25814# call:
25815#   dirname:  Compute the dirname of FILE.  If nonempty,
25816#             add APPEND to the result, otherwise set result
25817#             to NONDIR_REPLACEMENT.
25818#             value returned in "$func_dirname_result"
25819#   basename: Compute filename of FILE.
25820#             value retuned in "$func_basename_result"
25821# Implementation must be kept synchronized with func_dirname
25822# and func_basename. For efficiency, we do not delegate to
25823# those functions but instead duplicate the functionality here.
25824func_dirname_and_basename ()
25825{
25826  case ${1} in
25827    */*) func_dirname_result="${1%/*}${2}" ;;
25828    *  ) func_dirname_result="${3}" ;;
25829  esac
25830  func_basename_result="${1##*/}"
25831}
25832
25833# func_stripname prefix suffix name
25834# strip PREFIX and SUFFIX off of NAME.
25835# PREFIX and SUFFIX must not contain globbing or regex special
25836# characters, hashes, percent signs, but SUFFIX may contain a leading
25837# dot (in which case that matches only a dot).
25838func_stripname ()
25839{
25840  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
25841  # positional parameters, so assign one to ordinary parameter first.
25842  func_stripname_result=${3}
25843  func_stripname_result=${func_stripname_result#"${1}"}
25844  func_stripname_result=${func_stripname_result%"${2}"}
25845}
25846
25847# func_opt_split
25848func_opt_split ()
25849{
25850  func_opt_split_opt=${1%%=*}
25851  func_opt_split_arg=${1#*=}
25852}
25853
25854# func_lo2o object
25855func_lo2o ()
25856{
25857  case ${1} in
25858    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
25859    *)    func_lo2o_result=${1} ;;
25860  esac
25861}
25862
25863# func_xform libobj-or-source
25864func_xform ()
25865{
25866  func_xform_result=${1%.*}.lo
25867}
25868
25869# func_arith arithmetic-term...
25870func_arith ()
25871{
25872  func_arith_result=$(( $* ))
25873}
25874
25875# func_len string
25876# STRING may not start with a hyphen.
25877func_len ()
25878{
25879  func_len_result=${#1}
25880}
25881
25882_LT_EOF
25883    ;;
25884  *) # Bourne compatible functions.
25885    cat << \_LT_EOF >> "$cfgfile"
25886
25887# func_dirname file append nondir_replacement
25888# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
25889# otherwise set result to NONDIR_REPLACEMENT.
25890func_dirname ()
25891{
25892  # Extract subdirectory from the argument.
25893  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
25894  if test "X$func_dirname_result" = "X${1}"; then
25895    func_dirname_result="${3}"
25896  else
25897    func_dirname_result="$func_dirname_result${2}"
25898  fi
25899}
25900
25901# func_basename file
25902func_basename ()
25903{
25904  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
25905}
25906
25907
25908# func_stripname prefix suffix name
25909# strip PREFIX and SUFFIX off of NAME.
25910# PREFIX and SUFFIX must not contain globbing or regex special
25911# characters, hashes, percent signs, but SUFFIX may contain a leading
25912# dot (in which case that matches only a dot).
25913# func_strip_suffix prefix name
25914func_stripname ()
25915{
25916  case ${2} in
25917    .*) func_stripname_result=`$ECHO "X${3}" \
25918           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
25919    *)  func_stripname_result=`$ECHO "X${3}" \
25920           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
25921  esac
25922}
25923
25924# sed scripts:
25925my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
25926my_sed_long_arg='1s/^-[^=]*=//'
25927
25928# func_opt_split
25929func_opt_split ()
25930{
25931  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
25932  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
25933}
25934
25935# func_lo2o object
25936func_lo2o ()
25937{
25938  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
25939}
25940
25941# func_xform libobj-or-source
25942func_xform ()
25943{
25944  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
25945}
25946
25947# func_arith arithmetic-term...
25948func_arith ()
25949{
25950  func_arith_result=`expr "$@"`
25951}
25952
25953# func_len string
25954# STRING may not start with a hyphen.
25955func_len ()
25956{
25957  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
25958}
25959
25960_LT_EOF
25961esac
25962
25963case $lt_shell_append in
25964  yes)
25965    cat << \_LT_EOF >> "$cfgfile"
25966
25967# func_append var value
25968# Append VALUE to the end of shell variable VAR.
25969func_append ()
25970{
25971  eval "$1+=\$2"
25972}
25973_LT_EOF
25974    ;;
25975  *)
25976    cat << \_LT_EOF >> "$cfgfile"
25977
25978# func_append var value
25979# Append VALUE to the end of shell variable VAR.
25980func_append ()
25981{
25982  eval "$1=\$$1\$2"
25983}
25984
25985_LT_EOF
25986    ;;
25987  esac
25988
25989
25990  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
25991    || (rm -f "$cfgfile"; exit 1)
25992
25993  mv -f "$cfgfile" "$ofile" ||
25994    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25995  chmod +x "$ofile"
25996
25997
25998    cat <<_LT_EOF >> "$ofile"
25999
26000# ### BEGIN LIBTOOL TAG CONFIG: CXX
26001
26002# The linker used to build libraries.
26003LD=$lt_LD_CXX
26004
26005# Commands used to build an old-style archive.
26006old_archive_cmds=$lt_old_archive_cmds_CXX
26007
26008# A language specific compiler.
26009CC=$lt_compiler_CXX
26010
26011# Is the compiler the GNU compiler?
26012with_gcc=$GCC_CXX
26013
26014# Compiler flag to turn off builtin functions.
26015no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
26016
26017# How to pass a linker flag through the compiler.
26018wl=$lt_lt_prog_compiler_wl_CXX
26019
26020# Additional compiler flags for building library objects.
26021pic_flag=$lt_lt_prog_compiler_pic_CXX
26022
26023# Compiler flag to prevent dynamic linking.
26024link_static_flag=$lt_lt_prog_compiler_static_CXX
26025
26026# Does compiler simultaneously support -c and -o options?
26027compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
26028
26029# Whether or not to add -lc for building shared libraries.
26030build_libtool_need_lc=$archive_cmds_need_lc_CXX
26031
26032# Whether or not to disallow shared libs when runtime libs are static.
26033allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
26034
26035# Compiler flag to allow reflexive dlopens.
26036export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
26037
26038# Compiler flag to generate shared objects directly from archives.
26039whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
26040
26041# Whether the compiler copes with passing no objects directly.
26042compiler_needs_object=$lt_compiler_needs_object_CXX
26043
26044# Create an old-style archive from a shared archive.
26045old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
26046
26047# Create a temporary old-style archive to link instead of a shared archive.
26048old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
26049
26050# Commands used to build a shared archive.
26051archive_cmds=$lt_archive_cmds_CXX
26052archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
26053
26054# Commands used to build a loadable module if different from building
26055# a shared archive.
26056module_cmds=$lt_module_cmds_CXX
26057module_expsym_cmds=$lt_module_expsym_cmds_CXX
26058
26059# Whether we are building with GNU ld or not.
26060with_gnu_ld=$lt_with_gnu_ld_CXX
26061
26062# Flag that allows shared libraries with undefined symbols to be built.
26063allow_undefined_flag=$lt_allow_undefined_flag_CXX
26064
26065# Flag that enforces no undefined symbols.
26066no_undefined_flag=$lt_no_undefined_flag_CXX
26067
26068# Flag to hardcode \$libdir into a binary during linking.
26069# This must work even if \$libdir does not exist
26070hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
26071
26072# If ld is used when linking, flag to hardcode \$libdir into a binary
26073# during linking.  This must work even if \$libdir does not exist.
26074hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
26075
26076# Whether we need a single "-rpath" flag with a separated argument.
26077hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
26078
26079# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26080# DIR into the resulting binary.
26081hardcode_direct=$hardcode_direct_CXX
26082
26083# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26084# DIR into the resulting binary and the resulting library dependency is
26085# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
26086# library is relocated.
26087hardcode_direct_absolute=$hardcode_direct_absolute_CXX
26088
26089# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26090# into the resulting binary.
26091hardcode_minus_L=$hardcode_minus_L_CXX
26092
26093# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26094# into the resulting binary.
26095hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
26096
26097# Set to "yes" if building a shared library automatically hardcodes DIR
26098# into the library and all subsequent libraries and executables linked
26099# against it.
26100hardcode_automatic=$hardcode_automatic_CXX
26101
26102# Set to yes if linker adds runtime paths of dependent libraries
26103# to runtime path list.
26104inherit_rpath=$inherit_rpath_CXX
26105
26106# Whether libtool must link a program against all its dependency libraries.
26107link_all_deplibs=$link_all_deplibs_CXX
26108
26109# Fix the shell variable \$srcfile for the compiler.
26110fix_srcfile_path=$lt_fix_srcfile_path_CXX
26111
26112# Set to "yes" if exported symbols are required.
26113always_export_symbols=$always_export_symbols_CXX
26114
26115# The commands to list exported symbols.
26116export_symbols_cmds=$lt_export_symbols_cmds_CXX
26117
26118# Symbols that should not be listed in the preloaded symbols.
26119exclude_expsyms=$lt_exclude_expsyms_CXX
26120
26121# Symbols that must always be exported.
26122include_expsyms=$lt_include_expsyms_CXX
26123
26124# Commands necessary for linking programs (against libraries) with templates.
26125prelink_cmds=$lt_prelink_cmds_CXX
26126
26127# Specify filename containing input files.
26128file_list_spec=$lt_file_list_spec_CXX
26129
26130# How to hardcode a shared library path into an executable.
26131hardcode_action=$hardcode_action_CXX
26132
26133# The directories searched by this compiler when creating a shared library.
26134compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
26135
26136# Dependencies to place before and after the objects being linked to
26137# create a shared library.
26138predep_objects=$lt_predep_objects_CXX
26139postdep_objects=$lt_postdep_objects_CXX
26140predeps=$lt_predeps_CXX
26141postdeps=$lt_postdeps_CXX
26142
26143# The library search path used internally by the compiler when linking
26144# a shared library.
26145compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
26146
26147# ### END LIBTOOL TAG CONFIG: CXX
26148_LT_EOF
26149
26150 ;;
26151
26152  esac
26153done # for ac_tag
26154
26155
26156as_fn_exit 0
26157_ACEOF
26158ac_clean_files=$ac_clean_files_save
26159
26160test $ac_write_fail = 0 ||
26161  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
26162
26163
26164# configure is writing to config.log, and then calls config.status.
26165# config.status does its own redirection, appending to config.log.
26166# Unfortunately, on DOS this fails, as config.log is still kept open
26167# by configure, so config.status won't be able to write to it; its
26168# output is simply discarded.  So we exec the FD to /dev/null,
26169# effectively closing config.log, so it can be properly (re)opened and
26170# appended to by config.status.  When coming back to configure, we
26171# need to make the FD available again.
26172if test "$no_create" != yes; then
26173  ac_cs_success=:
26174  ac_config_status_args=
26175  test "$silent" = yes &&
26176    ac_config_status_args="$ac_config_status_args --quiet"
26177  exec 5>/dev/null
26178  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26179  exec 5>>config.log
26180  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26181  # would make configure fail if this is the last instruction.
26182  $ac_cs_success || as_fn_exit 1
26183fi
26184if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26185  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26186$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
26187fi
26188
26189